@dfns/sdk 0.1.0-alpha.2 → 0.1.0-alpha.3
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/codegen/Assets/AssetsClient.d.ts +0 -1
- package/codegen/Assets/AssetsClient.js +0 -11
- package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -2
- package/codegen/Assets/DelegatedAssetsClient.js +0 -27
- package/codegen/Assets/types.d.ts +3 -5
- package/codegen/Auth/AuthClient.d.ts +0 -14
- package/codegen/Auth/AuthClient.js +0 -173
- package/codegen/Auth/DelegatedAuthClient.d.ts +0 -24
- package/codegen/Auth/DelegatedAuthClient.js +0 -341
- package/codegen/Auth/types.d.ts +0 -74
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +0 -1
- package/codegen/Permissions/DelegatedPermissionsClient.js +0 -12
- package/codegen/Permissions/PermissionsClient.d.ts +0 -1
- package/codegen/Permissions/PermissionsClient.js +0 -12
- package/codegen/Permissions/types.d.ts +0 -8
- package/codegen/PolicyExecution/types.d.ts +3 -1
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -6
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -81
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -3
- package/codegen/PolicyManagement/PolicyManagementClient.js +0 -36
- package/codegen/PolicyManagement/types.d.ts +0 -15
- package/codegen/datamodel/Assets/responses.d.ts +3 -1
- package/codegen/datamodel/Foundations/types.d.ts +3 -1
- package/codegen/datamodel/Foundations/types.js +12 -0
- package/codegen/datamodel/PolicyExecution/responses.d.ts +3 -1
- package/package.json +1 -1
|
@@ -9,6 +9,5 @@ export declare class AssetsClient {
|
|
|
9
9
|
createAssetAccount(request: T.CreateAssetAccountRequest): Promise<T.CreateAssetAccountResponse>;
|
|
10
10
|
getAssetAccountById(request: T.GetAssetAccountByIdRequest): Promise<T.GetAssetAccountByIdResponse>;
|
|
11
11
|
listAssetAccounts(request: T.ListAssetAccountsRequest): Promise<T.ListAssetAccountsResponse>;
|
|
12
|
-
archiveAssetAccount(request: T.ArchiveAssetAccountRequest): Promise<T.ArchiveAssetAccountResponse>;
|
|
13
12
|
getAssetAccountBalanceById(request: T.GetAssetAccountBalanceByIdRequest): Promise<T.GetAssetAccountBalanceByIdResponse>;
|
|
14
13
|
}
|
|
@@ -79,17 +79,6 @@ class AssetsClient {
|
|
|
79
79
|
});
|
|
80
80
|
return response.json();
|
|
81
81
|
}
|
|
82
|
-
async archiveAssetAccount(request) {
|
|
83
|
-
const path = (0, url_1.buildPathAndQuery)('/assets/asset-accounts/:assetAccountId', {
|
|
84
|
-
path: { assetAccountId: request.assetAccountId },
|
|
85
|
-
query: {},
|
|
86
|
-
});
|
|
87
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
88
|
-
method: 'DELETE',
|
|
89
|
-
apiOptions: this.apiOptions,
|
|
90
|
-
});
|
|
91
|
-
return response.json();
|
|
92
|
-
}
|
|
93
82
|
async getAssetAccountBalanceById(request) {
|
|
94
83
|
const path = (0, url_1.buildPathAndQuery)('/assets/asset-accounts/:assetAccountId/balance', {
|
|
95
84
|
path: { assetAccountId: request.assetAccountId },
|
|
@@ -12,7 +12,5 @@ export declare class DelegatedAssetsClient {
|
|
|
12
12
|
createAssetAccountComplete(request: T.CreateAssetAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateAssetAccountResponse>;
|
|
13
13
|
getAssetAccountById(request: T.GetAssetAccountByIdRequest): Promise<T.GetAssetAccountByIdResponse>;
|
|
14
14
|
listAssetAccounts(request: T.ListAssetAccountsRequest): Promise<T.ListAssetAccountsResponse>;
|
|
15
|
-
archiveAssetAccountInit(request: T.ArchiveAssetAccountRequest): Promise<UserActionChallengeResponse>;
|
|
16
|
-
archiveAssetAccountComplete(request: T.ArchiveAssetAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveAssetAccountResponse>;
|
|
17
15
|
getAssetAccountBalanceById(request: T.GetAssetAccountBalanceByIdRequest): Promise<T.GetAssetAccountBalanceByIdResponse>;
|
|
18
16
|
}
|
|
@@ -110,33 +110,6 @@ class DelegatedAssetsClient {
|
|
|
110
110
|
});
|
|
111
111
|
return response.json();
|
|
112
112
|
}
|
|
113
|
-
async archiveAssetAccountInit(request) {
|
|
114
|
-
const path = (0, url_1.buildPathAndQuery)('/assets/asset-accounts/:assetAccountId', {
|
|
115
|
-
path: { assetAccountId: request.assetAccountId },
|
|
116
|
-
query: {},
|
|
117
|
-
});
|
|
118
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
119
|
-
userActionHttpMethod: 'DELETE',
|
|
120
|
-
userActionHttpPath: path,
|
|
121
|
-
userActionPayload: JSON.stringify({}),
|
|
122
|
-
userActionServerKind: 'Api',
|
|
123
|
-
}, this.apiOptions);
|
|
124
|
-
return challenge;
|
|
125
|
-
}
|
|
126
|
-
async archiveAssetAccountComplete(request, signedChallenge) {
|
|
127
|
-
const path = (0, url_1.buildPathAndQuery)('/assets/asset-accounts/:assetAccountId', {
|
|
128
|
-
path: { assetAccountId: request.assetAccountId },
|
|
129
|
-
query: {},
|
|
130
|
-
});
|
|
131
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
132
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
133
|
-
method: 'DELETE',
|
|
134
|
-
body: {},
|
|
135
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
136
|
-
apiOptions: this.apiOptions,
|
|
137
|
-
});
|
|
138
|
-
return response.json();
|
|
139
|
-
}
|
|
140
113
|
async getAssetAccountBalanceById(request) {
|
|
141
114
|
const path = (0, url_1.buildPathAndQuery)('/assets/asset-accounts/:assetAccountId/balance', {
|
|
142
115
|
path: { assetAccountId: request.assetAccountId },
|
|
@@ -12,7 +12,9 @@ export type GetPaymentByIdResponse = Assets.Payment;
|
|
|
12
12
|
export type ListPaymentsRequest = {
|
|
13
13
|
assetAccountId: string;
|
|
14
14
|
};
|
|
15
|
-
export type ListPaymentsResponse =
|
|
15
|
+
export type ListPaymentsResponse = {
|
|
16
|
+
items: Assets.Payment[];
|
|
17
|
+
};
|
|
16
18
|
export type CreateAssetAccountRequest = {
|
|
17
19
|
body: Assets.CreateAssetAccountInput;
|
|
18
20
|
};
|
|
@@ -29,10 +31,6 @@ export type ListAssetAccountsRequest = {
|
|
|
29
31
|
export type ListAssetAccountsResponse = {
|
|
30
32
|
items: Assets.AssetAccount[];
|
|
31
33
|
};
|
|
32
|
-
export type ArchiveAssetAccountRequest = {
|
|
33
|
-
assetAccountId: string;
|
|
34
|
-
};
|
|
35
|
-
export type ArchiveAssetAccountResponse = Assets.AssetAccount;
|
|
36
34
|
export type GetAssetAccountBalanceByIdRequest = {
|
|
37
35
|
assetAccountId: string;
|
|
38
36
|
};
|
|
@@ -30,13 +30,6 @@ export declare class AuthClient {
|
|
|
30
30
|
archiveServiceAccount(request: T.ArchiveServiceAccountRequest): Promise<T.ArchiveServiceAccountResponse>;
|
|
31
31
|
activateServiceAccount(request: T.ActivateServiceAccountRequest): Promise<T.ActivateServiceAccountResponse>;
|
|
32
32
|
deactivateServiceAccount(request: T.DeactivateServiceAccountRequest): Promise<T.DeactivateServiceAccountResponse>;
|
|
33
|
-
listServiceAccountTokens(request: T.ListServiceAccountTokensRequest): Promise<T.ListServiceAccountTokensResponse>;
|
|
34
|
-
createServiceAccountToken(request: T.CreateServiceAccountTokenRequest): Promise<T.CreateServiceAccountTokenResponse>;
|
|
35
|
-
getServiceAccountToken(request: T.GetServiceAccountTokenRequest): Promise<T.GetServiceAccountTokenResponse>;
|
|
36
|
-
updateServiceAccountToken(request: T.UpdateServiceAccountTokenRequest): Promise<T.UpdateServiceAccountTokenResponse>;
|
|
37
|
-
archiveServiceAccountToken(request: T.ArchiveServiceAccountTokenRequest): Promise<T.ArchiveServiceAccountTokenResponse>;
|
|
38
|
-
activateServiceAccountToken(request: T.ActivateServiceAccountTokenRequest): Promise<T.ActivateServiceAccountTokenResponse>;
|
|
39
|
-
deactivateServiceAccountToken(request: T.DeactivateServiceAccountTokenRequest): Promise<T.DeactivateServiceAccountTokenResponse>;
|
|
40
33
|
listUsers(): Promise<T.ListUsersResponse>;
|
|
41
34
|
createUser(request: T.CreateUserRequest): Promise<T.CreateUserResponse>;
|
|
42
35
|
getUser(request: T.GetUserRequest): Promise<T.GetUserResponse>;
|
|
@@ -51,12 +44,5 @@ export declare class AuthClient {
|
|
|
51
44
|
archiveApplication(request: T.ArchiveApplicationRequest): Promise<T.ArchiveApplicationResponse>;
|
|
52
45
|
activateApplication(request: T.ActivateApplicationRequest): Promise<T.ActivateApplicationResponse>;
|
|
53
46
|
deactivateApplication(request: T.DeactivateApplicationRequest): Promise<T.DeactivateApplicationResponse>;
|
|
54
|
-
listApplicationTokens(request: T.ListApplicationTokensRequest): Promise<T.ListApplicationTokensResponse>;
|
|
55
|
-
createApplicationToken(request: T.CreateApplicationTokenRequest): Promise<T.CreateApplicationTokenResponse>;
|
|
56
|
-
getApplicationToken(request: T.GetApplicationTokenRequest): Promise<T.GetApplicationTokenResponse>;
|
|
57
|
-
updateApplicationToken(request: T.UpdateApplicationTokenRequest): Promise<T.UpdateApplicationTokenResponse>;
|
|
58
|
-
archiveApplicationToken(request: T.ArchiveApplicationTokenRequest): Promise<T.ArchiveApplicationTokenResponse>;
|
|
59
|
-
activateApplicationToken(request: T.ActivateApplicationTokenRequest): Promise<T.ActivateApplicationTokenResponse>;
|
|
60
|
-
deactivateApplicationToken(request: T.DeactivateApplicationTokenRequest): Promise<T.DeactivateApplicationTokenResponse>;
|
|
61
47
|
createUserRecovery(request: T.CreateUserRecoveryRequest): Promise<T.CreateUserRecoveryResponse>;
|
|
62
48
|
}
|
|
@@ -320,100 +320,6 @@ class AuthClient {
|
|
|
320
320
|
});
|
|
321
321
|
return response.json();
|
|
322
322
|
}
|
|
323
|
-
async listServiceAccountTokens(request) {
|
|
324
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens', {
|
|
325
|
-
path: { serviceAccountId: request.serviceAccountId },
|
|
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 createServiceAccountToken(request) {
|
|
335
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
|
|
336
|
-
path: { serviceAccountId: request.serviceAccountId },
|
|
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 getServiceAccountToken(request) {
|
|
347
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
348
|
-
path: {
|
|
349
|
-
serviceAccountId: request.serviceAccountId,
|
|
350
|
-
tokenId: request.tokenId,
|
|
351
|
-
},
|
|
352
|
-
query: {},
|
|
353
|
-
});
|
|
354
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
355
|
-
method: 'GET',
|
|
356
|
-
apiOptions: this.apiOptions,
|
|
357
|
-
});
|
|
358
|
-
return response.json();
|
|
359
|
-
}
|
|
360
|
-
async updateServiceAccountToken(request) {
|
|
361
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
362
|
-
path: {
|
|
363
|
-
serviceAccountId: request.serviceAccountId,
|
|
364
|
-
tokenId: request.tokenId,
|
|
365
|
-
},
|
|
366
|
-
query: {},
|
|
367
|
-
});
|
|
368
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
369
|
-
method: 'PUT',
|
|
370
|
-
body: request.body,
|
|
371
|
-
apiOptions: this.apiOptions,
|
|
372
|
-
});
|
|
373
|
-
return response.json();
|
|
374
|
-
}
|
|
375
|
-
async archiveServiceAccountToken(request) {
|
|
376
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
377
|
-
path: {
|
|
378
|
-
serviceAccountId: request.serviceAccountId,
|
|
379
|
-
tokenId: request.tokenId,
|
|
380
|
-
},
|
|
381
|
-
query: {},
|
|
382
|
-
});
|
|
383
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
384
|
-
method: 'DELETE',
|
|
385
|
-
apiOptions: this.apiOptions,
|
|
386
|
-
});
|
|
387
|
-
return response.json();
|
|
388
|
-
}
|
|
389
|
-
async activateServiceAccountToken(request) {
|
|
390
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/activate', {
|
|
391
|
-
path: {
|
|
392
|
-
serviceAccountId: request.serviceAccountId,
|
|
393
|
-
tokenId: request.tokenId,
|
|
394
|
-
},
|
|
395
|
-
query: {},
|
|
396
|
-
});
|
|
397
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
398
|
-
method: 'PUT',
|
|
399
|
-
apiOptions: this.apiOptions,
|
|
400
|
-
});
|
|
401
|
-
return response.json();
|
|
402
|
-
}
|
|
403
|
-
async deactivateServiceAccountToken(request) {
|
|
404
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/deactivate', {
|
|
405
|
-
path: {
|
|
406
|
-
serviceAccountId: request.serviceAccountId,
|
|
407
|
-
tokenId: request.tokenId,
|
|
408
|
-
},
|
|
409
|
-
query: {},
|
|
410
|
-
});
|
|
411
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
412
|
-
method: 'PUT',
|
|
413
|
-
apiOptions: this.apiOptions,
|
|
414
|
-
});
|
|
415
|
-
return response.json();
|
|
416
|
-
}
|
|
417
323
|
async listUsers() {
|
|
418
324
|
const path = (0, url_1.buildPathAndQuery)('/auth/users', {
|
|
419
325
|
path: {},
|
|
@@ -572,85 +478,6 @@ class AuthClient {
|
|
|
572
478
|
});
|
|
573
479
|
return response.json();
|
|
574
480
|
}
|
|
575
|
-
async listApplicationTokens(request) {
|
|
576
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens', {
|
|
577
|
-
path: { appId: request.appId },
|
|
578
|
-
query: {},
|
|
579
|
-
});
|
|
580
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
581
|
-
method: 'GET',
|
|
582
|
-
apiOptions: this.apiOptions,
|
|
583
|
-
});
|
|
584
|
-
return response.json();
|
|
585
|
-
}
|
|
586
|
-
async createApplicationToken(request) {
|
|
587
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens', {
|
|
588
|
-
path: { appId: request.appId },
|
|
589
|
-
query: {},
|
|
590
|
-
});
|
|
591
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
592
|
-
method: 'POST',
|
|
593
|
-
body: request.body,
|
|
594
|
-
apiOptions: this.apiOptions,
|
|
595
|
-
});
|
|
596
|
-
return response.json();
|
|
597
|
-
}
|
|
598
|
-
async getApplicationToken(request) {
|
|
599
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens/:tokenId', {
|
|
600
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
601
|
-
query: {},
|
|
602
|
-
});
|
|
603
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
604
|
-
method: 'GET',
|
|
605
|
-
apiOptions: this.apiOptions,
|
|
606
|
-
});
|
|
607
|
-
return response.json();
|
|
608
|
-
}
|
|
609
|
-
async updateApplicationToken(request) {
|
|
610
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens/:tokenId', {
|
|
611
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
612
|
-
query: {},
|
|
613
|
-
});
|
|
614
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
615
|
-
method: 'PUT',
|
|
616
|
-
body: request.body,
|
|
617
|
-
apiOptions: this.apiOptions,
|
|
618
|
-
});
|
|
619
|
-
return response.json();
|
|
620
|
-
}
|
|
621
|
-
async archiveApplicationToken(request) {
|
|
622
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId', {
|
|
623
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
624
|
-
query: {},
|
|
625
|
-
});
|
|
626
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
627
|
-
method: 'DELETE',
|
|
628
|
-
apiOptions: this.apiOptions,
|
|
629
|
-
});
|
|
630
|
-
return response.json();
|
|
631
|
-
}
|
|
632
|
-
async activateApplicationToken(request) {
|
|
633
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/activate', {
|
|
634
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
635
|
-
query: {},
|
|
636
|
-
});
|
|
637
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
638
|
-
method: 'PUT',
|
|
639
|
-
apiOptions: this.apiOptions,
|
|
640
|
-
});
|
|
641
|
-
return response.json();
|
|
642
|
-
}
|
|
643
|
-
async deactivateApplicationToken(request) {
|
|
644
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/deactivate', {
|
|
645
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
646
|
-
query: {},
|
|
647
|
-
});
|
|
648
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
649
|
-
method: 'PUT',
|
|
650
|
-
apiOptions: this.apiOptions,
|
|
651
|
-
});
|
|
652
|
-
return response.json();
|
|
653
|
-
}
|
|
654
481
|
async createUserRecovery(request) {
|
|
655
482
|
const path = (0, url_1.buildPathAndQuery)('/auth/recover/user', {
|
|
656
483
|
path: {},
|
|
@@ -46,18 +46,6 @@ export declare class DelegatedAuthClient {
|
|
|
46
46
|
activateServiceAccountComplete(request: T.ActivateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateServiceAccountResponse>;
|
|
47
47
|
deactivateServiceAccountInit(request: T.DeactivateServiceAccountRequest): Promise<UserActionChallengeResponse>;
|
|
48
48
|
deactivateServiceAccountComplete(request: T.DeactivateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateServiceAccountResponse>;
|
|
49
|
-
listServiceAccountTokens(request: T.ListServiceAccountTokensRequest): Promise<T.ListServiceAccountTokensResponse>;
|
|
50
|
-
createServiceAccountTokenInit(request: T.CreateServiceAccountTokenRequest): Promise<UserActionChallengeResponse>;
|
|
51
|
-
createServiceAccountTokenComplete(request: T.CreateServiceAccountTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateServiceAccountTokenResponse>;
|
|
52
|
-
getServiceAccountToken(request: T.GetServiceAccountTokenRequest): Promise<T.GetServiceAccountTokenResponse>;
|
|
53
|
-
updateServiceAccountTokenInit(request: T.UpdateServiceAccountTokenRequest): Promise<UserActionChallengeResponse>;
|
|
54
|
-
updateServiceAccountTokenComplete(request: T.UpdateServiceAccountTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateServiceAccountTokenResponse>;
|
|
55
|
-
archiveServiceAccountTokenInit(request: T.ArchiveServiceAccountTokenRequest): Promise<UserActionChallengeResponse>;
|
|
56
|
-
archiveServiceAccountTokenComplete(request: T.ArchiveServiceAccountTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveServiceAccountTokenResponse>;
|
|
57
|
-
activateServiceAccountTokenInit(request: T.ActivateServiceAccountTokenRequest): Promise<UserActionChallengeResponse>;
|
|
58
|
-
activateServiceAccountTokenComplete(request: T.ActivateServiceAccountTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateServiceAccountTokenResponse>;
|
|
59
|
-
deactivateServiceAccountTokenInit(request: T.DeactivateServiceAccountTokenRequest): Promise<UserActionChallengeResponse>;
|
|
60
|
-
deactivateServiceAccountTokenComplete(request: T.DeactivateServiceAccountTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateServiceAccountTokenResponse>;
|
|
61
49
|
listUsers(): Promise<T.ListUsersResponse>;
|
|
62
50
|
createUserInit(request: T.CreateUserRequest): Promise<UserActionChallengeResponse>;
|
|
63
51
|
createUserComplete(request: T.CreateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateUserResponse>;
|
|
@@ -82,17 +70,5 @@ export declare class DelegatedAuthClient {
|
|
|
82
70
|
activateApplicationComplete(request: T.ActivateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateApplicationResponse>;
|
|
83
71
|
deactivateApplicationInit(request: T.DeactivateApplicationRequest): Promise<UserActionChallengeResponse>;
|
|
84
72
|
deactivateApplicationComplete(request: T.DeactivateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateApplicationResponse>;
|
|
85
|
-
listApplicationTokens(request: T.ListApplicationTokensRequest): Promise<T.ListApplicationTokensResponse>;
|
|
86
|
-
createApplicationTokenInit(request: T.CreateApplicationTokenRequest): Promise<UserActionChallengeResponse>;
|
|
87
|
-
createApplicationTokenComplete(request: T.CreateApplicationTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateApplicationTokenResponse>;
|
|
88
|
-
getApplicationToken(request: T.GetApplicationTokenRequest): Promise<T.GetApplicationTokenResponse>;
|
|
89
|
-
updateApplicationTokenInit(request: T.UpdateApplicationTokenRequest): Promise<UserActionChallengeResponse>;
|
|
90
|
-
updateApplicationTokenComplete(request: T.UpdateApplicationTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateApplicationTokenResponse>;
|
|
91
|
-
archiveApplicationTokenInit(request: T.ArchiveApplicationTokenRequest): Promise<UserActionChallengeResponse>;
|
|
92
|
-
archiveApplicationTokenComplete(request: T.ArchiveApplicationTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchiveApplicationTokenResponse>;
|
|
93
|
-
activateApplicationTokenInit(request: T.ActivateApplicationTokenRequest): Promise<UserActionChallengeResponse>;
|
|
94
|
-
activateApplicationTokenComplete(request: T.ActivateApplicationTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateApplicationTokenResponse>;
|
|
95
|
-
deactivateApplicationTokenInit(request: T.DeactivateApplicationTokenRequest): Promise<UserActionChallengeResponse>;
|
|
96
|
-
deactivateApplicationTokenComplete(request: T.DeactivateApplicationTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateApplicationTokenResponse>;
|
|
97
73
|
createUserRecovery(request: T.CreateUserRecoveryRequest): Promise<T.CreateUserRecoveryResponse>;
|
|
98
74
|
}
|
|
@@ -552,190 +552,6 @@ class DelegatedAuthClient {
|
|
|
552
552
|
});
|
|
553
553
|
return response.json();
|
|
554
554
|
}
|
|
555
|
-
async listServiceAccountTokens(request) {
|
|
556
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens', {
|
|
557
|
-
path: { serviceAccountId: request.serviceAccountId },
|
|
558
|
-
query: {},
|
|
559
|
-
});
|
|
560
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
561
|
-
method: 'GET',
|
|
562
|
-
apiOptions: this.apiOptions,
|
|
563
|
-
});
|
|
564
|
-
return response.json();
|
|
565
|
-
}
|
|
566
|
-
async createServiceAccountTokenInit(request) {
|
|
567
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
|
|
568
|
-
path: { serviceAccountId: request.serviceAccountId },
|
|
569
|
-
query: {},
|
|
570
|
-
});
|
|
571
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
572
|
-
userActionHttpMethod: 'POST',
|
|
573
|
-
userActionHttpPath: path,
|
|
574
|
-
userActionPayload: JSON.stringify(request.body),
|
|
575
|
-
userActionServerKind: 'Api',
|
|
576
|
-
}, this.apiOptions);
|
|
577
|
-
return challenge;
|
|
578
|
-
}
|
|
579
|
-
async createServiceAccountTokenComplete(request, signedChallenge) {
|
|
580
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId', {
|
|
581
|
-
path: { serviceAccountId: request.serviceAccountId },
|
|
582
|
-
query: {},
|
|
583
|
-
});
|
|
584
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
585
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
586
|
-
method: 'POST',
|
|
587
|
-
body: request.body,
|
|
588
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
589
|
-
apiOptions: this.apiOptions,
|
|
590
|
-
});
|
|
591
|
-
return response.json();
|
|
592
|
-
}
|
|
593
|
-
async getServiceAccountToken(request) {
|
|
594
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
595
|
-
path: {
|
|
596
|
-
serviceAccountId: request.serviceAccountId,
|
|
597
|
-
tokenId: request.tokenId,
|
|
598
|
-
},
|
|
599
|
-
query: {},
|
|
600
|
-
});
|
|
601
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
602
|
-
method: 'GET',
|
|
603
|
-
apiOptions: this.apiOptions,
|
|
604
|
-
});
|
|
605
|
-
return response.json();
|
|
606
|
-
}
|
|
607
|
-
async updateServiceAccountTokenInit(request) {
|
|
608
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
609
|
-
path: {
|
|
610
|
-
serviceAccountId: request.serviceAccountId,
|
|
611
|
-
tokenId: request.tokenId,
|
|
612
|
-
},
|
|
613
|
-
query: {},
|
|
614
|
-
});
|
|
615
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
616
|
-
userActionHttpMethod: 'PUT',
|
|
617
|
-
userActionHttpPath: path,
|
|
618
|
-
userActionPayload: JSON.stringify(request.body),
|
|
619
|
-
userActionServerKind: 'Api',
|
|
620
|
-
}, this.apiOptions);
|
|
621
|
-
return challenge;
|
|
622
|
-
}
|
|
623
|
-
async updateServiceAccountTokenComplete(request, signedChallenge) {
|
|
624
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
625
|
-
path: {
|
|
626
|
-
serviceAccountId: request.serviceAccountId,
|
|
627
|
-
tokenId: request.tokenId,
|
|
628
|
-
},
|
|
629
|
-
query: {},
|
|
630
|
-
});
|
|
631
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
632
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
633
|
-
method: 'PUT',
|
|
634
|
-
body: request.body,
|
|
635
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
636
|
-
apiOptions: this.apiOptions,
|
|
637
|
-
});
|
|
638
|
-
return response.json();
|
|
639
|
-
}
|
|
640
|
-
async archiveServiceAccountTokenInit(request) {
|
|
641
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
642
|
-
path: {
|
|
643
|
-
serviceAccountId: request.serviceAccountId,
|
|
644
|
-
tokenId: request.tokenId,
|
|
645
|
-
},
|
|
646
|
-
query: {},
|
|
647
|
-
});
|
|
648
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
649
|
-
userActionHttpMethod: 'DELETE',
|
|
650
|
-
userActionHttpPath: path,
|
|
651
|
-
userActionPayload: JSON.stringify({}),
|
|
652
|
-
userActionServerKind: 'Api',
|
|
653
|
-
}, this.apiOptions);
|
|
654
|
-
return challenge;
|
|
655
|
-
}
|
|
656
|
-
async archiveServiceAccountTokenComplete(request, signedChallenge) {
|
|
657
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId', {
|
|
658
|
-
path: {
|
|
659
|
-
serviceAccountId: request.serviceAccountId,
|
|
660
|
-
tokenId: request.tokenId,
|
|
661
|
-
},
|
|
662
|
-
query: {},
|
|
663
|
-
});
|
|
664
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
665
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
666
|
-
method: 'DELETE',
|
|
667
|
-
body: {},
|
|
668
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
669
|
-
apiOptions: this.apiOptions,
|
|
670
|
-
});
|
|
671
|
-
return response.json();
|
|
672
|
-
}
|
|
673
|
-
async activateServiceAccountTokenInit(request) {
|
|
674
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/activate', {
|
|
675
|
-
path: {
|
|
676
|
-
serviceAccountId: request.serviceAccountId,
|
|
677
|
-
tokenId: request.tokenId,
|
|
678
|
-
},
|
|
679
|
-
query: {},
|
|
680
|
-
});
|
|
681
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
682
|
-
userActionHttpMethod: 'PUT',
|
|
683
|
-
userActionHttpPath: path,
|
|
684
|
-
userActionPayload: JSON.stringify({}),
|
|
685
|
-
userActionServerKind: 'Api',
|
|
686
|
-
}, this.apiOptions);
|
|
687
|
-
return challenge;
|
|
688
|
-
}
|
|
689
|
-
async activateServiceAccountTokenComplete(request, signedChallenge) {
|
|
690
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/activate', {
|
|
691
|
-
path: {
|
|
692
|
-
serviceAccountId: request.serviceAccountId,
|
|
693
|
-
tokenId: request.tokenId,
|
|
694
|
-
},
|
|
695
|
-
query: {},
|
|
696
|
-
});
|
|
697
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
698
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
699
|
-
method: 'PUT',
|
|
700
|
-
body: {},
|
|
701
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
702
|
-
apiOptions: this.apiOptions,
|
|
703
|
-
});
|
|
704
|
-
return response.json();
|
|
705
|
-
}
|
|
706
|
-
async deactivateServiceAccountTokenInit(request) {
|
|
707
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/deactivate', {
|
|
708
|
-
path: {
|
|
709
|
-
serviceAccountId: request.serviceAccountId,
|
|
710
|
-
tokenId: request.tokenId,
|
|
711
|
-
},
|
|
712
|
-
query: {},
|
|
713
|
-
});
|
|
714
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
715
|
-
userActionHttpMethod: 'PUT',
|
|
716
|
-
userActionHttpPath: path,
|
|
717
|
-
userActionPayload: JSON.stringify({}),
|
|
718
|
-
userActionServerKind: 'Api',
|
|
719
|
-
}, this.apiOptions);
|
|
720
|
-
return challenge;
|
|
721
|
-
}
|
|
722
|
-
async deactivateServiceAccountTokenComplete(request, signedChallenge) {
|
|
723
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/service-accounts/:serviceAccountId/tokens/:tokenId/deactivate', {
|
|
724
|
-
path: {
|
|
725
|
-
serviceAccountId: request.serviceAccountId,
|
|
726
|
-
tokenId: request.tokenId,
|
|
727
|
-
},
|
|
728
|
-
query: {},
|
|
729
|
-
});
|
|
730
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
731
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
732
|
-
method: 'PUT',
|
|
733
|
-
body: {},
|
|
734
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
735
|
-
apiOptions: this.apiOptions,
|
|
736
|
-
});
|
|
737
|
-
return response.json();
|
|
738
|
-
}
|
|
739
555
|
async listUsers() {
|
|
740
556
|
const path = (0, url_1.buildPathAndQuery)('/auth/users', {
|
|
741
557
|
path: {},
|
|
@@ -1050,163 +866,6 @@ class DelegatedAuthClient {
|
|
|
1050
866
|
});
|
|
1051
867
|
return response.json();
|
|
1052
868
|
}
|
|
1053
|
-
async listApplicationTokens(request) {
|
|
1054
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens', {
|
|
1055
|
-
path: { appId: request.appId },
|
|
1056
|
-
query: {},
|
|
1057
|
-
});
|
|
1058
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1059
|
-
method: 'GET',
|
|
1060
|
-
apiOptions: this.apiOptions,
|
|
1061
|
-
});
|
|
1062
|
-
return response.json();
|
|
1063
|
-
}
|
|
1064
|
-
async createApplicationTokenInit(request) {
|
|
1065
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens', {
|
|
1066
|
-
path: { appId: request.appId },
|
|
1067
|
-
query: {},
|
|
1068
|
-
});
|
|
1069
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
1070
|
-
userActionHttpMethod: 'POST',
|
|
1071
|
-
userActionHttpPath: path,
|
|
1072
|
-
userActionPayload: JSON.stringify(request.body),
|
|
1073
|
-
userActionServerKind: 'Api',
|
|
1074
|
-
}, this.apiOptions);
|
|
1075
|
-
return challenge;
|
|
1076
|
-
}
|
|
1077
|
-
async createApplicationTokenComplete(request, signedChallenge) {
|
|
1078
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens', {
|
|
1079
|
-
path: { appId: request.appId },
|
|
1080
|
-
query: {},
|
|
1081
|
-
});
|
|
1082
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
1083
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1084
|
-
method: 'POST',
|
|
1085
|
-
body: request.body,
|
|
1086
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
1087
|
-
apiOptions: this.apiOptions,
|
|
1088
|
-
});
|
|
1089
|
-
return response.json();
|
|
1090
|
-
}
|
|
1091
|
-
async getApplicationToken(request) {
|
|
1092
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens/:tokenId', {
|
|
1093
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1094
|
-
query: {},
|
|
1095
|
-
});
|
|
1096
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1097
|
-
method: 'GET',
|
|
1098
|
-
apiOptions: this.apiOptions,
|
|
1099
|
-
});
|
|
1100
|
-
return response.json();
|
|
1101
|
-
}
|
|
1102
|
-
async updateApplicationTokenInit(request) {
|
|
1103
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens/:tokenId', {
|
|
1104
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1105
|
-
query: {},
|
|
1106
|
-
});
|
|
1107
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
1108
|
-
userActionHttpMethod: 'PUT',
|
|
1109
|
-
userActionHttpPath: path,
|
|
1110
|
-
userActionPayload: JSON.stringify(request.body),
|
|
1111
|
-
userActionServerKind: 'Api',
|
|
1112
|
-
}, this.apiOptions);
|
|
1113
|
-
return challenge;
|
|
1114
|
-
}
|
|
1115
|
-
async updateApplicationTokenComplete(request, signedChallenge) {
|
|
1116
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/tokens/:tokenId', {
|
|
1117
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1118
|
-
query: {},
|
|
1119
|
-
});
|
|
1120
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
1121
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1122
|
-
method: 'PUT',
|
|
1123
|
-
body: request.body,
|
|
1124
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
1125
|
-
apiOptions: this.apiOptions,
|
|
1126
|
-
});
|
|
1127
|
-
return response.json();
|
|
1128
|
-
}
|
|
1129
|
-
async archiveApplicationTokenInit(request) {
|
|
1130
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId', {
|
|
1131
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1132
|
-
query: {},
|
|
1133
|
-
});
|
|
1134
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
1135
|
-
userActionHttpMethod: 'DELETE',
|
|
1136
|
-
userActionHttpPath: path,
|
|
1137
|
-
userActionPayload: JSON.stringify({}),
|
|
1138
|
-
userActionServerKind: 'Api',
|
|
1139
|
-
}, this.apiOptions);
|
|
1140
|
-
return challenge;
|
|
1141
|
-
}
|
|
1142
|
-
async archiveApplicationTokenComplete(request, signedChallenge) {
|
|
1143
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId', {
|
|
1144
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1145
|
-
query: {},
|
|
1146
|
-
});
|
|
1147
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
1148
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1149
|
-
method: 'DELETE',
|
|
1150
|
-
body: {},
|
|
1151
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
1152
|
-
apiOptions: this.apiOptions,
|
|
1153
|
-
});
|
|
1154
|
-
return response.json();
|
|
1155
|
-
}
|
|
1156
|
-
async activateApplicationTokenInit(request) {
|
|
1157
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/activate', {
|
|
1158
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1159
|
-
query: {},
|
|
1160
|
-
});
|
|
1161
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
1162
|
-
userActionHttpMethod: 'PUT',
|
|
1163
|
-
userActionHttpPath: path,
|
|
1164
|
-
userActionPayload: JSON.stringify({}),
|
|
1165
|
-
userActionServerKind: 'Api',
|
|
1166
|
-
}, this.apiOptions);
|
|
1167
|
-
return challenge;
|
|
1168
|
-
}
|
|
1169
|
-
async activateApplicationTokenComplete(request, signedChallenge) {
|
|
1170
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/activate', {
|
|
1171
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1172
|
-
query: {},
|
|
1173
|
-
});
|
|
1174
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
1175
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1176
|
-
method: 'PUT',
|
|
1177
|
-
body: {},
|
|
1178
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
1179
|
-
apiOptions: this.apiOptions,
|
|
1180
|
-
});
|
|
1181
|
-
return response.json();
|
|
1182
|
-
}
|
|
1183
|
-
async deactivateApplicationTokenInit(request) {
|
|
1184
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/deactivate', {
|
|
1185
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1186
|
-
query: {},
|
|
1187
|
-
});
|
|
1188
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
1189
|
-
userActionHttpMethod: 'PUT',
|
|
1190
|
-
userActionHttpPath: path,
|
|
1191
|
-
userActionPayload: JSON.stringify({}),
|
|
1192
|
-
userActionServerKind: 'Api',
|
|
1193
|
-
}, this.apiOptions);
|
|
1194
|
-
return challenge;
|
|
1195
|
-
}
|
|
1196
|
-
async deactivateApplicationTokenComplete(request, signedChallenge) {
|
|
1197
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId/token/:tokenId/deactivate', {
|
|
1198
|
-
path: { appId: request.appId, tokenId: request.tokenId },
|
|
1199
|
-
query: {},
|
|
1200
|
-
});
|
|
1201
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
1202
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
1203
|
-
method: 'PUT',
|
|
1204
|
-
body: {},
|
|
1205
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
1206
|
-
apiOptions: this.apiOptions,
|
|
1207
|
-
});
|
|
1208
|
-
return response.json();
|
|
1209
|
-
}
|
|
1210
869
|
async createUserRecovery(request) {
|
|
1211
870
|
const path = (0, url_1.buildPathAndQuery)('/auth/recover/user', {
|
|
1212
871
|
path: {},
|
package/codegen/Auth/types.d.ts
CHANGED
|
@@ -107,43 +107,6 @@ export type DeactivateServiceAccountRequest = {
|
|
|
107
107
|
serviceAccountId: Foundations.EntityId;
|
|
108
108
|
};
|
|
109
109
|
export type DeactivateServiceAccountResponse = Auth.UserAccessTokenInformation;
|
|
110
|
-
export type ListServiceAccountTokensRequest = {
|
|
111
|
-
serviceAccountId: Foundations.EntityId;
|
|
112
|
-
};
|
|
113
|
-
export type ListServiceAccountTokensResponse = {
|
|
114
|
-
items: Auth.AccessTokenInfoWithPublicKey[];
|
|
115
|
-
};
|
|
116
|
-
export type CreateServiceAccountTokenRequest = {
|
|
117
|
-
serviceAccountId: Foundations.EntityId;
|
|
118
|
-
body: Auth.CreateAccessTokenInput;
|
|
119
|
-
};
|
|
120
|
-
export type CreateServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
121
|
-
export type GetServiceAccountTokenRequest = {
|
|
122
|
-
serviceAccountId: Foundations.EntityId;
|
|
123
|
-
tokenId: Foundations.EntityId;
|
|
124
|
-
};
|
|
125
|
-
export type GetServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
126
|
-
export type UpdateServiceAccountTokenRequest = {
|
|
127
|
-
serviceAccountId: Foundations.EntityId;
|
|
128
|
-
tokenId: Foundations.EntityId;
|
|
129
|
-
body: Auth.UpdateAccessTokenInput;
|
|
130
|
-
};
|
|
131
|
-
export type UpdateServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
132
|
-
export type ArchiveServiceAccountTokenRequest = {
|
|
133
|
-
serviceAccountId: Foundations.EntityId;
|
|
134
|
-
tokenId: Foundations.EntityId;
|
|
135
|
-
};
|
|
136
|
-
export type ArchiveServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
137
|
-
export type ActivateServiceAccountTokenRequest = {
|
|
138
|
-
serviceAccountId: Foundations.EntityId;
|
|
139
|
-
tokenId: Foundations.EntityId;
|
|
140
|
-
};
|
|
141
|
-
export type ActivateServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
142
|
-
export type DeactivateServiceAccountTokenRequest = {
|
|
143
|
-
serviceAccountId: Foundations.EntityId;
|
|
144
|
-
tokenId: Foundations.EntityId;
|
|
145
|
-
};
|
|
146
|
-
export type DeactivateServiceAccountTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
147
110
|
export type ListUsersResponse = {
|
|
148
111
|
items: Auth.UserInfo[];
|
|
149
112
|
};
|
|
@@ -200,43 +163,6 @@ export type DeactivateApplicationRequest = {
|
|
|
200
163
|
appId: Foundations.EntityId;
|
|
201
164
|
};
|
|
202
165
|
export type DeactivateApplicationResponse = Auth.AppInfoWithPublicKey;
|
|
203
|
-
export type ListApplicationTokensRequest = {
|
|
204
|
-
appId: Foundations.EntityId;
|
|
205
|
-
};
|
|
206
|
-
export type ListApplicationTokensResponse = {
|
|
207
|
-
items: Auth.AccessTokenInfoWithPublicKey[];
|
|
208
|
-
};
|
|
209
|
-
export type CreateApplicationTokenRequest = {
|
|
210
|
-
appId: Foundations.EntityId;
|
|
211
|
-
body: Auth.CreateAccessTokenInput;
|
|
212
|
-
};
|
|
213
|
-
export type CreateApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
214
|
-
export type GetApplicationTokenRequest = {
|
|
215
|
-
appId: Foundations.EntityId;
|
|
216
|
-
tokenId: Foundations.EntityId;
|
|
217
|
-
};
|
|
218
|
-
export type GetApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
219
|
-
export type UpdateApplicationTokenRequest = {
|
|
220
|
-
appId: Foundations.EntityId;
|
|
221
|
-
tokenId: Foundations.EntityId;
|
|
222
|
-
body: Auth.UpdateAccessTokenInput;
|
|
223
|
-
};
|
|
224
|
-
export type UpdateApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
225
|
-
export type ArchiveApplicationTokenRequest = {
|
|
226
|
-
appId: Foundations.EntityId;
|
|
227
|
-
tokenId: Foundations.EntityId;
|
|
228
|
-
};
|
|
229
|
-
export type ArchiveApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
230
|
-
export type ActivateApplicationTokenRequest = {
|
|
231
|
-
appId: Foundations.EntityId;
|
|
232
|
-
tokenId: Foundations.EntityId;
|
|
233
|
-
};
|
|
234
|
-
export type ActivateApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
235
|
-
export type DeactivateApplicationTokenRequest = {
|
|
236
|
-
appId: Foundations.EntityId;
|
|
237
|
-
tokenId: Foundations.EntityId;
|
|
238
|
-
};
|
|
239
|
-
export type DeactivateApplicationTokenResponse = Auth.AccessTokenInfoWithPublicKey;
|
|
240
166
|
export type CreateUserRecoveryRequest = {
|
|
241
167
|
body: Auth.CreateUserLoginChallengeInput;
|
|
242
168
|
};
|
|
@@ -24,5 +24,4 @@ export declare class DelegatedPermissionsClient {
|
|
|
24
24
|
revokePermissionAssignmentInit(request: T.RevokePermissionAssignmentRequest): Promise<UserActionChallengeResponse>;
|
|
25
25
|
revokePermissionAssignmentComplete(request: T.RevokePermissionAssignmentRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.RevokePermissionAssignmentResponse>;
|
|
26
26
|
listPermissionAssignments(request: T.ListPermissionAssignmentsRequest): Promise<T.ListPermissionAssignmentsResponse>;
|
|
27
|
-
listPermissionsHistorical(request: T.ListPermissionsHistoricalRequest): Promise<T.ListPermissionsHistoricalResponse>;
|
|
28
27
|
}
|
|
@@ -281,17 +281,5 @@ class DelegatedPermissionsClient {
|
|
|
281
281
|
});
|
|
282
282
|
return response.json();
|
|
283
283
|
}
|
|
284
|
-
async listPermissionsHistorical(request) {
|
|
285
|
-
var _a;
|
|
286
|
-
const path = (0, url_1.buildPathAndQuery)('/audit/permissions', {
|
|
287
|
-
path: {},
|
|
288
|
-
query: (_a = request.query) !== null && _a !== void 0 ? _a : {},
|
|
289
|
-
});
|
|
290
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
291
|
-
method: 'GET',
|
|
292
|
-
apiOptions: this.apiOptions,
|
|
293
|
-
});
|
|
294
|
-
return response.json();
|
|
295
|
-
}
|
|
296
284
|
}
|
|
297
285
|
exports.DelegatedPermissionsClient = DelegatedPermissionsClient;
|
|
@@ -15,5 +15,4 @@ export declare class PermissionsClient {
|
|
|
15
15
|
createPermissionAssignment(request: T.CreatePermissionAssignmentRequest): Promise<T.CreatePermissionAssignmentResponse>;
|
|
16
16
|
revokePermissionAssignment(request: T.RevokePermissionAssignmentRequest): Promise<T.RevokePermissionAssignmentResponse>;
|
|
17
17
|
listPermissionAssignments(request: T.ListPermissionAssignmentsRequest): Promise<T.ListPermissionAssignmentsResponse>;
|
|
18
|
-
listPermissionsHistorical(request: T.ListPermissionsHistoricalRequest): Promise<T.ListPermissionsHistoricalResponse>;
|
|
19
18
|
}
|
|
@@ -153,17 +153,5 @@ class PermissionsClient {
|
|
|
153
153
|
});
|
|
154
154
|
return response.json();
|
|
155
155
|
}
|
|
156
|
-
async listPermissionsHistorical(request) {
|
|
157
|
-
var _a;
|
|
158
|
-
const path = (0, url_1.buildPathAndQuery)('/audit/permissions', {
|
|
159
|
-
path: {},
|
|
160
|
-
query: (_a = request.query) !== null && _a !== void 0 ? _a : {},
|
|
161
|
-
});
|
|
162
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
163
|
-
method: 'GET',
|
|
164
|
-
apiOptions: this.apiOptions,
|
|
165
|
-
});
|
|
166
|
-
return response.json();
|
|
167
|
-
}
|
|
168
156
|
}
|
|
169
157
|
exports.PermissionsClient = PermissionsClient;
|
|
@@ -61,11 +61,3 @@ export type ListPermissionAssignmentsRequest = {
|
|
|
61
61
|
export type ListPermissionAssignmentsResponse = {
|
|
62
62
|
items: Permissions.PermissionAssignment[];
|
|
63
63
|
};
|
|
64
|
-
export type ListPermissionsHistoricalRequest = {
|
|
65
|
-
query?: {
|
|
66
|
-
permissionName?: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export type ListPermissionsHistoricalResponse = {
|
|
70
|
-
items: Permissions.Permission[];
|
|
71
|
-
};
|
|
@@ -4,7 +4,9 @@ export type ListPolicyControlExecutionsRequest = {
|
|
|
4
4
|
activityId: string;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
export type ListPolicyControlExecutionsResponse =
|
|
7
|
+
export type ListPolicyControlExecutionsResponse = {
|
|
8
|
+
items: PolicyExecution.PolicyControlExecution[];
|
|
9
|
+
};
|
|
8
10
|
export type GetPolicyControlExecutionByIdRequest = {
|
|
9
11
|
policyControlExecutionId: string;
|
|
10
12
|
};
|
|
@@ -6,24 +6,18 @@ export declare class DelegatedPolicyManagementClient {
|
|
|
6
6
|
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
7
|
createPolicyInit(request: T.CreatePolicyRequest): Promise<UserActionChallengeResponse>;
|
|
8
8
|
createPolicyComplete(request: T.CreatePolicyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyResponse>;
|
|
9
|
-
updatePolicyInit(request: T.UpdatePolicyRequest): Promise<UserActionChallengeResponse>;
|
|
10
|
-
updatePolicyComplete(request: T.UpdatePolicyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePolicyResponse>;
|
|
11
9
|
getPolicyById(request: T.GetPolicyByIdRequest): Promise<T.GetPolicyByIdResponse>;
|
|
12
10
|
listPolicies(request: T.ListPoliciesRequest): Promise<T.ListPoliciesResponse>;
|
|
13
11
|
archivePolicyInit(request: T.ArchivePolicyRequest): Promise<UserActionChallengeResponse>;
|
|
14
12
|
archivePolicyComplete(request: T.ArchivePolicyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePolicyResponse>;
|
|
15
13
|
createPolicyControlInit(request: T.CreatePolicyControlRequest): Promise<UserActionChallengeResponse>;
|
|
16
14
|
createPolicyControlComplete(request: T.CreatePolicyControlRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyControlResponse>;
|
|
17
|
-
updatePolicyControlInit(request: T.UpdatePolicyControlRequest): Promise<UserActionChallengeResponse>;
|
|
18
|
-
updatePolicyControlComplete(request: T.UpdatePolicyControlRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePolicyControlResponse>;
|
|
19
15
|
getPolicyControlById(request: T.GetPolicyControlByIdRequest): Promise<T.GetPolicyControlByIdResponse>;
|
|
20
16
|
listPolicyControls(request: T.ListPolicyControlsRequest): Promise<T.ListPolicyControlsResponse>;
|
|
21
17
|
archivePolicyControlInit(request: T.ArchivePolicyControlRequest): Promise<UserActionChallengeResponse>;
|
|
22
18
|
archivePolicyControlComplete(request: T.ArchivePolicyControlRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePolicyControlResponse>;
|
|
23
19
|
createPolicyRuleInit(request: T.CreatePolicyRuleRequest): Promise<UserActionChallengeResponse>;
|
|
24
20
|
createPolicyRuleComplete(request: T.CreatePolicyRuleRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyRuleResponse>;
|
|
25
|
-
updatePolicyRuleInit(request: T.UpdatePolicyRuleRequest): Promise<UserActionChallengeResponse>;
|
|
26
|
-
updatePolicyRuleComplete(request: T.UpdatePolicyRuleRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePolicyRuleResponse>;
|
|
27
21
|
getPolicyRuleById(request: T.GetPolicyRuleByIdRequest): Promise<T.GetPolicyRuleByIdResponse>;
|
|
28
22
|
listPolicyRules(request: T.ListPolicyRulesRequest): Promise<T.ListPolicyRulesResponse>;
|
|
29
23
|
archivePolicyRuleInit(request: T.ArchivePolicyRuleRequest): Promise<UserActionChallengeResponse>;
|
|
@@ -35,33 +35,6 @@ class DelegatedPolicyManagementClient {
|
|
|
35
35
|
});
|
|
36
36
|
return response.json();
|
|
37
37
|
}
|
|
38
|
-
async updatePolicyInit(request) {
|
|
39
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
40
|
-
path: { policyId: request.policyId },
|
|
41
|
-
query: {},
|
|
42
|
-
});
|
|
43
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
44
|
-
userActionHttpMethod: 'PUT',
|
|
45
|
-
userActionHttpPath: path,
|
|
46
|
-
userActionPayload: JSON.stringify(request.body),
|
|
47
|
-
userActionServerKind: 'Api',
|
|
48
|
-
}, this.apiOptions);
|
|
49
|
-
return challenge;
|
|
50
|
-
}
|
|
51
|
-
async updatePolicyComplete(request, signedChallenge) {
|
|
52
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
53
|
-
path: { policyId: request.policyId },
|
|
54
|
-
query: {},
|
|
55
|
-
});
|
|
56
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
57
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
58
|
-
method: 'PUT',
|
|
59
|
-
body: request.body,
|
|
60
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
61
|
-
apiOptions: this.apiOptions,
|
|
62
|
-
});
|
|
63
|
-
return response.json();
|
|
64
|
-
}
|
|
65
38
|
async getPolicyById(request) {
|
|
66
39
|
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
67
40
|
path: { policyId: request.policyId },
|
|
@@ -139,33 +112,6 @@ class DelegatedPolicyManagementClient {
|
|
|
139
112
|
});
|
|
140
113
|
return response.json();
|
|
141
114
|
}
|
|
142
|
-
async updatePolicyControlInit(request) {
|
|
143
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
144
|
-
path: { policyControlId: request.policyControlId },
|
|
145
|
-
query: {},
|
|
146
|
-
});
|
|
147
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
148
|
-
userActionHttpMethod: 'PUT',
|
|
149
|
-
userActionHttpPath: path,
|
|
150
|
-
userActionPayload: JSON.stringify(request.body),
|
|
151
|
-
userActionServerKind: 'Api',
|
|
152
|
-
}, this.apiOptions);
|
|
153
|
-
return challenge;
|
|
154
|
-
}
|
|
155
|
-
async updatePolicyControlComplete(request, signedChallenge) {
|
|
156
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
157
|
-
path: { policyControlId: request.policyControlId },
|
|
158
|
-
query: {},
|
|
159
|
-
});
|
|
160
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
161
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
162
|
-
method: 'PUT',
|
|
163
|
-
body: request.body,
|
|
164
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
165
|
-
apiOptions: this.apiOptions,
|
|
166
|
-
});
|
|
167
|
-
return response.json();
|
|
168
|
-
}
|
|
169
115
|
async getPolicyControlById(request) {
|
|
170
116
|
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
171
117
|
path: { policyControlId: request.policyControlId },
|
|
@@ -243,33 +189,6 @@ class DelegatedPolicyManagementClient {
|
|
|
243
189
|
});
|
|
244
190
|
return response.json();
|
|
245
191
|
}
|
|
246
|
-
async updatePolicyRuleInit(request) {
|
|
247
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
248
|
-
path: { policyRuleId: request.policyRuleId },
|
|
249
|
-
query: {},
|
|
250
|
-
});
|
|
251
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
252
|
-
userActionHttpMethod: 'PUT',
|
|
253
|
-
userActionHttpPath: path,
|
|
254
|
-
userActionPayload: JSON.stringify(request.body),
|
|
255
|
-
userActionServerKind: 'Api',
|
|
256
|
-
}, this.apiOptions);
|
|
257
|
-
return challenge;
|
|
258
|
-
}
|
|
259
|
-
async updatePolicyRuleComplete(request, signedChallenge) {
|
|
260
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
261
|
-
path: { policyRuleId: request.policyRuleId },
|
|
262
|
-
query: {},
|
|
263
|
-
});
|
|
264
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
265
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
266
|
-
method: 'PUT',
|
|
267
|
-
body: request.body,
|
|
268
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
269
|
-
apiOptions: this.apiOptions,
|
|
270
|
-
});
|
|
271
|
-
return response.json();
|
|
272
|
-
}
|
|
273
192
|
async getPolicyRuleById(request) {
|
|
274
193
|
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
275
194
|
path: { policyRuleId: request.policyRuleId },
|
|
@@ -4,17 +4,14 @@ export declare class PolicyManagementClient {
|
|
|
4
4
|
private apiOptions;
|
|
5
5
|
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
6
|
createPolicy(request: T.CreatePolicyRequest): Promise<T.CreatePolicyResponse>;
|
|
7
|
-
updatePolicy(request: T.UpdatePolicyRequest): Promise<T.UpdatePolicyResponse>;
|
|
8
7
|
getPolicyById(request: T.GetPolicyByIdRequest): Promise<T.GetPolicyByIdResponse>;
|
|
9
8
|
listPolicies(request: T.ListPoliciesRequest): Promise<T.ListPoliciesResponse>;
|
|
10
9
|
archivePolicy(request: T.ArchivePolicyRequest): Promise<T.ArchivePolicyResponse>;
|
|
11
10
|
createPolicyControl(request: T.CreatePolicyControlRequest): Promise<T.CreatePolicyControlResponse>;
|
|
12
|
-
updatePolicyControl(request: T.UpdatePolicyControlRequest): Promise<T.UpdatePolicyControlResponse>;
|
|
13
11
|
getPolicyControlById(request: T.GetPolicyControlByIdRequest): Promise<T.GetPolicyControlByIdResponse>;
|
|
14
12
|
listPolicyControls(request: T.ListPolicyControlsRequest): Promise<T.ListPolicyControlsResponse>;
|
|
15
13
|
archivePolicyControl(request: T.ArchivePolicyControlRequest): Promise<T.ArchivePolicyControlResponse>;
|
|
16
14
|
createPolicyRule(request: T.CreatePolicyRuleRequest): Promise<T.CreatePolicyRuleResponse>;
|
|
17
|
-
updatePolicyRule(request: T.UpdatePolicyRuleRequest): Promise<T.UpdatePolicyRuleResponse>;
|
|
18
15
|
getPolicyRuleById(request: T.GetPolicyRuleByIdRequest): Promise<T.GetPolicyRuleByIdResponse>;
|
|
19
16
|
listPolicyRules(request: T.ListPolicyRulesRequest): Promise<T.ListPolicyRulesResponse>;
|
|
20
17
|
archivePolicyRule(request: T.ArchivePolicyRuleRequest): Promise<T.ArchivePolicyRuleResponse>;
|
|
@@ -19,18 +19,6 @@ class PolicyManagementClient {
|
|
|
19
19
|
});
|
|
20
20
|
return response.json();
|
|
21
21
|
}
|
|
22
|
-
async updatePolicy(request) {
|
|
23
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
24
|
-
path: { policyId: request.policyId },
|
|
25
|
-
query: {},
|
|
26
|
-
});
|
|
27
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
28
|
-
method: 'PUT',
|
|
29
|
-
body: request.body,
|
|
30
|
-
apiOptions: this.apiOptions,
|
|
31
|
-
});
|
|
32
|
-
return response.json();
|
|
33
|
-
}
|
|
34
22
|
async getPolicyById(request) {
|
|
35
23
|
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
36
24
|
path: { policyId: request.policyId },
|
|
@@ -77,18 +65,6 @@ class PolicyManagementClient {
|
|
|
77
65
|
});
|
|
78
66
|
return response.json();
|
|
79
67
|
}
|
|
80
|
-
async updatePolicyControl(request) {
|
|
81
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
82
|
-
path: { policyControlId: request.policyControlId },
|
|
83
|
-
query: {},
|
|
84
|
-
});
|
|
85
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
86
|
-
method: 'PUT',
|
|
87
|
-
body: request.body,
|
|
88
|
-
apiOptions: this.apiOptions,
|
|
89
|
-
});
|
|
90
|
-
return response.json();
|
|
91
|
-
}
|
|
92
68
|
async getPolicyControlById(request) {
|
|
93
69
|
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
94
70
|
path: { policyControlId: request.policyControlId },
|
|
@@ -135,18 +111,6 @@ class PolicyManagementClient {
|
|
|
135
111
|
});
|
|
136
112
|
return response.json();
|
|
137
113
|
}
|
|
138
|
-
async updatePolicyRule(request) {
|
|
139
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
140
|
-
path: { policyRuleId: request.policyRuleId },
|
|
141
|
-
query: {},
|
|
142
|
-
});
|
|
143
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
144
|
-
method: 'PUT',
|
|
145
|
-
body: request.body,
|
|
146
|
-
apiOptions: this.apiOptions,
|
|
147
|
-
});
|
|
148
|
-
return response.json();
|
|
149
|
-
}
|
|
150
114
|
async getPolicyRuleById(request) {
|
|
151
115
|
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
152
116
|
path: { policyRuleId: request.policyRuleId },
|
|
@@ -3,11 +3,6 @@ export type CreatePolicyRequest = {
|
|
|
3
3
|
body: PolicyManagement.CreatePolicyInput;
|
|
4
4
|
};
|
|
5
5
|
export type CreatePolicyResponse = PolicyManagement.Policy;
|
|
6
|
-
export type UpdatePolicyRequest = {
|
|
7
|
-
policyId: string;
|
|
8
|
-
body: PolicyManagement.UpdatePolicyInput;
|
|
9
|
-
};
|
|
10
|
-
export type UpdatePolicyResponse = PolicyManagement.Policy;
|
|
11
6
|
export type GetPolicyByIdRequest = {
|
|
12
7
|
policyId: string;
|
|
13
8
|
};
|
|
@@ -33,11 +28,6 @@ export type CreatePolicyControlRequest = {
|
|
|
33
28
|
body: PolicyManagement.CreatePolicyControlInput;
|
|
34
29
|
};
|
|
35
30
|
export type CreatePolicyControlResponse = PolicyManagement.PolicyControl;
|
|
36
|
-
export type UpdatePolicyControlRequest = {
|
|
37
|
-
policyControlId: string;
|
|
38
|
-
body: PolicyManagement.UpdatePolicyControlInput;
|
|
39
|
-
};
|
|
40
|
-
export type UpdatePolicyControlResponse = PolicyManagement.PolicyControl;
|
|
41
31
|
export type GetPolicyControlByIdRequest = {
|
|
42
32
|
policyControlId: string;
|
|
43
33
|
};
|
|
@@ -63,11 +53,6 @@ export type CreatePolicyRuleRequest = {
|
|
|
63
53
|
body: PolicyManagement.CreatePolicyInput;
|
|
64
54
|
};
|
|
65
55
|
export type CreatePolicyRuleResponse = PolicyManagement.Policy;
|
|
66
|
-
export type UpdatePolicyRuleRequest = {
|
|
67
|
-
policyRuleId: string;
|
|
68
|
-
body: PolicyManagement.UpdatePolicyInput;
|
|
69
|
-
};
|
|
70
|
-
export type UpdatePolicyRuleResponse = PolicyManagement.Policy;
|
|
71
56
|
export type GetPolicyRuleByIdRequest = {
|
|
72
57
|
policyRuleId: string;
|
|
73
58
|
};
|
|
@@ -11,7 +11,9 @@ export type GetPaymentByIdError = {
|
|
|
11
11
|
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
12
12
|
};
|
|
13
13
|
export type GetPaymentByIdResponse = GetPaymentByIdSuccess | GetPaymentByIdError;
|
|
14
|
-
export type ListPaymentsSuccess =
|
|
14
|
+
export type ListPaymentsSuccess = {
|
|
15
|
+
items: Payment[];
|
|
16
|
+
};
|
|
15
17
|
export type ListPaymentsError = {
|
|
16
18
|
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
17
19
|
};
|
|
@@ -333,6 +333,7 @@ export declare enum AssetSymbol {
|
|
|
333
333
|
sFUEL = "sFUEL",
|
|
334
334
|
ARB = "ARB",
|
|
335
335
|
AMB = "AMB",
|
|
336
|
+
CMP = "CMP",
|
|
336
337
|
LTC = "LTC",
|
|
337
338
|
KSM = "KSM",
|
|
338
339
|
TRX = "TRX",
|
|
@@ -9745,7 +9746,8 @@ export declare enum BlockchainNetwork {
|
|
|
9745
9746
|
XTZ = "XTZ",
|
|
9746
9747
|
sFUEL = "sFUEL",
|
|
9747
9748
|
EGLD = "EGLD",
|
|
9748
|
-
AMB = "AMB"
|
|
9749
|
+
AMB = "AMB",
|
|
9750
|
+
CMP = "CMP"
|
|
9749
9751
|
}
|
|
9750
9752
|
export type BlockchainNetworkMetadata = {
|
|
9751
9753
|
label: string;
|
|
@@ -1266,6 +1266,8 @@ var AssetSymbol;
|
|
|
1266
1266
|
AssetSymbol["ARB"] = "ARB";
|
|
1267
1267
|
//AirDAO native currency
|
|
1268
1268
|
AssetSymbol["AMB"] = "AMB";
|
|
1269
|
+
//Caduceus native currency
|
|
1270
|
+
AssetSymbol["CMP"] = "CMP";
|
|
1269
1271
|
//Lite Coin native currency
|
|
1270
1272
|
AssetSymbol["LTC"] = "LTC";
|
|
1271
1273
|
//Kusama – Polkadot’s Canary network
|
|
@@ -20060,6 +20062,10 @@ exports.ASSET_SYMBOL_DATA = {
|
|
|
20060
20062
|
label: `AirDAO`,
|
|
20061
20063
|
smallestUnitDecimal: 18,
|
|
20062
20064
|
},
|
|
20065
|
+
[AssetSymbol['CMP']]: {
|
|
20066
|
+
label: `CMP`,
|
|
20067
|
+
smallestUnitDecimal: 18,
|
|
20068
|
+
},
|
|
20063
20069
|
[AssetSymbol['LTC']]: {
|
|
20064
20070
|
label: `Litecoin`,
|
|
20065
20071
|
smallestUnitDecimal: 8,
|
|
@@ -57596,6 +57602,8 @@ var BlockchainNetwork;
|
|
|
57596
57602
|
BlockchainNetwork["EGLD"] = "EGLD";
|
|
57597
57603
|
//AirDAO
|
|
57598
57604
|
BlockchainNetwork["AMB"] = "AMB";
|
|
57605
|
+
//Caduceus
|
|
57606
|
+
BlockchainNetwork["CMP"] = "CMP";
|
|
57599
57607
|
})(BlockchainNetwork = exports.BlockchainNetwork || (exports.BlockchainNetwork = {}));
|
|
57600
57608
|
exports.BLOCKCHAIN_NETWORK_DATA = {
|
|
57601
57609
|
[BlockchainNetwork['ADA']]: {
|
|
@@ -57738,4 +57746,8 @@ exports.BLOCKCHAIN_NETWORK_DATA = {
|
|
|
57738
57746
|
label: `AirDAO`,
|
|
57739
57747
|
smallestUnitDecimal: 18,
|
|
57740
57748
|
},
|
|
57749
|
+
[BlockchainNetwork['CMP']]: {
|
|
57750
|
+
label: `Caduceus`,
|
|
57751
|
+
smallestUnitDecimal: 18,
|
|
57752
|
+
},
|
|
57741
57753
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
2
|
import { PolicyControlExecution } from './types';
|
|
3
|
-
export type ListPolicyControlExecutionsSuccess =
|
|
3
|
+
export type ListPolicyControlExecutionsSuccess = {
|
|
4
|
+
items: PolicyControlExecution[];
|
|
5
|
+
};
|
|
4
6
|
export type ListPolicyControlExecutionsError = {
|
|
5
7
|
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
6
8
|
};
|