@goauthentik/api 2021.12.4-1641213142 → 2021.12.4-1641224655

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,6 +83,7 @@ export interface SourcesOauthDestroyRequest {
83
83
  }
84
84
  export interface SourcesOauthListRequest {
85
85
  accessTokenUrl?: string;
86
+ additionalScopes?: string;
86
87
  authenticationFlow?: string;
87
88
  authorizationUrl?: string;
88
89
  consumerKey?: string;
@@ -614,6 +614,9 @@ class SourcesApi extends runtime.BaseAPI {
614
614
  if (requestParameters.accessTokenUrl !== undefined) {
615
615
  queryParameters['access_token_url'] = requestParameters.accessTokenUrl;
616
616
  }
617
+ if (requestParameters.additionalScopes !== undefined) {
618
+ queryParameters['additional_scopes'] = requestParameters.additionalScopes;
619
+ }
617
620
  if (requestParameters.authenticationFlow !== undefined) {
618
621
  queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
619
622
  }
@@ -83,6 +83,7 @@ export interface SourcesOauthDestroyRequest {
83
83
  }
84
84
  export interface SourcesOauthListRequest {
85
85
  accessTokenUrl?: string;
86
+ additionalScopes?: string;
86
87
  authenticationFlow?: string;
87
88
  authorizationUrl?: string;
88
89
  consumerKey?: string;
@@ -611,6 +611,9 @@ export class SourcesApi extends runtime.BaseAPI {
611
611
  if (requestParameters.accessTokenUrl !== undefined) {
612
612
  queryParameters['access_token_url'] = requestParameters.accessTokenUrl;
613
613
  }
614
+ if (requestParameters.additionalScopes !== undefined) {
615
+ queryParameters['additional_scopes'] = requestParameters.additionalScopes;
616
+ }
614
617
  if (requestParameters.authenticationFlow !== undefined) {
615
618
  queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
616
619
  }
@@ -133,6 +133,12 @@ export interface OAuthSource {
133
133
  * @memberof OAuthSource
134
134
  */
135
135
  readonly callbackUrl: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof OAuthSource
140
+ */
141
+ additionalScopes?: string;
136
142
  /**
137
143
  *
138
144
  * @type {SourceType}
@@ -43,6 +43,7 @@ export function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
44
44
  'consumerKey': json['consumer_key'],
45
45
  'callbackUrl': json['callback_url'],
46
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
46
47
  'type': SourceTypeFromJSON(json['type']),
47
48
  };
48
49
  }
@@ -67,5 +68,6 @@ export function OAuthSourceToJSON(value) {
67
68
  'access_token_url': value.accessTokenUrl,
68
69
  'profile_url': value.profileUrl,
69
70
  'consumer_key': value.consumerKey,
71
+ 'additional_scopes': value.additionalScopes,
70
72
  };
71
73
  }
@@ -102,6 +102,12 @@ export interface OAuthSourceRequest {
102
102
  * @memberof OAuthSourceRequest
103
103
  */
104
104
  consumerSecret: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof OAuthSourceRequest
109
+ */
110
+ additionalScopes?: string;
105
111
  }
106
112
  export declare function OAuthSourceRequestFromJSON(json: any): OAuthSourceRequest;
107
113
  export declare function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourceRequest;
@@ -37,6 +37,7 @@ export function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
38
38
  'consumerKey': json['consumer_key'],
39
39
  'consumerSecret': json['consumer_secret'],
40
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
40
41
  };
41
42
  }
42
43
  export function OAuthSourceRequestToJSON(value) {
@@ -61,5 +62,6 @@ export function OAuthSourceRequestToJSON(value) {
61
62
  'profile_url': value.profileUrl,
62
63
  'consumer_key': value.consumerKey,
63
64
  'consumer_secret': value.consumerSecret,
65
+ 'additional_scopes': value.additionalScopes,
64
66
  };
65
67
  }
@@ -102,6 +102,12 @@ export interface PatchedOAuthSourceRequest {
102
102
  * @memberof PatchedOAuthSourceRequest
103
103
  */
104
104
  consumerSecret?: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof PatchedOAuthSourceRequest
109
+ */
110
+ additionalScopes?: string;
105
111
  }
106
112
  export declare function PatchedOAuthSourceRequestFromJSON(json: any): PatchedOAuthSourceRequest;
107
113
  export declare function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOAuthSourceRequest;
@@ -37,6 +37,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator
37
37
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
38
38
  'consumerKey': !exists(json, 'consumer_key') ? undefined : json['consumer_key'],
39
39
  'consumerSecret': !exists(json, 'consumer_secret') ? undefined : json['consumer_secret'],
40
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
40
41
  };
41
42
  }
42
43
  export function PatchedOAuthSourceRequestToJSON(value) {
@@ -61,5 +62,6 @@ export function PatchedOAuthSourceRequestToJSON(value) {
61
62
  'profile_url': value.profileUrl,
62
63
  'consumer_key': value.consumerKey,
63
64
  'consumer_secret': value.consumerSecret,
65
+ 'additional_scopes': value.additionalScopes,
64
66
  };
65
67
  }
@@ -133,6 +133,12 @@ export interface OAuthSource {
133
133
  * @memberof OAuthSource
134
134
  */
135
135
  readonly callbackUrl: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof OAuthSource
140
+ */
141
+ additionalScopes?: string;
136
142
  /**
137
143
  *
138
144
  * @type {SourceType}
@@ -47,6 +47,7 @@ function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'profileUrl': !runtime_1.exists(json, 'profile_url') ? undefined : json['profile_url'],
48
48
  'consumerKey': json['consumer_key'],
49
49
  'callbackUrl': json['callback_url'],
50
+ 'additionalScopes': !runtime_1.exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
50
51
  'type': SourceType_1.SourceTypeFromJSON(json['type']),
51
52
  };
52
53
  }
@@ -72,6 +73,7 @@ function OAuthSourceToJSON(value) {
72
73
  'access_token_url': value.accessTokenUrl,
73
74
  'profile_url': value.profileUrl,
74
75
  'consumer_key': value.consumerKey,
76
+ 'additional_scopes': value.additionalScopes,
75
77
  };
76
78
  }
77
79
  exports.OAuthSourceToJSON = OAuthSourceToJSON;
@@ -102,6 +102,12 @@ export interface OAuthSourceRequest {
102
102
  * @memberof OAuthSourceRequest
103
103
  */
104
104
  consumerSecret: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof OAuthSourceRequest
109
+ */
110
+ additionalScopes?: string;
105
111
  }
106
112
  export declare function OAuthSourceRequestFromJSON(json: any): OAuthSourceRequest;
107
113
  export declare function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourceRequest;
@@ -41,6 +41,7 @@ function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'profileUrl': !runtime_1.exists(json, 'profile_url') ? undefined : json['profile_url'],
42
42
  'consumerKey': json['consumer_key'],
43
43
  'consumerSecret': json['consumer_secret'],
44
+ 'additionalScopes': !runtime_1.exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
44
45
  };
45
46
  }
46
47
  exports.OAuthSourceRequestFromJSONTyped = OAuthSourceRequestFromJSONTyped;
@@ -66,6 +67,7 @@ function OAuthSourceRequestToJSON(value) {
66
67
  'profile_url': value.profileUrl,
67
68
  'consumer_key': value.consumerKey,
68
69
  'consumer_secret': value.consumerSecret,
70
+ 'additional_scopes': value.additionalScopes,
69
71
  };
70
72
  }
71
73
  exports.OAuthSourceRequestToJSON = OAuthSourceRequestToJSON;
@@ -102,6 +102,12 @@ export interface PatchedOAuthSourceRequest {
102
102
  * @memberof PatchedOAuthSourceRequest
103
103
  */
104
104
  consumerSecret?: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof PatchedOAuthSourceRequest
109
+ */
110
+ additionalScopes?: string;
105
111
  }
106
112
  export declare function PatchedOAuthSourceRequestFromJSON(json: any): PatchedOAuthSourceRequest;
107
113
  export declare function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOAuthSourceRequest;
@@ -41,6 +41,7 @@ function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'profileUrl': !runtime_1.exists(json, 'profile_url') ? undefined : json['profile_url'],
42
42
  'consumerKey': !runtime_1.exists(json, 'consumer_key') ? undefined : json['consumer_key'],
43
43
  'consumerSecret': !runtime_1.exists(json, 'consumer_secret') ? undefined : json['consumer_secret'],
44
+ 'additionalScopes': !runtime_1.exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
44
45
  };
45
46
  }
46
47
  exports.PatchedOAuthSourceRequestFromJSONTyped = PatchedOAuthSourceRequestFromJSONTyped;
@@ -66,6 +67,7 @@ function PatchedOAuthSourceRequestToJSON(value) {
66
67
  'profile_url': value.profileUrl,
67
68
  'consumer_key': value.consumerKey,
68
69
  'consumer_secret': value.consumerSecret,
70
+ 'additional_scopes': value.additionalScopes,
69
71
  };
70
72
  }
71
73
  exports.PatchedOAuthSourceRequestToJSON = PatchedOAuthSourceRequestToJSON;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@goauthentik/api", "version": "2021.12.4-1641213142", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
1
+ {"name": "@goauthentik/api", "version": "2021.12.4-1641224655", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
@@ -211,6 +211,7 @@ export interface SourcesOauthDestroyRequest {
211
211
 
212
212
  export interface SourcesOauthListRequest {
213
213
  accessTokenUrl?: string;
214
+ additionalScopes?: string;
214
215
  authenticationFlow?: string;
215
216
  authorizationUrl?: string;
216
217
  consumerKey?: string;
@@ -1125,6 +1126,10 @@ export class SourcesApi extends runtime.BaseAPI {
1125
1126
  queryParameters['access_token_url'] = requestParameters.accessTokenUrl;
1126
1127
  }
1127
1128
 
1129
+ if (requestParameters.additionalScopes !== undefined) {
1130
+ queryParameters['additional_scopes'] = requestParameters.additionalScopes;
1131
+ }
1132
+
1128
1133
  if (requestParameters.authenticationFlow !== undefined) {
1129
1134
  queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
1130
1135
  }
@@ -158,6 +158,12 @@ export interface OAuthSource {
158
158
  * @memberof OAuthSource
159
159
  */
160
160
  readonly callbackUrl: string;
161
+ /**
162
+ *
163
+ * @type {string}
164
+ * @memberof OAuthSource
165
+ */
166
+ additionalScopes?: string;
161
167
  /**
162
168
  *
163
169
  * @type {SourceType}
@@ -195,6 +201,7 @@ export function OAuthSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
195
201
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
196
202
  'consumerKey': json['consumer_key'],
197
203
  'callbackUrl': json['callback_url'],
204
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
198
205
  'type': SourceTypeFromJSON(json['type']),
199
206
  };
200
207
  }
@@ -221,6 +228,7 @@ export function OAuthSourceToJSON(value?: OAuthSource | null): any {
221
228
  'access_token_url': value.accessTokenUrl,
222
229
  'profile_url': value.profileUrl,
223
230
  'consumer_key': value.consumerKey,
231
+ 'additional_scopes': value.additionalScopes,
224
232
  };
225
233
  }
226
234
 
@@ -122,6 +122,12 @@ export interface OAuthSourceRequest {
122
122
  * @memberof OAuthSourceRequest
123
123
  */
124
124
  consumerSecret: string;
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof OAuthSourceRequest
129
+ */
130
+ additionalScopes?: string;
125
131
  }
126
132
 
127
133
  export function OAuthSourceRequestFromJSON(json: any): OAuthSourceRequest {
@@ -148,6 +154,7 @@ export function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator:
148
154
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
149
155
  'consumerKey': json['consumer_key'],
150
156
  'consumerSecret': json['consumer_secret'],
157
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
151
158
  };
152
159
  }
153
160
 
@@ -174,6 +181,7 @@ export function OAuthSourceRequestToJSON(value?: OAuthSourceRequest | null): any
174
181
  'profile_url': value.profileUrl,
175
182
  'consumer_key': value.consumerKey,
176
183
  'consumer_secret': value.consumerSecret,
184
+ 'additional_scopes': value.additionalScopes,
177
185
  };
178
186
  }
179
187
 
@@ -122,6 +122,12 @@ export interface PatchedOAuthSourceRequest {
122
122
  * @memberof PatchedOAuthSourceRequest
123
123
  */
124
124
  consumerSecret?: string;
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof PatchedOAuthSourceRequest
129
+ */
130
+ additionalScopes?: string;
125
131
  }
126
132
 
127
133
  export function PatchedOAuthSourceRequestFromJSON(json: any): PatchedOAuthSourceRequest {
@@ -148,6 +154,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
148
154
  'profileUrl': !exists(json, 'profile_url') ? undefined : json['profile_url'],
149
155
  'consumerKey': !exists(json, 'consumer_key') ? undefined : json['consumer_key'],
150
156
  'consumerSecret': !exists(json, 'consumer_secret') ? undefined : json['consumer_secret'],
157
+ 'additionalScopes': !exists(json, 'additional_scopes') ? undefined : json['additional_scopes'],
151
158
  };
152
159
  }
153
160
 
@@ -174,6 +181,7 @@ export function PatchedOAuthSourceRequestToJSON(value?: PatchedOAuthSourceReques
174
181
  'profile_url': value.profileUrl,
175
182
  'consumer_key': value.consumerKey,
176
183
  'consumer_secret': value.consumerSecret,
184
+ 'additional_scopes': value.additionalScopes,
177
185
  };
178
186
  }
179
187