@tixprotocol/tdp-sdk 0.3.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 +21 -0
- package/dist/{chunk-RLIW34CX.js → chunk-7IWD2KHF.js} +15 -3
- package/dist/chunk-7IWD2KHF.js.map +1 -0
- package/dist/{chunk-QXWVXLHK.js → chunk-MZKCWS5T.js} +73 -45
- package/dist/chunk-MZKCWS5T.js.map +1 -0
- package/dist/errors.d.ts +14 -3
- package/dist/errors.js +5 -1
- package/dist/index.d.ts +826 -174
- package/dist/index.js +182 -111
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +26 -61
- package/dist/schemas.js +13 -13
- package/package.json +1 -1
- package/dist/chunk-QXWVXLHK.js.map +0 -1
- package/dist/chunk-RLIW34CX.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";
|
|
@@ -601,9 +630,9 @@ declare const tixApiClientRoutes: {
|
|
|
601
630
|
"x-api-key": string;
|
|
602
631
|
};
|
|
603
632
|
buildQueryString: (params: {
|
|
633
|
+
eventId: string | number | bigint;
|
|
604
634
|
limit?: unknown;
|
|
605
635
|
cursor?: string | undefined;
|
|
606
|
-
eventId?: string | number | bigint | undefined;
|
|
607
636
|
}) => string;
|
|
608
637
|
name: string;
|
|
609
638
|
method: "GET";
|
|
@@ -616,7 +645,7 @@ declare const tixApiClientRoutes: {
|
|
|
616
645
|
queryParamsSchema?: zod.ZodObject<{
|
|
617
646
|
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
618
647
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
619
|
-
eventId: zod.
|
|
648
|
+
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>>;
|
|
620
649
|
}, zod_v4_core.$strip> | undefined;
|
|
621
650
|
responseBodySchema: zod.ZodObject<{
|
|
622
651
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -668,19 +697,132 @@ declare const tixApiClientRoutes: {
|
|
|
668
697
|
start_at: zod.ZodNullable<zod.ZodString>;
|
|
669
698
|
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
670
699
|
image_url: zod.ZodNullable<zod.ZodString>;
|
|
700
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
701
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
702
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
671
703
|
active_listing_count: zod.ZodNumber;
|
|
672
704
|
tickets_issued_count: zod.ZodNumber;
|
|
673
705
|
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
674
706
|
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
675
707
|
found: zod.ZodLiteral<true>;
|
|
676
708
|
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
709
|
+
}, zod_v4_core.$strict>>;
|
|
710
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
711
|
+
}, zod_v4_core.$strict>;
|
|
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>;
|
|
677
747
|
timezone: zod.ZodNullable<zod.ZodString>;
|
|
678
748
|
address: zod.ZodNullable<zod.ZodString>;
|
|
679
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>>;
|
|
680
756
|
}, zod_v4_core.$strict>>;
|
|
681
757
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
682
758
|
}, zod_v4_core.$strict>;
|
|
683
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": {
|
|
@@ -942,9 +1084,9 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
942
1084
|
"x-api-key": string;
|
|
943
1085
|
};
|
|
944
1086
|
buildQueryString: (params: {
|
|
1087
|
+
eventId: string | number | bigint;
|
|
945
1088
|
limit?: unknown;
|
|
946
1089
|
cursor?: string | undefined;
|
|
947
|
-
eventId?: string | number | bigint | undefined;
|
|
948
1090
|
}) => string;
|
|
949
1091
|
name: string;
|
|
950
1092
|
method: "GET";
|
|
@@ -957,7 +1099,7 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
957
1099
|
queryParamsSchema?: zod.ZodObject<{
|
|
958
1100
|
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
959
1101
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
960
|
-
eventId: zod.
|
|
1102
|
+
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>>;
|
|
961
1103
|
}, zod_v4_core.$strip> | undefined;
|
|
962
1104
|
responseBodySchema: zod.ZodObject<{
|
|
963
1105
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1009,19 +1151,132 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1009
1151
|
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1010
1152
|
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1011
1153
|
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1154
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1155
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1156
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1012
1157
|
active_listing_count: zod.ZodNumber;
|
|
1013
1158
|
tickets_issued_count: zod.ZodNumber;
|
|
1014
1159
|
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1015
1160
|
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1016
1161
|
found: zod.ZodLiteral<true>;
|
|
1017
1162
|
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1163
|
+
}, zod_v4_core.$strict>>;
|
|
1164
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1165
|
+
}, zod_v4_core.$strict>;
|
|
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>;
|
|
1018
1201
|
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1019
1202
|
address: zod.ZodNullable<zod.ZodString>;
|
|
1020
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>>;
|
|
1021
1210
|
}, zod_v4_core.$strict>>;
|
|
1022
1211
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1023
1212
|
}, zod_v4_core.$strict>;
|
|
1024
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;
|
|
@@ -1270,9 +1525,9 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1270
1525
|
"x-api-key": string;
|
|
1271
1526
|
};
|
|
1272
1527
|
buildQueryString: (params: {
|
|
1528
|
+
eventId: string | number | bigint;
|
|
1273
1529
|
limit?: unknown;
|
|
1274
1530
|
cursor?: string | undefined;
|
|
1275
|
-
eventId?: string | number | bigint | undefined;
|
|
1276
1531
|
}) => string;
|
|
1277
1532
|
name: string;
|
|
1278
1533
|
method: "GET";
|
|
@@ -1285,7 +1540,7 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1285
1540
|
queryParamsSchema?: zod.ZodObject<{
|
|
1286
1541
|
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
1287
1542
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1288
|
-
eventId: zod.
|
|
1543
|
+
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>>;
|
|
1289
1544
|
}, zod_v4_core.$strip> | undefined;
|
|
1290
1545
|
responseBodySchema: zod.ZodObject<{
|
|
1291
1546
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1337,23 +1592,21 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1337
1592
|
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1338
1593
|
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1339
1594
|
image_url: zod.ZodNullable<zod.ZodString>;
|
|
1595
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1596
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
1597
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1340
1598
|
active_listing_count: zod.ZodNumber;
|
|
1341
1599
|
tickets_issued_count: zod.ZodNumber;
|
|
1342
1600
|
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1343
1601
|
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1344
1602
|
found: zod.ZodLiteral<true>;
|
|
1345
1603
|
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1346
|
-
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1347
|
-
address: zod.ZodNullable<zod.ZodString>;
|
|
1348
|
-
venue: zod.ZodNullable<zod.ZodString>;
|
|
1349
1604
|
}, zod_v4_core.$strict>>;
|
|
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,18 +1615,133 @@ 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;
|
|
1634
|
+
responseBodySchema: zod.ZodObject<{
|
|
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;
|
|
1377
1745
|
responseBodySchema: zod.ZodObject<{
|
|
1378
1746
|
address: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
1379
1747
|
integrator: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
@@ -1598,9 +1966,9 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1598
1966
|
"x-api-key": string;
|
|
1599
1967
|
};
|
|
1600
1968
|
buildQueryString: (params: {
|
|
1969
|
+
eventId: string | number | bigint;
|
|
1601
1970
|
limit?: unknown;
|
|
1602
1971
|
cursor?: string | undefined;
|
|
1603
|
-
eventId?: string | number | bigint | undefined;
|
|
1604
1972
|
}) => string;
|
|
1605
1973
|
name: string;
|
|
1606
1974
|
method: "GET";
|
|
@@ -1613,7 +1981,7 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1613
1981
|
queryParamsSchema?: zod.ZodObject<{
|
|
1614
1982
|
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
1615
1983
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1616
|
-
eventId: zod.
|
|
1984
|
+
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>>;
|
|
1617
1985
|
}, zod_v4_core.$strip> | undefined;
|
|
1618
1986
|
responseBodySchema: zod.ZodObject<{
|
|
1619
1987
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1665,19 +2033,132 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1665
2033
|
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1666
2034
|
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1667
2035
|
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2036
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2037
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2038
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1668
2039
|
active_listing_count: zod.ZodNumber;
|
|
1669
2040
|
tickets_issued_count: zod.ZodNumber;
|
|
1670
2041
|
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1671
2042
|
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
1672
2043
|
found: zod.ZodLiteral<true>;
|
|
1673
2044
|
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2045
|
+
}, zod_v4_core.$strict>>;
|
|
2046
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2047
|
+
}, zod_v4_core.$strict>;
|
|
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>;
|
|
1674
2083
|
timezone: zod.ZodNullable<zod.ZodString>;
|
|
1675
2084
|
address: zod.ZodNullable<zod.ZodString>;
|
|
1676
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>>;
|
|
1677
2092
|
}, zod_v4_core.$strict>>;
|
|
1678
2093
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
1679
2094
|
}, zod_v4_core.$strict>;
|
|
1680
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;
|
|
@@ -1926,9 +2407,9 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1926
2407
|
"x-api-key": string;
|
|
1927
2408
|
};
|
|
1928
2409
|
buildQueryString: (params: {
|
|
2410
|
+
eventId: string | number | bigint;
|
|
1929
2411
|
limit?: unknown;
|
|
1930
2412
|
cursor?: string | undefined;
|
|
1931
|
-
eventId?: string | number | bigint | undefined;
|
|
1932
2413
|
}) => string;
|
|
1933
2414
|
name: string;
|
|
1934
2415
|
method: "GET";
|
|
@@ -1941,7 +2422,7 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1941
2422
|
queryParamsSchema?: zod.ZodObject<{
|
|
1942
2423
|
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
1943
2424
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1944
|
-
eventId: zod.
|
|
2425
|
+
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>>;
|
|
1945
2426
|
}, zod_v4_core.$strip> | undefined;
|
|
1946
2427
|
responseBodySchema: zod.ZodObject<{
|
|
1947
2428
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1993,19 +2474,132 @@ declare function createTixApiClient({ baseApiUrl, apiKey, fetchImpl, headers, }:
|
|
|
1993
2474
|
start_at: zod.ZodNullable<zod.ZodString>;
|
|
1994
2475
|
on_sale_at: zod.ZodNullable<zod.ZodString>;
|
|
1995
2476
|
image_url: zod.ZodNullable<zod.ZodString>;
|
|
2477
|
+
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2478
|
+
address: zod.ZodNullable<zod.ZodString>;
|
|
2479
|
+
venue: zod.ZodNullable<zod.ZodString>;
|
|
1996
2480
|
active_listing_count: zod.ZodNumber;
|
|
1997
2481
|
tickets_issued_count: zod.ZodNumber;
|
|
1998
2482
|
integrator_identity: zod.ZodNullable<zod.ZodString>;
|
|
1999
2483
|
updated_at: zod.ZodNullable<zod.ZodString>;
|
|
2000
2484
|
found: zod.ZodLiteral<true>;
|
|
2001
2485
|
genres: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
2486
|
+
}, zod_v4_core.$strict>>;
|
|
2487
|
+
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2488
|
+
}, zod_v4_core.$strict>;
|
|
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>;
|
|
2002
2524
|
timezone: zod.ZodNullable<zod.ZodString>;
|
|
2003
2525
|
address: zod.ZodNullable<zod.ZodString>;
|
|
2004
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>>;
|
|
2005
2533
|
}, zod_v4_core.$strict>>;
|
|
2006
2534
|
next_cursor: zod.ZodNullable<zod.ZodString>;
|
|
2007
2535
|
}, zod_v4_core.$strict>;
|
|
2008
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,32 +2822,36 @@ 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
|
-
type GetIntegratorAddressInput = Parameters<TdpClient["wallets"]["getIntegratorAddress"]>[0]
|
|
2831
|
+
type GetIntegratorAddressInput = NonNullable<Parameters<TdpClient["wallets"]["getIntegratorAddress"]>[0]>;
|
|
2217
2832
|
type WalletAddressResponse = Awaited<ReturnType<TdpClient["wallets"]["getUserAddress"]>>;
|
|
2218
|
-
type SignUserTransactionInput = Parameters<TdpClient["transactions"]["signUser"]>[0];
|
|
2219
2833
|
type SignIntegratorTransactionInput = Parameters<TdpClient["transactions"]["signIntegrator"]>[0];
|
|
2220
|
-
type SignTransactionBody =
|
|
2221
|
-
type SignTransactionResponse = Awaited<ReturnType<TdpClient["transactions"]["
|
|
2834
|
+
type SignTransactionBody = SignIntegratorTransactionInput["body"];
|
|
2835
|
+
type SignTransactionResponse = Awaited<ReturnType<TdpClient["transactions"]["signIntegrator"]>>;
|
|
2222
2836
|
type SubmitTransactionInput = Parameters<TdpClient["transactions"]["submit"]>[0];
|
|
2223
2837
|
type SubmitTransactionBody = SubmitTransactionInput["body"];
|
|
2224
2838
|
type SubmitTransactionResponse = Awaited<ReturnType<TdpClient["transactions"]["submit"]>>;
|
|
2225
|
-
type
|
|
2226
|
-
type
|
|
2227
|
-
type
|
|
2228
|
-
type
|
|
2229
|
-
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"]>>;
|
|
2230
2844
|
|
|
2231
2845
|
type TdpClientOptions = Parameters<typeof createTixApiClient>[0];
|
|
2232
2846
|
type TdpClient = ReturnType<typeof createTdpClient>;
|
|
2233
2847
|
declare function createTdpClient(options: TdpClientOptions): {
|
|
2234
2848
|
solana: {
|
|
2235
2849
|
getEvent(pathParams: RoutePathParams<TixApiRoutes["get-event-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2850
|
+
min_royalty_floor_cents: number;
|
|
2236
2851
|
address: _solana_kit.Address<string>;
|
|
2237
2852
|
integrator: _solana_kit.Address<string>;
|
|
2238
2853
|
integrator_authority: _solana_kit.Address<string>;
|
|
2239
2854
|
royalty_bps: number;
|
|
2240
|
-
min_royalty_floor: string;
|
|
2241
2855
|
royalty_recipients_count: number;
|
|
2242
2856
|
royalty_recipients: {
|
|
2243
2857
|
destination: _solana_kit.Address<string>;
|
|
@@ -2248,11 +2862,11 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2248
2862
|
flags: number;
|
|
2249
2863
|
}>;
|
|
2250
2864
|
getListing(pathParams: RoutePathParams<TixApiRoutes["get-listing-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2865
|
+
ask_price_cents: number;
|
|
2251
2866
|
address: _solana_kit.Address<string>;
|
|
2252
2867
|
event_id: string;
|
|
2253
2868
|
ticket_id: string;
|
|
2254
2869
|
seller: _solana_kit.Address<string>;
|
|
2255
|
-
ask_price_minor: string;
|
|
2256
2870
|
buyer_allow: _solana_kit.Address<string>;
|
|
2257
2871
|
payout_ata: _solana_kit.Address<string>;
|
|
2258
2872
|
expires_at: string;
|
|
@@ -2270,52 +2884,99 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2270
2884
|
listing_lock_expiry: string;
|
|
2271
2885
|
}>;
|
|
2272
2886
|
getProtocolConfig(options?: Pick<RequestInit, "signal">): Promise<{
|
|
2887
|
+
event_registration_fee_cents: number;
|
|
2888
|
+
permit_fee_cents: number;
|
|
2889
|
+
p2p_transfer_fee_cents: number;
|
|
2273
2890
|
address: _solana_kit.Address<string>;
|
|
2274
2891
|
usdc_mint: _solana_kit.Address<string>;
|
|
2275
2892
|
default_royalty_vault: _solana_kit.Address<string>;
|
|
2276
2893
|
authority: _solana_kit.Address<string>;
|
|
2277
2894
|
usdc_decimals: number;
|
|
2278
|
-
event_registration_fee_minor: string;
|
|
2279
|
-
permit_fee_minor: string;
|
|
2280
|
-
p2p_transfer_fee_minor: string;
|
|
2281
2895
|
resale_fee_bps: number;
|
|
2282
2896
|
}>;
|
|
2283
2897
|
getIntegrator(pathParams: RoutePathParams<TixApiRoutes["get-integrator-account"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2284
|
-
integrator_pda: _solana_kit.Address<string>;
|
|
2285
2898
|
integrator: {
|
|
2899
|
+
balance: {
|
|
2900
|
+
amount_cents: number;
|
|
2901
|
+
};
|
|
2286
2902
|
authority: _solana_kit.Address<string>;
|
|
2287
2903
|
status: "Active" | "Suspended";
|
|
2288
2904
|
treasury_usdc: _solana_kit.Address<string>;
|
|
2289
|
-
balance: {
|
|
2290
|
-
amount_minor: string;
|
|
2291
|
-
decimals: number;
|
|
2292
|
-
};
|
|
2293
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;
|
|
2294
2951
|
}>;
|
|
2295
2952
|
};
|
|
2296
2953
|
indexer: {
|
|
2297
|
-
listActiveListings(queryParams
|
|
2954
|
+
listActiveListings(queryParams: Omit<{
|
|
2955
|
+
eventId: string | number | bigint;
|
|
2298
2956
|
limit?: unknown;
|
|
2299
2957
|
cursor?: string | undefined;
|
|
2300
|
-
|
|
2958
|
+
}, "limit"> & {
|
|
2959
|
+
limit?: number;
|
|
2301
2960
|
}, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2302
2961
|
items: {
|
|
2962
|
+
ask_price_cents: number | null;
|
|
2303
2963
|
event_account: string | null;
|
|
2304
2964
|
event_id: string | null;
|
|
2305
2965
|
listing_id: string | null;
|
|
2306
2966
|
ticket_id: string | null;
|
|
2307
2967
|
seller: string | null;
|
|
2308
2968
|
buyer_allow: string | null;
|
|
2309
|
-
ask_price_minor: string | null;
|
|
2310
2969
|
payout_ata: string | null;
|
|
2311
2970
|
expires_at: string | null;
|
|
2312
2971
|
updated_at: string | null;
|
|
2313
2972
|
}[];
|
|
2314
2973
|
next_cursor: string | null;
|
|
2315
2974
|
}>;
|
|
2316
|
-
listUpcomingEvents(queryParams?: {
|
|
2975
|
+
listUpcomingEvents(queryParams?: Omit<{
|
|
2317
2976
|
limit?: unknown;
|
|
2318
2977
|
cursor?: string | undefined;
|
|
2978
|
+
}, "limit"> & {
|
|
2979
|
+
limit?: number;
|
|
2319
2980
|
}, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2320
2981
|
items: {
|
|
2321
2982
|
event_account: string;
|
|
@@ -2324,15 +2985,15 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2324
2985
|
start_at: string | null;
|
|
2325
2986
|
on_sale_at: string | null;
|
|
2326
2987
|
image_url: string | null;
|
|
2988
|
+
timezone: string | null;
|
|
2989
|
+
address: string | null;
|
|
2990
|
+
venue: string | null;
|
|
2327
2991
|
active_listing_count: number;
|
|
2328
2992
|
tickets_issued_count: number;
|
|
2329
2993
|
integrator_identity: string | null;
|
|
2330
2994
|
updated_at: string | null;
|
|
2331
2995
|
found: true;
|
|
2332
2996
|
genres: string[] | null;
|
|
2333
|
-
timezone: string | null;
|
|
2334
|
-
address: string | null;
|
|
2335
|
-
venue: string | null;
|
|
2336
2997
|
}[];
|
|
2337
2998
|
next_cursor: string | null;
|
|
2338
2999
|
}>;
|
|
@@ -2361,11 +3022,16 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2361
3022
|
updated_at: string;
|
|
2362
3023
|
}>;
|
|
2363
3024
|
};
|
|
3025
|
+
integrator: {
|
|
3026
|
+
getInfo(options?: Pick<RequestInit, "signal">): Promise<{
|
|
3027
|
+
address: _solana_kit.Address<string>;
|
|
3028
|
+
}>;
|
|
3029
|
+
};
|
|
2364
3030
|
wallets: {
|
|
2365
3031
|
getUserAddress(pathParams: RoutePathParams<ApiKeyWalletCustodyApiRoutes["get-user-address"]>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2366
3032
|
address: _solana_kit.Address<string>;
|
|
2367
3033
|
}>;
|
|
2368
|
-
getIntegratorAddress(
|
|
3034
|
+
getIntegratorAddress({ subject, }?: Partial<RoutePathParams<ApiKeyWalletCustodyApiRoutes["get-integrator-address"]>>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2369
3035
|
address: _solana_kit.Address<string>;
|
|
2370
3036
|
}>;
|
|
2371
3037
|
getFeePayerAddress(options?: Pick<RequestInit, "signal">): Promise<{
|
|
@@ -2376,65 +3042,9 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2376
3042
|
}>;
|
|
2377
3043
|
};
|
|
2378
3044
|
transactions: {
|
|
2379
|
-
|
|
2380
|
-
subject: string;
|
|
2381
|
-
} & {
|
|
2382
|
-
body: {
|
|
2383
|
-
tixInstructions: {
|
|
2384
|
-
instruction: "accept_offer_v2";
|
|
2385
|
-
params: {
|
|
2386
|
-
event_id: string | number | bigint;
|
|
2387
|
-
ticket_id: string | number | bigint;
|
|
2388
|
-
permit_version: string | number | bigint;
|
|
2389
|
-
buyer: string;
|
|
2390
|
-
integrator_authority: string;
|
|
2391
|
-
seller_payout: string;
|
|
2392
|
-
royalty_destinations: string[];
|
|
2393
|
-
integrator_identity: string;
|
|
2394
|
-
usdc_mint: string;
|
|
2395
|
-
ticket_type_config?: string | null | undefined;
|
|
2396
|
-
}[];
|
|
2397
|
-
} | {
|
|
2398
|
-
instruction: "cancel_listing_v1";
|
|
2399
|
-
params: {
|
|
2400
|
-
event_id: string | number | bigint;
|
|
2401
|
-
ticket_id: string | number | bigint;
|
|
2402
|
-
canceller: string;
|
|
2403
|
-
}[];
|
|
2404
|
-
} | {
|
|
2405
|
-
instruction: "list_ticket_v2";
|
|
2406
|
-
params: {
|
|
2407
|
-
seller: string;
|
|
2408
|
-
storage_fee_payer: string;
|
|
2409
|
-
listing_integrator_identity: string;
|
|
2410
|
-
listing_integrator_authority: string;
|
|
2411
|
-
usdc_mint: string;
|
|
2412
|
-
event_id: string | number | bigint;
|
|
2413
|
-
ticket_id: string | number | bigint;
|
|
2414
|
-
ask_price_minor: string | number | bigint;
|
|
2415
|
-
payout_ata: string;
|
|
2416
|
-
expires_at: string | number | bigint;
|
|
2417
|
-
buyer_allow?: string | null | undefined;
|
|
2418
|
-
ticket_type_config?: string | null | undefined;
|
|
2419
|
-
}[];
|
|
2420
|
-
};
|
|
2421
|
-
};
|
|
2422
|
-
} & {
|
|
2423
|
-
idempotencyKey: string;
|
|
2424
|
-
}, options?: Pick<RequestInit, "signal">): Promise<{
|
|
2425
|
-
custodialTransactionId: Sha256Hex;
|
|
2426
|
-
signerAddress: _solana_kit.Address<string>;
|
|
2427
|
-
feePayerAddress: _solana_kit.Address<string>;
|
|
2428
|
-
signedTransaction: _solana_kit.Base64EncodedWireTransaction;
|
|
2429
|
-
message: string;
|
|
2430
|
-
signature: _solana_kit.Signature;
|
|
2431
|
-
feePayerSignature: _solana_kit.Signature;
|
|
2432
|
-
requiredSigners: _solana_kit.Address<string>[];
|
|
2433
|
-
recentBlockhash: _solana_kit.Blockhash;
|
|
2434
|
-
}>;
|
|
2435
|
-
signIntegrator({ subject, idempotencyKey, body, }: {
|
|
3045
|
+
signIntegrator({ subject, idempotencyKey, body, }: Partial<{
|
|
2436
3046
|
subject: string;
|
|
2437
|
-
} & {
|
|
3047
|
+
}> & {
|
|
2438
3048
|
body: {
|
|
2439
3049
|
tixInstructions: {
|
|
2440
3050
|
instruction: "accept_offer_v2";
|
|
@@ -2495,39 +3105,69 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2495
3105
|
failureReason?: string | undefined;
|
|
2496
3106
|
}>;
|
|
2497
3107
|
};
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
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;
|
|
2506
3127
|
};
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
}, zod_v4_core.$
|
|
2516
|
-
|
|
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<{
|
|
2517
3162
|
buildPath: (args?: (Record<string, string> & {
|
|
2518
3163
|
baseApiUrl?: string;
|
|
2519
3164
|
}) | undefined) => string;
|
|
2520
3165
|
buildJsonPayload: (fields: {
|
|
2521
|
-
|
|
3166
|
+
userId: string;
|
|
2522
3167
|
userEmail: string;
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
permit_version: string | number | bigint;
|
|
2527
|
-
usdc_mint: string;
|
|
2528
|
-
seller_payout: string;
|
|
2529
|
-
royalty_destinations: string[];
|
|
2530
|
-
ticket_type_config?: string | null | undefined;
|
|
3168
|
+
listings: {
|
|
3169
|
+
eventId: string | number | bigint;
|
|
3170
|
+
ticketId: string | number | bigint;
|
|
2531
3171
|
}[];
|
|
2532
3172
|
}) => string;
|
|
2533
3173
|
buildHeaders: (headers: {
|
|
@@ -2540,27 +3180,23 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2540
3180
|
buildQueryString: (params: never) => string;
|
|
2541
3181
|
name: string;
|
|
2542
3182
|
method: "POST";
|
|
2543
|
-
routeKey: "POST /
|
|
3183
|
+
routeKey: "POST /orders";
|
|
2544
3184
|
pathParamsSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2545
3185
|
headersSchema: zod.ZodObject<{
|
|
2546
3186
|
"x-api-key": zod.ZodString;
|
|
2547
3187
|
"idempotency-key": zod.ZodString;
|
|
2548
3188
|
}, zod_v4_core.$strip>;
|
|
2549
3189
|
requestBodySchema?: zod.ZodObject<{
|
|
2550
|
-
|
|
3190
|
+
userId: zod.ZodString;
|
|
2551
3191
|
userEmail: zod.ZodEmail;
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
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>>;
|
|
2556
|
-
ticket_type_config: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
2557
|
-
usdc_mint: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2558
|
-
seller_payout: zod.ZodPipe<zod.ZodString, zod.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
2559
|
-
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>>;
|
|
2560
3195
|
}, zod_v4_core.$strict>>;
|
|
2561
3196
|
}, zod_v4_core.$strip> | undefined;
|
|
2562
3197
|
queryParamsSchema?: undefined;
|
|
2563
3198
|
responseBodySchema: zod.ZodObject<{
|
|
3199
|
+
id: zod.ZodString;
|
|
2564
3200
|
status: zod.ZodNullable<zod.ZodEnum<{
|
|
2565
3201
|
processing: "processing";
|
|
2566
3202
|
confirmed: "confirmed";
|
|
@@ -2575,6 +3211,7 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2575
3211
|
failureReason: zod.ZodOptional<zod.ZodString>;
|
|
2576
3212
|
}, zod_v4_core.$strip>;
|
|
2577
3213
|
}, "idempotency-key">>, options?: Pick<RequestInit, "signal">): Promise<{
|
|
3214
|
+
id: string;
|
|
2578
3215
|
status: "processing" | "confirmed" | "landed_with_error" | "expired" | null;
|
|
2579
3216
|
claimWallet: {
|
|
2580
3217
|
address: _solana_kit.Address<string>;
|
|
@@ -2583,7 +3220,22 @@ declare function createTdpClient(options: TdpClientOptions): {
|
|
|
2583
3220
|
claimUrl: string;
|
|
2584
3221
|
failureReason?: string | undefined;
|
|
2585
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;
|
|
2586
3238
|
};
|
|
2587
3239
|
};
|
|
2588
3240
|
|
|
2589
|
-
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 };
|