@dynamic-labs/sdk-api 0.32.0 → 0.34.0

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.
Files changed (189) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +6 -0
  3. package/src/apis/AdminActionsApi.js +6 -0
  4. package/src/apis/AllowlistsApi.cjs +6 -0
  5. package/src/apis/AllowlistsApi.js +6 -0
  6. package/src/apis/AnalyticsApi.cjs +6 -0
  7. package/src/apis/AnalyticsApi.js +6 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +6 -0
  9. package/src/apis/AuthorizedClientsApi.js +6 -0
  10. package/src/apis/BusinessAccountsApi.cjs +6 -0
  11. package/src/apis/BusinessAccountsApi.js +6 -0
  12. package/src/apis/CaptchaApi.cjs +6 -0
  13. package/src/apis/CaptchaApi.js +6 -0
  14. package/src/apis/ChainalysisApi.cjs +6 -0
  15. package/src/apis/ChainalysisApi.js +6 -0
  16. package/src/apis/ChainsApi.cjs +6 -0
  17. package/src/apis/ChainsApi.js +6 -0
  18. package/src/apis/CheckoutApi.cjs +6 -0
  19. package/src/apis/CheckoutApi.js +6 -0
  20. package/src/apis/ClientGrantApi.cjs +6 -0
  21. package/src/apis/ClientGrantApi.js +6 -0
  22. package/src/apis/CustomFieldsApi.cjs +6 -0
  23. package/src/apis/CustomFieldsApi.js +6 -0
  24. package/src/apis/CustomHostnamesApi.cjs +6 -0
  25. package/src/apis/CustomHostnamesApi.js +6 -0
  26. package/src/apis/CustomNetworksApi.cjs +6 -0
  27. package/src/apis/CustomNetworksApi.js +6 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +6 -0
  29. package/src/apis/DeeplinkUrlsApi.js +6 -0
  30. package/src/apis/EnvironmentsApi.cjs +6 -0
  31. package/src/apis/EnvironmentsApi.js +6 -0
  32. package/src/apis/EventsApi.cjs +6 -0
  33. package/src/apis/EventsApi.js +6 -0
  34. package/src/apis/ExchangesApi.cjs +6 -0
  35. package/src/apis/ExchangesApi.js +6 -0
  36. package/src/apis/ExportsApi.cjs +6 -0
  37. package/src/apis/ExportsApi.js +6 -0
  38. package/src/apis/ExternalJwtApi.cjs +6 -0
  39. package/src/apis/ExternalJwtApi.js +6 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +6 -0
  41. package/src/apis/FlowAnalyticsApi.js +6 -0
  42. package/src/apis/GaslessApi.cjs +6 -0
  43. package/src/apis/GaslessApi.js +6 -0
  44. package/src/apis/GatesApi.cjs +6 -0
  45. package/src/apis/GatesApi.js +6 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +6 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +6 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +6 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +6 -0
  50. package/src/apis/GlobalWalletsApi.cjs +6 -0
  51. package/src/apis/GlobalWalletsApi.js +6 -0
  52. package/src/apis/InvitesApi.cjs +6 -0
  53. package/src/apis/InvitesApi.js +6 -0
  54. package/src/apis/KybApi.cjs +6 -0
  55. package/src/apis/KybApi.js +6 -0
  56. package/src/apis/MembersApi.cjs +6 -0
  57. package/src/apis/MembersApi.js +6 -0
  58. package/src/apis/MfaSettingsApi.cjs +6 -0
  59. package/src/apis/MfaSettingsApi.js +6 -0
  60. package/src/apis/NameServicesApi.cjs +6 -0
  61. package/src/apis/NameServicesApi.js +6 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +6 -0
  63. package/src/apis/OrganizationSettingsApi.js +6 -0
  64. package/src/apis/OrganizationsApi.cjs +6 -0
  65. package/src/apis/OrganizationsApi.js +6 -0
  66. package/src/apis/OriginsApi.cjs +6 -0
  67. package/src/apis/OriginsApi.js +6 -0
  68. package/src/apis/ProjectsApi.cjs +6 -0
  69. package/src/apis/ProjectsApi.js +6 -0
  70. package/src/apis/ProvidersApi.cjs +6 -0
  71. package/src/apis/ProvidersApi.js +6 -0
  72. package/src/apis/SDKApi.cjs +739 -4
  73. package/src/apis/SDKApi.d.ts +298 -5
  74. package/src/apis/SDKApi.js +739 -4
  75. package/src/apis/SDKViewsApi.cjs +6 -0
  76. package/src/apis/SDKViewsApi.js +6 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +6 -0
  78. package/src/apis/ScreeningPoliciesApi.js +6 -0
  79. package/src/apis/ServerApi.cjs +6 -0
  80. package/src/apis/ServerApi.js +6 -0
  81. package/src/apis/SessionsApi.cjs +6 -0
  82. package/src/apis/SessionsApi.js +6 -0
  83. package/src/apis/TestAccountApi.cjs +6 -0
  84. package/src/apis/TestAccountApi.js +6 -0
  85. package/src/apis/TokensApi.cjs +6 -0
  86. package/src/apis/TokensApi.js +6 -0
  87. package/src/apis/UserApiTokensApi.cjs +6 -0
  88. package/src/apis/UserApiTokensApi.js +6 -0
  89. package/src/apis/UsersApi.cjs +6 -0
  90. package/src/apis/UsersApi.js +6 -0
  91. package/src/apis/VisitsApi.cjs +6 -0
  92. package/src/apis/VisitsApi.js +6 -0
  93. package/src/apis/WaasApi.cjs +6 -0
  94. package/src/apis/WaasApi.js +6 -0
  95. package/src/apis/WalletConnectApi.cjs +6 -0
  96. package/src/apis/WalletConnectApi.js +6 -0
  97. package/src/apis/WalletsApi.cjs +6 -0
  98. package/src/apis/WalletsApi.js +6 -0
  99. package/src/apis/WebhooksApi.cjs +6 -0
  100. package/src/apis/WebhooksApi.js +6 -0
  101. package/src/apis/YieldApi.cjs +6 -0
  102. package/src/apis/YieldApi.js +6 -0
  103. package/src/apis/ZendeskApi.cjs +6 -0
  104. package/src/apis/ZendeskApi.js +6 -0
  105. package/src/index.cjs +116 -0
  106. package/src/index.d.ts +3 -1
  107. package/src/index.js +23 -0
  108. package/src/models/AddBusinessAccountMemberSdkRequest.cjs +6 -0
  109. package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +21 -0
  110. package/src/models/AddBusinessAccountMemberSdkRequest.js +6 -0
  111. package/src/models/ApproveBusinessAccountProposalSdkRequest.cjs +45 -0
  112. package/src/models/ApproveBusinessAccountProposalSdkRequest.d.ts +33 -0
  113. package/src/models/ApproveBusinessAccountProposalSdkRequest.js +39 -0
  114. package/src/models/BusinessAccountApprovalRequirement.cjs +60 -0
  115. package/src/models/BusinessAccountApprovalRequirement.d.ts +89 -0
  116. package/src/models/BusinessAccountApprovalRequirement.js +54 -0
  117. package/src/models/BusinessAccountApprovalRequirementStatus.cjs +43 -0
  118. package/src/models/BusinessAccountApprovalRequirementStatus.d.ts +58 -0
  119. package/src/models/BusinessAccountApprovalRequirementStatus.js +37 -0
  120. package/src/models/BusinessAccountApprovalsPending.cjs +51 -0
  121. package/src/models/BusinessAccountApprovalsPending.d.ts +64 -0
  122. package/src/models/BusinessAccountApprovalsPending.js +45 -0
  123. package/src/models/BusinessAccountForbidden.cjs +36 -0
  124. package/src/models/BusinessAccountForbidden.d.ts +34 -0
  125. package/src/models/BusinessAccountForbidden.js +30 -0
  126. package/src/models/BusinessAccountForbiddenAllOf.cjs +34 -0
  127. package/src/models/BusinessAccountForbiddenAllOf.d.ts +28 -0
  128. package/src/models/BusinessAccountForbiddenAllOf.js +28 -0
  129. package/src/models/BusinessAccountGovernanceResponse.cjs +43 -0
  130. package/src/models/BusinessAccountGovernanceResponse.d.ts +30 -0
  131. package/src/models/BusinessAccountGovernanceResponse.js +37 -0
  132. package/src/models/BusinessAccountGovernedAction.cjs +50 -0
  133. package/src/models/BusinessAccountGovernedAction.d.ts +33 -0
  134. package/src/models/BusinessAccountGovernedAction.js +44 -0
  135. package/src/models/BusinessAccountMutationVersion.cjs +43 -0
  136. package/src/models/BusinessAccountMutationVersion.d.ts +27 -0
  137. package/src/models/BusinessAccountMutationVersion.js +37 -0
  138. package/src/models/BusinessAccountProposal.cjs +62 -0
  139. package/src/models/BusinessAccountProposal.d.ts +108 -0
  140. package/src/models/BusinessAccountProposal.js +56 -0
  141. package/src/models/BusinessAccountProposalApprovalRecord.cjs +37 -0
  142. package/src/models/BusinessAccountProposalApprovalRecord.d.ts +39 -0
  143. package/src/models/BusinessAccountProposalApprovalRecord.js +31 -0
  144. package/src/models/BusinessAccountProposalStatus.cjs +42 -0
  145. package/src/models/BusinessAccountProposalStatus.d.ts +25 -0
  146. package/src/models/BusinessAccountProposalStatus.js +36 -0
  147. package/src/models/BusinessAccountProposalSubject.cjs +35 -0
  148. package/src/models/BusinessAccountProposalSubject.d.ts +33 -0
  149. package/src/models/BusinessAccountProposalSubject.js +29 -0
  150. package/src/models/BusinessAccountRequirementCondition.cjs +43 -0
  151. package/src/models/BusinessAccountRequirementCondition.d.ts +57 -0
  152. package/src/models/BusinessAccountRequirementCondition.js +37 -0
  153. package/src/models/BusinessAccountRoleDefinition.cjs +52 -0
  154. package/src/models/BusinessAccountRoleDefinition.d.ts +35 -0
  155. package/src/models/BusinessAccountRoleDefinition.js +46 -0
  156. package/src/models/BusinessAccountRolesResponse.cjs +34 -0
  157. package/src/models/BusinessAccountRolesResponse.d.ts +30 -0
  158. package/src/models/BusinessAccountRolesResponse.js +28 -0
  159. package/src/models/BusinessAccountSigningRefused.cjs +37 -0
  160. package/src/models/BusinessAccountSigningRefused.d.ts +39 -0
  161. package/src/models/BusinessAccountSigningRefused.js +31 -0
  162. package/src/models/DefineBusinessAccountRoleSdkRequest.cjs +50 -0
  163. package/src/models/DefineBusinessAccountRoleSdkRequest.d.ts +62 -0
  164. package/src/models/DefineBusinessAccountRoleSdkRequest.js +44 -0
  165. package/src/models/DeleteBusinessAccountRoleSdkRequest.cjs +37 -0
  166. package/src/models/DeleteBusinessAccountRoleSdkRequest.d.ts +42 -0
  167. package/src/models/DeleteBusinessAccountRoleSdkRequest.js +31 -0
  168. package/src/models/RemoveBusinessAccountMemberSdkRequest.cjs +37 -0
  169. package/src/models/RemoveBusinessAccountMemberSdkRequest.d.ts +42 -0
  170. package/src/models/RemoveBusinessAccountMemberSdkRequest.js +31 -0
  171. package/src/models/RemoveBusinessAccountSignerSdkRequest.cjs +37 -0
  172. package/src/models/RemoveBusinessAccountSignerSdkRequest.d.ts +42 -0
  173. package/src/models/RemoveBusinessAccountSignerSdkRequest.js +31 -0
  174. package/src/models/RemoveBusinessAccountWalletSdkRequest.cjs +37 -0
  175. package/src/models/RemoveBusinessAccountWalletSdkRequest.d.ts +42 -0
  176. package/src/models/RemoveBusinessAccountWalletSdkRequest.js +31 -0
  177. package/src/models/SetBusinessAccountGovernanceSdkRequest.cjs +39 -0
  178. package/src/models/SetBusinessAccountGovernanceSdkRequest.d.ts +51 -0
  179. package/src/models/SetBusinessAccountGovernanceSdkRequest.js +33 -0
  180. package/src/models/TokenScope.cjs +8 -0
  181. package/src/models/TokenScope.d.ts +8 -0
  182. package/src/models/TokenScope.js +8 -0
  183. package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs +8 -12
  184. package/src/models/TransferBusinessAccountOwnershipSdkRequest.d.ts +21 -0
  185. package/src/models/TransferBusinessAccountOwnershipSdkRequest.js +8 -12
  186. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs +7 -0
  187. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +21 -0
  188. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js +7 -0
  189. package/src/models/index.d.ts +23 -0
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function BusinessAccountProposalApprovalRecordFromJSON(json) {
5
+ return BusinessAccountProposalApprovalRecordFromJSONTyped(json);
6
+ }
7
+ function BusinessAccountProposalApprovalRecordFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'approverUserId': json['approverUserId'],
13
+ 'approvedAt': (new Date(json['approvedAt'])),
14
+ 'revokedAt': !exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
15
+ };
16
+ }
17
+ function BusinessAccountProposalApprovalRecordToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'approverUserId': value.approverUserId,
26
+ 'approvedAt': (value.approvedAt.toISOString()),
27
+ 'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
28
+ };
29
+ }
30
+
31
+ export { BusinessAccountProposalApprovalRecordFromJSON, BusinessAccountProposalApprovalRecordFromJSONTyped, BusinessAccountProposalApprovalRecordToJSON };
@@ -0,0 +1,42 @@
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
+ * Lifecycle of a governed mutation awaiting approvals. Only `pending` accepts approvals; the other three are terminal.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.BusinessAccountProposalStatus = void 0;
24
+ (function (BusinessAccountProposalStatus) {
25
+ BusinessAccountProposalStatus["Pending"] = "pending";
26
+ BusinessAccountProposalStatus["Executed"] = "executed";
27
+ BusinessAccountProposalStatus["Vetoed"] = "vetoed";
28
+ BusinessAccountProposalStatus["Expired"] = "expired";
29
+ })(exports.BusinessAccountProposalStatus || (exports.BusinessAccountProposalStatus = {}));
30
+ function BusinessAccountProposalStatusFromJSON(json) {
31
+ return BusinessAccountProposalStatusFromJSONTyped(json);
32
+ }
33
+ function BusinessAccountProposalStatusFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ function BusinessAccountProposalStatusToJSON(value) {
37
+ return value;
38
+ }
39
+
40
+ exports.BusinessAccountProposalStatusFromJSON = BusinessAccountProposalStatusFromJSON;
41
+ exports.BusinessAccountProposalStatusFromJSONTyped = BusinessAccountProposalStatusFromJSONTyped;
42
+ exports.BusinessAccountProposalStatusToJSON = BusinessAccountProposalStatusToJSON;
@@ -0,0 +1,25 @@
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
+ * Lifecycle of a governed mutation awaiting approvals. Only `pending` accepts approvals; the other three are terminal.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum BusinessAccountProposalStatus {
18
+ Pending = "pending",
19
+ Executed = "executed",
20
+ Vetoed = "vetoed",
21
+ Expired = "expired"
22
+ }
23
+ export declare function BusinessAccountProposalStatusFromJSON(json: any): BusinessAccountProposalStatus;
24
+ export declare function BusinessAccountProposalStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountProposalStatus;
25
+ export declare function BusinessAccountProposalStatusToJSON(value?: BusinessAccountProposalStatus | null): any;
@@ -0,0 +1,36 @@
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
+ * Lifecycle of a governed mutation awaiting approvals. Only `pending` accepts approvals; the other three are terminal.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var BusinessAccountProposalStatus;
20
+ (function (BusinessAccountProposalStatus) {
21
+ BusinessAccountProposalStatus["Pending"] = "pending";
22
+ BusinessAccountProposalStatus["Executed"] = "executed";
23
+ BusinessAccountProposalStatus["Vetoed"] = "vetoed";
24
+ BusinessAccountProposalStatus["Expired"] = "expired";
25
+ })(BusinessAccountProposalStatus || (BusinessAccountProposalStatus = {}));
26
+ function BusinessAccountProposalStatusFromJSON(json) {
27
+ return BusinessAccountProposalStatusFromJSONTyped(json);
28
+ }
29
+ function BusinessAccountProposalStatusFromJSONTyped(json, ignoreDiscriminator) {
30
+ return json;
31
+ }
32
+ function BusinessAccountProposalStatusToJSON(value) {
33
+ return value;
34
+ }
35
+
36
+ export { BusinessAccountProposalStatus, BusinessAccountProposalStatusFromJSON, BusinessAccountProposalStatusFromJSONTyped, BusinessAccountProposalStatusToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function BusinessAccountProposalSubjectFromJSON(json) {
9
+ return BusinessAccountProposalSubjectFromJSONTyped(json);
10
+ }
11
+ function BusinessAccountProposalSubjectFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'userId': json['userId'],
17
+ 'email': !runtime.exists(json, 'email') ? undefined : json['email'],
18
+ };
19
+ }
20
+ function BusinessAccountProposalSubjectToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'userId': value.userId,
29
+ 'email': value.email,
30
+ };
31
+ }
32
+
33
+ exports.BusinessAccountProposalSubjectFromJSON = BusinessAccountProposalSubjectFromJSON;
34
+ exports.BusinessAccountProposalSubjectFromJSONTyped = BusinessAccountProposalSubjectFromJSONTyped;
35
+ exports.BusinessAccountProposalSubjectToJSON = BusinessAccountProposalSubjectToJSON;
@@ -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 user the proposed change is about, resolved for display. An approver is consenting to a change that names people by id, so without this they cannot see who they are approving. Derived at read time, never signed — the authority for what will be applied is `intent`.
14
+ * @export
15
+ * @interface BusinessAccountProposalSubject
16
+ */
17
+ export interface BusinessAccountProposalSubject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BusinessAccountProposalSubject
22
+ */
23
+ userId: string;
24
+ /**
25
+ * Their oldest verified email, null when they have none or are not yet a member of this environment.
26
+ * @type {string}
27
+ * @memberof BusinessAccountProposalSubject
28
+ */
29
+ email?: string | null;
30
+ }
31
+ export declare function BusinessAccountProposalSubjectFromJSON(json: any): BusinessAccountProposalSubject;
32
+ export declare function BusinessAccountProposalSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountProposalSubject;
33
+ export declare function BusinessAccountProposalSubjectToJSON(value?: BusinessAccountProposalSubject | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function BusinessAccountProposalSubjectFromJSON(json) {
5
+ return BusinessAccountProposalSubjectFromJSONTyped(json);
6
+ }
7
+ function BusinessAccountProposalSubjectFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'userId': json['userId'],
13
+ 'email': !exists(json, 'email') ? undefined : json['email'],
14
+ };
15
+ }
16
+ function BusinessAccountProposalSubjectToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'userId': value.userId,
25
+ 'email': value.email,
26
+ };
27
+ }
28
+
29
+ export { BusinessAccountProposalSubjectFromJSON, BusinessAccountProposalSubjectFromJSONTyped, BusinessAccountProposalSubjectToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function BusinessAccountRequirementConditionFromJSON(json) {
9
+ return BusinessAccountRequirementConditionFromJSONTyped(json);
10
+ }
11
+ function BusinessAccountRequirementConditionFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'role': !runtime.exists(json, 'role') ? undefined : json['role'],
17
+ 'newRole': !runtime.exists(json, 'newRole') ? undefined : json['newRole'],
18
+ 'walletIds': !runtime.exists(json, 'walletIds') ? undefined : json['walletIds'],
19
+ 'targetUserIds': !runtime.exists(json, 'targetUserIds') ? undefined : json['targetUserIds'],
20
+ 'initiatorRoles': !runtime.exists(json, 'initiatorRoles') ? undefined : json['initiatorRoles'],
21
+ 'initiatorUserIds': !runtime.exists(json, 'initiatorUserIds') ? undefined : json['initiatorUserIds'],
22
+ };
23
+ }
24
+ function BusinessAccountRequirementConditionToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'role': value.role,
33
+ 'newRole': value.newRole,
34
+ 'walletIds': value.walletIds,
35
+ 'targetUserIds': value.targetUserIds,
36
+ 'initiatorRoles': value.initiatorRoles,
37
+ 'initiatorUserIds': value.initiatorUserIds,
38
+ };
39
+ }
40
+
41
+ exports.BusinessAccountRequirementConditionFromJSON = BusinessAccountRequirementConditionFromJSON;
42
+ exports.BusinessAccountRequirementConditionFromJSONTyped = BusinessAccountRequirementConditionFromJSONTyped;
43
+ exports.BusinessAccountRequirementConditionToJSON = BusinessAccountRequirementConditionToJSON;
@@ -0,0 +1,57 @@
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
+ * Narrows when a requirement applies. Every field must match, and a field the change does not carry never matches.
14
+ * @export
15
+ * @interface BusinessAccountRequirementCondition
16
+ */
17
+ export interface BusinessAccountRequirementCondition {
18
+ /**
19
+ * Matches the role being granted, through inheritance.
20
+ * @type {string}
21
+ * @memberof BusinessAccountRequirementCondition
22
+ */
23
+ role?: string;
24
+ /**
25
+ * Matches the role being moved to, through inheritance.
26
+ * @type {string}
27
+ * @memberof BusinessAccountRequirementCondition
28
+ */
29
+ newRole?: string;
30
+ /**
31
+ * Matches the wallet the change targets.
32
+ * @type {Array<string>}
33
+ * @memberof BusinessAccountRequirementCondition
34
+ */
35
+ walletIds?: Array<string>;
36
+ /**
37
+ * Matches the user the change targets.
38
+ * @type {Array<string>}
39
+ * @memberof BusinessAccountRequirementCondition
40
+ */
41
+ targetUserIds?: Array<string>;
42
+ /**
43
+ * Matches the role the caller holds.
44
+ * @type {Array<string>}
45
+ * @memberof BusinessAccountRequirementCondition
46
+ */
47
+ initiatorRoles?: Array<string>;
48
+ /**
49
+ * Matches the caller.
50
+ * @type {Array<string>}
51
+ * @memberof BusinessAccountRequirementCondition
52
+ */
53
+ initiatorUserIds?: Array<string>;
54
+ }
55
+ export declare function BusinessAccountRequirementConditionFromJSON(json: any): BusinessAccountRequirementCondition;
56
+ export declare function BusinessAccountRequirementConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountRequirementCondition;
57
+ export declare function BusinessAccountRequirementConditionToJSON(value?: BusinessAccountRequirementCondition | null): any;
@@ -0,0 +1,37 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function BusinessAccountRequirementConditionFromJSON(json) {
5
+ return BusinessAccountRequirementConditionFromJSONTyped(json);
6
+ }
7
+ function BusinessAccountRequirementConditionFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'role': !exists(json, 'role') ? undefined : json['role'],
13
+ 'newRole': !exists(json, 'newRole') ? undefined : json['newRole'],
14
+ 'walletIds': !exists(json, 'walletIds') ? undefined : json['walletIds'],
15
+ 'targetUserIds': !exists(json, 'targetUserIds') ? undefined : json['targetUserIds'],
16
+ 'initiatorRoles': !exists(json, 'initiatorRoles') ? undefined : json['initiatorRoles'],
17
+ 'initiatorUserIds': !exists(json, 'initiatorUserIds') ? undefined : json['initiatorUserIds'],
18
+ };
19
+ }
20
+ function BusinessAccountRequirementConditionToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'role': value.role,
29
+ 'newRole': value.newRole,
30
+ 'walletIds': value.walletIds,
31
+ 'targetUserIds': value.targetUserIds,
32
+ 'initiatorRoles': value.initiatorRoles,
33
+ 'initiatorUserIds': value.initiatorUserIds,
34
+ };
35
+ }
36
+
37
+ export { BusinessAccountRequirementConditionFromJSON, BusinessAccountRequirementConditionFromJSONTyped, BusinessAccountRequirementConditionToJSON };
@@ -0,0 +1,52 @@
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
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.BusinessAccountRoleDefinitionInheritsEnum = void 0;
23
+ (function (BusinessAccountRoleDefinitionInheritsEnum) {
24
+ BusinessAccountRoleDefinitionInheritsEnum["Admin"] = "admin";
25
+ BusinessAccountRoleDefinitionInheritsEnum["Viewer"] = "viewer";
26
+ })(exports.BusinessAccountRoleDefinitionInheritsEnum || (exports.BusinessAccountRoleDefinitionInheritsEnum = {}));
27
+ function BusinessAccountRoleDefinitionFromJSON(json) {
28
+ return BusinessAccountRoleDefinitionFromJSONTyped(json);
29
+ }
30
+ function BusinessAccountRoleDefinitionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'inherits': json['inherits'],
36
+ };
37
+ }
38
+ function BusinessAccountRoleDefinitionToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'inherits': value.inherits,
47
+ };
48
+ }
49
+
50
+ exports.BusinessAccountRoleDefinitionFromJSON = BusinessAccountRoleDefinitionFromJSON;
51
+ exports.BusinessAccountRoleDefinitionFromJSONTyped = BusinessAccountRoleDefinitionFromJSONTyped;
52
+ exports.BusinessAccountRoleDefinitionToJSON = BusinessAccountRoleDefinitionToJSON;
@@ -0,0 +1,35 @@
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 customer-defined role and the built-in it resolves through.
14
+ * @export
15
+ * @interface BusinessAccountRoleDefinition
16
+ */
17
+ export interface BusinessAccountRoleDefinition {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BusinessAccountRoleDefinition
22
+ */
23
+ inherits: BusinessAccountRoleDefinitionInheritsEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ * @enum {string}
28
+ */
29
+ export declare enum BusinessAccountRoleDefinitionInheritsEnum {
30
+ Admin = "admin",
31
+ Viewer = "viewer"
32
+ }
33
+ export declare function BusinessAccountRoleDefinitionFromJSON(json: any): BusinessAccountRoleDefinition;
34
+ export declare function BusinessAccountRoleDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountRoleDefinition;
35
+ export declare function BusinessAccountRoleDefinitionToJSON(value?: BusinessAccountRoleDefinition | null): any;
@@ -0,0 +1,46 @@
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
+ * @export
16
+ * @enum {string}
17
+ */
18
+ var BusinessAccountRoleDefinitionInheritsEnum;
19
+ (function (BusinessAccountRoleDefinitionInheritsEnum) {
20
+ BusinessAccountRoleDefinitionInheritsEnum["Admin"] = "admin";
21
+ BusinessAccountRoleDefinitionInheritsEnum["Viewer"] = "viewer";
22
+ })(BusinessAccountRoleDefinitionInheritsEnum || (BusinessAccountRoleDefinitionInheritsEnum = {}));
23
+ function BusinessAccountRoleDefinitionFromJSON(json) {
24
+ return BusinessAccountRoleDefinitionFromJSONTyped(json);
25
+ }
26
+ function BusinessAccountRoleDefinitionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'inherits': json['inherits'],
32
+ };
33
+ }
34
+ function BusinessAccountRoleDefinitionToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'inherits': value.inherits,
43
+ };
44
+ }
45
+
46
+ export { BusinessAccountRoleDefinitionFromJSON, BusinessAccountRoleDefinitionFromJSONTyped, BusinessAccountRoleDefinitionInheritsEnum, BusinessAccountRoleDefinitionToJSON };
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var BusinessAccountRoleDefinition = require('./BusinessAccountRoleDefinition.cjs');
7
+
8
+ /* tslint:disable */
9
+ function BusinessAccountRolesResponseFromJSON(json) {
10
+ return BusinessAccountRolesResponseFromJSONTyped(json);
11
+ }
12
+ function BusinessAccountRolesResponseFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'roles': (runtime.mapValues(json['roles'], BusinessAccountRoleDefinition.BusinessAccountRoleDefinitionFromJSON)),
18
+ };
19
+ }
20
+ function BusinessAccountRolesResponseToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'roles': (runtime.mapValues(value.roles, BusinessAccountRoleDefinition.BusinessAccountRoleDefinitionToJSON)),
29
+ };
30
+ }
31
+
32
+ exports.BusinessAccountRolesResponseFromJSON = BusinessAccountRolesResponseFromJSON;
33
+ exports.BusinessAccountRolesResponseFromJSONTyped = BusinessAccountRolesResponseFromJSONTyped;
34
+ exports.BusinessAccountRolesResponseToJSON = BusinessAccountRolesResponseToJSON;
@@ -0,0 +1,30 @@
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 { BusinessAccountRoleDefinition } from './BusinessAccountRoleDefinition';
13
+ /**
14
+ * The roles defined on this account. Empty when none are — that is an answer, not a missing resource.
15
+ * @export
16
+ * @interface BusinessAccountRolesResponse
17
+ */
18
+ export interface BusinessAccountRolesResponse {
19
+ /**
20
+ * Customer-defined roles keyed by role name.
21
+ * @type {{ [key: string]: BusinessAccountRoleDefinition; }}
22
+ * @memberof BusinessAccountRolesResponse
23
+ */
24
+ roles: {
25
+ [key: string]: BusinessAccountRoleDefinition;
26
+ };
27
+ }
28
+ export declare function BusinessAccountRolesResponseFromJSON(json: any): BusinessAccountRolesResponse;
29
+ export declare function BusinessAccountRolesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountRolesResponse;
30
+ export declare function BusinessAccountRolesResponseToJSON(value?: BusinessAccountRolesResponse | null): any;
@@ -0,0 +1,28 @@
1
+ import { mapValues } from '../runtime.js';
2
+ import { BusinessAccountRoleDefinitionFromJSON, BusinessAccountRoleDefinitionToJSON } from './BusinessAccountRoleDefinition.js';
3
+
4
+ /* tslint:disable */
5
+ function BusinessAccountRolesResponseFromJSON(json) {
6
+ return BusinessAccountRolesResponseFromJSONTyped(json);
7
+ }
8
+ function BusinessAccountRolesResponseFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'roles': (mapValues(json['roles'], BusinessAccountRoleDefinitionFromJSON)),
14
+ };
15
+ }
16
+ function BusinessAccountRolesResponseToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'roles': (mapValues(value.roles, BusinessAccountRoleDefinitionToJSON)),
25
+ };
26
+ }
27
+
28
+ export { BusinessAccountRolesResponseFromJSON, BusinessAccountRolesResponseFromJSONTyped, BusinessAccountRolesResponseToJSON };
@@ -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 BusinessAccountSigningRefusedFromJSON(json) {
9
+ return BusinessAccountSigningRefusedFromJSONTyped(json);
10
+ }
11
+ function BusinessAccountSigningRefusedFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'detail': !runtime.exists(json, 'detail') ? undefined : json['detail'],
17
+ 'error': json['error'],
18
+ 'reason': json['reason'],
19
+ };
20
+ }
21
+ function BusinessAccountSigningRefusedToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'detail': value.detail,
30
+ 'error': value.error,
31
+ 'reason': value.reason,
32
+ };
33
+ }
34
+
35
+ exports.BusinessAccountSigningRefusedFromJSON = BusinessAccountSigningRefusedFromJSON;
36
+ exports.BusinessAccountSigningRefusedFromJSONTyped = BusinessAccountSigningRefusedFromJSONTyped;
37
+ exports.BusinessAccountSigningRefusedToJSON = BusinessAccountSigningRefusedToJSON;