@eco-foundation/api-schemas 0.15.0 → 0.17.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 (37) hide show
  1. package/README.md +21 -30
  2. package/dist/fixtures/index.js +12 -10
  3. package/dist/fixtures/index.js.map +1 -1
  4. package/dist/fixtures/v1/intents-status.response.gasless-handoff.json +30 -0
  5. package/dist/fixtures/v1/intents-status.response.intent-filled.json +21 -0
  6. package/dist/fixtures/v1/intents-status.response.quote-enriched.json +63 -0
  7. package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
  8. package/dist/fixtures/v1/intents-status.response.unknown.json +20 -0
  9. package/dist/fixtures/v1/intents-status.response.wallet-page.json +27 -0
  10. package/dist/generated/build-digest.json +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/v1/endpoints/quotes.d.ts +76 -0
  13. package/dist/v1/endpoints/quotes.js +12 -1
  14. package/dist/v1/endpoints/quotes.js.map +1 -1
  15. package/dist/v1/endpoints/registry.d.ts +135 -123
  16. package/dist/v1/endpoints/registry.js +3 -4
  17. package/dist/v1/endpoints/registry.js.map +1 -1
  18. package/dist/v1/endpoints/status.d.ts +70 -2
  19. package/dist/v1/endpoints/status.js +11 -1
  20. package/dist/v1/endpoints/status.js.map +1 -1
  21. package/dist/v1/enums.d.ts +3 -1
  22. package/dist/v1/enums.js +6 -1
  23. package/dist/v1/enums.js.map +1 -1
  24. package/dist/v1/index.d.ts +0 -1
  25. package/dist/v1/index.js +0 -1
  26. package/dist/v1/index.js.map +1 -1
  27. package/dist/v1/types.d.ts +21 -88
  28. package/openapi/v1.json +582 -714
  29. package/package.json +2 -1
  30. package/dist/fixtures/v1/intents-status.response.completed-fulfilled.json +0 -117
  31. package/dist/fixtures/v1/intents-status.response.completed-refunded.json +0 -101
  32. package/dist/fixtures/v1/intents-status.response.empty.json +0 -13
  33. package/dist/fixtures/v1/intents-status.response.pending-fulfillment.json +0 -101
  34. package/dist/fixtures/v1/intents-status.response.unlinked-intent.json +0 -81
  35. package/dist/v1/endpoints/transfer-status.d.ts +0 -488
  36. package/dist/v1/endpoints/transfer-status.js +0 -197
  37. package/dist/v1/endpoints/transfer-status.js.map +0 -1
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.15.0"
17
+ "@eco-foundation/api-schemas": "~0.17.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.15.0` or the exact `0.15.0`.
23
+ future breaking `0.y` — it is not a pin at all. Use `~0.17.0` or the exact `0.17.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,43 +30,34 @@ 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.14.0 -> 0.15.0
33
+ ## Migrating 0.16.0 -> 0.17.0
34
34
 
35
- **BREAKING for consumers of `/v1/intents/status`.** The endpoint now returns transfers, not
36
- status entries.
35
+ **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.
37
36
 
38
- **`V1_SCHEMA_DIGEST` MOVES** to
39
- `6dd9eee363e458e031e66c2f85064fb406ecaadc20cc1bc8fa4d19ffb991598f`, because `openapi/v1.json`
40
- changed. Every consumer running `assertNoSkew` moves in the same rollout.
37
+ **`V1_SCHEMA_DIGEST` MOVES** to `83eab94c7d9445ccb51995fd231b774c6ce48db7b9d9c78b0c51f04fe5801f30`; it was `d8c618c2c21d1da2173f941c324530c440c3188f93b18f63a11596988ca1bfa7` on `0.16.0`. Every consumer running `assertNoSkew` moves in the same rollout.
38
+
39
+ **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.
40
+
41
+ **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`.
42
+
43
+ **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.
41
44
 
42
- New exports: `TransferStatusQuerySchema`, `TRANSFER_STATUS_QUERY_SHAPE`,
43
- `TransferStatusEntrySchema`, `TransferStatusResponseSchema`, the transfer enums
44
- (`TRANSFER_TOKEN_TYPES`, `TRANSFER_STEP_TYPES`, `TRANSFER_TX_TYPES` and their schemas), and the
45
- `V1Transfer*` types.
45
+ **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.
46
46
 
47
- **1. The response is `{ results, nextPage }`.** `results` holds at most 50 transfers and
48
- `nextPage` is an integer >= 2 or null. Each transfer carries one of five status pairs
49
- (`pending/waiting_for_funding`, `pending/waiting_for_fulfillment`, `pending/waiting_for_refund`,
50
- `completed/fulfilled`, `completed/refunded`), `source` and `destination` sides, and `steps`.
51
- `id` is the quote id, or null. Any other status pair fails parse.
47
+ ## Migrating 0.14.0 or 0.15.0 -> 0.16.0
52
48
 
53
- **2. The query is exactly one of five selectors** (`txHash`, `intentHash`, `quoteId`, `jobId`,
54
- `wallet`), plus optional `page` and `limit`. `sourceTxHash`, `destinationTxHash`, `status` and
55
- `cursor` are gone. `page` and `limit` are rejected with `intentHash` or `quoteId`.
49
+ **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:
56
50
 
57
- **3. `StatusEntrySchema` and its related schemas are unchanged** and still back
58
- `/v1/deposit-addresses/status`.
51
+ - Query: `txHash` (a creation or fill tx, either side) and `quoteId` as `quote:<uuid>` as well as a bare uuid. `quoteResponse:<uuid>` is still refused.
52
+ - Entry: `createdAt`, `refundAddress`.
53
+ - `sourceTx` / `destinationTx`: `timestamp`, `symbol`, `decimals`.
54
+ - Step `transactions.created` / `.fulfilled` / `.refunded`: `timestamp`; `refunded` also `token` and `amount` (what the refund returned).
59
55
 
60
- **4. `IntentStatusQuerySchema` and `INTENT_STATUS_QUERY_SHAPE` are deprecated**; the registry
61
- no longer uses them for `intents.status`.
56
+ Every 0.16.0 status fixture parses under the published 0.14.0 schemas (`status-0-14-compat.spec.ts`).
62
57
 
63
- **5. The `intents.status` golden fixtures are swapped.** Removed: `gasless-handoff`,
64
- `intent-filled`, `quote-filled-detail`, `unknown`, `wallet-page`. Added: `pending-fulfillment`,
65
- `completed-fulfilled`, `completed-refunded`, `unlinked-intent`, `empty`.
58
+ **From 0.15.0: BREAKING.** 0.15.0's transfers contract is withdrawn: it broke a production caller of `sourceTxHash` / `destinationTxHash`. The `TransferStatus*` schemas, types and fixtures are gone; `intents.status` is the 0.14 contract above.
66
59
 
67
- **6. Behaviour changes.** A lookup that matches nothing returns `results: []` instead of an
68
- `unknown` entry. `quoteId` also accepts `quote:<uuid>` and `quoteResponse:<uuid>`. A transaction's
69
- `txLink` must be an http(s) URL.
60
+ **`V1_SCHEMA_DIGEST` MOVES** to `d8c618c2c21d1da2173f941c324530c440c3188f93b18f63a11596988ca1bfa7`, because `openapi/v1.json` changed. Every consumer running `assertNoSkew` moves in the same rollout.
70
61
 
71
62
  ## Migrating 0.13.0 -> 0.14.0
72
63
 
@@ -10,11 +10,12 @@ const deposit_addresses_create_response_gateway_erc20_json_1 = __importDefault(r
10
10
  const deposit_addresses_lookup_response_default_json_1 = __importDefault(require("./v1/deposit-addresses-lookup.response.default.json"));
11
11
  const deposit_addresses_submit_erc_2612_request_deposit_address_target_json_1 = __importDefault(require("./v1/deposit-addresses-submit-erc-2612.request.deposit-address-target.json"));
12
12
  const deposit_addresses_submit_erc_3009_request_deposit_address_target_json_1 = __importDefault(require("./v1/deposit-addresses-submit-erc-3009.request.deposit-address-target.json"));
13
- const intents_status_response_completed_fulfilled_json_1 = __importDefault(require("./v1/intents-status.response.completed-fulfilled.json"));
14
- const intents_status_response_completed_refunded_json_1 = __importDefault(require("./v1/intents-status.response.completed-refunded.json"));
15
- const intents_status_response_empty_json_1 = __importDefault(require("./v1/intents-status.response.empty.json"));
16
- const intents_status_response_pending_fulfillment_json_1 = __importDefault(require("./v1/intents-status.response.pending-fulfillment.json"));
17
- const intents_status_response_unlinked_intent_json_1 = __importDefault(require("./v1/intents-status.response.unlinked-intent.json"));
13
+ const intents_status_response_gasless_handoff_json_1 = __importDefault(require("./v1/intents-status.response.gasless-handoff.json"));
14
+ const intents_status_response_intent_filled_json_1 = __importDefault(require("./v1/intents-status.response.intent-filled.json"));
15
+ const intents_status_response_quote_enriched_json_1 = __importDefault(require("./v1/intents-status.response.quote-enriched.json"));
16
+ const intents_status_response_quote_filled_detail_json_1 = __importDefault(require("./v1/intents-status.response.quote-filled-detail.json"));
17
+ const intents_status_response_unknown_json_1 = __importDefault(require("./v1/intents-status.response.unknown.json"));
18
+ const intents_status_response_wallet_page_json_1 = __importDefault(require("./v1/intents-status.response.wallet-page.json"));
18
19
  const intents_submit_erc_3009_response_job_json_1 = __importDefault(require("./v1/intents-submit-erc-3009.response.job.json"));
19
20
  const intents_submit_permit2_request_quote_target_json_1 = __importDefault(require("./v1/intents-submit-permit2.request.quote-target.json"));
20
21
  const intents_submit_permit3_request_quote_target_json_1 = __importDefault(require("./v1/intents-submit-permit3.request.quote-target.json"));
@@ -32,16 +33,17 @@ const FIXTURE_BINDINGS = [
32
33
  bind('quotes.create', 'response', 'all-quotes', quotes_create_response_all_quotes_json_1.default),
33
34
  bind('quotes.create', 'request', 'gateway-deposit', quotes_create_request_gateway_deposit_json_1.default),
34
35
  bind('quotes.create', 'response', 'gateway-deposit', quotes_create_response_gateway_deposit_json_1.default),
35
- bind('intents.status', 'response', 'pending-fulfillment', intents_status_response_pending_fulfillment_json_1.default),
36
- bind('intents.status', 'response', 'completed-fulfilled', intents_status_response_completed_fulfilled_json_1.default),
37
- bind('intents.status', 'response', 'completed-refunded', intents_status_response_completed_refunded_json_1.default),
38
- bind('intents.status', 'response', 'unlinked-intent', intents_status_response_unlinked_intent_json_1.default),
39
- bind('intents.status', 'response', 'empty', intents_status_response_empty_json_1.default),
40
36
  bind('intents.submit.erc-3009', 'response', 'job', intents_submit_erc_3009_response_job_json_1.default),
41
37
  bind('intents.submit.permit2', 'request', 'quote-target', intents_submit_permit2_request_quote_target_json_1.default),
42
38
  bind('intents.submit.permit3', 'request', 'quote-target', intents_submit_permit3_request_quote_target_json_1.default),
43
39
  bind('deposit-addresses.submit.erc-3009', 'request', 'deposit-address-target', deposit_addresses_submit_erc_3009_request_deposit_address_target_json_1.default),
44
40
  bind('deposit-addresses.submit.erc-2612', 'request', 'deposit-address-target', deposit_addresses_submit_erc_2612_request_deposit_address_target_json_1.default),
41
+ bind('intents.status', 'response', 'intent-filled', intents_status_response_intent_filled_json_1.default),
42
+ bind('intents.status', 'response', 'unknown', intents_status_response_unknown_json_1.default),
43
+ bind('intents.status', 'response', 'gasless-handoff', intents_status_response_gasless_handoff_json_1.default),
44
+ bind('intents.status', 'response', 'wallet-page', intents_status_response_wallet_page_json_1.default),
45
+ bind('intents.status', 'response', 'quote-filled-detail', intents_status_response_quote_filled_detail_json_1.default),
46
+ bind('intents.status', 'response', 'quote-enriched', intents_status_response_quote_enriched_json_1.default),
45
47
  bind('chains.list', 'response', 'default', chains_list_response_default_json_1.default),
46
48
  bind('tokens.list', 'response', 'default', tokens_list_response_default_json_1.default),
47
49
  bind('routes.list', 'response', 'default', routes_list_response_default_json_1.default, { stability: 'draft' }),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":";;;;;;AACA,+GAAgE;AAChE,mJAAuF;AACvF,qJAAyF;AACzF,yIAA2E;AAC3E,uLAAsG;AACtG,uLAAsG;AACtG,6IAA6F;AAC7F,2IAA2F;AAC3F,iHAAkE;AAClE,6IAA6F;AAC7F,qIAA+E;AAC/E,+HAA2E;AAC3E,6IAAkF;AAClF,6IAAkF;AAClF,iIAA0F;AAC1F,2GAAiE;AACjE,yHAA0E;AAC1E,mIAA4F;AAC5F,6GAAmE;AACnE,+GAAgE;AAChE,+GAAgE;AA0ChE,MAAM,IAAI,GAAG,CACX,UAAwB,EACxB,SAAiC,EACjC,OAAe,EACf,IAAa,EACb,OAA+E,EAAE,EACjF,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAezD,MAAM,gBAAgB,GAAG;IACvB,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,yCAAa,CAAC;IACvD,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,0CAAc,CAAC;IACzD,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,gDAAe,CAAC;IAGhE,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,iBAAiB,EAAE,o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ff",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?jobId=0f450218-1b2c-4d3e-8f9a-0b1c2d3e4f5a",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "gasless:0f450218-1b2c-4d3e-8f9a-0b1c2d3e4f5a",
13
+ "type": "gasless",
14
+ "status": "published",
15
+ "updatedAt": 1767225600,
16
+ "intentHashes": ["0xabababababababababababababababababababababababababababababababab"],
17
+ "subStatuses": [
18
+ {
19
+ "chainId": 8453,
20
+ "quoteIds": ["quote:8f14e45f-ea3c-4c2d-9b6e-1a2b3c4d5e6f"],
21
+ "txHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
22
+ "intentHashes": ["0xabababababababababababababababababababababababababababababababab"],
23
+ "state": "published"
24
+ }
25
+ ]
26
+ }
27
+ ],
28
+ "nextCursor": null
29
+ }
30
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "endpointId": "intents.status",
3
+ "direction": "response",
4
+ "variant": "intent-filled",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?intentHash=0xabababababababababababababababababababababababababababababababab",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "intent:0xabababababababababababababababababababababababababababababababab",
13
+ "type": "intent",
14
+ "status": "filled",
15
+ "updatedAt": 1767225600,
16
+ "txHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef"
17
+ }
18
+ ],
19
+ "nextCursor": null
20
+ }
21
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "endpointId": "intents.status",
3
+ "direction": "response",
4
+ "variant": "quote-enriched",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?quoteId=quote:7d3f1c2a-5b6e-4f80-9a1b-2c3d4e5f6a7b",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "quote:7d3f1c2a-5b6e-4f80-9a1b-2c3d4e5f6a7b",
13
+ "type": "quote",
14
+ "status": "submitted",
15
+ "intentHashes": ["0x6a1f3e9b2c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7"],
16
+ "createdAt": 1792765400,
17
+ "updatedAt": 1792765990,
18
+ "refundAddress": "0x3333333333333333333333333333333333333333",
19
+ "steps": [
20
+ {
21
+ "type": "BRIDGE",
22
+ "intentHash": "0x6a1f3e9b2c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7",
23
+ "status": "REFUNDED",
24
+ "from": {
25
+ "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
26
+ "amount": "5000000",
27
+ "chainId": 8453
28
+ },
29
+ "to": {
30
+ "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
31
+ "amount": "4995000",
32
+ "chainId": 10
33
+ },
34
+ "transactions": {
35
+ "created": {
36
+ "chainId": 8453,
37
+ "txHash": "0x1f2e3d4c5b6a79881726354453627180f9e8d7c6b5a49382716051f4e3d2c1b0",
38
+ "timestamp": 1792765412
39
+ },
40
+ "refunded": {
41
+ "chainId": 8453,
42
+ "txHash": "0x9a8b7c6d5e4f30211203f4e5d6c7b8a99a8b7c6d5e4f30211203f4e5d6c7b8a9",
43
+ "timestamp": 1792765990,
44
+ "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
45
+ "amount": "5000000"
46
+ }
47
+ }
48
+ }
49
+ ],
50
+ "sourceTx": {
51
+ "chainId": 8453,
52
+ "txHash": "0x1f2e3d4c5b6a79881726354453627180f9e8d7c6b5a49382716051f4e3d2c1b0",
53
+ "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
54
+ "amount": "5000000",
55
+ "timestamp": 1792765412,
56
+ "symbol": "USDC",
57
+ "decimals": 6
58
+ }
59
+ }
60
+ ],
61
+ "nextCursor": null
62
+ }
63
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "endpointId": "intents.status",
3
+ "direction": "response",
4
+ "variant": "quote-filled-detail",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?quoteId=c1ed3798-e227-45a6-ad7c-b805f9e7a392",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "quote:c1ed3798-e227-45a6-ad7c-b805f9e7a392",
13
+ "type": "quote",
14
+ "status": "submitted",
15
+ "intentHashes": ["0x28cf072bb7fcd236cb417ef542f91002a84e04afb4c144ceb3ded8056bfa790f"],
16
+ "updatedAt": 1789432832,
17
+ "steps": [
18
+ {
19
+ "type": "BRIDGE",
20
+ "intentHash": "0x28cf072bb7fcd236cb417ef542f91002a84e04afb4c144ceb3ded8056bfa790f",
21
+ "status": "FULFILLED",
22
+ "from": {
23
+ "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
24
+ "amount": "1000000",
25
+ "chainId": 8453
26
+ },
27
+ "to": {
28
+ "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
29
+ "amount": "989500",
30
+ "chainId": 10
31
+ },
32
+ "transactions": {
33
+ "created": {
34
+ "chainId": 8453,
35
+ "txHash": "0x522dc811ae11692c9066747d24e96fa6d42315945aef9246ac19adb5663fe5c9"
36
+ },
37
+ "fulfilled": {
38
+ "chainId": 10,
39
+ "txHash": "0xace13db990e6c9aac0957510443262a90c128795c30086a5b0e62ac713c20866"
40
+ }
41
+ }
42
+ }
43
+ ],
44
+ "sourceTx": {
45
+ "chainId": 8453,
46
+ "txHash": "0x522dc811ae11692c9066747d24e96fa6d42315945aef9246ac19adb5663fe5c9",
47
+ "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
48
+ "amount": "1000000"
49
+ },
50
+ "destinationTx": {
51
+ "chainId": 10,
52
+ "txHash": "0xace13db990e6c9aac0957510443262a90c128795c30086a5b0e62ac713c20866",
53
+ "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
54
+ "amount": "989500"
55
+ }
56
+ }
57
+ ],
58
+ "nextCursor": null
59
+ }
60
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "endpointId": "intents.status",
3
+ "direction": "response",
4
+ "variant": "unknown",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?intentHash=0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "intent:0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
13
+ "type": "intent",
14
+ "status": "unknown",
15
+ "updatedAt": null
16
+ }
17
+ ],
18
+ "nextCursor": null
19
+ }
20
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "endpointId": "intents.status",
3
+ "direction": "response",
4
+ "variant": "wallet-page",
5
+ "method": "GET",
6
+ "path": "/v1/intents/status?wallet=0x1111111111111111111111111111111111111111&limit=2",
7
+ "expectedStatus": 200,
8
+ "sideEffect": false,
9
+ "payload": {
10
+ "results": [
11
+ {
12
+ "id": "intent:0xabababababababababababababababababababababababababababababababab",
13
+ "type": "intent",
14
+ "status": "filled",
15
+ "updatedAt": 1767225600,
16
+ "txHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef"
17
+ },
18
+ {
19
+ "id": "intent:0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
20
+ "type": "intent",
21
+ "status": "unknown",
22
+ "updatedAt": null
23
+ }
24
+ ],
25
+ "nextCursor": "Y3Vyc29yOjE3NjcyMjU2MDA6aW50ZW50OjB4YWJhYg"
26
+ }
27
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "digest": "6dd9eee363e458e031e66c2f85064fb406ecaadc20cc1bc8fa4d19ffb991598f",
2
+ "digest": "83eab94c7d9445ccb51995fd231b774c6ce48db7b9d9c78b0c51f04fe5801f30",
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, V1TransferDestination, V1TransferRelatedIntent, V1TransferSource, V1TransferStatus, V1TransferStatusEntry, V1TransferStatusQuery, V1TransferStatusResponse, V1TransferStep, V1TransferStepType, V1TransferSubstatus, V1TransferToken, V1TransferTokenType, V1TransferTransaction, V1TransferTxType, } 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, 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';
@@ -166,11 +166,22 @@ export declare const IntentRewardSchema: z.ZodObject<{
166
166
  amount: z.ZodString;
167
167
  }, z.core.$loose>>;
168
168
  }, z.core.$loose>;
169
+ export declare const ChainerOrderSchema: z.ZodObject<{
170
+ encodedOrder: z.ZodString;
171
+ encodedTemplate: z.ZodString;
172
+ templateHash: z.ZodString;
173
+ paramsHash: z.ZodString;
174
+ programId: z.ZodString;
175
+ escrowAuthority: z.ZodString;
176
+ tokenProgram: z.ZodString;
177
+ escrowAta: z.ZodString;
178
+ }, z.core.$loose>;
169
179
  export declare const StepIntentSchema: z.ZodObject<{
170
180
  role: z.ZodEnum<{
171
181
  local: "local";
172
182
  "bucket-candidate": "bucket-candidate";
173
183
  "stitched-destination": "stitched-destination";
184
+ "chainer-child": "chainer-child";
174
185
  }>;
175
186
  intentHash: z.ZodString;
176
187
  routeHash: z.ZodOptional<z.ZodString>;
@@ -204,6 +215,16 @@ export declare const StepIntentSchema: z.ZodObject<{
204
215
  }, z.core.$loose>>;
205
216
  }, z.core.$loose>;
206
217
  }, z.core.$loose>;
218
+ chainerOrder: z.ZodOptional<z.ZodObject<{
219
+ encodedOrder: z.ZodString;
220
+ encodedTemplate: z.ZodString;
221
+ templateHash: z.ZodString;
222
+ paramsHash: z.ZodString;
223
+ programId: z.ZodString;
224
+ escrowAuthority: z.ZodString;
225
+ tokenProgram: z.ZodString;
226
+ escrowAta: z.ZodString;
227
+ }, z.core.$loose>>;
207
228
  }, z.core.$loose>;
208
229
  export declare const StepSchema: z.ZodObject<{
209
230
  type: z.ZodEnum<{
@@ -247,6 +268,7 @@ export declare const StepSchema: z.ZodObject<{
247
268
  local: "local";
248
269
  "bucket-candidate": "bucket-candidate";
249
270
  "stitched-destination": "stitched-destination";
271
+ "chainer-child": "chainer-child";
250
272
  }>;
251
273
  intentHash: z.ZodString;
252
274
  routeHash: z.ZodOptional<z.ZodString>;
@@ -280,6 +302,16 @@ export declare const StepSchema: z.ZodObject<{
280
302
  }, z.core.$loose>>;
281
303
  }, z.core.$loose>;
282
304
  }, z.core.$loose>;
305
+ chainerOrder: z.ZodOptional<z.ZodObject<{
306
+ encodedOrder: z.ZodString;
307
+ encodedTemplate: z.ZodString;
308
+ templateHash: z.ZodString;
309
+ paramsHash: z.ZodString;
310
+ programId: z.ZodString;
311
+ escrowAuthority: z.ZodString;
312
+ tokenProgram: z.ZodString;
313
+ escrowAta: z.ZodString;
314
+ }, z.core.$loose>>;
283
315
  }, z.core.$loose>>;
284
316
  }, z.core.$loose>;
285
317
  export declare const ExecutionSchema: z.ZodObject<{
@@ -419,6 +451,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
419
451
  local: "local";
420
452
  "bucket-candidate": "bucket-candidate";
421
453
  "stitched-destination": "stitched-destination";
454
+ "chainer-child": "chainer-child";
422
455
  }>;
423
456
  intentHash: z.ZodString;
424
457
  routeHash: z.ZodOptional<z.ZodString>;
@@ -452,6 +485,16 @@ export declare const QuoteCoreSchema: z.ZodObject<{
452
485
  }, z.core.$loose>>;
453
486
  }, z.core.$loose>;
454
487
  }, z.core.$loose>;
488
+ chainerOrder: z.ZodOptional<z.ZodObject<{
489
+ encodedOrder: z.ZodString;
490
+ encodedTemplate: z.ZodString;
491
+ templateHash: z.ZodString;
492
+ paramsHash: z.ZodString;
493
+ programId: z.ZodString;
494
+ escrowAuthority: z.ZodString;
495
+ tokenProgram: z.ZodString;
496
+ escrowAta: z.ZodString;
497
+ }, z.core.$loose>>;
455
498
  }, z.core.$loose>>;
456
499
  }, z.core.$loose>>;
457
500
  solver: z.ZodObject<{
@@ -607,6 +650,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
607
650
  local: "local";
608
651
  "bucket-candidate": "bucket-candidate";
609
652
  "stitched-destination": "stitched-destination";
653
+ "chainer-child": "chainer-child";
610
654
  }>;
611
655
  intentHash: z.ZodString;
612
656
  routeHash: z.ZodOptional<z.ZodString>;
@@ -640,6 +684,16 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
640
684
  }, z.core.$loose>>;
641
685
  }, z.core.$loose>;
642
686
  }, z.core.$loose>;
687
+ chainerOrder: z.ZodOptional<z.ZodObject<{
688
+ encodedOrder: z.ZodString;
689
+ encodedTemplate: z.ZodString;
690
+ templateHash: z.ZodString;
691
+ paramsHash: z.ZodString;
692
+ programId: z.ZodString;
693
+ escrowAuthority: z.ZodString;
694
+ tokenProgram: z.ZodString;
695
+ escrowAta: z.ZodString;
696
+ }, z.core.$loose>>;
643
697
  }, z.core.$loose>>;
644
698
  }, z.core.$loose>>;
645
699
  solver: z.ZodObject<{
@@ -788,6 +842,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
788
842
  local: "local";
789
843
  "bucket-candidate": "bucket-candidate";
790
844
  "stitched-destination": "stitched-destination";
845
+ "chainer-child": "chainer-child";
791
846
  }>;
792
847
  intentHash: z.ZodString;
793
848
  routeHash: z.ZodOptional<z.ZodString>;
@@ -821,6 +876,16 @@ export declare const QuoteResponseSchema: z.ZodObject<{
821
876
  }, z.core.$loose>>;
822
877
  }, z.core.$loose>;
823
878
  }, z.core.$loose>;
879
+ chainerOrder: z.ZodOptional<z.ZodObject<{
880
+ encodedOrder: z.ZodString;
881
+ encodedTemplate: z.ZodString;
882
+ templateHash: z.ZodString;
883
+ paramsHash: z.ZodString;
884
+ programId: z.ZodString;
885
+ escrowAuthority: z.ZodString;
886
+ tokenProgram: z.ZodString;
887
+ escrowAta: z.ZodString;
888
+ }, z.core.$loose>>;
824
889
  }, z.core.$loose>>;
825
890
  }, z.core.$loose>>;
826
891
  solver: z.ZodObject<{
@@ -967,6 +1032,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
967
1032
  local: "local";
968
1033
  "bucket-candidate": "bucket-candidate";
969
1034
  "stitched-destination": "stitched-destination";
1035
+ "chainer-child": "chainer-child";
970
1036
  }>;
971
1037
  intentHash: z.ZodString;
972
1038
  routeHash: z.ZodOptional<z.ZodString>;
@@ -1000,6 +1066,16 @@ export declare const QuoteResponseSchema: z.ZodObject<{
1000
1066
  }, z.core.$loose>>;
1001
1067
  }, z.core.$loose>;
1002
1068
  }, z.core.$loose>;
1069
+ chainerOrder: z.ZodOptional<z.ZodObject<{
1070
+ encodedOrder: z.ZodString;
1071
+ encodedTemplate: z.ZodString;
1072
+ templateHash: z.ZodString;
1073
+ paramsHash: z.ZodString;
1074
+ programId: z.ZodString;
1075
+ escrowAuthority: z.ZodString;
1076
+ tokenProgram: z.ZodString;
1077
+ escrowAta: z.ZodString;
1078
+ }, z.core.$loose>>;
1003
1079
  }, z.core.$loose>>;
1004
1080
  }, z.core.$loose>>;
1005
1081
  solver: z.ZodObject<{
@@ -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");
@@ -205,12 +205,23 @@ exports.IntentRewardSchema = zod_1.z.looseObject({
205
205
  nativeAmount: primitives_1.UintString,
206
206
  tokens: zod_1.z.array(exports.IntentTokenAmountSchema),
207
207
  });
208
+ exports.ChainerOrderSchema = zod_1.z.looseObject({
209
+ encodedOrder: primitives_1.HexBytes,
210
+ encodedTemplate: primitives_1.HexBytes,
211
+ templateHash: primitives_1.Bytes32,
212
+ paramsHash: primitives_1.Bytes32,
213
+ programId: primitives_1.SvmAddress,
214
+ escrowAuthority: primitives_1.SvmAddress,
215
+ tokenProgram: primitives_1.SvmAddress,
216
+ escrowAta: primitives_1.SvmAddress,
217
+ });
208
218
  exports.StepIntentSchema = zod_1.z.looseObject({
209
219
  role: enums_1.RelatedIntentRole,
210
220
  intentHash: primitives_1.Bytes32,
211
221
  routeHash: primitives_1.Bytes32.optional(),
212
222
  bucketIndex: zod_1.z.number().int().nonnegative().optional(),
213
223
  intent: zod_1.z.looseObject({ route: exports.IntentRouteSchema, reward: exports.IntentRewardSchema }),
224
+ chainerOrder: exports.ChainerOrderSchema.optional(),
214
225
  });
215
226
  exports.StepSchema = zod_1.z.looseObject({
216
227
  type: enums_1.StepType,