@affinidi/cli 2.12.0 → 2.14.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.
Files changed (86) hide show
  1. package/README.md +0 -1
  2. package/bin/dev.cmd +1 -1
  3. package/bin/dev.js +1 -1
  4. package/dist/commands/generate/app.js.map +1 -1
  5. package/dist/commands/iam/get-policies.d.ts +1 -1
  6. package/dist/commands/iam/get-policies.js.map +1 -1
  7. package/dist/commands/iam/list-principals.d.ts +1 -1
  8. package/dist/commands/iam/list-principals.js.map +1 -1
  9. package/dist/commands/iam/update-policies.d.ts +1 -1
  10. package/dist/commands/iam/update-policies.js.map +1 -1
  11. package/dist/commands/iota/create-config.d.ts +2 -1
  12. package/dist/commands/iota/create-config.js +28 -10
  13. package/dist/commands/iota/create-config.js.map +1 -1
  14. package/dist/commands/iota/update-config.d.ts +0 -1
  15. package/dist/commands/iota/update-config.js +0 -5
  16. package/dist/commands/iota/update-config.js.map +1 -1
  17. package/dist/commands/issuance/create-config.d.ts +2 -0
  18. package/dist/commands/issuance/create-config.js +32 -1
  19. package/dist/commands/issuance/create-config.js.map +1 -1
  20. package/dist/commands/issuance/update-config.d.ts +2 -0
  21. package/dist/commands/issuance/update-config.js +40 -2
  22. package/dist/commands/issuance/update-config.js.map +1 -1
  23. package/dist/commands/login/add-user-to-group.d.ts +3 -1
  24. package/dist/commands/login/add-user-to-group.js +14 -2
  25. package/dist/commands/login/add-user-to-group.js.map +1 -1
  26. package/dist/commands/login/create-config.d.ts +1 -1
  27. package/dist/commands/login/create-config.js +1 -1
  28. package/dist/commands/login/create-config.js.map +1 -1
  29. package/dist/commands/login/create-group.d.ts +1 -1
  30. package/dist/commands/login/create-group.js.map +1 -1
  31. package/dist/commands/login/get-config.d.ts +1 -1
  32. package/dist/commands/login/get-config.js.map +1 -1
  33. package/dist/commands/login/get-group.d.ts +1 -1
  34. package/dist/commands/login/get-group.js.map +1 -1
  35. package/dist/commands/login/import-configs.d.ts +1 -1
  36. package/dist/commands/login/import-configs.js +1 -1
  37. package/dist/commands/login/import-configs.js.map +1 -1
  38. package/dist/commands/login/import-groups.d.ts +1 -1
  39. package/dist/commands/login/import-groups.js.map +1 -1
  40. package/dist/commands/login/list-configs.d.ts +1 -1
  41. package/dist/commands/login/list-configs.js.map +1 -1
  42. package/dist/commands/login/list-groups.d.ts +1 -1
  43. package/dist/commands/login/list-groups.js.map +1 -1
  44. package/dist/commands/login/list-users-in-group.d.ts +1 -1
  45. package/dist/commands/login/list-users-in-group.js +1 -4
  46. package/dist/commands/login/list-users-in-group.js.map +1 -1
  47. package/dist/commands/login/update-config.d.ts +1 -1
  48. package/dist/commands/login/update-config.js +1 -1
  49. package/dist/commands/login/update-config.js.map +1 -1
  50. package/dist/commands/project/create-project.d.ts +1 -1
  51. package/dist/commands/project/create-project.js.map +1 -1
  52. package/dist/commands/project/get-active-project.d.ts +1 -1
  53. package/dist/commands/project/get-active-project.js.map +1 -1
  54. package/dist/commands/project/list-projects.d.ts +1 -1
  55. package/dist/commands/project/list-projects.js.map +1 -1
  56. package/dist/commands/project/select-project.d.ts +1 -1
  57. package/dist/commands/project/select-project.js.map +1 -1
  58. package/dist/commands/project/update-project.d.ts +1 -1
  59. package/dist/commands/project/update-project.js +1 -2
  60. package/dist/commands/project/update-project.js.map +1 -1
  61. package/dist/commands/token/create-token.d.ts +1 -1
  62. package/dist/commands/token/create-token.js.map +1 -1
  63. package/dist/commands/token/get-token.d.ts +1 -1
  64. package/dist/commands/token/get-token.js.map +1 -1
  65. package/dist/commands/token/list-tokens.d.ts +1 -1
  66. package/dist/commands/token/list-tokens.js.map +1 -1
  67. package/dist/commands/token/update-token.d.ts +1 -1
  68. package/dist/commands/token/update-token.js.map +1 -1
  69. package/dist/helpers/token.d.ts +5 -5
  70. package/dist/helpers/token.js.map +1 -1
  71. package/dist/services/affinidi/bff-service.d.ts +2 -2
  72. package/dist/services/affinidi/bff-service.js +2 -2
  73. package/dist/services/affinidi/bff-service.js.map +1 -1
  74. package/dist/services/affinidi/iam/service.d.ts +9 -6
  75. package/dist/services/affinidi/iam/service.js +23 -39
  76. package/dist/services/affinidi/iam/service.js.map +1 -1
  77. package/dist/services/affinidi/vp-adapter/service.d.ts +8 -11
  78. package/dist/services/affinidi/vp-adapter/service.js +22 -40
  79. package/dist/services/affinidi/vp-adapter/service.js.map +1 -1
  80. package/package.json +16 -13
  81. package/dist/services/affinidi/iam/iam.api.d.ts +0 -475
  82. package/dist/services/affinidi/iam/iam.api.js +0 -336
  83. package/dist/services/affinidi/iam/iam.api.js.map +0 -1
  84. package/dist/services/affinidi/vp-adapter/vp-adapter.api.d.ts +0 -1025
  85. package/dist/services/affinidi/vp-adapter/vp-adapter.api.js +0 -681
  86. package/dist/services/affinidi/vp-adapter/vp-adapter.api.js.map +0 -1
@@ -1,681 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- /*
4
- * ---------------------------------------------------------------
5
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
6
- * ## ##
7
- * ## AUTHOR: acacode ##
8
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
9
- * ---------------------------------------------------------------
10
- */
11
- /** Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send client_id and client_secret as application/x-www-form-urlencoded in the HTTP body. `client_secret_basic`: Send client_id and client_secret as application/x-www-form-urlencoded encoded in the HTTP Authorization header. `none`: For public clients (native/mobile apps) which can not have secret. */
12
- export var TokenEndpointAuthMethod;
13
- (function (TokenEndpointAuthMethod) {
14
- TokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic";
15
- TokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post";
16
- TokenEndpointAuthMethod["None"] = "none";
17
- })(TokenEndpointAuthMethod || (TokenEndpointAuthMethod = {}));
18
- import axios from 'axios';
19
- export var ContentType;
20
- (function (ContentType) {
21
- ContentType["Json"] = "application/json";
22
- ContentType["FormData"] = "multipart/form-data";
23
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
24
- ContentType["Text"] = "text/plain";
25
- })(ContentType || (ContentType = {}));
26
- export class HttpClient {
27
- constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
28
- this.securityData = null;
29
- this.setSecurityData = (data) => {
30
- this.securityData = data;
31
- };
32
- this.request = async ({ secure, path, type, query, format, body, ...params }) => {
33
- const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
34
- this.securityWorker &&
35
- (await this.securityWorker(this.securityData))) ||
36
- {};
37
- const requestParams = this.mergeRequestParams(params, secureParams);
38
- const responseFormat = format || this.format || undefined;
39
- if (type === ContentType.FormData && body && body !== null && typeof body === 'object') {
40
- body = this.createFormData(body);
41
- }
42
- if (type === ContentType.Text && body && body !== null && typeof body !== 'string') {
43
- body = JSON.stringify(body);
44
- }
45
- return this.instance.request({
46
- ...requestParams,
47
- headers: {
48
- ...(requestParams.headers || {}),
49
- ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {}),
50
- },
51
- params: query,
52
- responseType: responseFormat,
53
- data: body,
54
- url: path,
55
- });
56
- };
57
- this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || '/' });
58
- this.secure = secure;
59
- this.format = format;
60
- this.securityWorker = securityWorker;
61
- }
62
- mergeRequestParams(params1, params2) {
63
- const method = params1.method || (params2 && params2.method);
64
- return {
65
- ...this.instance.defaults,
66
- ...params1,
67
- ...(params2 || {}),
68
- headers: {
69
- ...((method && this.instance.defaults.headers[method.toLowerCase()]) || {}),
70
- ...(params1.headers || {}),
71
- ...((params2 && params2.headers) || {}),
72
- },
73
- };
74
- }
75
- stringifyFormItem(formItem) {
76
- if (typeof formItem === 'object' && formItem !== null) {
77
- return JSON.stringify(formItem);
78
- }
79
- else {
80
- return `${formItem}`;
81
- }
82
- }
83
- createFormData(input) {
84
- return Object.keys(input || {}).reduce((formData, key) => {
85
- const property = input[key];
86
- const propertyContent = property instanceof Array ? property : [property];
87
- for (const formItem of propertyContent) {
88
- const isFileType = formItem instanceof Blob || formItem instanceof File;
89
- formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
90
- }
91
- return formData;
92
- }, new FormData());
93
- }
94
- }
95
- /**
96
- * @title OidcVpAdapterBackend
97
- * @version 1.0.0
98
- * @baseUrl /
99
- * @contact nucleus <nucleus.team@affinidi.com>
100
- *
101
- * Affinidi OIDC VP Adapter Backend
102
- *
103
- * An authorization token is necessary to create or obtain a project Access Token and access Admin APIs. Follow these step-by-step [instructions](https://lemmatree.atlassian.net/wiki/spaces/NETCORE/pages/2735317648020/ASA+Developer+Flow#Instructions-on-how-to-create-the-Project.) to set up an authorization token
104
- */
105
- export class Api extends HttpClient {
106
- constructor() {
107
- super(...arguments);
108
- this.v1 = {
109
- /**
110
- * @description IDP consent request automated by adapter frontend
111
- *
112
- * @tags consent
113
- * @name ConsentRequest
114
- * @summary IDP consent request automated by adapter frontend
115
- * @request GET:/v1/consent/request
116
- */
117
- consentRequest: (query, params = {}) => this.request({
118
- path: `/v1/consent/request`,
119
- method: 'GET',
120
- query: query,
121
- ...params,
122
- }),
123
- /**
124
- * @description Creates Login Session for IDP Login by using the Login Challenge
125
- *
126
- * @tags session
127
- * @name LoginSessionForIdp
128
- * @summary Create Login Session for IDP Login
129
- * @request POST:/v1/login/sessions/for-idp
130
- */
131
- loginSessionForIdp: (data, params = {}) => this.request({
132
- path: `/v1/login/sessions/for-idp`,
133
- method: 'POST',
134
- body: data,
135
- ...params,
136
- }),
137
- /**
138
- * @description Enable CORS by returning correct headers
139
- *
140
- * @tags cors
141
- * @name CorsLoginSessionForIdp
142
- * @summary CORS Support
143
- * @request OPTIONS:/v1/login/sessions/for-idp
144
- */
145
- corsLoginSessionForIdp: (params = {}) => this.request({
146
- path: `/v1/login/sessions/for-idp`,
147
- method: 'OPTIONS',
148
- ...params,
149
- }),
150
- /**
151
- * @description Accepts and Validates the OIDC VP Response sent by the Wallet
152
- *
153
- * @tags session
154
- * @name LoginSessionAcceptResponse
155
- * @summary Accept OIDC VP Response for Login Session
156
- * @request POST:/v1/login/sessions/{sessionId}/accept-response
157
- */
158
- loginSessionAcceptResponse: (sessionId, data, params = {}) => this.request({
159
- path: `/v1/login/sessions/${sessionId}/accept-response`,
160
- method: 'POST',
161
- body: data,
162
- ...params,
163
- }),
164
- /**
165
- * @description Enable CORS by returning correct headers
166
- *
167
- * @tags cors
168
- * @name CorsLoginSessionAcceptResponse
169
- * @summary CORS Support
170
- * @request OPTIONS:/v1/login/sessions/{sessionId}/accept-response
171
- */
172
- corsLoginSessionAcceptResponse: (sessionId, params = {}) => this.request({
173
- path: `/v1/login/sessions/${sessionId}/accept-response`,
174
- method: 'OPTIONS',
175
- ...params,
176
- }),
177
- /**
178
- * @description The user declines the request for access to their data
179
- *
180
- * @tags session
181
- * @name LoginSessionRejectResponse
182
- * @summary Reject Response for Login Session
183
- * @request POST:/v1/login/sessions/{sessionId}/reject-response
184
- */
185
- loginSessionRejectResponse: (sessionId, data, params = {}) => this.request({
186
- path: `/v1/login/sessions/${sessionId}/reject-response`,
187
- method: 'POST',
188
- body: data,
189
- ...params,
190
- }),
191
- /**
192
- * @description Enable CORS by returning correct headers
193
- *
194
- * @tags cors
195
- * @name CorsLoginSessionRejectResponse
196
- * @summary CORS Support
197
- * @request OPTIONS:/v1/login/sessions/{sessionId}/reject-response
198
- */
199
- corsLoginSessionRejectResponse: (sessionId, params = {}) => this.request({
200
- path: `/v1/login/sessions/${sessionId}/reject-response`,
201
- method: 'OPTIONS',
202
- ...params,
203
- }),
204
- /**
205
- * @description Endpoint to retrieve list of login configurations
206
- *
207
- * @tags configuration
208
- * @name ListLoginConfigurations
209
- * @summary List login configurations
210
- * @request GET:/v1/login/configurations
211
- * @secure
212
- */
213
- listLoginConfigurations: (query, params = {}) => this.request({
214
- path: `/v1/login/configurations`,
215
- method: 'GET',
216
- query: query,
217
- secure: true,
218
- ...params,
219
- }),
220
- /**
221
- * @description Create a new login configuration `vpDefinition` and `idTokenMapping` have default settings that provide user email VP presentation definitions. An essential default definition is in place when it comes to the login process for end users using the Chrome extension. This definition requires users to input their email address as OIDCVP compliant, which is then verified by the Affinidi verification service.
222
- *
223
- * @tags configuration
224
- * @name CreateLoginConfigurations
225
- * @summary Create a new login configuration
226
- * @request POST:/v1/login/configurations
227
- * @secure
228
- */
229
- createLoginConfigurations: (data, params = {}) => this.request({
230
- path: `/v1/login/configurations`,
231
- method: 'POST',
232
- body: data,
233
- secure: true,
234
- ...params,
235
- }),
236
- /**
237
- * @description Get login configuration by ID
238
- *
239
- * @tags configuration
240
- * @name GetLoginConfigurationsById
241
- * @summary Get login configuration by ID
242
- * @request GET:/v1/login/configurations/{configurationId}
243
- * @secure
244
- */
245
- getLoginConfigurationsById: (configurationId, params = {}) => this.request({
246
- path: `/v1/login/configurations/${configurationId}`,
247
- method: 'GET',
248
- secure: true,
249
- ...params,
250
- }),
251
- /**
252
- * @description Update login configurations by ID
253
- *
254
- * @tags configuration
255
- * @name UpdateLoginConfigurationsById
256
- * @summary Update login configurations by ID
257
- * @request PATCH:/v1/login/configurations/{configurationId}
258
- * @secure
259
- */
260
- updateLoginConfigurationsById: (configurationId, data, params = {}) => this.request({
261
- path: `/v1/login/configurations/${configurationId}`,
262
- method: 'PATCH',
263
- body: data,
264
- secure: true,
265
- ...params,
266
- }),
267
- /**
268
- * @description Delete login configurations by ID
269
- *
270
- * @tags configuration
271
- * @name DeleteLoginConfigurationsById
272
- * @summary Delete login configurations by ID
273
- * @request DELETE:/v1/login/configurations/{configurationId}
274
- * @secure
275
- */
276
- deleteLoginConfigurationsById: (configurationId, params = {}) => this.request({
277
- path: `/v1/login/configurations/${configurationId}`,
278
- method: 'DELETE',
279
- secure: true,
280
- ...params,
281
- }),
282
- /**
283
- * @description Get Client Metadata By OAuth 2.0 Client ID
284
- *
285
- * @tags configuration
286
- * @name GetClientMetadataByClientId
287
- * @summary Get Client Metadata By OAuth 2.0 Client ID
288
- * @request GET:/v1/login/configurations/metadata/{clientId}
289
- */
290
- getClientMetadataByClientId: (clientId, params = {}) => this.request({
291
- path: `/v1/login/configurations/metadata/${clientId}`,
292
- method: 'GET',
293
- ...params,
294
- }),
295
- /**
296
- * No description
297
- *
298
- * @tags group
299
- * @name ListGroups
300
- * @request GET:/v1/groups
301
- * @secure
302
- */
303
- listGroups: (params = {}) => this.request({
304
- path: `/v1/groups`,
305
- method: 'GET',
306
- secure: true,
307
- ...params,
308
- }),
309
- /**
310
- * No description
311
- *
312
- * @tags group
313
- * @name CreateGroup
314
- * @request POST:/v1/groups
315
- * @secure
316
- */
317
- createGroup: (data, params = {}) => this.request({
318
- path: `/v1/groups`,
319
- method: 'POST',
320
- body: data,
321
- secure: true,
322
- ...params,
323
- }),
324
- /**
325
- * No description
326
- *
327
- * @tags group
328
- * @name GetGroupById
329
- * @request GET:/v1/groups/{groupName}
330
- * @secure
331
- */
332
- getGroupById: (groupName, params = {}) => this.request({
333
- path: `/v1/groups/${groupName}`,
334
- method: 'GET',
335
- secure: true,
336
- ...params,
337
- }),
338
- /**
339
- * No description
340
- *
341
- * @tags group
342
- * @name DeleteGroup
343
- * @request DELETE:/v1/groups/{groupName}
344
- * @secure
345
- */
346
- deleteGroup: (groupName, params = {}) => this.request({
347
- path: `/v1/groups/${groupName}`,
348
- method: 'DELETE',
349
- secure: true,
350
- ...params,
351
- }),
352
- /**
353
- * No description
354
- *
355
- * @tags group
356
- * @name ListGroupUserMappings
357
- * @request GET:/v1/groups/{groupName}/users
358
- * @secure
359
- */
360
- listGroupUserMappings: (groupName, query, params = {}) => this.request({
361
- path: `/v1/groups/${groupName}/users`,
362
- method: 'GET',
363
- query: query,
364
- secure: true,
365
- ...params,
366
- }),
367
- /**
368
- * No description
369
- *
370
- * @tags group
371
- * @name AddUserToGroup
372
- * @request POST:/v1/groups/{groupName}/users
373
- * @secure
374
- */
375
- addUserToGroup: (groupName, data, params = {}) => this.request({
376
- path: `/v1/groups/${groupName}/users`,
377
- method: 'POST',
378
- body: data,
379
- secure: true,
380
- ...params,
381
- }),
382
- /**
383
- * No description
384
- *
385
- * @tags group
386
- * @name RemoveUserFromGroup
387
- * @request DELETE:/v1/groups/{groupName}/users
388
- * @secure
389
- */
390
- removeUserFromGroup: (groupName, data, params = {}) => this.request({
391
- path: `/v1/groups/${groupName}/users`,
392
- method: 'DELETE',
393
- body: data,
394
- secure: true,
395
- ...params,
396
- }),
397
- /**
398
- * @description Block Single or Multiple Groups
399
- *
400
- * @tags deny-list
401
- * @name BlockGroups
402
- * @request POST:/v1/deny-list/groups/add
403
- * @secure
404
- */
405
- blockGroups: (data, params = {}) => this.request({
406
- path: `/v1/deny-list/groups/add`,
407
- method: 'POST',
408
- body: data,
409
- secure: true,
410
- ...params,
411
- }),
412
- /**
413
- * @description Get Blocked Groups
414
- *
415
- * @tags deny-list
416
- * @name ListBlockedGroups
417
- * @request GET:/v1/deny-list/groups
418
- * @secure
419
- */
420
- listBlockedGroups: (query, params = {}) => this.request({
421
- path: `/v1/deny-list/groups`,
422
- method: 'GET',
423
- query: query,
424
- secure: true,
425
- ...params,
426
- }),
427
- /**
428
- * @description Unblock Single or Multiple Groups
429
- *
430
- * @tags deny-list
431
- * @name UnblockGroups
432
- * @request POST:/v1/deny-list/groups/remove
433
- * @secure
434
- */
435
- unblockGroups: (data, params = {}) => this.request({
436
- path: `/v1/deny-list/groups/remove`,
437
- method: 'POST',
438
- body: data,
439
- secure: true,
440
- ...params,
441
- }),
442
- /**
443
- * @description Block Single or Multiple user ids
444
- *
445
- * @tags deny-list
446
- * @name BlockUsers
447
- * @request POST:/v1/deny-list/users/add
448
- * @secure
449
- */
450
- blockUsers: (data, params = {}) => this.request({
451
- path: `/v1/deny-list/users/add`,
452
- method: 'POST',
453
- body: data,
454
- secure: true,
455
- ...params,
456
- }),
457
- /**
458
- * @description Get List of Blocked Users
459
- *
460
- * @tags deny-list
461
- * @name ListBlockedUsers
462
- * @request GET:/v1/deny-list/users
463
- * @secure
464
- */
465
- listBlockedUsers: (query, params = {}) => this.request({
466
- path: `/v1/deny-list/users`,
467
- method: 'GET',
468
- query: query,
469
- secure: true,
470
- ...params,
471
- }),
472
- /**
473
- * @description Unblock Single or Multiple user ids
474
- *
475
- * @tags deny-list
476
- * @name UnblockUsers
477
- * @request POST:/v1/deny-list/users/remove
478
- * @secure
479
- */
480
- unblockUsers: (data, params = {}) => this.request({
481
- path: `/v1/deny-list/users/remove`,
482
- method: 'POST',
483
- body: data,
484
- secure: true,
485
- ...params,
486
- }),
487
- /**
488
- * @description Allow Single or Multiple Groups
489
- *
490
- * @tags allow-list
491
- * @name AllowGroups
492
- * @request POST:/v1/allow-list/groups/add
493
- * @secure
494
- */
495
- allowGroups: (data, params = {}) => this.request({
496
- path: `/v1/allow-list/groups/add`,
497
- method: 'POST',
498
- body: data,
499
- secure: true,
500
- ...params,
501
- }),
502
- /**
503
- * @description Get Allowed Groups
504
- *
505
- * @tags allow-list
506
- * @name ListAllowedGroups
507
- * @request GET:/v1/allow-list/groups
508
- * @secure
509
- */
510
- listAllowedGroups: (query, params = {}) => this.request({
511
- path: `/v1/allow-list/groups`,
512
- method: 'GET',
513
- query: query,
514
- secure: true,
515
- ...params,
516
- }),
517
- /**
518
- * @description Disallow Single or Multiple Groups
519
- *
520
- * @tags allow-list
521
- * @name DisallowGroups
522
- * @request POST:/v1/allow-list/groups/remove
523
- * @secure
524
- */
525
- disallowGroups: (data, params = {}) => this.request({
526
- path: `/v1/allow-list/groups/remove`,
527
- method: 'POST',
528
- body: data,
529
- secure: true,
530
- ...params,
531
- }),
532
- /**
533
- * No description
534
- *
535
- * @name LoginAdminProxyList
536
- * @request GET:/v1/login/admin/{proxy+}
537
- */
538
- loginAdminProxyList: (proxy, params = {}) => this.request({
539
- path: `/v1/login/admin/{proxy+}`,
540
- method: 'GET',
541
- ...params,
542
- }),
543
- /**
544
- * No description
545
- *
546
- * @name LoginAdminProxyCreate
547
- * @request POST:/v1/login/admin/{proxy+}
548
- */
549
- loginAdminProxyCreate: (proxy, params = {}) => this.request({
550
- path: `/v1/login/admin/{proxy+}`,
551
- method: 'POST',
552
- ...params,
553
- }),
554
- /**
555
- * No description
556
- *
557
- * @name LoginAdminProxyDelete
558
- * @request DELETE:/v1/login/admin/{proxy+}
559
- */
560
- loginAdminProxyDelete: (proxy, params = {}) => this.request({
561
- path: `/v1/login/admin/{proxy+}`,
562
- method: 'DELETE',
563
- ...params,
564
- }),
565
- /**
566
- * No description
567
- *
568
- * @name LoginAdminProxyUpdate
569
- * @request PUT:/v1/login/admin/{proxy+}
570
- */
571
- loginAdminProxyUpdate: (proxy, params = {}) => this.request({
572
- path: `/v1/login/admin/{proxy+}`,
573
- method: 'PUT',
574
- ...params,
575
- }),
576
- /**
577
- * No description
578
- *
579
- * @name LoginAdminProxyPartialUpdate
580
- * @request PATCH:/v1/login/admin/{proxy+}
581
- */
582
- loginAdminProxyPartialUpdate: (proxy, params = {}) => this.request({
583
- path: `/v1/login/admin/{proxy+}`,
584
- method: 'PATCH',
585
- ...params,
586
- }),
587
- /**
588
- * @description This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like node-jwks-rsa among others.
589
- *
590
- * @tags idp
591
- * @name LoginProjectWellKnownJwksJsonDetail
592
- * @summary Discover Well-Known JSON Web Keys
593
- * @request GET:/v1/login/project/{projectId}/.well-known/jwks.json
594
- */
595
- loginProjectWellKnownJwksJsonDetail: (projectId, params = {}) => this.request({
596
- path: `/v1/login/project/${projectId}/.well-known/jwks.json`,
597
- method: 'GET',
598
- ...params,
599
- }),
600
- /**
601
- * @description A mechanism for an OpenID Connect Relying Party to discover the End-User's OpenID Provider and obtain information needed to interact with it, including its OAuth 2.0 endpoint locations.
602
- *
603
- * @tags idp
604
- * @name LoginProjectWellKnownOpenidConfigurationDetail
605
- * @summary OpenID Connect Discovery
606
- * @request GET:/v1/login/project/{projectId}/.well-known/openid-configuration
607
- */
608
- loginProjectWellKnownOpenidConfigurationDetail: (projectId, params = {}) => this.request({
609
- path: `/v1/login/project/${projectId}/.well-known/openid-configuration`,
610
- method: 'GET',
611
- ...params,
612
- }),
613
- /**
614
- * @description The authorization endpoint is one of the components in the OAuth 2.0 flow. It's the URL where a user is redirected to grant or deny access to their resources. When a user tries to access a service that requires OAuth 2.0 authorization, the application will redirect the user to this authorization endpoint. Here, the user can log in (if necessary) and then decide whether to grant the application access.
615
- *
616
- * @tags idp
617
- * @name LoginProjectOauth2AuthDetail
618
- * @summary OAuth 2.0 Authorize Endpoint
619
- * @request GET:/v1/login/project/{projectId}/oauth2/auth
620
- */
621
- loginProjectOauth2AuthDetail: (projectId, params = {}) => this.request({
622
- path: `/v1/login/project/${projectId}/oauth2/auth`,
623
- method: 'GET',
624
- ...params,
625
- }),
626
- /**
627
- * @description Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
628
- *
629
- * @tags idp
630
- * @name LoginProjectOauth2RevokeCreate
631
- * @summary Revoke OAuth 2.0 Access or Refresh Token
632
- * @request POST:/v1/login/project/{projectId}/oauth2/revoke
633
- */
634
- loginProjectOauth2RevokeCreate: (projectId, params = {}) => this.request({
635
- path: `/v1/login/project/${projectId}/oauth2/revoke`,
636
- method: 'POST',
637
- ...params,
638
- }),
639
- /**
640
- * @description This endpoint initiates and completes user logout at the IdP OAuth2 & OpenID provider and initiates OpenID Connect Front- / Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow.
641
- *
642
- * @tags idp
643
- * @name LoginProjectOauth2SessionsLogoutDetail
644
- * @summary OpenID Connect Front- and Back-channel Enabled Logout
645
- * @request GET:/v1/login/project/{projectId}/oauth2/sessions/logout
646
- */
647
- loginProjectOauth2SessionsLogoutDetail: (projectId, params = {}) => this.request({
648
- path: `/v1/login/project/${projectId}/oauth2/sessions/logout`,
649
- method: 'GET',
650
- ...params,
651
- }),
652
- /**
653
- * @description The token endpoint is a critical component in the OAuth 2.0 protocol. It's the URL where a client application makes a request to exchange an authorization grant (such as an authorization code) for an access token. After a user grants authorization at the authorization endpoint, the client application receives an authorization grant, which is then exchanged for an access token at the token endpoint. This access token is then used to access the user's resources on the protected server.
654
- *
655
- * @tags idp
656
- * @name LoginProjectOauth2TokenCreate
657
- * @summary The OAuth 2.0 Token Endpoint
658
- * @request POST:/v1/login/project/{projectId}/oauth2/token
659
- */
660
- loginProjectOauth2TokenCreate: (projectId, params = {}) => this.request({
661
- path: `/v1/login/project/${projectId}/oauth2/token`,
662
- method: 'POST',
663
- ...params,
664
- }),
665
- /**
666
- * @description This endpoint returns the payload of the ID Token, including session.id_token values, of the provided OAuth 2.0 Access Token's consent request. In the case of authentication error, a WWW-Authenticate header might be set in the response with more information about the error. See the spec for more details about header format.
667
- *
668
- * @tags idp
669
- * @name LoginProjectUserinfoDetail
670
- * @summary OpenID Connect Userinfo
671
- * @request GET:/v1/login/project/{projectId}/userinfo
672
- */
673
- loginProjectUserinfoDetail: (projectId, params = {}) => this.request({
674
- path: `/v1/login/project/${projectId}/userinfo`,
675
- method: 'GET',
676
- ...params,
677
- }),
678
- };
679
- }
680
- }
681
- //# sourceMappingURL=vp-adapter.api.js.map