@dynamic-labs/sdk-api 0.84.0 → 0.86.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 (154) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +2 -0
  3. package/src/apis/AdminActionsApi.js +2 -0
  4. package/src/apis/AllowlistsApi.cjs +2 -0
  5. package/src/apis/AllowlistsApi.js +2 -0
  6. package/src/apis/AnalyticsApi.cjs +2 -0
  7. package/src/apis/AnalyticsApi.js +2 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +2 -0
  9. package/src/apis/AuthorizedClientsApi.js +2 -0
  10. package/src/apis/BusinessAccountsApi.cjs +205 -0
  11. package/src/apis/BusinessAccountsApi.d.ts +75 -1
  12. package/src/apis/BusinessAccountsApi.js +205 -0
  13. package/src/apis/CaptchaApi.cjs +2 -0
  14. package/src/apis/CaptchaApi.js +2 -0
  15. package/src/apis/ChainalysisApi.cjs +2 -0
  16. package/src/apis/ChainalysisApi.js +2 -0
  17. package/src/apis/ChainsApi.cjs +2 -0
  18. package/src/apis/ChainsApi.js +2 -0
  19. package/src/apis/CheckoutApi.cjs +2 -0
  20. package/src/apis/CheckoutApi.js +2 -0
  21. package/src/apis/ClientGrantApi.cjs +2 -0
  22. package/src/apis/ClientGrantApi.js +2 -0
  23. package/src/apis/CustomFieldsApi.cjs +2 -0
  24. package/src/apis/CustomFieldsApi.js +2 -0
  25. package/src/apis/CustomHostnamesApi.cjs +2 -0
  26. package/src/apis/CustomHostnamesApi.js +2 -0
  27. package/src/apis/CustomNetworksApi.cjs +2 -0
  28. package/src/apis/CustomNetworksApi.js +2 -0
  29. package/src/apis/DeeplinkUrlsApi.cjs +2 -0
  30. package/src/apis/DeeplinkUrlsApi.js +2 -0
  31. package/src/apis/EnvironmentsApi.cjs +2 -0
  32. package/src/apis/EnvironmentsApi.js +2 -0
  33. package/src/apis/EventsApi.cjs +2 -0
  34. package/src/apis/EventsApi.js +2 -0
  35. package/src/apis/ExchangesApi.cjs +2 -0
  36. package/src/apis/ExchangesApi.js +2 -0
  37. package/src/apis/ExportsApi.cjs +2 -0
  38. package/src/apis/ExportsApi.js +2 -0
  39. package/src/apis/ExternalJwtApi.cjs +2 -0
  40. package/src/apis/ExternalJwtApi.js +2 -0
  41. package/src/apis/FlowAnalyticsApi.cjs +2 -0
  42. package/src/apis/FlowAnalyticsApi.js +2 -0
  43. package/src/apis/GaslessApi.cjs +2 -0
  44. package/src/apis/GaslessApi.js +2 -0
  45. package/src/apis/GatesApi.cjs +2 -0
  46. package/src/apis/GatesApi.js +2 -0
  47. package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
  48. package/src/apis/GlobalWalletAccessControlApi.js +2 -0
  49. package/src/apis/GlobalWalletConnectionsApi.cjs +2 -0
  50. package/src/apis/GlobalWalletConnectionsApi.js +2 -0
  51. package/src/apis/GlobalWalletsApi.cjs +2 -0
  52. package/src/apis/GlobalWalletsApi.js +2 -0
  53. package/src/apis/InvitesApi.cjs +2 -0
  54. package/src/apis/InvitesApi.js +2 -0
  55. package/src/apis/KybApi.cjs +2 -0
  56. package/src/apis/KybApi.js +2 -0
  57. package/src/apis/MembersApi.cjs +44 -5
  58. package/src/apis/MembersApi.d.ts +21 -5
  59. package/src/apis/MembersApi.js +44 -5
  60. package/src/apis/MfaSettingsApi.cjs +2 -0
  61. package/src/apis/MfaSettingsApi.js +2 -0
  62. package/src/apis/NameServicesApi.cjs +2 -0
  63. package/src/apis/NameServicesApi.js +2 -0
  64. package/src/apis/OrganizationSettingsApi.cjs +2 -0
  65. package/src/apis/OrganizationSettingsApi.js +2 -0
  66. package/src/apis/OrganizationsApi.cjs +2 -0
  67. package/src/apis/OrganizationsApi.js +2 -0
  68. package/src/apis/OriginsApi.cjs +2 -0
  69. package/src/apis/OriginsApi.js +2 -0
  70. package/src/apis/ProjectsApi.cjs +2 -0
  71. package/src/apis/ProjectsApi.js +2 -0
  72. package/src/apis/ProvidersApi.cjs +2 -0
  73. package/src/apis/ProvidersApi.js +2 -0
  74. package/src/apis/SDKApi.cjs +9 -7
  75. package/src/apis/SDKApi.js +9 -7
  76. package/src/apis/SDKViewsApi.cjs +2 -0
  77. package/src/apis/SDKViewsApi.js +2 -0
  78. package/src/apis/ScreeningPoliciesApi.cjs +2 -0
  79. package/src/apis/ScreeningPoliciesApi.js +2 -0
  80. package/src/apis/ServerApi.cjs +4 -2
  81. package/src/apis/ServerApi.js +4 -2
  82. package/src/apis/SessionsApi.cjs +2 -0
  83. package/src/apis/SessionsApi.js +2 -0
  84. package/src/apis/TestAccountApi.cjs +2 -0
  85. package/src/apis/TestAccountApi.js +2 -0
  86. package/src/apis/TokensApi.cjs +2 -0
  87. package/src/apis/TokensApi.js +2 -0
  88. package/src/apis/UserApiTokensApi.cjs +2 -0
  89. package/src/apis/UserApiTokensApi.js +2 -0
  90. package/src/apis/UsersApi.cjs +2 -0
  91. package/src/apis/UsersApi.js +2 -0
  92. package/src/apis/VisitsApi.cjs +2 -0
  93. package/src/apis/VisitsApi.js +2 -0
  94. package/src/apis/WaasApi.cjs +2 -0
  95. package/src/apis/WaasApi.js +2 -0
  96. package/src/apis/WalletConnectApi.cjs +2 -0
  97. package/src/apis/WalletConnectApi.js +2 -0
  98. package/src/apis/WalletsApi.cjs +2 -0
  99. package/src/apis/WalletsApi.js +2 -0
  100. package/src/apis/WebhooksApi.cjs +2 -0
  101. package/src/apis/WebhooksApi.js +2 -0
  102. package/src/apis/YieldApi.cjs +2 -0
  103. package/src/apis/YieldApi.js +2 -0
  104. package/src/apis/ZendeskApi.cjs +2 -0
  105. package/src/apis/ZendeskApi.js +2 -0
  106. package/src/index.cjs +52 -0
  107. package/src/index.js +11 -0
  108. package/src/models/AddBusinessAccountMemberRequest.cjs +46 -0
  109. package/src/models/AddBusinessAccountMemberRequest.d.ts +63 -0
  110. package/src/models/AddBusinessAccountMemberRequest.js +40 -0
  111. package/src/models/AddBusinessAccountMemberRequestAllOf.cjs +43 -0
  112. package/src/models/AddBusinessAccountMemberRequestAllOf.d.ts +30 -0
  113. package/src/models/AddBusinessAccountMemberRequestAllOf.js +37 -0
  114. package/src/models/AddBusinessAccountMemberSdkRequest.cjs +2 -2
  115. package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +10 -10
  116. package/src/models/AddBusinessAccountMemberSdkRequest.js +2 -2
  117. package/src/models/AddBusinessAccountMemberSdkRequestAllOf.cjs +37 -0
  118. package/src/models/AddBusinessAccountMemberSdkRequestAllOf.d.ts +43 -0
  119. package/src/models/AddBusinessAccountMemberSdkRequestAllOf.js +31 -0
  120. package/src/models/AddBusinessAccountSignerSdkRequest.cjs +2 -2
  121. package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +6 -6
  122. package/src/models/AddBusinessAccountSignerSdkRequest.js +2 -2
  123. package/src/models/AddBusinessAccountSignerSdkRequestAllOf.cjs +44 -0
  124. package/src/models/AddBusinessAccountSignerSdkRequestAllOf.d.ts +59 -0
  125. package/src/models/AddBusinessAccountSignerSdkRequestAllOf.js +38 -0
  126. package/src/models/BusinessAccountMemberSelection.cjs +44 -0
  127. package/src/models/BusinessAccountMemberSelection.d.ts +54 -0
  128. package/src/models/BusinessAccountMemberSelection.js +38 -0
  129. package/src/models/BusinessAccountRolesAdminResponse.cjs +45 -0
  130. package/src/models/BusinessAccountRolesAdminResponse.d.ts +44 -0
  131. package/src/models/BusinessAccountRolesAdminResponse.js +39 -0
  132. package/src/models/BusinessAccountRolesAdminResponseAllOf.cjs +52 -0
  133. package/src/models/BusinessAccountRolesAdminResponseAllOf.d.ts +35 -0
  134. package/src/models/BusinessAccountRolesAdminResponseAllOf.js +46 -0
  135. package/src/models/CreateBusinessAccountAdminRequest.cjs +40 -0
  136. package/src/models/CreateBusinessAccountAdminRequest.d.ts +46 -0
  137. package/src/models/CreateBusinessAccountAdminRequest.js +34 -0
  138. package/src/models/CreateBusinessAccountAdminRequestAllOf.cjs +33 -0
  139. package/src/models/CreateBusinessAccountAdminRequestAllOf.d.ts +28 -0
  140. package/src/models/CreateBusinessAccountAdminRequestAllOf.js +27 -0
  141. package/src/models/SignedMembershipEnvironmentIds.cjs +43 -0
  142. package/src/models/SignedMembershipEnvironmentIds.d.ts +27 -0
  143. package/src/models/SignedMembershipEnvironmentIds.js +37 -0
  144. package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
  145. package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
  146. package/src/models/UnprocessableEntityErrorCode.js +1 -0
  147. package/src/models/UpdateBusinessAccountMemberRoleRequest.cjs +43 -0
  148. package/src/models/UpdateBusinessAccountMemberRoleRequest.d.ts +30 -0
  149. package/src/models/UpdateBusinessAccountMemberRoleRequest.js +37 -0
  150. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +1 -1
  151. package/src/models/WaasSignAndBroadcastRequest.cjs +4 -0
  152. package/src/models/WaasSignAndBroadcastRequest.d.ts +12 -0
  153. package/src/models/WaasSignAndBroadcastRequest.js +4 -0
  154. package/src/models/index.d.ts +11 -0
@@ -0,0 +1,40 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
3
+ import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
4
+ import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
5
+
6
+ /* tslint:disable */
7
+ function AddBusinessAccountMemberRequestFromJSON(json) {
8
+ return AddBusinessAccountMemberRequestFromJSONTyped(json);
9
+ }
10
+ function AddBusinessAccountMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'userId': !exists(json, 'userId') ? undefined : json['userId'],
16
+ 'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
17
+ 'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
18
+ 'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
19
+ 'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
20
+ 'role': json['role'],
21
+ };
22
+ }
23
+ function AddBusinessAccountMemberRequestToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'userId': value.userId,
32
+ 'identifier': value.identifier,
33
+ 'type': UserIdentifierTypeEnumToJSON(value.type),
34
+ 'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
35
+ 'socialProvider': ProviderEnumToJSON(value.socialProvider),
36
+ 'role': value.role,
37
+ };
38
+ }
39
+
40
+ export { AddBusinessAccountMemberRequestFromJSON, AddBusinessAccountMemberRequestFromJSONTyped, AddBusinessAccountMemberRequestToJSON };
@@ -0,0 +1,43 @@
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 AddBusinessAccountMemberRequestAllOfFromJSON(json) {
19
+ return AddBusinessAccountMemberRequestAllOfFromJSONTyped(json);
20
+ }
21
+ function AddBusinessAccountMemberRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'role': json['role'],
27
+ };
28
+ }
29
+ function AddBusinessAccountMemberRequestAllOfToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'role': value.role,
38
+ };
39
+ }
40
+
41
+ exports.AddBusinessAccountMemberRequestAllOfFromJSON = AddBusinessAccountMemberRequestAllOfFromJSON;
42
+ exports.AddBusinessAccountMemberRequestAllOfFromJSONTyped = AddBusinessAccountMemberRequestAllOfFromJSONTyped;
43
+ exports.AddBusinessAccountMemberRequestAllOfToJSON = AddBusinessAccountMemberRequestAllOfToJSON;
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface AddBusinessAccountMemberRequestAllOf
16
+ */
17
+ export interface AddBusinessAccountMemberRequestAllOf {
18
+ /**
19
+ * A role that can be directly assigned to a member: a built-in (`admin`, `viewer`) or a customer-defined role the account has defined. `owner` is excluded — ownership moves only via transferOwnership.
20
+ * Not an enum, because the set is per-account: a caller can grant any role from GET /roles. Whether the role exists is the enclave's to answer, not this schema's — the pattern only rejects names that could never be one. A role the account has not defined is refused with UNKNOWN_ROLE.
21
+ * A customer-defined role grants exactly what it inherits, so `cfo inherits admin` is an admin with a distinguishable name.
22
+ * Case-insensitive on input — `CFO` and `cfo` name the same role. The server normalizes to lowercase before comparing or storing, so the pattern accepts both cases here even though a held/stored role name (HeldBusinessAccountMemberRole) is always lowercase.
23
+ * @type {string}
24
+ * @memberof AddBusinessAccountMemberRequestAllOf
25
+ */
26
+ role: string;
27
+ }
28
+ export declare function AddBusinessAccountMemberRequestAllOfFromJSON(json: any): AddBusinessAccountMemberRequestAllOf;
29
+ export declare function AddBusinessAccountMemberRequestAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountMemberRequestAllOf;
30
+ export declare function AddBusinessAccountMemberRequestAllOfToJSON(value?: AddBusinessAccountMemberRequestAllOf | null): any;
@@ -0,0 +1,37 @@
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 AddBusinessAccountMemberRequestAllOfFromJSON(json) {
15
+ return AddBusinessAccountMemberRequestAllOfFromJSONTyped(json);
16
+ }
17
+ function AddBusinessAccountMemberRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'role': json['role'],
23
+ };
24
+ }
25
+ function AddBusinessAccountMemberRequestAllOfToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'role': value.role,
34
+ };
35
+ }
36
+
37
+ export { AddBusinessAccountMemberRequestAllOfFromJSON, AddBusinessAccountMemberRequestAllOfFromJSONTyped, AddBusinessAccountMemberRequestAllOfToJSON };
@@ -16,12 +16,12 @@ function AddBusinessAccountMemberSdkRequestFromJSONTyped(json, ignoreDiscriminat
16
16
  return json;
17
17
  }
18
18
  return {
19
- 'role': json['role'],
20
19
  'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
21
20
  'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
22
21
  'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
23
22
  'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
24
23
  'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
24
+ 'role': json['role'],
25
25
  'autoExecute': !runtime.exists(json, 'autoExecute') ? undefined : json['autoExecute'],
26
26
  'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
27
27
  'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
@@ -35,12 +35,12 @@ function AddBusinessAccountMemberSdkRequestToJSON(value) {
35
35
  return null;
36
36
  }
37
37
  return {
38
- 'role': value.role,
39
38
  'userId': value.userId,
40
39
  'identifier': value.identifier,
41
40
  'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
42
41
  'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
43
42
  'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
43
+ 'role': value.role,
44
44
  'autoExecute': value.autoExecute,
45
45
  'intent': value.intent,
46
46
  'intentSignature': value.intentSignature,
@@ -13,20 +13,11 @@ import { ProviderEnum } from './ProviderEnum';
13
13
  import { SmsCountryCode } from './SmsCountryCode';
14
14
  import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
15
15
  /**
16
- * SDK addMember body. Caller resolves the target user by either passing `userId` directly OR by `identifier + type` (any UserIdentifierTypeEnum value), mirroring the pregen flow. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
16
+ * SDK addMember body — the member to add plus the approval artifacts.
17
17
  * @export
18
18
  * @interface AddBusinessAccountMemberSdkRequest
19
19
  */
20
20
  export interface AddBusinessAccountMemberSdkRequest {
21
- /**
22
- * A role that can be directly assigned to a member: a built-in (`admin`, `viewer`) or a customer-defined role the account has defined. `owner` is excluded — ownership moves only via transferOwnership.
23
- * Not an enum, because the set is per-account: a caller can grant any role from GET /roles. Whether the role exists is the enclave's to answer, not this schema's — the pattern only rejects names that could never be one. A role the account has not defined is refused with UNKNOWN_ROLE.
24
- * A customer-defined role grants exactly what it inherits, so `cfo inherits admin` is an admin with a distinguishable name.
25
- * Case-insensitive on input — `CFO` and `cfo` name the same role. The server normalizes to lowercase before comparing or storing, so the pattern accepts both cases here even though a held/stored role name (HeldBusinessAccountMemberRole) is always lowercase.
26
- * @type {string}
27
- * @memberof AddBusinessAccountMemberSdkRequest
28
- */
29
- role: string;
30
21
  /**
31
22
  *
32
23
  * @type {string}
@@ -57,6 +48,15 @@ export interface AddBusinessAccountMemberSdkRequest {
57
48
  * @memberof AddBusinessAccountMemberSdkRequest
58
49
  */
59
50
  socialProvider?: ProviderEnum;
51
+ /**
52
+ * A role that can be directly assigned to a member: a built-in (`admin`, `viewer`) or a customer-defined role the account has defined. `owner` is excluded — ownership moves only via transferOwnership.
53
+ * Not an enum, because the set is per-account: a caller can grant any role from GET /roles. Whether the role exists is the enclave's to answer, not this schema's — the pattern only rejects names that could never be one. A role the account has not defined is refused with UNKNOWN_ROLE.
54
+ * A customer-defined role grants exactly what it inherits, so `cfo inherits admin` is an admin with a distinguishable name.
55
+ * Case-insensitive on input — `CFO` and `cfo` name the same role. The server normalizes to lowercase before comparing or storing, so the pattern accepts both cases here even though a held/stored role name (HeldBusinessAccountMemberRole) is always lowercase.
56
+ * @type {string}
57
+ * @memberof AddBusinessAccountMemberSdkRequest
58
+ */
59
+ role: string;
60
60
  /**
61
61
  * Whether the change applies the moment its quorum is met, or waits for an explicit execute. Read only on the first call, where it is stamped into the intent you sign; after that the signed intent is the authority. Defaults to true, because a change holding all its consent while waiting for a button press tends to be forgotten, and the deadline covers execution too.
62
62
  * @type {boolean}
@@ -12,12 +12,12 @@ function AddBusinessAccountMemberSdkRequestFromJSONTyped(json, ignoreDiscriminat
12
12
  return json;
13
13
  }
14
14
  return {
15
- 'role': json['role'],
16
15
  'userId': !exists(json, 'userId') ? undefined : json['userId'],
17
16
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
18
17
  'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
19
18
  'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
20
19
  'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
20
+ 'role': json['role'],
21
21
  'autoExecute': !exists(json, 'autoExecute') ? undefined : json['autoExecute'],
22
22
  'intent': !exists(json, 'intent') ? undefined : json['intent'],
23
23
  'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
@@ -31,12 +31,12 @@ function AddBusinessAccountMemberSdkRequestToJSON(value) {
31
31
  return null;
32
32
  }
33
33
  return {
34
- 'role': value.role,
35
34
  'userId': value.userId,
36
35
  'identifier': value.identifier,
37
36
  'type': UserIdentifierTypeEnumToJSON(value.type),
38
37
  'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
39
38
  'socialProvider': ProviderEnumToJSON(value.socialProvider),
39
+ 'role': value.role,
40
40
  'autoExecute': value.autoExecute,
41
41
  'intent': value.intent,
42
42
  'intentSignature': value.intentSignature,
@@ -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 AddBusinessAccountMemberSdkRequestAllOfFromJSON(json) {
9
+ return AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped(json);
10
+ }
11
+ function AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'autoExecute': !runtime.exists(json, 'autoExecute') ? undefined : json['autoExecute'],
17
+ 'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
18
+ 'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
19
+ };
20
+ }
21
+ function AddBusinessAccountMemberSdkRequestAllOfToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'autoExecute': value.autoExecute,
30
+ 'intent': value.intent,
31
+ 'intentSignature': value.intentSignature,
32
+ };
33
+ }
34
+
35
+ exports.AddBusinessAccountMemberSdkRequestAllOfFromJSON = AddBusinessAccountMemberSdkRequestAllOfFromJSON;
36
+ exports.AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped = AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped;
37
+ exports.AddBusinessAccountMemberSdkRequestAllOfToJSON = AddBusinessAccountMemberSdkRequestAllOfToJSON;
@@ -0,0 +1,43 @@
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 AddBusinessAccountMemberSdkRequestAllOf
16
+ */
17
+ export interface AddBusinessAccountMemberSdkRequestAllOf {
18
+ /**
19
+ * Whether the change applies the moment its quorum is met, or waits for an explicit execute. Read only on the first call, where it is stamped into the intent you sign; after that the signed intent is the authority. Defaults to true, because a change holding all its consent while waiting for a button press tends to be forgotten, and the deadline covers execution too.
20
+ * @type {boolean}
21
+ * @memberof AddBusinessAccountMemberSdkRequestAllOf
22
+ */
23
+ autoExecute?: boolean;
24
+ /**
25
+ * The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
26
+ * `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
27
+ * @type {{ [key: string]: object; }}
28
+ * @memberof AddBusinessAccountMemberSdkRequestAllOf
29
+ */
30
+ intent?: {
31
+ [key: string]: object;
32
+ };
33
+ /**
34
+ * Hex-encoded ECDSA P-256 signature over the canonicalized payload, produced by the signer's session key — which never leaves their device, so consent cannot be given on their behalf.
35
+ * Exactly 128 hex characters. WebCrypto emits the raw r‖s form with both halves padded to 32 bytes, so unlike DER the length never varies. Constrained here so a malformed value is a 400 at the edge rather than an enclave round trip that returns INTENT_SIGNATURE_INVALID, and so an unbounded string cannot be persisted against a proposal.
36
+ * @type {string}
37
+ * @memberof AddBusinessAccountMemberSdkRequestAllOf
38
+ */
39
+ intentSignature?: string;
40
+ }
41
+ export declare function AddBusinessAccountMemberSdkRequestAllOfFromJSON(json: any): AddBusinessAccountMemberSdkRequestAllOf;
42
+ export declare function AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountMemberSdkRequestAllOf;
43
+ export declare function AddBusinessAccountMemberSdkRequestAllOfToJSON(value?: AddBusinessAccountMemberSdkRequestAllOf | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function AddBusinessAccountMemberSdkRequestAllOfFromJSON(json) {
5
+ return AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped(json);
6
+ }
7
+ function AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'autoExecute': !exists(json, 'autoExecute') ? undefined : json['autoExecute'],
13
+ 'intent': !exists(json, 'intent') ? undefined : json['intent'],
14
+ 'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
15
+ };
16
+ }
17
+ function AddBusinessAccountMemberSdkRequestAllOfToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'autoExecute': value.autoExecute,
26
+ 'intent': value.intent,
27
+ 'intentSignature': value.intentSignature,
28
+ };
29
+ }
30
+
31
+ export { AddBusinessAccountMemberSdkRequestAllOfFromJSON, AddBusinessAccountMemberSdkRequestAllOfFromJSONTyped, AddBusinessAccountMemberSdkRequestAllOfToJSON };
@@ -19,12 +19,12 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
19
19
  return json;
20
20
  }
21
21
  return {
22
- 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['signerType']),
23
22
  'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
24
23
  'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
25
24
  'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
26
25
  'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
27
26
  'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
27
+ 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['signerType']),
28
28
  'clientKeygenIds': json['clientKeygenIds'],
29
29
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
30
30
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -39,12 +39,12 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
39
39
  return null;
40
40
  }
41
41
  return {
42
- 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.signerType),
43
42
  'userId': value.userId,
44
43
  'identifier': value.identifier,
45
44
  'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
46
45
  'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
47
46
  'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
47
+ 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.signerType),
48
48
  'clientKeygenIds': value.clientKeygenIds,
49
49
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
50
50
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -22,12 +22,6 @@ import { WaasPolicyRule } from './WaasPolicyRule';
22
22
  * @interface AddBusinessAccountSignerSdkRequest
23
23
  */
24
24
  export interface AddBusinessAccountSignerSdkRequest {
25
- /**
26
- *
27
- * @type {BusinessAccountSignerType}
28
- * @memberof AddBusinessAccountSignerSdkRequest
29
- */
30
- signerType: BusinessAccountSignerType;
31
25
  /**
32
26
  *
33
27
  * @type {string}
@@ -58,6 +52,12 @@ export interface AddBusinessAccountSignerSdkRequest {
58
52
  * @memberof AddBusinessAccountSignerSdkRequest
59
53
  */
60
54
  socialProvider?: ProviderEnum;
55
+ /**
56
+ *
57
+ * @type {BusinessAccountSignerType}
58
+ * @memberof AddBusinessAccountSignerSdkRequest
59
+ */
60
+ signerType: BusinessAccountSignerType;
61
61
  /**
62
62
  * Caller's MPC keygen IDs participating in the reshare.
63
63
  * @type {Array<string>}
@@ -15,12 +15,12 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
15
15
  return json;
16
16
  }
17
17
  return {
18
- 'signerType': BusinessAccountSignerTypeFromJSON(json['signerType']),
19
18
  'userId': !exists(json, 'userId') ? undefined : json['userId'],
20
19
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
21
20
  'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
22
21
  'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
23
22
  'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
23
+ 'signerType': BusinessAccountSignerTypeFromJSON(json['signerType']),
24
24
  'clientKeygenIds': json['clientKeygenIds'],
25
25
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
26
26
  'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -35,12 +35,12 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
35
35
  return null;
36
36
  }
37
37
  return {
38
- 'signerType': BusinessAccountSignerTypeToJSON(value.signerType),
39
38
  'userId': value.userId,
40
39
  'identifier': value.identifier,
41
40
  'type': UserIdentifierTypeEnumToJSON(value.type),
42
41
  'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
43
42
  'socialProvider': ProviderEnumToJSON(value.socialProvider),
43
+ 'signerType': BusinessAccountSignerTypeToJSON(value.signerType),
44
44
  'clientKeygenIds': value.clientKeygenIds,
45
45
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
46
46
  'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -0,0 +1,44 @@
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
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
8
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
9
+
10
+ /* tslint:disable */
11
+ function AddBusinessAccountSignerSdkRequestAllOfFromJSON(json) {
12
+ return AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json);
13
+ }
14
+ function AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['signerType']),
20
+ 'clientKeygenIds': json['clientKeygenIds'],
21
+ 'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
22
+ 'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
23
+ 'initialSignerRules': !runtime.exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
24
+ };
25
+ }
26
+ function AddBusinessAccountSignerSdkRequestAllOfToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.signerType),
35
+ 'clientKeygenIds': value.clientKeygenIds,
36
+ 'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
37
+ 'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
38
+ 'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
39
+ };
40
+ }
41
+
42
+ exports.AddBusinessAccountSignerSdkRequestAllOfFromJSON = AddBusinessAccountSignerSdkRequestAllOfFromJSON;
43
+ exports.AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped = AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped;
44
+ exports.AddBusinessAccountSignerSdkRequestAllOfToJSON = AddBusinessAccountSignerSdkRequestAllOfToJSON;
@@ -0,0 +1,59 @@
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
+ import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
14
+ import { WaasPolicyRule } from './WaasPolicyRule';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AddBusinessAccountSignerSdkRequestAllOf
19
+ */
20
+ export interface AddBusinessAccountSignerSdkRequestAllOf {
21
+ /**
22
+ *
23
+ * @type {BusinessAccountSignerType}
24
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
25
+ */
26
+ signerType: BusinessAccountSignerType;
27
+ /**
28
+ * Caller's MPC keygen IDs participating in the reshare.
29
+ * @type {Array<string>}
30
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
31
+ */
32
+ clientKeygenIds: Array<string>;
33
+ /**
34
+ *
35
+ * @type {ThresholdSignatureScheme}
36
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
37
+ */
38
+ oldThresholdSignatureScheme: ThresholdSignatureScheme;
39
+ /**
40
+ *
41
+ * @type {ThresholdSignatureScheme}
42
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
43
+ */
44
+ newThresholdSignatureScheme: ThresholdSignatureScheme;
45
+ /**
46
+ * Optional Rules to seed the new signer's signer-Layer with at
47
+ * add-signer time, so the signer is restricted from its first sign.
48
+ * Only valid when policy composition is enabled and the wallet is a
49
+ * composition wallet (env/wallet Layers exist); if supplied otherwise
50
+ * the request is rejected with 422 rather than creating an unrestricted
51
+ * signer. Rule shape mirrors the signer self-service policy-layer schema.
52
+ * @type {Array<WaasPolicyRule>}
53
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
54
+ */
55
+ initialSignerRules?: Array<WaasPolicyRule>;
56
+ }
57
+ export declare function AddBusinessAccountSignerSdkRequestAllOfFromJSON(json: any): AddBusinessAccountSignerSdkRequestAllOf;
58
+ export declare function AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountSignerSdkRequestAllOf;
59
+ export declare function AddBusinessAccountSignerSdkRequestAllOfToJSON(value?: AddBusinessAccountSignerSdkRequestAllOf | null): any;
@@ -0,0 +1,38 @@
1
+ import { exists } from '../runtime.js';
2
+ import { BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeToJSON } from './BusinessAccountSignerType.js';
3
+ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
4
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
5
+
6
+ /* tslint:disable */
7
+ function AddBusinessAccountSignerSdkRequestAllOfFromJSON(json) {
8
+ return AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json);
9
+ }
10
+ function AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'signerType': BusinessAccountSignerTypeFromJSON(json['signerType']),
16
+ 'clientKeygenIds': json['clientKeygenIds'],
17
+ 'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
18
+ 'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
19
+ 'initialSignerRules': !exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRuleFromJSON)),
20
+ };
21
+ }
22
+ function AddBusinessAccountSignerSdkRequestAllOfToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'signerType': BusinessAccountSignerTypeToJSON(value.signerType),
31
+ 'clientKeygenIds': value.clientKeygenIds,
32
+ 'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
33
+ 'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
34
+ 'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRuleToJSON)),
35
+ };
36
+ }
37
+
38
+ export { AddBusinessAccountSignerSdkRequestAllOfFromJSON, AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped, AddBusinessAccountSignerSdkRequestAllOfToJSON };
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ProviderEnum = require('./ProviderEnum.cjs');
7
+ var SmsCountryCode = require('./SmsCountryCode.cjs');
8
+ var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
9
+
10
+ /* tslint:disable */
11
+ function BusinessAccountMemberSelectionFromJSON(json) {
12
+ return BusinessAccountMemberSelectionFromJSONTyped(json);
13
+ }
14
+ function BusinessAccountMemberSelectionFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
20
+ 'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
21
+ 'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
22
+ 'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
23
+ 'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
24
+ };
25
+ }
26
+ function BusinessAccountMemberSelectionToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'userId': value.userId,
35
+ 'identifier': value.identifier,
36
+ 'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
37
+ 'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
38
+ 'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
39
+ };
40
+ }
41
+
42
+ exports.BusinessAccountMemberSelectionFromJSON = BusinessAccountMemberSelectionFromJSON;
43
+ exports.BusinessAccountMemberSelectionFromJSONTyped = BusinessAccountMemberSelectionFromJSONTyped;
44
+ exports.BusinessAccountMemberSelectionToJSON = BusinessAccountMemberSelectionToJSON;