@dfns/sdk 0.4.3 → 0.5.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 (102) hide show
  1. package/dfnsApiClient.d.ts +0 -6
  2. package/dfnsApiClient.js +0 -12
  3. package/dfnsDelegatedApiClient.d.ts +0 -6
  4. package/dfnsDelegatedApiClient.js +0 -12
  5. package/generated/auth/client.d.ts +2 -0
  6. package/generated/auth/client.js +24 -0
  7. package/generated/auth/delegatedClient.d.ts +2 -0
  8. package/generated/auth/delegatedClient.js +24 -0
  9. package/generated/auth/types.d.ts +66 -12
  10. package/generated/permissions/types.d.ts +2 -2
  11. package/generated/policies/types.d.ts +15 -0
  12. package/generated/wallets/types.d.ts +105 -18
  13. package/package.json +1 -1
  14. package/store.d.ts +3 -32
  15. package/codegen/Assets/AssetsClient.d.ts +0 -13
  16. package/codegen/Assets/AssetsClient.js +0 -93
  17. package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
  18. package/codegen/Assets/DelegatedAssetsClient.js +0 -124
  19. package/codegen/Assets/index.d.ts +0 -3
  20. package/codegen/Assets/index.js +0 -19
  21. package/codegen/Assets/types.d.ts +0 -37
  22. package/codegen/Assets/types.js +0 -2
  23. package/codegen/Auth/AuthClient.d.ts +0 -50
  24. package/codegen/Auth/AuthClient.js +0 -518
  25. package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
  26. package/codegen/Auth/DelegatedAuthClient.js +0 -936
  27. package/codegen/Auth/index.d.ts +0 -3
  28. package/codegen/Auth/index.js +0 -19
  29. package/codegen/Auth/types.d.ts +0 -177
  30. package/codegen/Auth/types.js +0 -2
  31. package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
  32. package/codegen/Callbacks/CallbacksClient.js +0 -78
  33. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
  34. package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
  35. package/codegen/Callbacks/index.d.ts +0 -3
  36. package/codegen/Callbacks/index.js +0 -19
  37. package/codegen/Callbacks/types.d.ts +0 -23
  38. package/codegen/Callbacks/types.js +0 -2
  39. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
  40. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
  41. package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
  42. package/codegen/PublicKeys/PublicKeysClient.js +0 -128
  43. package/codegen/PublicKeys/index.d.ts +0 -3
  44. package/codegen/PublicKeys/index.js +0 -19
  45. package/codegen/PublicKeys/types.d.ts +0 -51
  46. package/codegen/PublicKeys/types.js +0 -2
  47. package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
  48. package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
  49. package/codegen/Wallets/WalletsClient.d.ts +0 -24
  50. package/codegen/Wallets/WalletsClient.js +0 -219
  51. package/codegen/Wallets/index.d.ts +0 -3
  52. package/codegen/Wallets/index.js +0 -19
  53. package/codegen/Wallets/types.d.ts +0 -101
  54. package/codegen/Wallets/types.js +0 -2
  55. package/codegen/datamodel/Assets/errors.d.ts +0 -11
  56. package/codegen/datamodel/Assets/errors.js +0 -17
  57. package/codegen/datamodel/Assets/index.d.ts +0 -3
  58. package/codegen/datamodel/Assets/index.js +0 -19
  59. package/codegen/datamodel/Assets/responses.d.ts +0 -47
  60. package/codegen/datamodel/Assets/responses.js +0 -2
  61. package/codegen/datamodel/Assets/types.d.ts +0 -219
  62. package/codegen/datamodel/Assets/types.js +0 -75
  63. package/codegen/datamodel/Auth/errors.d.ts +0 -0
  64. package/codegen/datamodel/Auth/errors.js +0 -1
  65. package/codegen/datamodel/Auth/index.d.ts +0 -2
  66. package/codegen/datamodel/Auth/index.js +0 -18
  67. package/codegen/datamodel/Auth/responses.d.ts +0 -358
  68. package/codegen/datamodel/Auth/responses.js +0 -2
  69. package/codegen/datamodel/Auth/types.d.ts +0 -933
  70. package/codegen/datamodel/Auth/types.js +0 -149
  71. package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
  72. package/codegen/datamodel/Callbacks/errors.js +0 -1
  73. package/codegen/datamodel/Callbacks/index.d.ts +0 -2
  74. package/codegen/datamodel/Callbacks/index.js +0 -18
  75. package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
  76. package/codegen/datamodel/Callbacks/responses.js +0 -2
  77. package/codegen/datamodel/Callbacks/types.d.ts +0 -43
  78. package/codegen/datamodel/Callbacks/types.js +0 -39
  79. package/codegen/datamodel/Foundations/errors.d.ts +0 -131
  80. package/codegen/datamodel/Foundations/errors.js +0 -182
  81. package/codegen/datamodel/Foundations/index.d.ts +0 -2
  82. package/codegen/datamodel/Foundations/index.js +0 -18
  83. package/codegen/datamodel/Foundations/responses.d.ts +0 -0
  84. package/codegen/datamodel/Foundations/responses.js +0 -1
  85. package/codegen/datamodel/Foundations/types.d.ts +0 -9795
  86. package/codegen/datamodel/Foundations/types.js +0 -57763
  87. package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
  88. package/codegen/datamodel/PublicKeys/errors.js +0 -1
  89. package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
  90. package/codegen/datamodel/PublicKeys/index.js +0 -18
  91. package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
  92. package/codegen/datamodel/PublicKeys/responses.js +0 -2
  93. package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
  94. package/codegen/datamodel/PublicKeys/types.js +0 -59
  95. package/codegen/datamodel/Wallets/errors.d.ts +0 -0
  96. package/codegen/datamodel/Wallets/errors.js +0 -1
  97. package/codegen/datamodel/Wallets/index.d.ts +0 -2
  98. package/codegen/datamodel/Wallets/index.js +0 -18
  99. package/codegen/datamodel/Wallets/responses.d.ts +0 -92
  100. package/codegen/datamodel/Wallets/responses.js +0 -2
  101. package/codegen/datamodel/Wallets/types.d.ts +0 -790
  102. package/codegen/datamodel/Wallets/types.js +0 -293
@@ -1,518 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthClient = void 0;
4
- const fetch_1 = require("../../utils/fetch");
5
- const url_1 = require("../../utils/url");
6
- class AuthClient {
7
- constructor(apiOptions) {
8
- this.apiOptions = apiOptions;
9
- }
10
- async createDelegatedUserRegistration(request) {
11
- const path = (0, url_1.buildPathAndQuery)('/auth/registration/delegated', {
12
- path: {},
13
- query: {},
14
- });
15
- const response = await (0, fetch_1.userActionFetch)(path, {
16
- method: 'POST',
17
- body: request.body,
18
- apiOptions: this.apiOptions,
19
- });
20
- return response.json();
21
- }
22
- async createUserRegistration(request) {
23
- const path = (0, url_1.buildPathAndQuery)('/auth/registration', {
24
- path: {},
25
- query: {},
26
- });
27
- const response = await (0, fetch_1.simpleFetch)(path, {
28
- method: 'POST',
29
- body: request.body,
30
- apiOptions: this.apiOptions,
31
- });
32
- return response.json();
33
- }
34
- async createDelegatedUserLogin(request) {
35
- const path = (0, url_1.buildPathAndQuery)('/auth/login/delegated', {
36
- path: {},
37
- query: {},
38
- });
39
- const response = await (0, fetch_1.userActionFetch)(path, {
40
- method: 'POST',
41
- body: request.body,
42
- apiOptions: this.apiOptions,
43
- });
44
- return response.json();
45
- }
46
- async createUserActionSignatureChallenge(request) {
47
- const path = (0, url_1.buildPathAndQuery)('/auth/action/init', {
48
- path: {},
49
- query: {},
50
- });
51
- const response = await (0, fetch_1.simpleFetch)(path, {
52
- method: 'POST',
53
- body: request.body,
54
- apiOptions: this.apiOptions,
55
- });
56
- return response.json();
57
- }
58
- async createUserActionSignature(request) {
59
- const path = (0, url_1.buildPathAndQuery)('/auth/action', {
60
- path: {},
61
- query: {},
62
- });
63
- const response = await (0, fetch_1.simpleFetch)(path, {
64
- method: 'POST',
65
- body: request.body,
66
- apiOptions: this.apiOptions,
67
- });
68
- return response.json();
69
- }
70
- async createUserCredentialChallenge(request) {
71
- const path = (0, url_1.buildPathAndQuery)('/auth/credentials/init', {
72
- path: {},
73
- query: {},
74
- });
75
- const response = await (0, fetch_1.simpleFetch)(path, {
76
- method: 'POST',
77
- body: request.body,
78
- apiOptions: this.apiOptions,
79
- });
80
- return response.json();
81
- }
82
- async createUserCredential(request) {
83
- const path = (0, url_1.buildPathAndQuery)('/auth/credentials', {
84
- path: {},
85
- query: {},
86
- });
87
- const response = await (0, fetch_1.userActionFetch)(path, {
88
- method: 'POST',
89
- body: request.body,
90
- apiOptions: this.apiOptions,
91
- });
92
- return response.json();
93
- }
94
- async activateCredential(request) {
95
- const path = (0, url_1.buildPathAndQuery)('/auth/credentials/activate', {
96
- path: {},
97
- query: {},
98
- });
99
- const response = await (0, fetch_1.userActionFetch)(path, {
100
- method: 'PUT',
101
- body: request.body,
102
- apiOptions: this.apiOptions,
103
- });
104
- return response.json();
105
- }
106
- async deactivateCredential(request) {
107
- const path = (0, url_1.buildPathAndQuery)('/auth/credentials/deactivate', {
108
- path: {},
109
- query: {},
110
- });
111
- const response = await (0, fetch_1.userActionFetch)(path, {
112
- method: 'PUT',
113
- body: request.body,
114
- apiOptions: this.apiOptions,
115
- });
116
- return response.json();
117
- }
118
- async listUserCredentials() {
119
- const path = (0, url_1.buildPathAndQuery)('/auth/credentials', {
120
- path: {},
121
- query: {},
122
- });
123
- const response = await (0, fetch_1.simpleFetch)(path, {
124
- method: 'GET',
125
- apiOptions: this.apiOptions,
126
- });
127
- return response.json();
128
- }
129
- async createUserActionSignatureFromCode(request) {
130
- const path = (0, url_1.buildPathAndQuery)('/auth/action/code/verify', {
131
- path: {},
132
- query: {},
133
- });
134
- const response = await (0, fetch_1.simpleFetch)(path, {
135
- method: 'POST',
136
- body: request.body,
137
- apiOptions: this.apiOptions,
138
- });
139
- return response.json();
140
- }
141
- async createCodeUserActionSignatureChallenge(request) {
142
- const path = (0, url_1.buildPathAndQuery)('/auth/action/code/init', {
143
- path: {},
144
- query: {},
145
- });
146
- const response = await (0, fetch_1.simpleFetch)(path, {
147
- method: 'POST',
148
- body: request.body,
149
- apiOptions: this.apiOptions,
150
- });
151
- return response.json();
152
- }
153
- async createCodeUserActionSignature(request) {
154
- const path = (0, url_1.buildPathAndQuery)('/auth/action/code', {
155
- path: {},
156
- query: {},
157
- });
158
- const response = await (0, fetch_1.simpleFetch)(path, {
159
- method: 'POST',
160
- body: request.body,
161
- apiOptions: this.apiOptions,
162
- });
163
- return response.json();
164
- }
165
- async listPersonalAccessTokens() {
166
- const path = (0, url_1.buildPathAndQuery)('/auth/pats', {
167
- path: {},
168
- query: {},
169
- });
170
- const response = await (0, fetch_1.simpleFetch)(path, {
171
- method: 'GET',
172
- apiOptions: this.apiOptions,
173
- });
174
- return response.json();
175
- }
176
- async createPersonalAccessToken(request) {
177
- const path = (0, url_1.buildPathAndQuery)('/auth/pats', {
178
- path: {},
179
- query: {},
180
- });
181
- const response = await (0, fetch_1.userActionFetch)(path, {
182
- method: 'POST',
183
- body: request.body,
184
- apiOptions: this.apiOptions,
185
- });
186
- return response.json();
187
- }
188
- async getPersonalAccessTokens(request) {
189
- const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
190
- path: { tokenId: request.tokenId },
191
- query: {},
192
- });
193
- const response = await (0, fetch_1.simpleFetch)(path, {
194
- method: 'GET',
195
- apiOptions: this.apiOptions,
196
- });
197
- return response.json();
198
- }
199
- async updatePersonalAccessToken(request) {
200
- const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
201
- path: { tokenId: request.tokenId },
202
- query: {},
203
- });
204
- const response = await (0, fetch_1.userActionFetch)(path, {
205
- method: 'PUT',
206
- body: request.body,
207
- apiOptions: this.apiOptions,
208
- });
209
- return response.json();
210
- }
211
- async archivePersonalAccessToken(request) {
212
- const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
213
- path: { tokenId: request.tokenId },
214
- query: {},
215
- });
216
- const response = await (0, fetch_1.userActionFetch)(path, {
217
- method: 'DELETE',
218
- apiOptions: this.apiOptions,
219
- });
220
- return response.json();
221
- }
222
- async activatePersonalAccessToken(request) {
223
- const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId/activate', {
224
- path: { tokenId: request.tokenId },
225
- query: {},
226
- });
227
- const response = await (0, fetch_1.userActionFetch)(path, {
228
- method: 'PUT',
229
- apiOptions: this.apiOptions,
230
- });
231
- return response.json();
232
- }
233
- async deactivatePersonalAccessToken(request) {
234
- const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId/deactivate', {
235
- path: { tokenId: request.tokenId },
236
- query: {},
237
- });
238
- const response = await (0, fetch_1.userActionFetch)(path, {
239
- method: 'PUT',
240
- apiOptions: this.apiOptions,
241
- });
242
- return response.json();
243
- }
244
- async listServiceAccounts() {
245
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts', {
246
- path: {},
247
- query: {},
248
- });
249
- const response = await (0, fetch_1.simpleFetch)(path, {
250
- method: 'GET',
251
- apiOptions: this.apiOptions,
252
- });
253
- return response.json();
254
- }
255
- async createServiceAccount(request) {
256
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts', {
257
- path: {},
258
- query: {},
259
- });
260
- const response = await (0, fetch_1.userActionFetch)(path, {
261
- method: 'POST',
262
- body: request.body,
263
- apiOptions: this.apiOptions,
264
- });
265
- return response.json();
266
- }
267
- async getServiceAccount(request) {
268
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
269
- path: { serviceAccountId: request.serviceAccountId },
270
- query: {},
271
- });
272
- const response = await (0, fetch_1.simpleFetch)(path, {
273
- method: 'GET',
274
- apiOptions: this.apiOptions,
275
- });
276
- return response.json();
277
- }
278
- async updateServiceAccount(request) {
279
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
280
- path: { serviceAccountId: request.serviceAccountId },
281
- query: {},
282
- });
283
- const response = await (0, fetch_1.userActionFetch)(path, {
284
- method: 'PUT',
285
- body: request.body,
286
- apiOptions: this.apiOptions,
287
- });
288
- return response.json();
289
- }
290
- async archiveServiceAccount(request) {
291
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
292
- path: { serviceAccountId: request.serviceAccountId },
293
- query: {},
294
- });
295
- const response = await (0, fetch_1.userActionFetch)(path, {
296
- method: 'DELETE',
297
- apiOptions: this.apiOptions,
298
- });
299
- return response.json();
300
- }
301
- async activateServiceAccount(request) {
302
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/activate', {
303
- path: { serviceAccountId: request.serviceAccountId },
304
- query: {},
305
- });
306
- const response = await (0, fetch_1.userActionFetch)(path, {
307
- method: 'PUT',
308
- apiOptions: this.apiOptions,
309
- });
310
- return response.json();
311
- }
312
- async deactivateServiceAccount(request) {
313
- const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/deactivate', {
314
- path: { serviceAccountId: request.serviceAccountId },
315
- query: {},
316
- });
317
- const response = await (0, fetch_1.userActionFetch)(path, {
318
- method: 'PUT',
319
- apiOptions: this.apiOptions,
320
- });
321
- return response.json();
322
- }
323
- async listUsers() {
324
- const path = (0, url_1.buildPathAndQuery)('/auth/users', {
325
- path: {},
326
- query: {},
327
- });
328
- const response = await (0, fetch_1.simpleFetch)(path, {
329
- method: 'GET',
330
- apiOptions: this.apiOptions,
331
- });
332
- return response.json();
333
- }
334
- async createUser(request) {
335
- const path = (0, url_1.buildPathAndQuery)('/auth/users', {
336
- path: {},
337
- query: {},
338
- });
339
- const response = await (0, fetch_1.userActionFetch)(path, {
340
- method: 'POST',
341
- body: request.body,
342
- apiOptions: this.apiOptions,
343
- });
344
- return response.json();
345
- }
346
- async getUser(request) {
347
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
348
- path: { userId: request.userId },
349
- query: {},
350
- });
351
- const response = await (0, fetch_1.simpleFetch)(path, {
352
- method: 'GET',
353
- apiOptions: this.apiOptions,
354
- });
355
- return response.json();
356
- }
357
- async updateUser(request) {
358
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
359
- path: { userId: request.userId },
360
- query: {},
361
- });
362
- const response = await (0, fetch_1.userActionFetch)(path, {
363
- method: 'PUT',
364
- body: request.body,
365
- apiOptions: this.apiOptions,
366
- });
367
- return response.json();
368
- }
369
- async archiveUser(request) {
370
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
371
- path: { userId: request.userId },
372
- query: {},
373
- });
374
- const response = await (0, fetch_1.userActionFetch)(path, {
375
- method: 'DELETE',
376
- apiOptions: this.apiOptions,
377
- });
378
- return response.json();
379
- }
380
- async activateUser(request) {
381
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId/activate', {
382
- path: { userId: request.userId },
383
- query: {},
384
- });
385
- const response = await (0, fetch_1.userActionFetch)(path, {
386
- method: 'PUT',
387
- apiOptions: this.apiOptions,
388
- });
389
- return response.json();
390
- }
391
- async deactivateUser(request) {
392
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId/deactivate', {
393
- path: { userId: request.userId },
394
- query: {},
395
- });
396
- const response = await (0, fetch_1.userActionFetch)(path, {
397
- method: 'PUT',
398
- apiOptions: this.apiOptions,
399
- });
400
- return response.json();
401
- }
402
- async listApplications() {
403
- const path = (0, url_1.buildPathAndQuery)('/auth/apps', {
404
- path: {},
405
- query: {},
406
- });
407
- const response = await (0, fetch_1.simpleFetch)(path, {
408
- method: 'GET',
409
- apiOptions: this.apiOptions,
410
- });
411
- return response.json();
412
- }
413
- async createApplication(request) {
414
- const path = (0, url_1.buildPathAndQuery)('/auth/apps', {
415
- path: {},
416
- query: {},
417
- });
418
- const response = await (0, fetch_1.userActionFetch)(path, {
419
- method: 'POST',
420
- body: request.body,
421
- apiOptions: this.apiOptions,
422
- });
423
- return response.json();
424
- }
425
- async getApplication(request) {
426
- const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId', {
427
- path: { appId: request.appId },
428
- query: {},
429
- });
430
- const response = await (0, fetch_1.simpleFetch)(path, {
431
- method: 'GET',
432
- apiOptions: this.apiOptions,
433
- });
434
- return response.json();
435
- }
436
- async updateApplication(request) {
437
- const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId', {
438
- path: { appId: request.appId },
439
- query: {},
440
- });
441
- const response = await (0, fetch_1.userActionFetch)(path, {
442
- method: 'PUT',
443
- body: request.body,
444
- apiOptions: this.apiOptions,
445
- });
446
- return response.json();
447
- }
448
- async archiveApplication(request) {
449
- const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId', {
450
- path: { appId: request.appId },
451
- query: {},
452
- });
453
- const response = await (0, fetch_1.userActionFetch)(path, {
454
- method: 'DELETE',
455
- apiOptions: this.apiOptions,
456
- });
457
- return response.json();
458
- }
459
- async activateApplication(request) {
460
- const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/activate', {
461
- path: { appId: request.appId },
462
- query: {},
463
- });
464
- const response = await (0, fetch_1.userActionFetch)(path, {
465
- method: 'PUT',
466
- apiOptions: this.apiOptions,
467
- });
468
- return response.json();
469
- }
470
- async deactivateApplication(request) {
471
- const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/deactivate', {
472
- path: { appId: request.appId },
473
- query: {},
474
- });
475
- const response = await (0, fetch_1.userActionFetch)(path, {
476
- method: 'PUT',
477
- apiOptions: this.apiOptions,
478
- });
479
- return response.json();
480
- }
481
- async createUserRecovery(request) {
482
- const path = (0, url_1.buildPathAndQuery)('/auth/recover/user', {
483
- path: {},
484
- query: {},
485
- });
486
- const response = await (0, fetch_1.simpleFetch)(path, {
487
- method: 'POST',
488
- body: request.body,
489
- apiOptions: this.apiOptions,
490
- });
491
- return response.json();
492
- }
493
- async restartDelegatedUserRegistration(request) {
494
- const path = (0, url_1.buildPathAndQuery)('/auth/registration/delegated/restart', {
495
- path: {},
496
- query: {},
497
- });
498
- const response = await (0, fetch_1.userActionFetch)(path, {
499
- method: 'POST',
500
- body: request.body,
501
- apiOptions: this.apiOptions,
502
- });
503
- return response.json();
504
- }
505
- async createDelegatedUserRecovery(request) {
506
- const path = (0, url_1.buildPathAndQuery)('/auth/recover/user/delegated', {
507
- path: {},
508
- query: {},
509
- });
510
- const response = await (0, fetch_1.userActionFetch)(path, {
511
- method: 'POST',
512
- body: request.body,
513
- apiOptions: this.apiOptions,
514
- });
515
- return response.json();
516
- }
517
- }
518
- exports.AuthClient = AuthClient;
@@ -1,78 +0,0 @@
1
- import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
2
- import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
3
- import * as T from './types';
4
- export declare class DelegatedAuthClient {
5
- private apiOptions;
6
- constructor(apiOptions: DfnsDelegatedApiClientOptions);
7
- createDelegatedUserRegistrationInit(request: T.CreateDelegatedUserRegistrationRequest): Promise<UserActionChallengeResponse>;
8
- createDelegatedUserRegistrationComplete(request: T.CreateDelegatedUserRegistrationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateDelegatedUserRegistrationResponse>;
9
- createUserRegistration(request: T.CreateUserRegistrationRequest): Promise<T.CreateUserRegistrationResponse>;
10
- createDelegatedUserLoginInit(request: T.CreateDelegatedUserLoginRequest): Promise<UserActionChallengeResponse>;
11
- createDelegatedUserLoginComplete(request: T.CreateDelegatedUserLoginRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateDelegatedUserLoginResponse>;
12
- createUserActionSignatureChallenge(request: T.CreateUserActionSignatureChallengeRequest): Promise<T.CreateUserActionSignatureChallengeResponse>;
13
- createUserActionSignature(request: T.CreateUserActionSignatureRequest): Promise<T.CreateUserActionSignatureResponse>;
14
- createUserCredentialChallenge(request: T.CreateUserCredentialChallengeRequest): Promise<T.CreateUserCredentialChallengeResponse>;
15
- createUserCredentialInit(request: T.CreateUserCredentialRequest): Promise<UserActionChallengeResponse>;
16
- createUserCredentialComplete(request: T.CreateUserCredentialRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateUserCredentialResponse>;
17
- activateCredentialInit(request: T.ActivateCredentialRequest): Promise<UserActionChallengeResponse>;
18
- activateCredentialComplete(request: T.ActivateCredentialRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateCredentialResponse>;
19
- deactivateCredentialInit(request: T.DeactivateCredentialRequest): Promise<UserActionChallengeResponse>;
20
- deactivateCredentialComplete(request: T.DeactivateCredentialRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateCredentialResponse>;
21
- listUserCredentials(): Promise<T.ListUserCredentialsResponse>;
22
- createUserActionSignatureFromCode(request: T.CreateUserActionSignatureFromCodeRequest): Promise<T.CreateUserActionSignatureFromCodeResponse>;
23
- createCodeUserActionSignatureChallenge(request: T.CreateCodeUserActionSignatureChallengeRequest): Promise<T.CreateCodeUserActionSignatureChallengeResponse>;
24
- createCodeUserActionSignature(request: T.CreateCodeUserActionSignatureRequest): Promise<T.CreateCodeUserActionSignatureResponse>;
25
- listPersonalAccessTokens(): Promise<T.ListPersonalAccessTokensResponse>;
26
- createPersonalAccessTokenInit(request: T.CreatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
27
- createPersonalAccessTokenComplete(request: T.CreatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePersonalAccessTokenResponse>;
28
- getPersonalAccessTokens(request: T.GetPersonalAccessTokensRequest): Promise<T.GetPersonalAccessTokensResponse>;
29
- updatePersonalAccessTokenInit(request: T.UpdatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
30
- updatePersonalAccessTokenComplete(request: T.UpdatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
31
- archivePersonalAccessTokenInit(request: T.ArchivePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
32
- archivePersonalAccessTokenComplete(request: T.ArchivePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePersonalAccessTokenResponse>;
33
- activatePersonalAccessTokenInit(request: T.ActivatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
34
- activatePersonalAccessTokenComplete(request: T.ActivatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivatePersonalAccessTokenResponse>;
35
- deactivatePersonalAccessTokenInit(request: T.DeactivatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
36
- deactivatePersonalAccessTokenComplete(request: T.DeactivatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivatePersonalAccessTokenResponse>;
37
- listServiceAccounts(): Promise<T.ListServiceAccountsResponse>;
38
- createServiceAccountInit(request: T.CreateServiceAccountRequest): Promise<UserActionChallengeResponse>;
39
- createServiceAccountComplete(request: T.CreateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateServiceAccountResponse>;
40
- getServiceAccount(request: T.GetServiceAccountRequest): Promise<T.GetServiceAccountResponse>;
41
- updateServiceAccountInit(request: T.UpdateServiceAccountRequest): Promise<UserActionChallengeResponse>;
42
- updateServiceAccountComplete(request: T.UpdateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateServiceAccountResponse>;
43
- archiveServiceAccountInit(request: T.ArchiveServiceAccountRequest): Promise<UserActionChallengeResponse>;
44
- archiveServiceAccountComplete(request: T.ArchiveServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveServiceAccountResponse>;
45
- activateServiceAccountInit(request: T.ActivateServiceAccountRequest): Promise<UserActionChallengeResponse>;
46
- activateServiceAccountComplete(request: T.ActivateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateServiceAccountResponse>;
47
- deactivateServiceAccountInit(request: T.DeactivateServiceAccountRequest): Promise<UserActionChallengeResponse>;
48
- deactivateServiceAccountComplete(request: T.DeactivateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateServiceAccountResponse>;
49
- listUsers(): Promise<T.ListUsersResponse>;
50
- createUserInit(request: T.CreateUserRequest): Promise<UserActionChallengeResponse>;
51
- createUserComplete(request: T.CreateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateUserResponse>;
52
- getUser(request: T.GetUserRequest): Promise<T.GetUserResponse>;
53
- updateUserInit(request: T.UpdateUserRequest): Promise<UserActionChallengeResponse>;
54
- updateUserComplete(request: T.UpdateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateUserResponse>;
55
- archiveUserInit(request: T.ArchiveUserRequest): Promise<UserActionChallengeResponse>;
56
- archiveUserComplete(request: T.ArchiveUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveUserResponse>;
57
- activateUserInit(request: T.ActivateUserRequest): Promise<UserActionChallengeResponse>;
58
- activateUserComplete(request: T.ActivateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateUserResponse>;
59
- deactivateUserInit(request: T.DeactivateUserRequest): Promise<UserActionChallengeResponse>;
60
- deactivateUserComplete(request: T.DeactivateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateUserResponse>;
61
- listApplications(): Promise<T.ListApplicationsResponse>;
62
- createApplicationInit(request: T.CreateApplicationRequest): Promise<UserActionChallengeResponse>;
63
- createApplicationComplete(request: T.CreateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateApplicationResponse>;
64
- getApplication(request: T.GetApplicationRequest): Promise<T.GetApplicationResponse>;
65
- updateApplicationInit(request: T.UpdateApplicationRequest): Promise<UserActionChallengeResponse>;
66
- updateApplicationComplete(request: T.UpdateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateApplicationResponse>;
67
- archiveApplicationInit(request: T.ArchiveApplicationRequest): Promise<UserActionChallengeResponse>;
68
- archiveApplicationComplete(request: T.ArchiveApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveApplicationResponse>;
69
- activateApplicationInit(request: T.ActivateApplicationRequest): Promise<UserActionChallengeResponse>;
70
- activateApplicationComplete(request: T.ActivateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateApplicationResponse>;
71
- deactivateApplicationInit(request: T.DeactivateApplicationRequest): Promise<UserActionChallengeResponse>;
72
- deactivateApplicationComplete(request: T.DeactivateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateApplicationResponse>;
73
- createUserRecovery(request: T.CreateUserRecoveryRequest): Promise<T.CreateUserRecoveryResponse>;
74
- restartDelegatedUserRegistrationInit(request: T.RestartDelegatedUserRegistrationRequest): Promise<UserActionChallengeResponse>;
75
- restartDelegatedUserRegistrationComplete(request: T.RestartDelegatedUserRegistrationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.RestartDelegatedUserRegistrationResponse>;
76
- createDelegatedUserRecoveryInit(request: T.CreateDelegatedUserRecoveryRequest): Promise<UserActionChallengeResponse>;
77
- createDelegatedUserRecoveryComplete(request: T.CreateDelegatedUserRecoveryRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateDelegatedUserRecoveryResponse>;
78
- }