@dynamic-labs/sdk-api 0.0.1060 → 0.0.1062
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/AdminActionsApi.cjs +3 -1
- package/src/apis/AdminActionsApi.js +3 -1
- package/src/apis/AllowlistsApi.cjs +3 -1
- package/src/apis/AllowlistsApi.js +3 -1
- package/src/apis/AnalyticsApi.cjs +3 -1
- package/src/apis/AnalyticsApi.js +3 -1
- package/src/apis/AuthorizedClientsApi.cjs +3 -1
- package/src/apis/AuthorizedClientsApi.js +3 -1
- package/src/apis/CaptchaApi.cjs +3 -1
- package/src/apis/CaptchaApi.js +3 -1
- package/src/apis/ChainalysisApi.cjs +3 -1
- package/src/apis/ChainalysisApi.js +3 -1
- package/src/apis/ChainsApi.cjs +3 -1
- package/src/apis/ChainsApi.js +3 -1
- package/src/apis/CheckoutApi.cjs +3 -1
- package/src/apis/CheckoutApi.js +3 -1
- package/src/apis/ClientGrantApi.cjs +3 -1
- package/src/apis/ClientGrantApi.js +3 -1
- package/src/apis/CustomFieldsApi.cjs +3 -1
- package/src/apis/CustomFieldsApi.js +3 -1
- package/src/apis/CustomHostnamesApi.cjs +3 -1
- package/src/apis/CustomHostnamesApi.js +3 -1
- package/src/apis/CustomNetworksApi.cjs +3 -1
- package/src/apis/CustomNetworksApi.js +3 -1
- package/src/apis/DeeplinkUrlsApi.cjs +3 -1
- package/src/apis/DeeplinkUrlsApi.js +3 -1
- package/src/apis/EnvironmentsApi.cjs +3 -1
- package/src/apis/EnvironmentsApi.js +3 -1
- package/src/apis/EventsApi.cjs +3 -1
- package/src/apis/EventsApi.js +3 -1
- package/src/apis/ExchangesApi.cjs +3 -1
- package/src/apis/ExchangesApi.js +3 -1
- package/src/apis/ExportsApi.cjs +3 -1
- package/src/apis/ExportsApi.js +3 -1
- package/src/apis/ExternalJwtApi.cjs +3 -1
- package/src/apis/ExternalJwtApi.js +3 -1
- package/src/apis/FlowAnalyticsApi.cjs +3 -1
- package/src/apis/FlowAnalyticsApi.js +3 -1
- package/src/apis/GatesApi.cjs +3 -1
- package/src/apis/GatesApi.js +3 -1
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -1
- package/src/apis/GlobalWalletAccessControlApi.js +3 -1
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -1
- package/src/apis/GlobalWalletConnectionsApi.js +3 -1
- package/src/apis/GlobalWalletsApi.cjs +3 -1
- package/src/apis/GlobalWalletsApi.js +3 -1
- package/src/apis/InvitesApi.cjs +3 -1
- package/src/apis/InvitesApi.js +3 -1
- package/src/apis/MembersApi.cjs +3 -1
- package/src/apis/MembersApi.js +3 -1
- package/src/apis/MfaSettingsApi.cjs +3 -1
- package/src/apis/MfaSettingsApi.js +3 -1
- package/src/apis/NameServicesApi.cjs +3 -1
- package/src/apis/NameServicesApi.js +3 -1
- package/src/apis/OrganizationSettingsApi.cjs +3 -1
- package/src/apis/OrganizationSettingsApi.js +3 -1
- package/src/apis/OrganizationsApi.cjs +3 -1
- package/src/apis/OrganizationsApi.js +3 -1
- package/src/apis/OriginsApi.cjs +3 -1
- package/src/apis/OriginsApi.js +3 -1
- package/src/apis/ProjectsApi.cjs +3 -1
- package/src/apis/ProjectsApi.js +3 -1
- package/src/apis/ProvidersApi.cjs +3 -1
- package/src/apis/ProvidersApi.js +3 -1
- package/src/apis/SDKApi.cjs +301 -0
- package/src/apis/SDKApi.d.ts +119 -1
- package/src/apis/SDKApi.js +301 -0
- package/src/apis/SDKViewsApi.cjs +3 -1
- package/src/apis/SDKViewsApi.js +3 -1
- package/src/apis/SessionsApi.cjs +3 -1
- package/src/apis/SessionsApi.js +3 -1
- package/src/apis/TestAccountApi.cjs +3 -1
- package/src/apis/TestAccountApi.js +3 -1
- package/src/apis/TokensApi.cjs +3 -1
- package/src/apis/TokensApi.js +3 -1
- package/src/apis/UserApiTokensApi.cjs +3 -1
- package/src/apis/UserApiTokensApi.js +3 -1
- package/src/apis/UsersApi.cjs +3 -1
- package/src/apis/UsersApi.js +3 -1
- package/src/apis/VisitsApi.cjs +3 -1
- package/src/apis/VisitsApi.js +3 -1
- package/src/apis/WaasApi.cjs +3 -1
- package/src/apis/WaasApi.js +3 -1
- package/src/apis/WalletConnectApi.cjs +3 -1
- package/src/apis/WalletConnectApi.js +3 -1
- package/src/apis/WalletsApi.cjs +3 -1
- package/src/apis/WalletsApi.js +3 -1
- package/src/apis/WebhooksApi.cjs +3 -1
- package/src/apis/WebhooksApi.js +3 -1
- package/src/index.cjs +60 -0
- package/src/index.js +13 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js +35 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +35 -0
- package/src/models/BusinessAccount.cjs +45 -0
- package/src/models/BusinessAccount.d.ts +63 -0
- package/src/models/BusinessAccount.js +39 -0
- package/src/models/BusinessAccountDetail.cjs +51 -0
- package/src/models/BusinessAccountDetail.d.ts +77 -0
- package/src/models/BusinessAccountDetail.js +45 -0
- package/src/models/BusinessAccountDetailAllOf.cjs +36 -0
- package/src/models/BusinessAccountDetailAllOf.d.ts +35 -0
- package/src/models/BusinessAccountDetailAllOf.js +30 -0
- package/src/models/BusinessAccountList.cjs +36 -0
- package/src/models/BusinessAccountList.d.ts +34 -0
- package/src/models/BusinessAccountList.js +30 -0
- package/src/models/BusinessAccountMember.cjs +44 -0
- package/src/models/BusinessAccountMember.d.ts +58 -0
- package/src/models/BusinessAccountMember.js +38 -0
- package/src/models/BusinessAccountMemberRole.cjs +41 -0
- package/src/models/BusinessAccountMemberRole.d.ts +24 -0
- package/src/models/BusinessAccountMemberRole.js +35 -0
- package/src/models/BusinessAccountSigner.cjs +54 -0
- package/src/models/BusinessAccountSigner.d.ts +88 -0
- package/src/models/BusinessAccountSigner.js +48 -0
- package/src/models/BusinessAccountSignerType.cjs +40 -0
- package/src/models/BusinessAccountSignerType.d.ts +23 -0
- package/src/models/BusinessAccountSignerType.js +34 -0
- package/src/models/CreateBusinessAccountSdkRequest.cjs +37 -0
- package/src/models/CreateBusinessAccountSdkRequest.d.ts +39 -0
- package/src/models/CreateBusinessAccountSdkRequest.js +31 -0
- package/src/models/FeeRecipientConfig.cjs +45 -0
- package/src/models/FeeRecipientConfig.d.ts +33 -0
- package/src/models/FeeRecipientConfig.js +39 -0
- package/src/models/FlowCreateRequest.cjs +3 -0
- package/src/models/FlowCreateRequest.d.ts +7 -0
- package/src/models/FlowCreateRequest.js +3 -0
- package/src/models/FlowFeeConfig.cjs +33 -0
- package/src/models/FlowFeeConfig.d.ts +28 -0
- package/src/models/FlowFeeConfig.js +27 -0
- package/src/models/index.d.ts +13 -0
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* Role of a business account member (admin reach)
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum BusinessAccountMemberRole {
|
|
18
|
+
Owner = "owner",
|
|
19
|
+
Admin = "admin",
|
|
20
|
+
Viewer = "viewer"
|
|
21
|
+
}
|
|
22
|
+
export declare function BusinessAccountMemberRoleFromJSON(json: any): BusinessAccountMemberRole;
|
|
23
|
+
export declare function BusinessAccountMemberRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMemberRole;
|
|
24
|
+
export declare function BusinessAccountMemberRoleToJSON(value?: BusinessAccountMemberRole | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Role of a business account member (admin reach)
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var BusinessAccountMemberRole;
|
|
20
|
+
(function (BusinessAccountMemberRole) {
|
|
21
|
+
BusinessAccountMemberRole["Owner"] = "owner";
|
|
22
|
+
BusinessAccountMemberRole["Admin"] = "admin";
|
|
23
|
+
BusinessAccountMemberRole["Viewer"] = "viewer";
|
|
24
|
+
})(BusinessAccountMemberRole || (BusinessAccountMemberRole = {}));
|
|
25
|
+
function BusinessAccountMemberRoleFromJSON(json) {
|
|
26
|
+
return BusinessAccountMemberRoleFromJSONTyped(json);
|
|
27
|
+
}
|
|
28
|
+
function BusinessAccountMemberRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
function BusinessAccountMemberRoleToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { BusinessAccountMemberRole, BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleFromJSONTyped, BusinessAccountMemberRoleToJSON };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountSignerType = require('./BusinessAccountSignerType.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function BusinessAccountSignerFromJSON(json) {
|
|
10
|
+
return BusinessAccountSignerFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function BusinessAccountSignerFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'businessAccountId': json['businessAccountId'],
|
|
19
|
+
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
20
|
+
'walletId': json['walletId'],
|
|
21
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
22
|
+
'derivedFromUserId': !runtime.exists(json, 'derivedFromUserId') ? undefined : json['derivedFromUserId'],
|
|
23
|
+
'type': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['type']),
|
|
24
|
+
'apiKeyIdentityRef': !runtime.exists(json, 'apiKeyIdentityRef') ? undefined : json['apiKeyIdentityRef'],
|
|
25
|
+
'expiresAt': !runtime.exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
|
|
26
|
+
'revokedAt': !runtime.exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
|
|
27
|
+
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function BusinessAccountSignerToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': value.id,
|
|
39
|
+
'businessAccountId': value.businessAccountId,
|
|
40
|
+
'userId': value.userId,
|
|
41
|
+
'walletId': value.walletId,
|
|
42
|
+
'shareSetId': value.shareSetId,
|
|
43
|
+
'derivedFromUserId': value.derivedFromUserId,
|
|
44
|
+
'type': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.type),
|
|
45
|
+
'apiKeyIdentityRef': value.apiKeyIdentityRef,
|
|
46
|
+
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
|
|
47
|
+
'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
|
|
48
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
exports.BusinessAccountSignerFromJSON = BusinessAccountSignerFromJSON;
|
|
53
|
+
exports.BusinessAccountSignerFromJSONTyped = BusinessAccountSignerFromJSONTyped;
|
|
54
|
+
exports.BusinessAccountSignerToJSON = BusinessAccountSignerToJSON;
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { BusinessAccountSignerType } from './BusinessAccountSignerType';
|
|
13
|
+
/**
|
|
14
|
+
* Signing-reach assignment (per signer-wallet pair)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountSigner
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountSigner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BusinessAccountSigner
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BusinessAccountSigner
|
|
29
|
+
*/
|
|
30
|
+
businessAccountId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Required when type=endUser; null for type=server
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BusinessAccountSigner
|
|
35
|
+
*/
|
|
36
|
+
userId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BusinessAccountSigner
|
|
41
|
+
*/
|
|
42
|
+
walletId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Set after reshare ceremony completes
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BusinessAccountSigner
|
|
47
|
+
*/
|
|
48
|
+
shareSetId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BusinessAccountSigner
|
|
53
|
+
*/
|
|
54
|
+
derivedFromUserId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {BusinessAccountSignerType}
|
|
58
|
+
* @memberof BusinessAccountSigner
|
|
59
|
+
*/
|
|
60
|
+
type: BusinessAccountSignerType;
|
|
61
|
+
/**
|
|
62
|
+
* Required when type=server
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof BusinessAccountSigner
|
|
65
|
+
*/
|
|
66
|
+
apiKeyIdentityRef?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof BusinessAccountSigner
|
|
71
|
+
*/
|
|
72
|
+
expiresAt?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof BusinessAccountSigner
|
|
77
|
+
*/
|
|
78
|
+
revokedAt?: Date | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof BusinessAccountSigner
|
|
83
|
+
*/
|
|
84
|
+
createdAt?: Date;
|
|
85
|
+
}
|
|
86
|
+
export declare function BusinessAccountSignerFromJSON(json: any): BusinessAccountSigner;
|
|
87
|
+
export declare function BusinessAccountSignerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountSigner;
|
|
88
|
+
export declare function BusinessAccountSignerToJSON(value?: BusinessAccountSigner | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeToJSON } from './BusinessAccountSignerType.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function BusinessAccountSignerFromJSON(json) {
|
|
6
|
+
return BusinessAccountSignerFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function BusinessAccountSignerFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'businessAccountId': json['businessAccountId'],
|
|
15
|
+
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
16
|
+
'walletId': json['walletId'],
|
|
17
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
18
|
+
'derivedFromUserId': !exists(json, 'derivedFromUserId') ? undefined : json['derivedFromUserId'],
|
|
19
|
+
'type': BusinessAccountSignerTypeFromJSON(json['type']),
|
|
20
|
+
'apiKeyIdentityRef': !exists(json, 'apiKeyIdentityRef') ? undefined : json['apiKeyIdentityRef'],
|
|
21
|
+
'expiresAt': !exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
|
|
22
|
+
'revokedAt': !exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
|
|
23
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function BusinessAccountSignerToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': value.id,
|
|
35
|
+
'businessAccountId': value.businessAccountId,
|
|
36
|
+
'userId': value.userId,
|
|
37
|
+
'walletId': value.walletId,
|
|
38
|
+
'shareSetId': value.shareSetId,
|
|
39
|
+
'derivedFromUserId': value.derivedFromUserId,
|
|
40
|
+
'type': BusinessAccountSignerTypeToJSON(value.type),
|
|
41
|
+
'apiKeyIdentityRef': value.apiKeyIdentityRef,
|
|
42
|
+
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
|
|
43
|
+
'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
|
|
44
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { BusinessAccountSignerFromJSON, BusinessAccountSignerFromJSONTyped, BusinessAccountSignerToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Type of a business account signer
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.BusinessAccountSignerType = void 0;
|
|
24
|
+
(function (BusinessAccountSignerType) {
|
|
25
|
+
BusinessAccountSignerType["EndUser"] = "endUser";
|
|
26
|
+
BusinessAccountSignerType["Server"] = "server";
|
|
27
|
+
})(exports.BusinessAccountSignerType || (exports.BusinessAccountSignerType = {}));
|
|
28
|
+
function BusinessAccountSignerTypeFromJSON(json) {
|
|
29
|
+
return BusinessAccountSignerTypeFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function BusinessAccountSignerTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function BusinessAccountSignerTypeToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.BusinessAccountSignerTypeFromJSON = BusinessAccountSignerTypeFromJSON;
|
|
39
|
+
exports.BusinessAccountSignerTypeFromJSONTyped = BusinessAccountSignerTypeFromJSONTyped;
|
|
40
|
+
exports.BusinessAccountSignerTypeToJSON = BusinessAccountSignerTypeToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Type of a business account signer
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum BusinessAccountSignerType {
|
|
18
|
+
EndUser = "endUser",
|
|
19
|
+
Server = "server"
|
|
20
|
+
}
|
|
21
|
+
export declare function BusinessAccountSignerTypeFromJSON(json: any): BusinessAccountSignerType;
|
|
22
|
+
export declare function BusinessAccountSignerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountSignerType;
|
|
23
|
+
export declare function BusinessAccountSignerTypeToJSON(value?: BusinessAccountSignerType | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Type of a business account signer
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var BusinessAccountSignerType;
|
|
20
|
+
(function (BusinessAccountSignerType) {
|
|
21
|
+
BusinessAccountSignerType["EndUser"] = "endUser";
|
|
22
|
+
BusinessAccountSignerType["Server"] = "server";
|
|
23
|
+
})(BusinessAccountSignerType || (BusinessAccountSignerType = {}));
|
|
24
|
+
function BusinessAccountSignerTypeFromJSON(json) {
|
|
25
|
+
return BusinessAccountSignerTypeFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function BusinessAccountSignerTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function BusinessAccountSignerTypeToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { BusinessAccountSignerType, BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeFromJSONTyped, BusinessAccountSignerTypeToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CreateBusinessAccountSdkRequestFromJSON(json) {
|
|
9
|
+
return CreateBusinessAccountSdkRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CreateBusinessAccountSdkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
17
|
+
'externalRef': !runtime.exists(json, 'externalRef') ? undefined : json['externalRef'],
|
|
18
|
+
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function CreateBusinessAccountSdkRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'name': value.name,
|
|
30
|
+
'externalRef': value.externalRef,
|
|
31
|
+
'metadata': value.metadata,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CreateBusinessAccountSdkRequestFromJSON = CreateBusinessAccountSdkRequestFromJSON;
|
|
36
|
+
exports.CreateBusinessAccountSdkRequestFromJSONTyped = CreateBusinessAccountSdkRequestFromJSONTyped;
|
|
37
|
+
exports.CreateBusinessAccountSdkRequestToJSON = CreateBusinessAccountSdkRequestToJSON;
|
|
@@ -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
|
+
* SDK-side create-workspace request. Caller becomes the first owner.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateBusinessAccountSdkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateBusinessAccountSdkRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateBusinessAccountSdkRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Developer-supplied stable ID inside the env
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateBusinessAccountSdkRequest
|
|
28
|
+
*/
|
|
29
|
+
externalRef?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof CreateBusinessAccountSdkRequest
|
|
34
|
+
*/
|
|
35
|
+
metadata?: object;
|
|
36
|
+
}
|
|
37
|
+
export declare function CreateBusinessAccountSdkRequestFromJSON(json: any): CreateBusinessAccountSdkRequest;
|
|
38
|
+
export declare function CreateBusinessAccountSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBusinessAccountSdkRequest;
|
|
39
|
+
export declare function CreateBusinessAccountSdkRequestToJSON(value?: CreateBusinessAccountSdkRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CreateBusinessAccountSdkRequestFromJSON(json) {
|
|
5
|
+
return CreateBusinessAccountSdkRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CreateBusinessAccountSdkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
13
|
+
'externalRef': !exists(json, 'externalRef') ? undefined : json['externalRef'],
|
|
14
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function CreateBusinessAccountSdkRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'name': value.name,
|
|
26
|
+
'externalRef': value.externalRef,
|
|
27
|
+
'metadata': value.metadata,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CreateBusinessAccountSdkRequestFromJSON, CreateBusinessAccountSdkRequestFromJSONTyped, CreateBusinessAccountSdkRequestToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function FeeRecipientConfigFromJSON(json) {
|
|
19
|
+
return FeeRecipientConfigFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function FeeRecipientConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'percentage': json['percentage'],
|
|
27
|
+
'walletAddress': json['walletAddress'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function FeeRecipientConfigToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'percentage': value.percentage,
|
|
39
|
+
'walletAddress': value.walletAddress,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.FeeRecipientConfigFromJSON = FeeRecipientConfigFromJSON;
|
|
44
|
+
exports.FeeRecipientConfigFromJSONTyped = FeeRecipientConfigFromJSONTyped;
|
|
45
|
+
exports.FeeRecipientConfigToJSON = FeeRecipientConfigToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* A single fee recipient with a percentage and wallet address.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FeeRecipientConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface FeeRecipientConfig {
|
|
18
|
+
/**
|
|
19
|
+
* Fraction of the source amount to collect as a fee (0–1)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof FeeRecipientConfig
|
|
22
|
+
*/
|
|
23
|
+
percentage: number;
|
|
24
|
+
/**
|
|
25
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FeeRecipientConfig
|
|
28
|
+
*/
|
|
29
|
+
walletAddress: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function FeeRecipientConfigFromJSON(json: any): FeeRecipientConfig;
|
|
32
|
+
export declare function FeeRecipientConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeeRecipientConfig;
|
|
33
|
+
export declare function FeeRecipientConfigToJSON(value?: FeeRecipientConfig | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function FeeRecipientConfigFromJSON(json) {
|
|
15
|
+
return FeeRecipientConfigFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function FeeRecipientConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'percentage': json['percentage'],
|
|
23
|
+
'walletAddress': json['walletAddress'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function FeeRecipientConfigToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'percentage': value.percentage,
|
|
35
|
+
'walletAddress': value.walletAddress,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { FeeRecipientConfigFromJSON, FeeRecipientConfigFromJSONTyped, FeeRecipientConfigToJSON };
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var DestinationConfigInput = require('./DestinationConfigInput.cjs');
|
|
7
|
+
var FlowFeeConfig = require('./FlowFeeConfig.cjs');
|
|
7
8
|
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
@@ -20,6 +21,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
21
22
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
22
23
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
24
|
+
'feeConfig': !runtime.exists(json, 'feeConfig') ? undefined : FlowFeeConfig.FlowFeeConfigFromJSON(json['feeConfig']),
|
|
23
25
|
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -36,6 +38,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
36
38
|
'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
|
|
37
39
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
38
40
|
'memo': value.memo,
|
|
41
|
+
'feeConfig': FlowFeeConfig.FlowFeeConfigToJSON(value.feeConfig),
|
|
39
42
|
'expiresIn': value.expiresIn,
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
13
|
+
import { FlowFeeConfig } from './FlowFeeConfig';
|
|
13
14
|
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
14
15
|
/**
|
|
15
16
|
* Create-time payload for a flow. amount, currency, settlementConfig and destinationConfig are written once here (by a trusted API-key caller) and are accepted by no later endpoint. mode is supplied in the URL path.
|
|
@@ -47,6 +48,12 @@ export interface FlowCreateRequest {
|
|
|
47
48
|
* @memberof FlowCreateRequest
|
|
48
49
|
*/
|
|
49
50
|
memo?: object;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {FlowFeeConfig}
|
|
54
|
+
* @memberof FlowCreateRequest
|
|
55
|
+
*/
|
|
56
|
+
feeConfig?: FlowFeeConfig;
|
|
50
57
|
/**
|
|
51
58
|
* Seconds until the flow expires (default 3600, clamped server-side)
|
|
52
59
|
* @type {number}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
3
|
+
import { FlowFeeConfigFromJSON, FlowFeeConfigToJSON } from './FlowFeeConfig.js';
|
|
3
4
|
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
@@ -16,6 +17,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
17
|
'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
17
18
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
18
19
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
20
|
+
'feeConfig': !exists(json, 'feeConfig') ? undefined : FlowFeeConfigFromJSON(json['feeConfig']),
|
|
19
21
|
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
20
22
|
};
|
|
21
23
|
}
|
|
@@ -32,6 +34,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
32
34
|
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
33
35
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
34
36
|
'memo': value.memo,
|
|
37
|
+
'feeConfig': FlowFeeConfigToJSON(value.feeConfig),
|
|
35
38
|
'expiresIn': value.expiresIn,
|
|
36
39
|
};
|
|
37
40
|
}
|