@dfns/sdk 0.3.1 → 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 +258 -2
- package/generated/wallets/types.d.ts +36 -31
- package/generated/webhooks/types.d.ts +9 -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 = {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
};
|