@dynamic-labs/sdk-api 0.0.478 → 0.0.480
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
CHANGED
|
@@ -102,40 +102,6 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
102
102
|
return yield response.value();
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
/**
|
|
106
|
-
* Deletes an organization by ID
|
|
107
|
-
*/
|
|
108
|
-
deleteOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
109
|
-
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
111
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling deleteOrganizationById.');
|
|
112
|
-
}
|
|
113
|
-
const queryParameters = {};
|
|
114
|
-
const headerParameters = {};
|
|
115
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
-
const token = this.configuration.accessToken;
|
|
117
|
-
const tokenString = yield token("bearerAuth", []);
|
|
118
|
-
if (tokenString) {
|
|
119
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
const response = yield this.request({
|
|
123
|
-
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
124
|
-
method: 'DELETE',
|
|
125
|
-
headers: headerParameters,
|
|
126
|
-
query: queryParameters,
|
|
127
|
-
}, initOverrides);
|
|
128
|
-
return new runtime.VoidApiResponse(response);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Deletes an organization by ID
|
|
133
|
-
*/
|
|
134
|
-
deleteOrganizationById(requestParameters, initOverrides) {
|
|
135
|
-
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
yield this.deleteOrganizationByIdRaw(requestParameters, initOverrides);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
105
|
/**
|
|
140
106
|
* Find the subscription of an organization using its ID
|
|
141
107
|
*/
|
|
@@ -14,9 +14,6 @@ import { BillingSubscription, Organization, OrganizationFields, OrganizationRequ
|
|
|
14
14
|
export interface CreateOrganizationRequest {
|
|
15
15
|
organizationRequest: OrganizationRequest;
|
|
16
16
|
}
|
|
17
|
-
export interface DeleteOrganizationByIdRequest {
|
|
18
|
-
organizationId: string;
|
|
19
|
-
}
|
|
20
17
|
export interface GetBillingSubscriptionByOrganizationRequest {
|
|
21
18
|
organizationId: string;
|
|
22
19
|
}
|
|
@@ -42,14 +39,6 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
42
39
|
* Creates organization
|
|
43
40
|
*/
|
|
44
41
|
createOrganization(requestParameters: CreateOrganizationRequest, initOverrides?: RequestInit): Promise<OrganizationResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Deletes an organization by ID
|
|
47
|
-
*/
|
|
48
|
-
deleteOrganizationByIdRaw(requestParameters: DeleteOrganizationByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
49
|
-
/**
|
|
50
|
-
* Deletes an organization by ID
|
|
51
|
-
*/
|
|
52
|
-
deleteOrganizationById(requestParameters: DeleteOrganizationByIdRequest, initOverrides?: RequestInit): Promise<void>;
|
|
53
42
|
/**
|
|
54
43
|
* Find the subscription of an organization using its ID
|
|
55
44
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
|
-
import { BaseAPI, RequiredError, JSONApiResponse
|
|
2
|
+
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
3
3
|
import '../models/AccessOutcomeEnum.js';
|
|
4
4
|
import '../models/AuthModeEnum.js';
|
|
5
5
|
import '../models/AuthStorageEnum.js';
|
|
@@ -98,40 +98,6 @@ class OrganizationsApi extends BaseAPI {
|
|
|
98
98
|
return yield response.value();
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Deletes an organization by ID
|
|
103
|
-
*/
|
|
104
|
-
deleteOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
107
|
-
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling deleteOrganizationById.');
|
|
108
|
-
}
|
|
109
|
-
const queryParameters = {};
|
|
110
|
-
const headerParameters = {};
|
|
111
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
-
const token = this.configuration.accessToken;
|
|
113
|
-
const tokenString = yield token("bearerAuth", []);
|
|
114
|
-
if (tokenString) {
|
|
115
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const response = yield this.request({
|
|
119
|
-
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
120
|
-
method: 'DELETE',
|
|
121
|
-
headers: headerParameters,
|
|
122
|
-
query: queryParameters,
|
|
123
|
-
}, initOverrides);
|
|
124
|
-
return new VoidApiResponse(response);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Deletes an organization by ID
|
|
129
|
-
*/
|
|
130
|
-
deleteOrganizationById(requestParameters, initOverrides) {
|
|
131
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
yield this.deleteOrganizationByIdRaw(requestParameters, initOverrides);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
101
|
/**
|
|
136
102
|
* Find the subscription of an organization using its ID
|
|
137
103
|
*/
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -1014,9 +1014,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1014
1014
|
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
1015
1015
|
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAccountBalances.');
|
|
1016
1016
|
}
|
|
1017
|
-
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
1018
|
-
throw new runtime.RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getAccountBalances.');
|
|
1019
|
-
}
|
|
1020
1017
|
if (requestParameters.accountAddress === null || requestParameters.accountAddress === undefined) {
|
|
1021
1018
|
throw new runtime.RequiredError('accountAddress', 'Required parameter requestParameters.accountAddress was null or undefined when calling getAccountBalances.');
|
|
1022
1019
|
}
|
|
@@ -4241,6 +4238,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4241
4238
|
exports.GetAccountBalancesChainNameEnum = void 0;
|
|
4242
4239
|
(function (GetAccountBalancesChainNameEnum) {
|
|
4243
4240
|
GetAccountBalancesChainNameEnum["Evm"] = "EVM";
|
|
4241
|
+
GetAccountBalancesChainNameEnum["Sol"] = "SOL";
|
|
4244
4242
|
})(exports.GetAccountBalancesChainNameEnum || (exports.GetAccountBalancesChainNameEnum = {}));
|
|
4245
4243
|
/**
|
|
4246
4244
|
* @export
|
|
@@ -4261,6 +4259,7 @@ exports.GetAccountBalancesNetworkIdEnum = void 0;
|
|
|
4261
4259
|
exports.GetAccountBalancesOptionsChainNameEnum = void 0;
|
|
4262
4260
|
(function (GetAccountBalancesOptionsChainNameEnum) {
|
|
4263
4261
|
GetAccountBalancesOptionsChainNameEnum["Evm"] = "EVM";
|
|
4262
|
+
GetAccountBalancesOptionsChainNameEnum["Sol"] = "SOL";
|
|
4264
4263
|
})(exports.GetAccountBalancesOptionsChainNameEnum || (exports.GetAccountBalancesOptionsChainNameEnum = {}));
|
|
4265
4264
|
|
|
4266
4265
|
exports.SDKApi = SDKApi;
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -111,8 +111,8 @@ export interface FarcasterVerifyOptionsRequest {
|
|
|
111
111
|
export interface GetAccountBalancesRequest {
|
|
112
112
|
environmentId: string;
|
|
113
113
|
chainName: GetAccountBalancesChainNameEnum;
|
|
114
|
-
networkId: GetAccountBalancesNetworkIdEnum;
|
|
115
114
|
accountAddress: string;
|
|
115
|
+
networkId?: GetAccountBalancesNetworkIdEnum;
|
|
116
116
|
includePrices?: boolean;
|
|
117
117
|
includeNative?: boolean;
|
|
118
118
|
}
|
|
@@ -1528,7 +1528,8 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1528
1528
|
* @enum {string}
|
|
1529
1529
|
*/
|
|
1530
1530
|
export declare enum GetAccountBalancesChainNameEnum {
|
|
1531
|
-
Evm = "EVM"
|
|
1531
|
+
Evm = "EVM",
|
|
1532
|
+
Sol = "SOL"
|
|
1532
1533
|
}
|
|
1533
1534
|
/**
|
|
1534
1535
|
* @export
|
|
@@ -1546,5 +1547,6 @@ export declare enum GetAccountBalancesNetworkIdEnum {
|
|
|
1546
1547
|
* @enum {string}
|
|
1547
1548
|
*/
|
|
1548
1549
|
export declare enum GetAccountBalancesOptionsChainNameEnum {
|
|
1549
|
-
Evm = "EVM"
|
|
1550
|
+
Evm = "EVM",
|
|
1551
|
+
Sol = "SOL"
|
|
1550
1552
|
}
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1010,9 +1010,6 @@ class SDKApi extends BaseAPI {
|
|
|
1010
1010
|
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
1011
1011
|
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAccountBalances.');
|
|
1012
1012
|
}
|
|
1013
|
-
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
1014
|
-
throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getAccountBalances.');
|
|
1015
|
-
}
|
|
1016
1013
|
if (requestParameters.accountAddress === null || requestParameters.accountAddress === undefined) {
|
|
1017
1014
|
throw new RequiredError('accountAddress', 'Required parameter requestParameters.accountAddress was null or undefined when calling getAccountBalances.');
|
|
1018
1015
|
}
|
|
@@ -4237,6 +4234,7 @@ class SDKApi extends BaseAPI {
|
|
|
4237
4234
|
var GetAccountBalancesChainNameEnum;
|
|
4238
4235
|
(function (GetAccountBalancesChainNameEnum) {
|
|
4239
4236
|
GetAccountBalancesChainNameEnum["Evm"] = "EVM";
|
|
4237
|
+
GetAccountBalancesChainNameEnum["Sol"] = "SOL";
|
|
4240
4238
|
})(GetAccountBalancesChainNameEnum || (GetAccountBalancesChainNameEnum = {}));
|
|
4241
4239
|
/**
|
|
4242
4240
|
* @export
|
|
@@ -4257,6 +4255,7 @@ var GetAccountBalancesNetworkIdEnum;
|
|
|
4257
4255
|
var GetAccountBalancesOptionsChainNameEnum;
|
|
4258
4256
|
(function (GetAccountBalancesOptionsChainNameEnum) {
|
|
4259
4257
|
GetAccountBalancesOptionsChainNameEnum["Evm"] = "EVM";
|
|
4258
|
+
GetAccountBalancesOptionsChainNameEnum["Sol"] = "SOL";
|
|
4260
4259
|
})(GetAccountBalancesOptionsChainNameEnum || (GetAccountBalancesOptionsChainNameEnum = {}));
|
|
4261
4260
|
|
|
4262
4261
|
export { GetAccountBalancesChainNameEnum, GetAccountBalancesNetworkIdEnum, GetAccountBalancesOptionsChainNameEnum, SDKApi };
|