@eco-foundation/api-schemas 0.16.0 → 0.18.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.
package/README.md CHANGED
@@ -14,13 +14,13 @@ While the package is 0.x, pin the patch range or the exact version:
14
14
  ```json
15
15
  {
16
16
  "dependencies": {
17
- "@eco-foundation/api-schemas": "~0.16.0"
17
+ "@eco-foundation/api-schemas": "~0.18.0"
18
18
  }
19
19
  }
20
20
  ```
21
21
 
22
22
  **Never write `^0`.** npm resolves `^0.x` as `>=0.0.0 <1.0.0`, so it silently accepts every
23
- future breaking `0.y` — it is not a pin at all. Use `~0.16.0` or the exact `0.16.0`.
23
+ future breaking `0.y` — it is not a pin at all. Use `~0.18.0` or the exact `0.18.0`.
24
24
 
25
25
  A matching version string is not evidence of a matching artifact: also compare
26
26
  `V1_SCHEMA_DIGEST` (see [Invariants](#invariants-enforced-in-ci)). Two builds both called
@@ -30,6 +30,30 @@ A matching version string is not evidence of a matching artifact: also compare
30
30
  zod-bearing entry point. Which case you are in is decided entirely by your imports; see
31
31
  [Consumers](#consumers).
32
32
 
33
+ ## Migrating 0.17.0 -> 0.18.0
34
+
35
+ **Non-breaking for callers, a new version for consumers.** Every quote entry (the envelope and each `quotes[]` entry) gains an optional `intentExecutionType`: `GASLESS` or `SELF_PUBLISH`, the execution type the solver priced that entry for. One response can mix both, and their amounts can differ. A `GASLESS` entry is submitted through the submit endpoint and the solver publishes and funds it; a `SELF_PUBLISH` entry is published and funded on chain by the caller. It is `null` or absent when the server does not know it. It is ADVISORY: not part of the signed `Quote` typed data, so a server's submit endpoint enforces the type from its own record. The envelope's value must equal `quotes[0]`'s (P8). A 0.17.x reader ignores it (the quote objects are loose); read it with `IntentExecutionTypeTolerant` so a type added later is tagged, not rejected.
36
+
37
+ The quote request gains an optional `intentExecutionTypes`: the execution types the caller can use (non-empty, no repeats). Absent means the server's default. A server answers only with entries of those types and refuses a request it cannot serve. The request schema is strict, so a 0.17.x server rejects the key with a 400, and a 0.18 server that does not honour it must refuse it rather than ignore it.
38
+
39
+ New exports: `INTENT_EXECUTION_TYPES`, `IntentExecutionType`, `IntentExecutionTypeTolerant`, and the zod-free `V1IntentExecutionType`.
40
+
41
+ **`V1_SCHEMA_DIGEST` MOVES** to `b23d74346efca649d0a85f815d0b5605bb3e05f76c1de79c1d8a00b860802138`; it was `83eab94c7d9445ccb51995fd231b774c6ce48db7b9d9c78b0c51f04fe5801f30` on `0.17.0`, because `openapi/v1.json` changed. Every consumer running `assertNoSkew` moves in the same rollout. `errors/catalog.lock.json` is unchanged and no golden fixture changes.
42
+
43
+ ## Migrating 0.16.0 -> 0.17.0
44
+
45
+ **BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). One new related-intent role, `chainer-child`, plus an optional `chainerOrder` on step intents, so a Solana-source chainer quote can be published. No request change.
46
+
47
+ **`V1_SCHEMA_DIGEST` MOVES** to `83eab94c7d9445ccb51995fd231b774c6ce48db7b9d9c78b0c51f04fe5801f30`; it was `d8c618c2c21d1da2173f941c324530c440c3188f93b18f63a11596988ca1bfa7` on `0.16.0`. Every consumer running `assertNoSkew` moves in the same rollout.
48
+
49
+ **1. `RELATED_INTENT_ROLES` gains `'chainer-child'`**; `RelatedIntentRole`, `RelatedIntentRoleTolerant` and the zod-free `V1RelatedIntentRole` follow, so `steps[].intents[].role` may carry the new literal. This is the breaking item. A 0.16.x reader on the strict `RelatedIntentRole` REJECTS it; one on `RelatedIntentRoleTolerant` receives `{ unknown: 'chainer-child' }`. The router validates every solver step intent through the strict schema and drops the whole quote when a step names an intent it could not map, so a router on `~0.16.0` returns `no-route-found` for every Solana-source chainer quote. Roll the router to `~0.17.0` to publish them.
50
+
51
+ **2. What `chainer-child` means.** The Solana chainer's EXPECTED child intent: its hash moves with the measured swap output, so it is not the hash that lands on chain. It carries `routeHash` and `chainerOrder`, never `bucketIndex`.
52
+
53
+ **3. `StepIntentSchema` gains an optional `chainerOrder`** (`ChainerOrderSchema`, zod-free `V1ChainerOrder`): `encodedOrder` and `encodedTemplate` (hex bytes), `templateHash` and `paramsHash` (32-byte hex), and `programId`, `escrowAuthority`, `tokenProgram`, `escrowAta` (Solana addresses). It lets a caller verify offline that the local intent's swap pays the escrow the Order commits to; check `programId` against the chainer program you trust.
54
+
55
+ **4. Consumers** pin `~0.17.0` and re-run `assertNoSkew`. `errors/catalog.lock.json` is unchanged (no new error code). `openapi/v1.json` is regenerated. No golden fixture changes.
56
+
33
57
  ## Migrating 0.14.0 or 0.15.0 -> 0.16.0
34
58
 
35
59
  **From 0.14.0: not breaking.** `GET /v1/intents/status` keeps the 0.14 request and response; 0.16.0 only adds optional members, each absent when the server has no source for it:
@@ -1,5 +1,5 @@
1
1
  {
2
- "digest": "d8c618c2c21d1da2173f941c324530c440c3188f93b18f63a11596988ca1bfa7",
2
+ "digest": "b23d74346efca649d0a85f815d0b5605bb3e05f76c1de79c1d8a00b860802138",
3
3
  "inputs": [
4
4
  "errors/catalog.lock.json",
5
5
  "openapi/v1.json"
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ export { generateOpenApiDocument, STABLE_TAG } from './openapi';
3
3
  export type { V1Fixture } from './testing';
4
4
  export { assertMatchesV1Schema, loadV1Fixtures } from './testing';
5
5
  export * as v1 from './v1';
6
- export type { LegacyCodeRef, V1Chain, V1ChainType, V1DepositAddress, V1DepositAddressChainStatus, V1DepositAddressCreateRequest, V1DepositAddressCreateResponse, V1DepositAddressType, V1DestinationCall, V1ErrorCode, V1ErrorDefinition, V1Execution, V1Fee, V1FeeToken, V1FeeType, V1FundingTransaction, V1GaslessJob, V1GaslessJobStatus, V1GaslessSubState, V1GaslessSubStatus, V1IntentCall, V1IntentReward, V1IntentRoute, V1IntentTokenAmount, V1ProblemBody, V1QuoteCore, V1QuoteRequest, V1QuoteResponse, V1QuoteType, V1RankedQuoteEntry, V1RelatedIntentRole, V1SolverIdentity, V1StatusEntry, V1StatusStep, V1StatusStepType, V1StatusTokenAmount, V1StatusTxDetail, V1StatusTxRef, V1StatusType, V1Step, V1StepIntent, V1StepLeg, V1StepType, V1SvmAccountMeta, V1SvmInstruction, V1TokenEntry, } from './v1/types';
6
+ export type { LegacyCodeRef, V1Chain, V1ChainerOrder, V1ChainType, V1DepositAddress, V1DepositAddressChainStatus, V1DepositAddressCreateRequest, V1DepositAddressCreateResponse, V1DepositAddressType, V1DestinationCall, V1ErrorCode, V1ErrorDefinition, V1Execution, V1Fee, V1FeeToken, V1FeeType, V1FundingTransaction, V1GaslessJob, V1GaslessJobStatus, V1GaslessSubState, V1GaslessSubStatus, V1IntentCall, V1IntentExecutionType, V1IntentReward, V1IntentRoute, V1IntentTokenAmount, V1ProblemBody, V1QuoteCore, V1QuoteRequest, V1QuoteResponse, V1QuoteType, V1RankedQuoteEntry, V1RelatedIntentRole, V1SolverIdentity, V1StatusEntry, V1StatusStep, V1StatusStepType, V1StatusTokenAmount, V1StatusTxDetail, V1StatusTxRef, V1StatusType, V1Step, V1StepIntent, V1StepLeg, V1StepType, V1SvmAccountMeta, V1SvmInstruction, V1TokenEntry, } from './v1/types';
@@ -37,6 +37,10 @@ export declare const QuoteRequestSchema: z.ZodObject<{
37
37
  refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
38
38
  slippage: z.ZodOptional<z.ZodNumber>;
39
39
  dappId: z.ZodString;
40
+ intentExecutionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
41
+ GASLESS: "GASLESS";
42
+ SELF_PUBLISH: "SELF_PUBLISH";
43
+ }>>>;
40
44
  options: z.ZodOptional<z.ZodObject<{
41
45
  deadlineSec: z.ZodOptional<z.ZodNumber>;
42
46
  allQuotes: z.ZodOptional<z.ZodBoolean>;
@@ -166,11 +170,22 @@ export declare const IntentRewardSchema: z.ZodObject<{
166
170
  amount: z.ZodString;
167
171
  }, z.core.$loose>>;
168
172
  }, z.core.$loose>;
173
+ export declare const ChainerOrderSchema: z.ZodObject<{
174
+ encodedOrder: z.ZodString;
175
+ encodedTemplate: z.ZodString;
176
+ templateHash: z.ZodString;
177
+ paramsHash: z.ZodString;
178
+ programId: z.ZodString;
179
+ escrowAuthority: z.ZodString;
180
+ tokenProgram: z.ZodString;
181
+ escrowAta: z.ZodString;
182
+ }, z.core.$loose>;
169
183
  export declare const StepIntentSchema: z.ZodObject<{
170
184
  role: z.ZodEnum<{
171
185
  local: "local";
172
186
  "bucket-candidate": "bucket-candidate";
173
187
  "stitched-destination": "stitched-destination";
188
+ "chainer-child": "chainer-child";
174
189
  }>;
175
190
  intentHash: z.ZodString;
176
191
  routeHash: z.ZodOptional<z.ZodString>;
@@ -204,6 +219,16 @@ export declare const StepIntentSchema: z.ZodObject<{
204
219
  }, z.core.$loose>>;
205
220
  }, z.core.$loose>;
206
221
  }, z.core.$loose>;
222
+ chainerOrder: z.ZodOptional<z.ZodObject<{
223
+ encodedOrder: z.ZodString;
224
+ encodedTemplate: z.ZodString;
225
+ templateHash: z.ZodString;
226
+ paramsHash: z.ZodString;
227
+ programId: z.ZodString;
228
+ escrowAuthority: z.ZodString;
229
+ tokenProgram: z.ZodString;
230
+ escrowAta: z.ZodString;
231
+ }, z.core.$loose>>;
207
232
  }, z.core.$loose>;
208
233
  export declare const StepSchema: z.ZodObject<{
209
234
  type: z.ZodEnum<{
@@ -247,6 +272,7 @@ export declare const StepSchema: z.ZodObject<{
247
272
  local: "local";
248
273
  "bucket-candidate": "bucket-candidate";
249
274
  "stitched-destination": "stitched-destination";
275
+ "chainer-child": "chainer-child";
250
276
  }>;
251
277
  intentHash: z.ZodString;
252
278
  routeHash: z.ZodOptional<z.ZodString>;
@@ -280,6 +306,16 @@ export declare const StepSchema: z.ZodObject<{
280
306
  }, z.core.$loose>>;
281
307
  }, z.core.$loose>;
282
308
  }, z.core.$loose>;
309
+ chainerOrder: z.ZodOptional<z.ZodObject<{
310
+ encodedOrder: z.ZodString;
311
+ encodedTemplate: z.ZodString;
312
+ templateHash: z.ZodString;
313
+ paramsHash: z.ZodString;
314
+ programId: z.ZodString;
315
+ escrowAuthority: z.ZodString;
316
+ tokenProgram: z.ZodString;
317
+ escrowAta: z.ZodString;
318
+ }, z.core.$loose>>;
283
319
  }, z.core.$loose>>;
284
320
  }, z.core.$loose>;
285
321
  export declare const ExecutionSchema: z.ZodObject<{
@@ -419,6 +455,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
419
455
  local: "local";
420
456
  "bucket-candidate": "bucket-candidate";
421
457
  "stitched-destination": "stitched-destination";
458
+ "chainer-child": "chainer-child";
422
459
  }>;
423
460
  intentHash: z.ZodString;
424
461
  routeHash: z.ZodOptional<z.ZodString>;
@@ -452,6 +489,16 @@ export declare const QuoteCoreSchema: z.ZodObject<{
452
489
  }, z.core.$loose>>;
453
490
  }, z.core.$loose>;
454
491
  }, z.core.$loose>;
492
+ chainerOrder: z.ZodOptional<z.ZodObject<{
493
+ encodedOrder: z.ZodString;
494
+ encodedTemplate: z.ZodString;
495
+ templateHash: z.ZodString;
496
+ paramsHash: z.ZodString;
497
+ programId: z.ZodString;
498
+ escrowAuthority: z.ZodString;
499
+ tokenProgram: z.ZodString;
500
+ escrowAta: z.ZodString;
501
+ }, z.core.$loose>>;
455
502
  }, z.core.$loose>>;
456
503
  }, z.core.$loose>>;
457
504
  solver: z.ZodObject<{
@@ -511,6 +558,10 @@ export declare const QuoteCoreSchema: z.ZodObject<{
511
558
  }, z.core.$loose>;
512
559
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
513
560
  }, z.core.$loose>>;
561
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
562
+ GASLESS: "GASLESS";
563
+ SELF_PUBLISH: "SELF_PUBLISH";
564
+ }>>>;
514
565
  expiresAt: z.ZodNumber;
515
566
  signature: z.ZodString;
516
567
  }, z.core.$loose>;
@@ -607,6 +658,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
607
658
  local: "local";
608
659
  "bucket-candidate": "bucket-candidate";
609
660
  "stitched-destination": "stitched-destination";
661
+ "chainer-child": "chainer-child";
610
662
  }>;
611
663
  intentHash: z.ZodString;
612
664
  routeHash: z.ZodOptional<z.ZodString>;
@@ -640,6 +692,16 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
640
692
  }, z.core.$loose>>;
641
693
  }, z.core.$loose>;
642
694
  }, z.core.$loose>;
695
+ chainerOrder: z.ZodOptional<z.ZodObject<{
696
+ encodedOrder: z.ZodString;
697
+ encodedTemplate: z.ZodString;
698
+ templateHash: z.ZodString;
699
+ paramsHash: z.ZodString;
700
+ programId: z.ZodString;
701
+ escrowAuthority: z.ZodString;
702
+ tokenProgram: z.ZodString;
703
+ escrowAta: z.ZodString;
704
+ }, z.core.$loose>>;
643
705
  }, z.core.$loose>>;
644
706
  }, z.core.$loose>>;
645
707
  solver: z.ZodObject<{
@@ -699,6 +761,10 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
699
761
  }, z.core.$loose>;
700
762
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
701
763
  }, z.core.$loose>>;
764
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
765
+ GASLESS: "GASLESS";
766
+ SELF_PUBLISH: "SELF_PUBLISH";
767
+ }>>>;
702
768
  expiresAt: z.ZodNumber;
703
769
  signature: z.ZodString;
704
770
  }, z.core.$loose>;
@@ -788,6 +854,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
788
854
  local: "local";
789
855
  "bucket-candidate": "bucket-candidate";
790
856
  "stitched-destination": "stitched-destination";
857
+ "chainer-child": "chainer-child";
791
858
  }>;
792
859
  intentHash: z.ZodString;
793
860
  routeHash: z.ZodOptional<z.ZodString>;
@@ -821,6 +888,16 @@ export declare const QuoteResponseSchema: z.ZodObject<{
821
888
  }, z.core.$loose>>;
822
889
  }, z.core.$loose>;
823
890
  }, z.core.$loose>;
891
+ chainerOrder: z.ZodOptional<z.ZodObject<{
892
+ encodedOrder: z.ZodString;
893
+ encodedTemplate: z.ZodString;
894
+ templateHash: z.ZodString;
895
+ paramsHash: z.ZodString;
896
+ programId: z.ZodString;
897
+ escrowAuthority: z.ZodString;
898
+ tokenProgram: z.ZodString;
899
+ escrowAta: z.ZodString;
900
+ }, z.core.$loose>>;
824
901
  }, z.core.$loose>>;
825
902
  }, z.core.$loose>>;
826
903
  solver: z.ZodObject<{
@@ -880,6 +957,10 @@ export declare const QuoteResponseSchema: z.ZodObject<{
880
957
  }, z.core.$loose>;
881
958
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
882
959
  }, z.core.$loose>>;
960
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
961
+ GASLESS: "GASLESS";
962
+ SELF_PUBLISH: "SELF_PUBLISH";
963
+ }>>>;
883
964
  expiresAt: z.ZodNumber;
884
965
  signature: z.ZodString;
885
966
  quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -967,6 +1048,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
967
1048
  local: "local";
968
1049
  "bucket-candidate": "bucket-candidate";
969
1050
  "stitched-destination": "stitched-destination";
1051
+ "chainer-child": "chainer-child";
970
1052
  }>;
971
1053
  intentHash: z.ZodString;
972
1054
  routeHash: z.ZodOptional<z.ZodString>;
@@ -1000,6 +1082,16 @@ export declare const QuoteResponseSchema: z.ZodObject<{
1000
1082
  }, z.core.$loose>>;
1001
1083
  }, z.core.$loose>;
1002
1084
  }, z.core.$loose>;
1085
+ chainerOrder: z.ZodOptional<z.ZodObject<{
1086
+ encodedOrder: z.ZodString;
1087
+ encodedTemplate: z.ZodString;
1088
+ templateHash: z.ZodString;
1089
+ paramsHash: z.ZodString;
1090
+ programId: z.ZodString;
1091
+ escrowAuthority: z.ZodString;
1092
+ tokenProgram: z.ZodString;
1093
+ escrowAta: z.ZodString;
1094
+ }, z.core.$loose>>;
1003
1095
  }, z.core.$loose>>;
1004
1096
  }, z.core.$loose>>;
1005
1097
  solver: z.ZodObject<{
@@ -1059,6 +1151,10 @@ export declare const QuoteResponseSchema: z.ZodObject<{
1059
1151
  }, z.core.$loose>;
1060
1152
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
1061
1153
  }, z.core.$loose>>;
1154
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1155
+ GASLESS: "GASLESS";
1156
+ SELF_PUBLISH: "SELF_PUBLISH";
1157
+ }>>>;
1062
1158
  expiresAt: z.ZodNumber;
1063
1159
  signature: z.ZodString;
1064
1160
  }, z.core.$loose>>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUOTE_SIGNATURE_TYPES = exports.QuoteResponseSchema = exports.RankedQuoteEntrySchema = exports.QuoteCoreSchema = exports.ExecutionSchema = exports.StepSchema = exports.StepIntentSchema = exports.IntentRewardSchema = exports.IntentRouteSchema = exports.IntentCallSchema = exports.IntentTokenAmountSchema = exports.FundingTransactionSchema = exports.SvmTransactionSchema = exports.SvmInstructionSchema = exports.SvmAccountMetaSchema = exports.EvmTransactionSchema = exports.SolverIdentitySchema = exports.StepLegSchema = exports.FeeSchema = exports.FeeTokenSchema = exports.QuoteRequestSchema = exports.SLIPPAGE_MAX = exports.SLIPPAGE_MIN = exports.DestinationCallSchema = void 0;
3
+ exports.QUOTE_SIGNATURE_TYPES = exports.QuoteResponseSchema = exports.RankedQuoteEntrySchema = exports.QuoteCoreSchema = exports.ExecutionSchema = exports.StepSchema = exports.StepIntentSchema = exports.ChainerOrderSchema = exports.IntentRewardSchema = exports.IntentRouteSchema = exports.IntentCallSchema = exports.IntentTokenAmountSchema = exports.FundingTransactionSchema = exports.SvmTransactionSchema = exports.SvmInstructionSchema = exports.SvmAccountMetaSchema = exports.EvmTransactionSchema = exports.SolverIdentitySchema = exports.StepLegSchema = exports.FeeSchema = exports.FeeTokenSchema = exports.QuoteRequestSchema = exports.SLIPPAGE_MAX = exports.SLIPPAGE_MIN = exports.DestinationCallSchema = void 0;
4
4
  exports.quoteIntentHashes = quoteIntentHashes;
5
5
  exports.quoteSignaturePayload = quoteSignaturePayload;
6
6
  const zod_1 = require("zod");
@@ -61,9 +61,18 @@ exports.QuoteRequestSchema = zod_1.z
61
61
  .meta({ minimum: exports.SLIPPAGE_MIN, maximum: exports.SLIPPAGE_MAX })
62
62
  .optional(),
63
63
  dappId: primitives_1.DappId,
64
+ intentExecutionTypes: zod_1.z.array(enums_1.IntentExecutionType).min(1).optional(),
64
65
  options: QuoteRequestOptionsSchema.optional(),
65
66
  })
66
67
  .superRefine((req, ctx) => {
68
+ if (req.intentExecutionTypes &&
69
+ new Set(req.intentExecutionTypes).size !== req.intentExecutionTypes.length) {
70
+ ctx.addIssue({
71
+ code: 'custom',
72
+ path: ['intentExecutionTypes'],
73
+ message: 'intentExecutionTypes must not repeat a type',
74
+ });
75
+ }
67
76
  if (req.slippage !== undefined &&
68
77
  (req.slippage < exports.SLIPPAGE_MIN || req.slippage > exports.SLIPPAGE_MAX)) {
69
78
  ctx.addIssue({
@@ -205,12 +214,23 @@ exports.IntentRewardSchema = zod_1.z.looseObject({
205
214
  nativeAmount: primitives_1.UintString,
206
215
  tokens: zod_1.z.array(exports.IntentTokenAmountSchema),
207
216
  });
217
+ exports.ChainerOrderSchema = zod_1.z.looseObject({
218
+ encodedOrder: primitives_1.HexBytes,
219
+ encodedTemplate: primitives_1.HexBytes,
220
+ templateHash: primitives_1.Bytes32,
221
+ paramsHash: primitives_1.Bytes32,
222
+ programId: primitives_1.SvmAddress,
223
+ escrowAuthority: primitives_1.SvmAddress,
224
+ tokenProgram: primitives_1.SvmAddress,
225
+ escrowAta: primitives_1.SvmAddress,
226
+ });
208
227
  exports.StepIntentSchema = zod_1.z.looseObject({
209
228
  role: enums_1.RelatedIntentRole,
210
229
  intentHash: primitives_1.Bytes32,
211
230
  routeHash: primitives_1.Bytes32.optional(),
212
231
  bucketIndex: zod_1.z.number().int().nonnegative().optional(),
213
232
  intent: zod_1.z.looseObject({ route: exports.IntentRouteSchema, reward: exports.IntentRewardSchema }),
233
+ chainerOrder: exports.ChainerOrderSchema.optional(),
214
234
  });
215
235
  exports.StepSchema = zod_1.z.looseObject({
216
236
  type: enums_1.StepType,
@@ -264,6 +284,7 @@ exports.QuoteCoreSchema = zod_1.z.looseObject({
264
284
  solver: exports.SolverIdentitySchema,
265
285
  intentHash: primitives_1.Bytes32.nullable(),
266
286
  execution: exports.ExecutionSchema.nullable(),
287
+ intentExecutionType: enums_1.IntentExecutionType.nullable().optional(),
267
288
  expiresAt: primitives_1.UnixSeconds,
268
289
  signature: primitives_1.HexBytes,
269
290
  });
@@ -318,6 +339,14 @@ exports.QuoteResponseSchema = exports.QuoteCoreSchema.extend({
318
339
  'best-first and the top-level response is always its first entry (P8)',
319
340
  });
320
341
  }
342
+ if (quote.quotes &&
343
+ (quote.quotes[0]?.intentExecutionType ?? null) !== (quote.intentExecutionType ?? null)) {
344
+ ctx.addIssue({
345
+ code: 'custom',
346
+ path: ['quotes', 0, 'intentExecutionType'],
347
+ message: 'quotes[0].intentExecutionType must equal the envelope intentExecutionType (P8)',
348
+ });
349
+ }
321
350
  });
322
351
  exports.QUOTE_SIGNATURE_TYPES = {
323
352
  Quote: [
@@ -1 +1 @@
1
- {"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/quotes.ts"],"names":[],"mappings":";;;AAskBA,8CAQC;AA0ID,sDA4CC;AApwBD,6BAAwB;AAExB,oCAA2E;AAC3E,+CAAuD;AACvD,+CAAkD;AAClD,8CAeuB;AAYV,QA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Y;YACZ,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B;KACF,CAAC;AACJ,CAAC"}
@@ -48,6 +48,10 @@ export declare const V1_ENDPOINTS: {
48
48
  refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
49
49
  slippage: z.ZodOptional<z.ZodNumber>;
50
50
  dappId: z.ZodString;
51
+ intentExecutionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
52
+ GASLESS: "GASLESS";
53
+ SELF_PUBLISH: "SELF_PUBLISH";
54
+ }>>>;
51
55
  options: z.ZodOptional<z.ZodObject<{
52
56
  deadlineSec: z.ZodOptional<z.ZodNumber>;
53
57
  allQuotes: z.ZodOptional<z.ZodBoolean>;
@@ -138,6 +142,7 @@ export declare const V1_ENDPOINTS: {
138
142
  local: "local";
139
143
  "bucket-candidate": "bucket-candidate";
140
144
  "stitched-destination": "stitched-destination";
145
+ "chainer-child": "chainer-child";
141
146
  }>;
142
147
  intentHash: z.ZodString;
143
148
  routeHash: z.ZodOptional<z.ZodString>;
@@ -171,6 +176,16 @@ export declare const V1_ENDPOINTS: {
171
176
  }, z.core.$loose>>;
172
177
  }, z.core.$loose>;
173
178
  }, z.core.$loose>;
179
+ chainerOrder: z.ZodOptional<z.ZodObject<{
180
+ encodedOrder: z.ZodString;
181
+ encodedTemplate: z.ZodString;
182
+ templateHash: z.ZodString;
183
+ paramsHash: z.ZodString;
184
+ programId: z.ZodString;
185
+ escrowAuthority: z.ZodString;
186
+ tokenProgram: z.ZodString;
187
+ escrowAta: z.ZodString;
188
+ }, z.core.$loose>>;
174
189
  }, z.core.$loose>>;
175
190
  }, z.core.$loose>>;
176
191
  solver: z.ZodObject<{
@@ -230,6 +245,10 @@ export declare const V1_ENDPOINTS: {
230
245
  }, z.core.$loose>;
231
246
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
232
247
  }, z.core.$loose>>;
248
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
249
+ GASLESS: "GASLESS";
250
+ SELF_PUBLISH: "SELF_PUBLISH";
251
+ }>>>;
233
252
  expiresAt: z.ZodNumber;
234
253
  signature: z.ZodString;
235
254
  quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -317,6 +336,7 @@ export declare const V1_ENDPOINTS: {
317
336
  local: "local";
318
337
  "bucket-candidate": "bucket-candidate";
319
338
  "stitched-destination": "stitched-destination";
339
+ "chainer-child": "chainer-child";
320
340
  }>;
321
341
  intentHash: z.ZodString;
322
342
  routeHash: z.ZodOptional<z.ZodString>;
@@ -350,6 +370,16 @@ export declare const V1_ENDPOINTS: {
350
370
  }, z.core.$loose>>;
351
371
  }, z.core.$loose>;
352
372
  }, z.core.$loose>;
373
+ chainerOrder: z.ZodOptional<z.ZodObject<{
374
+ encodedOrder: z.ZodString;
375
+ encodedTemplate: z.ZodString;
376
+ templateHash: z.ZodString;
377
+ paramsHash: z.ZodString;
378
+ programId: z.ZodString;
379
+ escrowAuthority: z.ZodString;
380
+ tokenProgram: z.ZodString;
381
+ escrowAta: z.ZodString;
382
+ }, z.core.$loose>>;
353
383
  }, z.core.$loose>>;
354
384
  }, z.core.$loose>>;
355
385
  solver: z.ZodObject<{
@@ -409,6 +439,10 @@ export declare const V1_ENDPOINTS: {
409
439
  }, z.core.$loose>;
410
440
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
411
441
  }, z.core.$loose>>;
442
+ intentExecutionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
443
+ GASLESS: "GASLESS";
444
+ SELF_PUBLISH: "SELF_PUBLISH";
445
+ }>>>;
412
446
  expiresAt: z.ZodNumber;
413
447
  signature: z.ZodString;
414
448
  }, z.core.$loose>>>;
@@ -52,20 +52,34 @@ export declare const ChainStatus: z.ZodEnum<{
52
52
  paused: "paused";
53
53
  }>;
54
54
  export type ChainStatus = z.infer<typeof ChainStatus>;
55
- export declare const RELATED_INTENT_ROLES: readonly ["local", "bucket-candidate", "stitched-destination"];
55
+ export declare const RELATED_INTENT_ROLES: readonly ["local", "bucket-candidate", "stitched-destination", "chainer-child"];
56
56
  export declare const RelatedIntentRole: z.ZodEnum<{
57
57
  local: "local";
58
58
  "bucket-candidate": "bucket-candidate";
59
59
  "stitched-destination": "stitched-destination";
60
+ "chainer-child": "chainer-child";
60
61
  }>;
61
62
  export declare const RelatedIntentRoleTolerant: z.ZodUnion<readonly [z.ZodEnum<{
62
63
  local: "local";
63
64
  "bucket-candidate": "bucket-candidate";
64
65
  "stitched-destination": "stitched-destination";
66
+ "chainer-child": "chainer-child";
65
67
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
66
68
  unknown: string;
67
69
  }, string>>]>;
68
70
  export type RelatedIntentRole = z.infer<typeof RelatedIntentRole>;
71
+ export declare const INTENT_EXECUTION_TYPES: readonly ["GASLESS", "SELF_PUBLISH"];
72
+ export declare const IntentExecutionType: z.ZodEnum<{
73
+ GASLESS: "GASLESS";
74
+ SELF_PUBLISH: "SELF_PUBLISH";
75
+ }>;
76
+ export declare const IntentExecutionTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
77
+ GASLESS: "GASLESS";
78
+ SELF_PUBLISH: "SELF_PUBLISH";
79
+ }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
80
+ unknown: string;
81
+ }, string>>]>;
82
+ export type IntentExecutionType = z.infer<typeof IntentExecutionType>;
69
83
  export declare const STEP_TYPES: readonly ["swap", "bridge", "deposit", "transfer"];
70
84
  export declare const StepType: z.ZodEnum<{
71
85
  swap: "swap";
package/dist/v1/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STATUS_VOCABULARY = exports.GaslessSubState = exports.GASLESS_SUB_STATES = exports.GASLESS_JOB_STATUSES = exports.StatusType = exports.STATUS_TYPES = exports.STANDARDS_BY_TARGET = exports.SubmitStandard = exports.SUBMIT_STANDARDS = exports.StepTypeTolerant = exports.StepType = exports.STEP_TYPES = exports.RelatedIntentRoleTolerant = exports.RelatedIntentRole = exports.RELATED_INTENT_ROLES = exports.ChainStatus = exports.CHAIN_STATUSES = exports.ChainEncoding = exports.CHAIN_ENCODINGS = exports.ChainType = exports.CHAIN_TYPES = exports.FeeTypeTolerant = exports.FeeType = exports.FEE_TYPES = exports.QuoteTypeTolerant = exports.QuoteType = exports.QUOTE_TYPES = void 0;
3
+ exports.STATUS_VOCABULARY = exports.GaslessSubState = exports.GASLESS_SUB_STATES = exports.GASLESS_JOB_STATUSES = exports.StatusType = exports.STATUS_TYPES = exports.STANDARDS_BY_TARGET = exports.SubmitStandard = exports.SUBMIT_STANDARDS = exports.StepTypeTolerant = exports.StepType = exports.STEP_TYPES = exports.IntentExecutionTypeTolerant = exports.IntentExecutionType = exports.INTENT_EXECUTION_TYPES = exports.RelatedIntentRoleTolerant = exports.RelatedIntentRole = exports.RELATED_INTENT_ROLES = exports.ChainStatus = exports.CHAIN_STATUSES = exports.ChainEncoding = exports.CHAIN_ENCODINGS = exports.ChainType = exports.CHAIN_TYPES = exports.FeeTypeTolerant = exports.FeeType = exports.FEE_TYPES = exports.QuoteTypeTolerant = exports.QuoteType = exports.QUOTE_TYPES = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("./primitives");
6
6
  exports.QUOTE_TYPES = ['exact-in', 'exact-out', 'custom', 'gateway-deposit'];
@@ -15,9 +15,17 @@ exports.CHAIN_ENCODINGS = ['abi', 'borsh'];
15
15
  exports.ChainEncoding = zod_1.z.enum(exports.CHAIN_ENCODINGS);
16
16
  exports.CHAIN_STATUSES = ['live', 'paused'];
17
17
  exports.ChainStatus = zod_1.z.enum(exports.CHAIN_STATUSES);
18
- exports.RELATED_INTENT_ROLES = ['local', 'bucket-candidate', 'stitched-destination'];
18
+ exports.RELATED_INTENT_ROLES = [
19
+ 'local',
20
+ 'bucket-candidate',
21
+ 'stitched-destination',
22
+ 'chainer-child',
23
+ ];
19
24
  exports.RelatedIntentRole = zod_1.z.enum(exports.RELATED_INTENT_ROLES);
20
25
  exports.RelatedIntentRoleTolerant = (0, primitives_1.tolerantEnum)(exports.RELATED_INTENT_ROLES);
26
+ exports.INTENT_EXECUTION_TYPES = ['GASLESS', 'SELF_PUBLISH'];
27
+ exports.IntentExecutionType = zod_1.z.enum(exports.INTENT_EXECUTION_TYPES);
28
+ exports.IntentExecutionTypeTolerant = (0, primitives_1.tolerantEnum)(exports.INTENT_EXECUTION_TYPES);
21
29
  exports.STEP_TYPES = ['swap', 'bridge', 'deposit', 'transfer'];
22
30
  exports.StepType = zod_1.z.enum(exports.STEP_TYPES);
23
31
  exports.StepTypeTolerant = (0, primitives_1.tolerantEnum)(exports.STEP_TYPES);
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/v1/enums.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6CAA4C;AAE/B,QAAA,WAAW,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,CAAU,CAAC;AAC9E,QAAA,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC;AAChC,QAAA,iBAAiB,GAAG,IAAA,yBAAY,EAAC,mBAAW,CAAC,CAAC;AAW9C,QAAA,SAAS,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AACvE,QAAA,OAAO,GAAG,OAAC,CAAC,IAAI,CAAC,iBAAS,CAAC,CAAC;AAC5B,QAAA,eAAe,GAAG,IAAA,yBAAY,EAAC,iBAAS,CAAC,CAAC;AAG1C,QAAA,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAA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AAU,EAAE,UAAU,CAAC;CACoB,CAAC;AAKlD,QAAA,YAAY,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAU,CAAC;AAC1E,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,CAAC;AAGlC,QAAA,oBAAoB,GAAG;IAClC,SAAS;IACT,YAAY;IACZ,WAAW;IACX,SAAS;IACT,QAAQ;IACR,SAAS;CACD,CAAC;AACE,QAAA,kBAAkB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAC9E,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC;AAQ7C,QAAA,iBAAiB,GAAG;IAE/B,MAAM,EAAE;QACN,SAAS;QACT,QAAQ;QACR,SAAS;QACT,UAAU;QACV,YAAY;QACZ,SAAS;QACT,QAAQ;QACR,SAAS;KACV;IAOD,KAAK,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;IACpD,OAAO,EAAE,4BAAoB;IAM7B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;CACkC,CAAC"}
@@ -2,8 +2,9 @@ export type { LegacyCodeRef, V1ErrorCode, V1ErrorDefinition } from './errors/cat
2
2
  export type V1QuoteType = 'exact-in' | 'exact-out' | 'custom' | 'gateway-deposit';
3
3
  export type V1FeeType = 'gas' | 'proving' | 'protocol' | 'gateway' | 'cctp';
4
4
  export type V1ChainType = 'evm' | 'svm' | 'tvm';
5
- export type V1RelatedIntentRole = 'local' | 'bucket-candidate' | 'stitched-destination';
5
+ export type V1RelatedIntentRole = 'local' | 'bucket-candidate' | 'stitched-destination' | 'chainer-child';
6
6
  export type V1StepType = 'swap' | 'bridge' | 'deposit' | 'transfer';
7
+ export type V1IntentExecutionType = 'GASLESS' | 'SELF_PUBLISH';
7
8
  export type V1StatusType = 'intent' | 'quote' | 'gasless' | 'deposit-address';
8
9
  export type V1GaslessSubState = 'pending' | 'submitted' | 'published' | 'failed';
9
10
  export type V1GaslessJobStatus = 'pending' | 'processing' | 'published' | 'partial' | 'failed' | 'unknown';
@@ -32,6 +33,7 @@ export type V1QuoteRequest = {
32
33
  refundRecipient?: string;
33
34
  slippage?: number;
34
35
  dappId: string;
36
+ intentExecutionTypes?: V1IntentExecutionType[];
35
37
  options?: {
36
38
  deadlineSec?: number;
37
39
  allQuotes?: boolean;
@@ -118,6 +120,17 @@ export type V1IntentReward = {
118
120
  tokens: V1IntentTokenAmount[];
119
121
  [extension: string]: unknown;
120
122
  };
123
+ export type V1ChainerOrder = {
124
+ encodedOrder: string;
125
+ encodedTemplate: string;
126
+ templateHash: string;
127
+ paramsHash: string;
128
+ programId: string;
129
+ escrowAuthority: string;
130
+ tokenProgram: string;
131
+ escrowAta: string;
132
+ [extension: string]: unknown;
133
+ };
121
134
  export type V1StepIntent = {
122
135
  role: V1RelatedIntentRole;
123
136
  intentHash: string;
@@ -128,6 +141,7 @@ export type V1StepIntent = {
128
141
  reward: V1IntentReward;
129
142
  [extension: string]: unknown;
130
143
  };
144
+ chainerOrder?: V1ChainerOrder;
131
145
  [extension: string]: unknown;
132
146
  };
133
147
  export type V1Step = {
@@ -179,6 +193,7 @@ export type V1QuoteCore = {
179
193
  solver: V1SolverIdentity;
180
194
  intentHash: string | null;
181
195
  execution: V1Execution | null;
196
+ intentExecutionType?: V1IntentExecutionType | null;
182
197
  expiresAt: number;
183
198
  signature: string;
184
199
  [extension: string]: unknown;
package/openapi/v1.json CHANGED
@@ -303,6 +303,17 @@
303
303
  "minLength": 1,
304
304
  "maxLength": 128
305
305
  },
306
+ "intentExecutionTypes": {
307
+ "minItems": 1,
308
+ "type": "array",
309
+ "items": {
310
+ "type": "string",
311
+ "enum": [
312
+ "GASLESS",
313
+ "SELF_PUBLISH"
314
+ ]
315
+ }
316
+ },
306
317
  "options": {
307
318
  "type": "object",
308
319
  "properties": {
@@ -869,7 +880,8 @@
869
880
  "enum": [
870
881
  "local",
871
882
  "bucket-candidate",
872
- "stitched-destination"
883
+ "stitched-destination",
884
+ "chainer-child"
873
885
  ]
874
886
  },
875
887
  "intentHash": {
@@ -1154,6 +1166,53 @@
1154
1166
  "route",
1155
1167
  "reward"
1156
1168
  ]
1169
+ },
1170
+ "chainerOrder": {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "encodedOrder": {
1174
+ "type": "string",
1175
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1176
+ },
1177
+ "encodedTemplate": {
1178
+ "type": "string",
1179
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1180
+ },
1181
+ "templateHash": {
1182
+ "type": "string",
1183
+ "pattern": "^0x[0-9a-fA-F]{64}$"
1184
+ },
1185
+ "paramsHash": {
1186
+ "type": "string",
1187
+ "pattern": "^0x[0-9a-fA-F]{64}$"
1188
+ },
1189
+ "programId": {
1190
+ "type": "string",
1191
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1192
+ },
1193
+ "escrowAuthority": {
1194
+ "type": "string",
1195
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1196
+ },
1197
+ "tokenProgram": {
1198
+ "type": "string",
1199
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1200
+ },
1201
+ "escrowAta": {
1202
+ "type": "string",
1203
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "encodedOrder",
1208
+ "encodedTemplate",
1209
+ "templateHash",
1210
+ "paramsHash",
1211
+ "programId",
1212
+ "escrowAuthority",
1213
+ "tokenProgram",
1214
+ "escrowAta"
1215
+ ]
1157
1216
  }
1158
1217
  },
1159
1218
  "required": [
@@ -1648,6 +1707,20 @@
1648
1707
  }
1649
1708
  ]
1650
1709
  },
1710
+ "intentExecutionType": {
1711
+ "anyOf": [
1712
+ {
1713
+ "type": "string",
1714
+ "enum": [
1715
+ "GASLESS",
1716
+ "SELF_PUBLISH"
1717
+ ]
1718
+ },
1719
+ {
1720
+ "type": "null"
1721
+ }
1722
+ ]
1723
+ },
1651
1724
  "expiresAt": {
1652
1725
  "type": "integer",
1653
1726
  "minimum": 0,
@@ -2197,7 +2270,8 @@
2197
2270
  "enum": [
2198
2271
  "local",
2199
2272
  "bucket-candidate",
2200
- "stitched-destination"
2273
+ "stitched-destination",
2274
+ "chainer-child"
2201
2275
  ]
2202
2276
  },
2203
2277
  "intentHash": {
@@ -2482,6 +2556,53 @@
2482
2556
  "route",
2483
2557
  "reward"
2484
2558
  ]
2559
+ },
2560
+ "chainerOrder": {
2561
+ "type": "object",
2562
+ "properties": {
2563
+ "encodedOrder": {
2564
+ "type": "string",
2565
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2566
+ },
2567
+ "encodedTemplate": {
2568
+ "type": "string",
2569
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2570
+ },
2571
+ "templateHash": {
2572
+ "type": "string",
2573
+ "pattern": "^0x[0-9a-fA-F]{64}$"
2574
+ },
2575
+ "paramsHash": {
2576
+ "type": "string",
2577
+ "pattern": "^0x[0-9a-fA-F]{64}$"
2578
+ },
2579
+ "programId": {
2580
+ "type": "string",
2581
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2582
+ },
2583
+ "escrowAuthority": {
2584
+ "type": "string",
2585
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2586
+ },
2587
+ "tokenProgram": {
2588
+ "type": "string",
2589
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2590
+ },
2591
+ "escrowAta": {
2592
+ "type": "string",
2593
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2594
+ }
2595
+ },
2596
+ "required": [
2597
+ "encodedOrder",
2598
+ "encodedTemplate",
2599
+ "templateHash",
2600
+ "paramsHash",
2601
+ "programId",
2602
+ "escrowAuthority",
2603
+ "tokenProgram",
2604
+ "escrowAta"
2605
+ ]
2485
2606
  }
2486
2607
  },
2487
2608
  "required": [
@@ -2976,6 +3097,20 @@
2976
3097
  }
2977
3098
  ]
2978
3099
  },
3100
+ "intentExecutionType": {
3101
+ "anyOf": [
3102
+ {
3103
+ "type": "string",
3104
+ "enum": [
3105
+ "GASLESS",
3106
+ "SELF_PUBLISH"
3107
+ ]
3108
+ },
3109
+ {
3110
+ "type": "null"
3111
+ }
3112
+ ]
3113
+ },
2979
3114
  "expiresAt": {
2980
3115
  "type": "integer",
2981
3116
  "minimum": 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eco-foundation/api-schemas",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Zod-first schemas, error catalog, golden fixtures, and generated OpenAPI 3.1 for the Eco /v1 API",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",