@dynamic-labs/sdk-api 0.158.0 → 0.160.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 (129) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -1
  3. package/src/apis/AdminActionsApi.js +3 -1
  4. package/src/apis/AllowlistsApi.cjs +3 -1
  5. package/src/apis/AllowlistsApi.js +3 -1
  6. package/src/apis/AnalyticsApi.cjs +3 -1
  7. package/src/apis/AnalyticsApi.js +3 -1
  8. package/src/apis/AuthorizedClientsApi.cjs +3 -1
  9. package/src/apis/AuthorizedClientsApi.js +3 -1
  10. package/src/apis/BusinessAccountsApi.cjs +3 -1
  11. package/src/apis/BusinessAccountsApi.js +3 -1
  12. package/src/apis/CaptchaApi.cjs +3 -1
  13. package/src/apis/CaptchaApi.js +3 -1
  14. package/src/apis/ChainalysisApi.cjs +3 -1
  15. package/src/apis/ChainalysisApi.js +3 -1
  16. package/src/apis/ChainsApi.cjs +3 -1
  17. package/src/apis/ChainsApi.js +3 -1
  18. package/src/apis/CheckoutApi.cjs +3 -1
  19. package/src/apis/CheckoutApi.js +3 -1
  20. package/src/apis/ClientGrantApi.cjs +3 -1
  21. package/src/apis/ClientGrantApi.js +3 -1
  22. package/src/apis/CustomFieldsApi.cjs +3 -1
  23. package/src/apis/CustomFieldsApi.js +3 -1
  24. package/src/apis/CustomHostnamesApi.cjs +3 -1
  25. package/src/apis/CustomHostnamesApi.js +3 -1
  26. package/src/apis/CustomNetworksApi.cjs +3 -1
  27. package/src/apis/CustomNetworksApi.js +3 -1
  28. package/src/apis/DeeplinkUrlsApi.cjs +3 -1
  29. package/src/apis/DeeplinkUrlsApi.js +3 -1
  30. package/src/apis/EnvironmentsApi.cjs +3 -1
  31. package/src/apis/EnvironmentsApi.js +3 -1
  32. package/src/apis/EventsApi.cjs +3 -1
  33. package/src/apis/EventsApi.js +3 -1
  34. package/src/apis/ExchangesApi.cjs +3 -1
  35. package/src/apis/ExchangesApi.js +3 -1
  36. package/src/apis/ExportsApi.cjs +3 -1
  37. package/src/apis/ExportsApi.js +3 -1
  38. package/src/apis/ExternalJwtApi.cjs +3 -1
  39. package/src/apis/ExternalJwtApi.js +3 -1
  40. package/src/apis/FlowAnalyticsApi.cjs +3 -1
  41. package/src/apis/FlowAnalyticsApi.js +3 -1
  42. package/src/apis/GaslessApi.cjs +3 -1
  43. package/src/apis/GaslessApi.js +3 -1
  44. package/src/apis/GatesApi.cjs +3 -1
  45. package/src/apis/GatesApi.js +3 -1
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -1
  47. package/src/apis/GlobalWalletAccessControlApi.js +3 -1
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -1
  49. package/src/apis/GlobalWalletConnectionsApi.js +3 -1
  50. package/src/apis/GlobalWalletsApi.cjs +3 -1
  51. package/src/apis/GlobalWalletsApi.js +3 -1
  52. package/src/apis/InvitesApi.cjs +3 -1
  53. package/src/apis/InvitesApi.js +3 -1
  54. package/src/apis/KybApi.cjs +3 -1
  55. package/src/apis/KybApi.js +3 -1
  56. package/src/apis/MembersApi.cjs +3 -1
  57. package/src/apis/MembersApi.js +3 -1
  58. package/src/apis/MfaSettingsApi.cjs +3 -1
  59. package/src/apis/MfaSettingsApi.js +3 -1
  60. package/src/apis/NameServicesApi.cjs +3 -1
  61. package/src/apis/NameServicesApi.js +3 -1
  62. package/src/apis/OrganizationSettingsApi.cjs +3 -1
  63. package/src/apis/OrganizationSettingsApi.js +3 -1
  64. package/src/apis/OrganizationsApi.cjs +3 -1
  65. package/src/apis/OrganizationsApi.js +3 -1
  66. package/src/apis/OriginsApi.cjs +3 -1
  67. package/src/apis/OriginsApi.js +3 -1
  68. package/src/apis/ProjectsApi.cjs +3 -1
  69. package/src/apis/ProjectsApi.js +3 -1
  70. package/src/apis/ProvidersApi.cjs +3 -1
  71. package/src/apis/ProvidersApi.js +3 -1
  72. package/src/apis/SDKApi.cjs +9 -6
  73. package/src/apis/SDKApi.d.ts +8 -8
  74. package/src/apis/SDKApi.js +9 -6
  75. package/src/apis/SDKViewsApi.cjs +3 -1
  76. package/src/apis/SDKViewsApi.js +3 -1
  77. package/src/apis/ScreeningPoliciesApi.cjs +3 -1
  78. package/src/apis/ScreeningPoliciesApi.js +3 -1
  79. package/src/apis/ServerApi.cjs +8 -5
  80. package/src/apis/ServerApi.d.ts +6 -6
  81. package/src/apis/ServerApi.js +8 -5
  82. package/src/apis/SessionsApi.cjs +3 -1
  83. package/src/apis/SessionsApi.js +3 -1
  84. package/src/apis/TestAccountApi.cjs +3 -1
  85. package/src/apis/TestAccountApi.js +3 -1
  86. package/src/apis/TokensApi.cjs +3 -1
  87. package/src/apis/TokensApi.js +3 -1
  88. package/src/apis/UserApiTokensApi.cjs +3 -1
  89. package/src/apis/UserApiTokensApi.js +3 -1
  90. package/src/apis/UsersApi.cjs +3 -1
  91. package/src/apis/UsersApi.js +3 -1
  92. package/src/apis/VisitsApi.cjs +3 -1
  93. package/src/apis/VisitsApi.js +3 -1
  94. package/src/apis/WaasApi.cjs +3 -1
  95. package/src/apis/WaasApi.js +3 -1
  96. package/src/apis/WalletConnectApi.cjs +3 -1
  97. package/src/apis/WalletConnectApi.js +3 -1
  98. package/src/apis/WalletsApi.cjs +3 -1
  99. package/src/apis/WalletsApi.js +3 -1
  100. package/src/apis/WebhooksApi.cjs +3 -1
  101. package/src/apis/WebhooksApi.js +3 -1
  102. package/src/apis/YieldApi.cjs +3 -1
  103. package/src/apis/YieldApi.js +3 -1
  104. package/src/apis/ZendeskApi.cjs +3 -1
  105. package/src/apis/ZendeskApi.js +3 -1
  106. package/src/index.cjs +28 -0
  107. package/src/index.js +5 -0
  108. package/src/models/BusinessAccountPolicyLayerResponse.cjs +49 -0
  109. package/src/models/BusinessAccountPolicyLayerResponse.d.ts +71 -0
  110. package/src/models/BusinessAccountPolicyLayerResponse.js +43 -0
  111. package/src/models/BusinessAccountPolicyLayerResponseAllOf.cjs +35 -0
  112. package/src/models/BusinessAccountPolicyLayerResponseAllOf.d.ts +33 -0
  113. package/src/models/BusinessAccountPolicyLayerResponseAllOf.js +29 -0
  114. package/src/models/BusinessAccountPolicyLayerUpdateRequest.cjs +64 -0
  115. package/src/models/BusinessAccountPolicyLayerUpdateRequest.d.ts +93 -0
  116. package/src/models/BusinessAccountPolicyLayerUpdateRequest.js +58 -0
  117. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.cjs +37 -0
  118. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.d.ts +43 -0
  119. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.js +31 -0
  120. package/src/models/DynamicJwt.cjs +2 -0
  121. package/src/models/DynamicJwt.d.ts +6 -0
  122. package/src/models/DynamicJwt.js +2 -0
  123. package/src/models/InlineResponse503.cjs +53 -0
  124. package/src/models/InlineResponse503.d.ts +40 -0
  125. package/src/models/InlineResponse503.js +47 -0
  126. package/src/models/MinifiedDynamicJwt.cjs +2 -0
  127. package/src/models/MinifiedDynamicJwt.d.ts +6 -0
  128. package/src/models/MinifiedDynamicJwt.js +2 -0
  129. package/src/models/index.d.ts +5 -0
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyLayerResponseLayerContent = require('./WaasPolicyLayerResponseLayerContent.cjs');
7
+ var WaasPolicyLayerTranslationWarning = require('./WaasPolicyLayerTranslationWarning.cjs');
8
+
9
+ /* tslint:disable */
10
+ function BusinessAccountPolicyLayerResponseFromJSON(json) {
11
+ return BusinessAccountPolicyLayerResponseFromJSONTyped(json);
12
+ }
13
+ function BusinessAccountPolicyLayerResponseFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'message': !runtime.exists(json, 'message') ? undefined : json['message'],
19
+ 'layerId': json['layerId'],
20
+ 'layerContent': WaasPolicyLayerResponseLayerContent.WaasPolicyLayerResponseLayerContentFromJSON(json['layerContent']),
21
+ 'updatedAt': (new Date(json['updatedAt'])),
22
+ 'translatedFromLegacy': !runtime.exists(json, 'translatedFromLegacy') ? undefined : json['translatedFromLegacy'],
23
+ 'translationWarnings': !runtime.exists(json, 'translationWarnings') ? undefined : (json['translationWarnings'].map(WaasPolicyLayerTranslationWarning.WaasPolicyLayerTranslationWarningFromJSON)),
24
+ 'layerDigest': !runtime.exists(json, 'layerDigest') ? undefined : json['layerDigest'],
25
+ 'rbacVersion': !runtime.exists(json, 'rbacVersion') ? undefined : json['rbacVersion'],
26
+ };
27
+ }
28
+ function BusinessAccountPolicyLayerResponseToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'message': value.message,
37
+ 'layerId': value.layerId,
38
+ 'layerContent': WaasPolicyLayerResponseLayerContent.WaasPolicyLayerResponseLayerContentToJSON(value.layerContent),
39
+ 'updatedAt': (value.updatedAt.toISOString()),
40
+ 'translatedFromLegacy': value.translatedFromLegacy,
41
+ 'translationWarnings': value.translationWarnings === undefined ? undefined : (value.translationWarnings.map(WaasPolicyLayerTranslationWarning.WaasPolicyLayerTranslationWarningToJSON)),
42
+ 'layerDigest': value.layerDigest,
43
+ 'rbacVersion': value.rbacVersion,
44
+ };
45
+ }
46
+
47
+ exports.BusinessAccountPolicyLayerResponseFromJSON = BusinessAccountPolicyLayerResponseFromJSON;
48
+ exports.BusinessAccountPolicyLayerResponseFromJSONTyped = BusinessAccountPolicyLayerResponseFromJSONTyped;
49
+ exports.BusinessAccountPolicyLayerResponseToJSON = BusinessAccountPolicyLayerResponseToJSON;
@@ -0,0 +1,71 @@
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 { WaasPolicyLayerResponseLayerContent } from './WaasPolicyLayerResponseLayerContent';
13
+ import { WaasPolicyLayerTranslationWarning } from './WaasPolicyLayerTranslationWarning';
14
+ /**
15
+ * The account-Layer, plus the two values a client binds in an updatePolicyLayer intent. Both are omitted together when the account has no signed RBAC document.
16
+ * @export
17
+ * @interface BusinessAccountPolicyLayerResponse
18
+ */
19
+ export interface BusinessAccountPolicyLayerResponse {
20
+ /**
21
+ * Message describing the operation result
22
+ * @type {string}
23
+ * @memberof BusinessAccountPolicyLayerResponse
24
+ */
25
+ message?: string;
26
+ /**
27
+ * Unique identifier for the wallet-Layer
28
+ * @type {string}
29
+ * @memberof BusinessAccountPolicyLayerResponse
30
+ */
31
+ layerId: string;
32
+ /**
33
+ *
34
+ * @type {WaasPolicyLayerResponseLayerContent}
35
+ * @memberof BusinessAccountPolicyLayerResponse
36
+ */
37
+ layerContent: WaasPolicyLayerResponseLayerContent;
38
+ /**
39
+ * ISO 8601 timestamp of when the wallet-Layer was last updated
40
+ * @type {Date}
41
+ * @memberof BusinessAccountPolicyLayerResponse
42
+ */
43
+ updatedAt: Date;
44
+ /**
45
+ * True when legacy rules are translated for this response without saving them.
46
+ * @type {boolean}
47
+ * @memberof BusinessAccountPolicyLayerResponse
48
+ */
49
+ translatedFromLegacy?: boolean;
50
+ /**
51
+ * What the translation left out or could not translate.
52
+ * @type {Array<WaasPolicyLayerTranslationWarning>}
53
+ * @memberof BusinessAccountPolicyLayerResponse
54
+ */
55
+ translationWarnings?: Array<WaasPolicyLayerTranslationWarning>;
56
+ /**
57
+ * Hex SHA-256 digest of the stored Layer. Bind it as `currentLayerDigest`.
58
+ * @type {string}
59
+ * @memberof BusinessAccountPolicyLayerResponse
60
+ */
61
+ layerDigest?: string;
62
+ /**
63
+ * Version of the signed role-based access control document. Bind it as `rbacVersion`.
64
+ * @type {number}
65
+ * @memberof BusinessAccountPolicyLayerResponse
66
+ */
67
+ rbacVersion?: number;
68
+ }
69
+ export declare function BusinessAccountPolicyLayerResponseFromJSON(json: any): BusinessAccountPolicyLayerResponse;
70
+ export declare function BusinessAccountPolicyLayerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerResponse;
71
+ export declare function BusinessAccountPolicyLayerResponseToJSON(value?: BusinessAccountPolicyLayerResponse | null): any;
@@ -0,0 +1,43 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyLayerResponseLayerContentFromJSON, WaasPolicyLayerResponseLayerContentToJSON } from './WaasPolicyLayerResponseLayerContent.js';
3
+ import { WaasPolicyLayerTranslationWarningFromJSON, WaasPolicyLayerTranslationWarningToJSON } from './WaasPolicyLayerTranslationWarning.js';
4
+
5
+ /* tslint:disable */
6
+ function BusinessAccountPolicyLayerResponseFromJSON(json) {
7
+ return BusinessAccountPolicyLayerResponseFromJSONTyped(json);
8
+ }
9
+ function BusinessAccountPolicyLayerResponseFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'message': !exists(json, 'message') ? undefined : json['message'],
15
+ 'layerId': json['layerId'],
16
+ 'layerContent': WaasPolicyLayerResponseLayerContentFromJSON(json['layerContent']),
17
+ 'updatedAt': (new Date(json['updatedAt'])),
18
+ 'translatedFromLegacy': !exists(json, 'translatedFromLegacy') ? undefined : json['translatedFromLegacy'],
19
+ 'translationWarnings': !exists(json, 'translationWarnings') ? undefined : (json['translationWarnings'].map(WaasPolicyLayerTranslationWarningFromJSON)),
20
+ 'layerDigest': !exists(json, 'layerDigest') ? undefined : json['layerDigest'],
21
+ 'rbacVersion': !exists(json, 'rbacVersion') ? undefined : json['rbacVersion'],
22
+ };
23
+ }
24
+ function BusinessAccountPolicyLayerResponseToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'message': value.message,
33
+ 'layerId': value.layerId,
34
+ 'layerContent': WaasPolicyLayerResponseLayerContentToJSON(value.layerContent),
35
+ 'updatedAt': (value.updatedAt.toISOString()),
36
+ 'translatedFromLegacy': value.translatedFromLegacy,
37
+ 'translationWarnings': value.translationWarnings === undefined ? undefined : (value.translationWarnings.map(WaasPolicyLayerTranslationWarningToJSON)),
38
+ 'layerDigest': value.layerDigest,
39
+ 'rbacVersion': value.rbacVersion,
40
+ };
41
+ }
42
+
43
+ export { BusinessAccountPolicyLayerResponseFromJSON, BusinessAccountPolicyLayerResponseFromJSONTyped, BusinessAccountPolicyLayerResponseToJSON };
@@ -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 BusinessAccountPolicyLayerResponseAllOfFromJSON(json) {
9
+ return BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json);
10
+ }
11
+ function BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'layerDigest': !runtime.exists(json, 'layerDigest') ? undefined : json['layerDigest'],
17
+ 'rbacVersion': !runtime.exists(json, 'rbacVersion') ? undefined : json['rbacVersion'],
18
+ };
19
+ }
20
+ function BusinessAccountPolicyLayerResponseAllOfToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'layerDigest': value.layerDigest,
29
+ 'rbacVersion': value.rbacVersion,
30
+ };
31
+ }
32
+
33
+ exports.BusinessAccountPolicyLayerResponseAllOfFromJSON = BusinessAccountPolicyLayerResponseAllOfFromJSON;
34
+ exports.BusinessAccountPolicyLayerResponseAllOfFromJSONTyped = BusinessAccountPolicyLayerResponseAllOfFromJSONTyped;
35
+ exports.BusinessAccountPolicyLayerResponseAllOfToJSON = BusinessAccountPolicyLayerResponseAllOfToJSON;
@@ -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
+ *
14
+ * @export
15
+ * @interface BusinessAccountPolicyLayerResponseAllOf
16
+ */
17
+ export interface BusinessAccountPolicyLayerResponseAllOf {
18
+ /**
19
+ * Hex SHA-256 digest of the stored Layer. Bind it as `currentLayerDigest`.
20
+ * @type {string}
21
+ * @memberof BusinessAccountPolicyLayerResponseAllOf
22
+ */
23
+ layerDigest?: string;
24
+ /**
25
+ * Version of the signed role-based access control document. Bind it as `rbacVersion`.
26
+ * @type {number}
27
+ * @memberof BusinessAccountPolicyLayerResponseAllOf
28
+ */
29
+ rbacVersion?: number;
30
+ }
31
+ export declare function BusinessAccountPolicyLayerResponseAllOfFromJSON(json: any): BusinessAccountPolicyLayerResponseAllOf;
32
+ export declare function BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerResponseAllOf;
33
+ export declare function BusinessAccountPolicyLayerResponseAllOfToJSON(value?: BusinessAccountPolicyLayerResponseAllOf | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function BusinessAccountPolicyLayerResponseAllOfFromJSON(json) {
5
+ return BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json);
6
+ }
7
+ function BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'layerDigest': !exists(json, 'layerDigest') ? undefined : json['layerDigest'],
13
+ 'rbacVersion': !exists(json, 'rbacVersion') ? undefined : json['rbacVersion'],
14
+ };
15
+ }
16
+ function BusinessAccountPolicyLayerResponseAllOfToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'layerDigest': value.layerDigest,
25
+ 'rbacVersion': value.rbacVersion,
26
+ };
27
+ }
28
+
29
+ export { BusinessAccountPolicyLayerResponseAllOfFromJSON, BusinessAccountPolicyLayerResponseAllOfFromJSONTyped, BusinessAccountPolicyLayerResponseAllOfToJSON };
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
7
+ var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
8
+ var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
9
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
10
+
11
+ /* tslint:disable */
12
+ /**
13
+ * @export
14
+ * @enum {string}
15
+ */
16
+ exports.BusinessAccountPolicyLayerUpdateRequestOpEnum = void 0;
17
+ (function (BusinessAccountPolicyLayerUpdateRequestOpEnum) {
18
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
19
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
20
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
21
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
22
+ })(exports.BusinessAccountPolicyLayerUpdateRequestOpEnum || (exports.BusinessAccountPolicyLayerUpdateRequestOpEnum = {}));
23
+ function BusinessAccountPolicyLayerUpdateRequestFromJSON(json) {
24
+ return BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json);
25
+ }
26
+ function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'op': json['op'],
32
+ 'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
33
+ 'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
34
+ 'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
35
+ 'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
36
+ 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
37
+ 'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
38
+ 'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
39
+ 'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
40
+ };
41
+ }
42
+ function BusinessAccountPolicyLayerUpdateRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'op': value.op,
51
+ 'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
52
+ 'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
53
+ 'ruleId': value.ruleId,
54
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
55
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
56
+ 'intent': value.intent,
57
+ 'intentSignature': value.intentSignature,
58
+ 'proposalId': value.proposalId,
59
+ };
60
+ }
61
+
62
+ exports.BusinessAccountPolicyLayerUpdateRequestFromJSON = BusinessAccountPolicyLayerUpdateRequestFromJSON;
63
+ exports.BusinessAccountPolicyLayerUpdateRequestFromJSONTyped = BusinessAccountPolicyLayerUpdateRequestFromJSONTyped;
64
+ exports.BusinessAccountPolicyLayerUpdateRequestToJSON = BusinessAccountPolicyLayerUpdateRequestToJSON;
@@ -0,0 +1,93 @@
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 { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
13
+ import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
14
+ import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
15
+ import { WaasPolicyRule } from './WaasPolicyRule';
16
+ /**
17
+ * The account-Layer update, plus the consent fields when the account governs updatePolicyLayer. All three added fields are optional: send none when it does not. `intentSignature` goes with `intent`, never alone.
18
+ * @export
19
+ * @interface BusinessAccountPolicyLayerUpdateRequest
20
+ */
21
+ export interface BusinessAccountPolicyLayerUpdateRequest {
22
+ /**
23
+ * The per-Rule operation to apply to the wallet-Layer, batch to apply multiple operations atomically in one enclave cycle, or replace to set the Layer's full Rule list
24
+ * @type {string}
25
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
26
+ */
27
+ op: BusinessAccountPolicyLayerUpdateRequestOpEnum;
28
+ /**
29
+ *
30
+ * @type {WaasPolicyRule}
31
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
32
+ */
33
+ rule?: WaasPolicyRule;
34
+ /**
35
+ *
36
+ * @type {WaasPolicyDeclarativeRuleInput}
37
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
38
+ */
39
+ declarativeRule?: WaasPolicyDeclarativeRuleInput;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
44
+ */
45
+ ruleId?: string;
46
+ /**
47
+ * Only used when op is batch — applied atomically in one enclave cycle
48
+ * @type {Array<WaasPolicyLayerRuleOperation>}
49
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
50
+ */
51
+ operations?: Array<WaasPolicyLayerRuleOperation>;
52
+ /**
53
+ * Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
54
+ * @type {Array<WaasPolicyLayerRuleInput>}
55
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
56
+ */
57
+ rules?: Array<WaasPolicyLayerRuleInput>;
58
+ /**
59
+ * 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.
60
+ * `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
61
+ * @type {{ [key: string]: object; }}
62
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
63
+ */
64
+ intent?: {
65
+ [key: string]: object;
66
+ };
67
+ /**
68
+ * 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.
69
+ * 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.
70
+ * @type {string}
71
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
72
+ */
73
+ intentSignature?: string;
74
+ /**
75
+ * The approved updatePolicyLayer proposal to redeem. Resend the same update with it; the stored proposal is what runs, and `intent` and `intentSignature` are not needed.
76
+ * @type {string}
77
+ * @memberof BusinessAccountPolicyLayerUpdateRequest
78
+ */
79
+ proposalId?: string | null;
80
+ }
81
+ /**
82
+ * @export
83
+ * @enum {string}
84
+ */
85
+ export declare enum BusinessAccountPolicyLayerUpdateRequestOpEnum {
86
+ Upsert = "upsert",
87
+ Remove = "remove",
88
+ Batch = "batch",
89
+ Replace = "replace"
90
+ }
91
+ export declare function BusinessAccountPolicyLayerUpdateRequestFromJSON(json: any): BusinessAccountPolicyLayerUpdateRequest;
92
+ export declare function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerUpdateRequest;
93
+ export declare function BusinessAccountPolicyLayerUpdateRequestToJSON(value?: BusinessAccountPolicyLayerUpdateRequest | null): any;
@@ -0,0 +1,58 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
3
+ import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
4
+ import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
5
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
6
+
7
+ /* tslint:disable */
8
+ /**
9
+ * @export
10
+ * @enum {string}
11
+ */
12
+ var BusinessAccountPolicyLayerUpdateRequestOpEnum;
13
+ (function (BusinessAccountPolicyLayerUpdateRequestOpEnum) {
14
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
15
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
16
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
17
+ BusinessAccountPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
18
+ })(BusinessAccountPolicyLayerUpdateRequestOpEnum || (BusinessAccountPolicyLayerUpdateRequestOpEnum = {}));
19
+ function BusinessAccountPolicyLayerUpdateRequestFromJSON(json) {
20
+ return BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json);
21
+ }
22
+ function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'op': json['op'],
28
+ 'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
29
+ 'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
30
+ 'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
31
+ 'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
32
+ 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
33
+ 'intent': !exists(json, 'intent') ? undefined : json['intent'],
34
+ 'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
35
+ 'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
36
+ };
37
+ }
38
+ function BusinessAccountPolicyLayerUpdateRequestToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'op': value.op,
47
+ 'rule': WaasPolicyRuleToJSON(value.rule),
48
+ 'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
49
+ 'ruleId': value.ruleId,
50
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
51
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
52
+ 'intent': value.intent,
53
+ 'intentSignature': value.intentSignature,
54
+ 'proposalId': value.proposalId,
55
+ };
56
+ }
57
+
58
+ export { BusinessAccountPolicyLayerUpdateRequestFromJSON, BusinessAccountPolicyLayerUpdateRequestFromJSONTyped, BusinessAccountPolicyLayerUpdateRequestOpEnum, BusinessAccountPolicyLayerUpdateRequestToJSON };
@@ -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 BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
9
+ return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
10
+ }
11
+ function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
17
+ 'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
18
+ 'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
19
+ };
20
+ }
21
+ function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'intent': value.intent,
30
+ 'intentSignature': value.intentSignature,
31
+ 'proposalId': value.proposalId,
32
+ };
33
+ }
34
+
35
+ exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON;
36
+ exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped;
37
+ exports.BusinessAccountPolicyLayerUpdateRequestAllOfToJSON = BusinessAccountPolicyLayerUpdateRequestAllOfToJSON;
@@ -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 BusinessAccountPolicyLayerUpdateRequestAllOf
16
+ */
17
+ export interface BusinessAccountPolicyLayerUpdateRequestAllOf {
18
+ /**
19
+ * 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.
20
+ * `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
21
+ * @type {{ [key: string]: object; }}
22
+ * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
23
+ */
24
+ intent?: {
25
+ [key: string]: object;
26
+ };
27
+ /**
28
+ * 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.
29
+ * 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.
30
+ * @type {string}
31
+ * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
32
+ */
33
+ intentSignature?: string;
34
+ /**
35
+ * The approved updatePolicyLayer proposal to redeem. Resend the same update with it; the stored proposal is what runs, and `intent` and `intentSignature` are not needed.
36
+ * @type {string}
37
+ * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
38
+ */
39
+ proposalId?: string | null;
40
+ }
41
+ export declare function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json: any): BusinessAccountPolicyLayerUpdateRequestAllOf;
42
+ export declare function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerUpdateRequestAllOf;
43
+ export declare function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value?: BusinessAccountPolicyLayerUpdateRequestAllOf | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
5
+ return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
6
+ }
7
+ function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'intent': !exists(json, 'intent') ? undefined : json['intent'],
13
+ 'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
14
+ 'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
15
+ };
16
+ }
17
+ function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'intent': value.intent,
26
+ 'intentSignature': value.intentSignature,
27
+ 'proposalId': value.proposalId,
28
+ };
29
+ }
30
+
31
+ export { BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON, BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped, BusinessAccountPolicyLayerUpdateRequestAllOfToJSON };
@@ -31,6 +31,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'country': !runtime.exists(json, 'country') ? undefined : json['country'],
32
32
  'email': !runtime.exists(json, 'email') ? undefined : json['email'],
33
33
  'environmentId': json['environment_id'],
34
+ 'dynSigner': !runtime.exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
34
35
  'familyName': !runtime.exists(json, 'family_name') ? undefined : json['family_name'],
35
36
  'givenName': !runtime.exists(json, 'given_name') ? undefined : json['given_name'],
36
37
  'jobTitle': !runtime.exists(json, 'job_title') ? undefined : json['job_title'],
@@ -92,6 +93,7 @@ function DynamicJwtToJSON(value) {
92
93
  'country': value.country,
93
94
  'email': value.email,
94
95
  'environment_id': value.environmentId,
96
+ 'dyn_signer': value.dynSigner,
95
97
  'family_name': value.familyName,
96
98
  'given_name': value.givenName,
97
99
  'job_title': value.jobTitle,
@@ -98,6 +98,12 @@ export interface DynamicJwt {
98
98
  * @memberof DynamicJwt
99
99
  */
100
100
  environmentId: string;
101
+ /**
102
+ * JWT signer attribution claim identifying which service minted this JWT (e.g. auth-service). Preserved verbatim across re-mints.
103
+ * @type {string}
104
+ * @memberof DynamicJwt
105
+ */
106
+ dynSigner?: string;
101
107
  /**
102
108
  * Last name of the user
103
109
  * @type {string}
@@ -27,6 +27,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'country': !exists(json, 'country') ? undefined : json['country'],
28
28
  'email': !exists(json, 'email') ? undefined : json['email'],
29
29
  'environmentId': json['environment_id'],
30
+ 'dynSigner': !exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
30
31
  'familyName': !exists(json, 'family_name') ? undefined : json['family_name'],
31
32
  'givenName': !exists(json, 'given_name') ? undefined : json['given_name'],
32
33
  'jobTitle': !exists(json, 'job_title') ? undefined : json['job_title'],
@@ -88,6 +89,7 @@ function DynamicJwtToJSON(value) {
88
89
  'country': value.country,
89
90
  'email': value.email,
90
91
  'environment_id': value.environmentId,
92
+ 'dyn_signer': value.dynSigner,
91
93
  'family_name': value.familyName,
92
94
  'given_name': value.givenName,
93
95
  'job_title': value.jobTitle,