@dynamic-labs/sdk-api 0.0.34 → 0.0.35
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/package.json +1 -1
- package/src/apis/AllowlistsApi.d.ts +111 -0
- package/src/apis/AllowlistsApi.js +354 -0
- package/src/apis/AllowlistsApi.js.map +1 -0
- package/src/apis/index.d.ts +1 -0
- package/src/apis/index.js +1 -0
- package/src/apis/index.js.map +1 -1
- package/src/models/Allowlist.d.ts +45 -0
- package/src/models/Allowlist.js +49 -0
- package/src/models/Allowlist.js.map +1 -0
- package/src/models/AllowlistEntry.d.ts +39 -0
- package/src/models/AllowlistEntry.js +46 -0
- package/src/models/AllowlistEntry.js.map +1 -0
- package/src/models/PostAllowlistEntriesRequest.d.ts +27 -0
- package/src/models/PostAllowlistEntriesRequest.js +42 -0
- package/src/models/PostAllowlistEntriesRequest.js.map +1 -0
- package/src/models/PostAllowlistsRequest.d.ts +27 -0
- package/src/models/{ProjectSetingsChain.js → PostAllowlistsRequest.js} +9 -11
- package/src/models/PostAllowlistsRequest.js.map +1 -0
- package/src/models/index.d.ts +4 -0
- package/src/models/index.js +4 -0
- package/src/models/index.js.map +1 -1
- package/src/models/CreateTokenResponseAllOf.d.ts +0 -28
- package/src/models/CreateTokenResponseAllOf.js +0 -44
- package/src/models/CreateTokenResponseAllOf.js.map +0 -1
- package/src/models/CreateTokenResponseAllOfToken.d.ts +0 -27
- package/src/models/CreateTokenResponseAllOfToken.js +0 -43
- package/src/models/CreateTokenResponseAllOfToken.js.map +0 -1
- package/src/models/ProjectSetingsChain.d.ts +0 -33
- package/src/models/ProjectSetingsChain.js.map +0 -1
- package/src/models/ProjectSetingsKyc.d.ts +0 -39
- package/src/models/ProjectSetingsKyc.js +0 -46
- package/src/models/ProjectSetingsKyc.js.map +0 -1
- package/src/models/TokenResponseToken.d.ts +0 -71
- package/src/models/TokenResponseToken.js +0 -59
- package/src/models/TokenResponseToken.js.map +0 -1
- package/src/models/TokenResponseTokenCreatedBy.d.ts +0 -51
- package/src/models/TokenResponseTokenCreatedBy.js +0 -51
- package/src/models/TokenResponseTokenCreatedBy.js.map +0 -1
- package/src/models/TokenResponseTokenProjectEnvironment.d.ts +0 -27
- package/src/models/TokenResponseTokenProjectEnvironment.js +0 -43
- package/src/models/TokenResponseTokenProjectEnvironment.js.map +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { Allowlist, AllowlistEntry, PostAllowlistEntriesRequest, PostAllowlistsRequest } from '../models';
|
|
14
|
+
export interface CreateAllowlistByEnvironmentIdRequest {
|
|
15
|
+
environmentId: string;
|
|
16
|
+
postAllowlistsRequest: PostAllowlistsRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteAllowlistByIdRequest {
|
|
19
|
+
allowlistId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteAllowlistEntryByIdRequest {
|
|
22
|
+
allowlistEntryId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EnableAllowlistByIdRequest {
|
|
25
|
+
allowlistId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetAllowlistsByEnvironmentIdRequest {
|
|
28
|
+
environmentId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GetAllowlistsByIdRequest {
|
|
31
|
+
allowlistId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GetEntriesByAllowlistIdRequest {
|
|
34
|
+
allowlistId: string;
|
|
35
|
+
orderBy?: string;
|
|
36
|
+
offset?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface PostEntryByAllowlistIdRequest {
|
|
40
|
+
allowlistId: string;
|
|
41
|
+
postAllowlistEntriesRequest: PostAllowlistEntriesRequest;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
export declare class AllowlistsApi extends runtime.BaseAPI {
|
|
47
|
+
/**
|
|
48
|
+
* Create new allowlist for a environment
|
|
49
|
+
*/
|
|
50
|
+
createAllowlistByEnvironmentIdRaw(requestParameters: CreateAllowlistByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Allowlist>>;
|
|
51
|
+
/**
|
|
52
|
+
* Create new allowlist for a environment
|
|
53
|
+
*/
|
|
54
|
+
createAllowlistByEnvironmentId(requestParameters: CreateAllowlistByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<Allowlist>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete an allowlist
|
|
57
|
+
*/
|
|
58
|
+
deleteAllowlistByIdRaw(requestParameters: DeleteAllowlistByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete an allowlist
|
|
61
|
+
*/
|
|
62
|
+
deleteAllowlistById(requestParameters: DeleteAllowlistByIdRequest, initOverrides?: RequestInit): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Delete an allowlist entry
|
|
65
|
+
*/
|
|
66
|
+
deleteAllowlistEntryByIdRaw(requestParameters: DeleteAllowlistEntryByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
67
|
+
/**
|
|
68
|
+
* Delete an allowlist entry
|
|
69
|
+
*/
|
|
70
|
+
deleteAllowlistEntryById(requestParameters: DeleteAllowlistEntryByIdRequest, initOverrides?: RequestInit): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Enable the allowlist
|
|
73
|
+
*/
|
|
74
|
+
enableAllowlistByIdRaw(requestParameters: EnableAllowlistByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Allowlist>>;
|
|
75
|
+
/**
|
|
76
|
+
* Enable the allowlist
|
|
77
|
+
*/
|
|
78
|
+
enableAllowlistById(requestParameters: EnableAllowlistByIdRequest, initOverrides?: RequestInit): Promise<Allowlist>;
|
|
79
|
+
/**
|
|
80
|
+
* Get all allowlists for a environment
|
|
81
|
+
*/
|
|
82
|
+
getAllowlistsByEnvironmentIdRaw(requestParameters: GetAllowlistsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Allowlist>>>;
|
|
83
|
+
/**
|
|
84
|
+
* Get all allowlists for a environment
|
|
85
|
+
*/
|
|
86
|
+
getAllowlistsByEnvironmentId(requestParameters: GetAllowlistsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<Array<Allowlist>>;
|
|
87
|
+
/**
|
|
88
|
+
* Get allowlist by id
|
|
89
|
+
*/
|
|
90
|
+
getAllowlistsByIdRaw(requestParameters: GetAllowlistsByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Allowlist>>;
|
|
91
|
+
/**
|
|
92
|
+
* Get allowlist by id
|
|
93
|
+
*/
|
|
94
|
+
getAllowlistsById(requestParameters: GetAllowlistsByIdRequest, initOverrides?: RequestInit): Promise<Allowlist>;
|
|
95
|
+
/**
|
|
96
|
+
* Get all entries for an allowlist
|
|
97
|
+
*/
|
|
98
|
+
getEntriesByAllowlistIdRaw(requestParameters: GetEntriesByAllowlistIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<AllowlistEntry>>>;
|
|
99
|
+
/**
|
|
100
|
+
* Get all entries for an allowlist
|
|
101
|
+
*/
|
|
102
|
+
getEntriesByAllowlistId(requestParameters: GetEntriesByAllowlistIdRequest, initOverrides?: RequestInit): Promise<Array<AllowlistEntry>>;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new entry for an allowlist
|
|
105
|
+
*/
|
|
106
|
+
postEntryByAllowlistIdRaw(requestParameters: PostEntryByAllowlistIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AllowlistEntry>>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a new entry for an allowlist
|
|
109
|
+
*/
|
|
110
|
+
postEntryByAllowlistId(requestParameters: PostEntryByAllowlistIdRequest, initOverrides?: RequestInit): Promise<AllowlistEntry>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Dashboard API
|
|
6
|
+
* Dashboard API documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.AllowlistsApi = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
const models_1 = require("../models");
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
class AllowlistsApi extends runtime.BaseAPI {
|
|
55
|
+
/**
|
|
56
|
+
* Create new allowlist for a environment
|
|
57
|
+
*/
|
|
58
|
+
createAllowlistByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
61
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createAllowlistByEnvironmentId.');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters.postAllowlistsRequest === null || requestParameters.postAllowlistsRequest === undefined) {
|
|
64
|
+
throw new runtime.RequiredError('postAllowlistsRequest', 'Required parameter requestParameters.postAllowlistsRequest was null or undefined when calling createAllowlistByEnvironmentId.');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
+
const token = this.configuration.accessToken;
|
|
71
|
+
const tokenString = yield token("bearerAuth", []);
|
|
72
|
+
if (tokenString) {
|
|
73
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const response = yield this.request({
|
|
77
|
+
path: `/environments/{environmentId}/allowlists`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
78
|
+
method: 'POST',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
body: (0, models_1.PostAllowlistsRequestToJSON)(requestParameters.postAllowlistsRequest),
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AllowlistFromJSON)(jsonValue));
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Create new allowlist for a environment
|
|
88
|
+
*/
|
|
89
|
+
createAllowlistByEnvironmentId(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const response = yield this.createAllowlistByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
92
|
+
return yield response.value();
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete an allowlist
|
|
97
|
+
*/
|
|
98
|
+
deleteAllowlistByIdRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
101
|
+
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling deleteAllowlistById.');
|
|
102
|
+
}
|
|
103
|
+
const queryParameters = {};
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
const token = this.configuration.accessToken;
|
|
107
|
+
const tokenString = yield token("bearerAuth", []);
|
|
108
|
+
if (tokenString) {
|
|
109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const response = yield this.request({
|
|
113
|
+
path: `/allowlists/{allowlistId}`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))),
|
|
114
|
+
method: 'DELETE',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.VoidApiResponse(response);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Delete an allowlist
|
|
123
|
+
*/
|
|
124
|
+
deleteAllowlistById(requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
yield this.deleteAllowlistByIdRaw(requestParameters, initOverrides);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Delete an allowlist entry
|
|
131
|
+
*/
|
|
132
|
+
deleteAllowlistEntryByIdRaw(requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
if (requestParameters.allowlistEntryId === null || requestParameters.allowlistEntryId === undefined) {
|
|
135
|
+
throw new runtime.RequiredError('allowlistEntryId', 'Required parameter requestParameters.allowlistEntryId was null or undefined when calling deleteAllowlistEntryById.');
|
|
136
|
+
}
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
const headerParameters = {};
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
const token = this.configuration.accessToken;
|
|
141
|
+
const tokenString = yield token("bearerAuth", []);
|
|
142
|
+
if (tokenString) {
|
|
143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const response = yield this.request({
|
|
147
|
+
path: `/allowlistEntries/{allowlistEntryId}`.replace(`{${"allowlistEntryId"}}`, encodeURIComponent(String(requestParameters.allowlistEntryId))),
|
|
148
|
+
method: 'DELETE',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
return new runtime.VoidApiResponse(response);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Delete an allowlist entry
|
|
157
|
+
*/
|
|
158
|
+
deleteAllowlistEntryById(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
yield this.deleteAllowlistEntryByIdRaw(requestParameters, initOverrides);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Enable the allowlist
|
|
165
|
+
*/
|
|
166
|
+
enableAllowlistByIdRaw(requestParameters, initOverrides) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
169
|
+
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling enableAllowlistById.');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
const token = this.configuration.accessToken;
|
|
175
|
+
const tokenString = yield token("bearerAuth", []);
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const response = yield this.request({
|
|
181
|
+
path: `/allowlists/{allowlistId}/enable`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))),
|
|
182
|
+
method: 'PUT',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
}, initOverrides);
|
|
186
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AllowlistFromJSON)(jsonValue));
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Enable the allowlist
|
|
191
|
+
*/
|
|
192
|
+
enableAllowlistById(requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
const response = yield this.enableAllowlistByIdRaw(requestParameters, initOverrides);
|
|
195
|
+
return yield response.value();
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Get all allowlists for a environment
|
|
200
|
+
*/
|
|
201
|
+
getAllowlistsByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
204
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAllowlistsByEnvironmentId.');
|
|
205
|
+
}
|
|
206
|
+
const queryParameters = {};
|
|
207
|
+
const headerParameters = {};
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
const token = this.configuration.accessToken;
|
|
210
|
+
const tokenString = yield token("bearerAuth", []);
|
|
211
|
+
if (tokenString) {
|
|
212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
const response = yield this.request({
|
|
216
|
+
path: `/environments/{environmentId}/allowlists`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
217
|
+
method: 'GET',
|
|
218
|
+
headers: headerParameters,
|
|
219
|
+
query: queryParameters,
|
|
220
|
+
}, initOverrides);
|
|
221
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.AllowlistFromJSON));
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Get all allowlists for a environment
|
|
226
|
+
*/
|
|
227
|
+
getAllowlistsByEnvironmentId(requestParameters, initOverrides) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
const response = yield this.getAllowlistsByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
230
|
+
return yield response.value();
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Get allowlist by id
|
|
235
|
+
*/
|
|
236
|
+
getAllowlistsByIdRaw(requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
239
|
+
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling getAllowlistsById.');
|
|
240
|
+
}
|
|
241
|
+
const queryParameters = {};
|
|
242
|
+
const headerParameters = {};
|
|
243
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
244
|
+
const token = this.configuration.accessToken;
|
|
245
|
+
const tokenString = yield token("bearerAuth", []);
|
|
246
|
+
if (tokenString) {
|
|
247
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
const response = yield this.request({
|
|
251
|
+
path: `/allowlists/{allowlistId}`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))),
|
|
252
|
+
method: 'GET',
|
|
253
|
+
headers: headerParameters,
|
|
254
|
+
query: queryParameters,
|
|
255
|
+
}, initOverrides);
|
|
256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AllowlistFromJSON)(jsonValue));
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Get allowlist by id
|
|
261
|
+
*/
|
|
262
|
+
getAllowlistsById(requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const response = yield this.getAllowlistsByIdRaw(requestParameters, initOverrides);
|
|
265
|
+
return yield response.value();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Get all entries for an allowlist
|
|
270
|
+
*/
|
|
271
|
+
getEntriesByAllowlistIdRaw(requestParameters, initOverrides) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
274
|
+
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling getEntriesByAllowlistId.');
|
|
275
|
+
}
|
|
276
|
+
const queryParameters = {};
|
|
277
|
+
if (requestParameters.orderBy !== undefined) {
|
|
278
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters.offset !== undefined) {
|
|
281
|
+
queryParameters['offset'] = requestParameters.offset;
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters.limit !== undefined) {
|
|
284
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
285
|
+
}
|
|
286
|
+
const headerParameters = {};
|
|
287
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
288
|
+
const token = this.configuration.accessToken;
|
|
289
|
+
const tokenString = yield token("bearerAuth", []);
|
|
290
|
+
if (tokenString) {
|
|
291
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
const response = yield this.request({
|
|
295
|
+
path: `/allowlists/{allowlistId}/entries`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))),
|
|
296
|
+
method: 'GET',
|
|
297
|
+
headers: headerParameters,
|
|
298
|
+
query: queryParameters,
|
|
299
|
+
}, initOverrides);
|
|
300
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.AllowlistEntryFromJSON));
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Get all entries for an allowlist
|
|
305
|
+
*/
|
|
306
|
+
getEntriesByAllowlistId(requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const response = yield this.getEntriesByAllowlistIdRaw(requestParameters, initOverrides);
|
|
309
|
+
return yield response.value();
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Create a new entry for an allowlist
|
|
314
|
+
*/
|
|
315
|
+
postEntryByAllowlistIdRaw(requestParameters, initOverrides) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
318
|
+
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling postEntryByAllowlistId.');
|
|
319
|
+
}
|
|
320
|
+
if (requestParameters.postAllowlistEntriesRequest === null || requestParameters.postAllowlistEntriesRequest === undefined) {
|
|
321
|
+
throw new runtime.RequiredError('postAllowlistEntriesRequest', 'Required parameter requestParameters.postAllowlistEntriesRequest was null or undefined when calling postEntryByAllowlistId.');
|
|
322
|
+
}
|
|
323
|
+
const queryParameters = {};
|
|
324
|
+
const headerParameters = {};
|
|
325
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
327
|
+
const token = this.configuration.accessToken;
|
|
328
|
+
const tokenString = yield token("bearerAuth", []);
|
|
329
|
+
if (tokenString) {
|
|
330
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
const response = yield this.request({
|
|
334
|
+
path: `/allowlists/{allowlistId}/entries`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))),
|
|
335
|
+
method: 'POST',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
body: (0, models_1.PostAllowlistEntriesRequestToJSON)(requestParameters.postAllowlistEntriesRequest),
|
|
339
|
+
}, initOverrides);
|
|
340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AllowlistEntryFromJSON)(jsonValue));
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Create a new entry for an allowlist
|
|
345
|
+
*/
|
|
346
|
+
postEntryByAllowlistId(requestParameters, initOverrides) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
const response = yield this.postEntryByAllowlistIdRaw(requestParameters, initOverrides);
|
|
349
|
+
return yield response.value();
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
exports.AllowlistsApi = AllowlistsApi;
|
|
354
|
+
//# sourceMappingURL=AllowlistsApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllowlistsApi.js","sourceRoot":"","sources":["../../../../../libs/sdk-api/src/apis/AllowlistsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AACtC,sCA4BmB;AAuCnB;;GAEG;AACH,MAAa,aAAc,SAAQ,OAAO,CAAC,OAAO;IAE9C;;OAEG;IACG,iCAAiC,CAAC,iBAAwD,EAAE,aAA2B;;YACzH,IAAI,iBAAiB,CAAC,aAAa,KAAK,IAAI,IAAI,iBAAiB,CAAC,aAAa,KAAK,SAAS,EAAE;gBAC3F,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,eAAe,EAAC,uHAAuH,CAAC,CAAC;aAC5K;YAED,IAAI,iBAAiB,CAAC,qBAAqB,KAAK,IAAI,IAAI,iBAAiB,CAAC,qBAAqB,KAAK,SAAS,EAAE;gBAC3G,MAAM,IAAI,OAAO,CAAC,aA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CAAC,OAAO,CAAC;gBAChC,IAAI,EAAE,mCAAmC,CAAC,OAAO,CAAC,IAAI,aAAa,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;gBAClI,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,gBAAgB;gBACzB,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,IAAA,0CAAiC,EAAC,iBAAiB,CAAC,2BAA2B,CAAC;aACzF,EAAE,aAAa,CAAC,CAAC;YAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAsB,EAAC,SAAS,CAAC,CAAC,CAAC;QACnG,CAAC;KAAA;IAED;;OAEG;IACG,sBAAsB,CAAC,iBAAgD,EAAE,aAA2B;;YACtG,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;YACxF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;QAClC,CAAC;KAAA;CAEJ;AA1UD,sCA0UC"}
|
package/src/apis/index.d.ts
CHANGED
package/src/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AllowlistsApi"), exports);
|
|
19
20
|
__exportStar(require("./EnvironmentsApi"), exports);
|
|
20
21
|
__exportStar(require("./InvitesApi"), exports);
|
|
21
22
|
__exportStar(require("./OrganizationsApi"), exports);
|
package/src/apis/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/sdk-api/src/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAAkC;AAClC,+CAA6B;AAC7B,qDAAmC;AACnC,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/sdk-api/src/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kDAAgC;AAChC,oDAAkC;AAClC,+CAA6B;AAC7B,qDAAmC;AACnC,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Allowlist
|
|
16
|
+
*/
|
|
17
|
+
export interface Allowlist {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Allowlist
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Allowlist
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof Allowlist
|
|
34
|
+
*/
|
|
35
|
+
enabledAt?: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Allowlist
|
|
40
|
+
*/
|
|
41
|
+
projectEnvironmentId: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function AllowlistFromJSON(json: any): Allowlist;
|
|
44
|
+
export declare function AllowlistFromJSONTyped(json: any, ignoreDiscriminator: boolean): Allowlist;
|
|
45
|
+
export declare function AllowlistToJSON(value?: Allowlist | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Dashboard API
|
|
6
|
+
* Dashboard API documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AllowlistToJSON = exports.AllowlistFromJSONTyped = exports.AllowlistFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
function AllowlistFromJSON(json) {
|
|
19
|
+
return AllowlistFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.AllowlistFromJSON = AllowlistFromJSON;
|
|
22
|
+
function AllowlistFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': json['id'],
|
|
28
|
+
'name': json['name'],
|
|
29
|
+
'enabledAt': !(0, runtime_1.exists)(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
30
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.AllowlistFromJSONTyped = AllowlistFromJSONTyped;
|
|
34
|
+
function AllowlistToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value.id,
|
|
43
|
+
'name': value.name,
|
|
44
|
+
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
45
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.AllowlistToJSON = AllowlistToJSON;
|
|
49
|
+
//# sourceMappingURL=Allowlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Allowlist.js","sourceRoot":"","sources":["../../../../../libs/sdk-api/src/models/Allowlist.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAiC/C,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAFD,8CAEC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACvH,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,CAAC;KACvD,CAAC;AACN,CAAC;AAXD,wDAWC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC1H,sBAAsB,EAAE,KAAK,CAAC,oBAAoB;KACrD,CAAC;AACN,CAAC;AAdD,0CAcC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AllowlistEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface AllowlistEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AllowlistEntry
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AllowlistEntry
|
|
28
|
+
*/
|
|
29
|
+
allowListId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AllowlistEntry
|
|
34
|
+
*/
|
|
35
|
+
walletPublicKey: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function AllowlistEntryFromJSON(json: any): AllowlistEntry;
|
|
38
|
+
export declare function AllowlistEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllowlistEntry;
|
|
39
|
+
export declare function AllowlistEntryToJSON(value?: AllowlistEntry | null): any;
|