@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/index.d.ts
CHANGED
|
@@ -340,26 +340,63 @@ declare const apiKeyWalletCustodyApiClientRoutes: {
|
|
|
340
340
|
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
341
341
|
}, zod_v4_core.$strip>;
|
|
342
342
|
};
|
|
343
|
-
"get-
|
|
344
|
-
buildPath: (args?: (
|
|
343
|
+
"get-transaction": {
|
|
344
|
+
buildPath: (args?: ({
|
|
345
|
+
id: Sha256Hex;
|
|
346
|
+
} & {
|
|
345
347
|
baseApiUrl?: string;
|
|
346
348
|
}) | undefined) => string;
|
|
347
349
|
buildJsonPayload: (fields: never) => string;
|
|
348
350
|
buildHeaders: (headers: {
|
|
349
351
|
"x-api-key": string;
|
|
350
|
-
"idempotency-key": string;
|
|
351
352
|
}) => {
|
|
352
353
|
"x-api-key": string;
|
|
353
|
-
"idempotency-key": string;
|
|
354
354
|
};
|
|
355
355
|
buildQueryString: (params: never) => string;
|
|
356
356
|
name: string;
|
|
357
357
|
method: "GET";
|
|
358
|
-
routeKey: "GET /
|
|
359
|
-
pathParamsSchema: zod.
|
|
358
|
+
routeKey: "GET /transactions/{id}";
|
|
359
|
+
pathParamsSchema: zod.ZodObject<{
|
|
360
|
+
id: zod.ZodPipe<zod.ZodCustomStringFormat<"sha256_hex">, zod.ZodTransform<Sha256Hex, string>>;
|
|
361
|
+
}, zod_v4_core.$strict>;
|
|
362
|
+
headersSchema: zod.ZodObject<{
|
|
363
|
+
"x-api-key": zod.ZodString;
|
|
364
|
+
}, zod_v4_core.$strip>;
|
|
365
|
+
requestBodySchema?: undefined;
|
|
366
|
+
queryParamsSchema?: undefined;
|
|
367
|
+
responseBodySchema: zod.ZodObject<{
|
|
368
|
+
custodialTransactionId: zod.ZodPipe<zod.ZodCustomStringFormat<"sha256_hex">, zod.ZodTransform<Sha256Hex, string>>;
|
|
369
|
+
transactionSignature: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Signature, string>>;
|
|
370
|
+
status: zod.ZodNullable<zod.ZodEnum<{
|
|
371
|
+
processing: "processing";
|
|
372
|
+
confirmed: "confirmed";
|
|
373
|
+
landed_with_error: "landed_with_error";
|
|
374
|
+
expired: "expired";
|
|
375
|
+
}>>;
|
|
376
|
+
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
377
|
+
}, zod_v4_core.$strip>;
|
|
378
|
+
};
|
|
379
|
+
"get-order": {
|
|
380
|
+
buildPath: (args?: ({
|
|
381
|
+
id: string;
|
|
382
|
+
} & {
|
|
383
|
+
baseApiUrl?: string;
|
|
384
|
+
}) | undefined) => string;
|
|
385
|
+
buildJsonPayload: (fields: never) => string;
|
|
386
|
+
buildHeaders: (headers: {
|
|
387
|
+
"x-api-key": string;
|
|
388
|
+
}) => {
|
|
389
|
+
"x-api-key": string;
|
|
390
|
+
};
|
|
391
|
+
buildQueryString: (params: never) => string;
|
|
392
|
+
name: string;
|
|
393
|
+
method: "GET";
|
|
394
|
+
routeKey: "GET /orders/{id}";
|
|
395
|
+
pathParamsSchema: zod.ZodObject<{
|
|
396
|
+
id: zod.ZodString;
|
|
397
|
+
}, zod_v4_core.$strict>;
|
|
360
398
|
headersSchema: zod.ZodObject<{
|
|
361
399
|
"x-api-key": zod.ZodString;
|
|
362
|
-
"idempotency-key": zod.ZodString;
|
|
363
400
|
}, zod_v4_core.$strip>;
|
|
364
401
|
requestBodySchema?: undefined;
|
|
365
402
|
queryParamsSchema?: undefined;
|
|
@@ -373,27 +410,23 @@ declare const apiKeyWalletCustodyApiClientRoutes: {
|
|
|
373
410
|
expired: "expired";
|
|
374
411
|
}>>;
|
|
375
412
|
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
413
|
+
id: zod.ZodString;
|
|
376
414
|
claimWallet: zod.ZodObject<{
|
|
377
415
|
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
378
416
|
claimWalletId: zod.ZodPipe<zod.ZodCustomStringFormat<"sha256_hex">, zod.ZodTransform<Sha256Hex, string>>;
|
|
379
417
|
}, zod_v4_core.$strip>;
|
|
380
418
|
}, zod_v4_core.$strip>;
|
|
381
419
|
};
|
|
382
|
-
"
|
|
420
|
+
"create-and-submit-order": {
|
|
383
421
|
buildPath: (args?: (Record<string, string> & {
|
|
384
422
|
baseApiUrl?: string;
|
|
385
423
|
}) | undefined) => string;
|
|
386
424
|
buildJsonPayload: (fields: {
|
|
387
|
-
|
|
425
|
+
userId: string;
|
|
388
426
|
userEmail: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
permit_version: string | number | bigint;
|
|
393
|
-
usdc_mint: string;
|
|
394
|
-
seller_payout: string;
|
|
395
|
-
royalty_destinations: string[];
|
|
396
|
-
ticket_type_config?: string | null | undefined;
|
|
427
|
+
listings: {
|
|
428
|
+
eventId: string | number | bigint;
|
|
429
|
+
ticketId: string | number | bigint;
|
|
397
430
|
}[];
|
|
398
431
|
}) => string;
|
|
399
432
|
buildHeaders: (headers: {
|
|
@@ -406,27 +439,23 @@ declare const apiKeyWalletCustodyApiClientRoutes: {
|
|
|
406
439
|
buildQueryString: (params: never) => string;
|
|
407
440
|
name: string;
|
|
408
441
|
method: "POST";
|
|
409
|
-
routeKey: "POST /
|
|
442
|
+
routeKey: "POST /orders";
|
|
410
443
|
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
411
444
|
headersSchema: zod.ZodObject<{
|
|
412
445
|
"x-api-key": zod.ZodString;
|
|
413
446
|
"idempotency-key": zod.ZodString;
|
|
414
447
|
}, zod_v4_core.$strip>;
|
|
415
448
|
requestBodySchema?: zod.ZodObject<{
|
|
416
|
-
|
|
449
|
+
userId: zod.ZodString;
|
|
417
450
|
userEmail: zod.ZodEmail;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
permit_version: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
422
|
-
ticket_type_config: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
423
|
-
usdc_mint: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
424
|
-
seller_payout: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
425
|
-
royalty_destinations: zod.ZodArray<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
451
|
+
listings: zod.ZodArray<zod.ZodObject<{
|
|
452
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
453
|
+
ticketId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
426
454
|
}, zod_v4_core.$strict>>;
|
|
427
455
|
}, zod_v4_core.$strip> | undefined;
|
|
428
456
|
queryParamsSchema?: undefined;
|
|
429
457
|
responseBodySchema: zod.ZodObject<{
|
|
458
|
+
id: zod.ZodString;
|
|
430
459
|
status: zod.ZodNullable<zod.ZodEnum<{
|
|
431
460
|
processing: "processing";
|
|
432
461
|
confirmed: "confirmed";
|
|
@@ -681,6 +710,119 @@ declare const tixApiClientRoutes: {
|
|
|
681
710
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
682
711
|
}, zod_v4_core.$strict>;
|
|
683
712
|
};
|
|
713
|
+
readonly "get-events": {
|
|
714
|
+
buildPath: (args?: (Record<string, string> & {
|
|
715
|
+
baseApiUrl?: string;
|
|
716
|
+
}) | undefined) => string;
|
|
717
|
+
buildJsonPayload: (fields: never) => string;
|
|
718
|
+
buildHeaders: (headers: {
|
|
719
|
+
"x-api-key": string;
|
|
720
|
+
}) => {
|
|
721
|
+
"x-api-key": string;
|
|
722
|
+
};
|
|
723
|
+
buildQueryString: (params: {
|
|
724
|
+
limit?: unknown;
|
|
725
|
+
cursor?: string | undefined;
|
|
726
|
+
}) => string;
|
|
727
|
+
name: string;
|
|
728
|
+
method: "GET";
|
|
729
|
+
routeKey: "GET /events";
|
|
730
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
731
|
+
headersSchema: zod.ZodObject<{
|
|
732
|
+
"x-api-key": zod.ZodString;
|
|
733
|
+
}, zod_v4_core.$strip>;
|
|
734
|
+
requestBodySchema?: undefined;
|
|
735
|
+
queryParamsSchema?: zod.ZodObject<{
|
|
736
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
737
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
738
|
+
}, zod_v4_core.$strip> | undefined;
|
|
739
|
+
responseBodySchema: zod.ZodObject<{
|
|
740
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
741
|
+
event_account: zod.ZodString;
|
|
742
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
743
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
744
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
745
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
746
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
747
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
748
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
749
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
750
|
+
active_listing_count: zod.ZodNumber;
|
|
751
|
+
tickets_issued_count: zod.ZodNumber;
|
|
752
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
753
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
754
|
+
found: zod.ZodLiteral<true>;
|
|
755
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
756
|
+
}, zod_v4_core.$strict>>;
|
|
757
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
758
|
+
}, zod_v4_core.$strict>;
|
|
759
|
+
};
|
|
760
|
+
readonly "get-event": {
|
|
761
|
+
buildPath: (args?: ({
|
|
762
|
+
eventId: string;
|
|
763
|
+
} & {
|
|
764
|
+
baseApiUrl?: string;
|
|
765
|
+
}) | undefined) => string;
|
|
766
|
+
buildJsonPayload: (fields: never) => string;
|
|
767
|
+
buildHeaders: (headers: {
|
|
768
|
+
"x-api-key": string;
|
|
769
|
+
}) => {
|
|
770
|
+
"x-api-key": string;
|
|
771
|
+
};
|
|
772
|
+
buildQueryString: (params: never) => string;
|
|
773
|
+
name: string;
|
|
774
|
+
method: "GET";
|
|
775
|
+
routeKey: "GET /events/{eventId}";
|
|
776
|
+
pathParamsSchema: zod.ZodObject<{
|
|
777
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
778
|
+
}, zod_v4_core.$strict>;
|
|
779
|
+
headersSchema: zod.ZodObject<{
|
|
780
|
+
"x-api-key": zod.ZodString;
|
|
781
|
+
}, zod_v4_core.$strip>;
|
|
782
|
+
requestBodySchema?: undefined;
|
|
783
|
+
queryParamsSchema?: undefined;
|
|
784
|
+
responseBodySchema: zod.ZodObject<{
|
|
785
|
+
event_account: zod.ZodString;
|
|
786
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
787
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
788
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
789
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
790
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
791
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
792
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
793
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
794
|
+
active_listing_count: zod.ZodNumber;
|
|
795
|
+
tickets_issued_count: zod.ZodNumber;
|
|
796
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
797
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
798
|
+
found: zod.ZodLiteral<true>;
|
|
799
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
800
|
+
}, zod_v4_core.$strict>;
|
|
801
|
+
};
|
|
802
|
+
readonly "get-integrator": {
|
|
803
|
+
buildPath: (args?: (Record<string, string> & {
|
|
804
|
+
baseApiUrl?: string;
|
|
805
|
+
}) | undefined) => string;
|
|
806
|
+
buildJsonPayload: (fields: never) => string;
|
|
807
|
+
buildHeaders: (headers: {
|
|
808
|
+
"x-api-key": string;
|
|
809
|
+
}) => {
|
|
810
|
+
"x-api-key": string;
|
|
811
|
+
};
|
|
812
|
+
buildQueryString: (params: never) => string;
|
|
813
|
+
name: string;
|
|
814
|
+
method: "GET";
|
|
815
|
+
routeKey: "GET /integrator";
|
|
816
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
817
|
+
headersSchema: zod.ZodObject<{
|
|
818
|
+
"x-api-key": zod.ZodString;
|
|
819
|
+
}, zod_v4_core.$strip>;
|
|
820
|
+
requestBodySchema?: undefined;
|
|
821
|
+
queryParamsSchema?: undefined;
|
|
822
|
+
responseBodySchema: zod.ZodObject<{
|
|
823
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
824
|
+
}, zod_v4_core.$strip>;
|
|
825
|
+
};
|
|
684
826
|
readonly "get-event-account": {
|
|
685
827
|
buildPath: (args?: ({
|
|
686
828
|
eventId: string;
|
|
@@ -880,7 +1022,7 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
880
1022
|
* Cross-origin browser requests require server CORS support for custom headers.
|
|
881
1023
|
*/
|
|
882
1024
|
headers?: HeadersInit;
|
|
883
|
-
}): <TRouteName extends "get-event-account" | "get-listing-account" | "get-permit" | "get-protocol-config-account" | "get-integrator-account" | "get-active-listings" | "get-upcoming-events" | "post-integrator-metadata">({ route, pathParams, queryParams, body, }: {
|
|
1025
|
+
}): <TRouteName extends "get-event-account" | "get-listing-account" | "get-permit" | "get-protocol-config-account" | "get-integrator-account" | "get-active-listings" | "get-upcoming-events" | "get-events" | "get-event" | "get-integrator" | "post-integrator-metadata">({ route, pathParams, queryParams, body, }: {
|
|
884
1026
|
route: TRouteName;
|
|
885
1027
|
} & RouteRequestField<"pathParams", RoutePathParams<{
|
|
886
1028
|
readonly "post-integrator-metadata": {
|
|
@@ -1022,6 +1164,119 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1022
1164
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1023
1165
|
}, zod_v4_core.$strict>;
|
|
1024
1166
|
};
|
|
1167
|
+
readonly "get-events": {
|
|
1168
|
+
buildPath: (args?: (Record<string, string> & {
|
|
1169
|
+
baseApiUrl?: string;
|
|
1170
|
+
}) | undefined) => string;
|
|
1171
|
+
buildJsonPayload: (fields: never) => string;
|
|
1172
|
+
buildHeaders: (headers: {
|
|
1173
|
+
"x-api-key": string;
|
|
1174
|
+
}) => {
|
|
1175
|
+
"x-api-key": string;
|
|
1176
|
+
};
|
|
1177
|
+
buildQueryString: (params: {
|
|
1178
|
+
limit?: unknown;
|
|
1179
|
+
cursor?: string | undefined;
|
|
1180
|
+
}) => string;
|
|
1181
|
+
name: string;
|
|
1182
|
+
method: "GET";
|
|
1183
|
+
routeKey: "GET /events";
|
|
1184
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1185
|
+
headersSchema: zod.ZodObject<{
|
|
1186
|
+
"x-api-key": zod.ZodString;
|
|
1187
|
+
}, zod_v4_core.$strip>;
|
|
1188
|
+
requestBodySchema?: undefined;
|
|
1189
|
+
queryParamsSchema?: zod.ZodObject<{
|
|
1190
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
1191
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1192
|
+
}, zod_v4_core.$strip> | undefined;
|
|
1193
|
+
responseBodySchema: zod.ZodObject<{
|
|
1194
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
1195
|
+
event_account: zod.ZodString;
|
|
1196
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
1197
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
1198
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1199
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1200
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1201
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1202
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1203
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1204
|
+
active_listing_count: zod.ZodNumber;
|
|
1205
|
+
tickets_issued_count: zod.ZodNumber;
|
|
1206
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1207
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1208
|
+
found: zod.ZodLiteral<true>;
|
|
1209
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1210
|
+
}, zod_v4_core.$strict>>;
|
|
1211
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1212
|
+
}, zod_v4_core.$strict>;
|
|
1213
|
+
};
|
|
1214
|
+
readonly "get-event": {
|
|
1215
|
+
buildPath: (args?: ({
|
|
1216
|
+
eventId: string;
|
|
1217
|
+
} & {
|
|
1218
|
+
baseApiUrl?: string;
|
|
1219
|
+
}) | undefined) => string;
|
|
1220
|
+
buildJsonPayload: (fields: never) => string;
|
|
1221
|
+
buildHeaders: (headers: {
|
|
1222
|
+
"x-api-key": string;
|
|
1223
|
+
}) => {
|
|
1224
|
+
"x-api-key": string;
|
|
1225
|
+
};
|
|
1226
|
+
buildQueryString: (params: never) => string;
|
|
1227
|
+
name: string;
|
|
1228
|
+
method: "GET";
|
|
1229
|
+
routeKey: "GET /events/{eventId}";
|
|
1230
|
+
pathParamsSchema: zod.ZodObject<{
|
|
1231
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
1232
|
+
}, zod_v4_core.$strict>;
|
|
1233
|
+
headersSchema: zod.ZodObject<{
|
|
1234
|
+
"x-api-key": zod.ZodString;
|
|
1235
|
+
}, zod_v4_core.$strip>;
|
|
1236
|
+
requestBodySchema?: undefined;
|
|
1237
|
+
queryParamsSchema?: undefined;
|
|
1238
|
+
responseBodySchema: zod.ZodObject<{
|
|
1239
|
+
event_account: zod.ZodString;
|
|
1240
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
1241
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
1242
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1243
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1244
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1245
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1246
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1247
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1248
|
+
active_listing_count: zod.ZodNumber;
|
|
1249
|
+
tickets_issued_count: zod.ZodNumber;
|
|
1250
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1251
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1252
|
+
found: zod.ZodLiteral<true>;
|
|
1253
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1254
|
+
}, zod_v4_core.$strict>;
|
|
1255
|
+
};
|
|
1256
|
+
readonly "get-integrator": {
|
|
1257
|
+
buildPath: (args?: (Record<string, string> & {
|
|
1258
|
+
baseApiUrl?: string;
|
|
1259
|
+
}) | undefined) => string;
|
|
1260
|
+
buildJsonPayload: (fields: never) => string;
|
|
1261
|
+
buildHeaders: (headers: {
|
|
1262
|
+
"x-api-key": string;
|
|
1263
|
+
}) => {
|
|
1264
|
+
"x-api-key": string;
|
|
1265
|
+
};
|
|
1266
|
+
buildQueryString: (params: never) => string;
|
|
1267
|
+
name: string;
|
|
1268
|
+
method: "GET";
|
|
1269
|
+
routeKey: "GET /integrator";
|
|
1270
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1271
|
+
headersSchema: zod.ZodObject<{
|
|
1272
|
+
"x-api-key": zod.ZodString;
|
|
1273
|
+
}, zod_v4_core.$strip>;
|
|
1274
|
+
requestBodySchema?: undefined;
|
|
1275
|
+
queryParamsSchema?: undefined;
|
|
1276
|
+
responseBodySchema: zod.ZodObject<{
|
|
1277
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1278
|
+
}, zod_v4_core.$strip>;
|
|
1279
|
+
};
|
|
1025
1280
|
readonly "get-event-account": {
|
|
1026
1281
|
buildPath: (args?: ({
|
|
1027
1282
|
eventId: string;
|
|
@@ -1350,10 +1605,8 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1350
1605
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1351
1606
|
}, zod_v4_core.$strict>;
|
|
1352
1607
|
};
|
|
1353
|
-
readonly "get-
|
|
1354
|
-
buildPath: (args?: ({
|
|
1355
|
-
eventId: string;
|
|
1356
|
-
} & {
|
|
1608
|
+
readonly "get-events": {
|
|
1609
|
+
buildPath: (args?: (Record<string, string> & {
|
|
1357
1610
|
baseApiUrl?: string;
|
|
1358
1611
|
}) | undefined) => string;
|
|
1359
1612
|
buildJsonPayload: (fields: never) => string;
|
|
@@ -1362,24 +1615,139 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1362
1615
|
}) => {
|
|
1363
1616
|
"x-api-key": string;
|
|
1364
1617
|
};
|
|
1365
|
-
buildQueryString: (params:
|
|
1618
|
+
buildQueryString: (params: {
|
|
1619
|
+
limit?: unknown;
|
|
1620
|
+
cursor?: string | undefined;
|
|
1621
|
+
}) => string;
|
|
1366
1622
|
name: string;
|
|
1367
1623
|
method: "GET";
|
|
1368
|
-
routeKey: "GET /events
|
|
1369
|
-
pathParamsSchema: zod.
|
|
1370
|
-
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
1371
|
-
}, zod_v4_core.$strict>;
|
|
1624
|
+
routeKey: "GET /events";
|
|
1625
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1372
1626
|
headersSchema: zod.ZodObject<{
|
|
1373
1627
|
"x-api-key": zod.ZodString;
|
|
1374
1628
|
}, zod_v4_core.$strip>;
|
|
1375
1629
|
requestBodySchema?: undefined;
|
|
1376
|
-
queryParamsSchema?:
|
|
1630
|
+
queryParamsSchema?: zod.ZodObject<{
|
|
1631
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
1632
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1633
|
+
}, zod_v4_core.$strip> | undefined;
|
|
1377
1634
|
responseBodySchema: zod.ZodObject<{
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1635
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
1636
|
+
event_account: zod.ZodString;
|
|
1637
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
1638
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
1639
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1640
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1641
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1642
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1643
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1644
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1645
|
+
active_listing_count: zod.ZodNumber;
|
|
1646
|
+
tickets_issued_count: zod.ZodNumber;
|
|
1647
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1648
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1649
|
+
found: zod.ZodLiteral<true>;
|
|
1650
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1651
|
+
}, zod_v4_core.$strict>>;
|
|
1652
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1653
|
+
}, zod_v4_core.$strict>;
|
|
1654
|
+
};
|
|
1655
|
+
readonly "get-event": {
|
|
1656
|
+
buildPath: (args?: ({
|
|
1657
|
+
eventId: string;
|
|
1658
|
+
} & {
|
|
1659
|
+
baseApiUrl?: string;
|
|
1660
|
+
}) | undefined) => string;
|
|
1661
|
+
buildJsonPayload: (fields: never) => string;
|
|
1662
|
+
buildHeaders: (headers: {
|
|
1663
|
+
"x-api-key": string;
|
|
1664
|
+
}) => {
|
|
1665
|
+
"x-api-key": string;
|
|
1666
|
+
};
|
|
1667
|
+
buildQueryString: (params: never) => string;
|
|
1668
|
+
name: string;
|
|
1669
|
+
method: "GET";
|
|
1670
|
+
routeKey: "GET /events/{eventId}";
|
|
1671
|
+
pathParamsSchema: zod.ZodObject<{
|
|
1672
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
1673
|
+
}, zod_v4_core.$strict>;
|
|
1674
|
+
headersSchema: zod.ZodObject<{
|
|
1675
|
+
"x-api-key": zod.ZodString;
|
|
1676
|
+
}, zod_v4_core.$strip>;
|
|
1677
|
+
requestBodySchema?: undefined;
|
|
1678
|
+
queryParamsSchema?: undefined;
|
|
1679
|
+
responseBodySchema: zod.ZodObject<{
|
|
1680
|
+
event_account: zod.ZodString;
|
|
1681
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
1682
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
1683
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1684
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1685
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1686
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1687
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1688
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1689
|
+
active_listing_count: zod.ZodNumber;
|
|
1690
|
+
tickets_issued_count: zod.ZodNumber;
|
|
1691
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1692
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1693
|
+
found: zod.ZodLiteral<true>;
|
|
1694
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1695
|
+
}, zod_v4_core.$strict>;
|
|
1696
|
+
};
|
|
1697
|
+
readonly "get-integrator": {
|
|
1698
|
+
buildPath: (args?: (Record<string, string> & {
|
|
1699
|
+
baseApiUrl?: string;
|
|
1700
|
+
}) | undefined) => string;
|
|
1701
|
+
buildJsonPayload: (fields: never) => string;
|
|
1702
|
+
buildHeaders: (headers: {
|
|
1703
|
+
"x-api-key": string;
|
|
1704
|
+
}) => {
|
|
1705
|
+
"x-api-key": string;
|
|
1706
|
+
};
|
|
1707
|
+
buildQueryString: (params: never) => string;
|
|
1708
|
+
name: string;
|
|
1709
|
+
method: "GET";
|
|
1710
|
+
routeKey: "GET /integrator";
|
|
1711
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1712
|
+
headersSchema: zod.ZodObject<{
|
|
1713
|
+
"x-api-key": zod.ZodString;
|
|
1714
|
+
}, zod_v4_core.$strip>;
|
|
1715
|
+
requestBodySchema?: undefined;
|
|
1716
|
+
queryParamsSchema?: undefined;
|
|
1717
|
+
responseBodySchema: zod.ZodObject<{
|
|
1718
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1719
|
+
}, zod_v4_core.$strip>;
|
|
1720
|
+
};
|
|
1721
|
+
readonly "get-event-account": {
|
|
1722
|
+
buildPath: (args?: ({
|
|
1723
|
+
eventId: string;
|
|
1724
|
+
} & {
|
|
1725
|
+
baseApiUrl?: string;
|
|
1726
|
+
}) | undefined) => string;
|
|
1727
|
+
buildJsonPayload: (fields: never) => string;
|
|
1728
|
+
buildHeaders: (headers: {
|
|
1729
|
+
"x-api-key": string;
|
|
1730
|
+
}) => {
|
|
1731
|
+
"x-api-key": string;
|
|
1732
|
+
};
|
|
1733
|
+
buildQueryString: (params: never) => string;
|
|
1734
|
+
name: string;
|
|
1735
|
+
method: "GET";
|
|
1736
|
+
routeKey: "GET /events/{eventId}";
|
|
1737
|
+
pathParamsSchema: zod.ZodObject<{
|
|
1738
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
1739
|
+
}, zod_v4_core.$strict>;
|
|
1740
|
+
headersSchema: zod.ZodObject<{
|
|
1741
|
+
"x-api-key": zod.ZodString;
|
|
1742
|
+
}, zod_v4_core.$strip>;
|
|
1743
|
+
requestBodySchema?: undefined;
|
|
1744
|
+
queryParamsSchema?: undefined;
|
|
1745
|
+
responseBodySchema: zod.ZodObject<{
|
|
1746
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1747
|
+
integrator: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1748
|
+
integrator_authority: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1749
|
+
royalty_bps: zod.ZodNumber;
|
|
1750
|
+
min_royalty_floor: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>, zod.ZodTransform<string, string>>;
|
|
1383
1751
|
royalty_recipients_count: zod.ZodNumber;
|
|
1384
1752
|
royalty_recipients: zod.ZodArray<zod.ZodObject<{
|
|
1385
1753
|
destination: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
@@ -1678,6 +2046,119 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1678
2046
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1679
2047
|
}, zod_v4_core.$strict>;
|
|
1680
2048
|
};
|
|
2049
|
+
readonly "get-events": {
|
|
2050
|
+
buildPath: (args?: (Record<string, string> & {
|
|
2051
|
+
baseApiUrl?: string;
|
|
2052
|
+
}) | undefined) => string;
|
|
2053
|
+
buildJsonPayload: (fields: never) => string;
|
|
2054
|
+
buildHeaders: (headers: {
|
|
2055
|
+
"x-api-key": string;
|
|
2056
|
+
}) => {
|
|
2057
|
+
"x-api-key": string;
|
|
2058
|
+
};
|
|
2059
|
+
buildQueryString: (params: {
|
|
2060
|
+
limit?: unknown;
|
|
2061
|
+
cursor?: string | undefined;
|
|
2062
|
+
}) => string;
|
|
2063
|
+
name: string;
|
|
2064
|
+
method: "GET";
|
|
2065
|
+
routeKey: "GET /events";
|
|
2066
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2067
|
+
headersSchema: zod.ZodObject<{
|
|
2068
|
+
"x-api-key": zod.ZodString;
|
|
2069
|
+
}, zod_v4_core.$strip>;
|
|
2070
|
+
requestBodySchema?: undefined;
|
|
2071
|
+
queryParamsSchema?: zod.ZodObject<{
|
|
2072
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
2073
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
2074
|
+
}, zod_v4_core.$strip> | undefined;
|
|
2075
|
+
responseBodySchema: zod.ZodObject<{
|
|
2076
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
2077
|
+
event_account: zod.ZodString;
|
|
2078
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
2079
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
2080
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
2081
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
2082
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2083
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2084
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2085
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
2086
|
+
active_listing_count: zod.ZodNumber;
|
|
2087
|
+
tickets_issued_count: zod.ZodNumber;
|
|
2088
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
2089
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
2090
|
+
found: zod.ZodLiteral<true>;
|
|
2091
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2092
|
+
}, zod_v4_core.$strict>>;
|
|
2093
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2094
|
+
}, zod_v4_core.$strict>;
|
|
2095
|
+
};
|
|
2096
|
+
readonly "get-event": {
|
|
2097
|
+
buildPath: (args?: ({
|
|
2098
|
+
eventId: string;
|
|
2099
|
+
} & {
|
|
2100
|
+
baseApiUrl?: string;
|
|
2101
|
+
}) | undefined) => string;
|
|
2102
|
+
buildJsonPayload: (fields: never) => string;
|
|
2103
|
+
buildHeaders: (headers: {
|
|
2104
|
+
"x-api-key": string;
|
|
2105
|
+
}) => {
|
|
2106
|
+
"x-api-key": string;
|
|
2107
|
+
};
|
|
2108
|
+
buildQueryString: (params: never) => string;
|
|
2109
|
+
name: string;
|
|
2110
|
+
method: "GET";
|
|
2111
|
+
routeKey: "GET /events/{eventId}";
|
|
2112
|
+
pathParamsSchema: zod.ZodObject<{
|
|
2113
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
2114
|
+
}, zod_v4_core.$strict>;
|
|
2115
|
+
headersSchema: zod.ZodObject<{
|
|
2116
|
+
"x-api-key": zod.ZodString;
|
|
2117
|
+
}, zod_v4_core.$strip>;
|
|
2118
|
+
requestBodySchema?: undefined;
|
|
2119
|
+
queryParamsSchema?: undefined;
|
|
2120
|
+
responseBodySchema: zod.ZodObject<{
|
|
2121
|
+
event_account: zod.ZodString;
|
|
2122
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
2123
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
2124
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
2125
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
2126
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2127
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2128
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2129
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
2130
|
+
active_listing_count: zod.ZodNumber;
|
|
2131
|
+
tickets_issued_count: zod.ZodNumber;
|
|
2132
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
2133
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
2134
|
+
found: zod.ZodLiteral<true>;
|
|
2135
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2136
|
+
}, zod_v4_core.$strict>;
|
|
2137
|
+
};
|
|
2138
|
+
readonly "get-integrator": {
|
|
2139
|
+
buildPath: (args?: (Record<string, string> & {
|
|
2140
|
+
baseApiUrl?: string;
|
|
2141
|
+
}) | undefined) => string;
|
|
2142
|
+
buildJsonPayload: (fields: never) => string;
|
|
2143
|
+
buildHeaders: (headers: {
|
|
2144
|
+
"x-api-key": string;
|
|
2145
|
+
}) => {
|
|
2146
|
+
"x-api-key": string;
|
|
2147
|
+
};
|
|
2148
|
+
buildQueryString: (params: never) => string;
|
|
2149
|
+
name: string;
|
|
2150
|
+
method: "GET";
|
|
2151
|
+
routeKey: "GET /integrator";
|
|
2152
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2153
|
+
headersSchema: zod.ZodObject<{
|
|
2154
|
+
"x-api-key": zod.ZodString;
|
|
2155
|
+
}, zod_v4_core.$strip>;
|
|
2156
|
+
requestBodySchema?: undefined;
|
|
2157
|
+
queryParamsSchema?: undefined;
|
|
2158
|
+
responseBodySchema: zod.ZodObject<{
|
|
2159
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2160
|
+
}, zod_v4_core.$strip>;
|
|
2161
|
+
};
|
|
1681
2162
|
readonly "get-event-account": {
|
|
1682
2163
|
buildPath: (args?: ({
|
|
1683
2164
|
eventId: string;
|
|
@@ -2006,6 +2487,119 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
2006
2487
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2007
2488
|
}, zod_v4_core.$strict>;
|
|
2008
2489
|
};
|
|
2490
|
+
readonly "get-events": {
|
|
2491
|
+
buildPath: (args?: (Record<string, string> & {
|
|
2492
|
+
baseApiUrl?: string;
|
|
2493
|
+
}) | undefined) => string;
|
|
2494
|
+
buildJsonPayload: (fields: never) => string;
|
|
2495
|
+
buildHeaders: (headers: {
|
|
2496
|
+
"x-api-key": string;
|
|
2497
|
+
}) => {
|
|
2498
|
+
"x-api-key": string;
|
|
2499
|
+
};
|
|
2500
|
+
buildQueryString: (params: {
|
|
2501
|
+
limit?: unknown;
|
|
2502
|
+
cursor?: string | undefined;
|
|
2503
|
+
}) => string;
|
|
2504
|
+
name: string;
|
|
2505
|
+
method: "GET";
|
|
2506
|
+
routeKey: "GET /events";
|
|
2507
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2508
|
+
headersSchema: zod.ZodObject<{
|
|
2509
|
+
"x-api-key": zod.ZodString;
|
|
2510
|
+
}, zod_v4_core.$strip>;
|
|
2511
|
+
requestBodySchema?: undefined;
|
|
2512
|
+
queryParamsSchema?: zod.ZodObject<{
|
|
2513
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
2514
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
2515
|
+
}, zod_v4_core.$strip> | undefined;
|
|
2516
|
+
responseBodySchema: zod.ZodObject<{
|
|
2517
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
2518
|
+
event_account: zod.ZodString;
|
|
2519
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
2520
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
2521
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
2522
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
2523
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2524
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2525
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2526
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
2527
|
+
active_listing_count: zod.ZodNumber;
|
|
2528
|
+
tickets_issued_count: zod.ZodNumber;
|
|
2529
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
2530
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
2531
|
+
found: zod.ZodLiteral<true>;
|
|
2532
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2533
|
+
}, zod_v4_core.$strict>>;
|
|
2534
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2535
|
+
}, zod_v4_core.$strict>;
|
|
2536
|
+
};
|
|
2537
|
+
readonly "get-event": {
|
|
2538
|
+
buildPath: (args?: ({
|
|
2539
|
+
eventId: string;
|
|
2540
|
+
} & {
|
|
2541
|
+
baseApiUrl?: string;
|
|
2542
|
+
}) | undefined) => string;
|
|
2543
|
+
buildJsonPayload: (fields: never) => string;
|
|
2544
|
+
buildHeaders: (headers: {
|
|
2545
|
+
"x-api-key": string;
|
|
2546
|
+
}) => {
|
|
2547
|
+
"x-api-key": string;
|
|
2548
|
+
};
|
|
2549
|
+
buildQueryString: (params: never) => string;
|
|
2550
|
+
name: string;
|
|
2551
|
+
method: "GET";
|
|
2552
|
+
routeKey: "GET /events/{eventId}";
|
|
2553
|
+
pathParamsSchema: zod.ZodObject<{
|
|
2554
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
2555
|
+
}, zod_v4_core.$strict>;
|
|
2556
|
+
headersSchema: zod.ZodObject<{
|
|
2557
|
+
"x-api-key": zod.ZodString;
|
|
2558
|
+
}, zod_v4_core.$strip>;
|
|
2559
|
+
requestBodySchema?: undefined;
|
|
2560
|
+
queryParamsSchema?: undefined;
|
|
2561
|
+
responseBodySchema: zod.ZodObject<{
|
|
2562
|
+
event_account: zod.ZodString;
|
|
2563
|
+
event_id: zod.ZodNullable<zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>>;
|
|
2564
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
2565
|
+
start_at: zod.ZodNullable<zod.ZodString>;
|
|
2566
|
+
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
2567
|
+
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2568
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2569
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2570
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
2571
|
+
active_listing_count: zod.ZodNumber;
|
|
2572
|
+
tickets_issued_count: zod.ZodNumber;
|
|
2573
|
+
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
2574
|
+
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
2575
|
+
found: zod.ZodLiteral<true>;
|
|
2576
|
+
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2577
|
+
}, zod_v4_core.$strict>;
|
|
2578
|
+
};
|
|
2579
|
+
readonly "get-integrator": {
|
|
2580
|
+
buildPath: (args?: (Record<string, string> & {
|
|
2581
|
+
baseApiUrl?: string;
|
|
2582
|
+
}) | undefined) => string;
|
|
2583
|
+
buildJsonPayload: (fields: never) => string;
|
|
2584
|
+
buildHeaders: (headers: {
|
|
2585
|
+
"x-api-key": string;
|
|
2586
|
+
}) => {
|
|
2587
|
+
"x-api-key": string;
|
|
2588
|
+
};
|
|
2589
|
+
buildQueryString: (params: never) => string;
|
|
2590
|
+
name: string;
|
|
2591
|
+
method: "GET";
|
|
2592
|
+
routeKey: "GET /integrator";
|
|
2593
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2594
|
+
headersSchema: zod.ZodObject<{
|
|
2595
|
+
"x-api-key": zod.ZodString;
|
|
2596
|
+
}, zod_v4_core.$strip>;
|
|
2597
|
+
requestBodySchema?: undefined;
|
|
2598
|
+
queryParamsSchema?: undefined;
|
|
2599
|
+
responseBodySchema: zod.ZodObject<{
|
|
2600
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2601
|
+
}, zod_v4_core.$strip>;
|
|
2602
|
+
};
|
|
2009
2603
|
readonly "get-event-account": {
|
|
2010
2604
|
buildPath: (args?: ({
|
|
2011
2605
|
eventId: string;
|
|
@@ -2196,6 +2790,22 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
2196
2790
|
};
|
|
2197
2791
|
}[TRouteName]["responseBodySchema"]>>;
|
|
2198
2792
|
|
|
2793
|
+
/**
|
|
2794
|
+
* Converts an amount in USDC minor units to whole cents, rounding half up to
|
|
2795
|
+
* the closest cent.
|
|
2796
|
+
*
|
|
2797
|
+
* @example
|
|
2798
|
+
* client.utils.usdcMinorToCents(25_000_000n); // 2500n, which is $25.00
|
|
2799
|
+
*/
|
|
2800
|
+
declare function usdcMinorToCents(usdcMinor: bigint): bigint;
|
|
2801
|
+
/**
|
|
2802
|
+
* Converts an amount in whole cents to USDC minor units.
|
|
2803
|
+
*
|
|
2804
|
+
* @example
|
|
2805
|
+
* client.utils.centsToUsdcMinor(2_500n); // 25000000n
|
|
2806
|
+
*/
|
|
2807
|
+
declare function centsToUsdcMinor(cents: bigint): bigint;
|
|
2808
|
+
|
|
2199
2809
|
type GetEventInput = Parameters<TdpClient["solana"]["getEvent"]>[0];
|
|
2200
2810
|
type GetEventResponse = Awaited<ReturnType<TdpClient["solana"]["getEvent"]>>;
|
|
2201
2811
|
type GetListingInput = Parameters<TdpClient["solana"]["getListing"]>[0];
|
|
@@ -2212,6 +2822,11 @@ type ListUpcomingEventsResponse = Awaited<ReturnType<TdpClient["indexer"]["listU
|
|
|
2212
2822
|
type UpdateEventMetadataInput = Parameters<TdpClient["indexer"]["updateEventMetadata"]>[0];
|
|
2213
2823
|
type UpdateEventMetadataBody = UpdateEventMetadataInput["body"];
|
|
2214
2824
|
type UpdateEventMetadataResponse = Awaited<ReturnType<TdpClient["indexer"]["updateEventMetadata"]>>;
|
|
2825
|
+
type GetIntegratorInfoResponse = Awaited<ReturnType<TdpClient["integrator"]["getInfo"]>>;
|
|
2826
|
+
type ListEventsInput = NonNullable<Parameters<TdpClient["events"]["list"]>[0]>;
|
|
2827
|
+
type ListEventsResponse = Awaited<ReturnType<TdpClient["events"]["list"]>>;
|
|
2828
|
+
type GetIndexedEventInput = Parameters<TdpClient["events"]["get"]>[0];
|
|
2829
|
+
type GetIndexedEventResponse = Awaited<ReturnType<TdpClient["events"]["get"]>>;
|
|
2215
2830
|
type GetUserAddressInput = Parameters<TdpClient["wallets"]["getUserAddress"]>[0];
|
|
2216
2831
|
type GetIntegratorAddressInput = NonNullable<Parameters<TdpClient["wallets"]["getIntegratorAddress"]>[0]>;
|
|
2217
2832
|
type WalletAddressResponse = Awaited<ReturnType<TdpClient["wallets"]["getUserAddress"]>>;
|
|
@@ -2221,22 +2836,22 @@ type SignTransactionResponse = Awaited<ReturnType<TdpClient["transactions"]["sig
|
|
|
2221
2836
|
type SubmitTransactionInput = Parameters<TdpClient["transactions"]["submit"]>[0];
|
|
2222
2837
|
type SubmitTransactionBody = SubmitTransactionInput["body"];
|
|
2223
2838
|
type SubmitTransactionResponse = Awaited<ReturnType<TdpClient["transactions"]["submit"]>>;
|
|
2224
|
-
type
|
|
2225
|
-
type
|
|
2226
|
-
type
|
|
2227
|
-
type
|
|
2228
|
-
type
|
|
2839
|
+
type GetOrderInput = Parameters<TdpClient["orders"]["get"]>[0];
|
|
2840
|
+
type GetOrderResponse = Awaited<ReturnType<TdpClient["orders"]["get"]>>;
|
|
2841
|
+
type CreateAndSubmitOrderInput = Parameters<TdpClient["orders"]["createAndSubmit"]>[0];
|
|
2842
|
+
type CreateAndSubmitOrderBody = CreateAndSubmitOrderInput["body"];
|
|
2843
|
+
type CreateAndSubmitOrderResponse = Awaited<ReturnType<TdpClient["orders"]["createAndSubmit"]>>;
|
|
2229
2844
|
|
|
2230
2845
|
type TdpClientOptions = Parameters<typeof createTixApiClient>[0];
|
|
2231
2846
|
type TdpClient = ReturnType<typeof createTdpClient>;
|
|
2232
2847
|
declare function createTdpClient(options: TdpClientOptions): {
|
|
2233
2848
|
solana: {
|
|
2234
2849
|
getEvent(pathParams: RoutePathParams<TixApiRoutes["get-event-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2850
|
+
min_royalty_floor_cents: number;
|
|
2235
2851
|
address: _solana_kit.Address<string>;
|
|
2236
2852
|
integrator: _solana_kit.Address<string>;
|
|
2237
2853
|
integrator_authority: _solana_kit.Address<string>;
|
|
2238
2854
|
royalty_bps: number;
|
|
2239
|
-
min_royalty_floor: string;
|
|
2240
2855
|
royalty_recipients_count: number;
|
|
2241
2856
|
royalty_recipients: {
|
|
2242
2857
|
destination: _solana_kit.Address<string>;
|
|
@@ -2247,11 +2862,11 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2247
2862
|
flags: number;
|
|
2248
2863
|
}>;
|
|
2249
2864
|
getListing(pathParams: RoutePathParams<TixApiRoutes["get-listing-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2865
|
+
ask_price_cents: number;
|
|
2250
2866
|
address: _solana_kit.Address<string>;
|
|
2251
2867
|
event_id: string;
|
|
2252
2868
|
ticket_id: string;
|
|
2253
2869
|
seller: _solana_kit.Address<string>;
|
|
2254
|
-
ask_price_minor: string;
|
|
2255
2870
|
buyer_allow: _solana_kit.Address<string>;
|
|
2256
2871
|
payout_ata: _solana_kit.Address<string>;
|
|
2257
2872
|
expires_at: string;
|
|
@@ -2269,27 +2884,70 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2269
2884
|
listing_lock_expiry: string;
|
|
2270
2885
|
}>;
|
|
2271
2886
|
getProtocolConfig(options?: Pick<RequestInit, "signal">): Promise<{
|
|
2887
|
+
event_registration_fee_cents: number;
|
|
2888
|
+
permit_fee_cents: number;
|
|
2889
|
+
p2p_transfer_fee_cents: number;
|
|
2272
2890
|
address: _solana_kit.Address<string>;
|
|
2273
2891
|
usdc_mint: _solana_kit.Address<string>;
|
|
2274
2892
|
default_royalty_vault: _solana_kit.Address<string>;
|
|
2275
2893
|
authority: _solana_kit.Address<string>;
|
|
2276
2894
|
usdc_decimals: number;
|
|
2277
|
-
event_registration_fee_minor: string;
|
|
2278
|
-
permit_fee_minor: string;
|
|
2279
|
-
p2p_transfer_fee_minor: string;
|
|
2280
2895
|
resale_fee_bps: number;
|
|
2281
2896
|
}>;
|
|
2282
2897
|
getIntegrator(pathParams: RoutePathParams<TixApiRoutes["get-integrator-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2283
|
-
integrator_pda: _solana_kit.Address<string>;
|
|
2284
2898
|
integrator: {
|
|
2899
|
+
balance: {
|
|
2900
|
+
amount_cents: number;
|
|
2901
|
+
};
|
|
2285
2902
|
authority: _solana_kit.Address<string>;
|
|
2286
2903
|
status: "Active" | "Suspended";
|
|
2287
2904
|
treasury_usdc: _solana_kit.Address<string>;
|
|
2288
|
-
balance: {
|
|
2289
|
-
amount_minor: string;
|
|
2290
|
-
decimals: number;
|
|
2291
|
-
};
|
|
2292
2905
|
};
|
|
2906
|
+
integrator_pda: _solana_kit.Address<string>;
|
|
2907
|
+
}>;
|
|
2908
|
+
};
|
|
2909
|
+
events: {
|
|
2910
|
+
list(queryParams?: Omit<{
|
|
2911
|
+
limit?: unknown;
|
|
2912
|
+
cursor?: string | undefined;
|
|
2913
|
+
}, "limit"> & {
|
|
2914
|
+
limit?: number;
|
|
2915
|
+
}, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2916
|
+
items: {
|
|
2917
|
+
event_account: string;
|
|
2918
|
+
event_id: string | null;
|
|
2919
|
+
name: string | null;
|
|
2920
|
+
start_at: string | null;
|
|
2921
|
+
on_sale_at: string | null;
|
|
2922
|
+
image_url: string | null;
|
|
2923
|
+
timezone: string | null;
|
|
2924
|
+
address: string | null;
|
|
2925
|
+
venue: string | null;
|
|
2926
|
+
active_listing_count: number;
|
|
2927
|
+
tickets_issued_count: number;
|
|
2928
|
+
integrator_identity: string | null;
|
|
2929
|
+
updated_at: string | null;
|
|
2930
|
+
found: true;
|
|
2931
|
+
genres: string[] | null;
|
|
2932
|
+
}[];
|
|
2933
|
+
next_cursor: string | null;
|
|
2934
|
+
}>;
|
|
2935
|
+
get(pathParams: RoutePathParams<TixApiRoutes["get-event"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2936
|
+
event_account: string;
|
|
2937
|
+
event_id: string | null;
|
|
2938
|
+
name: string | null;
|
|
2939
|
+
start_at: string | null;
|
|
2940
|
+
on_sale_at: string | null;
|
|
2941
|
+
image_url: string | null;
|
|
2942
|
+
timezone: string | null;
|
|
2943
|
+
address: string | null;
|
|
2944
|
+
venue: string | null;
|
|
2945
|
+
active_listing_count: number;
|
|
2946
|
+
tickets_issued_count: number;
|
|
2947
|
+
integrator_identity: string | null;
|
|
2948
|
+
updated_at: string | null;
|
|
2949
|
+
found: true;
|
|
2950
|
+
genres: string[] | null;
|
|
2293
2951
|
}>;
|
|
2294
2952
|
};
|
|
2295
2953
|
indexer: {
|
|
@@ -2301,13 +2959,13 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2301
2959
|
limit?: number;
|
|
2302
2960
|
}, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2303
2961
|
items: {
|
|
2962
|
+
ask_price_cents: number | null;
|
|
2304
2963
|
event_account: string | null;
|
|
2305
2964
|
event_id: string | null;
|
|
2306
2965
|
listing_id: string | null;
|
|
2307
2966
|
ticket_id: string | null;
|
|
2308
2967
|
seller: string | null;
|
|
2309
2968
|
buyer_allow: string | null;
|
|
2310
|
-
ask_price_minor: string | null;
|
|
2311
2969
|
payout_ata: string | null;
|
|
2312
2970
|
expires_at: string | null;
|
|
2313
2971
|
updated_at: string | null;
|
|
@@ -2364,6 +3022,11 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2364
3022
|
updated_at: string;
|
|
2365
3023
|
}>;
|
|
2366
3024
|
};
|
|
3025
|
+
integrator: {
|
|
3026
|
+
getInfo(options?: Pick<RequestInit, "signal">): Promise<{
|
|
3027
|
+
address: _solana_kit.Address<string>;
|
|
3028
|
+
}>;
|
|
3029
|
+
};
|
|
2367
3030
|
wallets: {
|
|
2368
3031
|
getUserAddress(pathParams: RoutePathParams<ApiKeyWalletCustodyApiRoutes["get-user-address"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2369
3032
|
address: _solana_kit.Address<string>;
|
|
@@ -2442,39 +3105,69 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2442
3105
|
failureReason?: string | undefined;
|
|
2443
3106
|
}>;
|
|
2444
3107
|
};
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
3108
|
+
orders: {
|
|
3109
|
+
createAndSubmit({ idempotencyKey, body, }: RouteRequestField<"body", RouteRequestBody<{
|
|
3110
|
+
buildPath: (args?: (Record<string, string> & {
|
|
3111
|
+
baseApiUrl?: string;
|
|
3112
|
+
}) | undefined) => string;
|
|
3113
|
+
buildJsonPayload: (fields: {
|
|
3114
|
+
userId: string;
|
|
3115
|
+
userEmail: string;
|
|
3116
|
+
listings: {
|
|
3117
|
+
eventId: string | number | bigint;
|
|
3118
|
+
ticketId: string | number | bigint;
|
|
3119
|
+
}[];
|
|
3120
|
+
}) => string;
|
|
3121
|
+
buildHeaders: (headers: {
|
|
3122
|
+
"x-api-key": string;
|
|
3123
|
+
"idempotency-key": string;
|
|
3124
|
+
}) => {
|
|
3125
|
+
"x-api-key": string;
|
|
3126
|
+
"idempotency-key": string;
|
|
2453
3127
|
};
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
}, zod_v4_core.$
|
|
2463
|
-
|
|
3128
|
+
buildQueryString: (params: never) => string;
|
|
3129
|
+
name: string;
|
|
3130
|
+
method: "POST";
|
|
3131
|
+
routeKey: "POST /orders";
|
|
3132
|
+
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
3133
|
+
headersSchema: zod.ZodObject<{
|
|
3134
|
+
"x-api-key": zod.ZodString;
|
|
3135
|
+
"idempotency-key": zod.ZodString;
|
|
3136
|
+
}, zod_v4_core.$strip>;
|
|
3137
|
+
requestBodySchema?: zod.ZodObject<{
|
|
3138
|
+
userId: zod.ZodString;
|
|
3139
|
+
userEmail: zod.ZodEmail;
|
|
3140
|
+
listings: zod.ZodArray<zod.ZodObject<{
|
|
3141
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
3142
|
+
ticketId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
3143
|
+
}, zod_v4_core.$strict>>;
|
|
3144
|
+
}, zod_v4_core.$strip> | undefined;
|
|
3145
|
+
queryParamsSchema?: undefined;
|
|
3146
|
+
responseBodySchema: zod.ZodObject<{
|
|
3147
|
+
id: zod.ZodString;
|
|
3148
|
+
status: zod.ZodNullable<zod.ZodEnum<{
|
|
3149
|
+
processing: "processing";
|
|
3150
|
+
confirmed: "confirmed";
|
|
3151
|
+
landed_with_error: "landed_with_error";
|
|
3152
|
+
expired: "expired";
|
|
3153
|
+
}>>;
|
|
3154
|
+
claimWallet: zod.ZodObject<{
|
|
3155
|
+
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
3156
|
+
claimWalletId: zod.ZodPipe<zod.ZodCustomStringFormat<"sha256_hex">, zod.ZodTransform<Sha256Hex, string>>;
|
|
3157
|
+
}, zod_v4_core.$strip>;
|
|
3158
|
+
claimUrl: zod.ZodURL;
|
|
3159
|
+
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
3160
|
+
}, zod_v4_core.$strip>;
|
|
3161
|
+
}>> & RouteRequestField<"idempotencyKey", RouteRequestHeader<{
|
|
2464
3162
|
buildPath: (args?: (Record<string, string> & {
|
|
2465
3163
|
baseApiUrl?: string;
|
|
2466
3164
|
}) | undefined) => string;
|
|
2467
3165
|
buildJsonPayload: (fields: {
|
|
2468
|
-
|
|
3166
|
+
userId: string;
|
|
2469
3167
|
userEmail: string;
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
permit_version: string | number | bigint;
|
|
2474
|
-
usdc_mint: string;
|
|
2475
|
-
seller_payout: string;
|
|
2476
|
-
royalty_destinations: string[];
|
|
2477
|
-
ticket_type_config?: string | null | undefined;
|
|
3168
|
+
listings: {
|
|
3169
|
+
eventId: string | number | bigint;
|
|
3170
|
+
ticketId: string | number | bigint;
|
|
2478
3171
|
}[];
|
|
2479
3172
|
}) => string;
|
|
2480
3173
|
buildHeaders: (headers: {
|
|
@@ -2487,27 +3180,23 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2487
3180
|
buildQueryString: (params: never) => string;
|
|
2488
3181
|
name: string;
|
|
2489
3182
|
method: "POST";
|
|
2490
|
-
routeKey: "POST /
|
|
3183
|
+
routeKey: "POST /orders";
|
|
2491
3184
|
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2492
3185
|
headersSchema: zod.ZodObject<{
|
|
2493
3186
|
"x-api-key": zod.ZodString;
|
|
2494
3187
|
"idempotency-key": zod.ZodString;
|
|
2495
3188
|
}, zod_v4_core.$strip>;
|
|
2496
3189
|
requestBodySchema?: zod.ZodObject<{
|
|
2497
|
-
|
|
3190
|
+
userId: zod.ZodString;
|
|
2498
3191
|
userEmail: zod.ZodEmail;
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
permit_version: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
2503
|
-
ticket_type_config: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
2504
|
-
usdc_mint: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2505
|
-
seller_payout: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2506
|
-
royalty_destinations: zod.ZodArray<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
3192
|
+
listings: zod.ZodArray<zod.ZodObject<{
|
|
3193
|
+
eventId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
3194
|
+
ticketId: zod.ZodPipe<zod.ZodPipe<zod.ZodPipe<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBigInt]>, zod.ZodTransform<bigint, string | number | bigint>>, zod.ZodBigInt>, zod.ZodTransform<string, bigint>>;
|
|
2507
3195
|
}, zod_v4_core.$strict>>;
|
|
2508
3196
|
}, zod_v4_core.$strip> | undefined;
|
|
2509
3197
|
queryParamsSchema?: undefined;
|
|
2510
3198
|
responseBodySchema: zod.ZodObject<{
|
|
3199
|
+
id: zod.ZodString;
|
|
2511
3200
|
status: zod.ZodNullable<zod.ZodEnum<{
|
|
2512
3201
|
processing: "processing";
|
|
2513
3202
|
confirmed: "confirmed";
|
|
@@ -2522,6 +3211,7 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2522
3211
|
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
2523
3212
|
}, zod_v4_core.$strip>;
|
|
2524
3213
|
}, "idempotency-key">>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
3214
|
+
id: string;
|
|
2525
3215
|
status: "processing" | "confirmed" | "landed_with_error" | "expired" | null;
|
|
2526
3216
|
claimWallet: {
|
|
2527
3217
|
address: _solana_kit.Address<string>;
|
|
@@ -2530,7 +3220,22 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2530
3220
|
claimUrl: string;
|
|
2531
3221
|
failureReason?: string | undefined;
|
|
2532
3222
|
}>;
|
|
3223
|
+
get(pathParams: RoutePathParams<ApiKeyWalletCustodyApiRoutes["get-order"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
3224
|
+
custodialTransactionId: Sha256Hex;
|
|
3225
|
+
transactionSignature: _solana_kit.Signature;
|
|
3226
|
+
status: "processing" | "confirmed" | "landed_with_error" | "expired" | null;
|
|
3227
|
+
id: string;
|
|
3228
|
+
claimWallet: {
|
|
3229
|
+
address: _solana_kit.Address<string>;
|
|
3230
|
+
claimWalletId: Sha256Hex;
|
|
3231
|
+
};
|
|
3232
|
+
failureReason?: string | undefined;
|
|
3233
|
+
}>;
|
|
3234
|
+
};
|
|
3235
|
+
utils: {
|
|
3236
|
+
usdcMinorToCents: typeof usdcMinorToCents;
|
|
3237
|
+
centsToUsdcMinor: typeof centsToUsdcMinor;
|
|
2533
3238
|
};
|
|
2534
3239
|
};
|
|
2535
3240
|
|
|
2536
|
-
export { type
|
|
3241
|
+
export { type CreateAndSubmitOrderBody, type CreateAndSubmitOrderInput, type CreateAndSubmitOrderResponse, type GetEventInput, type GetEventResponse, type GetIndexedEventInput, type GetIndexedEventResponse, type GetIntegratorAddressInput, type GetIntegratorInfoResponse, type GetIntegratorInput, type GetIntegratorResponse, type GetListingInput, type GetListingResponse, type GetOrderInput, type GetOrderResponse, type GetPermitInput, type GetPermitResponse, type GetProtocolConfigResponse, type GetUserAddressInput, type ListActiveListingsInput, type ListActiveListingsResponse, type ListEventsInput, type ListEventsResponse, type ListUpcomingEventsInput, type ListUpcomingEventsResponse, type SignIntegratorTransactionInput, type SignTransactionBody, type SignTransactionResponse, type SubmitTransactionBody, type SubmitTransactionInput, type SubmitTransactionResponse, type TdpClient, type TdpClientOptions, type UpdateEventMetadataBody, type UpdateEventMetadataInput, type UpdateEventMetadataResponse, type WalletAddressResponse, createTdpClient };
|