ox 1.8.5 → 1.8.7

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 (137) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/tempo/{MultisigConfig.d.ts → AccountConfig.d.ts} +116 -63
  3. package/dist/tempo/AccountConfig.d.ts.map +1 -0
  4. package/dist/tempo/{MultisigConfig.js → AccountConfig.js} +109 -55
  5. package/dist/tempo/AccountConfig.js.map +1 -0
  6. package/dist/tempo/{MultisigOperation.d.ts → AccountOperation.d.ts} +62 -62
  7. package/dist/tempo/AccountOperation.d.ts.map +1 -0
  8. package/dist/tempo/{MultisigOperation.js → AccountOperation.js} +64 -64
  9. package/dist/tempo/AccountOperation.js.map +1 -0
  10. package/dist/tempo/{MultisigSimulation.d.ts → AccountSimulation.d.ts} +21 -21
  11. package/dist/tempo/AccountSimulation.d.ts.map +1 -0
  12. package/dist/tempo/{MultisigSimulation.js → AccountSimulation.js} +20 -20
  13. package/dist/tempo/AccountSimulation.js.map +1 -0
  14. package/dist/tempo/KeyAuthorization.d.ts +37 -27
  15. package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
  16. package/dist/tempo/KeyAuthorization.js +17 -19
  17. package/dist/tempo/KeyAuthorization.js.map +1 -1
  18. package/dist/tempo/RpcSchemaTempo.d.ts +13 -13
  19. package/dist/tempo/RpcSchemaTempo.d.ts.map +1 -1
  20. package/dist/tempo/SignatureEnvelope.d.ts +36 -33
  21. package/dist/tempo/SignatureEnvelope.d.ts.map +1 -1
  22. package/dist/tempo/SignatureEnvelope.js +77 -77
  23. package/dist/tempo/SignatureEnvelope.js.map +1 -1
  24. package/dist/tempo/TokenRole.d.ts +4 -2
  25. package/dist/tempo/TokenRole.d.ts.map +1 -1
  26. package/dist/tempo/TokenRole.js +4 -1
  27. package/dist/tempo/TokenRole.js.map +1 -1
  28. package/dist/tempo/TransactionRequest.d.ts +11 -9
  29. package/dist/tempo/TransactionRequest.d.ts.map +1 -1
  30. package/dist/tempo/TransactionRequest.js +14 -10
  31. package/dist/tempo/TransactionRequest.js.map +1 -1
  32. package/dist/tempo/index.d.ts +56 -54
  33. package/dist/tempo/index.d.ts.map +1 -1
  34. package/dist/tempo/index.js +56 -54
  35. package/dist/tempo/index.js.map +1 -1
  36. package/dist/zod/tempo/{MultisigConfig.d.ts → AccountConfig.d.ts} +6 -6
  37. package/dist/zod/tempo/AccountConfig.d.ts.map +1 -0
  38. package/dist/zod/tempo/{MultisigConfig.js → AccountConfig.js} +12 -12
  39. package/dist/zod/tempo/AccountConfig.js.map +1 -0
  40. package/dist/zod/tempo/{MultisigOperation.d.ts → AccountOperation.d.ts} +5 -5
  41. package/dist/zod/tempo/AccountOperation.d.ts.map +1 -0
  42. package/dist/zod/tempo/{MultisigOperation.js → AccountOperation.js} +10 -10
  43. package/dist/zod/tempo/AccountOperation.js.map +1 -0
  44. package/dist/zod/tempo/{MultisigSimulation.d.ts → AccountSimulation.d.ts} +5 -5
  45. package/dist/zod/tempo/AccountSimulation.d.ts.map +1 -0
  46. package/dist/zod/tempo/AccountSimulation.js +44 -0
  47. package/dist/zod/tempo/AccountSimulation.js.map +1 -0
  48. package/dist/zod/tempo/AuthorizationTempo.d.ts +10 -10
  49. package/dist/zod/tempo/KeyAuthorization.d.ts +12 -12
  50. package/dist/zod/tempo/KeyAuthorization.js +6 -6
  51. package/dist/zod/tempo/KeyAuthorization.js.map +1 -1
  52. package/dist/zod/tempo/RpcSchemaTempo.d.ts +59 -59
  53. package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
  54. package/dist/zod/tempo/RpcSchemaTempo.js +28 -28
  55. package/dist/zod/tempo/RpcSchemaTempo.js.map +1 -1
  56. package/dist/zod/tempo/SignatureEnvelope.d.ts +7 -7
  57. package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -1
  58. package/dist/zod/tempo/SignatureEnvelope.js +22 -16
  59. package/dist/zod/tempo/SignatureEnvelope.js.map +1 -1
  60. package/dist/zod/tempo/TokenRole.d.ts +1 -1
  61. package/dist/zod/tempo/TokenRole.d.ts.map +1 -1
  62. package/dist/zod/tempo/Transaction.d.ts +24 -24
  63. package/dist/zod/tempo/TransactionRequest.d.ts +84 -84
  64. package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
  65. package/dist/zod/tempo/TransactionRequest.js +26 -17
  66. package/dist/zod/tempo/TransactionRequest.js.map +1 -1
  67. package/dist/zod/tempo/TxEnvelopeTempo.d.ts +12 -12
  68. package/dist/zod/tempo/ZoneRpcAuthentication.d.ts +3 -3
  69. package/dist/zod/tempo/z.d.ts +3 -3
  70. package/dist/zod/tempo/z.d.ts.map +1 -1
  71. package/dist/zod/tempo/z.js +3 -3
  72. package/dist/zod/tempo/z.js.map +1 -1
  73. package/package.json +31 -31
  74. package/src/tempo/{MultisigConfig.test-d.ts → AccountConfig.test-d.ts} +22 -12
  75. package/src/tempo/{MultisigConfig.test.ts → AccountConfig.test.ts} +155 -37
  76. package/src/tempo/{MultisigConfig.ts → AccountConfig.ts} +138 -66
  77. package/src/tempo/AccountOperation.test-d.ts +79 -0
  78. package/src/tempo/{MultisigOperation.test.ts → AccountOperation.test.ts} +97 -97
  79. package/src/tempo/{MultisigOperation.ts → AccountOperation.ts} +95 -97
  80. package/src/tempo/{MultisigSimulation.test-d.ts → AccountSimulation.test-d.ts} +7 -9
  81. package/src/tempo/{MultisigSimulation.test.ts → AccountSimulation.test.ts} +28 -28
  82. package/src/tempo/{MultisigSimulation.ts → AccountSimulation.ts} +28 -30
  83. package/src/tempo/KeyAuthorization.test-d.ts +15 -6
  84. package/src/tempo/KeyAuthorization.test.ts +117 -37
  85. package/src/tempo/KeyAuthorization.ts +68 -59
  86. package/src/tempo/RpcSchemaTempo.test-d.ts +19 -19
  87. package/src/tempo/RpcSchemaTempo.ts +13 -13
  88. package/src/tempo/SignatureEnvelope.test-d.ts +7 -7
  89. package/src/tempo/SignatureEnvelope.test.ts +34 -34
  90. package/src/tempo/SignatureEnvelope.ts +112 -108
  91. package/src/tempo/TokenRole.ts +4 -1
  92. package/src/tempo/Transaction.test.ts +4 -4
  93. package/src/tempo/TransactionRequest.test-d.ts +17 -6
  94. package/src/tempo/TransactionRequest.test.ts +32 -17
  95. package/src/tempo/TransactionRequest.ts +27 -19
  96. package/src/tempo/{multisig.e2e.test.ts → configurableAccounts.e2e.test.ts} +16 -16
  97. package/src/tempo/e2e.test.ts +32 -20
  98. package/src/tempo/index.ts +56 -54
  99. package/src/version.ts +1 -1
  100. package/src/zod/tempo/{MultisigConfig.ts → AccountConfig.ts} +12 -12
  101. package/src/zod/tempo/{MultisigOperation.ts → AccountOperation.ts} +9 -9
  102. package/src/zod/tempo/AccountSimulation.ts +53 -0
  103. package/src/zod/tempo/KeyAuthorization.ts +8 -8
  104. package/src/zod/tempo/RpcSchemaTempo.ts +28 -28
  105. package/src/zod/tempo/SignatureEnvelope.ts +23 -17
  106. package/src/zod/tempo/TransactionRequest.ts +29 -18
  107. package/src/zod/tempo/_test/AccountConfig.test-d.ts +13 -0
  108. package/src/zod/tempo/_test/{MultisigConfig.test.ts → AccountConfig.test.ts} +7 -7
  109. package/src/zod/tempo/_test/AccountOperation.test-d.ts +27 -0
  110. package/src/zod/tempo/_test/{MultisigOperation.test.ts → AccountOperation.test.ts} +9 -9
  111. package/src/zod/tempo/_test/AccountSimulation.test-d.ts +13 -0
  112. package/src/zod/tempo/_test/{MultisigSimulation.test.ts → AccountSimulation.test.ts} +13 -13
  113. package/src/zod/tempo/_test/KeyAuthorization.test.ts +9 -9
  114. package/src/zod/tempo/_test/RpcSchemaTempo.test-d.ts +27 -27
  115. package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +16 -18
  116. package/src/zod/tempo/_test/SignatureEnvelope.test-d.ts +5 -5
  117. package/src/zod/tempo/_test/SignatureEnvelope.test.ts +12 -9
  118. package/src/zod/tempo/_test/TransactionRequest.test.ts +28 -8
  119. package/src/zod/tempo/z.ts +3 -3
  120. package/dist/tempo/MultisigConfig.d.ts.map +0 -1
  121. package/dist/tempo/MultisigConfig.js.map +0 -1
  122. package/dist/tempo/MultisigOperation.d.ts.map +0 -1
  123. package/dist/tempo/MultisigOperation.js.map +0 -1
  124. package/dist/tempo/MultisigSimulation.d.ts.map +0 -1
  125. package/dist/tempo/MultisigSimulation.js.map +0 -1
  126. package/dist/zod/tempo/MultisigConfig.d.ts.map +0 -1
  127. package/dist/zod/tempo/MultisigConfig.js.map +0 -1
  128. package/dist/zod/tempo/MultisigOperation.d.ts.map +0 -1
  129. package/dist/zod/tempo/MultisigOperation.js.map +0 -1
  130. package/dist/zod/tempo/MultisigSimulation.d.ts.map +0 -1
  131. package/dist/zod/tempo/MultisigSimulation.js +0 -44
  132. package/dist/zod/tempo/MultisigSimulation.js.map +0 -1
  133. package/src/tempo/MultisigOperation.test-d.ts +0 -79
  134. package/src/zod/tempo/MultisigSimulation.ts +0 -53
  135. package/src/zod/tempo/_test/MultisigConfig.test-d.ts +0 -13
  136. package/src/zod/tempo/_test/MultisigOperation.test-d.ts +0 -27
  137. package/src/zod/tempo/_test/MultisigSimulation.test-d.ts +0 -13
@@ -1,5 +1,59 @@
1
1
  /** @entrypointCategory Tempo */
2
2
  // biome-ignore lint/complexity/noUselessEmptyExport: tsdoc
3
+ /**
4
+ * Configurable account configuration utilities (TIP-1107).
5
+ *
6
+ * Configurable accounts have weighted owners and an approval threshold that
7
+ * can change without changing the account address. Derives the stable account
8
+ * address from the initial configuration, computes configuration commitments,
9
+ * and computes the owner approval digest that owners sign.
10
+ *
11
+ * [TIP-1107](https://tips.sh/1107) · [TIP-1114](https://tips.sh/1114)
12
+ *
13
+ * @example
14
+ * ```ts twoslash
15
+ * import { AccountConfig } from 'ox/tempo'
16
+ *
17
+ * const initialConfig = AccountConfig.from({
18
+ * threshold: 2,
19
+ * owners: [
20
+ * {
21
+ * owner: '0x1111111111111111111111111111111111111111',
22
+ * weight: 1
23
+ * },
24
+ * {
25
+ * owner: '0x2222222222222222222222222222222222222222',
26
+ * weight: 1
27
+ * }
28
+ * ]
29
+ * })
30
+ *
31
+ * const account = AccountConfig.getAddress(initialConfig, {
32
+ * factory: '0x7171717171717171717171717171717171717171'
33
+ * })
34
+ * ```
35
+ *
36
+ * @category Reference
37
+ */
38
+ export * as AccountConfig from './AccountConfig.js';
39
+ /**
40
+ * Offchain configurable account transaction and key authorization operation utilities.
41
+ *
42
+ * Derives operation hashes, selects owner approvals, serializes transactions,
43
+ * validates operation state, and converts JSON-RPC representations.
44
+ *
45
+ * @category Reference
46
+ */
47
+ export * as AccountOperation from './AccountOperation.js';
48
+ /**
49
+ * Configurable account RPC simulation utilities.
50
+ *
51
+ * Converts the owner approvals and configuration modeled during gas estimation
52
+ * between their domain and Tempo JSON-RPC representations.
53
+ *
54
+ * @category Reference
55
+ */
56
+ export * as AccountSimulation from './AccountSimulation.js';
3
57
  /**
4
58
  * Utilities for Tempo-flavoured EIP-7702 authorizations.
5
59
  *
@@ -140,58 +194,6 @@ export * as EarnShares from './EarnShares.js';
140
194
  * @category Reference
141
195
  */
142
196
  export * as KeyAuthorization from './KeyAuthorization.js';
143
- /**
144
- * Native multisig account utilities (TIP-1061).
145
- *
146
- * Derives stable multisig account addresses from a weighted owner
147
- * configuration, and computes the owner approval digest that owners sign.
148
- *
149
- * [TIP-1061](https://tips.sh/1061)
150
- *
151
- * @example
152
- * ```ts twoslash
153
- * import { MultisigConfig } from 'ox/tempo'
154
- *
155
- * const initialConfig = MultisigConfig.from({
156
- * threshold: 2,
157
- * owners: [
158
- * {
159
- * owner: '0x1111111111111111111111111111111111111111',
160
- * weight: 1
161
- * },
162
- * {
163
- * owner: '0x2222222222222222222222222222222222222222',
164
- * weight: 1
165
- * }
166
- * ]
167
- * })
168
- *
169
- * const account = MultisigConfig.getAddress(initialConfig, {
170
- * factory: '0x7171717171717171717171717171717171717171'
171
- * })
172
- * ```
173
- *
174
- * @category Reference
175
- */
176
- export * as MultisigConfig from './MultisigConfig.js';
177
- /**
178
- * Offchain multisig transaction and key authorization operation utilities.
179
- *
180
- * Derives operation hashes, selects owner approvals, serializes transactions,
181
- * validates operation state, and converts JSON-RPC representations.
182
- *
183
- * @category Reference
184
- */
185
- export * as MultisigOperation from './MultisigOperation.js';
186
- /**
187
- * Native multisig RPC simulation utilities.
188
- *
189
- * Converts complete root and nested owner specs between their domain and Tempo
190
- * JSON-RPC representations.
191
- *
192
- * @category Reference
193
- */
194
- export * as MultisigSimulation from './MultisigSimulation.js';
195
197
  /**
196
198
  * Utilities for constructing period durations (in seconds) for recurring spending limits.
197
199
  *
@@ -269,7 +271,7 @@ export * as PoolId from './PoolId.js';
269
271
  */
270
272
  export * as ReceivePolicyReceipt from './ReceivePolicyReceipt.js';
271
273
  /**
272
- * JSON-RPC schemas for the `tempo_` and `multisig_` namespaces.
274
+ * JSON-RPC schemas for the `tempo_` and `account_` namespaces.
273
275
  *
274
276
  * @example
275
277
  * ```ts twoslash
@@ -279,7 +281,7 @@ export * as ReceivePolicyReceipt from './ReceivePolicyReceipt.js';
279
281
  *
280
282
  * const schema = RpcSchema.from<
281
283
  * | RpcSchema.Default
282
- * | RpcSchemaTempo.Multisig
284
+ * | RpcSchemaTempo.Account
283
285
  * | RpcSchemaTempo.Tempo
284
286
  * >()
285
287
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,2DAA2D;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAi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;;;;;;;;;GAqCG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import * as z from 'zod/mini';
2
- /** Multisig owner schema. */
2
+ /** Account config owner schema. */
3
3
  export declare const Owner: z.ZodMiniObject<{
4
4
  owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
5
5
  weight: z.ZodMiniNumber<number>;
6
6
  }, z.core.$strip>;
7
- /** Native multisig configuration domain schema. */
7
+ /** Account configuration domain schema. */
8
8
  export declare const Config: z.ZodMiniObject<{
9
9
  owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
10
10
  owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -14,7 +14,7 @@ export declare const Config: z.ZodMiniObject<{
14
14
  threshold: z.ZodMiniNumber<number>;
15
15
  version: z.ZodMiniBigInt<bigint>;
16
16
  }, z.core.$strip>;
17
- /** Native multisig configuration RPC schema. */
17
+ /** Account configuration RPC schema. */
18
18
  export declare const Rpc: z.ZodMiniObject<{
19
19
  owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
20
20
  owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -24,8 +24,8 @@ export declare const Rpc: z.ZodMiniObject<{
24
24
  threshold: z.ZodMiniNumber<number>;
25
25
  version: z.ZodMiniTemplateLiteral<`0x${string}`>;
26
26
  }, z.core.$strip>;
27
- /** Codec decoding an RPC multisig configuration into a domain configuration. */
28
- export declare const MultisigConfig: z.ZodMiniCodec<z.ZodMiniObject<{
27
+ /** Codec decoding an RPC account configuration into a domain configuration. */
28
+ export declare const AccountConfig: z.ZodMiniCodec<z.ZodMiniObject<{
29
29
  owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
30
30
  owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
31
31
  weight: z.ZodMiniNumber<number>;
@@ -42,4 +42,4 @@ export declare const MultisigConfig: z.ZodMiniCodec<z.ZodMiniObject<{
42
42
  threshold: z.ZodMiniNumber<number>;
43
43
  version: z.ZodMiniBigInt<bigint>;
44
44
  }, z.core.$strip>>;
45
- //# sourceMappingURL=MultisigConfig.d.ts.map
45
+ //# sourceMappingURL=AccountConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountConfig.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/AccountConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,mCAAmC;AACnC,eAAO,MAAM,KAAK;;;iBAGhB,CAAA;AAEF,2CAA2C;AAC3C,eAAO,MAAM,MAAM;;;;;;;;iBAYhB,CAAA;AAEH,wCAAwC;AACxC,eAAO,MAAM,GAAG;;;;;;;;iBAgBb,CAAA;AAEH,+EAA+E;AAC/E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;kBAGxB,CAAA"}
@@ -1,14 +1,14 @@
1
1
  /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
- import * as core_MultisigConfig from '../../tempo/MultisigConfig.js';
2
+ import * as core_AccountConfig from '../../tempo/AccountConfig.js';
3
3
  import * as z_Address from '../Address.js';
4
4
  import * as z_Hex from '../Hex.js';
5
5
  import * as z from 'zod/mini';
6
- /** Multisig owner schema. */
6
+ /** Account config owner schema. */
7
7
  export const Owner = z.object({
8
8
  owner: z_Address.Address,
9
9
  weight: z.number(),
10
10
  });
11
- /** Native multisig configuration domain schema. */
11
+ /** Account configuration domain schema. */
12
12
  export const Config = z
13
13
  .object({
14
14
  owners: z.readonly(z.array(Owner)),
@@ -16,8 +16,8 @@ export const Config = z
16
16
  threshold: z.number(),
17
17
  version: z.bigint(),
18
18
  })
19
- .check(z.refine((value) => core_MultisigConfig.validate(value), 'expected valid native multisig configuration'));
20
- /** Native multisig configuration RPC schema. */
19
+ .check(z.refine((value) => core_AccountConfig.validate(value), 'expected valid account configuration'));
20
+ /** Account configuration RPC schema. */
21
21
  export const Rpc = z
22
22
  .object({
23
23
  owners: z.readonly(z.array(Owner)),
@@ -27,16 +27,16 @@ export const Rpc = z
27
27
  })
28
28
  .check(z.refine((value) => {
29
29
  try {
30
- core_MultisigConfig.fromRpc(value);
30
+ core_AccountConfig.fromRpc(value);
31
31
  return true;
32
32
  }
33
33
  catch {
34
34
  return false;
35
35
  }
36
- }, 'expected valid native multisig configuration'));
37
- /** Codec decoding an RPC multisig configuration into a domain configuration. */
38
- export const MultisigConfig = z.codec(Rpc, Config, {
39
- decode: (value) => core_MultisigConfig.fromRpc(value),
40
- encode: (value) => core_MultisigConfig.toRpc(value),
36
+ }, 'expected valid account configuration'));
37
+ /** Codec decoding an RPC account configuration into a domain configuration. */
38
+ export const AccountConfig = z.codec(Rpc, Config, {
39
+ decode: (value) => core_AccountConfig.fromRpc(value),
40
+ encode: (value) => core_AccountConfig.toRpc(value),
41
41
  });
42
- //# sourceMappingURL=MultisigConfig.js.map
42
+ //# sourceMappingURL=AccountConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountConfig.js","sourceRoot":"","sources":["../../../src/zod/tempo/AccountConfig.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,kBAAkB,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,mCAAmC;AACnC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO;IACxB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAEF,2CAA2C;AAC3C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC;KACpB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,GAAG;IACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC;KACD,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7C,sCAAsC,CACvC,CACF,CAAA;AAEH,wCAAwC;AACxC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;KACjB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,GAAG;IACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,KAAK,CAAC,GAAG;CACnB,CAAC;KACD,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;IACjB,IAAI,CAAC;QACH,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACjC,OAAO,IAAI,CAAA;IACb,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC,EAAE,sCAAsC,CAAC,CAC3C,CAAA;AAEH,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE;IAChD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC;IACpD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC;CACnD,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod/mini';
2
- /** Fields shared by every multisig operation schema. */
2
+ /** Fields shared by every account operation schema. */
3
3
  export declare const Base: z.ZodMiniObject<{
4
4
  account: z.ZodMiniTemplateLiteral<`0x${string}`>;
5
5
  approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
@@ -27,7 +27,7 @@ export declare const Base: z.ZodMiniObject<{
27
27
  updatedAt: z.ZodMiniNumber<number>;
28
28
  weight: z.ZodMiniNumber<number>;
29
29
  }, z.core.$strip>;
30
- /** Multisig transaction approval operation schema. */
30
+ /** Account transaction approval operation schema. */
31
31
  export declare const TransactionOperation: z.ZodMiniObject<{
32
32
  expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
33
33
  status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
@@ -61,7 +61,7 @@ export declare const TransactionOperation: z.ZodMiniObject<{
61
61
  updatedAt: z.ZodMiniNumber<number>;
62
62
  weight: z.ZodMiniNumber<number>;
63
63
  }, z.core.$strip>;
64
- /** Multisig key authorization approval operation schema. */
64
+ /** Account key authorization approval operation schema. */
65
65
  export declare const KeyAuthorizationOperation: z.ZodMiniObject<{
66
66
  keyAuthorization: z.ZodMiniTemplateLiteral<`0x${string}`>;
67
67
  status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"success">]>;
@@ -92,7 +92,7 @@ export declare const KeyAuthorizationOperation: z.ZodMiniObject<{
92
92
  updatedAt: z.ZodMiniNumber<number>;
93
93
  weight: z.ZodMiniNumber<number>;
94
94
  }, z.core.$strip>;
95
- /** Transaction or key authorization multisig operation schema. */
95
+ /** Transaction or key authorization account operation schema. */
96
96
  export declare const Operation: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
97
97
  expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
98
98
  status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
@@ -155,4 +155,4 @@ export declare const Operation: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
155
155
  updatedAt: z.ZodMiniNumber<number>;
156
156
  weight: z.ZodMiniNumber<number>;
157
157
  }, z.core.$strip>]>;
158
- //# sourceMappingURL=MultisigOperation.d.ts.map
158
+ //# sourceMappingURL=AccountOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountOperation.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/AccountOperation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AA0B7B,uDAAuD;AACvD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAA;AAE1C,qDAAqD;AACrD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAclB,CAAA;AAEf,2DAA2D;AAC3D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAA;AAEf,iEAAiE;AACjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGpB,CAAA"}
@@ -1,15 +1,15 @@
1
1
  /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
- import * as core_MultisigOperation from '../../tempo/MultisigOperation.js';
2
+ import * as core_AccountOperation from '../../tempo/AccountOperation.js';
3
3
  import * as z_Address from '../Address.js';
4
4
  import * as z_Hash from '../Hash.js';
5
5
  import * as z_Hex from '../Hex.js';
6
6
  import * as z from 'zod/mini';
7
- import * as z_MultisigConfig from './MultisigConfig.js';
7
+ import * as z_AccountConfig from './AccountConfig.js';
8
8
  function baseFields() {
9
9
  return {
10
10
  account: z_Address.Address,
11
11
  approvals: z.readonly(z.array(z_Hex.Hex)),
12
- config: z_MultisigConfig.MultisigConfig,
12
+ config: z_AccountConfig.AccountConfig,
13
13
  createdAt: z.number(),
14
14
  hash: z_Hash.Hash,
15
15
  signatureCount: z.number(),
@@ -20,16 +20,16 @@ function baseFields() {
20
20
  }
21
21
  const valid = z.refine((value) => {
22
22
  try {
23
- core_MultisigOperation.from(value);
23
+ core_AccountOperation.from(value);
24
24
  return true;
25
25
  }
26
26
  catch {
27
27
  return false;
28
28
  }
29
- }, 'expected valid multisig operation');
30
- /** Fields shared by every multisig operation schema. */
29
+ }, 'expected valid account operation');
30
+ /** Fields shared by every account operation schema. */
31
31
  export const Base = z.object(baseFields());
32
- /** Multisig transaction approval operation schema. */
32
+ /** Account transaction approval operation schema. */
33
33
  export const TransactionOperation = z
34
34
  .object({
35
35
  ...baseFields(),
@@ -45,7 +45,7 @@ export const TransactionOperation = z
45
45
  type: z.literal('transaction'),
46
46
  })
47
47
  .check(valid);
48
- /** Multisig key authorization approval operation schema. */
48
+ /** Account key authorization approval operation schema. */
49
49
  export const KeyAuthorizationOperation = z
50
50
  .object({
51
51
  ...baseFields(),
@@ -54,9 +54,9 @@ export const KeyAuthorizationOperation = z
54
54
  type: z.literal('keyAuthorization'),
55
55
  })
56
56
  .check(valid);
57
- /** Transaction or key authorization multisig operation schema. */
57
+ /** Transaction or key authorization account operation schema. */
58
58
  export const Operation = z.union([
59
59
  TransactionOperation,
60
60
  KeyAuthorizationOperation,
61
61
  ]);
62
- //# sourceMappingURL=MultisigOperation.js.map
62
+ //# sourceMappingURL=AccountOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountOperation.js","sourceRoot":"","sources":["../../../src/zod/tempo/AccountOperation.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;A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IACF,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;IACrC,WAAW,EAAE,KAAK,CAAC,GAAG;IACtB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CAC/B,CAAC;KACD,KAAK,CAAC,KAAK,CAAC,CAAA;AAEf,2DAA2D;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,GAAG,UAAU,EAAE;IACf,gBAAgB,EAAE,KAAK,CAAC,GAAG;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACpC,CAAC;KACD,KAAK,CAAC,KAAK,CAAC,CAAA;AAEf,iEAAiE;AACjE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/B,oBAAoB;IACpB,yBAAyB;CAC1B,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod/mini';
2
- /** Native multisig simulation spec schema. */
2
+ /** Account simulation spec schema. */
3
3
  export declare const Domain: z.ZodMiniObject<{
4
4
  approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
5
5
  keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -16,8 +16,8 @@ export declare const Domain: z.ZodMiniObject<{
16
16
  version: z.ZodMiniBigInt<bigint>;
17
17
  }, z.core.$strip>;
18
18
  }, z.core.$strip>;
19
- /** Codec decoding an RPC multisig simulation spec into its domain representation. */
20
- export declare const MultisigSimulation: z.ZodMiniCodec<z.ZodMiniObject<{
19
+ /** Codec decoding an RPC account simulation spec into its domain representation. */
20
+ export declare const AccountSimulation: z.ZodMiniCodec<z.ZodMiniObject<{
21
21
  approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
22
22
  keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
23
23
  keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
@@ -40,7 +40,7 @@ export declare const MultisigSimulation: z.ZodMiniCodec<z.ZodMiniObject<{
40
40
  version: z.ZodMiniBigInt<bigint>;
41
41
  }, z.core.$strip>;
42
42
  }, z.core.$strip>>;
43
- /** RPC native multisig simulation spec schema. */
43
+ /** RPC account simulation spec schema. */
44
44
  export declare const Rpc: z.ZodMiniObject<{
45
45
  approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
46
46
  keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -49,4 +49,4 @@ export declare const Rpc: z.ZodMiniObject<{
49
49
  }, z.core.$strict>>>;
50
50
  config: z.ZodMiniTemplateLiteral<`0x${string}`>;
51
51
  }, z.core.$strip>;
52
- //# sourceMappingURL=MultisigSimulation.d.ts.map
52
+ //# sourceMappingURL=AccountSimulation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountSimulation.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/AccountSimulation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAU7B,sCAAsC;AACtC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;iBAOjB,CAAA;AAsBF,oFAAoF;AACpF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;kBAG5B,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,GAAG;;;;;;;iBAAO,CAAA"}
@@ -0,0 +1,44 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as core_AccountConfig from '../../tempo/AccountConfig.js';
3
+ import * as core_AccountSimulation from '../../tempo/AccountSimulation.js';
4
+ import * as z_Address from '../Address.js';
5
+ import * as z_Hex from '../Hex.js';
6
+ import * as z from 'zod/mini';
7
+ import * as z_AccountConfig from './AccountConfig.js';
8
+ import * as z_SignatureEnvelope from './SignatureEnvelope.js';
9
+ const PrimitiveApproval = z.strictObject({
10
+ keyData: z.optional(z_Hex.Hex),
11
+ keyType: z.optional(z_SignatureEnvelope.Type),
12
+ owner: z_Address.Address,
13
+ });
14
+ /** Account simulation spec schema. */
15
+ export const Domain = z.object({
16
+ approvals: z.readonly(z
17
+ .array(PrimitiveApproval)
18
+ .check(z.maxLength(core_AccountConfig.maxSignatures))),
19
+ config: z_AccountConfig.Config,
20
+ });
21
+ const Rpc_ = z
22
+ .object({
23
+ approvals: z.readonly(z
24
+ .array(PrimitiveApproval)
25
+ .check(z.maxLength(core_AccountConfig.maxSignatures))),
26
+ config: z_Hex.Hex,
27
+ })
28
+ .check(z.refine((value) => {
29
+ try {
30
+ core_AccountSimulation.fromRpc(value);
31
+ return true;
32
+ }
33
+ catch {
34
+ return false;
35
+ }
36
+ }, 'expected valid account simulation spec'));
37
+ /** Codec decoding an RPC account simulation spec into its domain representation. */
38
+ export const AccountSimulation = z.codec(Rpc_, Domain, {
39
+ decode: (value) => core_AccountSimulation.fromRpc(value),
40
+ encode: (value) => core_AccountSimulation.toRpc(value),
41
+ });
42
+ /** RPC account simulation spec schema. */
43
+ export const Rpc = Rpc_;
44
+ //# sourceMappingURL=AccountSimulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountSimulation.js","sourceRoot":"","sources":["../../../src/zod/tempo/AccountSimulation.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,kBAAkB,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,sBA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,KAAK,CAAA;IACd,CAAC;AACH,CAAC,EAAE,wCAAwC,CAAC,CAC7C,CAAA;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE;IACrD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,KAAK,CAAC;IACxD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;CACvD,CAAC,CAAA;AAEF,0CAA0C;AAC1C,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,CAAA"}
@@ -130,7 +130,7 @@ export declare const Signed: z.ZodMiniObject<{
130
130
  }, z.core.$strip>;
131
131
  type: z.ZodMiniLiteral<"webAuthn">;
132
132
  }, z.core.$strip>]>>>;
133
- type: z.ZodMiniLiteral<"multisig">;
133
+ type: z.ZodMiniLiteral<"configurable">;
134
134
  }, z.core.$strip>]>>;
135
135
  }, z.core.$strip>;
136
136
  /** Encode-only signed AA authorization schema accepting numberish `toRpc` inputs. */
@@ -250,7 +250,7 @@ export declare const SignedToRpc: z.ZodMiniObject<{
250
250
  }, z.core.$strip>;
251
251
  type: z.ZodMiniLiteral<"webAuthn">;
252
252
  }, z.core.$strip>]>>>;
253
- type: z.ZodMiniLiteral<"multisig">;
253
+ type: z.ZodMiniLiteral<"configurable">;
254
254
  }, z.core.$strip>]>>;
255
255
  }, z.core.$strip>;
256
256
  /** Decoded signed AA authorization schema. */
@@ -344,7 +344,7 @@ export declare const Domain: z.ZodMiniObject<{
344
344
  }, z.core.$strip>;
345
345
  type: z.ZodMiniLiteral<"webAuthn">;
346
346
  }, z.core.$strip>]>>>;
347
- type: z.ZodMiniLiteral<"multisig">;
347
+ type: z.ZodMiniLiteral<"configurable">;
348
348
  }, z.core.$strip>]>;
349
349
  }, z.core.$strip>;
350
350
  /** Decoded signed AA authorization list schema. */
@@ -438,7 +438,7 @@ export declare const DomainList: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObjec
438
438
  }, z.core.$strip>;
439
439
  type: z.ZodMiniLiteral<"webAuthn">;
440
440
  }, z.core.$strip>]>>>;
441
- type: z.ZodMiniLiteral<"multisig">;
441
+ type: z.ZodMiniLiteral<"configurable">;
442
442
  }, z.core.$strip>]>;
443
443
  }, z.core.$strip>>>;
444
444
  /** AA authorization schema. */
@@ -558,7 +558,7 @@ export declare const AuthorizationTempo: z.ZodMiniUnion<readonly [z.ZodMiniObjec
558
558
  }, z.core.$strip>;
559
559
  type: z.ZodMiniLiteral<"webAuthn">;
560
560
  }, z.core.$strip>]>>>;
561
- type: z.ZodMiniLiteral<"multisig">;
561
+ type: z.ZodMiniLiteral<"configurable">;
562
562
  }, z.core.$strip>]>>;
563
563
  }, z.core.$strip>, z.ZodMiniObject<{
564
564
  address: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -683,7 +683,7 @@ export declare const AuthorizationTempoToRpc: z.ZodMiniUnion<readonly [z.ZodMini
683
683
  }, z.core.$strip>;
684
684
  type: z.ZodMiniLiteral<"webAuthn">;
685
685
  }, z.core.$strip>]>>>;
686
- type: z.ZodMiniLiteral<"multisig">;
686
+ type: z.ZodMiniLiteral<"configurable">;
687
687
  }, z.core.$strip>]>>;
688
688
  }, z.core.$strip>, z.ZodMiniObject<{
689
689
  address: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -808,7 +808,7 @@ export declare const List: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<reado
808
808
  }, z.core.$strip>;
809
809
  type: z.ZodMiniLiteral<"webAuthn">;
810
810
  }, z.core.$strip>]>>>;
811
- type: z.ZodMiniLiteral<"multisig">;
811
+ type: z.ZodMiniLiteral<"configurable">;
812
812
  }, z.core.$strip>]>>;
813
813
  }, z.core.$strip>, z.ZodMiniObject<{
814
814
  address: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -933,7 +933,7 @@ export declare const ListToRpc: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<
933
933
  }, z.core.$strip>;
934
934
  type: z.ZodMiniLiteral<"webAuthn">;
935
935
  }, z.core.$strip>]>>>;
936
- type: z.ZodMiniLiteral<"multisig">;
936
+ type: z.ZodMiniLiteral<"configurable">;
937
937
  }, z.core.$strip>]>>;
938
938
  }, z.core.$strip>, z.ZodMiniObject<{
939
939
  address: z.ZodMiniTemplateLiteral<`0x${string}`>;
@@ -1058,7 +1058,7 @@ export declare const ListSigned: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObjec
1058
1058
  }, z.core.$strip>;
1059
1059
  type: z.ZodMiniLiteral<"webAuthn">;
1060
1060
  }, z.core.$strip>]>>>;
1061
- type: z.ZodMiniLiteral<"multisig">;
1061
+ type: z.ZodMiniLiteral<"configurable">;
1062
1062
  }, z.core.$strip>]>>;
1063
1063
  }, z.core.$strip>>>;
1064
1064
  /** Encode-only signed AA authorization list schema accepting numberish `toRpc` inputs. */
@@ -1178,7 +1178,7 @@ export declare const ListSignedToRpc: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMini
1178
1178
  }, z.core.$strip>;
1179
1179
  type: z.ZodMiniLiteral<"webAuthn">;
1180
1180
  }, z.core.$strip>]>>>;
1181
- type: z.ZodMiniLiteral<"multisig">;
1181
+ type: z.ZodMiniLiteral<"configurable">;
1182
1182
  }, z.core.$strip>]>>;
1183
1183
  }, z.core.$strip>>>;
1184
1184
  /** RPC AA authorization schema. */
@@ -176,9 +176,9 @@ export declare const Domain: z.ZodMiniObject<{
176
176
  }, z.core.$strip>;
177
177
  type: z.ZodMiniLiteral<"webAuthn">;
178
178
  }, z.core.$strip>]>>>;
179
- type: z.ZodMiniLiteral<"multisig">;
179
+ type: z.ZodMiniLiteral<"configurable">;
180
180
  }, z.core.$strip>]>;
181
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
181
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
182
182
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
183
183
  }, z.core.$strip>;
184
184
  /** Encode-only decoded key authorization schema accepting numberish `toRpc` inputs. */
@@ -278,9 +278,9 @@ export declare const DomainToRpc: z.ZodMiniObject<{
278
278
  }, z.core.$strip>;
279
279
  type: z.ZodMiniLiteral<"webAuthn">;
280
280
  }, z.core.$strip>]>>>;
281
- type: z.ZodMiniLiteral<"multisig">;
281
+ type: z.ZodMiniLiteral<"configurable">;
282
282
  }, z.core.$strip>]>;
283
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
283
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
284
284
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
285
285
  }, z.core.$strip>;
286
286
  /** Codec decoding an RPC key authorization into a signed key authorization. */
@@ -421,9 +421,9 @@ export declare const KeyAuthorization: z.ZodMiniCodec<z.ZodMiniObject<{
421
421
  }, z.core.$strip>;
422
422
  type: z.ZodMiniLiteral<"webAuthn">;
423
423
  }, z.core.$strip>]>>>;
424
- type: z.ZodMiniLiteral<"multisig">;
424
+ type: z.ZodMiniLiteral<"configurable">;
425
425
  }, z.core.$strip>]>;
426
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
426
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
427
427
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
428
428
  }, z.core.$strip>>;
429
429
  /** Encode-only key authorization codec accepting numberish `toRpc` inputs. */
@@ -564,9 +564,9 @@ export declare const KeyAuthorizationToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
564
564
  }, z.core.$strip>;
565
565
  type: z.ZodMiniLiteral<"webAuthn">;
566
566
  }, z.core.$strip>]>>>;
567
- type: z.ZodMiniLiteral<"multisig">;
567
+ type: z.ZodMiniLiteral<"configurable">;
568
568
  }, z.core.$strip>]>;
569
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
569
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
570
570
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
571
571
  }, z.core.$strip>>;
572
572
  /** Signed key authorization schema. */
@@ -707,9 +707,9 @@ export declare const Signed: z.ZodMiniCodec<z.ZodMiniObject<{
707
707
  }, z.core.$strip>;
708
708
  type: z.ZodMiniLiteral<"webAuthn">;
709
709
  }, z.core.$strip>]>>>;
710
- type: z.ZodMiniLiteral<"multisig">;
710
+ type: z.ZodMiniLiteral<"configurable">;
711
711
  }, z.core.$strip>]>;
712
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
712
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
713
713
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
714
714
  }, z.core.$strip>>;
715
715
  /** Encode-only signed key authorization schema accepting numberish `toRpc` inputs. */
@@ -850,9 +850,9 @@ export declare const SignedToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
850
850
  }, z.core.$strip>;
851
851
  type: z.ZodMiniLiteral<"webAuthn">;
852
852
  }, z.core.$strip>]>>>;
853
- type: z.ZodMiniLiteral<"multisig">;
853
+ type: z.ZodMiniLiteral<"configurable">;
854
854
  }, z.core.$strip>]>;
855
- type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"multisig">]>;
855
+ type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
856
856
  witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
857
857
  }, z.core.$strip>>;
858
858
  //# sourceMappingURL=KeyAuthorization.d.ts.map