@tixprotocol/tdp-sdk 0.4.0 → 0.5.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 +13 -1
- package/dist/{chunk-DKU7DEI5.js → chunk-MZKCWS5T.js} +67 -36
- package/dist/chunk-MZKCWS5T.js.map +1 -0
- package/dist/index.d.ts +802 -97
- package/dist/index.js +151 -89
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +23 -58
- package/dist/schemas.js +13 -13
- package/package.json +1 -1
- package/dist/chunk-DKU7DEI5.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -12,36 +12,24 @@ declare const GetAddressResponseSchema: z.ZodObject<{
|
|
|
12
12
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare const AcceptClaimOffersSchema: z.ZodObject<{
|
|
23
|
-
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
24
|
-
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
25
|
-
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
26
|
-
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
27
|
-
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
28
|
-
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
29
|
-
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
15
|
+
declare const OrderPathParametersSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/** A listed ticket to buy. The server reads its listing, permit, event and the protocol config. */
|
|
19
|
+
declare const CreateAndSubmitOrderListingSchema: z.ZodObject<{
|
|
20
|
+
eventId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
21
|
+
ticketId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
30
22
|
}, z.core.$strict>;
|
|
31
|
-
declare const
|
|
32
|
-
|
|
23
|
+
declare const CreateAndSubmitOrderRequestBodySchema: z.ZodObject<{
|
|
24
|
+
userId: z.ZodString;
|
|
33
25
|
userEmail: z.ZodEmail;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
38
|
-
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
39
|
-
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
40
|
-
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
41
|
-
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
26
|
+
listings: z.ZodArray<z.ZodObject<{
|
|
27
|
+
eventId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
28
|
+
ticketId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
42
29
|
}, z.core.$strict>>;
|
|
43
30
|
}, z.core.$strip>;
|
|
44
|
-
declare const
|
|
31
|
+
declare const CreateAndSubmitOrderResponseSchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
45
33
|
status: z.ZodNullable<z.ZodEnum<{
|
|
46
34
|
processing: "processing";
|
|
47
35
|
confirmed: "confirmed";
|
|
@@ -55,9 +43,8 @@ declare const AcceptClaimOffersResponseSchema: z.ZodObject<{
|
|
|
55
43
|
claimUrl: z.ZodURL;
|
|
56
44
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
57
45
|
}, z.core.$strip>;
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
declare const GetPurchaseStatusResponseSchema: z.ZodObject<{
|
|
46
|
+
type CreateAndSubmitOrderResponse = z.infer<typeof CreateAndSubmitOrderResponseSchema>;
|
|
47
|
+
declare const GetOrderResponseSchema: z.ZodObject<{
|
|
61
48
|
custodialTransactionId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
62
49
|
transactionSignature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
63
50
|
status: z.ZodNullable<z.ZodEnum<{
|
|
@@ -67,12 +54,13 @@ declare const GetPurchaseStatusResponseSchema: z.ZodObject<{
|
|
|
67
54
|
expired: "expired";
|
|
68
55
|
}>>;
|
|
69
56
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
57
|
+
id: z.ZodString;
|
|
70
58
|
claimWallet: z.ZodObject<{
|
|
71
59
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
72
60
|
claimWalletId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
73
61
|
}, z.core.$strip>;
|
|
74
62
|
}, z.core.$strip>;
|
|
75
|
-
type
|
|
63
|
+
type GetOrderResponse = z.infer<typeof GetOrderResponseSchema>;
|
|
76
64
|
|
|
77
65
|
declare const SignTransactionResponseSchema: z.ZodObject<{
|
|
78
66
|
custodialTransactionId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
@@ -282,6 +270,10 @@ declare const TixIndexerActiveListingsResultSchema: z.ZodObject<{
|
|
|
282
270
|
next_cursor: z.ZodNullable<z.ZodString>;
|
|
283
271
|
}, z.core.$strict>;
|
|
284
272
|
type TixIndexerActiveListingsResult = z.infer<typeof TixIndexerActiveListingsResultSchema>;
|
|
273
|
+
/** The wallet address of the API key's primary integrator. */
|
|
274
|
+
declare const GetIntegratorResponseSchema: z.ZodObject<{
|
|
275
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
276
|
+
}, z.core.$strip>;
|
|
285
277
|
|
|
286
278
|
/** Query-string values arrive as strings, hence the coercion. */
|
|
287
279
|
declare const LimitCursorQuerySchema: z.ZodObject<{
|
|
@@ -300,18 +292,6 @@ declare const Blockhash: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Block
|
|
|
300
292
|
/** A base58 Solana signature. */
|
|
301
293
|
declare const Signature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
302
294
|
|
|
303
|
-
declare const AcceptOfferV2ParamsSchema: z.ZodObject<{
|
|
304
|
-
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
305
|
-
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
306
|
-
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
307
|
-
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
308
|
-
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
309
|
-
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
310
|
-
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
311
|
-
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
312
|
-
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
313
|
-
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
314
|
-
}, z.core.$strip>;
|
|
315
295
|
declare const CancelListingV1ParamsSchema: z.ZodObject<{
|
|
316
296
|
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
317
297
|
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
@@ -331,21 +311,6 @@ declare const ListTicketV2ParamsSchema: z.ZodObject<{
|
|
|
331
311
|
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
332
312
|
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
333
313
|
}, z.core.$strip>;
|
|
334
|
-
declare const AcceptOfferV2InstructionBatchSchema: z.ZodObject<{
|
|
335
|
-
instruction: z.ZodLiteral<"accept_offer_v2">;
|
|
336
|
-
params: z.ZodArray<z.ZodObject<{
|
|
337
|
-
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
338
|
-
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
339
|
-
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
340
|
-
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
341
|
-
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
342
|
-
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
343
|
-
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
344
|
-
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
345
|
-
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
346
|
-
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
347
|
-
}, z.core.$strip>>;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
314
|
declare const CancelListingV1InstructionBatchSchema: z.ZodObject<{
|
|
350
315
|
instruction: z.ZodLiteral<"cancel_listing_v1">;
|
|
351
316
|
params: z.ZodArray<z.ZodObject<{
|
|
@@ -414,4 +379,4 @@ type TixWireInstructionBatch = z.infer<typeof TixWireInstructionBatchSchema>;
|
|
|
414
379
|
|
|
415
380
|
declare const Base64WireEncodedTransactionSchema: z.ZodPipe<z.ZodBase64, z.ZodTransform<Base64EncodedWireTransaction, string>>;
|
|
416
381
|
|
|
417
|
-
export {
|
|
382
|
+
export { AdditionalSignaturesSchema, Base58Address, Base64WireEncodedTransactionSchema, Blockhash, CancelListingV1InstructionBatchSchema, CancelListingV1ParamsSchema, CreateAndSubmitOrderListingSchema, CreateAndSubmitOrderRequestBodySchema, type CreateAndSubmitOrderResponse, CreateAndSubmitOrderResponseSchema, EventPathParametersSchema, EventV1ResponseSchema, GetAddressResponseSchema, GetIntegratorResponseSchema, type GetOrderResponse, GetOrderResponseSchema, IntegratorAccountResponseSchema, IntegratorPathParametersSchema, LimitCursorQuerySchema, ListTicketV2InstructionBatchSchema, ListTicketV2ParamsSchema, ListingV1ResponseSchema, OrderPathParametersSchema, PermitV1ResponseSchema, PostIntegratorMetadataRequestBodySchema, type PostTixIndexerIntegratorMetadataResult, PostTixIndexerIntegratorMetadataResultSchema, ProtocolConfigV1ResponseSchema, SignTenantTransactionRequestBodySchema, SignTransactionResponseSchema, Signature, SubmitTenantTransactionRequestBodySchema, SubmitTenantTransactionResponseSchema, TicketPathParametersSchema, type TixIndexerActiveListingsResult, TixIndexerActiveListingsResultSchema, type TixIndexerUpcomingEventsResult, TixIndexerUpcomingEventsResultSchema, type TixWireInstructionBatch, TixWireInstructionBatchSchema, type UserWalletPathParameters, WalletPathParametersSchema, WireI64, WireU16, WireU32, WireU64 };
|
package/dist/schemas.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AcceptClaimOffersRequestBodySchema,
|
|
3
|
-
AcceptClaimOffersResponseSchema,
|
|
4
|
-
AcceptClaimOffersSchema,
|
|
5
|
-
AcceptOfferV2InstructionBatchSchema,
|
|
6
|
-
AcceptOfferV2ParamsSchema,
|
|
7
2
|
AdditionalSignaturesSchema,
|
|
8
3
|
Base58Address,
|
|
9
4
|
Base64WireEncodedTransactionSchema,
|
|
10
5
|
Blockhash,
|
|
11
6
|
CancelListingV1InstructionBatchSchema,
|
|
12
7
|
CancelListingV1ParamsSchema,
|
|
8
|
+
CreateAndSubmitOrderListingSchema,
|
|
9
|
+
CreateAndSubmitOrderRequestBodySchema,
|
|
10
|
+
CreateAndSubmitOrderResponseSchema,
|
|
13
11
|
EventPathParametersSchema,
|
|
14
12
|
EventV1ResponseSchema,
|
|
15
13
|
GetAddressResponseSchema,
|
|
16
|
-
|
|
14
|
+
GetIntegratorResponseSchema,
|
|
15
|
+
GetOrderResponseSchema,
|
|
17
16
|
IntegratorAccountResponseSchema,
|
|
18
17
|
IntegratorPathParametersSchema,
|
|
19
18
|
LimitCursorQuerySchema,
|
|
@@ -21,6 +20,7 @@ import {
|
|
|
21
20
|
ListTicketV2ParamsSchema,
|
|
22
21
|
ListingV1ResponseSchema,
|
|
23
22
|
NullableTransactionSubmissionStatusSchema,
|
|
23
|
+
OrderPathParametersSchema,
|
|
24
24
|
PermitV1ResponseSchema,
|
|
25
25
|
PostIntegratorMetadataRequestBodySchema,
|
|
26
26
|
PostTixIndexerIntegratorMetadataResultSchema,
|
|
@@ -40,17 +40,12 @@ import {
|
|
|
40
40
|
WireU16,
|
|
41
41
|
WireU32,
|
|
42
42
|
WireU64
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MZKCWS5T.js";
|
|
44
44
|
|
|
45
45
|
// ../tdp-schemas/src/primitives/api-environment.ts
|
|
46
46
|
import { z } from "zod";
|
|
47
47
|
var ApiEnvironmentSchema = z.enum(["sandbox", "live"]);
|
|
48
48
|
export {
|
|
49
|
-
AcceptClaimOffersRequestBodySchema,
|
|
50
|
-
AcceptClaimOffersResponseSchema,
|
|
51
|
-
AcceptClaimOffersSchema,
|
|
52
|
-
AcceptOfferV2InstructionBatchSchema,
|
|
53
|
-
AcceptOfferV2ParamsSchema,
|
|
54
49
|
AdditionalSignaturesSchema,
|
|
55
50
|
ApiEnvironmentSchema,
|
|
56
51
|
Base58Address,
|
|
@@ -58,10 +53,14 @@ export {
|
|
|
58
53
|
Blockhash,
|
|
59
54
|
CancelListingV1InstructionBatchSchema,
|
|
60
55
|
CancelListingV1ParamsSchema,
|
|
56
|
+
CreateAndSubmitOrderListingSchema,
|
|
57
|
+
CreateAndSubmitOrderRequestBodySchema,
|
|
58
|
+
CreateAndSubmitOrderResponseSchema,
|
|
61
59
|
EventPathParametersSchema,
|
|
62
60
|
EventV1ResponseSchema,
|
|
63
61
|
GetAddressResponseSchema,
|
|
64
|
-
|
|
62
|
+
GetIntegratorResponseSchema,
|
|
63
|
+
GetOrderResponseSchema,
|
|
65
64
|
IntegratorAccountResponseSchema,
|
|
66
65
|
IntegratorPathParametersSchema,
|
|
67
66
|
LimitCursorQuerySchema,
|
|
@@ -69,6 +68,7 @@ export {
|
|
|
69
68
|
ListTicketV2ParamsSchema,
|
|
70
69
|
ListingV1ResponseSchema,
|
|
71
70
|
NullableTransactionSubmissionStatusSchema,
|
|
71
|
+
OrderPathParametersSchema,
|
|
72
72
|
PermitV1ResponseSchema,
|
|
73
73
|
PostIntegratorMetadataRequestBodySchema,
|
|
74
74
|
PostTixIndexerIntegratorMetadataResultSchema,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../tix-wire-schema/src/primitives.ts","../../tdp-schemas/src/solana/accounts.ts","../../tdp-schemas/src/tix-api/path-params.ts","../../tdp-schemas/src/solana-data-api/routes.ts","../../tdp-schemas/src/primitives/integrator-status-name.ts","../../tdp-schemas/src/routes/define-client-route.ts","../../tdp-schemas/src/routes/request-schemas.ts","../../tdp-schemas/src/tix-indexer-api/metadata.ts","../../tdp-schemas/src/tix-indexer-api/read-responses.ts","../../tdp-schemas/src/tix-indexer-api/read-routes.ts","../../tdp-schemas/src/wallet-custody/addresses.ts","../../tix-wire-schema/src/instructions.ts","../../tix-wire-schema/src/unique-permit-keys.ts","../../tdp-schemas/src/primitives/transaction-submission-status.ts","../../tdp-schemas/src/wallet-custody/claim-offers.ts","../../tdp-schemas/src/primitives/hashes.ts","../../tdp-schemas/src/wallet-custody/const.ts","../../tdp-schemas/src/wallet-custody/submission-responses.ts","../../tdp-schemas/src/wallet-custody/purchase-status.ts","../../tix-wire-schema/src/transactions.ts","../../tdp-schemas/src/wallet-custody/signing-responses.ts","../../tdp-schemas/src/wallet-custody/transaction-inputs.ts"],"sourcesContent":["import {\n address as parseAddress,\n blockhash as parseBlockhash,\n signature as parseSignature,\n} from \"@solana/kit\";\nimport { z } from \"zod\";\n\nexport const U64_MAX = 18_446_744_073_709_551_615n;\nexport const I64_MAX = 9_223_372_036_854_775_807n;\nexport const I64_MIN = -9_223_372_036_854_775_808n;\nexport const U16_MAX = 65_535;\nexport const U32_MAX = 4_294_967_295;\n\nexport const BigIntU64 = z.bigint().nonnegative().max(U64_MAX);\n\nexport const BigIntI64 = z.bigint().min(I64_MIN).max(I64_MAX);\n\nexport const WireU64 = z\n .union([z.string().regex(/^\\d+$/), z.number().int(), z.bigint()])\n .transform(BigInt)\n .pipe(BigIntU64)\n .transform(String);\n\nexport const WireI64 = z\n .union([z.string().regex(/^-?\\d+$/), z.number().int(), z.bigint()])\n .transform(BigInt)\n .pipe(BigIntI64)\n .transform(String);\n\n// u16/u32 fit within JavaScript's safe-integer range and use JSON numbers.\nexport const WireU16 = z.number().int().min(0).max(U16_MAX);\n\nexport const WireU32 = z.number().int().min(0).max(U32_MAX);\n\n/** A base58 Solana address. */\nexport const Base58Address = z.string().transform((value, ctx) => {\n try {\n return parseAddress(value);\n } catch {\n ctx.addIssue({\n code: \"custom\",\n message: \"must be a base58-encoded Solana address\",\n });\n return z.NEVER;\n }\n});\n\n/** A base58 Solana blockhash. */\nexport const Blockhash = z.string().transform((value, ctx) => {\n try {\n return parseBlockhash(value);\n } catch {\n ctx.addIssue({\n code: \"custom\",\n message: \"must be a base58-encoded 32-byte Solana blockhash\",\n });\n return z.NEVER;\n }\n});\n\n/** A base58 Solana signature. */\nexport const Signature = z.string().transform((value, ctx) => {\n try {\n return parseSignature(value);\n } catch {\n ctx.addIssue({\n code: \"custom\",\n message: \"must be a base58-encoded 64-byte Solana signature\",\n });\n return z.NEVER;\n }\n});\n","import {\n Base58Address,\n WireI64,\n WireU64,\n} from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\n\n/** Outbound integers: the decoded bigint becomes a JSON-safe decimal string. */\nconst U64String = WireU64.transform(String);\nconst I64String = WireI64.transform(String);\nconst Address = Base58Address;\n\n/** Decoded on-chain accounts, keyed by their address, with `discriminator` and padding dropped. */\nexport const ListingV1ResponseSchema = z.object({\n address: Address,\n event_id: U64String,\n ticket_id: U64String,\n seller: Address,\n ask_price_minor: U64String,\n buyer_allow: Address,\n payout_ata: Address,\n expires_at: I64String,\n listed_at: I64String,\n permit_version: U64String,\n active: z.boolean(),\n});\n\nexport const EventV1ResponseSchema = z.object({\n address: Address,\n integrator: Address,\n integrator_authority: Address,\n royalty_bps: z.number().int(),\n min_royalty_floor: U64String,\n royalty_recipients_count: z.number().int(),\n royalty_recipients: z.array(\n z.object({ destination: Address, bps: z.number().int() }),\n ),\n total_supply: U64String,\n minted: U64String,\n flags: z.number().int(),\n});\n\nexport const PermitV1ResponseSchema = z.object({\n owner: Address,\n status: z.number().int(),\n ticket_type_id: z.number().int(),\n ticket_type_config: Address,\n version: U64String,\n ticket_id: U64String,\n listing_lock_expiry: I64String,\n});\n\nexport const ProtocolConfigV1ResponseSchema = z.object({\n address: Address,\n usdc_mint: Address,\n default_royalty_vault: Address,\n authority: Address,\n usdc_decimals: z.number().int(),\n event_registration_fee_minor: U64String,\n permit_fee_minor: U64String,\n p2p_transfer_fee_minor: U64String,\n resale_fee_bps: z.number().int(),\n});\n","import { Base58Address, WireU64 } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\n\nexport const EventPathParametersSchema = z\n .object({ eventId: WireU64 })\n .strict();\n\nexport const TicketPathParametersSchema = EventPathParametersSchema.extend({\n ticketId: WireU64,\n});\n\nexport const IntegratorPathParametersSchema = z\n .object({ identity: Base58Address })\n .strict();\n","import { Base58Address, WireU64 } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\nimport { IntegratorStatusNameSchema } from \"../primitives/integrator-status-name\";\nimport { defineClientRoute } from \"../routes/define-client-route\";\nimport {\n ApiKeyHeadersSchema,\n NoPathParametersSchema,\n} from \"../routes/request-schemas\";\nimport {\n EventV1ResponseSchema,\n ListingV1ResponseSchema,\n PermitV1ResponseSchema,\n ProtocolConfigV1ResponseSchema,\n} from \"../solana/accounts\";\nimport {\n EventPathParametersSchema,\n IntegratorPathParametersSchema,\n TicketPathParametersSchema,\n} from \"../tix-api/path-params\";\n\nexport const GET_EVENT_ACCOUNT_ROUTE_KEY = \"GET /events/{eventId}\";\nexport const GET_LISTING_ACCOUNT_ROUTE_KEY =\n \"GET /listings/{eventId}/{ticketId}\";\nexport const GET_PERMIT_ROUTE_KEY = \"GET /permits/{eventId}/{ticketId}\";\nexport const GET_PROTOCOL_CONFIG_ACCOUNT_ROUTE_KEY = \"GET /protocol-config\";\nexport const GET_INTEGRATOR_ACCOUNT_ROUTE_KEY = \"GET /integrators/{identity}\";\n\n/** A registered integrator only; an unregistered identity is a 404, never a null. */\nexport const IntegratorAccountResponseSchema = z.object({\n integrator_pda: Base58Address,\n integrator: z.object({\n authority: Base58Address,\n status: IntegratorStatusNameSchema,\n treasury_usdc: Base58Address,\n balance: z.object({\n amount_minor: WireU64,\n decimals: z.number().int().min(0),\n }),\n }),\n});\n\nexport const solanaDataApiClientRoutes = {\n \"get-event-account\": defineClientRoute({\n name: \"get-event-account\",\n method: \"GET\",\n routeKey: GET_EVENT_ACCOUNT_ROUTE_KEY,\n pathParamsSchema: EventPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\", eventId }) =>\n `${baseApiUrl}/events/${eventId}`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: EventV1ResponseSchema,\n }),\n \"get-listing-account\": defineClientRoute({\n name: \"get-listing-account\",\n method: \"GET\",\n routeKey: GET_LISTING_ACCOUNT_ROUTE_KEY,\n pathParamsSchema: TicketPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\", eventId, ticketId }) =>\n `${baseApiUrl}/listings/${eventId}/${ticketId}`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: ListingV1ResponseSchema,\n }),\n \"get-permit\": defineClientRoute({\n name: \"get-permit\",\n method: \"GET\",\n routeKey: GET_PERMIT_ROUTE_KEY,\n pathParamsSchema: TicketPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\", eventId, ticketId }) =>\n `${baseApiUrl}/permits/${eventId}/${ticketId}`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: PermitV1ResponseSchema,\n }),\n \"get-protocol-config-account\": defineClientRoute({\n name: \"get-protocol-config-account\",\n method: \"GET\",\n routeKey: GET_PROTOCOL_CONFIG_ACCOUNT_ROUTE_KEY,\n pathParamsSchema: NoPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\" }) => `${baseApiUrl}/protocol-config`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: ProtocolConfigV1ResponseSchema,\n }),\n \"get-integrator-account\": defineClientRoute({\n name: \"get-integrator-account\",\n method: \"GET\",\n routeKey: GET_INTEGRATOR_ACCOUNT_ROUTE_KEY,\n pathParamsSchema: IntegratorPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\", identity }) =>\n `${baseApiUrl}/integrators/${identity}`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: IntegratorAccountResponseSchema,\n }),\n} as const;\n\nexport const responseBodySchemaByRouteKey = Object.fromEntries(\n Object.values(solanaDataApiClientRoutes).map(\n (route) => [route.routeKey, route.responseBodySchema] as const,\n ),\n) as Record<string, z.ZodType<Record<string, unknown>>>;\n","import { z } from \"zod\";\n\nexport const IntegratorStatusNameSchema = z.enum([\"Active\", \"Suspended\"]);\nexport type IntegratorStatusName = z.infer<typeof IntegratorStatusNameSchema>;\n","import type { z } from \"zod\";\n\n/** This type detects schema drift by requiring mutual assignability. */\nexport type ExactTypeMatch<TExpected, TActual, TError> =\n TExpected extends TActual\n ? TActual extends TExpected\n ? unknown\n : TError\n : TError;\n\n/**\n * This function defines a client route's request builders and response schema.\n * Callers should omit `requestBodySchema` for bodyless routes.\n */\nexport function defineClientRoute<\n TPathParamsSchema extends z.ZodType,\n THeadersSchema extends z.ZodType,\n TResponseBodySchema extends z.ZodType,\n TMethod extends string,\n TRouteKey extends `${TMethod} ${string}`,\n TRequestBodySchema extends z.ZodType | undefined = undefined,\n TQueryParamsSchema extends z.ZodType | undefined = undefined,\n>(spec: {\n name: string;\n method: TMethod;\n routeKey: TRouteKey;\n pathParamsSchema: TPathParamsSchema;\n buildPath: (\n args: z.infer<TPathParamsSchema> & { baseApiUrl?: string },\n ) => string;\n headersSchema: THeadersSchema;\n requestBodySchema?: TRequestBodySchema;\n queryParamsSchema?: TQueryParamsSchema;\n responseBodySchema: TResponseBodySchema;\n}) {\n return {\n ...spec,\n // Normalize a missing path-params arg to {} so callers don't have to pass anything, even if\n // there are no path-params args.\n buildPath: (\n args?: z.infer<TPathParamsSchema> & { baseApiUrl?: string },\n ): string =>\n spec.buildPath(\n args ?? ({} as z.infer<TPathParamsSchema> & { baseApiUrl?: string }),\n ),\n buildJsonPayload: (fields: z.input<NonNullable<TRequestBodySchema>>) => {\n if (!spec.requestBodySchema) {\n const msg =\n \"This path should be impossible to reach; \" +\n \"it's not possible to build a JSON payload for a bodyless route\";\n throw new TypeError(msg);\n }\n return JSON.stringify(spec.requestBodySchema.parse(fields));\n },\n buildHeaders: (headers: z.input<THeadersSchema>) =>\n spec.headersSchema.parse(headers) as z.output<THeadersSchema>,\n /** The `?k=v` suffix for a route's query params, empty when the route declares none or every value is undefined. */\n buildQueryString: (params: z.input<NonNullable<TQueryParamsSchema>>) => {\n const parsed = spec.queryParamsSchema?.parse(params) ?? {};\n const search = new URLSearchParams(\n Object.entries(parsed as Record<string, unknown>)\n .filter(([, value]) => value !== undefined && value !== null)\n .map(([key, value]) => [key, String(value)]),\n ).toString();\n return search ? `?${search}` : \"\";\n },\n };\n}\n\n/** Structural supertype of every {@link defineClientRoute} result. */\nexport type AnyClientRoute = {\n name: string;\n method: string;\n routeKey: string;\n pathParamsSchema: z.ZodType;\n headersSchema: z.ZodType;\n requestBodySchema?: unknown;\n queryParamsSchema?: unknown;\n responseBodySchema: z.ZodType;\n buildPath: (args: never) => string;\n buildJsonPayload: (fields: never) => string;\n buildHeaders: (headers: never) => unknown;\n buildQueryString: (params: never) => string;\n};\n","import { z } from \"zod\";\n\nexport const MISSING_API_KEY_MESSAGE = \"Invalid or missing API key in headers.\";\n\nexport const ApiKeyHeadersSchema = z.object({\n \"x-api-key\": z\n .string(MISSING_API_KEY_MESSAGE)\n .min(1, MISSING_API_KEY_MESSAGE),\n});\n\nexport const IdempotencyKeyHeadersSchema = z.object({\n \"idempotency-key\": z.string().min(1).max(255),\n});\n\nexport const IdempotencyKeyAndApiKeyHeadersSchema = ApiKeyHeadersSchema.extend(\n IdempotencyKeyHeadersSchema.shape,\n);\n\n/** For routes that carry no path parameters (`null`/absent on the wire). */\nexport const NoPathParametersSchema = z\n .record(z.string(), z.string())\n .nullish();\n\n/** For routes with no headers. */\nexport const NoHeadersSchema = z.object({}).optional();\n","import { z } from \"zod\";\n\nexport const PostIntegratorMetadataRequestBodySchema = z\n .object({\n name: z.string().optional(),\n start_at: z.string().optional(),\n on_sale_at: z.string().optional(),\n image_url: z.string().optional(),\n timezone: z.string().optional(),\n address: z.string().optional(),\n venue: z.string().optional(),\n genres: z.array(z.string()).optional(),\n } satisfies z.ZodRawShape)\n .strict();\n\nexport const PostTixIndexerIntegratorMetadataResultSchema = z\n .object({\n status: z.literal(\"ok\"),\n event_account: z.string().min(1),\n updated_at: z.string().min(1),\n })\n .strict();\n\nexport type PostTixIndexerIntegratorMetadataResult = z.infer<\n typeof PostTixIndexerIntegratorMetadataResultSchema\n>;\n","import { WireU64 } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\n\nconst NullableStringSchema = z.string().nullable();\n\nexport const TixIndexerEventFoundSchema = z\n .object({\n event_account: z.string().min(1),\n event_id: WireU64.nullable(),\n name: NullableStringSchema,\n start_at: NullableStringSchema,\n on_sale_at: NullableStringSchema,\n image_url: NullableStringSchema,\n timezone: NullableStringSchema,\n address: NullableStringSchema,\n venue: NullableStringSchema,\n active_listing_count: z.number().nonnegative(),\n tickets_issued_count: z.number().nonnegative(),\n integrator_identity: NullableStringSchema,\n updated_at: NullableStringSchema,\n found: z.literal(true),\n genres: z.array(z.string()).nullable(),\n })\n .strict();\n\nexport const TixIndexerUpcomingEventsResultSchema = z\n .object({\n items: z.array(TixIndexerEventFoundSchema),\n next_cursor: NullableStringSchema,\n })\n .strict();\n\nexport type TixIndexerUpcomingEventsResult = z.infer<\n typeof TixIndexerUpcomingEventsResultSchema\n>;\n\nexport const TixIndexerActiveListingsResultSchema = z\n .object({\n items: z.array(\n z\n .object({\n event_account: NullableStringSchema,\n event_id: WireU64.nullable(),\n listing_id: NullableStringSchema,\n ticket_id: WireU64.nullable(),\n seller: NullableStringSchema,\n buyer_allow: NullableStringSchema,\n ask_price_minor: NullableStringSchema,\n payout_ata: NullableStringSchema,\n expires_at: NullableStringSchema,\n updated_at: NullableStringSchema,\n })\n .strict(),\n ),\n next_cursor: NullableStringSchema,\n })\n .strict();\n\nexport type TixIndexerActiveListingsResult = z.infer<\n typeof TixIndexerActiveListingsResultSchema\n>;\n","import { WireU64 } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\nimport { defineClientRoute } from \"../routes/define-client-route\";\nimport {\n ApiKeyHeadersSchema,\n NoPathParametersSchema,\n} from \"../routes/request-schemas\";\nimport {\n TixIndexerActiveListingsResultSchema,\n TixIndexerUpcomingEventsResultSchema,\n} from \"./read-responses\";\n\nexport const GET_ACTIVE_LISTINGS_ROUTE_KEY = \"GET /listings/active\";\nexport const GET_UPCOMING_EVENTS_ROUTE_KEY = \"GET /events/upcoming\";\n\n/** Query-string values arrive as strings, hence the coercion. */\nexport const LimitCursorQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(500).optional(),\n cursor: z.string().min(1).optional(),\n});\n\nexport const ActiveListingsQuerySchema = LimitCursorQuerySchema.extend({\n eventId: WireU64,\n});\n\nexport const tixIndexerReadApiClientRoutes = {\n \"get-active-listings\": defineClientRoute({\n name: \"get-active-listings\",\n method: \"GET\",\n routeKey: GET_ACTIVE_LISTINGS_ROUTE_KEY,\n pathParamsSchema: NoPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\" }) => `${baseApiUrl}/listings/active`,\n headersSchema: ApiKeyHeadersSchema,\n queryParamsSchema: ActiveListingsQuerySchema,\n responseBodySchema: TixIndexerActiveListingsResultSchema,\n }),\n \"get-upcoming-events\": defineClientRoute({\n name: \"get-upcoming-events\",\n method: \"GET\",\n routeKey: GET_UPCOMING_EVENTS_ROUTE_KEY,\n pathParamsSchema: NoPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\" }) => `${baseApiUrl}/events/upcoming`,\n headersSchema: ApiKeyHeadersSchema,\n queryParamsSchema: LimitCursorQuerySchema,\n responseBodySchema: TixIndexerUpcomingEventsResultSchema,\n }),\n} as const;\n","import { Base58Address } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\n\nexport const WalletPathParametersSchema = z\n .object({ subject: z.string().min(1) })\n .strict();\nexport type UserWalletPathParameters = z.infer<\n typeof WalletPathParametersSchema\n>;\n\nexport const GetAddressResponseSchema = z.object({ address: Base58Address });\n","import { z } from \"zod\";\nimport { Base58Address, WireI64, WireU64 } from \"./primitives\";\nimport { requireUniquePermitKeys } from \"./unique-permit-keys\";\n\nexport { requireUniquePermitKeys } from \"./unique-permit-keys\";\n\nexport const AcceptOfferV2ParamsSchema = z.object({\n event_id: WireU64,\n ticket_id: WireU64,\n permit_version: WireU64,\n buyer: Base58Address,\n /**\n * *Authority* for the facilitating integrator's identity. The only required\n * signature: its treasury funds the purchase, so there is no payer.\n */\n integrator_authority: Base58Address,\n seller_payout: Base58Address,\n royalty_destinations: z.array(Base58Address),\n ticket_type_config: Base58Address.nullable().optional(),\n /**\n * Identity of the facilitating integrator, which need not be the event's.\n * Not the PDA, not *necessarily* the authority.\n */\n integrator_identity: Base58Address,\n usdc_mint: Base58Address,\n});\n\nexport const CancelListingV1ParamsSchema = z.object({\n event_id: WireU64,\n ticket_id: WireU64,\n canceller: Base58Address,\n});\n\nexport const ListTicketV2ParamsSchema = z.object({\n seller: Base58Address,\n storage_fee_payer: Base58Address,\n listing_integrator_identity: Base58Address,\n listing_integrator_authority: Base58Address,\n usdc_mint: Base58Address,\n event_id: WireU64,\n ticket_id: WireU64,\n ask_price_minor: WireU64,\n buyer_allow: Base58Address.nullable().optional(),\n payout_ata: Base58Address,\n expires_at: WireI64,\n ticket_type_config: Base58Address.nullable().optional(),\n});\n\nexport const AcceptOfferV2InstructionBatchSchema = z.object({\n instruction: z.literal(\"accept_offer_v2\"),\n params: z\n .array(AcceptOfferV2ParamsSchema)\n .min(1)\n .superRefine(requireUniquePermitKeys),\n});\n\nexport const CancelListingV1InstructionBatchSchema = z.object({\n instruction: z.literal(\"cancel_listing_v1\"),\n params: z\n .array(CancelListingV1ParamsSchema)\n .min(1)\n .superRefine(requireUniquePermitKeys),\n});\n\nexport const ListTicketV2InstructionBatchSchema = z.object({\n instruction: z.literal(\"list_ticket_v2\"),\n params: z\n .array(ListTicketV2ParamsSchema)\n .min(1)\n .superRefine(requireUniquePermitKeys),\n});\n\n/** The wallet custody API accepts batches of one supported TIX instruction kind. */\nexport const TixWireInstructionBatchSchema = z.discriminatedUnion(\n \"instruction\",\n [\n AcceptOfferV2InstructionBatchSchema,\n CancelListingV1InstructionBatchSchema,\n ListTicketV2InstructionBatchSchema,\n ],\n);\n\nexport type TixWireInstructionBatch = z.infer<\n typeof TixWireInstructionBatchSchema\n>;\nexport type TixInstructionTag = TixWireInstructionBatch[\"instruction\"];\nexport type TixWireInstructionBatchVariant<T extends TixInstructionTag> =\n Extract<TixWireInstructionBatch, { instruction: T }>;\nexport type TixWireInstructionParams<T extends TixInstructionTag> =\n TixWireInstructionBatchVariant<T>[\"params\"][number];\n","import type z from \"zod\";\nimport type { WireU64 } from \"./primitives\";\n\ntype WireU64Type = z.infer<typeof WireU64>;\n\nexport type PermitKey = ReturnType<typeof toPermitKey>;\n\nexport type AnyPermitKeyInput =\n | { event_id: WireU64Type; ticket_id: WireU64Type }\n | { eventId: WireU64Type; ticketId: WireU64Type };\n\nexport function toPermitKey(params: AnyPermitKeyInput) {\n const { eventId, ticketId } = normalizeAnyPermitKey(params);\n return `event_id:${eventId}#ticket_id:${ticketId}` as const;\n}\n\nexport function requireUniquePermitKeys(\n keys: AnyPermitKeyInput[],\n ctx: z.RefinementCtx,\n) {\n const stableKeys = keys\n .map(normalizeAnyPermitKey)\n .map(({ eventId, ticketId }) => JSON.stringify([eventId, ticketId]));\n\n if (new Set(stableKeys).size !== keys.length) {\n ctx.addIssue({\n code: \"custom\",\n message: \"All (event_id, ticket_id) pairs must be unique\",\n });\n }\n}\n\nexport function normalizeAnyPermitKey(params: AnyPermitKeyInput) {\n return {\n eventId: \"event_id\" in params ? params.event_id : params.eventId,\n ticketId: \"ticket_id\" in params ? params.ticket_id : params.ticketId,\n };\n}\n","import { z } from \"zod\";\n\nexport const TransactionSubmissionStatusSchema = z.enum([\n \"processing\",\n \"confirmed\",\n \"landed_with_error\",\n \"expired\",\n]);\nexport type TransactionSubmissionStatus = z.infer<\n typeof TransactionSubmissionStatusSchema\n>;\n\n/** A null status means no submission has been recorded. */\nexport const NullableTransactionSubmissionStatusSchema =\n TransactionSubmissionStatusSchema.nullable();\nexport type NullableTransactionSubmissionStatus = z.infer<\n typeof NullableTransactionSubmissionStatusSchema\n>;\n","import {\n AcceptOfferV2ParamsSchema,\n requireUniquePermitKeys,\n} from \"@kyd-labs/tix-wire-schema/instructions\";\nimport { Base58Address } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\nimport { Sha256HexSchema } from \"../primitives/hashes\";\nimport { NullableTransactionSubmissionStatusSchema } from \"../primitives/transaction-submission-status\";\nimport { MAX_PERMITS_PER_CLAIM_WALLET } from \"./const\";\n\n/**\n * The accept params an integrator may supply on the composite claim route:\n * the wire params minus everything TDP derives — the `buyer` is the claim\n * wallet, and the integrator is the caller's own primary integrator wallet.\n * Note the primary integrator wallet must be a registered integrator\n * on-chain; i.e., a TIX-protocol integrator with a funded treasury.\n */\nexport const AcceptClaimOffersSchema = AcceptOfferV2ParamsSchema.omit({\n buyer: true,\n integrator_identity: true,\n integrator_authority: true,\n}).strict();\n\nexport const AcceptClaimOffersRequestBodySchema = z.object({\n userSubject: z.string().min(1),\n userEmail: z.email(),\n offers: z\n .array(AcceptClaimOffersSchema)\n .min(1)\n .max(MAX_PERMITS_PER_CLAIM_WALLET)\n .superRefine(requireUniquePermitKeys),\n});\n\nexport const AcceptClaimOffersResponseSchema = z.object({\n status: NullableTransactionSubmissionStatusSchema,\n claimWallet: z.object({\n address: Base58Address,\n claimWalletId: Sha256HexSchema,\n }),\n claimUrl: z.url(),\n failureReason: z.string().min(1).optional(),\n});\n\nexport type AcceptClaimOffersResponse = z.infer<\n typeof AcceptClaimOffersResponseSchema\n>;\n","import z from \"zod\";\nimport type { Brand } from \"./brand\";\n\nexport type Sha256Hex = Brand<string, \"Sha256Hex\">;\nexport type Sha256Base64Url = Brand<string, \"Sha256Base64Url\">;\nexport type HmacSha256Base64Url = Brand<string, \"HmacSha256Base64Url\">;\n\nexport const Sha256HexSchema = z\n .hash(\"sha256\", { enc: \"hex\" })\n .transform((v) => v as Sha256Hex);\n\nexport const Sha256BaseUrlSchema = z\n .hash(\"sha256\", { enc: \"base64url\" })\n .transform((v) => v as Sha256Base64Url);\n\n/**\n * Functionally the exact same as {@link Sha256BaseUrlSchema}, but with a branded type for when\n * the hash is known to be produced from `createHmac`.\n *\n * To clarify: this performs no additional checks, it only brands the output differently.\n */\nexport const HmacSha256BaseUrlSchema = z\n .hash(\"sha256\", { enc: \"base64url\" })\n .transform((v) => v as HmacSha256Base64Url);\n","/** KYD accepts at most this many tickets in one claim, so a claim wallet may hold no more. */\nexport const MAX_PERMITS_PER_CLAIM_WALLET = 6;\n","import { Signature } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { z } from \"zod\";\nimport { Sha256HexSchema } from \"../primitives/hashes\";\nimport { NullableTransactionSubmissionStatusSchema } from \"../primitives/transaction-submission-status\";\n\nexport const SubmitTenantTransactionResponseSchema = z.object({\n custodialTransactionId: Sha256HexSchema,\n transactionSignature: Signature,\n status: NullableTransactionSubmissionStatusSchema,\n failureReason: z.string().min(1).optional(),\n});\n","import type { z } from \"zod\";\nimport { AcceptClaimOffersResponseSchema } from \"./claim-offers\";\nimport { SubmitTenantTransactionResponseSchema } from \"./submission-responses\";\n\nexport const GetPurchaseStatusResponseSchema =\n SubmitTenantTransactionResponseSchema.extend(\n AcceptClaimOffersResponseSchema.pick({ claimWallet: true }).shape,\n );\n\nexport type GetPurchaseStatusResponse = z.infer<\n typeof GetPurchaseStatusResponseSchema\n>;\n","import {\n type Base64EncodedWireTransaction,\n getBase64Encoder,\n getTransactionDecoder,\n} from \"@solana/kit\";\nimport { z } from \"zod\";\n\nexport const Base64WireEncodedTransactionSchema = z\n .base64()\n .min(1)\n .transform((value, ctx) => {\n try {\n getTransactionDecoder().decode(getBase64Encoder().encode(value));\n return value as Base64EncodedWireTransaction;\n } catch {\n ctx.addIssue({\n code: \"custom\",\n message: \"must be a base64-encoded Solana transaction string\",\n });\n return z.NEVER;\n }\n });\n","import {\n Base58Address,\n Blockhash,\n Signature,\n} from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { Base64WireEncodedTransactionSchema } from \"@kyd-labs/tix-wire-schema/transactions\";\nimport { z } from \"zod\";\nimport { Sha256HexSchema } from \"../primitives/hashes\";\nexport const SignTransactionResponseSchema = z.object({\n custodialTransactionId: Sha256HexSchema,\n signerAddress: Base58Address,\n feePayerAddress: Base58Address,\n signedTransaction: Base64WireEncodedTransactionSchema,\n message: z.string().min(1),\n signature: Signature,\n feePayerSignature: Signature,\n requiredSigners: z.array(Base58Address),\n recentBlockhash: Blockhash,\n});\n","import { TixWireInstructionBatchSchema } from \"@kyd-labs/tix-wire-schema/instructions\";\nimport { Base58Address, Signature } from \"@kyd-labs/tix-wire-schema/primitives\";\nimport { Base64WireEncodedTransactionSchema } from \"@kyd-labs/tix-wire-schema/transactions\";\nimport { z } from \"zod\";\n\nexport const SignTenantTransactionRequestBodySchema = z.object({\n tixInstructions: TixWireInstructionBatchSchema,\n});\n\nexport const AdditionalSignaturesSchema = z\n .array(\n z.object({\n address: Base58Address,\n signature: Signature,\n }),\n )\n .default([]);\n\nexport const SubmitTenantTransactionRequestBodySchema = z.object({\n signedTransaction: Base64WireEncodedTransactionSchema,\n additionalSignatures: AdditionalSignaturesSchema,\n});\n"],"mappings":";AAAA;AAAA,EACE,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,OACR;AACP,SAAS,SAAS;AAEX,IAAM,UAAU;AAChB,IAAM,UAAU;AAChB,IAAM,UAAU,CAAC;AACjB,IAAM,UAAU;AAChB,IAAM,UAAU;AAEhB,IAAM,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,OAAO;AAEtD,IAAM,YAAY,EAAE,OAAO,EAAE,IAAI,OAAO,EAAE,IAAI,OAAO;AAErD,IAAM,UAAU,EACpB,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,EAC/D,UAAU,MAAM,EAChB,KAAK,SAAS,EACd,UAAU,MAAM;AAEZ,IAAM,UAAU,EACpB,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,EACjE,UAAU,MAAM,EAChB,KAAK,SAAS,EACd,UAAU,MAAM;AAGZ,IAAM,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,OAAO;AAEnD,IAAM,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,OAAO;AAGnD,IAAM,gBAAgB,EAAE,OAAO,EAAE,UAAU,CAAC,OAA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