@dfns/sdk 0.0.0-prealpha.9
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/baseAuthApi.d.ts +96 -0
- package/baseAuthApi.js +73 -0
- package/codegen/Assets/AssetsClient.d.ts +13 -0
- package/codegen/Assets/AssetsClient.js +94 -0
- package/codegen/Assets/DelegatedAssetsClient.d.ts +16 -0
- package/codegen/Assets/DelegatedAssetsClient.js +125 -0
- package/codegen/Assets/index.d.ts +3 -0
- package/codegen/Assets/index.js +19 -0
- package/codegen/Assets/types.d.ts +37 -0
- package/codegen/Assets/types.js +2 -0
- package/codegen/Auth/AuthClient.d.ts +48 -0
- package/codegen/Auth/AuthClient.js +494 -0
- package/codegen/Auth/DelegatedAuthClient.d.ts +74 -0
- package/codegen/Auth/DelegatedAuthClient.js +882 -0
- package/codegen/Auth/index.d.ts +3 -0
- package/codegen/Auth/index.js +19 -0
- package/codegen/Auth/types.d.ts +169 -0
- package/codegen/Auth/types.js +2 -0
- package/codegen/Blockchains/BlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/BlockchainsClient.js +23 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +23 -0
- package/codegen/Blockchains/index.d.ts +3 -0
- package/codegen/Blockchains/index.js +19 -0
- package/codegen/Blockchains/types.d.ts +6 -0
- package/codegen/Blockchains/types.js +2 -0
- package/codegen/Callbacks/CallbacksClient.d.ts +12 -0
- package/codegen/Callbacks/CallbacksClient.js +78 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +15 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.js +110 -0
- package/codegen/Callbacks/index.d.ts +3 -0
- package/codegen/Callbacks/index.js +19 -0
- package/codegen/Callbacks/types.d.ts +23 -0
- package/codegen/Callbacks/types.js +2 -0
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +27 -0
- package/codegen/Permissions/DelegatedPermissionsClient.js +285 -0
- package/codegen/Permissions/PermissionsClient.d.ts +18 -0
- package/codegen/Permissions/PermissionsClient.js +157 -0
- package/codegen/Permissions/index.d.ts +3 -0
- package/codegen/Permissions/index.js +19 -0
- package/codegen/Permissions/types.d.ts +62 -0
- package/codegen/Permissions/types.js +2 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +11 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +62 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +9 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.js +46 -0
- package/codegen/PolicyExecution/index.d.ts +3 -0
- package/codegen/PolicyExecution/index.js +19 -0
- package/codegen/PolicyExecution/types.d.ts +18 -0
- package/codegen/PolicyExecution/types.js +2 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +25 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +241 -0
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +18 -0
- package/codegen/PolicyManagement/PolicyManagementClient.js +147 -0
- package/codegen/PolicyManagement/index.d.ts +3 -0
- package/codegen/PolicyManagement/index.js +19 -0
- package/codegen/PolicyManagement/types.d.ts +51 -0
- package/codegen/PolicyManagement/types.js +2 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +21 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +191 -0
- package/codegen/PublicKeys/PublicKeysClient.d.ts +16 -0
- package/codegen/PublicKeys/PublicKeysClient.js +130 -0
- package/codegen/PublicKeys/index.d.ts +3 -0
- package/codegen/PublicKeys/index.js +19 -0
- package/codegen/PublicKeys/types.d.ts +51 -0
- package/codegen/PublicKeys/types.js +2 -0
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +26 -0
- package/codegen/Wallets/DelegatedWalletsClient.js +249 -0
- package/codegen/Wallets/WalletsClient.d.ts +21 -0
- package/codegen/Wallets/WalletsClient.js +188 -0
- package/codegen/Wallets/index.d.ts +3 -0
- package/codegen/Wallets/index.js +19 -0
- package/codegen/Wallets/types.d.ts +87 -0
- package/codegen/Wallets/types.js +2 -0
- package/codegen/datamodel/Assets/errors.d.ts +11 -0
- package/codegen/datamodel/Assets/errors.js +17 -0
- package/codegen/datamodel/Assets/index.d.ts +3 -0
- package/codegen/datamodel/Assets/index.js +19 -0
- package/codegen/datamodel/Assets/responses.d.ts +47 -0
- package/codegen/datamodel/Assets/responses.js +2 -0
- package/codegen/datamodel/Assets/types.d.ts +225 -0
- package/codegen/datamodel/Assets/types.js +75 -0
- package/codegen/datamodel/Auth/index.d.ts +2 -0
- package/codegen/datamodel/Auth/index.js +18 -0
- package/codegen/datamodel/Auth/responses.d.ts +348 -0
- package/codegen/datamodel/Auth/responses.js +2 -0
- package/codegen/datamodel/Auth/types.d.ts +610 -0
- package/codegen/datamodel/Auth/types.js +127 -0
- package/codegen/datamodel/Blockchains/index.d.ts +2 -0
- package/codegen/datamodel/Blockchains/index.js +18 -0
- package/codegen/datamodel/Blockchains/responses.d.ts +12 -0
- package/codegen/datamodel/Blockchains/responses.js +2 -0
- package/codegen/datamodel/Blockchains/types.d.ts +269 -0
- package/codegen/datamodel/Blockchains/types.js +53 -0
- package/codegen/datamodel/Callbacks/index.d.ts +2 -0
- package/codegen/datamodel/Callbacks/index.js +18 -0
- package/codegen/datamodel/Callbacks/responses.d.ts +36 -0
- package/codegen/datamodel/Callbacks/responses.js +2 -0
- package/codegen/datamodel/Callbacks/types.d.ts +43 -0
- package/codegen/datamodel/Callbacks/types.js +39 -0
- package/codegen/datamodel/Foundations/errors.d.ts +121 -0
- package/codegen/datamodel/Foundations/errors.js +169 -0
- package/codegen/datamodel/Foundations/index.d.ts +2 -0
- package/codegen/datamodel/Foundations/index.js +18 -0
- package/codegen/datamodel/Foundations/types.d.ts +9756 -0
- package/codegen/datamodel/Foundations/types.js +57753 -0
- package/codegen/datamodel/Permissions/index.d.ts +2 -0
- package/codegen/datamodel/Permissions/index.js +18 -0
- package/codegen/datamodel/Permissions/responses.d.ts +75 -0
- package/codegen/datamodel/Permissions/responses.js +2 -0
- package/codegen/datamodel/Permissions/types.d.ts +93 -0
- package/codegen/datamodel/Permissions/types.js +43 -0
- package/codegen/datamodel/PolicyExecution/errors.d.ts +11 -0
- package/codegen/datamodel/PolicyExecution/errors.js +17 -0
- package/codegen/datamodel/PolicyExecution/index.d.ts +3 -0
- package/codegen/datamodel/PolicyExecution/index.js +19 -0
- package/codegen/datamodel/PolicyExecution/responses.d.ts +19 -0
- package/codegen/datamodel/PolicyExecution/responses.js +2 -0
- package/codegen/datamodel/PolicyExecution/types.d.ts +45 -0
- package/codegen/datamodel/PolicyExecution/types.js +15 -0
- package/codegen/datamodel/PolicyManagement/index.d.ts +2 -0
- package/codegen/datamodel/PolicyManagement/index.js +18 -0
- package/codegen/datamodel/PolicyManagement/responses.d.ts +83 -0
- package/codegen/datamodel/PolicyManagement/responses.js +2 -0
- package/codegen/datamodel/PolicyManagement/types.d.ts +212 -0
- package/codegen/datamodel/PolicyManagement/types.js +77 -0
- package/codegen/datamodel/PublicKeys/index.d.ts +2 -0
- package/codegen/datamodel/PublicKeys/index.js +18 -0
- package/codegen/datamodel/PublicKeys/responses.d.ts +56 -0
- package/codegen/datamodel/PublicKeys/responses.js +2 -0
- package/codegen/datamodel/PublicKeys/types.d.ts +222 -0
- package/codegen/datamodel/PublicKeys/types.js +59 -0
- package/codegen/datamodel/Wallets/index.d.ts +2 -0
- package/codegen/datamodel/Wallets/index.js +18 -0
- package/codegen/datamodel/Wallets/responses.d.ts +77 -0
- package/codegen/datamodel/Wallets/responses.js +2 -0
- package/codegen/datamodel/Wallets/types.d.ts +277 -0
- package/codegen/datamodel/Wallets/types.js +123 -0
- package/dfnsApiClient.d.ts +27 -0
- package/dfnsApiClient.js +45 -0
- package/dfnsAuthenticator.d.ts +17 -0
- package/dfnsAuthenticator.js +29 -0
- package/dfnsDelegatedApiClient.d.ts +24 -0
- package/dfnsDelegatedApiClient.js +41 -0
- package/dfnsError.d.ts +5 -0
- package/dfnsError.js +11 -0
- package/index.d.ts +7 -0
- package/index.js +23 -0
- package/package.json +11 -0
- package/signer.d.ts +42 -0
- package/signer.js +2 -0
- package/store.d.ts +79 -0
- package/store.js +2 -0
- package/utils/base64.d.ts +3 -0
- package/utils/base64.js +20 -0
- package/utils/fetch.d.ts +12 -0
- package/utils/fetch.js +89 -0
- package/utils/nonce.d.ts +1 -0
- package/utils/nonce.js +12 -0
- package/utils/url.d.ts +4 -0
- package/utils/url.js +15 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolicyExecutionClient = void 0;
|
|
4
|
+
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const url_1 = require("../../utils/url");
|
|
6
|
+
class PolicyExecutionClient {
|
|
7
|
+
constructor(apiOptions) {
|
|
8
|
+
this.apiOptions = apiOptions;
|
|
9
|
+
}
|
|
10
|
+
async listPolicyControlExecutions(request) {
|
|
11
|
+
var _a;
|
|
12
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-control-executions', {
|
|
13
|
+
path: {},
|
|
14
|
+
query: (_a = request.query) !== null && _a !== void 0 ? _a : {},
|
|
15
|
+
});
|
|
16
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
17
|
+
method: 'GET',
|
|
18
|
+
apiOptions: this.apiOptions,
|
|
19
|
+
});
|
|
20
|
+
return response.json();
|
|
21
|
+
}
|
|
22
|
+
async getPolicyControlExecutionById(request) {
|
|
23
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-control-executions/:policyControlExecutionId', {
|
|
24
|
+
path: { policyControlExecutionId: request.policyControlExecutionId },
|
|
25
|
+
query: {},
|
|
26
|
+
});
|
|
27
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
apiOptions: this.apiOptions,
|
|
30
|
+
});
|
|
31
|
+
return response.json();
|
|
32
|
+
}
|
|
33
|
+
async updatePolicyControlExecution(request) {
|
|
34
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-control-executions/:policyControlExecutionId', {
|
|
35
|
+
path: { policyControlExecutionId: request.policyControlExecutionId },
|
|
36
|
+
query: {},
|
|
37
|
+
});
|
|
38
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
39
|
+
method: 'PUT',
|
|
40
|
+
body: request.body,
|
|
41
|
+
apiOptions: this.apiOptions,
|
|
42
|
+
});
|
|
43
|
+
return response.json();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.PolicyExecutionClient = PolicyExecutionClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DelegatedPolicyExecutionClient"), exports);
|
|
18
|
+
__exportStar(require("./PolicyExecutionClient"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as PolicyExecution from '../datamodel/PolicyExecution';
|
|
2
|
+
export type ListPolicyControlExecutionsRequest = {
|
|
3
|
+
query?: {
|
|
4
|
+
activityId: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type ListPolicyControlExecutionsResponse = {
|
|
8
|
+
items: PolicyExecution.PolicyControlExecution[];
|
|
9
|
+
};
|
|
10
|
+
export type GetPolicyControlExecutionByIdRequest = {
|
|
11
|
+
policyControlExecutionId: string;
|
|
12
|
+
};
|
|
13
|
+
export type GetPolicyControlExecutionByIdResponse = PolicyExecution.PolicyControlExecution;
|
|
14
|
+
export type UpdatePolicyControlExecutionRequest = {
|
|
15
|
+
policyControlExecutionId: string;
|
|
16
|
+
body: PolicyExecution.UpdatePolicyControlExecutionInput;
|
|
17
|
+
};
|
|
18
|
+
export type UpdatePolicyControlExecutionResponse = PolicyExecution.PolicyControlExecution;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
|
|
2
|
+
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
3
|
+
import * as T from './types';
|
|
4
|
+
export declare class DelegatedPolicyManagementClient {
|
|
5
|
+
private apiOptions;
|
|
6
|
+
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
|
+
createPolicyInit(request: T.CreatePolicyRequest): Promise<UserActionChallengeResponse>;
|
|
8
|
+
createPolicyComplete(request: T.CreatePolicyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyResponse>;
|
|
9
|
+
getPolicyById(request: T.GetPolicyByIdRequest): Promise<T.GetPolicyByIdResponse>;
|
|
10
|
+
listPolicies(): Promise<T.ListPoliciesResponse>;
|
|
11
|
+
archivePolicyInit(request: T.ArchivePolicyRequest): Promise<UserActionChallengeResponse>;
|
|
12
|
+
archivePolicyComplete(request: T.ArchivePolicyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePolicyResponse>;
|
|
13
|
+
createPolicyControlInit(request: T.CreatePolicyControlRequest): Promise<UserActionChallengeResponse>;
|
|
14
|
+
createPolicyControlComplete(request: T.CreatePolicyControlRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyControlResponse>;
|
|
15
|
+
getPolicyControlById(request: T.GetPolicyControlByIdRequest): Promise<T.GetPolicyControlByIdResponse>;
|
|
16
|
+
listPolicyControls(): Promise<T.ListPolicyControlsResponse>;
|
|
17
|
+
archivePolicyControlInit(request: T.ArchivePolicyControlRequest): Promise<UserActionChallengeResponse>;
|
|
18
|
+
archivePolicyControlComplete(request: T.ArchivePolicyControlRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePolicyControlResponse>;
|
|
19
|
+
createPolicyRuleInit(request: T.CreatePolicyRuleRequest): Promise<UserActionChallengeResponse>;
|
|
20
|
+
createPolicyRuleComplete(request: T.CreatePolicyRuleRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePolicyRuleResponse>;
|
|
21
|
+
getPolicyRuleById(request: T.GetPolicyRuleByIdRequest): Promise<T.GetPolicyRuleByIdResponse>;
|
|
22
|
+
listPolicyRules(request: T.ListPolicyRulesRequest): Promise<T.ListPolicyRulesResponse>;
|
|
23
|
+
archivePolicyRuleInit(request: T.ArchivePolicyRuleRequest): Promise<UserActionChallengeResponse>;
|
|
24
|
+
archivePolicyRuleComplete(request: T.ArchivePolicyRuleRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ArchivePolicyRuleResponse>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatedPolicyManagementClient = void 0;
|
|
4
|
+
const baseAuthApi_1 = require("../../baseAuthApi");
|
|
5
|
+
const fetch_1 = require("../../utils/fetch");
|
|
6
|
+
const url_1 = require("../../utils/url");
|
|
7
|
+
class DelegatedPolicyManagementClient {
|
|
8
|
+
constructor(apiOptions) {
|
|
9
|
+
this.apiOptions = apiOptions;
|
|
10
|
+
}
|
|
11
|
+
async createPolicyInit(request) {
|
|
12
|
+
const path = (0, url_1.buildPathAndQuery)('/policies', {
|
|
13
|
+
path: {},
|
|
14
|
+
query: {},
|
|
15
|
+
});
|
|
16
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
17
|
+
userActionHttpMethod: 'POST',
|
|
18
|
+
userActionHttpPath: path,
|
|
19
|
+
userActionPayload: JSON.stringify(request.body),
|
|
20
|
+
userActionServerKind: 'Api',
|
|
21
|
+
}, this.apiOptions);
|
|
22
|
+
return challenge;
|
|
23
|
+
}
|
|
24
|
+
async createPolicyComplete(request, signedChallenge) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/policies', {
|
|
26
|
+
path: {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
30
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
body: request.body,
|
|
33
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
34
|
+
apiOptions: this.apiOptions,
|
|
35
|
+
});
|
|
36
|
+
return response.json();
|
|
37
|
+
}
|
|
38
|
+
async getPolicyById(request) {
|
|
39
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
40
|
+
path: { policyId: request.policyId },
|
|
41
|
+
query: {},
|
|
42
|
+
});
|
|
43
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
44
|
+
method: 'GET',
|
|
45
|
+
apiOptions: this.apiOptions,
|
|
46
|
+
});
|
|
47
|
+
return response.json();
|
|
48
|
+
}
|
|
49
|
+
async listPolicies() {
|
|
50
|
+
const path = (0, url_1.buildPathAndQuery)('/policies', {
|
|
51
|
+
path: {},
|
|
52
|
+
query: {},
|
|
53
|
+
});
|
|
54
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
55
|
+
method: 'GET',
|
|
56
|
+
apiOptions: this.apiOptions,
|
|
57
|
+
});
|
|
58
|
+
return response.json();
|
|
59
|
+
}
|
|
60
|
+
async archivePolicyInit(request) {
|
|
61
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
62
|
+
path: { policyId: request.policyId },
|
|
63
|
+
query: {},
|
|
64
|
+
});
|
|
65
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
66
|
+
userActionHttpMethod: 'DELETE',
|
|
67
|
+
userActionHttpPath: path,
|
|
68
|
+
userActionPayload: JSON.stringify({}),
|
|
69
|
+
userActionServerKind: 'Api',
|
|
70
|
+
}, this.apiOptions);
|
|
71
|
+
return challenge;
|
|
72
|
+
}
|
|
73
|
+
async archivePolicyComplete(request, signedChallenge) {
|
|
74
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
75
|
+
path: { policyId: request.policyId },
|
|
76
|
+
query: {},
|
|
77
|
+
});
|
|
78
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
79
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
80
|
+
method: 'DELETE',
|
|
81
|
+
body: {},
|
|
82
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
83
|
+
apiOptions: this.apiOptions,
|
|
84
|
+
});
|
|
85
|
+
return response.json();
|
|
86
|
+
}
|
|
87
|
+
async createPolicyControlInit(request) {
|
|
88
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls', {
|
|
89
|
+
path: {},
|
|
90
|
+
query: {},
|
|
91
|
+
});
|
|
92
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
93
|
+
userActionHttpMethod: 'POST',
|
|
94
|
+
userActionHttpPath: path,
|
|
95
|
+
userActionPayload: JSON.stringify(request.body),
|
|
96
|
+
userActionServerKind: 'Api',
|
|
97
|
+
}, this.apiOptions);
|
|
98
|
+
return challenge;
|
|
99
|
+
}
|
|
100
|
+
async createPolicyControlComplete(request, signedChallenge) {
|
|
101
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls', {
|
|
102
|
+
path: {},
|
|
103
|
+
query: {},
|
|
104
|
+
});
|
|
105
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
106
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
107
|
+
method: 'POST',
|
|
108
|
+
body: request.body,
|
|
109
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
110
|
+
apiOptions: this.apiOptions,
|
|
111
|
+
});
|
|
112
|
+
return response.json();
|
|
113
|
+
}
|
|
114
|
+
async getPolicyControlById(request) {
|
|
115
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
116
|
+
path: { policyControlId: request.policyControlId },
|
|
117
|
+
query: {},
|
|
118
|
+
});
|
|
119
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
120
|
+
method: 'GET',
|
|
121
|
+
apiOptions: this.apiOptions,
|
|
122
|
+
});
|
|
123
|
+
return response.json();
|
|
124
|
+
}
|
|
125
|
+
async listPolicyControls() {
|
|
126
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls', {
|
|
127
|
+
path: {},
|
|
128
|
+
query: {},
|
|
129
|
+
});
|
|
130
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
131
|
+
method: 'GET',
|
|
132
|
+
apiOptions: this.apiOptions,
|
|
133
|
+
});
|
|
134
|
+
return response.json();
|
|
135
|
+
}
|
|
136
|
+
async archivePolicyControlInit(request) {
|
|
137
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
138
|
+
path: { policyControlId: request.policyControlId },
|
|
139
|
+
query: {},
|
|
140
|
+
});
|
|
141
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
142
|
+
userActionHttpMethod: 'DELETE',
|
|
143
|
+
userActionHttpPath: path,
|
|
144
|
+
userActionPayload: JSON.stringify({}),
|
|
145
|
+
userActionServerKind: 'Api',
|
|
146
|
+
}, this.apiOptions);
|
|
147
|
+
return challenge;
|
|
148
|
+
}
|
|
149
|
+
async archivePolicyControlComplete(request, signedChallenge) {
|
|
150
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
151
|
+
path: { policyControlId: request.policyControlId },
|
|
152
|
+
query: {},
|
|
153
|
+
});
|
|
154
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
155
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
156
|
+
method: 'DELETE',
|
|
157
|
+
body: {},
|
|
158
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
159
|
+
apiOptions: this.apiOptions,
|
|
160
|
+
});
|
|
161
|
+
return response.json();
|
|
162
|
+
}
|
|
163
|
+
async createPolicyRuleInit(request) {
|
|
164
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
165
|
+
path: {},
|
|
166
|
+
query: {},
|
|
167
|
+
});
|
|
168
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
169
|
+
userActionHttpMethod: 'POST',
|
|
170
|
+
userActionHttpPath: path,
|
|
171
|
+
userActionPayload: JSON.stringify(request.body),
|
|
172
|
+
userActionServerKind: 'Api',
|
|
173
|
+
}, this.apiOptions);
|
|
174
|
+
return challenge;
|
|
175
|
+
}
|
|
176
|
+
async createPolicyRuleComplete(request, signedChallenge) {
|
|
177
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
178
|
+
path: {},
|
|
179
|
+
query: {},
|
|
180
|
+
});
|
|
181
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
182
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
183
|
+
method: 'POST',
|
|
184
|
+
body: request.body,
|
|
185
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
186
|
+
apiOptions: this.apiOptions,
|
|
187
|
+
});
|
|
188
|
+
return response.json();
|
|
189
|
+
}
|
|
190
|
+
async getPolicyRuleById(request) {
|
|
191
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
192
|
+
path: { policyRuleId: request.policyRuleId },
|
|
193
|
+
query: {},
|
|
194
|
+
});
|
|
195
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
196
|
+
method: 'GET',
|
|
197
|
+
apiOptions: this.apiOptions,
|
|
198
|
+
});
|
|
199
|
+
return response.json();
|
|
200
|
+
}
|
|
201
|
+
async listPolicyRules(request) {
|
|
202
|
+
var _a;
|
|
203
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
204
|
+
path: {},
|
|
205
|
+
query: (_a = request.query) !== null && _a !== void 0 ? _a : {},
|
|
206
|
+
});
|
|
207
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
208
|
+
method: 'GET',
|
|
209
|
+
apiOptions: this.apiOptions,
|
|
210
|
+
});
|
|
211
|
+
return response.json();
|
|
212
|
+
}
|
|
213
|
+
async archivePolicyRuleInit(request) {
|
|
214
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
215
|
+
path: { policyRuleId: request.policyRuleId },
|
|
216
|
+
query: {},
|
|
217
|
+
});
|
|
218
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
219
|
+
userActionHttpMethod: 'DELETE',
|
|
220
|
+
userActionHttpPath: path,
|
|
221
|
+
userActionPayload: JSON.stringify({}),
|
|
222
|
+
userActionServerKind: 'Api',
|
|
223
|
+
}, this.apiOptions);
|
|
224
|
+
return challenge;
|
|
225
|
+
}
|
|
226
|
+
async archivePolicyRuleComplete(request, signedChallenge) {
|
|
227
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
228
|
+
path: { policyRuleId: request.policyRuleId },
|
|
229
|
+
query: {},
|
|
230
|
+
});
|
|
231
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
232
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
233
|
+
method: 'DELETE',
|
|
234
|
+
body: {},
|
|
235
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
236
|
+
apiOptions: this.apiOptions,
|
|
237
|
+
});
|
|
238
|
+
return response.json();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
exports.DelegatedPolicyManagementClient = DelegatedPolicyManagementClient;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DfnsApiClientOptions } from '../../dfnsApiClient';
|
|
2
|
+
import * as T from './types';
|
|
3
|
+
export declare class PolicyManagementClient {
|
|
4
|
+
private apiOptions;
|
|
5
|
+
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
|
+
createPolicy(request: T.CreatePolicyRequest): Promise<T.CreatePolicyResponse>;
|
|
7
|
+
getPolicyById(request: T.GetPolicyByIdRequest): Promise<T.GetPolicyByIdResponse>;
|
|
8
|
+
listPolicies(): Promise<T.ListPoliciesResponse>;
|
|
9
|
+
archivePolicy(request: T.ArchivePolicyRequest): Promise<T.ArchivePolicyResponse>;
|
|
10
|
+
createPolicyControl(request: T.CreatePolicyControlRequest): Promise<T.CreatePolicyControlResponse>;
|
|
11
|
+
getPolicyControlById(request: T.GetPolicyControlByIdRequest): Promise<T.GetPolicyControlByIdResponse>;
|
|
12
|
+
listPolicyControls(): Promise<T.ListPolicyControlsResponse>;
|
|
13
|
+
archivePolicyControl(request: T.ArchivePolicyControlRequest): Promise<T.ArchivePolicyControlResponse>;
|
|
14
|
+
createPolicyRule(request: T.CreatePolicyRuleRequest): Promise<T.CreatePolicyRuleResponse>;
|
|
15
|
+
getPolicyRuleById(request: T.GetPolicyRuleByIdRequest): Promise<T.GetPolicyRuleByIdResponse>;
|
|
16
|
+
listPolicyRules(request: T.ListPolicyRulesRequest): Promise<T.ListPolicyRulesResponse>;
|
|
17
|
+
archivePolicyRule(request: T.ArchivePolicyRuleRequest): Promise<T.ArchivePolicyRuleResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolicyManagementClient = void 0;
|
|
4
|
+
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const url_1 = require("../../utils/url");
|
|
6
|
+
class PolicyManagementClient {
|
|
7
|
+
constructor(apiOptions) {
|
|
8
|
+
this.apiOptions = apiOptions;
|
|
9
|
+
}
|
|
10
|
+
async createPolicy(request) {
|
|
11
|
+
const path = (0, url_1.buildPathAndQuery)('/policies', {
|
|
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 getPolicyById(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.simpleFetch)(path, {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
apiOptions: this.apiOptions,
|
|
30
|
+
});
|
|
31
|
+
return response.json();
|
|
32
|
+
}
|
|
33
|
+
async listPolicies() {
|
|
34
|
+
const path = (0, url_1.buildPathAndQuery)('/policies', {
|
|
35
|
+
path: {},
|
|
36
|
+
query: {},
|
|
37
|
+
});
|
|
38
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
39
|
+
method: 'GET',
|
|
40
|
+
apiOptions: this.apiOptions,
|
|
41
|
+
});
|
|
42
|
+
return response.json();
|
|
43
|
+
}
|
|
44
|
+
async archivePolicy(request) {
|
|
45
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/:policyId', {
|
|
46
|
+
path: { policyId: request.policyId },
|
|
47
|
+
query: {},
|
|
48
|
+
});
|
|
49
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
50
|
+
method: 'DELETE',
|
|
51
|
+
apiOptions: this.apiOptions,
|
|
52
|
+
});
|
|
53
|
+
return response.json();
|
|
54
|
+
}
|
|
55
|
+
async createPolicyControl(request) {
|
|
56
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls', {
|
|
57
|
+
path: {},
|
|
58
|
+
query: {},
|
|
59
|
+
});
|
|
60
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
61
|
+
method: 'POST',
|
|
62
|
+
body: request.body,
|
|
63
|
+
apiOptions: this.apiOptions,
|
|
64
|
+
});
|
|
65
|
+
return response.json();
|
|
66
|
+
}
|
|
67
|
+
async getPolicyControlById(request) {
|
|
68
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
69
|
+
path: { policyControlId: request.policyControlId },
|
|
70
|
+
query: {},
|
|
71
|
+
});
|
|
72
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
73
|
+
method: 'GET',
|
|
74
|
+
apiOptions: this.apiOptions,
|
|
75
|
+
});
|
|
76
|
+
return response.json();
|
|
77
|
+
}
|
|
78
|
+
async listPolicyControls() {
|
|
79
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls', {
|
|
80
|
+
path: {},
|
|
81
|
+
query: {},
|
|
82
|
+
});
|
|
83
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
84
|
+
method: 'GET',
|
|
85
|
+
apiOptions: this.apiOptions,
|
|
86
|
+
});
|
|
87
|
+
return response.json();
|
|
88
|
+
}
|
|
89
|
+
async archivePolicyControl(request) {
|
|
90
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-controls/:policyControlId', {
|
|
91
|
+
path: { policyControlId: request.policyControlId },
|
|
92
|
+
query: {},
|
|
93
|
+
});
|
|
94
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
95
|
+
method: 'DELETE',
|
|
96
|
+
apiOptions: this.apiOptions,
|
|
97
|
+
});
|
|
98
|
+
return response.json();
|
|
99
|
+
}
|
|
100
|
+
async createPolicyRule(request) {
|
|
101
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
102
|
+
path: {},
|
|
103
|
+
query: {},
|
|
104
|
+
});
|
|
105
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
106
|
+
method: 'POST',
|
|
107
|
+
body: request.body,
|
|
108
|
+
apiOptions: this.apiOptions,
|
|
109
|
+
});
|
|
110
|
+
return response.json();
|
|
111
|
+
}
|
|
112
|
+
async getPolicyRuleById(request) {
|
|
113
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
114
|
+
path: { policyRuleId: request.policyRuleId },
|
|
115
|
+
query: {},
|
|
116
|
+
});
|
|
117
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
118
|
+
method: 'GET',
|
|
119
|
+
apiOptions: this.apiOptions,
|
|
120
|
+
});
|
|
121
|
+
return response.json();
|
|
122
|
+
}
|
|
123
|
+
async listPolicyRules(request) {
|
|
124
|
+
var _a;
|
|
125
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
126
|
+
path: {},
|
|
127
|
+
query: (_a = request.query) !== null && _a !== void 0 ? _a : {},
|
|
128
|
+
});
|
|
129
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
130
|
+
method: 'GET',
|
|
131
|
+
apiOptions: this.apiOptions,
|
|
132
|
+
});
|
|
133
|
+
return response.json();
|
|
134
|
+
}
|
|
135
|
+
async archivePolicyRule(request) {
|
|
136
|
+
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
137
|
+
path: { policyRuleId: request.policyRuleId },
|
|
138
|
+
query: {},
|
|
139
|
+
});
|
|
140
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
141
|
+
method: 'DELETE',
|
|
142
|
+
apiOptions: this.apiOptions,
|
|
143
|
+
});
|
|
144
|
+
return response.json();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.PolicyManagementClient = PolicyManagementClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DelegatedPolicyManagementClient"), exports);
|
|
18
|
+
__exportStar(require("./PolicyManagementClient"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as PolicyManagement from '../datamodel/PolicyManagement';
|
|
2
|
+
export type CreatePolicyRequest = {
|
|
3
|
+
body: PolicyManagement.CreatePolicyInput;
|
|
4
|
+
};
|
|
5
|
+
export type CreatePolicyResponse = PolicyManagement.Policy;
|
|
6
|
+
export type GetPolicyByIdRequest = {
|
|
7
|
+
policyId: string;
|
|
8
|
+
};
|
|
9
|
+
export type GetPolicyByIdResponse = PolicyManagement.Policy;
|
|
10
|
+
export type ListPoliciesResponse = {
|
|
11
|
+
items: PolicyManagement.Policy[];
|
|
12
|
+
};
|
|
13
|
+
export type ArchivePolicyRequest = {
|
|
14
|
+
policyId: string;
|
|
15
|
+
};
|
|
16
|
+
export type ArchivePolicyResponse = PolicyManagement.Policy;
|
|
17
|
+
export type CreatePolicyControlRequest = {
|
|
18
|
+
body: PolicyManagement.CreatePolicyControlInput;
|
|
19
|
+
};
|
|
20
|
+
export type CreatePolicyControlResponse = PolicyManagement.PolicyControl;
|
|
21
|
+
export type GetPolicyControlByIdRequest = {
|
|
22
|
+
policyControlId: string;
|
|
23
|
+
};
|
|
24
|
+
export type GetPolicyControlByIdResponse = PolicyManagement.PolicyControl;
|
|
25
|
+
export type ListPolicyControlsResponse = {
|
|
26
|
+
items: PolicyManagement.PolicyControl[];
|
|
27
|
+
};
|
|
28
|
+
export type ArchivePolicyControlRequest = {
|
|
29
|
+
policyControlId: string;
|
|
30
|
+
};
|
|
31
|
+
export type ArchivePolicyControlResponse = PolicyManagement.PolicyControl;
|
|
32
|
+
export type CreatePolicyRuleRequest = {
|
|
33
|
+
body: PolicyManagement.CreatePolicyRuleInput;
|
|
34
|
+
};
|
|
35
|
+
export type CreatePolicyRuleResponse = PolicyManagement.PolicyRule;
|
|
36
|
+
export type GetPolicyRuleByIdRequest = {
|
|
37
|
+
policyRuleId: string;
|
|
38
|
+
};
|
|
39
|
+
export type GetPolicyRuleByIdResponse = PolicyManagement.PolicyRule;
|
|
40
|
+
export type ListPolicyRulesRequest = {
|
|
41
|
+
query?: {
|
|
42
|
+
author?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type ListPolicyRulesResponse = {
|
|
46
|
+
items: PolicyManagement.PolicyRule[];
|
|
47
|
+
};
|
|
48
|
+
export type ArchivePolicyRuleRequest = {
|
|
49
|
+
policyRuleId: string;
|
|
50
|
+
};
|
|
51
|
+
export type ArchivePolicyRuleResponse = PolicyManagement.PolicyRule;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
|
|
2
|
+
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
3
|
+
import * as T from './types';
|
|
4
|
+
export declare class DelegatedPublicKeysClient {
|
|
5
|
+
private apiOptions;
|
|
6
|
+
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
|
+
getPublicKeyById(request: T.GetPublicKeyByIdRequest): Promise<T.GetPublicKeyByIdResponse>;
|
|
8
|
+
createPublicKeyInit(request: T.CreatePublicKeyRequest): Promise<UserActionChallengeResponse>;
|
|
9
|
+
createPublicKeyComplete(request: T.CreatePublicKeyRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePublicKeyResponse>;
|
|
10
|
+
listPublicKeys(): Promise<T.ListPublicKeysResponse>;
|
|
11
|
+
getAddressForNetwork(request: T.GetAddressForNetworkRequest): Promise<T.GetAddressForNetworkResponse>;
|
|
12
|
+
getSignatureById(request: T.GetSignatureByIdRequest): Promise<T.GetSignatureByIdResponse>;
|
|
13
|
+
createSignatureInit(request: T.CreateSignatureRequest): Promise<UserActionChallengeResponse>;
|
|
14
|
+
createSignatureComplete(request: T.CreateSignatureRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateSignatureResponse>;
|
|
15
|
+
startWalletConnectSessionInit(request: T.StartWalletConnectSessionRequest): Promise<UserActionChallengeResponse>;
|
|
16
|
+
startWalletConnectSessionComplete(request: T.StartWalletConnectSessionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.StartWalletConnectSessionResponse>;
|
|
17
|
+
listTransactions(request: T.ListTransactionsRequest): Promise<T.ListTransactionsResponse>;
|
|
18
|
+
createTransactionInit(request: T.CreateTransactionRequest): Promise<UserActionChallengeResponse>;
|
|
19
|
+
createTransactionComplete(request: T.CreateTransactionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateTransactionResponse>;
|
|
20
|
+
getTransactionById(request: T.GetTransactionByIdRequest): Promise<T.GetTransactionByIdResponse>;
|
|
21
|
+
}
|