@compass-labs/api-sdk 2.1.10-rc.10 → 2.1.10-rc.11

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 (91) hide show
  1. package/README.md +4 -1
  2. package/dist/commonjs/funcs/bridgeCctpMint.d.ts +2 -2
  3. package/dist/commonjs/funcs/bridgeCctpMint.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/bridgeCctpMint.js +3 -3
  5. package/dist/commonjs/funcs/bridgeCctpMint.js.map +1 -1
  6. package/dist/commonjs/models/components/depositforburnrequest.d.ts +0 -8
  7. package/dist/commonjs/models/components/depositforburnrequest.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/depositforburnrequest.js.map +1 -1
  9. package/dist/commonjs/models/components/depositforburnresponse.d.ts +3 -17
  10. package/dist/commonjs/models/components/depositforburnresponse.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/depositforburnresponse.js.map +1 -1
  12. package/dist/commonjs/models/components/index.d.ts +1 -0
  13. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/index.js +1 -0
  15. package/dist/commonjs/models/components/index.js.map +1 -1
  16. package/dist/commonjs/models/components/mintpreparecompletedresponse.d.ts +29 -0
  17. package/dist/commonjs/models/components/mintpreparecompletedresponse.d.ts.map +1 -0
  18. package/dist/commonjs/models/components/mintpreparecompletedresponse.js +57 -0
  19. package/dist/commonjs/models/components/mintpreparecompletedresponse.js.map +1 -0
  20. package/dist/commonjs/models/components/mintpreparereadyresponse.d.ts +1 -1
  21. package/dist/commonjs/models/components/mintpreparereadyresponse.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/mintpreparereadyresponse.js +1 -1
  23. package/dist/commonjs/models/components/mintpreparereadyresponse.js.map +1 -1
  24. package/dist/commonjs/models/components/mintpreparerequest.d.ts +0 -3
  25. package/dist/commonjs/models/components/mintpreparerequest.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/mintpreparerequest.js.map +1 -1
  27. package/dist/commonjs/models/errors/index.d.ts +1 -0
  28. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  29. package/dist/commonjs/models/errors/index.js +1 -0
  30. package/dist/commonjs/models/errors/index.js.map +1 -1
  31. package/dist/commonjs/models/errors/mintpreparenotfoundresponseerror.d.ts +52 -0
  32. package/dist/commonjs/models/errors/mintpreparenotfoundresponseerror.d.ts.map +1 -0
  33. package/dist/commonjs/models/errors/mintpreparenotfoundresponseerror.js +82 -0
  34. package/dist/commonjs/models/errors/mintpreparenotfoundresponseerror.js.map +1 -0
  35. package/dist/commonjs/models/operations/v2cctpmint.d.ts +8 -1
  36. package/dist/commonjs/models/operations/v2cctpmint.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/v2cctpmint.js +14 -2
  38. package/dist/commonjs/models/operations/v2cctpmint.js.map +1 -1
  39. package/dist/commonjs/sdk/bridge.d.ts +1 -1
  40. package/dist/commonjs/sdk/bridge.js +1 -1
  41. package/dist/esm/funcs/bridgeCctpMint.d.ts +2 -2
  42. package/dist/esm/funcs/bridgeCctpMint.d.ts.map +1 -1
  43. package/dist/esm/funcs/bridgeCctpMint.js +3 -3
  44. package/dist/esm/funcs/bridgeCctpMint.js.map +1 -1
  45. package/dist/esm/models/components/depositforburnrequest.d.ts +0 -8
  46. package/dist/esm/models/components/depositforburnrequest.d.ts.map +1 -1
  47. package/dist/esm/models/components/depositforburnrequest.js.map +1 -1
  48. package/dist/esm/models/components/depositforburnresponse.d.ts +3 -17
  49. package/dist/esm/models/components/depositforburnresponse.d.ts.map +1 -1
  50. package/dist/esm/models/components/depositforburnresponse.js.map +1 -1
  51. package/dist/esm/models/components/index.d.ts +1 -0
  52. package/dist/esm/models/components/index.d.ts.map +1 -1
  53. package/dist/esm/models/components/index.js +1 -0
  54. package/dist/esm/models/components/index.js.map +1 -1
  55. package/dist/esm/models/components/mintpreparecompletedresponse.d.ts +29 -0
  56. package/dist/esm/models/components/mintpreparecompletedresponse.d.ts.map +1 -0
  57. package/dist/esm/models/components/mintpreparecompletedresponse.js +20 -0
  58. package/dist/esm/models/components/mintpreparecompletedresponse.js.map +1 -0
  59. package/dist/esm/models/components/mintpreparereadyresponse.d.ts +1 -1
  60. package/dist/esm/models/components/mintpreparereadyresponse.d.ts.map +1 -1
  61. package/dist/esm/models/components/mintpreparereadyresponse.js +1 -1
  62. package/dist/esm/models/components/mintpreparereadyresponse.js.map +1 -1
  63. package/dist/esm/models/components/mintpreparerequest.d.ts +0 -3
  64. package/dist/esm/models/components/mintpreparerequest.d.ts.map +1 -1
  65. package/dist/esm/models/components/mintpreparerequest.js.map +1 -1
  66. package/dist/esm/models/errors/index.d.ts +1 -0
  67. package/dist/esm/models/errors/index.d.ts.map +1 -1
  68. package/dist/esm/models/errors/index.js +1 -0
  69. package/dist/esm/models/errors/index.js.map +1 -1
  70. package/dist/esm/models/errors/mintpreparenotfoundresponseerror.d.ts +52 -0
  71. package/dist/esm/models/errors/mintpreparenotfoundresponseerror.d.ts.map +1 -0
  72. package/dist/esm/models/errors/mintpreparenotfoundresponseerror.js +45 -0
  73. package/dist/esm/models/errors/mintpreparenotfoundresponseerror.js.map +1 -0
  74. package/dist/esm/models/operations/v2cctpmint.d.ts +8 -1
  75. package/dist/esm/models/operations/v2cctpmint.d.ts.map +1 -1
  76. package/dist/esm/models/operations/v2cctpmint.js +12 -1
  77. package/dist/esm/models/operations/v2cctpmint.js.map +1 -1
  78. package/dist/esm/sdk/bridge.d.ts +1 -1
  79. package/dist/esm/sdk/bridge.js +1 -1
  80. package/package.json +1 -1
  81. package/src/funcs/bridgeCctpMint.ts +6 -2
  82. package/src/models/components/depositforburnrequest.ts +0 -8
  83. package/src/models/components/depositforburnresponse.ts +3 -17
  84. package/src/models/components/index.ts +1 -0
  85. package/src/models/components/mintpreparecompletedresponse.ts +57 -0
  86. package/src/models/components/mintpreparereadyresponse.ts +2 -2
  87. package/src/models/components/mintpreparerequest.ts +0 -3
  88. package/src/models/errors/index.ts +1 -0
  89. package/src/models/errors/mintpreparenotfoundresponseerror.ts +90 -0
  90. package/src/models/operations/v2cctpmint.ts +33 -2
  91. package/src/sdk/bridge.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"v2cctpmint.js","sourceRoot":"","sources":["../../../../src/models/operations/v2cctpmint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAOrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,wCAAwC;IACnD,UAAU,CAAC,sCAAsC;CAClD,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"v2cctpmint.js","sourceRoot":"","sources":["../../../../src/models/operations/v2cctpmint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAerD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,sCAAsC;IACjD,UAAU,CAAC,0CAA0C;CACtD,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,wCAAwC;IACnD,CAAC,CAAC,KAAK,CAAC;QACN,UAAU,CAAC,sCAAsC;QACjD,UAAU,CAAC,0CAA0C;KACtD,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -57,7 +57,7 @@ export declare class Bridge extends ClientSDK {
57
57
  *
58
58
  * - **200 OK**: Attestation is ready, mint transaction is included
59
59
  * - **202 Accepted**: Attestation is pending, SSE URL for real-time updates is included
60
- * - **400 Bad Request**: Bridge not found, or burn event not found yet
60
+ * - **404 Not found**: Bridge not found
61
61
  *
62
62
  * **After receiving 202:**
63
63
  *
@@ -63,7 +63,7 @@ export class Bridge extends ClientSDK {
63
63
  *
64
64
  * - **200 OK**: Attestation is ready, mint transaction is included
65
65
  * - **202 Accepted**: Attestation is pending, SSE URL for real-time updates is included
66
- * - **400 Bad Request**: Bridge not found, or burn event not found yet
66
+ * - **404 Not found**: Bridge not found
67
67
  *
68
68
  * **After receiving 202:**
69
69
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.1.10-rc.10",
3
+ "version": "2.1.10-rc.11",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -52,7 +52,7 @@ import { Result } from "../types/fp.js";
52
52
  *
53
53
  * - **200 OK**: Attestation is ready, mint transaction is included
54
54
  * - **202 Accepted**: Attestation is pending, SSE URL for real-time updates is included
55
- * - **400 Bad Request**: Bridge not found, or burn event not found yet
55
+ * - **404 Not found**: Bridge not found
56
56
  *
57
57
  * **After receiving 202:**
58
58
  *
@@ -69,6 +69,7 @@ export function bridgeCctpMint(
69
69
  ): APIPromise<
70
70
  Result<
71
71
  operations.V2CctpMintResponse,
72
+ | errors.MintPrepareNotFoundResponseError
72
73
  | errors.HTTPValidationError
73
74
  | CompassAPISDKError
74
75
  | ResponseValidationError
@@ -95,6 +96,7 @@ async function $do(
95
96
  [
96
97
  Result<
97
98
  operations.V2CctpMintResponse,
99
+ | errors.MintPrepareNotFoundResponseError
98
100
  | errors.HTTPValidationError
99
101
  | CompassAPISDKError
100
102
  | ResponseValidationError
@@ -162,7 +164,7 @@ async function $do(
162
164
 
163
165
  const doResult = await client._do(req, {
164
166
  context,
165
- errorCodes: ["422", "4XX", "5XX"],
167
+ errorCodes: ["404", "422", "4XX", "5XX"],
166
168
  retryConfig: context.retryConfig,
167
169
  retryCodes: context.retryCodes,
168
170
  });
@@ -177,6 +179,7 @@ async function $do(
177
179
 
178
180
  const [result] = await M.match<
179
181
  operations.V2CctpMintResponse,
182
+ | errors.MintPrepareNotFoundResponseError
180
183
  | errors.HTTPValidationError
181
184
  | CompassAPISDKError
182
185
  | ResponseValidationError
@@ -189,6 +192,7 @@ async function $do(
189
192
  >(
190
193
  M.json(200, operations.V2CctpMintResponse$inboundSchema),
191
194
  M.json(202, operations.V2CctpMintResponse$inboundSchema),
195
+ M.jsonErr(404, errors.MintPrepareNotFoundResponseError$inboundSchema),
192
196
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
193
197
  M.fail("4XX"),
194
198
  M.fail("5XX"),
@@ -53,14 +53,6 @@ export type DepositForBurnRequestTransferMode = ClosedEnum<
53
53
  typeof DepositForBurnRequestTransferMode
54
54
  >;
55
55
 
56
- /**
57
- * Request model for CCTP depositForBurn transaction from a smart account.
58
- *
59
- * @remarks
60
- *
61
- * Burns USDC from a Product Account to initiate a cross-chain transfer via Circle's
62
- * CCTP.
63
- */
64
56
  export type DepositForBurnRequest = {
65
57
  /**
66
58
  * The primary wallet address that owns and controls the Product Account.
@@ -36,23 +36,9 @@ export type DepositForBurnResponseTransferMode = ClosedEnum<
36
36
  *
37
37
  * @remarks
38
38
  *
39
- * Contains either an unsigned transaction for direct submission or EIP-712 typed
40
- * data for gas-sponsored transactions. Also includes a bridge_id for tracking
41
- * the cross-chain transfer.
42
- *
43
- * Attributes:
44
- * bridge_id: Unique identifier for this bridge operation. Use this ID when
45
- * calling /mint/prepare to complete the cross-chain transfer. The API
46
- * tracks the bridge state and will automatically poll for Circle's
47
- * attestation.
48
- * transaction: Unsigned transaction for the owner to sign and submit directly.
49
- * Present when gas_sponsorship=False.
50
- * eip_712: EIP-712 typed data for off-chain signing. The owner signs this
51
- * data and submits it to /gas_sponsorship/prepare for a relayer to execute.
52
- * Present when gas_sponsorship=True.
53
- * transfer_mode: The transfer speed mode used for this bridge operation.
54
- * fee: Fee amount in USDC (only charged for fast mode, None for standard).
55
- * estimated_time_seconds: Estimated time to complete the bridge in seconds.
39
+ * Contains either an unsigned transaction for direct submission or EIP-712 typed data
40
+ * for gas-sponsored transactions. Also includes a bridge_id for tracking the cross-
41
+ * chain transfer.
56
42
  */
57
43
  export type DepositForBurnResponse = {
58
44
  /**
@@ -110,6 +110,7 @@ export * from "./market.js";
110
110
  export * from "./marketposition.js";
111
111
  export * from "./markettokens.js";
112
112
  export * from "./maxsupplyapydata.js";
113
+ export * from "./mintpreparecompletedresponse.js";
113
114
  export * from "./mintpreparependingresponse.js";
114
115
  export * from "./mintpreparereadyresponse.js";
115
116
  export * from "./mintpreparerequest.js";
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Response when the bridge has already been completed (minted).
13
+ *
14
+ * @remarks
15
+ *
16
+ * This means someone has already called receiveMessage on the destination chain to
17
+ * mint the USDC. No further action is required.
18
+ */
19
+ export type MintPrepareCompletedResponse = {
20
+ /**
21
+ * Indicates the bridge has already been completed and USDC minted.
22
+ */
23
+ status: "completed";
24
+ /**
25
+ * The bridge identifier.
26
+ */
27
+ bridgeId: string;
28
+ /**
29
+ * Human-readable message explaining the status.
30
+ */
31
+ message?: string | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const MintPrepareCompletedResponse$inboundSchema: z.ZodType<
36
+ MintPrepareCompletedResponse,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ status: z.literal("completed"),
41
+ bridge_id: z.string(),
42
+ message: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "bridge_id": "bridgeId",
46
+ });
47
+ });
48
+
49
+ export function mintPrepareCompletedResponseFromJSON(
50
+ jsonString: string,
51
+ ): SafeParseResult<MintPrepareCompletedResponse, SDKValidationError> {
52
+ return safeParse(
53
+ jsonString,
54
+ (x) => MintPrepareCompletedResponse$inboundSchema.parse(JSON.parse(x)),
55
+ `Failed to parse 'MintPrepareCompletedResponse' from JSON`,
56
+ );
57
+ }
@@ -24,7 +24,7 @@ export type MintPrepareReadyResponse = {
24
24
  /**
25
25
  * Indicates the attestation is ready and mint transaction is available.
26
26
  */
27
- status?: "ready" | undefined;
27
+ status: "ready";
28
28
  /**
29
29
  * The bridge identifier.
30
30
  */
@@ -38,7 +38,7 @@ export const MintPrepareReadyResponse$inboundSchema: z.ZodType<
38
38
  z.ZodTypeDef,
39
39
  unknown
40
40
  > = z.object({
41
- status: z.literal("ready").optional(),
41
+ status: z.literal("ready"),
42
42
  bridge_id: z.string(),
43
43
  transaction: UnsignedTransaction$inboundSchema,
44
44
  }).transform((v) => {
@@ -5,9 +5,6 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
- /**
9
- * Request model for preparing a CCTP mint transaction.
10
- */
11
8
  export type MintPrepareRequest = {
12
9
  /**
13
10
  * The bridge identifier returned from /burn endpoint. This is used to look up the bridge session.
@@ -6,5 +6,6 @@ export * from "./apierror.js";
6
6
  export * from "./compassapisdkerror.js";
7
7
  export * from "./httpclienterrors.js";
8
8
  export * from "./httpvalidationerror.js";
9
+ export * from "./mintpreparenotfoundresponseerror.js";
9
10
  export * from "./responsevalidationerror.js";
10
11
  export * from "./sdkvalidationerror.js";
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { CompassAPISDKError } from "./compassapisdkerror.js";
8
+
9
+ /**
10
+ * Response when the burn event has not been found yet.
11
+ *
12
+ * @remarks
13
+ *
14
+ * This means the burn transaction hasn't been confirmed on-chain yet, or the user
15
+ * hasn't broadcast the burn transaction.
16
+ */
17
+ export type MintPrepareNotFoundResponseErrorData = {
18
+ /**
19
+ * Indicates the burn event was not found on the source chain.
20
+ */
21
+ status?: "burn_not_found" | undefined;
22
+ /**
23
+ * The bridge identifier.
24
+ */
25
+ bridgeId: string;
26
+ /**
27
+ * Human-readable message explaining the status.
28
+ */
29
+ message: string;
30
+ };
31
+
32
+ /**
33
+ * Response when the burn event has not been found yet.
34
+ *
35
+ * @remarks
36
+ *
37
+ * This means the burn transaction hasn't been confirmed on-chain yet, or the user
38
+ * hasn't broadcast the burn transaction.
39
+ */
40
+ export class MintPrepareNotFoundResponseError extends CompassAPISDKError {
41
+ /**
42
+ * Indicates the burn event was not found on the source chain.
43
+ */
44
+ status?: "burn_not_found" | undefined;
45
+ /**
46
+ * The bridge identifier.
47
+ */
48
+ bridgeId: string;
49
+
50
+ /** The original data that was passed to this error instance. */
51
+ data$: MintPrepareNotFoundResponseErrorData;
52
+
53
+ constructor(
54
+ err: MintPrepareNotFoundResponseErrorData,
55
+ httpMeta: { response: Response; request: Request; body: string },
56
+ ) {
57
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58
+ super(message, httpMeta);
59
+ this.data$ = err;
60
+ if (err.status != null) this.status = err.status;
61
+ this.bridgeId = err.bridgeId;
62
+
63
+ this.name = "MintPrepareNotFoundResponseError";
64
+ }
65
+ }
66
+
67
+ /** @internal */
68
+ export const MintPrepareNotFoundResponseError$inboundSchema: z.ZodType<
69
+ MintPrepareNotFoundResponseError,
70
+ z.ZodTypeDef,
71
+ unknown
72
+ > = z.object({
73
+ status: z.literal("burn_not_found").optional(),
74
+ bridge_id: z.string(),
75
+ message: z.string(),
76
+ request$: z.instanceof(Request),
77
+ response$: z.instanceof(Response),
78
+ body$: z.string(),
79
+ })
80
+ .transform((v) => {
81
+ const remapped = remap$(v, {
82
+ "bridge_id": "bridgeId",
83
+ });
84
+
85
+ return new MintPrepareNotFoundResponseError(remapped, {
86
+ request: v.request$,
87
+ response: v.response$,
88
+ body: v.body$,
89
+ });
90
+ });
@@ -8,9 +8,37 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import * as components from "../components/index.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
+ /**
12
+ * Attestation ready with mint transaction, or bridge already completed
13
+ */
14
+ export type Response200V2CctpMint =
15
+ | components.MintPrepareReadyResponse
16
+ | components.MintPrepareCompletedResponse;
17
+
11
18
  export type V2CctpMintResponse =
12
19
  | components.MintPreparePendingResponse
13
- | components.MintPrepareReadyResponse;
20
+ | components.MintPrepareReadyResponse
21
+ | components.MintPrepareCompletedResponse;
22
+
23
+ /** @internal */
24
+ export const Response200V2CctpMint$inboundSchema: z.ZodType<
25
+ Response200V2CctpMint,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.union([
29
+ components.MintPrepareReadyResponse$inboundSchema,
30
+ components.MintPrepareCompletedResponse$inboundSchema,
31
+ ]);
32
+
33
+ export function response200V2CctpMintFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<Response200V2CctpMint, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => Response200V2CctpMint$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'Response200V2CctpMint' from JSON`,
40
+ );
41
+ }
14
42
 
15
43
  /** @internal */
16
44
  export const V2CctpMintResponse$inboundSchema: z.ZodType<
@@ -19,7 +47,10 @@ export const V2CctpMintResponse$inboundSchema: z.ZodType<
19
47
  unknown
20
48
  > = z.union([
21
49
  components.MintPreparePendingResponse$inboundSchema,
22
- components.MintPrepareReadyResponse$inboundSchema,
50
+ z.union([
51
+ components.MintPrepareReadyResponse$inboundSchema,
52
+ components.MintPrepareCompletedResponse$inboundSchema,
53
+ ]),
23
54
  ]);
24
55
 
25
56
  export function v2CctpMintResponseFromJSON(
package/src/sdk/bridge.ts CHANGED
@@ -75,7 +75,7 @@ export class Bridge extends ClientSDK {
75
75
  *
76
76
  * - **200 OK**: Attestation is ready, mint transaction is included
77
77
  * - **202 Accepted**: Attestation is pending, SSE URL for real-time updates is included
78
- * - **400 Bad Request**: Bridge not found, or burn event not found yet
78
+ * - **404 Not found**: Bridge not found
79
79
  *
80
80
  * **After receiving 202:**
81
81
  *