Add generated code
[nonrtric/plt/sme.git] / capifcore / internal / securityapi / securityapi-types.gen.go
1 // Package securityapi provides primitives to interact with the openapi HTTP API.
2 //
3 // Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.
4 package securityapi
5
6 import (
7         externalRef0 "oransc.org/nonrtric/capifcore/internal/common29122"
8         externalRef1 "oransc.org/nonrtric/capifcore/internal/common29571"
9 )
10
11 // Defines values for AccessTokenErrError.
12 const (
13         AccessTokenErrErrorInvalidClient AccessTokenErrError = "invalid_client"
14
15         AccessTokenErrErrorInvalidGrant AccessTokenErrError = "invalid_grant"
16
17         AccessTokenErrErrorInvalidRequest AccessTokenErrError = "invalid_request"
18
19         AccessTokenErrErrorInvalidScope AccessTokenErrError = "invalid_scope"
20
21         AccessTokenErrErrorUnauthorizedClient AccessTokenErrError = "unauthorized_client"
22
23         AccessTokenErrErrorUnsupportedGrantType AccessTokenErrError = "unsupported_grant_type"
24 )
25
26 // Defines values for AccessTokenReqGrantType.
27 const (
28         AccessTokenReqGrantTypeClientCredentials AccessTokenReqGrantType = "client_credentials"
29 )
30
31 // Defines values for AccessTokenRspTokenType.
32 const (
33         AccessTokenRspTokenTypeBearer AccessTokenRspTokenType = "Bearer"
34 )
35
36 // Defines values for Cause.
37 const (
38         CauseOVERLIMITUSAGE Cause = "OVERLIMIT_USAGE"
39
40         CauseUNEXPECTEDREASON Cause = "UNEXPECTED_REASON"
41 )
42
43 // Represents an error in the access token request.
44 type AccessTokenErr struct {
45         Error            AccessTokenErrError `json:"error"`
46         ErrorDescription *string             `json:"error_description,omitempty"`
47         ErrorUri         *string             `json:"error_uri,omitempty"`
48 }
49
50 // AccessTokenErrError defines model for AccessTokenErr.Error.
51 type AccessTokenErrError string
52
53 // Represents the access token request information.
54 type AccessTokenReq struct {
55         ClientId     string                  `json:"client_id"`
56         ClientSecret *string                 `json:"client_secret,omitempty"`
57         GrantType    AccessTokenReqGrantType `json:"grant_type"`
58         Scope        *string                 `json:"scope,omitempty"`
59 }
60
61 // AccessTokenReqGrantType defines model for AccessTokenReq.GrantType.
62 type AccessTokenReqGrantType string
63
64 // Represents the access token response information.
65 type AccessTokenRsp struct {
66         // JWS Compact Serialized representation of JWS signed JSON object (AccessTokenClaims)
67         AccessToken string `json:"access_token"`
68
69         // Unsigned integer identifying a period of time in units of seconds.
70         ExpiresIn externalRef0.DurationSec `json:"expires_in"`
71         Scope     *string                  `json:"scope,omitempty"`
72         TokenType AccessTokenRspTokenType  `json:"token_type"`
73 }
74
75 // AccessTokenRspTokenType defines model for AccessTokenRsp.TokenType.
76 type AccessTokenRspTokenType string
77
78 // Possible values are - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason.
79 type Cause string
80
81 // Represents the interface details and the security method.
82 type SecurityInformation interface{}
83
84 // Represents revoked authorization notification details.
85 type SecurityNotification struct {
86         // String identifying the AEF.
87         AefId *string `json:"aefId,omitempty"`
88
89         // Identifier of the service API
90         ApiIds []string `json:"apiIds"`
91
92         // String identifying the API invoker assigned by the CAPIF core function.
93         ApiInvokerId string `json:"apiInvokerId"`
94
95         // Possible values are - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason.
96         Cause Cause `json:"cause"`
97 }
98
99 // Represents the details of the security method for each service API interface. When included by the API invoker, it indicates the preferred method of security. When included by the CAPIF core function, it indicates the security method to be used for the service API interface.
100 type ServiceSecurity struct {
101         // string providing an URI formatted according to IETF RFC 3986.
102         NotificationDestination externalRef0.Uri `json:"notificationDestination"`
103
104         // Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in subclause 7.6. Set to false or omitted otherwise.
105         RequestTestNotification *bool                 `json:"requestTestNotification,omitempty"`
106         SecurityInfo            []SecurityInformation `json:"securityInfo"`
107
108         // A string used to indicate the features supported by an API that is used as defined in clause  6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in  hexadecimal representation Each character in the string shall take a value of "0" to "9",  "a" to "f" or "A" to "F" and shall represent the support of 4 features as described in  table 5.2.2-3. The most significant character representing the highest-numbered features shall  appear first in the string, and the character representing features 1 to 4 shall appear last  in the string. The list of features and their numbering (starting with 1) are defined  separately for each API. If the string contains a lower number of characters than there are  defined features for an API, all features that would be represented by characters that are not  present in the string are not supported.
109         SupportedFeatures *externalRef1.SupportedFeatures `json:"supportedFeatures,omitempty"`
110
111         // Represents the configuration information for the delivery of notifications over Websockets.
112         WebsockNotifConfig *externalRef0.WebsockNotifConfig `json:"websockNotifConfig,omitempty"`
113 }
114
115 // GetTrustedInvokersApiInvokerIdParams defines parameters for GetTrustedInvokersApiInvokerId.
116 type GetTrustedInvokersApiInvokerIdParams struct {
117         // When set to 'true', it indicates the CAPIF core function to send the authentication information of the API invoker. Set to false or omitted otherwise.
118         AuthenticationInfo *bool `json:"authenticationInfo,omitempty"`
119
120         // When set to 'true', it indicates the CAPIF core function to send the authorization information of the API invoker. Set to false or omitted otherwise.
121         AuthorizationInfo *bool `json:"authorizationInfo,omitempty"`
122 }
123
124 // PutTrustedInvokersApiInvokerIdJSONBody defines parameters for PutTrustedInvokersApiInvokerId.
125 type PutTrustedInvokersApiInvokerIdJSONBody ServiceSecurity
126
127 // PostTrustedInvokersApiInvokerIdDeleteJSONBody defines parameters for PostTrustedInvokersApiInvokerIdDelete.
128 type PostTrustedInvokersApiInvokerIdDeleteJSONBody SecurityNotification
129
130 // PostTrustedInvokersApiInvokerIdUpdateJSONBody defines parameters for PostTrustedInvokersApiInvokerIdUpdate.
131 type PostTrustedInvokersApiInvokerIdUpdateJSONBody ServiceSecurity
132
133 // PutTrustedInvokersApiInvokerIdJSONRequestBody defines body for PutTrustedInvokersApiInvokerId for application/json ContentType.
134 type PutTrustedInvokersApiInvokerIdJSONRequestBody PutTrustedInvokersApiInvokerIdJSONBody
135
136 // PostTrustedInvokersApiInvokerIdDeleteJSONRequestBody defines body for PostTrustedInvokersApiInvokerIdDelete for application/json ContentType.
137 type PostTrustedInvokersApiInvokerIdDeleteJSONRequestBody PostTrustedInvokersApiInvokerIdDeleteJSONBody
138
139 // PostTrustedInvokersApiInvokerIdUpdateJSONRequestBody defines body for PostTrustedInvokersApiInvokerIdUpdate for application/json ContentType.
140 type PostTrustedInvokersApiInvokerIdUpdateJSONRequestBody PostTrustedInvokersApiInvokerIdUpdateJSONBody