@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/README.md
CHANGED
|
@@ -26,14 +26,26 @@ console.log(events.items);
|
|
|
26
26
|
|
|
27
27
|
TDP API keys are private credentials. Do not expose them publicly.
|
|
28
28
|
|
|
29
|
+
## Amounts
|
|
30
|
+
|
|
31
|
+
Every amount the client returns is in whole cents: `$1.00` is `100`. An on-chain amount finer than a cent rounds half up to the closest cent.
|
|
32
|
+
The HTTP API and the `tixInstructions` of `transactions.signIntegrator` use USDC minor units, and `client.utils` converts between the two.
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
client.utils.usdcMinorToCents(25_000_000n); // 2500n, which is $25.00
|
|
36
|
+
client.utils.centsToUsdcMinor(2_500n); // 25000000n
|
|
37
|
+
```
|
|
38
|
+
|
|
29
39
|
## Upgrade from 0.3.x
|
|
30
40
|
|
|
31
41
|
- Pass `{ eventId }` to `indexer.listActiveListings`, including on subsequent pages for that event.
|
|
32
42
|
- Pass a numeric `limit` to `indexer.listActiveListings` and `indexer.listUpcomingEvents`.
|
|
33
|
-
- Keep each `
|
|
43
|
+
- Keep each `orders.createAndSubmit` request within the six-listing limit.
|
|
34
44
|
- Remove calls to `transactions.signUser` and imports of `SignUserTransactionInput`; they are no longer part of the public SDK.
|
|
35
45
|
- Import `TdpApiError` and `TdpResponseValidationError` from `@tixprotocol/tdp-sdk/errors`. API errors expose optional `code` and `requestId` fields. `WalletCustodyApiError` remains a deprecated alias, but the error names have changed.
|
|
36
46
|
- Omit `subject` in `wallets.getIntegratorAddress` or `transactions.signIntegrator` to use the primary integrator wallet.
|
|
47
|
+
- Read your integrator wallet address with `integrator.getInfo()`.
|
|
48
|
+
- Call `events.list()` to list every indexed event with a start date, past and future, and `events.get({ eventId })` to read one by id.
|
|
37
49
|
|
|
38
50
|
## License
|
|
39
51
|
|
|
@@ -291,11 +291,15 @@ var TixIndexerActiveListingsResultSchema = z8.object({
|
|
|
291
291
|
),
|
|
292
292
|
next_cursor: NullableStringSchema
|
|
293
293
|
}).strict();
|
|
294
|
+
var GetIntegratorResponseSchema = z8.object({ address: Base58Address });
|
|
294
295
|
|
|
295
296
|
// ../tdp-schemas/src/tix-indexer-api/read-routes.ts
|
|
296
297
|
import { z as z9 } from "zod";
|
|
297
298
|
var GET_ACTIVE_LISTINGS_ROUTE_KEY = "GET /listings/active";
|
|
298
299
|
var GET_UPCOMING_EVENTS_ROUTE_KEY = "GET /events/upcoming";
|
|
300
|
+
var GET_EVENTS_ROUTE_KEY = "GET /events";
|
|
301
|
+
var GET_EVENT_ROUTE_KEY = "GET /events/{eventId}";
|
|
302
|
+
var GET_INTEGRATOR_ROUTE_KEY = "GET /integrator";
|
|
299
303
|
var LimitCursorQuerySchema = z9.object({
|
|
300
304
|
limit: z9.coerce.number().int().min(1).max(500).optional(),
|
|
301
305
|
cursor: z9.string().min(1).optional()
|
|
@@ -323,6 +327,34 @@ var tixIndexerReadApiClientRoutes = {
|
|
|
323
327
|
headersSchema: ApiKeyHeadersSchema,
|
|
324
328
|
queryParamsSchema: LimitCursorQuerySchema,
|
|
325
329
|
responseBodySchema: TixIndexerUpcomingEventsResultSchema
|
|
330
|
+
}),
|
|
331
|
+
"get-events": defineClientRoute({
|
|
332
|
+
name: "get-events",
|
|
333
|
+
method: "GET",
|
|
334
|
+
routeKey: GET_EVENTS_ROUTE_KEY,
|
|
335
|
+
pathParamsSchema: NoPathParametersSchema,
|
|
336
|
+
buildPath: ({ baseApiUrl = "" }) => `${baseApiUrl}/events`,
|
|
337
|
+
headersSchema: ApiKeyHeadersSchema,
|
|
338
|
+
queryParamsSchema: LimitCursorQuerySchema,
|
|
339
|
+
responseBodySchema: TixIndexerUpcomingEventsResultSchema
|
|
340
|
+
}),
|
|
341
|
+
"get-event": defineClientRoute({
|
|
342
|
+
name: "get-event",
|
|
343
|
+
method: "GET",
|
|
344
|
+
routeKey: GET_EVENT_ROUTE_KEY,
|
|
345
|
+
pathParamsSchema: EventPathParametersSchema,
|
|
346
|
+
buildPath: ({ baseApiUrl = "", eventId }) => `${baseApiUrl}/events/${eventId}`,
|
|
347
|
+
headersSchema: ApiKeyHeadersSchema,
|
|
348
|
+
responseBodySchema: TixIndexerEventFoundSchema
|
|
349
|
+
}),
|
|
350
|
+
"get-integrator": defineClientRoute({
|
|
351
|
+
name: "get-integrator",
|
|
352
|
+
method: "GET",
|
|
353
|
+
routeKey: GET_INTEGRATOR_ROUTE_KEY,
|
|
354
|
+
pathParamsSchema: NoPathParametersSchema,
|
|
355
|
+
buildPath: ({ baseApiUrl = "" }) => `${baseApiUrl}/integrator`,
|
|
356
|
+
headersSchema: ApiKeyHeadersSchema,
|
|
357
|
+
responseBodySchema: GetIntegratorResponseSchema
|
|
326
358
|
})
|
|
327
359
|
};
|
|
328
360
|
|
|
@@ -422,7 +454,7 @@ var TransactionSubmissionStatusSchema = z12.enum([
|
|
|
422
454
|
]);
|
|
423
455
|
var NullableTransactionSubmissionStatusSchema = TransactionSubmissionStatusSchema.nullable();
|
|
424
456
|
|
|
425
|
-
// ../tdp-schemas/src/wallet-custody/
|
|
457
|
+
// ../tdp-schemas/src/wallet-custody/submission-responses.ts
|
|
426
458
|
import { z as z14 } from "zod";
|
|
427
459
|
|
|
428
460
|
// ../tdp-schemas/src/primitives/hashes.ts
|
|
@@ -431,42 +463,42 @@ var Sha256HexSchema = z13.hash("sha256", { enc: "hex" }).transform((v) => v);
|
|
|
431
463
|
var Sha256BaseUrlSchema = z13.hash("sha256", { enc: "base64url" }).transform((v) => v);
|
|
432
464
|
var HmacSha256BaseUrlSchema = z13.hash("sha256", { enc: "base64url" }).transform((v) => v);
|
|
433
465
|
|
|
466
|
+
// ../tdp-schemas/src/wallet-custody/submission-responses.ts
|
|
467
|
+
var SubmitTenantTransactionResponseSchema = z14.object({
|
|
468
|
+
custodialTransactionId: Sha256HexSchema,
|
|
469
|
+
transactionSignature: Signature,
|
|
470
|
+
status: NullableTransactionSubmissionStatusSchema,
|
|
471
|
+
failureReason: z14.string().min(1).optional()
|
|
472
|
+
});
|
|
473
|
+
var TransactionPathParametersSchema = z14.object({ id: Sha256HexSchema }).strict();
|
|
474
|
+
|
|
475
|
+
// ../tdp-schemas/src/wallet-custody/orders.ts
|
|
476
|
+
import { z as z15 } from "zod";
|
|
477
|
+
|
|
434
478
|
// ../tdp-schemas/src/wallet-custody/const.ts
|
|
435
479
|
var MAX_PERMITS_PER_CLAIM_WALLET = 6;
|
|
436
480
|
|
|
437
|
-
// ../tdp-schemas/src/wallet-custody/
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
userEmail: z14.email(),
|
|
446
|
-
offers: z14.array(AcceptClaimOffersSchema).min(1).max(MAX_PERMITS_PER_CLAIM_WALLET).superRefine(requireUniquePermitKeys)
|
|
481
|
+
// ../tdp-schemas/src/wallet-custody/orders.ts
|
|
482
|
+
var OrderIdSchema = IdempotencyKeyHeadersSchema.shape["idempotency-key"];
|
|
483
|
+
var OrderPathParametersSchema = z15.object({ id: OrderIdSchema }).strict();
|
|
484
|
+
var CreateAndSubmitOrderListingSchema = TicketPathParametersSchema;
|
|
485
|
+
var CreateAndSubmitOrderRequestBodySchema = z15.object({
|
|
486
|
+
userId: z15.string().min(1),
|
|
487
|
+
userEmail: z15.email(),
|
|
488
|
+
listings: z15.array(CreateAndSubmitOrderListingSchema).min(1).max(MAX_PERMITS_PER_CLAIM_WALLET).superRefine(requireUniquePermitKeys)
|
|
447
489
|
});
|
|
448
|
-
var
|
|
490
|
+
var CreateAndSubmitOrderResponseSchema = z15.object({
|
|
491
|
+
id: OrderIdSchema,
|
|
449
492
|
status: NullableTransactionSubmissionStatusSchema,
|
|
450
|
-
claimWallet:
|
|
493
|
+
claimWallet: z15.object({
|
|
451
494
|
address: Base58Address,
|
|
452
495
|
claimWalletId: Sha256HexSchema
|
|
453
496
|
}),
|
|
454
|
-
claimUrl:
|
|
455
|
-
failureReason: z14.string().min(1).optional()
|
|
456
|
-
});
|
|
457
|
-
|
|
458
|
-
// ../tdp-schemas/src/wallet-custody/submission-responses.ts
|
|
459
|
-
import { z as z15 } from "zod";
|
|
460
|
-
var SubmitTenantTransactionResponseSchema = z15.object({
|
|
461
|
-
custodialTransactionId: Sha256HexSchema,
|
|
462
|
-
transactionSignature: Signature,
|
|
463
|
-
status: NullableTransactionSubmissionStatusSchema,
|
|
497
|
+
claimUrl: z15.url(),
|
|
464
498
|
failureReason: z15.string().min(1).optional()
|
|
465
499
|
});
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
var GetPurchaseStatusResponseSchema = SubmitTenantTransactionResponseSchema.extend(
|
|
469
|
-
AcceptClaimOffersResponseSchema.pick({ claimWallet: true }).shape
|
|
500
|
+
var GetOrderResponseSchema = SubmitTenantTransactionResponseSchema.extend(
|
|
501
|
+
CreateAndSubmitOrderResponseSchema.pick({ id: true, claimWallet: true }).shape
|
|
470
502
|
);
|
|
471
503
|
|
|
472
504
|
// ../tix-wire-schema/src/transactions.ts
|
|
@@ -543,30 +575,29 @@ export {
|
|
|
543
575
|
PostTixIndexerIntegratorMetadataResultSchema,
|
|
544
576
|
TixIndexerUpcomingEventsResultSchema,
|
|
545
577
|
TixIndexerActiveListingsResultSchema,
|
|
578
|
+
GetIntegratorResponseSchema,
|
|
546
579
|
LimitCursorQuerySchema,
|
|
547
580
|
tixIndexerReadApiClientRoutes,
|
|
548
581
|
WalletPathParametersSchema,
|
|
549
582
|
GetAddressResponseSchema,
|
|
550
|
-
requireUniquePermitKeys,
|
|
551
|
-
AcceptOfferV2ParamsSchema,
|
|
552
583
|
CancelListingV1ParamsSchema,
|
|
553
584
|
ListTicketV2ParamsSchema,
|
|
554
|
-
AcceptOfferV2InstructionBatchSchema,
|
|
555
585
|
CancelListingV1InstructionBatchSchema,
|
|
556
586
|
ListTicketV2InstructionBatchSchema,
|
|
557
587
|
TixWireInstructionBatchSchema,
|
|
558
588
|
TransactionSubmissionStatusSchema,
|
|
559
589
|
NullableTransactionSubmissionStatusSchema,
|
|
560
|
-
MAX_PERMITS_PER_CLAIM_WALLET,
|
|
561
|
-
AcceptClaimOffersSchema,
|
|
562
|
-
AcceptClaimOffersRequestBodySchema,
|
|
563
|
-
AcceptClaimOffersResponseSchema,
|
|
564
590
|
SubmitTenantTransactionResponseSchema,
|
|
565
|
-
|
|
591
|
+
TransactionPathParametersSchema,
|
|
592
|
+
OrderPathParametersSchema,
|
|
593
|
+
CreateAndSubmitOrderListingSchema,
|
|
594
|
+
CreateAndSubmitOrderRequestBodySchema,
|
|
595
|
+
CreateAndSubmitOrderResponseSchema,
|
|
596
|
+
GetOrderResponseSchema,
|
|
566
597
|
Base64WireEncodedTransactionSchema,
|
|
567
598
|
SignTransactionResponseSchema,
|
|
568
599
|
SignTenantTransactionRequestBodySchema,
|
|
569
600
|
AdditionalSignaturesSchema,
|
|
570
601
|
SubmitTenantTransactionRequestBodySchema
|
|
571
602
|
};
|
|
572
|
-
//# sourceMappingURL=chunk-
|
|
603
|
+
//# sourceMappingURL=chunk-MZKCWS5T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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/submission-responses.ts","../../tdp-schemas/src/primitives/hashes.ts","../../tdp-schemas/src/wallet-custody/orders.ts","../../tdp-schemas/src/wallet-custody/const.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 { Base58Address, 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\n/** The wallet address of the API key's primary integrator. */\nexport const GetIntegratorResponseSchema = z.object({ address: Base58Address });\n\nexport type GetIntegratorResponse = z.infer<typeof GetIntegratorResponseSchema>;\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 { EventPathParametersSchema } from \"../tix-api/path-params\";\nimport {\n GetIntegratorResponseSchema,\n TixIndexerActiveListingsResultSchema,\n TixIndexerEventFoundSchema,\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\";\nexport const GET_EVENTS_ROUTE_KEY = \"GET /events\";\nexport const GET_EVENT_ROUTE_KEY = \"GET /events/{eventId}\";\nexport const GET_INTEGRATOR_ROUTE_KEY = \"GET /integrator\";\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 \"get-events\": defineClientRoute({\n name: \"get-events\",\n method: \"GET\",\n routeKey: GET_EVENTS_ROUTE_KEY,\n pathParamsSchema: NoPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\" }) => `${baseApiUrl}/events`,\n headersSchema: ApiKeyHeadersSchema,\n queryParamsSchema: LimitCursorQuerySchema,\n responseBodySchema: TixIndexerUpcomingEventsResultSchema,\n }),\n \"get-event\": defineClientRoute({\n name: \"get-event\",\n method: \"GET\",\n routeKey: GET_EVENT_ROUTE_KEY,\n pathParamsSchema: EventPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\", eventId }) =>\n `${baseApiUrl}/events/${eventId}`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: TixIndexerEventFoundSchema,\n }),\n \"get-integrator\": defineClientRoute({\n name: \"get-integrator\",\n method: \"GET\",\n routeKey: GET_INTEGRATOR_ROUTE_KEY,\n pathParamsSchema: NoPathParametersSchema,\n buildPath: ({ baseApiUrl = \"\" }) => `${baseApiUrl}/integrator`,\n headersSchema: ApiKeyHeadersSchema,\n responseBodySchema: GetIntegratorResponseSchema,\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 { 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\nexport const TransactionPathParametersSchema = z\n .object({ id: Sha256HexSchema })\n .strict();\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","import { requireUniquePermitKeys } 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 { IdempotencyKeyHeadersSchema } from \"../routes/request-schemas\";\nimport { TicketPathParametersSchema } from \"../tix-api/path-params\";\nimport { MAX_PERMITS_PER_CLAIM_WALLET } from \"./const\";\nimport { SubmitTenantTransactionResponseSchema } from \"./submission-responses\";\n\n/** An order's id is the idempotency key of the `POST /orders` request that created it. */\nexport const OrderIdSchema =\n IdempotencyKeyHeadersSchema.shape[\"idempotency-key\"];\n\nexport const OrderPathParametersSchema = z\n .object({ id: OrderIdSchema })\n .strict();\n\n/** A listed ticket to buy. The server reads its listing, permit, event and the protocol config. */\nexport const CreateAndSubmitOrderListingSchema = TicketPathParametersSchema;\n\nexport const CreateAndSubmitOrderRequestBodySchema = z.object({\n userId: z.string().min(1),\n userEmail: z.email(),\n listings: z\n .array(CreateAndSubmitOrderListingSchema)\n .min(1)\n .max(MAX_PERMITS_PER_CLAIM_WALLET)\n .superRefine(requireUniquePermitKeys),\n});\n\nexport const CreateAndSubmitOrderResponseSchema = z.object({\n id: OrderIdSchema,\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 CreateAndSubmitOrderResponse = z.infer<\n typeof CreateAndSubmitOrderResponseSchema\n>;\n\nexport const GetOrderResponseSchema =\n SubmitTenantTransactionResponseSchema.extend(\n CreateAndSubmitOrderResponseSchema.pick({ id: true, claimWallet: true })\n .shape,\n );\n\nexport type GetOrderResponse = z.infer<typeof GetOrderResponseSchema>;\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 {\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,EAA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