@tixprotocol/tdp-sdk 0.2.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/LICENSE.md +202 -0
- package/README.md +31 -0
- package/dist/chunk-3SJAQTJ4.js +563 -0
- package/dist/chunk-3SJAQTJ4.js.map +1 -0
- package/dist/chunk-RLIW34CX.js +40 -0
- package/dist/chunk-RLIW34CX.js.map +1 -0
- package/dist/errors.d.ts +25 -0
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +2575 -0
- package/dist/index.js +503 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +399 -0
- package/dist/schemas.js +90 -0
- package/dist/schemas.js.map +1 -0
- package/dist/transaction-submission-status-BPffQES8.d.ts +32 -0
- package/package.json +39 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { S as Sha256Hex } from './transaction-submission-status-BPffQES8.js';
|
|
2
|
+
export { A as ApiEnvironment, a as ApiEnvironmentSchema, N as NullableTransactionSubmissionStatus, b as NullableTransactionSubmissionStatusSchema, T as TransactionSubmissionStatus, c as TransactionSubmissionStatusSchema } from './transaction-submission-status-BPffQES8.js';
|
|
3
|
+
import * as _solana_kit from '@solana/kit';
|
|
4
|
+
import { Base64EncodedWireTransaction } from '@solana/kit';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
|
|
7
|
+
declare const WalletPathParametersSchema: z.ZodObject<{
|
|
8
|
+
subject: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
type UserWalletPathParameters = z.infer<typeof WalletPathParametersSchema>;
|
|
11
|
+
declare const GetAddressResponseSchema: z.ZodObject<{
|
|
12
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The accept params an integrator may supply on the composite claim route:
|
|
17
|
+
* the wire params minus everything TDP derives — the `buyer` is the claim
|
|
18
|
+
* wallet, and the integrator is the caller's own primary integrator wallet.
|
|
19
|
+
* Note the primary integrator wallet must be a registered integrator
|
|
20
|
+
* on-chain; i.e., a TIX-protocol integrator with a funded treasury.
|
|
21
|
+
*/
|
|
22
|
+
declare const AcceptClaimOffersSchema: z.ZodObject<{
|
|
23
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
24
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
25
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
26
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
27
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
28
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
29
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
declare const AcceptClaimOffersRequestBodySchema: z.ZodObject<{
|
|
32
|
+
userSubject: z.ZodString;
|
|
33
|
+
userEmail: z.ZodEmail;
|
|
34
|
+
offers: z.ZodArray<z.ZodObject<{
|
|
35
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
36
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
37
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
38
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
39
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
40
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
41
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const AcceptClaimOffersResponseSchema: z.ZodObject<{
|
|
45
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
46
|
+
processing: "processing";
|
|
47
|
+
confirmed: "confirmed";
|
|
48
|
+
landed_with_error: "landed_with_error";
|
|
49
|
+
expired: "expired";
|
|
50
|
+
}>>;
|
|
51
|
+
claimWallet: z.ZodObject<{
|
|
52
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
53
|
+
claimWalletId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
claimUrl: z.ZodURL;
|
|
56
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
type AcceptClaimOffersResponse = z.infer<typeof AcceptClaimOffersResponseSchema>;
|
|
59
|
+
|
|
60
|
+
declare const SignTransactionResponseSchema: z.ZodObject<{
|
|
61
|
+
custodialTransactionId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
62
|
+
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
63
|
+
feePayerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
64
|
+
signedTransaction: z.ZodPipe<z.ZodBase64, z.ZodTransform<_solana_kit.Base64EncodedWireTransaction, string>>;
|
|
65
|
+
message: z.ZodString;
|
|
66
|
+
signature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
67
|
+
feePayerSignature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
68
|
+
requiredSigners: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
69
|
+
recentBlockhash: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Blockhash, string>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
|
|
72
|
+
declare const SubmitTenantTransactionResponseSchema: z.ZodObject<{
|
|
73
|
+
custodialTransactionId: z.ZodPipe<z.ZodCustomStringFormat<"sha256_hex">, z.ZodTransform<Sha256Hex, string>>;
|
|
74
|
+
transactionSignature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
75
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
76
|
+
processing: "processing";
|
|
77
|
+
confirmed: "confirmed";
|
|
78
|
+
landed_with_error: "landed_with_error";
|
|
79
|
+
expired: "expired";
|
|
80
|
+
}>>;
|
|
81
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
|
|
84
|
+
declare const SignTenantTransactionRequestBodySchema: z.ZodObject<{
|
|
85
|
+
tixInstructions: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
instruction: z.ZodLiteral<"accept_offer_v2">;
|
|
87
|
+
params: z.ZodArray<z.ZodObject<{
|
|
88
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
89
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
90
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
91
|
+
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
92
|
+
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
93
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
94
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
95
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
96
|
+
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
97
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
instruction: z.ZodLiteral<"cancel_listing_v1">;
|
|
101
|
+
params: z.ZodArray<z.ZodObject<{
|
|
102
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
103
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
104
|
+
canceller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
instruction: z.ZodLiteral<"list_ticket_v2">;
|
|
108
|
+
params: z.ZodArray<z.ZodObject<{
|
|
109
|
+
seller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
110
|
+
storage_fee_payer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
111
|
+
listing_integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
112
|
+
listing_integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
113
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
114
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
115
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
116
|
+
ask_price_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
117
|
+
buyer_allow: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
118
|
+
payout_ata: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
119
|
+
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
120
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>], "instruction">;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
declare const AdditionalSignaturesSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
125
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
126
|
+
signature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
128
|
+
declare const SubmitTenantTransactionRequestBodySchema: z.ZodObject<{
|
|
129
|
+
signedTransaction: z.ZodPipe<z.ZodBase64, z.ZodTransform<_solana_kit.Base64EncodedWireTransaction, string>>;
|
|
130
|
+
additionalSignatures: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
132
|
+
signature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
|
|
136
|
+
/** Decoded on-chain accounts, keyed by their address, with `discriminator` and padding dropped. */
|
|
137
|
+
declare const ListingV1ResponseSchema: z.ZodObject<{
|
|
138
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
139
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
140
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
141
|
+
seller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
142
|
+
ask_price_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
143
|
+
buyer_allow: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
144
|
+
payout_ata: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
145
|
+
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
146
|
+
listed_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
147
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
148
|
+
active: z.ZodBoolean;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
declare const EventV1ResponseSchema: z.ZodObject<{
|
|
151
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
152
|
+
integrator: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
153
|
+
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
154
|
+
royalty_bps: z.ZodNumber;
|
|
155
|
+
min_royalty_floor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
156
|
+
royalty_recipients_count: z.ZodNumber;
|
|
157
|
+
royalty_recipients: z.ZodArray<z.ZodObject<{
|
|
158
|
+
destination: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
159
|
+
bps: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
total_supply: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
162
|
+
minted: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
163
|
+
flags: z.ZodNumber;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
declare const PermitV1ResponseSchema: z.ZodObject<{
|
|
166
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
167
|
+
status: z.ZodNumber;
|
|
168
|
+
ticket_type_id: z.ZodNumber;
|
|
169
|
+
version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
170
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
171
|
+
listing_lock_expiry: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
declare const ProtocolConfigV1ResponseSchema: z.ZodObject<{
|
|
174
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
175
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
176
|
+
default_royalty_vault: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
177
|
+
authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
178
|
+
usdc_decimals: z.ZodNumber;
|
|
179
|
+
event_registration_fee_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
180
|
+
permit_fee_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
181
|
+
p2p_transfer_fee_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>, z.ZodTransform<string, string>>;
|
|
182
|
+
resale_fee_bps: z.ZodNumber;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
|
|
185
|
+
/** A registered integrator only; an unregistered identity is a 404, never a null. */
|
|
186
|
+
declare const IntegratorAccountResponseSchema: z.ZodObject<{
|
|
187
|
+
integrator_pda: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
188
|
+
integrator: z.ZodObject<{
|
|
189
|
+
authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
190
|
+
status: z.ZodEnum<{
|
|
191
|
+
Active: "Active";
|
|
192
|
+
Suspended: "Suspended";
|
|
193
|
+
}>;
|
|
194
|
+
treasury_usdc: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
195
|
+
balance: z.ZodObject<{
|
|
196
|
+
amount_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
197
|
+
decimals: z.ZodNumber;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
|
|
202
|
+
declare const EventPathParametersSchema: z.ZodObject<{
|
|
203
|
+
eventId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
declare const TicketPathParametersSchema: z.ZodObject<{
|
|
206
|
+
eventId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
207
|
+
ticketId: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
declare const IntegratorPathParametersSchema: z.ZodObject<{
|
|
210
|
+
identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
|
|
213
|
+
declare const PostIntegratorMetadataRequestBodySchema: z.ZodObject<{
|
|
214
|
+
name: z.ZodOptional<z.ZodString>;
|
|
215
|
+
start_at: z.ZodOptional<z.ZodString>;
|
|
216
|
+
on_sale_at: z.ZodOptional<z.ZodString>;
|
|
217
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
218
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
219
|
+
address: z.ZodOptional<z.ZodString>;
|
|
220
|
+
venue: z.ZodOptional<z.ZodString>;
|
|
221
|
+
genres: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
declare const PostTixIndexerIntegratorMetadataResultSchema: z.ZodObject<{
|
|
224
|
+
status: z.ZodLiteral<"ok">;
|
|
225
|
+
event_account: z.ZodString;
|
|
226
|
+
updated_at: z.ZodString;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
type PostTixIndexerIntegratorMetadataResult = z.infer<typeof PostTixIndexerIntegratorMetadataResultSchema>;
|
|
229
|
+
|
|
230
|
+
declare const TixIndexerUpcomingEventsResultSchema: z.ZodObject<{
|
|
231
|
+
items: z.ZodArray<z.ZodObject<{
|
|
232
|
+
event_account: z.ZodString;
|
|
233
|
+
event_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>>;
|
|
234
|
+
name: z.ZodNullable<z.ZodString>;
|
|
235
|
+
start_at: z.ZodNullable<z.ZodString>;
|
|
236
|
+
on_sale_at: z.ZodNullable<z.ZodString>;
|
|
237
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
238
|
+
active_listing_count: z.ZodNumber;
|
|
239
|
+
tickets_issued_count: z.ZodNumber;
|
|
240
|
+
integrator_identity: z.ZodNullable<z.ZodString>;
|
|
241
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
242
|
+
found: z.ZodLiteral<true>;
|
|
243
|
+
genres: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
244
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
245
|
+
address: z.ZodNullable<z.ZodString>;
|
|
246
|
+
venue: z.ZodNullable<z.ZodString>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
type TixIndexerUpcomingEventsResult = z.infer<typeof TixIndexerUpcomingEventsResultSchema>;
|
|
251
|
+
declare const TixIndexerActiveListingsResultSchema: z.ZodObject<{
|
|
252
|
+
items: z.ZodArray<z.ZodObject<{
|
|
253
|
+
event_account: z.ZodNullable<z.ZodString>;
|
|
254
|
+
event_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>>;
|
|
255
|
+
listing_id: z.ZodNullable<z.ZodString>;
|
|
256
|
+
ticket_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>>;
|
|
257
|
+
seller: z.ZodNullable<z.ZodString>;
|
|
258
|
+
buyer_allow: z.ZodNullable<z.ZodString>;
|
|
259
|
+
ask_price_minor: z.ZodNullable<z.ZodString>;
|
|
260
|
+
payout_ata: z.ZodNullable<z.ZodString>;
|
|
261
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
262
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
263
|
+
}, z.core.$strict>>;
|
|
264
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
type TixIndexerActiveListingsResult = z.infer<typeof TixIndexerActiveListingsResultSchema>;
|
|
267
|
+
|
|
268
|
+
/** Query-string values arrive as strings, hence the coercion. */
|
|
269
|
+
declare const LimitCursorQuerySchema: z.ZodObject<{
|
|
270
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
271
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
|
|
274
|
+
declare const WireU64: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
275
|
+
declare const WireI64: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
276
|
+
declare const WireU16: z.ZodNumber;
|
|
277
|
+
declare const WireU32: z.ZodNumber;
|
|
278
|
+
/** A base58 Solana address. */
|
|
279
|
+
declare const Base58Address: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
280
|
+
/** A base58 Solana blockhash. */
|
|
281
|
+
declare const Blockhash: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Blockhash, string>>;
|
|
282
|
+
/** A base58 Solana signature. */
|
|
283
|
+
declare const Signature: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Signature, string>>;
|
|
284
|
+
|
|
285
|
+
declare const AcceptOfferV2ParamsSchema: z.ZodObject<{
|
|
286
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
287
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
288
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
289
|
+
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
290
|
+
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
291
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
292
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
293
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
294
|
+
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
295
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
declare const CancelListingV1ParamsSchema: z.ZodObject<{
|
|
298
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
299
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
300
|
+
canceller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
declare const ListTicketV2ParamsSchema: z.ZodObject<{
|
|
303
|
+
seller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
304
|
+
storage_fee_payer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
305
|
+
listing_integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
306
|
+
listing_integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
307
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
308
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
309
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
310
|
+
ask_price_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
311
|
+
buyer_allow: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
312
|
+
payout_ata: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
313
|
+
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
314
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
declare const AcceptOfferV2InstructionBatchSchema: z.ZodObject<{
|
|
317
|
+
instruction: z.ZodLiteral<"accept_offer_v2">;
|
|
318
|
+
params: z.ZodArray<z.ZodObject<{
|
|
319
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
320
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
321
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
322
|
+
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
323
|
+
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
324
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
325
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
326
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
327
|
+
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
328
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
329
|
+
}, z.core.$strip>>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
declare const CancelListingV1InstructionBatchSchema: z.ZodObject<{
|
|
332
|
+
instruction: z.ZodLiteral<"cancel_listing_v1">;
|
|
333
|
+
params: z.ZodArray<z.ZodObject<{
|
|
334
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
335
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
336
|
+
canceller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
declare const ListTicketV2InstructionBatchSchema: z.ZodObject<{
|
|
340
|
+
instruction: z.ZodLiteral<"list_ticket_v2">;
|
|
341
|
+
params: z.ZodArray<z.ZodObject<{
|
|
342
|
+
seller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
343
|
+
storage_fee_payer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
344
|
+
listing_integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
345
|
+
listing_integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
346
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
347
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
348
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
349
|
+
ask_price_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
350
|
+
buyer_allow: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
351
|
+
payout_ata: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
352
|
+
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
353
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
/** The wallet custody API accepts batches of one supported TIX instruction kind. */
|
|
357
|
+
declare const TixWireInstructionBatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
instruction: z.ZodLiteral<"accept_offer_v2">;
|
|
359
|
+
params: z.ZodArray<z.ZodObject<{
|
|
360
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
361
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
362
|
+
permit_version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
363
|
+
buyer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
364
|
+
integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
365
|
+
seller_payout: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
366
|
+
royalty_destinations: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>;
|
|
367
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
368
|
+
integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
369
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
372
|
+
instruction: z.ZodLiteral<"cancel_listing_v1">;
|
|
373
|
+
params: z.ZodArray<z.ZodObject<{
|
|
374
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
375
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
376
|
+
canceller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
377
|
+
}, z.core.$strip>>;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
instruction: z.ZodLiteral<"list_ticket_v2">;
|
|
380
|
+
params: z.ZodArray<z.ZodObject<{
|
|
381
|
+
seller: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
382
|
+
storage_fee_payer: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
383
|
+
listing_integrator_identity: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
384
|
+
listing_integrator_authority: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
385
|
+
usdc_mint: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
386
|
+
event_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
387
|
+
ticket_id: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
388
|
+
ask_price_minor: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
389
|
+
buyer_allow: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
390
|
+
payout_ata: z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>;
|
|
391
|
+
expires_at: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>, z.ZodTransform<string, bigint>>;
|
|
392
|
+
ticket_type_config: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_solana_kit.Address<string>, string>>>>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
}, z.core.$strip>], "instruction">;
|
|
395
|
+
type TixWireInstructionBatch = z.infer<typeof TixWireInstructionBatchSchema>;
|
|
396
|
+
|
|
397
|
+
declare const Base64WireEncodedTransactionSchema: z.ZodPipe<z.ZodBase64, z.ZodTransform<Base64EncodedWireTransaction, string>>;
|
|
398
|
+
|
|
399
|
+
export { AcceptClaimOffersRequestBodySchema, type AcceptClaimOffersResponse, AcceptClaimOffersResponseSchema, AcceptClaimOffersSchema, AcceptOfferV2InstructionBatchSchema, AcceptOfferV2ParamsSchema, AdditionalSignaturesSchema, Base58Address, Base64WireEncodedTransactionSchema, Blockhash, CancelListingV1InstructionBatchSchema, CancelListingV1ParamsSchema, EventPathParametersSchema, EventV1ResponseSchema, GetAddressResponseSchema, IntegratorAccountResponseSchema, IntegratorPathParametersSchema, LimitCursorQuerySchema, ListTicketV2InstructionBatchSchema, ListTicketV2ParamsSchema, ListingV1ResponseSchema, PermitV1ResponseSchema, PostIntegratorMetadataRequestBodySchema, type PostTixIndexerIntegratorMetadataResult, PostTixIndexerIntegratorMetadataResultSchema, ProtocolConfigV1ResponseSchema, SignTenantTransactionRequestBodySchema, SignTransactionResponseSchema, Signature, SubmitTenantTransactionRequestBodySchema, SubmitTenantTransactionResponseSchema, TicketPathParametersSchema, type TixIndexerActiveListingsResult, TixIndexerActiveListingsResultSchema, type TixIndexerUpcomingEventsResult, TixIndexerUpcomingEventsResultSchema, type TixWireInstructionBatch, TixWireInstructionBatchSchema, type UserWalletPathParameters, WalletPathParametersSchema, WireI64, WireU16, WireU32, WireU64 };
|
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AcceptClaimOffersRequestBodySchema,
|
|
3
|
+
AcceptClaimOffersResponseSchema,
|
|
4
|
+
AcceptClaimOffersSchema,
|
|
5
|
+
AcceptOfferV2InstructionBatchSchema,
|
|
6
|
+
AcceptOfferV2ParamsSchema,
|
|
7
|
+
AdditionalSignaturesSchema,
|
|
8
|
+
Base58Address,
|
|
9
|
+
Base64WireEncodedTransactionSchema,
|
|
10
|
+
Blockhash,
|
|
11
|
+
CancelListingV1InstructionBatchSchema,
|
|
12
|
+
CancelListingV1ParamsSchema,
|
|
13
|
+
EventPathParametersSchema,
|
|
14
|
+
EventV1ResponseSchema,
|
|
15
|
+
GetAddressResponseSchema,
|
|
16
|
+
IntegratorAccountResponseSchema,
|
|
17
|
+
IntegratorPathParametersSchema,
|
|
18
|
+
LimitCursorQuerySchema,
|
|
19
|
+
ListTicketV2InstructionBatchSchema,
|
|
20
|
+
ListTicketV2ParamsSchema,
|
|
21
|
+
ListingV1ResponseSchema,
|
|
22
|
+
NullableTransactionSubmissionStatusSchema,
|
|
23
|
+
PermitV1ResponseSchema,
|
|
24
|
+
PostIntegratorMetadataRequestBodySchema,
|
|
25
|
+
PostTixIndexerIntegratorMetadataResultSchema,
|
|
26
|
+
ProtocolConfigV1ResponseSchema,
|
|
27
|
+
SignTenantTransactionRequestBodySchema,
|
|
28
|
+
SignTransactionResponseSchema,
|
|
29
|
+
Signature,
|
|
30
|
+
SubmitTenantTransactionRequestBodySchema,
|
|
31
|
+
SubmitTenantTransactionResponseSchema,
|
|
32
|
+
TicketPathParametersSchema,
|
|
33
|
+
TixIndexerActiveListingsResultSchema,
|
|
34
|
+
TixIndexerUpcomingEventsResultSchema,
|
|
35
|
+
TixWireInstructionBatchSchema,
|
|
36
|
+
TransactionSubmissionStatusSchema,
|
|
37
|
+
WalletPathParametersSchema,
|
|
38
|
+
WireI64,
|
|
39
|
+
WireU16,
|
|
40
|
+
WireU32,
|
|
41
|
+
WireU64
|
|
42
|
+
} from "./chunk-3SJAQTJ4.js";
|
|
43
|
+
|
|
44
|
+
// ../tdp-schemas/src/primitives/api-environment.ts
|
|
45
|
+
import { z } from "zod";
|
|
46
|
+
var ApiEnvironmentSchema = z.enum(["sandbox", "live"]);
|
|
47
|
+
export {
|
|
48
|
+
AcceptClaimOffersRequestBodySchema,
|
|
49
|
+
AcceptClaimOffersResponseSchema,
|
|
50
|
+
AcceptClaimOffersSchema,
|
|
51
|
+
AcceptOfferV2InstructionBatchSchema,
|
|
52
|
+
AcceptOfferV2ParamsSchema,
|
|
53
|
+
AdditionalSignaturesSchema,
|
|
54
|
+
ApiEnvironmentSchema,
|
|
55
|
+
Base58Address,
|
|
56
|
+
Base64WireEncodedTransactionSchema,
|
|
57
|
+
Blockhash,
|
|
58
|
+
CancelListingV1InstructionBatchSchema,
|
|
59
|
+
CancelListingV1ParamsSchema,
|
|
60
|
+
EventPathParametersSchema,
|
|
61
|
+
EventV1ResponseSchema,
|
|
62
|
+
GetAddressResponseSchema,
|
|
63
|
+
IntegratorAccountResponseSchema,
|
|
64
|
+
IntegratorPathParametersSchema,
|
|
65
|
+
LimitCursorQuerySchema,
|
|
66
|
+
ListTicketV2InstructionBatchSchema,
|
|
67
|
+
ListTicketV2ParamsSchema,
|
|
68
|
+
ListingV1ResponseSchema,
|
|
69
|
+
NullableTransactionSubmissionStatusSchema,
|
|
70
|
+
PermitV1ResponseSchema,
|
|
71
|
+
PostIntegratorMetadataRequestBodySchema,
|
|
72
|
+
PostTixIndexerIntegratorMetadataResultSchema,
|
|
73
|
+
ProtocolConfigV1ResponseSchema,
|
|
74
|
+
SignTenantTransactionRequestBodySchema,
|
|
75
|
+
SignTransactionResponseSchema,
|
|
76
|
+
Signature,
|
|
77
|
+
SubmitTenantTransactionRequestBodySchema,
|
|
78
|
+
SubmitTenantTransactionResponseSchema,
|
|
79
|
+
TicketPathParametersSchema,
|
|
80
|
+
TixIndexerActiveListingsResultSchema,
|
|
81
|
+
TixIndexerUpcomingEventsResultSchema,
|
|
82
|
+
TixWireInstructionBatchSchema,
|
|
83
|
+
TransactionSubmissionStatusSchema,
|
|
84
|
+
WalletPathParametersSchema,
|
|
85
|
+
WireI64,
|
|
86
|
+
WireU16,
|
|
87
|
+
WireU32,
|
|
88
|
+
WireU64
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../tdp-schemas/src/primitives/api-environment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const ApiEnvironmentSchema = z.enum([\"sandbox\", \"live\"]);\nexport type ApiEnvironment = z.infer<typeof ApiEnvironmentSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAEX,IAAM,uBAAuB,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC;","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
type Brand<T, TBrandName extends string> = NominalType<"brand", TBrandName> & T;
|
|
4
|
+
type NominalType<TKey extends string, TMarker extends string> = {
|
|
5
|
+
readonly [K in `__${TKey}:@tixprotocol/tdp-sdk`]: TMarker;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type Sha256Hex = Brand<string, "Sha256Hex">;
|
|
9
|
+
|
|
10
|
+
declare const ApiEnvironmentSchema: z.ZodEnum<{
|
|
11
|
+
sandbox: "sandbox";
|
|
12
|
+
live: "live";
|
|
13
|
+
}>;
|
|
14
|
+
type ApiEnvironment = z.infer<typeof ApiEnvironmentSchema>;
|
|
15
|
+
|
|
16
|
+
declare const TransactionSubmissionStatusSchema: z.ZodEnum<{
|
|
17
|
+
processing: "processing";
|
|
18
|
+
confirmed: "confirmed";
|
|
19
|
+
landed_with_error: "landed_with_error";
|
|
20
|
+
expired: "expired";
|
|
21
|
+
}>;
|
|
22
|
+
type TransactionSubmissionStatus = z.infer<typeof TransactionSubmissionStatusSchema>;
|
|
23
|
+
/** A null status means no submission has been recorded. */
|
|
24
|
+
declare const NullableTransactionSubmissionStatusSchema: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
processing: "processing";
|
|
26
|
+
confirmed: "confirmed";
|
|
27
|
+
landed_with_error: "landed_with_error";
|
|
28
|
+
expired: "expired";
|
|
29
|
+
}>>;
|
|
30
|
+
type NullableTransactionSubmissionStatus = z.infer<typeof NullableTransactionSubmissionStatusSchema>;
|
|
31
|
+
|
|
32
|
+
export { type ApiEnvironment as A, type NullableTransactionSubmissionStatus as N, type Sha256Hex as S, type TransactionSubmissionStatus as T, ApiEnvironmentSchema as a, NullableTransactionSubmissionStatusSchema as b, TransactionSubmissionStatusSchema as c };
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tixprotocol/tdp-sdk",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=22.12.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"description": "TDP SDK",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./schemas": {
|
|
17
|
+
"types": "./dist/schemas.d.ts",
|
|
18
|
+
"default": "./dist/schemas.js"
|
|
19
|
+
},
|
|
20
|
+
"./errors": {
|
|
21
|
+
"types": "./dist/errors.d.ts",
|
|
22
|
+
"default": "./dist/errors.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/*.js",
|
|
27
|
+
"dist/*.js.map",
|
|
28
|
+
"dist/*.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@solana/kit": "^6.7.0",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts"
|
|
39
|
+
}
|