@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.14
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/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +12 -6
- package/core.js.map +1 -1
- package/core.mjs +12 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -9
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +29 -8
- package/resources/assets/assets.d.ts +153 -0
- package/resources/assets/assets.d.ts.map +1 -0
- package/resources/assets/assets.js +69 -0
- package/resources/assets/assets.js.map +1 -0
- package/resources/assets/assets.mjs +42 -0
- package/resources/assets/assets.mjs.map +1 -0
- package/resources/assets/index.d.ts +7 -0
- package/resources/assets/index.d.ts.map +1 -0
- package/resources/assets/index.js +17 -0
- package/resources/assets/index.js.map +1 -0
- package/resources/assets/index.mjs +8 -0
- package/resources/assets/index.mjs.map +1 -0
- package/resources/assets/minting.d.ts +95 -0
- package/resources/assets/minting.d.ts.map +1 -0
- package/resources/assets/minting.js +15 -0
- package/resources/assets/minting.js.map +1 -0
- package/resources/assets/minting.mjs +11 -0
- package/resources/assets/minting.mjs.map +1 -0
- package/resources/assets/referral/index.d.ts +3 -0
- package/resources/assets/referral/index.d.ts.map +1 -0
- package/resources/assets/referral/index.js +9 -0
- package/resources/assets/referral/index.js.map +1 -0
- package/resources/assets/referral/index.mjs +4 -0
- package/resources/assets/referral/index.mjs.map +1 -0
- package/resources/assets/referral/referral.d.ts +30 -0
- package/resources/assets/referral/referral.d.ts.map +1 -0
- package/resources/assets/referral/referral.js +46 -0
- package/resources/assets/referral/referral.js.map +1 -0
- package/resources/assets/referral/referral.mjs +19 -0
- package/resources/assets/referral/referral.mjs.map +1 -0
- package/resources/assets/referral/users.d.ts +57 -0
- package/resources/assets/referral/users.d.ts.map +1 -0
- package/resources/assets/referral/users.js +21 -0
- package/resources/assets/referral/users.js.map +1 -0
- package/resources/assets/referral/users.mjs +17 -0
- package/resources/assets/referral/users.mjs.map +1 -0
- package/resources/assets/users.d.ts +285 -0
- package/resources/assets/users.d.ts.map +1 -0
- package/resources/assets/users.js +34 -0
- package/resources/assets/users.js.map +1 -0
- package/resources/assets/users.mjs +30 -0
- package/resources/assets/users.mjs.map +1 -0
- package/resources/assets/website-collections.d.ts +73 -0
- package/resources/assets/website-collections.d.ts.map +1 -0
- package/resources/assets/website-collections.js +25 -0
- package/resources/assets/website-collections.js.map +1 -0
- package/resources/assets/website-collections.mjs +21 -0
- package/resources/assets/website-collections.mjs.map +1 -0
- package/resources/assets/website-user-roles.d.ts +73 -0
- package/resources/assets/website-user-roles.d.ts.map +1 -0
- package/resources/assets/website-user-roles.js +22 -0
- package/resources/assets/website-user-roles.js.map +1 -0
- package/resources/assets/website-user-roles.mjs +18 -0
- package/resources/assets/website-user-roles.mjs.map +1 -0
- package/resources/auction-bids.d.ts +2 -32
- package/resources/auction-bids.d.ts.map +1 -1
- package/resources/auction-bids.js +0 -10
- package/resources/auction-bids.js.map +1 -1
- package/resources/auction-bids.mjs +0 -10
- package/resources/auction-bids.mjs.map +1 -1
- package/resources/drip/drip.d.ts +4 -4
- package/resources/drip/drip.d.ts.map +1 -1
- package/resources/drip/drip.js.map +1 -1
- package/resources/drip/drip.mjs.map +1 -1
- package/resources/drip/index.d.ts +2 -2
- package/resources/drip/index.d.ts.map +1 -1
- package/resources/drip/index.js.map +1 -1
- package/resources/drip/index.mjs.map +1 -1
- package/resources/drip/quests.d.ts +0 -164
- package/resources/drip/quests.d.ts.map +1 -1
- package/resources/drip/quests.js +0 -8
- package/resources/drip/quests.js.map +1 -1
- package/resources/drip/quests.mjs +0 -8
- package/resources/drip/quests.mjs.map +1 -1
- package/resources/drip/status.d.ts +0 -22
- package/resources/drip/status.d.ts.map +1 -1
- package/resources/drip/status.js +0 -7
- package/resources/drip/status.js.map +1 -1
- package/resources/drip/status.mjs +0 -7
- package/resources/drip/status.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +0 -153
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +0 -7
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +0 -7
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +639 -72
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +1 -7
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +2 -2
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +7 -7
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +2 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +2 -2
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +29 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +3 -3
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +3 -3
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +1 -1
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +132 -71
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +191 -0
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.js +24 -0
- package/resources/loyalty/transaction-entries/accounts.js.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.mjs +20 -0
- package/resources/loyalty/transaction-entries/accounts.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/index.d.ts +5 -0
- package/resources/loyalty/transaction-entries/index.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/index.js +13 -0
- package/resources/loyalty/transaction-entries/index.js.map +1 -0
- package/resources/loyalty/transaction-entries/index.mjs +6 -0
- package/resources/loyalty/transaction-entries/index.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts +97 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.js +22 -0
- package/resources/loyalty/transaction-entries/questions-responses.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs +18 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions.d.ts +150 -0
- package/resources/loyalty/transaction-entries/questions.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions.js +27 -0
- package/resources/loyalty/transaction-entries/questions.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions.mjs +23 -0
- package/resources/loyalty/transaction-entries/questions.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +300 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js +66 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +39 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +79 -11
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +2 -2
- package/resources/users/users.mjs.map +1 -1
- package/resources/users/wallets.d.ts +0 -189
- package/resources/users/wallets.d.ts.map +1 -1
- package/resources/users/wallets.js +0 -19
- package/resources/users/wallets.js.map +1 -1
- package/resources/users/wallets.mjs +0 -19
- package/resources/users/wallets.mjs.map +1 -1
- package/src/core.ts +14 -6
- package/src/index.ts +14 -12
- package/src/resources/assets/assets.ts +294 -0
- package/src/resources/assets/index.ts +38 -0
- package/src/resources/assets/minting.ts +153 -0
- package/src/resources/assets/referral/index.ts +14 -0
- package/src/resources/assets/referral/referral.ts +74 -0
- package/src/resources/assets/referral/users.ts +99 -0
- package/src/resources/assets/users.ts +415 -0
- package/src/resources/assets/website-collections.ts +147 -0
- package/src/resources/assets/website-user-roles.ts +107 -0
- package/src/resources/auction-bids.ts +2 -48
- package/src/resources/drip/drip.ts +4 -8
- package/src/resources/drip/index.ts +2 -2
- package/src/resources/drip/quests.ts +1 -206
- package/src/resources/drip/status.ts +1 -29
- package/src/resources/index.ts +7 -2
- package/src/resources/loyalty/accounts.ts +1 -195
- package/src/resources/loyalty/badges.ts +779 -77
- package/src/resources/loyalty/currencies.ts +1 -7
- package/src/resources/loyalty/index.ts +7 -2
- package/src/resources/loyalty/loyalty.ts +14 -8
- package/src/resources/loyalty/multipliers.ts +49 -4
- package/src/resources/loyalty/rule-edits.ts +2 -2
- package/src/resources/loyalty/rules.ts +247 -159
- package/src/resources/loyalty/transaction-entries/accounts.ts +251 -0
- package/src/resources/loyalty/transaction-entries/index.ts +34 -0
- package/src/resources/loyalty/transaction-entries/questions-responses.ts +146 -0
- package/src/resources/loyalty/transaction-entries/questions.ts +208 -0
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +525 -0
- package/src/resources/users/index.ts +8 -9
- package/src/resources/users/metadatas.ts +109 -10
- package/src/resources/users/users.ts +11 -17
- package/src/resources/users/wallets.ts +1 -267
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/loyalty/transaction-entries.ts +0 -229
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as MintingAPI from './minting';
|
|
6
|
+
import { Minting, MintingGetMintingAssetsParams, MintingGetMintingAssetsResponse } from './minting';
|
|
7
|
+
import * as UsersAPI from './users';
|
|
8
|
+
import {
|
|
9
|
+
UserConnectUserParams,
|
|
10
|
+
UserConnectUserResponse,
|
|
11
|
+
UserDisconnectUserParams,
|
|
12
|
+
UserDisconnectUserResponse,
|
|
13
|
+
UserGetUserCountParams,
|
|
14
|
+
UserGetUserCountResponse,
|
|
15
|
+
UserGetUsersParams,
|
|
16
|
+
UserGetUsersResponse,
|
|
17
|
+
Users,
|
|
18
|
+
} from './users';
|
|
19
|
+
import * as WebsiteCollectionsAPI from './website-collections';
|
|
20
|
+
import {
|
|
21
|
+
WebsiteCollectionCreateWebsiteCollectionParams,
|
|
22
|
+
WebsiteCollectionGetWebsiteCollectionsParams,
|
|
23
|
+
WebsiteCollectionGetWebsiteCollectionsResponse,
|
|
24
|
+
WebsiteCollections,
|
|
25
|
+
} from './website-collections';
|
|
26
|
+
import * as WebsiteUserRolesAPI from './website-user-roles';
|
|
27
|
+
import {
|
|
28
|
+
WebsiteUserRoleAssignRolesToUsersParams,
|
|
29
|
+
WebsiteUserRoleAssignRolesToUsersResponse,
|
|
30
|
+
WebsiteUserRoleGetWebsiteUserRolesParams,
|
|
31
|
+
WebsiteUserRoleGetWebsiteUserRolesResponse,
|
|
32
|
+
WebsiteUserRoles,
|
|
33
|
+
} from './website-user-roles';
|
|
34
|
+
import * as ReferralAPI from './referral/referral';
|
|
35
|
+
import {
|
|
36
|
+
Referral,
|
|
37
|
+
ReferralCreateReferralCodeParams,
|
|
38
|
+
ReferralCreateReferralCodeResponse,
|
|
39
|
+
} from './referral/referral';
|
|
40
|
+
|
|
41
|
+
export class Assets extends APIResource {
|
|
42
|
+
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
43
|
+
minting: MintingAPI.Minting = new MintingAPI.Minting(this._client);
|
|
44
|
+
referral: ReferralAPI.Referral = new ReferralAPI.Referral(this._client);
|
|
45
|
+
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(
|
|
46
|
+
this._client,
|
|
47
|
+
);
|
|
48
|
+
websiteUserRoles: WebsiteUserRolesAPI.WebsiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(
|
|
49
|
+
this._client,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
54
|
+
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
55
|
+
* asset using the presigned URL.
|
|
56
|
+
*/
|
|
57
|
+
create(body: AssetCreateParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateResponse> {
|
|
58
|
+
return this._client.post('/api/assets', { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
63
|
+
*/
|
|
64
|
+
getAuctions(options?: Core.RequestOptions): Core.APIPromise<AssetGetAuctionsResponse> {
|
|
65
|
+
return this._client.get('/api/auctions', options);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Response returned upon successful generation of the signed URL for uploading the
|
|
71
|
+
* file.
|
|
72
|
+
*/
|
|
73
|
+
export interface AssetCreateResponse {
|
|
74
|
+
/**
|
|
75
|
+
* The pre-signed URL to be used for uploading the file.
|
|
76
|
+
*/
|
|
77
|
+
signedUrl: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The URL of the uploaded file.
|
|
81
|
+
*/
|
|
82
|
+
url: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Schema for the response when fetching auctions
|
|
87
|
+
*/
|
|
88
|
+
export interface AssetGetAuctionsResponse {
|
|
89
|
+
data: Array<AssetGetAuctionsResponse.Data>;
|
|
90
|
+
|
|
91
|
+
hasNextPage: boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace AssetGetAuctionsResponse {
|
|
95
|
+
export interface Data {
|
|
96
|
+
id: string;
|
|
97
|
+
|
|
98
|
+
auctionBids: Array<Data.AuctionBid>;
|
|
99
|
+
|
|
100
|
+
auctionItems: Array<Data.AuctionItem>;
|
|
101
|
+
|
|
102
|
+
biddersOwnCollectionAddresses: Array<string>;
|
|
103
|
+
|
|
104
|
+
createdAt: string;
|
|
105
|
+
|
|
106
|
+
currencyAddress: string | null;
|
|
107
|
+
|
|
108
|
+
currencyDecimals: number;
|
|
109
|
+
|
|
110
|
+
deletedAt: string | null;
|
|
111
|
+
|
|
112
|
+
description: string;
|
|
113
|
+
|
|
114
|
+
endsAt: string;
|
|
115
|
+
|
|
116
|
+
extendedDurationInSeconds: number | null;
|
|
117
|
+
|
|
118
|
+
hideBids: boolean;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Schema representing a loyalty currency
|
|
122
|
+
*/
|
|
123
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
124
|
+
|
|
125
|
+
loyaltyCurrencyId: string | null;
|
|
126
|
+
|
|
127
|
+
minBidAmount: string;
|
|
128
|
+
|
|
129
|
+
minBidIncrement: string | null;
|
|
130
|
+
|
|
131
|
+
mintingContractId: string;
|
|
132
|
+
|
|
133
|
+
name: string;
|
|
134
|
+
|
|
135
|
+
network: 'ethereum' | 'zksync';
|
|
136
|
+
|
|
137
|
+
organizationId: string;
|
|
138
|
+
|
|
139
|
+
reservePrice: string | null;
|
|
140
|
+
|
|
141
|
+
signature: string;
|
|
142
|
+
|
|
143
|
+
startsAt: string;
|
|
144
|
+
|
|
145
|
+
status: 'in_progress' | 'completed' | 'cancelled';
|
|
146
|
+
|
|
147
|
+
type: 'first_price' | 'second_price' | 'english';
|
|
148
|
+
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
|
|
151
|
+
userId: string;
|
|
152
|
+
|
|
153
|
+
websiteId: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export namespace Data {
|
|
157
|
+
/**
|
|
158
|
+
* Schema representing an auction bid
|
|
159
|
+
*/
|
|
160
|
+
export interface AuctionBid {
|
|
161
|
+
id: string;
|
|
162
|
+
|
|
163
|
+
amount: string;
|
|
164
|
+
|
|
165
|
+
createdAt: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface AuctionItem {
|
|
169
|
+
id: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Schema representing a minting contract asset
|
|
173
|
+
*/
|
|
174
|
+
mintingContractAsset: AuctionItem.MintingContractAsset;
|
|
175
|
+
|
|
176
|
+
quantity: number;
|
|
177
|
+
|
|
178
|
+
sortId: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export namespace AuctionItem {
|
|
182
|
+
/**
|
|
183
|
+
* Schema representing a minting contract asset
|
|
184
|
+
*/
|
|
185
|
+
export interface MintingContractAsset {
|
|
186
|
+
id: string;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Schema representing a loyalty currency
|
|
192
|
+
*/
|
|
193
|
+
export interface LoyaltyCurrency {
|
|
194
|
+
id: string;
|
|
195
|
+
|
|
196
|
+
decimals: number;
|
|
197
|
+
|
|
198
|
+
imageUrl: string | null;
|
|
199
|
+
|
|
200
|
+
name: string;
|
|
201
|
+
|
|
202
|
+
symbol: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface AssetCreateParams {
|
|
208
|
+
/**
|
|
209
|
+
* The name of the file, must match the regex pattern (converted to lowercase)
|
|
210
|
+
*/
|
|
211
|
+
fileName: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The file path, must be a valid enum value.
|
|
215
|
+
*/
|
|
216
|
+
filePath?:
|
|
217
|
+
| 'announcements'
|
|
218
|
+
| 'images'
|
|
219
|
+
| 'videos'
|
|
220
|
+
| 'banners'
|
|
221
|
+
| 'fonts'
|
|
222
|
+
| 'posts'
|
|
223
|
+
| 'profiles'
|
|
224
|
+
| 'minting'
|
|
225
|
+
| 'loyalty';
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* UUID of the organization (optional, converted to lowercase)
|
|
229
|
+
*/
|
|
230
|
+
organizationId?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* UUID of the user (optional, converted to lowercase)
|
|
234
|
+
*/
|
|
235
|
+
userId?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* UUID of the website (optional, converted to lowercase)
|
|
239
|
+
*/
|
|
240
|
+
websiteId?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
Assets.Users = Users;
|
|
244
|
+
Assets.Minting = Minting;
|
|
245
|
+
Assets.Referral = Referral;
|
|
246
|
+
Assets.WebsiteCollections = WebsiteCollections;
|
|
247
|
+
Assets.WebsiteUserRoles = WebsiteUserRoles;
|
|
248
|
+
|
|
249
|
+
export declare namespace Assets {
|
|
250
|
+
export {
|
|
251
|
+
type AssetCreateResponse as AssetCreateResponse,
|
|
252
|
+
type AssetGetAuctionsResponse as AssetGetAuctionsResponse,
|
|
253
|
+
type AssetCreateParams as AssetCreateParams,
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export {
|
|
257
|
+
Users as Users,
|
|
258
|
+
type UserConnectUserResponse as UserConnectUserResponse,
|
|
259
|
+
type UserDisconnectUserResponse as UserDisconnectUserResponse,
|
|
260
|
+
type UserGetUserCountResponse as UserGetUserCountResponse,
|
|
261
|
+
type UserGetUsersResponse as UserGetUsersResponse,
|
|
262
|
+
type UserConnectUserParams as UserConnectUserParams,
|
|
263
|
+
type UserDisconnectUserParams as UserDisconnectUserParams,
|
|
264
|
+
type UserGetUserCountParams as UserGetUserCountParams,
|
|
265
|
+
type UserGetUsersParams as UserGetUsersParams,
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export {
|
|
269
|
+
Minting as Minting,
|
|
270
|
+
type MintingGetMintingAssetsResponse as MintingGetMintingAssetsResponse,
|
|
271
|
+
type MintingGetMintingAssetsParams as MintingGetMintingAssetsParams,
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export {
|
|
275
|
+
Referral as Referral,
|
|
276
|
+
type ReferralCreateReferralCodeResponse as ReferralCreateReferralCodeResponse,
|
|
277
|
+
type ReferralCreateReferralCodeParams as ReferralCreateReferralCodeParams,
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export {
|
|
281
|
+
WebsiteCollections as WebsiteCollections,
|
|
282
|
+
type WebsiteCollectionGetWebsiteCollectionsResponse as WebsiteCollectionGetWebsiteCollectionsResponse,
|
|
283
|
+
type WebsiteCollectionCreateWebsiteCollectionParams as WebsiteCollectionCreateWebsiteCollectionParams,
|
|
284
|
+
type WebsiteCollectionGetWebsiteCollectionsParams as WebsiteCollectionGetWebsiteCollectionsParams,
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export {
|
|
288
|
+
WebsiteUserRoles as WebsiteUserRoles,
|
|
289
|
+
type WebsiteUserRoleAssignRolesToUsersResponse as WebsiteUserRoleAssignRolesToUsersResponse,
|
|
290
|
+
type WebsiteUserRoleGetWebsiteUserRolesResponse as WebsiteUserRoleGetWebsiteUserRolesResponse,
|
|
291
|
+
type WebsiteUserRoleAssignRolesToUsersParams as WebsiteUserRoleAssignRolesToUsersParams,
|
|
292
|
+
type WebsiteUserRoleGetWebsiteUserRolesParams as WebsiteUserRoleGetWebsiteUserRolesParams,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Assets,
|
|
5
|
+
type AssetCreateResponse,
|
|
6
|
+
type AssetGetAuctionsResponse,
|
|
7
|
+
type AssetCreateParams,
|
|
8
|
+
} from './assets';
|
|
9
|
+
export { Minting, type MintingGetMintingAssetsResponse, type MintingGetMintingAssetsParams } from './minting';
|
|
10
|
+
export {
|
|
11
|
+
Referral,
|
|
12
|
+
type ReferralCreateReferralCodeResponse,
|
|
13
|
+
type ReferralCreateReferralCodeParams,
|
|
14
|
+
} from './referral/index';
|
|
15
|
+
export {
|
|
16
|
+
Users,
|
|
17
|
+
type UserConnectUserResponse,
|
|
18
|
+
type UserDisconnectUserResponse,
|
|
19
|
+
type UserGetUserCountResponse,
|
|
20
|
+
type UserGetUsersResponse,
|
|
21
|
+
type UserConnectUserParams,
|
|
22
|
+
type UserDisconnectUserParams,
|
|
23
|
+
type UserGetUserCountParams,
|
|
24
|
+
type UserGetUsersParams,
|
|
25
|
+
} from './users';
|
|
26
|
+
export {
|
|
27
|
+
WebsiteCollections,
|
|
28
|
+
type WebsiteCollectionGetWebsiteCollectionsResponse,
|
|
29
|
+
type WebsiteCollectionCreateWebsiteCollectionParams,
|
|
30
|
+
type WebsiteCollectionGetWebsiteCollectionsParams,
|
|
31
|
+
} from './website-collections';
|
|
32
|
+
export {
|
|
33
|
+
WebsiteUserRoles,
|
|
34
|
+
type WebsiteUserRoleAssignRolesToUsersResponse,
|
|
35
|
+
type WebsiteUserRoleGetWebsiteUserRolesResponse,
|
|
36
|
+
type WebsiteUserRoleAssignRolesToUsersParams,
|
|
37
|
+
type WebsiteUserRoleGetWebsiteUserRolesParams,
|
|
38
|
+
} from './website-user-roles';
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Minting extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns minting assets and any relevant context
|
|
9
|
+
*/
|
|
10
|
+
getMintingAssets(
|
|
11
|
+
query: MintingGetMintingAssetsParams,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<MintingGetMintingAssetsResponse> {
|
|
14
|
+
return this._client.get('/api/minting/assets', { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Schema for getting minting assets response
|
|
20
|
+
*/
|
|
21
|
+
export interface MintingGetMintingAssetsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Array of minting assets
|
|
24
|
+
*/
|
|
25
|
+
data: Array<MintingGetMintingAssetsResponse.Data>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Indicates if more pages are available
|
|
29
|
+
*/
|
|
30
|
+
hasNextPage: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace MintingGetMintingAssetsResponse {
|
|
34
|
+
export interface Data {
|
|
35
|
+
/**
|
|
36
|
+
* UUID of the minting asset
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface MintingGetMintingAssetsParams {
|
|
43
|
+
/**
|
|
44
|
+
* Organization ID
|
|
45
|
+
*/
|
|
46
|
+
organizationId: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Website ID
|
|
50
|
+
*/
|
|
51
|
+
websiteId: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Contract Address
|
|
55
|
+
*/
|
|
56
|
+
contractAddress?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Currency Type
|
|
60
|
+
*/
|
|
61
|
+
currencyType?: 'loyalty' | 'native' | null;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Whether to include deleted assets in the response
|
|
65
|
+
*/
|
|
66
|
+
includeDeleted?: boolean | null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether to include metadata in the response
|
|
70
|
+
*/
|
|
71
|
+
includeMetadata?: boolean | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Whether to include listed assets in the response
|
|
75
|
+
*/
|
|
76
|
+
isListed?: boolean | null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Minting Contract Asset ID
|
|
80
|
+
*/
|
|
81
|
+
mintingContractAssetId?: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Minting Contract IDs
|
|
85
|
+
*/
|
|
86
|
+
mintingContractIds?: string | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Network
|
|
90
|
+
*/
|
|
91
|
+
network?:
|
|
92
|
+
| 'mainnet'
|
|
93
|
+
| 'polygon'
|
|
94
|
+
| 'polygon_mumbai'
|
|
95
|
+
| 'optimism'
|
|
96
|
+
| 'arbitrum'
|
|
97
|
+
| 'binance'
|
|
98
|
+
| 'bscTestnet'
|
|
99
|
+
| 'avalanche'
|
|
100
|
+
| 'avalancheFuji'
|
|
101
|
+
| 'zksync'
|
|
102
|
+
| 'fantom'
|
|
103
|
+
| 'fantomTestnet'
|
|
104
|
+
| 'base'
|
|
105
|
+
| 'baseSepolia'
|
|
106
|
+
| 'skaleNebula'
|
|
107
|
+
| 'xai'
|
|
108
|
+
| 'berachainArtio'
|
|
109
|
+
| 'solana'
|
|
110
|
+
| 'apechain'
|
|
111
|
+
| 'flowMainnet'
|
|
112
|
+
| 'campTestnet'
|
|
113
|
+
| 'sui'
|
|
114
|
+
| 'vanar'
|
|
115
|
+
| 'sepolia'
|
|
116
|
+
| 'optimism_sepolia'
|
|
117
|
+
| 'arbitrumSepolia'
|
|
118
|
+
| 'goerli'
|
|
119
|
+
| 'optimism_goerli'
|
|
120
|
+
| 'arbitrumGoerli';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sort Dir
|
|
124
|
+
*/
|
|
125
|
+
sortDir?: 'asc' | 'desc' | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Sort Key
|
|
129
|
+
*/
|
|
130
|
+
sortKey?: 'price' | 'startsAt' | 'assetNr' | null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Status
|
|
134
|
+
*/
|
|
135
|
+
status?: 'active' | 'past' | null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Token ID
|
|
139
|
+
*/
|
|
140
|
+
tokenId?: string | Array<number> | null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Wallet Address
|
|
144
|
+
*/
|
|
145
|
+
walletAddress?: string | Array<string>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare namespace Minting {
|
|
149
|
+
export {
|
|
150
|
+
type MintingGetMintingAssetsResponse as MintingGetMintingAssetsResponse,
|
|
151
|
+
type MintingGetMintingAssetsParams as MintingGetMintingAssetsParams,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Referral,
|
|
5
|
+
type ReferralCreateReferralCodeResponse,
|
|
6
|
+
type ReferralCreateReferralCodeParams,
|
|
7
|
+
} from './referral';
|
|
8
|
+
export {
|
|
9
|
+
Users,
|
|
10
|
+
type UserCreateReferralUserResponse,
|
|
11
|
+
type UserGetReferralsResponse,
|
|
12
|
+
type UserCreateReferralUserParams,
|
|
13
|
+
type UserGetReferralsParams,
|
|
14
|
+
} from './users';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../../core';
|
|
5
|
+
import * as Core from '../../../core';
|
|
6
|
+
import * as UsersAPI from './users';
|
|
7
|
+
import {
|
|
8
|
+
UserCreateReferralUserParams,
|
|
9
|
+
UserCreateReferralUserResponse,
|
|
10
|
+
UserGetReferralsParams,
|
|
11
|
+
UserGetReferralsResponse,
|
|
12
|
+
Users,
|
|
13
|
+
} from './users';
|
|
14
|
+
|
|
15
|
+
export class Referral extends APIResource {
|
|
16
|
+
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint allows you to create a referral code
|
|
20
|
+
*/
|
|
21
|
+
createReferralCode(
|
|
22
|
+
body?: ReferralCreateReferralCodeParams,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<ReferralCreateReferralCodeResponse>;
|
|
25
|
+
createReferralCode(options?: Core.RequestOptions): Core.APIPromise<ReferralCreateReferralCodeResponse>;
|
|
26
|
+
createReferralCode(
|
|
27
|
+
body: ReferralCreateReferralCodeParams | Core.RequestOptions = {},
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): Core.APIPromise<ReferralCreateReferralCodeResponse> {
|
|
30
|
+
if (isRequestOptions(body)) {
|
|
31
|
+
return this.createReferralCode({}, body);
|
|
32
|
+
}
|
|
33
|
+
return this._client.post('/api/referral/codes', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ReferralCreateReferralCodeResponse {
|
|
38
|
+
id: string;
|
|
39
|
+
|
|
40
|
+
createdAt: string;
|
|
41
|
+
|
|
42
|
+
deletedAt: string | null;
|
|
43
|
+
|
|
44
|
+
organizationId: string;
|
|
45
|
+
|
|
46
|
+
referralCode: string;
|
|
47
|
+
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
|
|
50
|
+
userId: string;
|
|
51
|
+
|
|
52
|
+
websiteId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ReferralCreateReferralCodeParams {
|
|
56
|
+
userId?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
Referral.Users = Users;
|
|
60
|
+
|
|
61
|
+
export declare namespace Referral {
|
|
62
|
+
export {
|
|
63
|
+
type ReferralCreateReferralCodeResponse as ReferralCreateReferralCodeResponse,
|
|
64
|
+
type ReferralCreateReferralCodeParams as ReferralCreateReferralCodeParams,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
Users as Users,
|
|
69
|
+
type UserCreateReferralUserResponse as UserCreateReferralUserResponse,
|
|
70
|
+
type UserGetReferralsResponse as UserGetReferralsResponse,
|
|
71
|
+
type UserCreateReferralUserParams as UserCreateReferralUserParams,
|
|
72
|
+
type UserGetReferralsParams as UserGetReferralsParams,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import * as Core from '../../../core';
|
|
5
|
+
|
|
6
|
+
export class Users extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint allows you to create a referral user
|
|
9
|
+
*/
|
|
10
|
+
createReferralUser(
|
|
11
|
+
body: UserCreateReferralUserParams,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<UserCreateReferralUserResponse> {
|
|
14
|
+
return this._client.post('/api/referral/users', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This endpoint allows you to get referrals
|
|
19
|
+
*/
|
|
20
|
+
getReferrals(
|
|
21
|
+
query: UserGetReferralsParams,
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.APIPromise<UserGetReferralsResponse> {
|
|
24
|
+
return this._client.get('/api/referral/users', { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface UserCreateReferralUserResponse {
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface UserGetReferralsResponse {
|
|
33
|
+
data: Array<UserGetReferralsResponse.Data>;
|
|
34
|
+
|
|
35
|
+
hasNextPage: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace UserGetReferralsResponse {
|
|
39
|
+
export interface Data {
|
|
40
|
+
id: string;
|
|
41
|
+
|
|
42
|
+
referralCode: Data.ReferralCode;
|
|
43
|
+
|
|
44
|
+
user: Data.User;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace Data {
|
|
48
|
+
export interface ReferralCode {
|
|
49
|
+
id: string;
|
|
50
|
+
|
|
51
|
+
createdAt: string;
|
|
52
|
+
|
|
53
|
+
deletedAt: string | null;
|
|
54
|
+
|
|
55
|
+
referralCode: string;
|
|
56
|
+
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
|
|
59
|
+
userId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface User {
|
|
63
|
+
id: string;
|
|
64
|
+
|
|
65
|
+
walletAddress: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface UserCreateReferralUserParams {
|
|
71
|
+
userIds: Array<string>;
|
|
72
|
+
|
|
73
|
+
referralCode?: string;
|
|
74
|
+
|
|
75
|
+
referralCodeId?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface UserGetReferralsParams {
|
|
79
|
+
walletAddress: string | Array<string>;
|
|
80
|
+
|
|
81
|
+
includeEligibility?: boolean | null;
|
|
82
|
+
|
|
83
|
+
limit?: number;
|
|
84
|
+
|
|
85
|
+
organizationId?: string;
|
|
86
|
+
|
|
87
|
+
startingAfter?: string;
|
|
88
|
+
|
|
89
|
+
websiteId?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare namespace Users {
|
|
93
|
+
export {
|
|
94
|
+
type UserCreateReferralUserResponse as UserCreateReferralUserResponse,
|
|
95
|
+
type UserGetReferralsResponse as UserGetReferralsResponse,
|
|
96
|
+
type UserCreateReferralUserParams as UserCreateReferralUserParams,
|
|
97
|
+
type UserGetReferralsParams as UserGetReferralsParams,
|
|
98
|
+
};
|
|
99
|
+
}
|