@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
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules', {
|
|
125
|
-
path: {},
|
|
126
|
-
query: request.query ?? {},
|
|
127
|
-
});
|
|
128
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
129
|
-
method: 'GET',
|
|
130
|
-
apiOptions: this.apiOptions,
|
|
131
|
-
});
|
|
132
|
-
return response.json();
|
|
133
|
-
}
|
|
134
|
-
async archivePolicyRule(request) {
|
|
135
|
-
const path = (0, url_1.buildPathAndQuery)('/policies/policy-rules/:policyRuleId', {
|
|
136
|
-
path: { policyRuleId: request.policyRuleId },
|
|
137
|
-
query: {},
|
|
138
|
-
});
|
|
139
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
140
|
-
method: 'DELETE',
|
|
141
|
-
apiOptions: this.apiOptions,
|
|
142
|
-
});
|
|
143
|
-
return response.json();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
exports.PolicyManagementClient = PolicyManagementClient;
|
|
@@ -1,19 +0,0 @@
|
|
|
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);
|
|
@@ -1,51 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
2
|
-
import * as T from './types';
|
|
3
|
-
export declare class DelegatedSignersClient {
|
|
4
|
-
private apiOptions;
|
|
5
|
-
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
6
|
-
listSigners(): Promise<T.ListSignersResponse>;
|
|
7
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DelegatedSignersClient = void 0;
|
|
4
|
-
const fetch_1 = require("../../utils/fetch");
|
|
5
|
-
const url_1 = require("../../utils/url");
|
|
6
|
-
class DelegatedSignersClient {
|
|
7
|
-
constructor(apiOptions) {
|
|
8
|
-
this.apiOptions = apiOptions;
|
|
9
|
-
}
|
|
10
|
-
async listSigners() {
|
|
11
|
-
const path = (0, url_1.buildPathAndQuery)('/signers', {
|
|
12
|
-
path: {},
|
|
13
|
-
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
|
-
}
|
|
22
|
-
exports.DelegatedSignersClient = DelegatedSignersClient;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SignersClient = void 0;
|
|
4
|
-
const fetch_1 = require("../../utils/fetch");
|
|
5
|
-
const url_1 = require("../../utils/url");
|
|
6
|
-
class SignersClient {
|
|
7
|
-
constructor(apiOptions) {
|
|
8
|
-
this.apiOptions = apiOptions;
|
|
9
|
-
}
|
|
10
|
-
async listSigners() {
|
|
11
|
-
const path = (0, url_1.buildPathAndQuery)('/signers', {
|
|
12
|
-
path: {},
|
|
13
|
-
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
|
-
}
|
|
22
|
-
exports.SignersClient = SignersClient;
|
package/codegen/Signers/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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("./DelegatedSignersClient"), exports);
|
|
18
|
-
__exportStar(require("./SignersClient"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
package/codegen/Signers/types.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiKeyActionNotAllowed = void 0;
|
|
4
|
-
const Foundations_1 = require("../Foundations");
|
|
5
|
-
class ApiKeyActionNotAllowed extends Foundations_1.DfnsError {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.name = 'ApiKeyActionNotAllowed';
|
|
9
|
-
// FIXME: Missing documentation for httpStatus
|
|
10
|
-
this.httpStatus = 403;
|
|
11
|
-
// FIXME: Missing documentation for errorName
|
|
12
|
-
this.errorName = 'Forbidden';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ApiKeyActionNotAllowed = ApiKeyActionNotAllowed;
|
|
@@ -1,19 +0,0 @@
|
|
|
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("./errors"), exports);
|
|
18
|
-
__exportStar(require("./responses"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
-
import { ApiKeyActionNotAllowed } from './errors';
|
|
3
|
-
import { ApiKeyRecord, ApiKeyRecordWithToken } from './types';
|
|
4
|
-
export type CreateApiKeySuccess = ApiKeyRecordWithToken;
|
|
5
|
-
export type CreateApiKeyError = {
|
|
6
|
-
error: ApiKeyActionNotAllowed | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
7
|
-
};
|
|
8
|
-
export type CreateApiKeyResponse = CreateApiKeySuccess | CreateApiKeyError;
|
|
9
|
-
export type ListApiKeysSuccess = {
|
|
10
|
-
items: ApiKeyRecord[];
|
|
11
|
-
};
|
|
12
|
-
export type ListApiKeysError = {
|
|
13
|
-
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
14
|
-
};
|
|
15
|
-
export type ListApiKeysResponse = ListApiKeysSuccess | ListApiKeysError;
|
|
16
|
-
export type RevokeApiKeySuccess = ApiKeyRecord;
|
|
17
|
-
export type RevokeApiKeyError = {
|
|
18
|
-
error: ApiKeyActionNotAllowed | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
19
|
-
};
|
|
20
|
-
export type RevokeApiKeyResponse = RevokeApiKeySuccess | RevokeApiKeyError;
|
|
21
|
-
export type GetApiKeyByIdSuccess = ApiKeyRecord;
|
|
22
|
-
export type GetApiKeyByIdError = {
|
|
23
|
-
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
24
|
-
};
|
|
25
|
-
export type GetApiKeyByIdResponse = GetApiKeyByIdSuccess | GetApiKeyByIdError;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EntityId, IsoDatetime } from '../Foundations';
|
|
2
|
-
export type ApiKeyRecord = {
|
|
3
|
-
id: EntityId;
|
|
4
|
-
status: ApiKeyStatus;
|
|
5
|
-
externalId?: string;
|
|
6
|
-
orgId: EntityId;
|
|
7
|
-
dateCreated: IsoDatetime;
|
|
8
|
-
name?: string;
|
|
9
|
-
authorId: EntityId;
|
|
10
|
-
scopes: string[];
|
|
11
|
-
};
|
|
12
|
-
export type ApiKeyRecordWithToken = {
|
|
13
|
-
id: EntityId;
|
|
14
|
-
status: ApiKeyStatus;
|
|
15
|
-
externalId?: string;
|
|
16
|
-
orgId: EntityId;
|
|
17
|
-
dateCreated: IsoDatetime;
|
|
18
|
-
name?: string;
|
|
19
|
-
authorId: EntityId;
|
|
20
|
-
scopes: string[];
|
|
21
|
-
token: ApiKeyValue;
|
|
22
|
-
};
|
|
23
|
-
export type ApiKeyValue = string;
|
|
24
|
-
export type CreateApiKeyInput = {
|
|
25
|
-
scopes: string[];
|
|
26
|
-
externalId?: string;
|
|
27
|
-
name: string;
|
|
28
|
-
};
|
|
29
|
-
export declare enum ApiKeyStatus {
|
|
30
|
-
Active = "Active",
|
|
31
|
-
Archived = "Archived"
|
|
32
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiKeyStatus = void 0;
|
|
4
|
-
// FIXME: Missing documentation for ApiKeyStatus
|
|
5
|
-
var ApiKeyStatus;
|
|
6
|
-
(function (ApiKeyStatus) {
|
|
7
|
-
// FIXME: Missing documentation for Active
|
|
8
|
-
ApiKeyStatus["Active"] = "Active";
|
|
9
|
-
// FIXME: Missing documentation for Archived
|
|
10
|
-
ApiKeyStatus["Archived"] = "Archived";
|
|
11
|
-
})(ApiKeyStatus || (exports.ApiKeyStatus = ApiKeyStatus = {}));
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './responses';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./responses"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
-
import { CallViewFunctionResult, EvmFeeEstimates } from './types';
|
|
3
|
-
export type EvmBlockchainFeeSuccess = EvmFeeEstimates;
|
|
4
|
-
export type EvmBlockchainFeeError = {
|
|
5
|
-
error: ForbiddenError | UnauthorizedError | ForbiddenError | EntityNotFoundError;
|
|
6
|
-
};
|
|
7
|
-
export type EvmBlockchainFeeResponse = EvmBlockchainFeeSuccess | EvmBlockchainFeeError;
|
|
8
|
-
export type CallViewFunctionSuccess = CallViewFunctionResult;
|
|
9
|
-
export type CallViewFunctionError = {
|
|
10
|
-
error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
11
|
-
};
|
|
12
|
-
export type CallViewFunctionResponse = CallViewFunctionSuccess | CallViewFunctionError;
|