@dynamic-labs/sdk-api 0.169.0 → 0.170.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 (116) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -0
  3. package/src/apis/AdminActionsApi.js +1 -0
  4. package/src/apis/AllowlistsApi.cjs +1 -0
  5. package/src/apis/AllowlistsApi.js +1 -0
  6. package/src/apis/AnalyticsApi.cjs +1 -0
  7. package/src/apis/AnalyticsApi.js +1 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -0
  9. package/src/apis/AuthorizedClientsApi.js +1 -0
  10. package/src/apis/BusinessAccountsApi.cjs +1 -0
  11. package/src/apis/BusinessAccountsApi.js +1 -0
  12. package/src/apis/CaptchaApi.cjs +1 -0
  13. package/src/apis/CaptchaApi.js +1 -0
  14. package/src/apis/ChainalysisApi.cjs +1 -0
  15. package/src/apis/ChainalysisApi.js +1 -0
  16. package/src/apis/ChainsApi.cjs +1 -0
  17. package/src/apis/ChainsApi.js +1 -0
  18. package/src/apis/CheckoutApi.cjs +1 -0
  19. package/src/apis/CheckoutApi.js +1 -0
  20. package/src/apis/ClientGrantApi.cjs +1 -0
  21. package/src/apis/ClientGrantApi.js +1 -0
  22. package/src/apis/CustomFieldsApi.cjs +1 -0
  23. package/src/apis/CustomFieldsApi.js +1 -0
  24. package/src/apis/CustomHostnamesApi.cjs +1 -0
  25. package/src/apis/CustomHostnamesApi.js +1 -0
  26. package/src/apis/CustomNetworksApi.cjs +1 -0
  27. package/src/apis/CustomNetworksApi.js +1 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  29. package/src/apis/DeeplinkUrlsApi.js +1 -0
  30. package/src/apis/EnvironmentsApi.cjs +1 -0
  31. package/src/apis/EnvironmentsApi.js +1 -0
  32. package/src/apis/EventsApi.cjs +1 -0
  33. package/src/apis/EventsApi.js +1 -0
  34. package/src/apis/ExchangesApi.cjs +1 -0
  35. package/src/apis/ExchangesApi.js +1 -0
  36. package/src/apis/ExportsApi.cjs +1 -0
  37. package/src/apis/ExportsApi.js +1 -0
  38. package/src/apis/ExternalJwtApi.cjs +1 -0
  39. package/src/apis/ExternalJwtApi.js +1 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +1 -0
  41. package/src/apis/FlowAnalyticsApi.js +1 -0
  42. package/src/apis/GaslessApi.cjs +1 -0
  43. package/src/apis/GaslessApi.js +1 -0
  44. package/src/apis/GatesApi.cjs +1 -0
  45. package/src/apis/GatesApi.js +1 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  50. package/src/apis/GlobalWalletsApi.cjs +1 -0
  51. package/src/apis/GlobalWalletsApi.js +1 -0
  52. package/src/apis/InvitesApi.cjs +1 -0
  53. package/src/apis/InvitesApi.js +1 -0
  54. package/src/apis/KybApi.cjs +1 -0
  55. package/src/apis/KybApi.js +1 -0
  56. package/src/apis/MembersApi.cjs +1 -0
  57. package/src/apis/MembersApi.js +1 -0
  58. package/src/apis/MfaSettingsApi.cjs +1 -0
  59. package/src/apis/MfaSettingsApi.js +1 -0
  60. package/src/apis/NameServicesApi.cjs +1 -0
  61. package/src/apis/NameServicesApi.js +1 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +1 -0
  63. package/src/apis/OrganizationSettingsApi.js +1 -0
  64. package/src/apis/OrganizationsApi.cjs +1 -0
  65. package/src/apis/OrganizationsApi.js +1 -0
  66. package/src/apis/OriginsApi.cjs +1 -0
  67. package/src/apis/OriginsApi.js +1 -0
  68. package/src/apis/ProjectsApi.cjs +1 -0
  69. package/src/apis/ProjectsApi.js +1 -0
  70. package/src/apis/ProvidersApi.cjs +1 -0
  71. package/src/apis/ProvidersApi.js +1 -0
  72. package/src/apis/SDKApi.cjs +5 -4
  73. package/src/apis/SDKApi.d.ts +2 -2
  74. package/src/apis/SDKApi.js +5 -4
  75. package/src/apis/SDKViewsApi.cjs +1 -0
  76. package/src/apis/SDKViewsApi.js +1 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +1 -0
  78. package/src/apis/ScreeningPoliciesApi.js +1 -0
  79. package/src/apis/ServerApi.cjs +1 -0
  80. package/src/apis/ServerApi.js +1 -0
  81. package/src/apis/SessionsApi.cjs +1 -0
  82. package/src/apis/SessionsApi.js +1 -0
  83. package/src/apis/TestAccountApi.cjs +1 -0
  84. package/src/apis/TestAccountApi.js +1 -0
  85. package/src/apis/TokensApi.cjs +1 -0
  86. package/src/apis/TokensApi.js +1 -0
  87. package/src/apis/UserApiTokensApi.cjs +1 -0
  88. package/src/apis/UserApiTokensApi.js +1 -0
  89. package/src/apis/UsersApi.cjs +1 -0
  90. package/src/apis/UsersApi.js +1 -0
  91. package/src/apis/VisitsApi.cjs +1 -0
  92. package/src/apis/VisitsApi.js +1 -0
  93. package/src/apis/WaasApi.cjs +1 -0
  94. package/src/apis/WaasApi.js +1 -0
  95. package/src/apis/WalletConnectApi.cjs +1 -0
  96. package/src/apis/WalletConnectApi.js +1 -0
  97. package/src/apis/WalletsApi.cjs +1 -0
  98. package/src/apis/WalletsApi.js +1 -0
  99. package/src/apis/WebhooksApi.cjs +1 -0
  100. package/src/apis/WebhooksApi.js +1 -0
  101. package/src/apis/YieldApi.cjs +1 -0
  102. package/src/apis/YieldApi.js +1 -0
  103. package/src/apis/ZendeskApi.cjs +1 -0
  104. package/src/apis/ZendeskApi.js +1 -0
  105. package/src/index.cjs +12 -4
  106. package/src/index.js +2 -1
  107. package/src/models/{BusinessAccountPolicyLayerUpdateRequestAllOf.cjs → WaasPolicyLayerConsent.cjs} +7 -7
  108. package/src/models/{BusinessAccountPolicyLayerUpdateRequestAllOf.d.ts → WaasPolicyLayerConsent.d.ts} +8 -8
  109. package/src/models/{BusinessAccountPolicyLayerUpdateRequestAllOf.js → WaasPolicyLayerConsent.js} +5 -5
  110. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +6 -0
  111. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +22 -0
  112. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +6 -0
  113. package/src/models/WaasWalletSelfPolicyLayerUpdateRequest.cjs +64 -0
  114. package/src/models/WaasWalletSelfPolicyLayerUpdateRequest.d.ts +93 -0
  115. package/src/models/WaasWalletSelfPolicyLayerUpdateRequest.js +58 -0
  116. package/src/models/index.d.ts +2 -1
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
 
7
7
  /* tslint:disable */
8
- function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
9
- return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
8
+ function WaasPolicyLayerConsentFromJSON(json) {
9
+ return WaasPolicyLayerConsentFromJSONTyped(json);
10
10
  }
11
- function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
11
+ function WaasPolicyLayerConsentFromJSONTyped(json, ignoreDiscriminator) {
12
12
  if ((json === undefined) || (json === null)) {
13
13
  return json;
14
14
  }
@@ -18,7 +18,7 @@ function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreD
18
18
  'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
19
19
  };
20
20
  }
21
- function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
21
+ function WaasPolicyLayerConsentToJSON(value) {
22
22
  if (value === undefined) {
23
23
  return undefined;
24
24
  }
@@ -32,6 +32,6 @@ function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
32
32
  };
33
33
  }
34
34
 
35
- exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON;
36
- exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped;
37
- exports.BusinessAccountPolicyLayerUpdateRequestAllOfToJSON = BusinessAccountPolicyLayerUpdateRequestAllOfToJSON;
35
+ exports.WaasPolicyLayerConsentFromJSON = WaasPolicyLayerConsentFromJSON;
36
+ exports.WaasPolicyLayerConsentFromJSONTyped = WaasPolicyLayerConsentFromJSONTyped;
37
+ exports.WaasPolicyLayerConsentToJSON = WaasPolicyLayerConsentToJSON;
@@ -12,14 +12,14 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface BusinessAccountPolicyLayerUpdateRequestAllOf
15
+ * @interface WaasPolicyLayerConsent
16
16
  */
17
- export interface BusinessAccountPolicyLayerUpdateRequestAllOf {
17
+ export interface WaasPolicyLayerConsent {
18
18
  /**
19
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
20
  * `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
21
21
  * @type {{ [key: string]: object; }}
22
- * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
22
+ * @memberof WaasPolicyLayerConsent
23
23
  */
24
24
  intent?: {
25
25
  [key: string]: object;
@@ -28,16 +28,16 @@ export interface BusinessAccountPolicyLayerUpdateRequestAllOf {
28
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
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
30
  * @type {string}
31
- * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
31
+ * @memberof WaasPolicyLayerConsent
32
32
  */
33
33
  intentSignature?: string;
34
34
  /**
35
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
36
  * @type {string}
37
- * @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
37
+ * @memberof WaasPolicyLayerConsent
38
38
  */
39
39
  proposalId?: string | null;
40
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;
41
+ export declare function WaasPolicyLayerConsentFromJSON(json: any): WaasPolicyLayerConsent;
42
+ export declare function WaasPolicyLayerConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerConsent;
43
+ export declare function WaasPolicyLayerConsentToJSON(value?: WaasPolicyLayerConsent | null): any;
@@ -1,10 +1,10 @@
1
1
  import { exists } from '../runtime.js';
2
2
 
3
3
  /* tslint:disable */
4
- function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
5
- return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
4
+ function WaasPolicyLayerConsentFromJSON(json) {
5
+ return WaasPolicyLayerConsentFromJSONTyped(json);
6
6
  }
7
- function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
7
+ function WaasPolicyLayerConsentFromJSONTyped(json, ignoreDiscriminator) {
8
8
  if ((json === undefined) || (json === null)) {
9
9
  return json;
10
10
  }
@@ -14,7 +14,7 @@ function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreD
14
14
  'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
15
15
  };
16
16
  }
17
- function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
17
+ function WaasPolicyLayerConsentToJSON(value) {
18
18
  if (value === undefined) {
19
19
  return undefined;
20
20
  }
@@ -28,4 +28,4 @@ function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
28
28
  };
29
29
  }
30
30
 
31
- export { BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON, BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped, BusinessAccountPolicyLayerUpdateRequestAllOfToJSON };
31
+ export { WaasPolicyLayerConsentFromJSON, WaasPolicyLayerConsentFromJSONTyped, WaasPolicyLayerConsentToJSON };
@@ -34,6 +34,9 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
34
34
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
35
35
  'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
36
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'],
37
40
  'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
38
41
  };
39
42
  }
@@ -51,6 +54,9 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
51
54
  'ruleId': value.ruleId,
52
55
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
53
56
  'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
57
+ 'intent': value.intent,
58
+ 'intentSignature': value.intentSignature,
59
+ 'proposalId': value.proposalId,
54
60
  'shareSetId': value.shareSetId,
55
61
  };
56
62
  }
@@ -55,6 +55,28 @@ export interface WaasSignerPolicyLayerUpdateRequest {
55
55
  * @memberof WaasSignerPolicyLayerUpdateRequest
56
56
  */
57
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 WaasSignerPolicyLayerUpdateRequest
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 WaasSignerPolicyLayerUpdateRequest
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 WaasSignerPolicyLayerUpdateRequest
78
+ */
79
+ proposalId?: string | null;
58
80
  /**
59
81
  * Targets a share set other than the caller's own, as returned in
60
82
  * the wallet's shareSetId or otherShareSets. Omit to target the
@@ -30,6 +30,9 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
30
30
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
31
31
  'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
32
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'],
33
36
  'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
34
37
  };
35
38
  }
@@ -47,6 +50,9 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
47
50
  'ruleId': value.ruleId,
48
51
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
49
52
  'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
53
+ 'intent': value.intent,
54
+ 'intentSignature': value.intentSignature,
55
+ 'proposalId': value.proposalId,
50
56
  'shareSetId': value.shareSetId,
51
57
  };
52
58
  }
@@ -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.WaasWalletSelfPolicyLayerUpdateRequestOpEnum = void 0;
17
+ (function (WaasWalletSelfPolicyLayerUpdateRequestOpEnum) {
18
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
19
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
20
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
21
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
22
+ })(exports.WaasWalletSelfPolicyLayerUpdateRequestOpEnum || (exports.WaasWalletSelfPolicyLayerUpdateRequestOpEnum = {}));
23
+ function WaasWalletSelfPolicyLayerUpdateRequestFromJSON(json) {
24
+ return WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped(json);
25
+ }
26
+ function WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped(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 WaasWalletSelfPolicyLayerUpdateRequestToJSON(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.WaasWalletSelfPolicyLayerUpdateRequestFromJSON = WaasWalletSelfPolicyLayerUpdateRequestFromJSON;
63
+ exports.WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped = WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped;
64
+ exports.WaasWalletSelfPolicyLayerUpdateRequestToJSON = WaasWalletSelfPolicyLayerUpdateRequestToJSON;
@@ -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
+ *
18
+ * @export
19
+ * @interface WaasWalletSelfPolicyLayerUpdateRequest
20
+ */
21
+ export interface WaasWalletSelfPolicyLayerUpdateRequest {
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 WaasWalletSelfPolicyLayerUpdateRequest
26
+ */
27
+ op: WaasWalletSelfPolicyLayerUpdateRequestOpEnum;
28
+ /**
29
+ *
30
+ * @type {WaasPolicyRule}
31
+ * @memberof WaasWalletSelfPolicyLayerUpdateRequest
32
+ */
33
+ rule?: WaasPolicyRule;
34
+ /**
35
+ *
36
+ * @type {WaasPolicyDeclarativeRuleInput}
37
+ * @memberof WaasWalletSelfPolicyLayerUpdateRequest
38
+ */
39
+ declarativeRule?: WaasPolicyDeclarativeRuleInput;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof WaasWalletSelfPolicyLayerUpdateRequest
44
+ */
45
+ ruleId?: string;
46
+ /**
47
+ * Only used when op is batch — applied atomically in one enclave cycle
48
+ * @type {Array<WaasPolicyLayerRuleOperation>}
49
+ * @memberof WaasWalletSelfPolicyLayerUpdateRequest
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 WaasWalletSelfPolicyLayerUpdateRequest
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 WaasWalletSelfPolicyLayerUpdateRequest
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 WaasWalletSelfPolicyLayerUpdateRequest
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 WaasWalletSelfPolicyLayerUpdateRequest
78
+ */
79
+ proposalId?: string | null;
80
+ }
81
+ /**
82
+ * @export
83
+ * @enum {string}
84
+ */
85
+ export declare enum WaasWalletSelfPolicyLayerUpdateRequestOpEnum {
86
+ Upsert = "upsert",
87
+ Remove = "remove",
88
+ Batch = "batch",
89
+ Replace = "replace"
90
+ }
91
+ export declare function WaasWalletSelfPolicyLayerUpdateRequestFromJSON(json: any): WaasWalletSelfPolicyLayerUpdateRequest;
92
+ export declare function WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSelfPolicyLayerUpdateRequest;
93
+ export declare function WaasWalletSelfPolicyLayerUpdateRequestToJSON(value?: WaasWalletSelfPolicyLayerUpdateRequest | 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 WaasWalletSelfPolicyLayerUpdateRequestOpEnum;
13
+ (function (WaasWalletSelfPolicyLayerUpdateRequestOpEnum) {
14
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
15
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
16
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
17
+ WaasWalletSelfPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
18
+ })(WaasWalletSelfPolicyLayerUpdateRequestOpEnum || (WaasWalletSelfPolicyLayerUpdateRequestOpEnum = {}));
19
+ function WaasWalletSelfPolicyLayerUpdateRequestFromJSON(json) {
20
+ return WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped(json);
21
+ }
22
+ function WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped(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 WaasWalletSelfPolicyLayerUpdateRequestToJSON(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 { WaasWalletSelfPolicyLayerUpdateRequestFromJSON, WaasWalletSelfPolicyLayerUpdateRequestFromJSONTyped, WaasWalletSelfPolicyLayerUpdateRequestOpEnum, WaasWalletSelfPolicyLayerUpdateRequestToJSON };
@@ -124,7 +124,6 @@ export * from './BusinessAccountMutationVersion';
124
124
  export * from './BusinessAccountPolicyLayerResponse';
125
125
  export * from './BusinessAccountPolicyLayerResponseAllOf';
126
126
  export * from './BusinessAccountPolicyLayerUpdateRequest';
127
- export * from './BusinessAccountPolicyLayerUpdateRequestAllOf';
128
127
  export * from './BusinessAccountProperties';
129
128
  export * from './BusinessAccountProposal';
130
129
  export * from './BusinessAccountProposalApprovalRecord';
@@ -959,6 +958,7 @@ export * from './WaasPolicyDeclarativeApprovalRequirement';
959
958
  export * from './WaasPolicyDeclarativeRule';
960
959
  export * from './WaasPolicyDeclarativeRuleInput';
961
960
  export * from './WaasPolicyDeleteRequest';
961
+ export * from './WaasPolicyLayerConsent';
962
962
  export * from './WaasPolicyLayerResponse';
963
963
  export * from './WaasPolicyLayerResponseLayerContent';
964
964
  export * from './WaasPolicyLayerResponseRule';
@@ -1023,6 +1023,7 @@ export * from './WaasWalletByAddressResponse';
1023
1023
  export * from './WaasWalletByAddressResponseWallet';
1024
1024
  export * from './WaasWalletProperties';
1025
1025
  export * from './WaasWalletResponse';
1026
+ export * from './WaasWalletSelfPolicyLayerUpdateRequest';
1026
1027
  export * from './WaasWalletSettings';
1027
1028
  export * from './WaasWalletShareSetType';
1028
1029
  export * from './Wallet';