@dfns/sdk 0.3.0 → 0.3.2
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/datamodel/Assets/types.d.ts +1 -7
- package/codegen/datamodel/Wallets/types.d.ts +152 -45
- package/codegen/datamodel/Wallets/types.js +34 -4
- package/dfnsApiClient.d.ts +2 -12
- package/dfnsApiClient.js +4 -18
- package/dfnsDelegatedApiClient.d.ts +2 -12
- package/dfnsDelegatedApiClient.js +4 -18
- package/generated/networks/client.d.ts +8 -0
- package/generated/networks/client.js +34 -0
- package/generated/networks/delegatedClient.d.ts +8 -0
- package/generated/networks/delegatedClient.js +34 -0
- package/generated/networks/index.d.ts +3 -0
- package/{codegen/datamodel/Orgs → generated/networks}/index.js +2 -1
- package/generated/networks/types.d.ts +37 -0
- package/generated/permissions/types.d.ts +49 -4
- package/generated/policies/types.d.ts +286 -30
- package/generated/wallets/types.d.ts +94 -33
- package/generated/webhooks/types.d.ts +10 -9
- package/package.json +1 -1
- package/types/networks.d.ts +1 -0
- package/{codegen/datamodel/BlockchainIndexing/index.js → types/networks.js} +1 -1
- package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/BlockchainsClient.js +0 -23
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
- package/codegen/Blockchains/index.d.ts +0 -3
- package/codegen/Blockchains/index.js +0 -19
- package/codegen/Blockchains/types.d.ts +0 -6
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
- package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
- package/codegen/PolicyExecution/index.d.ts +0 -3
- package/codegen/PolicyExecution/index.js +0 -19
- package/codegen/PolicyExecution/types.d.ts +0 -18
- package/codegen/PolicyExecution/types.js +0 -2
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
- package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
- package/codegen/PolicyManagement/index.d.ts +0 -3
- package/codegen/PolicyManagement/index.js +0 -19
- package/codegen/PolicyManagement/types.d.ts +0 -51
- package/codegen/PolicyManagement/types.js +0 -2
- package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
- package/codegen/Signers/DelegatedSignersClient.js +0 -22
- package/codegen/Signers/SignersClient.d.ts +0 -7
- package/codegen/Signers/SignersClient.js +0 -22
- package/codegen/Signers/index.d.ts +0 -3
- package/codegen/Signers/index.js +0 -19
- package/codegen/Signers/types.d.ts +0 -2
- package/codegen/Signers/types.js +0 -2
- package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
- package/codegen/datamodel/ApiKeys/errors.js +0 -15
- package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
- package/codegen/datamodel/ApiKeys/index.js +0 -19
- package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
- package/codegen/datamodel/ApiKeys/responses.js +0 -2
- package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
- package/codegen/datamodel/ApiKeys/types.js +0 -11
- package/codegen/datamodel/BlockchainIndexing/errors.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
- package/codegen/datamodel/BlockchainIndexing/responses.d.ts +0 -6
- package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
- package/codegen/datamodel/BlockchainIndexing/types.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
- package/codegen/datamodel/Blockchains/errors.d.ts +0 -0
- package/codegen/datamodel/Blockchains/errors.js +0 -1
- package/codegen/datamodel/Blockchains/index.d.ts +0 -2
- package/codegen/datamodel/Blockchains/index.js +0 -18
- package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
- package/codegen/datamodel/Blockchains/responses.js +0 -2
- package/codegen/datamodel/Blockchains/types.d.ts +0 -270
- package/codegen/datamodel/Blockchains/types.js +0 -53
- package/codegen/datamodel/Orgs/errors.d.ts +0 -0
- package/codegen/datamodel/Orgs/errors.js +0 -1
- package/codegen/datamodel/Orgs/index.d.ts +0 -2
- package/codegen/datamodel/Orgs/responses.d.ts +0 -45
- package/codegen/datamodel/Orgs/responses.js +0 -2
- package/codegen/datamodel/Orgs/types.d.ts +0 -240
- package/codegen/datamodel/Orgs/types.js +0 -39
- package/codegen/datamodel/Permissions/errors.d.ts +0 -0
- package/codegen/datamodel/Permissions/errors.js +0 -1
- package/codegen/datamodel/Permissions/index.d.ts +0 -2
- package/codegen/datamodel/Permissions/index.js +0 -18
- package/codegen/datamodel/Permissions/responses.d.ts +0 -75
- package/codegen/datamodel/Permissions/responses.js +0 -2
- package/codegen/datamodel/Permissions/types.d.ts +0 -93
- package/codegen/datamodel/Permissions/types.js +0 -43
- package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
- package/codegen/datamodel/PolicyExecution/errors.js +0 -17
- package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
- package/codegen/datamodel/PolicyExecution/index.js +0 -19
- package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
- package/codegen/datamodel/PolicyExecution/responses.js +0 -2
- package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
- package/codegen/datamodel/PolicyExecution/types.js +0 -17
- package/codegen/datamodel/PolicyManagement/errors.d.ts +0 -0
- package/codegen/datamodel/PolicyManagement/errors.js +0 -1
- package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
- package/codegen/datamodel/PolicyManagement/index.js +0 -18
- package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
- package/codegen/datamodel/PolicyManagement/responses.js +0 -2
- package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
- package/codegen/datamodel/PolicyManagement/types.js +0 -95
- package/codegen/datamodel/Signers/errors.d.ts +0 -0
- package/codegen/datamodel/Signers/errors.js +0 -1
- package/codegen/datamodel/Signers/index.d.ts +0 -2
- package/codegen/datamodel/Signers/index.js +0 -18
- package/codegen/datamodel/Signers/responses.d.ts +0 -27
- package/codegen/datamodel/Signers/responses.js +0 -2
- package/codegen/datamodel/Signers/types.d.ts +0 -21
- package/codegen/datamodel/Signers/types.js +0 -2
- /package/{codegen/Blockchains → generated/networks}/types.js +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatedNetworksClient = void 0;
|
|
4
|
+
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const url_1 = require("../../utils/url");
|
|
6
|
+
class DelegatedNetworksClient {
|
|
7
|
+
constructor(apiOptions) {
|
|
8
|
+
this.apiOptions = apiOptions;
|
|
9
|
+
}
|
|
10
|
+
async getFees(request) {
|
|
11
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
12
|
+
path: request ?? {},
|
|
13
|
+
query: request?.query ?? {},
|
|
14
|
+
});
|
|
15
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
apiOptions: this.apiOptions,
|
|
18
|
+
});
|
|
19
|
+
return response.json();
|
|
20
|
+
}
|
|
21
|
+
async readContract(request) {
|
|
22
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/read-contract', {
|
|
23
|
+
path: request ?? {},
|
|
24
|
+
query: {},
|
|
25
|
+
});
|
|
26
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
27
|
+
method: 'POST',
|
|
28
|
+
body: request.body,
|
|
29
|
+
apiOptions: this.apiOptions,
|
|
30
|
+
});
|
|
31
|
+
return response.json();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.DelegatedNetworksClient = DelegatedNetworksClient;
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./responses"), exports);
|
|
18
17
|
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
19
|
+
__exportStar(require("./delegatedClient"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type GetFeesQuery = {
|
|
2
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai";
|
|
3
|
+
};
|
|
4
|
+
export type GetFeesResponse = {
|
|
5
|
+
kind: "Eip1559";
|
|
6
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai";
|
|
7
|
+
blockNumber: number;
|
|
8
|
+
slow: {
|
|
9
|
+
maxPriorityFee: number;
|
|
10
|
+
maxFee: number;
|
|
11
|
+
};
|
|
12
|
+
standard: {
|
|
13
|
+
maxPriorityFee: number;
|
|
14
|
+
maxFee: number;
|
|
15
|
+
};
|
|
16
|
+
fast: {
|
|
17
|
+
maxPriorityFee: number;
|
|
18
|
+
maxFee: number;
|
|
19
|
+
};
|
|
20
|
+
estimatedBaseFee: number;
|
|
21
|
+
};
|
|
22
|
+
export type GetFeesRequest = {
|
|
23
|
+
query?: GetFeesQuery;
|
|
24
|
+
};
|
|
25
|
+
export type ReadContractBody = {
|
|
26
|
+
kind: "Evm";
|
|
27
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai";
|
|
28
|
+
contract: string;
|
|
29
|
+
data: string;
|
|
30
|
+
};
|
|
31
|
+
export type ReadContractResponse = {
|
|
32
|
+
kind: "Evm";
|
|
33
|
+
data: string;
|
|
34
|
+
};
|
|
35
|
+
export type ReadContractRequest = {
|
|
36
|
+
body: ReadContractBody;
|
|
37
|
+
};
|
|
@@ -75,20 +75,50 @@ export type GetPermissionResponse = {
|
|
|
75
75
|
dateCreated?: string | undefined;
|
|
76
76
|
dateUpdated?: string | undefined;
|
|
77
77
|
isArchived: boolean;
|
|
78
|
+
} & {
|
|
79
|
+
pendingChangeRequest?: {
|
|
80
|
+
id: string;
|
|
81
|
+
requester: {
|
|
82
|
+
userId: string;
|
|
83
|
+
tokenId: string;
|
|
84
|
+
appId: string;
|
|
85
|
+
};
|
|
86
|
+
kind: "Assignment" | "Permission";
|
|
87
|
+
operationKind: "Create" | "Update" | "Delete";
|
|
88
|
+
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
89
|
+
entityId: string;
|
|
90
|
+
dateCreated: Date;
|
|
91
|
+
dateResolved?: (Date | null) | undefined;
|
|
92
|
+
} | undefined;
|
|
78
93
|
};
|
|
79
94
|
export type GetPermissionRequest = GetPermissionParams;
|
|
80
95
|
export type ListAssignmentsParams = {
|
|
81
96
|
permissionId: string;
|
|
82
97
|
};
|
|
83
98
|
export type ListAssignmentsResponse = {
|
|
84
|
-
items: {
|
|
99
|
+
items: ({
|
|
85
100
|
id: string;
|
|
86
101
|
permissionId: string;
|
|
87
102
|
identityId: string;
|
|
88
103
|
isImmutable: boolean;
|
|
89
104
|
dateCreated?: string | undefined;
|
|
90
105
|
dateUpdated?: string | undefined;
|
|
91
|
-
}
|
|
106
|
+
} & {
|
|
107
|
+
pendingChangeRequest?: {
|
|
108
|
+
id: string;
|
|
109
|
+
requester: {
|
|
110
|
+
userId: string;
|
|
111
|
+
tokenId: string;
|
|
112
|
+
appId: string;
|
|
113
|
+
};
|
|
114
|
+
kind: "Assignment" | "Permission";
|
|
115
|
+
operationKind: "Create" | "Update" | "Delete";
|
|
116
|
+
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
117
|
+
entityId: string;
|
|
118
|
+
dateCreated: Date;
|
|
119
|
+
dateResolved?: (Date | null) | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
})[];
|
|
92
122
|
nextPageToken?: string | undefined;
|
|
93
123
|
};
|
|
94
124
|
export type ListAssignmentsRequest = ListAssignmentsParams;
|
|
@@ -97,7 +127,7 @@ export type ListPermissionsQuery = {
|
|
|
97
127
|
paginationToken?: string | undefined;
|
|
98
128
|
};
|
|
99
129
|
export type ListPermissionsResponse = {
|
|
100
|
-
items: {
|
|
130
|
+
items: ({
|
|
101
131
|
id: string;
|
|
102
132
|
name: string;
|
|
103
133
|
operations: string[];
|
|
@@ -108,7 +138,22 @@ export type ListPermissionsResponse = {
|
|
|
108
138
|
dateCreated?: string | undefined;
|
|
109
139
|
dateUpdated?: string | undefined;
|
|
110
140
|
isArchived: boolean;
|
|
111
|
-
}
|
|
141
|
+
} & {
|
|
142
|
+
pendingChangeRequest?: {
|
|
143
|
+
id: string;
|
|
144
|
+
requester: {
|
|
145
|
+
userId: string;
|
|
146
|
+
tokenId: string;
|
|
147
|
+
appId: string;
|
|
148
|
+
};
|
|
149
|
+
kind: "Assignment" | "Permission";
|
|
150
|
+
operationKind: "Create" | "Update" | "Delete";
|
|
151
|
+
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
152
|
+
entityId: string;
|
|
153
|
+
dateCreated: Date;
|
|
154
|
+
dateResolved?: (Date | null) | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
})[];
|
|
112
157
|
nextPageToken?: string | undefined;
|
|
113
158
|
};
|
|
114
159
|
export type ListPermissionsRequest = {
|
|
@@ -12,7 +12,7 @@ export type ArchivePolicyResponse = ({
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
}[];
|
|
15
|
-
autoRejectTimeout?: number | undefined;
|
|
15
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
16
16
|
activityKind: "Permissions:Assign";
|
|
17
17
|
rule: {
|
|
18
18
|
kind: "AlwaysRequireApproval";
|
|
@@ -34,7 +34,7 @@ export type ArchivePolicyResponse = ({
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
}[];
|
|
37
|
-
autoRejectTimeout?: number | undefined;
|
|
37
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
38
38
|
activityKind: "Permissions:Modify";
|
|
39
39
|
rule: {
|
|
40
40
|
kind: "AlwaysRequireApproval";
|
|
@@ -56,7 +56,7 @@ export type ArchivePolicyResponse = ({
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
}[];
|
|
59
|
-
autoRejectTimeout?: number | undefined;
|
|
59
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
60
60
|
activityKind: "Policies:Modify";
|
|
61
61
|
rule: {
|
|
62
62
|
kind: "AlwaysRequireApproval";
|
|
@@ -78,7 +78,7 @@ export type ArchivePolicyResponse = ({
|
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
|
-
autoRejectTimeout?: number | undefined;
|
|
81
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
82
82
|
activityKind: "Wallets:Sign";
|
|
83
83
|
rule: {
|
|
84
84
|
kind: "AlwaysRequireApproval";
|
|
@@ -158,7 +158,7 @@ export type CreatePolicyBody = {
|
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
160
|
}[];
|
|
161
|
-
autoRejectTimeout?: number | undefined;
|
|
161
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
162
162
|
activityKind: "Permissions:Assign";
|
|
163
163
|
rule: {
|
|
164
164
|
kind: "AlwaysRequireApproval";
|
|
@@ -180,7 +180,7 @@ export type CreatePolicyBody = {
|
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
}[];
|
|
183
|
-
autoRejectTimeout?: number | undefined;
|
|
183
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
184
184
|
activityKind: "Permissions:Modify";
|
|
185
185
|
rule: {
|
|
186
186
|
kind: "AlwaysRequireApproval";
|
|
@@ -202,7 +202,7 @@ export type CreatePolicyBody = {
|
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
204
|
}[];
|
|
205
|
-
autoRejectTimeout?: number | undefined;
|
|
205
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
206
206
|
activityKind: "Policies:Modify";
|
|
207
207
|
rule: {
|
|
208
208
|
kind: "AlwaysRequireApproval";
|
|
@@ -224,7 +224,7 @@ export type CreatePolicyBody = {
|
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
}[];
|
|
227
|
-
autoRejectTimeout?: number | undefined;
|
|
227
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
228
228
|
activityKind: "Wallets:Sign";
|
|
229
229
|
rule: {
|
|
230
230
|
kind: "AlwaysRequireApproval";
|
|
@@ -266,7 +266,7 @@ export type CreatePolicyResponse = ({
|
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
}[];
|
|
269
|
-
autoRejectTimeout?: number | undefined;
|
|
269
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
270
270
|
activityKind: "Permissions:Assign";
|
|
271
271
|
rule: {
|
|
272
272
|
kind: "AlwaysRequireApproval";
|
|
@@ -288,7 +288,7 @@ export type CreatePolicyResponse = ({
|
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
}[];
|
|
291
|
-
autoRejectTimeout?: number | undefined;
|
|
291
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
292
292
|
activityKind: "Permissions:Modify";
|
|
293
293
|
rule: {
|
|
294
294
|
kind: "AlwaysRequireApproval";
|
|
@@ -310,7 +310,7 @@ export type CreatePolicyResponse = ({
|
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
312
|
}[];
|
|
313
|
-
autoRejectTimeout?: number | undefined;
|
|
313
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
314
314
|
activityKind: "Policies:Modify";
|
|
315
315
|
rule: {
|
|
316
316
|
kind: "AlwaysRequireApproval";
|
|
@@ -332,7 +332,7 @@ export type CreatePolicyResponse = ({
|
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
334
|
}[];
|
|
335
|
-
autoRejectTimeout?: number | undefined;
|
|
335
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
336
336
|
activityKind: "Wallets:Sign";
|
|
337
337
|
rule: {
|
|
338
338
|
kind: "AlwaysRequireApproval";
|
|
@@ -374,7 +374,7 @@ export type CreatePolicyRequest = {
|
|
|
374
374
|
export type GetPolicyParams = {
|
|
375
375
|
policyId: string;
|
|
376
376
|
};
|
|
377
|
-
export type GetPolicyResponse = ({
|
|
377
|
+
export type GetPolicyResponse = (({
|
|
378
378
|
name: string;
|
|
379
379
|
approvalGroups: {
|
|
380
380
|
name?: string | undefined;
|
|
@@ -385,7 +385,7 @@ export type GetPolicyResponse = ({
|
|
|
385
385
|
};
|
|
386
386
|
};
|
|
387
387
|
}[];
|
|
388
|
-
autoRejectTimeout?: number | undefined;
|
|
388
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
389
389
|
activityKind: "Permissions:Assign";
|
|
390
390
|
rule: {
|
|
391
391
|
kind: "AlwaysRequireApproval";
|
|
@@ -407,7 +407,7 @@ export type GetPolicyResponse = ({
|
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
409
|
}[];
|
|
410
|
-
autoRejectTimeout?: number | undefined;
|
|
410
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
411
411
|
activityKind: "Permissions:Modify";
|
|
412
412
|
rule: {
|
|
413
413
|
kind: "AlwaysRequireApproval";
|
|
@@ -429,7 +429,7 @@ export type GetPolicyResponse = ({
|
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
431
|
}[];
|
|
432
|
-
autoRejectTimeout?: number | undefined;
|
|
432
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
433
433
|
activityKind: "Policies:Modify";
|
|
434
434
|
rule: {
|
|
435
435
|
kind: "AlwaysRequireApproval";
|
|
@@ -451,7 +451,7 @@ export type GetPolicyResponse = ({
|
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
453
|
}[];
|
|
454
|
-
autoRejectTimeout?: number | undefined;
|
|
454
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
455
455
|
activityKind: "Wallets:Sign";
|
|
456
456
|
rule: {
|
|
457
457
|
kind: "AlwaysRequireApproval";
|
|
@@ -486,6 +486,134 @@ export type GetPolicyResponse = ({
|
|
|
486
486
|
status: "Active" | "Archived";
|
|
487
487
|
dateCreated?: string | undefined;
|
|
488
488
|
dateUpdated?: string | undefined;
|
|
489
|
+
}) & {
|
|
490
|
+
pendingChangeRequest?: {
|
|
491
|
+
id: string;
|
|
492
|
+
requester: {
|
|
493
|
+
userId: string;
|
|
494
|
+
tokenId: string;
|
|
495
|
+
appId: string;
|
|
496
|
+
};
|
|
497
|
+
kind: "Policy";
|
|
498
|
+
operationKind: "Create" | "Update" | "Delete";
|
|
499
|
+
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
500
|
+
entityId: string;
|
|
501
|
+
body: ({
|
|
502
|
+
name: string;
|
|
503
|
+
approvalGroups: {
|
|
504
|
+
name?: string | undefined;
|
|
505
|
+
quorum: number;
|
|
506
|
+
approvers: {
|
|
507
|
+
[x: string]: {
|
|
508
|
+
[x: string]: string[];
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
}[];
|
|
512
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
513
|
+
activityKind: "Permissions:Assign";
|
|
514
|
+
rule: {
|
|
515
|
+
kind: "AlwaysRequireApproval";
|
|
516
|
+
configuration: {};
|
|
517
|
+
};
|
|
518
|
+
filters?: {
|
|
519
|
+
[x: string]: {
|
|
520
|
+
[x: string]: string[];
|
|
521
|
+
};
|
|
522
|
+
} | undefined;
|
|
523
|
+
} | {
|
|
524
|
+
name: string;
|
|
525
|
+
approvalGroups: {
|
|
526
|
+
name?: string | undefined;
|
|
527
|
+
quorum: number;
|
|
528
|
+
approvers: {
|
|
529
|
+
[x: string]: {
|
|
530
|
+
[x: string]: string[];
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
}[];
|
|
534
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
535
|
+
activityKind: "Permissions:Modify";
|
|
536
|
+
rule: {
|
|
537
|
+
kind: "AlwaysRequireApproval";
|
|
538
|
+
configuration: {};
|
|
539
|
+
};
|
|
540
|
+
filters?: {
|
|
541
|
+
[x: string]: {
|
|
542
|
+
[x: string]: string[];
|
|
543
|
+
};
|
|
544
|
+
} | undefined;
|
|
545
|
+
} | {
|
|
546
|
+
name: string;
|
|
547
|
+
approvalGroups: {
|
|
548
|
+
name?: string | undefined;
|
|
549
|
+
quorum: number;
|
|
550
|
+
approvers: {
|
|
551
|
+
[x: string]: {
|
|
552
|
+
[x: string]: string[];
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
}[];
|
|
556
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
557
|
+
activityKind: "Policies:Modify";
|
|
558
|
+
rule: {
|
|
559
|
+
kind: "AlwaysRequireApproval";
|
|
560
|
+
configuration: {};
|
|
561
|
+
};
|
|
562
|
+
filters?: {
|
|
563
|
+
[x: string]: {
|
|
564
|
+
[x: string]: string[];
|
|
565
|
+
};
|
|
566
|
+
} | undefined;
|
|
567
|
+
} | {
|
|
568
|
+
name: string;
|
|
569
|
+
approvalGroups: {
|
|
570
|
+
name?: string | undefined;
|
|
571
|
+
quorum: number;
|
|
572
|
+
approvers: {
|
|
573
|
+
[x: string]: {
|
|
574
|
+
[x: string]: string[];
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
}[];
|
|
578
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
579
|
+
activityKind: "Wallets:Sign";
|
|
580
|
+
rule: {
|
|
581
|
+
kind: "AlwaysRequireApproval";
|
|
582
|
+
configuration: {};
|
|
583
|
+
} | {
|
|
584
|
+
kind: "TransactionAmountLimit";
|
|
585
|
+
configuration: {
|
|
586
|
+
limit: number;
|
|
587
|
+
currency: "EUR" | "USD";
|
|
588
|
+
};
|
|
589
|
+
} | {
|
|
590
|
+
kind: "TransactionAmountVelocity";
|
|
591
|
+
configuration: {
|
|
592
|
+
limit: number;
|
|
593
|
+
currency: "EUR" | "USD";
|
|
594
|
+
timeframe: number;
|
|
595
|
+
};
|
|
596
|
+
} | {
|
|
597
|
+
kind: "TransactionCountVelocity";
|
|
598
|
+
configuration: {
|
|
599
|
+
limit: number;
|
|
600
|
+
timeframe: number;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
filters?: {
|
|
604
|
+
[x: string]: {
|
|
605
|
+
[x: string]: string[];
|
|
606
|
+
};
|
|
607
|
+
} | undefined;
|
|
608
|
+
}) & {
|
|
609
|
+
id: string;
|
|
610
|
+
status: "Active" | "Archived";
|
|
611
|
+
dateCreated?: string | undefined;
|
|
612
|
+
dateUpdated?: string | undefined;
|
|
613
|
+
};
|
|
614
|
+
dateCreated: Date;
|
|
615
|
+
dateResolved?: (Date | null) | undefined;
|
|
616
|
+
} | undefined;
|
|
489
617
|
};
|
|
490
618
|
export type GetPolicyRequest = GetPolicyParams;
|
|
491
619
|
export type ListApprovalsQuery = {
|
|
@@ -532,7 +660,7 @@ export type ListPoliciesQuery = {
|
|
|
532
660
|
paginationToken?: string | undefined;
|
|
533
661
|
};
|
|
534
662
|
export type ListPoliciesResponse = {
|
|
535
|
-
items: (({
|
|
663
|
+
items: ((({
|
|
536
664
|
name: string;
|
|
537
665
|
approvalGroups: {
|
|
538
666
|
name?: string | undefined;
|
|
@@ -543,7 +671,7 @@ export type ListPoliciesResponse = {
|
|
|
543
671
|
};
|
|
544
672
|
};
|
|
545
673
|
}[];
|
|
546
|
-
autoRejectTimeout?: number | undefined;
|
|
674
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
547
675
|
activityKind: "Permissions:Assign";
|
|
548
676
|
rule: {
|
|
549
677
|
kind: "AlwaysRequireApproval";
|
|
@@ -565,7 +693,7 @@ export type ListPoliciesResponse = {
|
|
|
565
693
|
};
|
|
566
694
|
};
|
|
567
695
|
}[];
|
|
568
|
-
autoRejectTimeout?: number | undefined;
|
|
696
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
569
697
|
activityKind: "Permissions:Modify";
|
|
570
698
|
rule: {
|
|
571
699
|
kind: "AlwaysRequireApproval";
|
|
@@ -587,7 +715,7 @@ export type ListPoliciesResponse = {
|
|
|
587
715
|
};
|
|
588
716
|
};
|
|
589
717
|
}[];
|
|
590
|
-
autoRejectTimeout?: number | undefined;
|
|
718
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
591
719
|
activityKind: "Policies:Modify";
|
|
592
720
|
rule: {
|
|
593
721
|
kind: "AlwaysRequireApproval";
|
|
@@ -609,7 +737,7 @@ export type ListPoliciesResponse = {
|
|
|
609
737
|
};
|
|
610
738
|
};
|
|
611
739
|
}[];
|
|
612
|
-
autoRejectTimeout?: number | undefined;
|
|
740
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
613
741
|
activityKind: "Wallets:Sign";
|
|
614
742
|
rule: {
|
|
615
743
|
kind: "AlwaysRequireApproval";
|
|
@@ -644,6 +772,134 @@ export type ListPoliciesResponse = {
|
|
|
644
772
|
status: "Active" | "Archived";
|
|
645
773
|
dateCreated?: string | undefined;
|
|
646
774
|
dateUpdated?: string | undefined;
|
|
775
|
+
}) & {
|
|
776
|
+
pendingChangeRequest?: {
|
|
777
|
+
id: string;
|
|
778
|
+
requester: {
|
|
779
|
+
userId: string;
|
|
780
|
+
tokenId: string;
|
|
781
|
+
appId: string;
|
|
782
|
+
};
|
|
783
|
+
kind: "Policy";
|
|
784
|
+
operationKind: "Create" | "Update" | "Delete";
|
|
785
|
+
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
786
|
+
entityId: string;
|
|
787
|
+
body: ({
|
|
788
|
+
name: string;
|
|
789
|
+
approvalGroups: {
|
|
790
|
+
name?: string | undefined;
|
|
791
|
+
quorum: number;
|
|
792
|
+
approvers: {
|
|
793
|
+
[x: string]: {
|
|
794
|
+
[x: string]: string[];
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
}[];
|
|
798
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
799
|
+
activityKind: "Permissions:Assign";
|
|
800
|
+
rule: {
|
|
801
|
+
kind: "AlwaysRequireApproval";
|
|
802
|
+
configuration: {};
|
|
803
|
+
};
|
|
804
|
+
filters?: {
|
|
805
|
+
[x: string]: {
|
|
806
|
+
[x: string]: string[];
|
|
807
|
+
};
|
|
808
|
+
} | undefined;
|
|
809
|
+
} | {
|
|
810
|
+
name: string;
|
|
811
|
+
approvalGroups: {
|
|
812
|
+
name?: string | undefined;
|
|
813
|
+
quorum: number;
|
|
814
|
+
approvers: {
|
|
815
|
+
[x: string]: {
|
|
816
|
+
[x: string]: string[];
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
}[];
|
|
820
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
821
|
+
activityKind: "Permissions:Modify";
|
|
822
|
+
rule: {
|
|
823
|
+
kind: "AlwaysRequireApproval";
|
|
824
|
+
configuration: {};
|
|
825
|
+
};
|
|
826
|
+
filters?: {
|
|
827
|
+
[x: string]: {
|
|
828
|
+
[x: string]: string[];
|
|
829
|
+
};
|
|
830
|
+
} | undefined;
|
|
831
|
+
} | {
|
|
832
|
+
name: string;
|
|
833
|
+
approvalGroups: {
|
|
834
|
+
name?: string | undefined;
|
|
835
|
+
quorum: number;
|
|
836
|
+
approvers: {
|
|
837
|
+
[x: string]: {
|
|
838
|
+
[x: string]: string[];
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
}[];
|
|
842
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
843
|
+
activityKind: "Policies:Modify";
|
|
844
|
+
rule: {
|
|
845
|
+
kind: "AlwaysRequireApproval";
|
|
846
|
+
configuration: {};
|
|
847
|
+
};
|
|
848
|
+
filters?: {
|
|
849
|
+
[x: string]: {
|
|
850
|
+
[x: string]: string[];
|
|
851
|
+
};
|
|
852
|
+
} | undefined;
|
|
853
|
+
} | {
|
|
854
|
+
name: string;
|
|
855
|
+
approvalGroups: {
|
|
856
|
+
name?: string | undefined;
|
|
857
|
+
quorum: number;
|
|
858
|
+
approvers: {
|
|
859
|
+
[x: string]: {
|
|
860
|
+
[x: string]: string[];
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
}[];
|
|
864
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
865
|
+
activityKind: "Wallets:Sign";
|
|
866
|
+
rule: {
|
|
867
|
+
kind: "AlwaysRequireApproval";
|
|
868
|
+
configuration: {};
|
|
869
|
+
} | {
|
|
870
|
+
kind: "TransactionAmountLimit";
|
|
871
|
+
configuration: {
|
|
872
|
+
limit: number;
|
|
873
|
+
currency: "EUR" | "USD";
|
|
874
|
+
};
|
|
875
|
+
} | {
|
|
876
|
+
kind: "TransactionAmountVelocity";
|
|
877
|
+
configuration: {
|
|
878
|
+
limit: number;
|
|
879
|
+
currency: "EUR" | "USD";
|
|
880
|
+
timeframe: number;
|
|
881
|
+
};
|
|
882
|
+
} | {
|
|
883
|
+
kind: "TransactionCountVelocity";
|
|
884
|
+
configuration: {
|
|
885
|
+
limit: number;
|
|
886
|
+
timeframe: number;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
filters?: {
|
|
890
|
+
[x: string]: {
|
|
891
|
+
[x: string]: string[];
|
|
892
|
+
};
|
|
893
|
+
} | undefined;
|
|
894
|
+
}) & {
|
|
895
|
+
id: string;
|
|
896
|
+
status: "Active" | "Archived";
|
|
897
|
+
dateCreated?: string | undefined;
|
|
898
|
+
dateUpdated?: string | undefined;
|
|
899
|
+
};
|
|
900
|
+
dateCreated: Date;
|
|
901
|
+
dateResolved?: (Date | null) | undefined;
|
|
902
|
+
} | undefined;
|
|
647
903
|
})[];
|
|
648
904
|
nextPageToken?: string | undefined;
|
|
649
905
|
};
|
|
@@ -661,7 +917,7 @@ export type UpdatePolicyBody = {
|
|
|
661
917
|
};
|
|
662
918
|
};
|
|
663
919
|
}[];
|
|
664
|
-
autoRejectTimeout?: number | undefined;
|
|
920
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
665
921
|
activityKind: "Permissions:Assign";
|
|
666
922
|
rule: {
|
|
667
923
|
kind: "AlwaysRequireApproval";
|
|
@@ -683,7 +939,7 @@ export type UpdatePolicyBody = {
|
|
|
683
939
|
};
|
|
684
940
|
};
|
|
685
941
|
}[];
|
|
686
|
-
autoRejectTimeout?: number | undefined;
|
|
942
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
687
943
|
activityKind: "Permissions:Modify";
|
|
688
944
|
rule: {
|
|
689
945
|
kind: "AlwaysRequireApproval";
|
|
@@ -705,7 +961,7 @@ export type UpdatePolicyBody = {
|
|
|
705
961
|
};
|
|
706
962
|
};
|
|
707
963
|
}[];
|
|
708
|
-
autoRejectTimeout?: number | undefined;
|
|
964
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
709
965
|
activityKind: "Policies:Modify";
|
|
710
966
|
rule: {
|
|
711
967
|
kind: "AlwaysRequireApproval";
|
|
@@ -727,7 +983,7 @@ export type UpdatePolicyBody = {
|
|
|
727
983
|
};
|
|
728
984
|
};
|
|
729
985
|
}[];
|
|
730
|
-
autoRejectTimeout?: number | undefined;
|
|
986
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
731
987
|
activityKind: "Wallets:Sign";
|
|
732
988
|
rule: {
|
|
733
989
|
kind: "AlwaysRequireApproval";
|
|
@@ -772,7 +1028,7 @@ export type UpdatePolicyResponse = ({
|
|
|
772
1028
|
};
|
|
773
1029
|
};
|
|
774
1030
|
}[];
|
|
775
|
-
autoRejectTimeout?: number | undefined;
|
|
1031
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
776
1032
|
activityKind: "Permissions:Assign";
|
|
777
1033
|
rule: {
|
|
778
1034
|
kind: "AlwaysRequireApproval";
|
|
@@ -794,7 +1050,7 @@ export type UpdatePolicyResponse = ({
|
|
|
794
1050
|
};
|
|
795
1051
|
};
|
|
796
1052
|
}[];
|
|
797
|
-
autoRejectTimeout?: number | undefined;
|
|
1053
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
798
1054
|
activityKind: "Permissions:Modify";
|
|
799
1055
|
rule: {
|
|
800
1056
|
kind: "AlwaysRequireApproval";
|
|
@@ -816,7 +1072,7 @@ export type UpdatePolicyResponse = ({
|
|
|
816
1072
|
};
|
|
817
1073
|
};
|
|
818
1074
|
}[];
|
|
819
|
-
autoRejectTimeout?: number | undefined;
|
|
1075
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
820
1076
|
activityKind: "Policies:Modify";
|
|
821
1077
|
rule: {
|
|
822
1078
|
kind: "AlwaysRequireApproval";
|
|
@@ -838,7 +1094,7 @@ export type UpdatePolicyResponse = ({
|
|
|
838
1094
|
};
|
|
839
1095
|
};
|
|
840
1096
|
}[];
|
|
841
|
-
autoRejectTimeout?: number | undefined;
|
|
1097
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
842
1098
|
activityKind: "Wallets:Sign";
|
|
843
1099
|
rule: {
|
|
844
1100
|
kind: "AlwaysRequireApproval";
|