@arcadeai/arcadejs 1.6.1 → 1.8.0
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.
- package/CHANGELOG.md +28 -0
- package/core.d.ts +5 -2
- package/core.d.ts.map +1 -1
- package/core.js +11 -6
- package/core.js.map +1 -1
- package/core.mjs +11 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +4 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +9 -2
- package/index.js.map +1 -1
- package/index.mjs +9 -2
- package/index.mjs.map +1 -1
- package/lib/zod/zod.js +1 -1
- package/lib/zod/zod.js.map +1 -1
- package/lib/zod/zod.mjs +1 -1
- package/lib/zod/zod.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/admin/admin.d.ts +18 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +48 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +21 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/auth-providers.d.ts +451 -0
- package/resources/admin/auth-providers.d.ts.map +1 -0
- package/resources/admin/auth-providers.js +39 -0
- package/resources/admin/auth-providers.js.map +1 -0
- package/resources/admin/auth-providers.mjs +35 -0
- package/resources/admin/auth-providers.mjs.map +1 -0
- package/resources/admin/index.d.ts +5 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +14 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +6 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/secrets.d.ts +39 -0
- package/resources/admin/secrets.d.ts.map +1 -0
- package/resources/admin/secrets.js +24 -0
- package/resources/admin/secrets.js.map +1 -0
- package/resources/admin/secrets.mjs +20 -0
- package/resources/admin/secrets.mjs.map +1 -0
- package/resources/admin/user-connections.d.ts +48 -0
- package/resources/admin/user-connections.d.ts.map +1 -0
- package/resources/admin/user-connections.js +33 -0
- package/resources/admin/user-connections.js.map +1 -0
- package/resources/admin/user-connections.mjs +28 -0
- package/resources/admin/user-connections.mjs.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +19 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/core.ts +11 -4
- package/src/index.ts +13 -0
- package/src/lib/zod/zod.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/admin/admin.ts +58 -0
- package/src/resources/admin/auth-providers.ts +771 -0
- package/src/resources/admin/index.ts +19 -0
- package/src/resources/admin/secrets.ts +65 -0
- package/src/resources/admin/user-connections.ts +93 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/index.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class AuthProviders extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new auth provider
|
|
9
|
+
*/
|
|
10
|
+
create(
|
|
11
|
+
body: AuthProviderCreateParams,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<AuthProviderResponse> {
|
|
14
|
+
return this._client.post('/v1/admin/auth_providers', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* List a page of auth providers that are available to the caller
|
|
19
|
+
*/
|
|
20
|
+
list(options?: Core.RequestOptions): Core.APIPromise<AuthProviderListResponse> {
|
|
21
|
+
return this._client.get('/v1/admin/auth_providers', options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Delete a specific auth provider
|
|
26
|
+
*/
|
|
27
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<AuthProviderResponse> {
|
|
28
|
+
return this._client.delete(`/v1/admin/auth_providers/${id}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get the details of a specific auth provider
|
|
33
|
+
*/
|
|
34
|
+
get(id: string, options?: Core.RequestOptions): Core.APIPromise<AuthProviderResponse> {
|
|
35
|
+
return this._client.get(`/v1/admin/auth_providers/${id}`, options);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Patch an existing auth provider
|
|
40
|
+
*/
|
|
41
|
+
patch(
|
|
42
|
+
pathId: string,
|
|
43
|
+
body: AuthProviderPatchParams,
|
|
44
|
+
options?: Core.RequestOptions,
|
|
45
|
+
): Core.APIPromise<AuthProviderResponse> {
|
|
46
|
+
return this._client.patch(`/v1/admin/auth_providers/${pathId}`, { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AuthProviderCreateRequest {
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
description?: string;
|
|
54
|
+
|
|
55
|
+
oauth2?: AuthProviderCreateRequest.Oauth2;
|
|
56
|
+
|
|
57
|
+
provider_id?: string;
|
|
58
|
+
|
|
59
|
+
status?: string;
|
|
60
|
+
|
|
61
|
+
type?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace AuthProviderCreateRequest {
|
|
65
|
+
export interface Oauth2 {
|
|
66
|
+
client_id: string;
|
|
67
|
+
|
|
68
|
+
authorize_request?: Oauth2.AuthorizeRequest;
|
|
69
|
+
|
|
70
|
+
client_secret?: string;
|
|
71
|
+
|
|
72
|
+
pkce?: Oauth2.Pkce;
|
|
73
|
+
|
|
74
|
+
refresh_request?: Oauth2.RefreshRequest;
|
|
75
|
+
|
|
76
|
+
scope_delimiter?: ',' | ' ';
|
|
77
|
+
|
|
78
|
+
token_introspection_request?: Oauth2.TokenIntrospectionRequest;
|
|
79
|
+
|
|
80
|
+
token_request?: Oauth2.TokenRequest;
|
|
81
|
+
|
|
82
|
+
user_info_request?: Oauth2.UserInfoRequest;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace Oauth2 {
|
|
86
|
+
export interface AuthorizeRequest {
|
|
87
|
+
endpoint: string;
|
|
88
|
+
|
|
89
|
+
auth_method?: string;
|
|
90
|
+
|
|
91
|
+
method?: string;
|
|
92
|
+
|
|
93
|
+
params?: Record<string, string>;
|
|
94
|
+
|
|
95
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
96
|
+
|
|
97
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
98
|
+
|
|
99
|
+
response_map?: Record<string, string>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Pkce {
|
|
103
|
+
code_challenge_method?: string;
|
|
104
|
+
|
|
105
|
+
enabled?: boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface RefreshRequest {
|
|
109
|
+
endpoint: string;
|
|
110
|
+
|
|
111
|
+
auth_method?: string;
|
|
112
|
+
|
|
113
|
+
method?: string;
|
|
114
|
+
|
|
115
|
+
params?: Record<string, string>;
|
|
116
|
+
|
|
117
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
118
|
+
|
|
119
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
120
|
+
|
|
121
|
+
response_map?: Record<string, string>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface TokenIntrospectionRequest {
|
|
125
|
+
endpoint: string;
|
|
126
|
+
|
|
127
|
+
triggers: TokenIntrospectionRequest.Triggers;
|
|
128
|
+
|
|
129
|
+
auth_method?: string;
|
|
130
|
+
|
|
131
|
+
method?: string;
|
|
132
|
+
|
|
133
|
+
params?: Record<string, string>;
|
|
134
|
+
|
|
135
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
136
|
+
|
|
137
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
138
|
+
|
|
139
|
+
response_map?: Record<string, string>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace TokenIntrospectionRequest {
|
|
143
|
+
export interface Triggers {
|
|
144
|
+
on_token_grant?: boolean;
|
|
145
|
+
|
|
146
|
+
on_token_refresh?: boolean;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface TokenRequest {
|
|
151
|
+
endpoint: string;
|
|
152
|
+
|
|
153
|
+
auth_method?: string;
|
|
154
|
+
|
|
155
|
+
method?: string;
|
|
156
|
+
|
|
157
|
+
params?: Record<string, string>;
|
|
158
|
+
|
|
159
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
160
|
+
|
|
161
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
162
|
+
|
|
163
|
+
response_map?: Record<string, string>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface UserInfoRequest {
|
|
167
|
+
endpoint: string;
|
|
168
|
+
|
|
169
|
+
triggers: UserInfoRequest.Triggers;
|
|
170
|
+
|
|
171
|
+
auth_method?: string;
|
|
172
|
+
|
|
173
|
+
method?: string;
|
|
174
|
+
|
|
175
|
+
params?: Record<string, string>;
|
|
176
|
+
|
|
177
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
178
|
+
|
|
179
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
180
|
+
|
|
181
|
+
response_map?: Record<string, string>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export namespace UserInfoRequest {
|
|
185
|
+
export interface Triggers {
|
|
186
|
+
on_token_grant?: boolean;
|
|
187
|
+
|
|
188
|
+
on_token_refresh?: boolean;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface AuthProviderResponse {
|
|
195
|
+
id?: string;
|
|
196
|
+
|
|
197
|
+
binding?: AuthProviderResponse.Binding;
|
|
198
|
+
|
|
199
|
+
created_at?: string;
|
|
200
|
+
|
|
201
|
+
description?: string;
|
|
202
|
+
|
|
203
|
+
oauth2?: AuthProviderResponse.Oauth2;
|
|
204
|
+
|
|
205
|
+
provider_id?: string;
|
|
206
|
+
|
|
207
|
+
status?: string;
|
|
208
|
+
|
|
209
|
+
type?: string;
|
|
210
|
+
|
|
211
|
+
updated_at?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export namespace AuthProviderResponse {
|
|
215
|
+
export interface Binding {
|
|
216
|
+
id?: string;
|
|
217
|
+
|
|
218
|
+
type?: 'static' | 'tenant' | 'project' | 'account';
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface Oauth2 {
|
|
222
|
+
authorize_request?: Oauth2.AuthorizeRequest;
|
|
223
|
+
|
|
224
|
+
client_id?: string;
|
|
225
|
+
|
|
226
|
+
client_secret?: Oauth2.ClientSecret;
|
|
227
|
+
|
|
228
|
+
pkce?: Oauth2.Pkce;
|
|
229
|
+
|
|
230
|
+
refresh_request?: Oauth2.RefreshRequest;
|
|
231
|
+
|
|
232
|
+
scope_delimiter?: string;
|
|
233
|
+
|
|
234
|
+
token_introspection_request?: Oauth2.TokenIntrospectionRequest;
|
|
235
|
+
|
|
236
|
+
token_request?: Oauth2.TokenRequest;
|
|
237
|
+
|
|
238
|
+
user_info_request?: Oauth2.UserInfoRequest;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace Oauth2 {
|
|
242
|
+
export interface AuthorizeRequest {
|
|
243
|
+
auth_method?: string;
|
|
244
|
+
|
|
245
|
+
endpoint?: string;
|
|
246
|
+
|
|
247
|
+
expiration_format?: string;
|
|
248
|
+
|
|
249
|
+
method?: string;
|
|
250
|
+
|
|
251
|
+
params?: Record<string, string>;
|
|
252
|
+
|
|
253
|
+
request_content_type?: string;
|
|
254
|
+
|
|
255
|
+
response_content_type?: string;
|
|
256
|
+
|
|
257
|
+
response_map?: Record<string, string>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ClientSecret {
|
|
261
|
+
binding?: 'static' | 'tenant' | 'project' | 'account';
|
|
262
|
+
|
|
263
|
+
editable?: boolean;
|
|
264
|
+
|
|
265
|
+
exists?: boolean;
|
|
266
|
+
|
|
267
|
+
hint?: string;
|
|
268
|
+
|
|
269
|
+
value?: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface Pkce {
|
|
273
|
+
code_challenge_method?: string;
|
|
274
|
+
|
|
275
|
+
enabled?: boolean;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface RefreshRequest {
|
|
279
|
+
auth_method?: string;
|
|
280
|
+
|
|
281
|
+
endpoint?: string;
|
|
282
|
+
|
|
283
|
+
expiration_format?: string;
|
|
284
|
+
|
|
285
|
+
method?: string;
|
|
286
|
+
|
|
287
|
+
params?: Record<string, string>;
|
|
288
|
+
|
|
289
|
+
request_content_type?: string;
|
|
290
|
+
|
|
291
|
+
response_content_type?: string;
|
|
292
|
+
|
|
293
|
+
response_map?: Record<string, string>;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface TokenIntrospectionRequest {
|
|
297
|
+
auth_method?: string;
|
|
298
|
+
|
|
299
|
+
enabled?: boolean;
|
|
300
|
+
|
|
301
|
+
endpoint?: string;
|
|
302
|
+
|
|
303
|
+
expiration_format?: string;
|
|
304
|
+
|
|
305
|
+
method?: string;
|
|
306
|
+
|
|
307
|
+
params?: Record<string, string>;
|
|
308
|
+
|
|
309
|
+
request_content_type?: string;
|
|
310
|
+
|
|
311
|
+
response_content_type?: string;
|
|
312
|
+
|
|
313
|
+
response_map?: Record<string, string>;
|
|
314
|
+
|
|
315
|
+
triggers?: TokenIntrospectionRequest.Triggers;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export namespace TokenIntrospectionRequest {
|
|
319
|
+
export interface Triggers {
|
|
320
|
+
on_token_grant?: boolean;
|
|
321
|
+
|
|
322
|
+
on_token_refresh?: boolean;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export interface TokenRequest {
|
|
327
|
+
auth_method?: string;
|
|
328
|
+
|
|
329
|
+
endpoint?: string;
|
|
330
|
+
|
|
331
|
+
expiration_format?: string;
|
|
332
|
+
|
|
333
|
+
method?: string;
|
|
334
|
+
|
|
335
|
+
params?: Record<string, string>;
|
|
336
|
+
|
|
337
|
+
request_content_type?: string;
|
|
338
|
+
|
|
339
|
+
response_content_type?: string;
|
|
340
|
+
|
|
341
|
+
response_map?: Record<string, string>;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface UserInfoRequest {
|
|
345
|
+
auth_method?: string;
|
|
346
|
+
|
|
347
|
+
endpoint?: string;
|
|
348
|
+
|
|
349
|
+
expiration_format?: string;
|
|
350
|
+
|
|
351
|
+
method?: string;
|
|
352
|
+
|
|
353
|
+
params?: Record<string, string>;
|
|
354
|
+
|
|
355
|
+
request_content_type?: string;
|
|
356
|
+
|
|
357
|
+
response_content_type?: string;
|
|
358
|
+
|
|
359
|
+
response_map?: Record<string, string>;
|
|
360
|
+
|
|
361
|
+
triggers?: UserInfoRequest.Triggers;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export namespace UserInfoRequest {
|
|
365
|
+
export interface Triggers {
|
|
366
|
+
on_token_grant?: boolean;
|
|
367
|
+
|
|
368
|
+
on_token_refresh?: boolean;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export interface AuthProviderUpdateRequest {
|
|
375
|
+
id?: string;
|
|
376
|
+
|
|
377
|
+
description?: string;
|
|
378
|
+
|
|
379
|
+
oauth2?: AuthProviderUpdateRequest.Oauth2;
|
|
380
|
+
|
|
381
|
+
provider_id?: string;
|
|
382
|
+
|
|
383
|
+
status?: string;
|
|
384
|
+
|
|
385
|
+
type?: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export namespace AuthProviderUpdateRequest {
|
|
389
|
+
export interface Oauth2 {
|
|
390
|
+
authorize_request?: Oauth2.AuthorizeRequest;
|
|
391
|
+
|
|
392
|
+
client_id?: string;
|
|
393
|
+
|
|
394
|
+
client_secret?: string;
|
|
395
|
+
|
|
396
|
+
pkce?: Oauth2.Pkce;
|
|
397
|
+
|
|
398
|
+
refresh_request?: Oauth2.RefreshRequest;
|
|
399
|
+
|
|
400
|
+
scope_delimiter?: ',' | ' ';
|
|
401
|
+
|
|
402
|
+
token_request?: Oauth2.TokenRequest;
|
|
403
|
+
|
|
404
|
+
user_info_request?: Oauth2.UserInfoRequest;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export namespace Oauth2 {
|
|
408
|
+
export interface AuthorizeRequest {
|
|
409
|
+
auth_method?: string;
|
|
410
|
+
|
|
411
|
+
endpoint?: string;
|
|
412
|
+
|
|
413
|
+
method?: string;
|
|
414
|
+
|
|
415
|
+
params?: Record<string, string>;
|
|
416
|
+
|
|
417
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
418
|
+
|
|
419
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
420
|
+
|
|
421
|
+
response_map?: Record<string, string>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface Pkce {
|
|
425
|
+
code_challenge_method?: string;
|
|
426
|
+
|
|
427
|
+
enabled?: boolean;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface RefreshRequest {
|
|
431
|
+
auth_method?: string;
|
|
432
|
+
|
|
433
|
+
endpoint?: string;
|
|
434
|
+
|
|
435
|
+
method?: string;
|
|
436
|
+
|
|
437
|
+
params?: Record<string, string>;
|
|
438
|
+
|
|
439
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
440
|
+
|
|
441
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
442
|
+
|
|
443
|
+
response_map?: Record<string, string>;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export interface TokenRequest {
|
|
447
|
+
auth_method?: string;
|
|
448
|
+
|
|
449
|
+
endpoint?: string;
|
|
450
|
+
|
|
451
|
+
method?: string;
|
|
452
|
+
|
|
453
|
+
params?: Record<string, string>;
|
|
454
|
+
|
|
455
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
456
|
+
|
|
457
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
458
|
+
|
|
459
|
+
response_map?: Record<string, string>;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface UserInfoRequest {
|
|
463
|
+
auth_method?: string;
|
|
464
|
+
|
|
465
|
+
endpoint?: string;
|
|
466
|
+
|
|
467
|
+
method?: string;
|
|
468
|
+
|
|
469
|
+
params?: Record<string, string>;
|
|
470
|
+
|
|
471
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
472
|
+
|
|
473
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
474
|
+
|
|
475
|
+
response_map?: Record<string, string>;
|
|
476
|
+
|
|
477
|
+
triggers?: UserInfoRequest.Triggers;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export namespace UserInfoRequest {
|
|
481
|
+
export interface Triggers {
|
|
482
|
+
on_token_grant?: boolean;
|
|
483
|
+
|
|
484
|
+
on_token_refresh?: boolean;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export interface AuthProviderListResponse {
|
|
491
|
+
items?: Array<AuthProviderResponse>;
|
|
492
|
+
|
|
493
|
+
limit?: number;
|
|
494
|
+
|
|
495
|
+
offset?: number;
|
|
496
|
+
|
|
497
|
+
page_count?: number;
|
|
498
|
+
|
|
499
|
+
total_count?: number;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export interface AuthProviderCreateParams {
|
|
503
|
+
id: string;
|
|
504
|
+
|
|
505
|
+
description?: string;
|
|
506
|
+
|
|
507
|
+
oauth2?: AuthProviderCreateParams.Oauth2;
|
|
508
|
+
|
|
509
|
+
provider_id?: string;
|
|
510
|
+
|
|
511
|
+
status?: string;
|
|
512
|
+
|
|
513
|
+
type?: string;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export namespace AuthProviderCreateParams {
|
|
517
|
+
export interface Oauth2 {
|
|
518
|
+
client_id: string;
|
|
519
|
+
|
|
520
|
+
authorize_request?: Oauth2.AuthorizeRequest;
|
|
521
|
+
|
|
522
|
+
client_secret?: string;
|
|
523
|
+
|
|
524
|
+
pkce?: Oauth2.Pkce;
|
|
525
|
+
|
|
526
|
+
refresh_request?: Oauth2.RefreshRequest;
|
|
527
|
+
|
|
528
|
+
scope_delimiter?: ',' | ' ';
|
|
529
|
+
|
|
530
|
+
token_introspection_request?: Oauth2.TokenIntrospectionRequest;
|
|
531
|
+
|
|
532
|
+
token_request?: Oauth2.TokenRequest;
|
|
533
|
+
|
|
534
|
+
user_info_request?: Oauth2.UserInfoRequest;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export namespace Oauth2 {
|
|
538
|
+
export interface AuthorizeRequest {
|
|
539
|
+
endpoint: string;
|
|
540
|
+
|
|
541
|
+
auth_method?: string;
|
|
542
|
+
|
|
543
|
+
method?: string;
|
|
544
|
+
|
|
545
|
+
params?: Record<string, string>;
|
|
546
|
+
|
|
547
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
548
|
+
|
|
549
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
550
|
+
|
|
551
|
+
response_map?: Record<string, string>;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface Pkce {
|
|
555
|
+
code_challenge_method?: string;
|
|
556
|
+
|
|
557
|
+
enabled?: boolean;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export interface RefreshRequest {
|
|
561
|
+
endpoint: string;
|
|
562
|
+
|
|
563
|
+
auth_method?: string;
|
|
564
|
+
|
|
565
|
+
method?: string;
|
|
566
|
+
|
|
567
|
+
params?: Record<string, string>;
|
|
568
|
+
|
|
569
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
570
|
+
|
|
571
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
572
|
+
|
|
573
|
+
response_map?: Record<string, string>;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export interface TokenIntrospectionRequest {
|
|
577
|
+
endpoint: string;
|
|
578
|
+
|
|
579
|
+
triggers: TokenIntrospectionRequest.Triggers;
|
|
580
|
+
|
|
581
|
+
auth_method?: string;
|
|
582
|
+
|
|
583
|
+
method?: string;
|
|
584
|
+
|
|
585
|
+
params?: Record<string, string>;
|
|
586
|
+
|
|
587
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
588
|
+
|
|
589
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
590
|
+
|
|
591
|
+
response_map?: Record<string, string>;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export namespace TokenIntrospectionRequest {
|
|
595
|
+
export interface Triggers {
|
|
596
|
+
on_token_grant?: boolean;
|
|
597
|
+
|
|
598
|
+
on_token_refresh?: boolean;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export interface TokenRequest {
|
|
603
|
+
endpoint: string;
|
|
604
|
+
|
|
605
|
+
auth_method?: string;
|
|
606
|
+
|
|
607
|
+
method?: string;
|
|
608
|
+
|
|
609
|
+
params?: Record<string, string>;
|
|
610
|
+
|
|
611
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
612
|
+
|
|
613
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
614
|
+
|
|
615
|
+
response_map?: Record<string, string>;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export interface UserInfoRequest {
|
|
619
|
+
endpoint: string;
|
|
620
|
+
|
|
621
|
+
triggers: UserInfoRequest.Triggers;
|
|
622
|
+
|
|
623
|
+
auth_method?: string;
|
|
624
|
+
|
|
625
|
+
method?: string;
|
|
626
|
+
|
|
627
|
+
params?: Record<string, string>;
|
|
628
|
+
|
|
629
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
630
|
+
|
|
631
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
632
|
+
|
|
633
|
+
response_map?: Record<string, string>;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export namespace UserInfoRequest {
|
|
637
|
+
export interface Triggers {
|
|
638
|
+
on_token_grant?: boolean;
|
|
639
|
+
|
|
640
|
+
on_token_refresh?: boolean;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export interface AuthProviderPatchParams {
|
|
647
|
+
body_id?: string;
|
|
648
|
+
|
|
649
|
+
description?: string;
|
|
650
|
+
|
|
651
|
+
oauth2?: AuthProviderPatchParams.Oauth2;
|
|
652
|
+
|
|
653
|
+
provider_id?: string;
|
|
654
|
+
|
|
655
|
+
status?: string;
|
|
656
|
+
|
|
657
|
+
type?: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export namespace AuthProviderPatchParams {
|
|
661
|
+
export interface Oauth2 {
|
|
662
|
+
authorize_request?: Oauth2.AuthorizeRequest;
|
|
663
|
+
|
|
664
|
+
client_id?: string;
|
|
665
|
+
|
|
666
|
+
client_secret?: string;
|
|
667
|
+
|
|
668
|
+
pkce?: Oauth2.Pkce;
|
|
669
|
+
|
|
670
|
+
refresh_request?: Oauth2.RefreshRequest;
|
|
671
|
+
|
|
672
|
+
scope_delimiter?: ',' | ' ';
|
|
673
|
+
|
|
674
|
+
token_request?: Oauth2.TokenRequest;
|
|
675
|
+
|
|
676
|
+
user_info_request?: Oauth2.UserInfoRequest;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export namespace Oauth2 {
|
|
680
|
+
export interface AuthorizeRequest {
|
|
681
|
+
auth_method?: string;
|
|
682
|
+
|
|
683
|
+
endpoint?: string;
|
|
684
|
+
|
|
685
|
+
method?: string;
|
|
686
|
+
|
|
687
|
+
params?: Record<string, string>;
|
|
688
|
+
|
|
689
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
690
|
+
|
|
691
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
692
|
+
|
|
693
|
+
response_map?: Record<string, string>;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface Pkce {
|
|
697
|
+
code_challenge_method?: string;
|
|
698
|
+
|
|
699
|
+
enabled?: boolean;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export interface RefreshRequest {
|
|
703
|
+
auth_method?: string;
|
|
704
|
+
|
|
705
|
+
endpoint?: string;
|
|
706
|
+
|
|
707
|
+
method?: string;
|
|
708
|
+
|
|
709
|
+
params?: Record<string, string>;
|
|
710
|
+
|
|
711
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
712
|
+
|
|
713
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
714
|
+
|
|
715
|
+
response_map?: Record<string, string>;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export interface TokenRequest {
|
|
719
|
+
auth_method?: string;
|
|
720
|
+
|
|
721
|
+
endpoint?: string;
|
|
722
|
+
|
|
723
|
+
method?: string;
|
|
724
|
+
|
|
725
|
+
params?: Record<string, string>;
|
|
726
|
+
|
|
727
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
728
|
+
|
|
729
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
730
|
+
|
|
731
|
+
response_map?: Record<string, string>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export interface UserInfoRequest {
|
|
735
|
+
auth_method?: string;
|
|
736
|
+
|
|
737
|
+
endpoint?: string;
|
|
738
|
+
|
|
739
|
+
method?: string;
|
|
740
|
+
|
|
741
|
+
params?: Record<string, string>;
|
|
742
|
+
|
|
743
|
+
request_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
744
|
+
|
|
745
|
+
response_content_type?: 'application/x-www-form-urlencoded' | 'application/json';
|
|
746
|
+
|
|
747
|
+
response_map?: Record<string, string>;
|
|
748
|
+
|
|
749
|
+
triggers?: UserInfoRequest.Triggers;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export namespace UserInfoRequest {
|
|
753
|
+
export interface Triggers {
|
|
754
|
+
on_token_grant?: boolean;
|
|
755
|
+
|
|
756
|
+
on_token_refresh?: boolean;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export declare namespace AuthProviders {
|
|
763
|
+
export {
|
|
764
|
+
type AuthProviderCreateRequest as AuthProviderCreateRequest,
|
|
765
|
+
type AuthProviderResponse as AuthProviderResponse,
|
|
766
|
+
type AuthProviderUpdateRequest as AuthProviderUpdateRequest,
|
|
767
|
+
type AuthProviderListResponse as AuthProviderListResponse,
|
|
768
|
+
type AuthProviderCreateParams as AuthProviderCreateParams,
|
|
769
|
+
type AuthProviderPatchParams as AuthProviderPatchParams,
|
|
770
|
+
};
|
|
771
|
+
}
|