@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.
Files changed (241) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +1 -1
  3. package/core.d.ts.map +1 -1
  4. package/core.js +12 -6
  5. package/core.js.map +1 -1
  6. package/core.mjs +12 -6
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +9 -9
  9. package/index.d.ts +9 -9
  10. package/index.d.ts.map +1 -1
  11. package/index.js +1 -1
  12. package/index.js.map +1 -1
  13. package/index.mjs +1 -1
  14. package/index.mjs.map +1 -1
  15. package/package.json +29 -8
  16. package/resources/assets/assets.d.ts +153 -0
  17. package/resources/assets/assets.d.ts.map +1 -0
  18. package/resources/assets/assets.js +69 -0
  19. package/resources/assets/assets.js.map +1 -0
  20. package/resources/assets/assets.mjs +42 -0
  21. package/resources/assets/assets.mjs.map +1 -0
  22. package/resources/assets/index.d.ts +7 -0
  23. package/resources/assets/index.d.ts.map +1 -0
  24. package/resources/assets/index.js +17 -0
  25. package/resources/assets/index.js.map +1 -0
  26. package/resources/assets/index.mjs +8 -0
  27. package/resources/assets/index.mjs.map +1 -0
  28. package/resources/assets/minting.d.ts +95 -0
  29. package/resources/assets/minting.d.ts.map +1 -0
  30. package/resources/assets/minting.js +15 -0
  31. package/resources/assets/minting.js.map +1 -0
  32. package/resources/assets/minting.mjs +11 -0
  33. package/resources/assets/minting.mjs.map +1 -0
  34. package/resources/assets/referral/index.d.ts +3 -0
  35. package/resources/assets/referral/index.d.ts.map +1 -0
  36. package/resources/assets/referral/index.js +9 -0
  37. package/resources/assets/referral/index.js.map +1 -0
  38. package/resources/assets/referral/index.mjs +4 -0
  39. package/resources/assets/referral/index.mjs.map +1 -0
  40. package/resources/assets/referral/referral.d.ts +30 -0
  41. package/resources/assets/referral/referral.d.ts.map +1 -0
  42. package/resources/assets/referral/referral.js +46 -0
  43. package/resources/assets/referral/referral.js.map +1 -0
  44. package/resources/assets/referral/referral.mjs +19 -0
  45. package/resources/assets/referral/referral.mjs.map +1 -0
  46. package/resources/assets/referral/users.d.ts +57 -0
  47. package/resources/assets/referral/users.d.ts.map +1 -0
  48. package/resources/assets/referral/users.js +21 -0
  49. package/resources/assets/referral/users.js.map +1 -0
  50. package/resources/assets/referral/users.mjs +17 -0
  51. package/resources/assets/referral/users.mjs.map +1 -0
  52. package/resources/assets/users.d.ts +285 -0
  53. package/resources/assets/users.d.ts.map +1 -0
  54. package/resources/assets/users.js +34 -0
  55. package/resources/assets/users.js.map +1 -0
  56. package/resources/assets/users.mjs +30 -0
  57. package/resources/assets/users.mjs.map +1 -0
  58. package/resources/assets/website-collections.d.ts +73 -0
  59. package/resources/assets/website-collections.d.ts.map +1 -0
  60. package/resources/assets/website-collections.js +25 -0
  61. package/resources/assets/website-collections.js.map +1 -0
  62. package/resources/assets/website-collections.mjs +21 -0
  63. package/resources/assets/website-collections.mjs.map +1 -0
  64. package/resources/assets/website-user-roles.d.ts +73 -0
  65. package/resources/assets/website-user-roles.d.ts.map +1 -0
  66. package/resources/assets/website-user-roles.js +22 -0
  67. package/resources/assets/website-user-roles.js.map +1 -0
  68. package/resources/assets/website-user-roles.mjs +18 -0
  69. package/resources/assets/website-user-roles.mjs.map +1 -0
  70. package/resources/auction-bids.d.ts +2 -32
  71. package/resources/auction-bids.d.ts.map +1 -1
  72. package/resources/auction-bids.js +0 -10
  73. package/resources/auction-bids.js.map +1 -1
  74. package/resources/auction-bids.mjs +0 -10
  75. package/resources/auction-bids.mjs.map +1 -1
  76. package/resources/drip/drip.d.ts +4 -4
  77. package/resources/drip/drip.d.ts.map +1 -1
  78. package/resources/drip/drip.js.map +1 -1
  79. package/resources/drip/drip.mjs.map +1 -1
  80. package/resources/drip/index.d.ts +2 -2
  81. package/resources/drip/index.d.ts.map +1 -1
  82. package/resources/drip/index.js.map +1 -1
  83. package/resources/drip/index.mjs.map +1 -1
  84. package/resources/drip/quests.d.ts +0 -164
  85. package/resources/drip/quests.d.ts.map +1 -1
  86. package/resources/drip/quests.js +0 -8
  87. package/resources/drip/quests.js.map +1 -1
  88. package/resources/drip/quests.mjs +0 -8
  89. package/resources/drip/quests.mjs.map +1 -1
  90. package/resources/drip/status.d.ts +0 -22
  91. package/resources/drip/status.d.ts.map +1 -1
  92. package/resources/drip/status.js +0 -7
  93. package/resources/drip/status.js.map +1 -1
  94. package/resources/drip/status.mjs +0 -7
  95. package/resources/drip/status.mjs.map +1 -1
  96. package/resources/index.d.ts +2 -2
  97. package/resources/index.d.ts.map +1 -1
  98. package/resources/index.js +1 -1
  99. package/resources/index.js.map +1 -1
  100. package/resources/index.mjs +1 -1
  101. package/resources/index.mjs.map +1 -1
  102. package/resources/loyalty/accounts.d.ts +0 -153
  103. package/resources/loyalty/accounts.d.ts.map +1 -1
  104. package/resources/loyalty/accounts.js +0 -7
  105. package/resources/loyalty/accounts.js.map +1 -1
  106. package/resources/loyalty/accounts.mjs +0 -7
  107. package/resources/loyalty/accounts.mjs.map +1 -1
  108. package/resources/loyalty/badges.d.ts +639 -72
  109. package/resources/loyalty/badges.d.ts.map +1 -1
  110. package/resources/loyalty/currencies.d.ts +1 -7
  111. package/resources/loyalty/currencies.d.ts.map +1 -1
  112. package/resources/loyalty/index.d.ts +3 -3
  113. package/resources/loyalty/index.d.ts.map +1 -1
  114. package/resources/loyalty/index.js +2 -2
  115. package/resources/loyalty/index.js.map +1 -1
  116. package/resources/loyalty/index.mjs +1 -1
  117. package/resources/loyalty/index.mjs.map +1 -1
  118. package/resources/loyalty/loyalty.d.ts +7 -7
  119. package/resources/loyalty/loyalty.d.ts.map +1 -1
  120. package/resources/loyalty/loyalty.js +2 -2
  121. package/resources/loyalty/loyalty.js.map +1 -1
  122. package/resources/loyalty/loyalty.mjs +2 -2
  123. package/resources/loyalty/loyalty.mjs.map +1 -1
  124. package/resources/loyalty/multipliers.d.ts +29 -4
  125. package/resources/loyalty/multipliers.d.ts.map +1 -1
  126. package/resources/loyalty/multipliers.js +3 -3
  127. package/resources/loyalty/multipliers.js.map +1 -1
  128. package/resources/loyalty/multipliers.mjs +3 -3
  129. package/resources/loyalty/multipliers.mjs.map +1 -1
  130. package/resources/loyalty/rule-edits.d.ts +1 -1
  131. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  132. package/resources/loyalty/rule-edits.js +1 -1
  133. package/resources/loyalty/rule-edits.js.map +1 -1
  134. package/resources/loyalty/rule-edits.mjs +1 -1
  135. package/resources/loyalty/rule-edits.mjs.map +1 -1
  136. package/resources/loyalty/rules.d.ts +132 -71
  137. package/resources/loyalty/rules.d.ts.map +1 -1
  138. package/resources/loyalty/transaction-entries/accounts.d.ts +191 -0
  139. package/resources/loyalty/transaction-entries/accounts.d.ts.map +1 -0
  140. package/resources/loyalty/transaction-entries/accounts.js +24 -0
  141. package/resources/loyalty/transaction-entries/accounts.js.map +1 -0
  142. package/resources/loyalty/transaction-entries/accounts.mjs +20 -0
  143. package/resources/loyalty/transaction-entries/accounts.mjs.map +1 -0
  144. package/resources/loyalty/transaction-entries/index.d.ts +5 -0
  145. package/resources/loyalty/transaction-entries/index.d.ts.map +1 -0
  146. package/resources/loyalty/transaction-entries/index.js +13 -0
  147. package/resources/loyalty/transaction-entries/index.js.map +1 -0
  148. package/resources/loyalty/transaction-entries/index.mjs +6 -0
  149. package/resources/loyalty/transaction-entries/index.mjs.map +1 -0
  150. package/resources/loyalty/transaction-entries/questions-responses.d.ts +97 -0
  151. package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +1 -0
  152. package/resources/loyalty/transaction-entries/questions-responses.js +22 -0
  153. package/resources/loyalty/transaction-entries/questions-responses.js.map +1 -0
  154. package/resources/loyalty/transaction-entries/questions-responses.mjs +18 -0
  155. package/resources/loyalty/transaction-entries/questions-responses.mjs.map +1 -0
  156. package/resources/loyalty/transaction-entries/questions.d.ts +150 -0
  157. package/resources/loyalty/transaction-entries/questions.d.ts.map +1 -0
  158. package/resources/loyalty/transaction-entries/questions.js +27 -0
  159. package/resources/loyalty/transaction-entries/questions.js.map +1 -0
  160. package/resources/loyalty/transaction-entries/questions.mjs +23 -0
  161. package/resources/loyalty/transaction-entries/questions.mjs.map +1 -0
  162. package/resources/loyalty/transaction-entries/transaction-entries.d.ts +300 -0
  163. package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +1 -0
  164. package/resources/loyalty/transaction-entries/transaction-entries.js +66 -0
  165. package/resources/loyalty/transaction-entries/transaction-entries.js.map +1 -0
  166. package/resources/loyalty/transaction-entries/transaction-entries.mjs +39 -0
  167. package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +1 -0
  168. package/resources/users/index.d.ts +2 -2
  169. package/resources/users/index.d.ts.map +1 -1
  170. package/resources/users/index.js.map +1 -1
  171. package/resources/users/index.mjs +2 -2
  172. package/resources/users/index.mjs.map +1 -1
  173. package/resources/users/metadatas.d.ts +79 -11
  174. package/resources/users/metadatas.d.ts.map +1 -1
  175. package/resources/users/metadatas.js +6 -0
  176. package/resources/users/metadatas.js.map +1 -1
  177. package/resources/users/metadatas.mjs +6 -0
  178. package/resources/users/metadatas.mjs.map +1 -1
  179. package/resources/users/users.d.ts +4 -4
  180. package/resources/users/users.d.ts.map +1 -1
  181. package/resources/users/users.js.map +1 -1
  182. package/resources/users/users.mjs +2 -2
  183. package/resources/users/users.mjs.map +1 -1
  184. package/resources/users/wallets.d.ts +0 -189
  185. package/resources/users/wallets.d.ts.map +1 -1
  186. package/resources/users/wallets.js +0 -19
  187. package/resources/users/wallets.js.map +1 -1
  188. package/resources/users/wallets.mjs +0 -19
  189. package/resources/users/wallets.mjs.map +1 -1
  190. package/src/core.ts +14 -6
  191. package/src/index.ts +14 -12
  192. package/src/resources/assets/assets.ts +294 -0
  193. package/src/resources/assets/index.ts +38 -0
  194. package/src/resources/assets/minting.ts +153 -0
  195. package/src/resources/assets/referral/index.ts +14 -0
  196. package/src/resources/assets/referral/referral.ts +74 -0
  197. package/src/resources/assets/referral/users.ts +99 -0
  198. package/src/resources/assets/users.ts +415 -0
  199. package/src/resources/assets/website-collections.ts +147 -0
  200. package/src/resources/assets/website-user-roles.ts +107 -0
  201. package/src/resources/auction-bids.ts +2 -48
  202. package/src/resources/drip/drip.ts +4 -8
  203. package/src/resources/drip/index.ts +2 -2
  204. package/src/resources/drip/quests.ts +1 -206
  205. package/src/resources/drip/status.ts +1 -29
  206. package/src/resources/index.ts +7 -2
  207. package/src/resources/loyalty/accounts.ts +1 -195
  208. package/src/resources/loyalty/badges.ts +779 -77
  209. package/src/resources/loyalty/currencies.ts +1 -7
  210. package/src/resources/loyalty/index.ts +7 -2
  211. package/src/resources/loyalty/loyalty.ts +14 -8
  212. package/src/resources/loyalty/multipliers.ts +49 -4
  213. package/src/resources/loyalty/rule-edits.ts +2 -2
  214. package/src/resources/loyalty/rules.ts +247 -159
  215. package/src/resources/loyalty/transaction-entries/accounts.ts +251 -0
  216. package/src/resources/loyalty/transaction-entries/index.ts +34 -0
  217. package/src/resources/loyalty/transaction-entries/questions-responses.ts +146 -0
  218. package/src/resources/loyalty/transaction-entries/questions.ts +208 -0
  219. package/src/resources/loyalty/transaction-entries/transaction-entries.ts +525 -0
  220. package/src/resources/users/index.ts +8 -9
  221. package/src/resources/users/metadatas.ts +109 -10
  222. package/src/resources/users/users.ts +11 -17
  223. package/src/resources/users/wallets.ts +1 -267
  224. package/src/version.ts +1 -1
  225. package/version.d.ts +1 -1
  226. package/version.js +1 -1
  227. package/version.mjs +1 -1
  228. package/resources/assets.d.ts +0 -50
  229. package/resources/assets.d.ts.map +0 -1
  230. package/resources/assets.js +0 -17
  231. package/resources/assets.js.map +0 -1
  232. package/resources/assets.mjs +0 -13
  233. package/resources/assets.mjs.map +0 -1
  234. package/resources/loyalty/transaction-entries.d.ts +0 -175
  235. package/resources/loyalty/transaction-entries.d.ts.map +0 -1
  236. package/resources/loyalty/transaction-entries.js +0 -16
  237. package/resources/loyalty/transaction-entries.js.map +0 -1
  238. package/resources/loyalty/transaction-entries.mjs +0 -12
  239. package/resources/loyalty/transaction-entries.mjs.map +0 -1
  240. package/src/resources/assets.ts +0 -71
  241. package/src/resources/loyalty/transaction-entries.ts +0 -229
@@ -2,16 +2,15 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as MetadatasAPI from './metadatas';
5
- import { MetadataCreateParams, MetadataCreateResponse, Metadatas } from './metadatas';
6
- import * as WalletsAPI from './wallets';
7
5
  import {
8
- WalletCreateParams,
9
- WalletCreateResponse,
10
- WalletDeleteResponse,
11
- WalletListParams,
12
- WalletListResponse,
13
- Wallets,
14
- } from './wallets';
6
+ MetadataCreateParams,
7
+ MetadataCreateResponse,
8
+ MetadataRetrieveParams,
9
+ MetadataRetrieveResponse,
10
+ Metadatas,
11
+ } from './metadatas';
12
+ import * as WalletsAPI from './wallets';
13
+ import { Wallets } from './wallets';
15
14
 
16
15
  export class Users extends APIResource {
17
16
  wallets: WalletsAPI.Wallets = new WalletsAPI.Wallets(this._client);
@@ -22,18 +21,13 @@ Users.Wallets = Wallets;
22
21
  Users.Metadatas = Metadatas;
23
22
 
24
23
  export declare namespace Users {
25
- export {
26
- Wallets as Wallets,
27
- type WalletCreateResponse as WalletCreateResponse,
28
- type WalletListResponse as WalletListResponse,
29
- type WalletDeleteResponse as WalletDeleteResponse,
30
- type WalletCreateParams as WalletCreateParams,
31
- type WalletListParams as WalletListParams,
32
- };
24
+ export { Wallets as Wallets };
33
25
 
34
26
  export {
35
27
  Metadatas as Metadatas,
36
28
  type MetadataCreateResponse as MetadataCreateResponse,
29
+ type MetadataRetrieveResponse as MetadataRetrieveResponse,
37
30
  type MetadataCreateParams as MetadataCreateParams,
31
+ type MetadataRetrieveParams as MetadataRetrieveParams,
38
32
  };
39
33
  }
@@ -1,271 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../resource';
4
- import { isRequestOptions } from '../../core';
5
- import * as Core from '../../core';
6
4
 
7
- export class Wallets extends APIResource {
8
- /**
9
- * This endpoint allows you to create a user wallet
10
- */
11
- create(body: WalletCreateParams, options?: Core.RequestOptions): Core.APIPromise<WalletCreateResponse> {
12
- return this._client.post('/api/users/wallets', { body, ...options });
13
- }
14
-
15
- /**
16
- * This endpoint allows you to get users wallet
17
- */
18
- list(query?: WalletListParams, options?: Core.RequestOptions): Core.APIPromise<WalletListResponse>;
19
- list(options?: Core.RequestOptions): Core.APIPromise<WalletListResponse>;
20
- list(
21
- query: WalletListParams | Core.RequestOptions = {},
22
- options?: Core.RequestOptions,
23
- ): Core.APIPromise<WalletListResponse> {
24
- if (isRequestOptions(query)) {
25
- return this.list({}, query);
26
- }
27
- return this._client.get('/api/users/wallets', { query, ...options });
28
- }
29
-
30
- /**
31
- * This endpoint allows you to delete a user wallet
32
- */
33
- delete(id: string, options?: Core.RequestOptions): Core.APIPromise<WalletDeleteResponse> {
34
- return this._client.delete(`/api/users/wallets/${id}`, options);
35
- }
36
- }
37
-
38
- /**
39
- * Schema for user wallet response
40
- */
41
- export interface WalletCreateResponse {
42
- /**
43
- * Unique identifier for the user wallet
44
- */
45
- id: string;
46
-
47
- /**
48
- * Timestamp when the wallet was created
49
- */
50
- createdAt: string;
51
-
52
- /**
53
- * Unique identifier for the organization
54
- */
55
- organizationId: string;
56
-
57
- /**
58
- * Timestamp when the wallet was last updated
59
- */
60
- updatedAt: string;
61
-
62
- /**
63
- * Validated and formatted wallet address
64
- */
65
- walletAddress: string;
66
-
67
- /**
68
- * Type of the wallet
69
- */
70
- walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
71
-
72
- /**
73
- * Unique identifier for the website
74
- */
75
- websiteId: string;
76
-
77
- /**
78
- * Optional identifier for the wallet
79
- */
80
- walletIdentifier?: string | null;
81
- }
82
-
83
- /**
84
- * Schema for a list of user wallets
85
- */
86
- export interface WalletListResponse {
87
- /**
88
- * Array of user wallets
89
- */
90
- data: Array<WalletListResponse.Data>;
91
- }
92
-
93
- export namespace WalletListResponse {
94
- /**
95
- * Schema for user wallet response
96
- */
97
- export interface Data {
98
- /**
99
- * Unique identifier for the user wallet
100
- */
101
- id: string;
102
-
103
- /**
104
- * Timestamp when the wallet was created
105
- */
106
- createdAt: string;
107
-
108
- /**
109
- * Unique identifier for the organization
110
- */
111
- organizationId: string;
112
-
113
- /**
114
- * Timestamp when the wallet was last updated
115
- */
116
- updatedAt: string;
117
-
118
- /**
119
- * Validated and formatted wallet address
120
- */
121
- walletAddress: string;
122
-
123
- /**
124
- * Type of the wallet
125
- */
126
- walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
127
-
128
- /**
129
- * Unique identifier for the website
130
- */
131
- websiteId: string;
132
-
133
- /**
134
- * Optional identifier for the wallet
135
- */
136
- walletIdentifier?: string | null;
137
- }
138
- }
139
-
140
- /**
141
- * Schema for user wallet response
142
- */
143
- export interface WalletDeleteResponse {
144
- /**
145
- * Unique identifier for the user wallet
146
- */
147
- id: string;
148
-
149
- /**
150
- * Timestamp when the wallet was created
151
- */
152
- createdAt: string;
153
-
154
- /**
155
- * Unique identifier for the organization
156
- */
157
- organizationId: string;
158
-
159
- /**
160
- * Timestamp when the wallet was last updated
161
- */
162
- updatedAt: string;
163
-
164
- /**
165
- * Validated and formatted wallet address
166
- */
167
- walletAddress: string;
168
-
169
- /**
170
- * Type of the wallet
171
- */
172
- walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
173
-
174
- /**
175
- * Unique identifier for the website
176
- */
177
- websiteId: string;
178
-
179
- /**
180
- * Optional identifier for the wallet
181
- */
182
- walletIdentifier?: string | null;
183
- }
184
-
185
- export interface WalletCreateParams {
186
- walletAddress: string;
187
-
188
- walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
189
-
190
- confirmDisconnect?: boolean;
191
-
192
- userId?: string;
193
-
194
- verificationData?: WalletCreateParams.VerificationData;
195
-
196
- walletIdentifier?: string;
197
- }
198
-
199
- export namespace WalletCreateParams {
200
- export interface VerificationData {
201
- accessToken?: string;
202
-
203
- message?: string;
204
-
205
- signature?: string;
206
-
207
- tonVerification?: VerificationData.TonVerification;
208
- }
209
-
210
- export namespace VerificationData {
211
- export interface TonVerification {
212
- account: TonVerification.Account;
213
-
214
- proof: TonVerification.Proof;
215
- }
216
-
217
- export namespace TonVerification {
218
- export interface Account {
219
- address: string;
220
-
221
- chain: '-239' | '-3';
222
-
223
- publicKey: string;
224
-
225
- walletStateInit?: string;
226
- }
227
-
228
- export interface Proof {
229
- domain: Proof.Domain;
230
-
231
- payload: string;
232
-
233
- signature: string;
234
-
235
- timestamp: number;
236
-
237
- state_init?: string;
238
- }
239
-
240
- export namespace Proof {
241
- export interface Domain {
242
- lengthBytes: number;
243
-
244
- value: string;
245
- }
246
- }
247
- }
248
- }
249
- }
250
-
251
- export interface WalletListParams {
252
- limit?: number | null;
253
-
254
- startingAfter?: string;
255
-
256
- userId?: string;
257
-
258
- walletAddress?: string;
259
-
260
- walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
261
- }
262
-
263
- export declare namespace Wallets {
264
- export {
265
- type WalletCreateResponse as WalletCreateResponse,
266
- type WalletListResponse as WalletListResponse,
267
- type WalletDeleteResponse as WalletDeleteResponse,
268
- type WalletCreateParams as WalletCreateParams,
269
- type WalletListParams as WalletListParams,
270
- };
271
- }
5
+ export class Wallets extends APIResource {}
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.13'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.14'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.13";
1
+ export declare const VERSION = "0.1.0-alpha.14";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.13'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.14'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.13'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.14'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,50 +0,0 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class Assets extends APIResource {
4
- /**
5
- * This endpoint allows you to upload a file to the resource. returns a presigned
6
- * URL and the asset's public URL call put with the file as the body to upload the
7
- * asst
8
- */
9
- create(body: AssetCreateParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateResponse>;
10
- }
11
- /**
12
- * Response returned upon successful generation of the signed URL for uploading the
13
- * file.
14
- */
15
- export interface AssetCreateResponse {
16
- /**
17
- * The pre-signed URL to be used for uploading the file.
18
- */
19
- signedUrl: string;
20
- /**
21
- * The URL of the uploaded file.
22
- */
23
- url: string;
24
- }
25
- export interface AssetCreateParams {
26
- /**
27
- * The name of the file, must match the regex pattern (converted to lowercase)
28
- */
29
- fileName: string;
30
- /**
31
- * The file path, must be a valid enum value.
32
- */
33
- filePath?: 'announcements' | 'images' | 'videos' | 'banners' | 'fonts' | 'posts' | 'profiles' | 'minting' | 'loyalty';
34
- /**
35
- * UUID of the organization (optional, converted to lowercase)
36
- */
37
- organizationId?: string;
38
- /**
39
- * UUID of the user (optional, converted to lowercase)
40
- */
41
- userId?: string;
42
- /**
43
- * UUID of the website (optional, converted to lowercase)
44
- */
45
- websiteId?: string;
46
- }
47
- export declare namespace Assets {
48
- export { type AssetCreateResponse as AssetCreateResponse, type AssetCreateParams as AssetCreateParams };
49
- }
50
- //# sourceMappingURL=assets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAGrG;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EACL,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Assets = void 0;
5
- const resource_1 = require("../resource.js");
6
- class Assets extends resource_1.APIResource {
7
- /**
8
- * This endpoint allows you to upload a file to the resource. returns a presigned
9
- * URL and the asset's public URL call put with the file as the body to upload the
10
- * asst
11
- */
12
- create(body, options) {
13
- return this._client.post('/api/assets', { body, ...options });
14
- }
15
- }
16
- exports.Assets = Assets;
17
- //# sourceMappingURL=assets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AATD,wBASC"}
@@ -1,13 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class Assets extends APIResource {
4
- /**
5
- * This endpoint allows you to upload a file to the resource. returns a presigned
6
- * URL and the asset's public URL call put with the file as the body to upload the
7
- * asst
8
- */
9
- create(body, options) {
10
- return this._client.post('/api/assets', { body, ...options });
11
- }
12
- }
13
- //# sourceMappingURL=assets.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF"}
@@ -1,175 +0,0 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
3
- export declare class TransactionEntries extends APIResource {
4
- /**
5
- * Fetch loyalty transaction entries for wallets or users, representing account
6
- * balance changes.
7
- */
8
- list(query?: TransactionEntryListParams, options?: Core.RequestOptions): Core.APIPromise<TransactionEntryListResponse>;
9
- list(options?: Core.RequestOptions): Core.APIPromise<TransactionEntryListResponse>;
10
- }
11
- export interface TransactionEntryListResponse {
12
- data: Array<TransactionEntryListResponse.Data>;
13
- hasNextPage: boolean;
14
- }
15
- export declare namespace TransactionEntryListResponse {
16
- /**
17
- * Schema for a loyalty transaction entry
18
- */
19
- interface Data {
20
- /**
21
- * Unique identifier for the transaction entry
22
- */
23
- id: string;
24
- /**
25
- * Amount involved in the transaction
26
- */
27
- amount: number;
28
- /**
29
- * Timestamp when the transaction entry was created
30
- */
31
- createdAt: string;
32
- /**
33
- * Direction of the transaction entry
34
- */
35
- direction: 'credit' | 'debit';
36
- /**
37
- * Unique identifier for the loyalty account
38
- */
39
- loyaltyAccountId: string;
40
- /**
41
- * Details of the loyalty transaction
42
- */
43
- loyaltyTransaction: Data.LoyaltyTransaction;
44
- /**
45
- * Unique identifier for the organization
46
- */
47
- organizationId: string;
48
- /**
49
- * Type of the loyalty transaction
50
- */
51
- type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
52
- /**
53
- * Timestamp when the transaction entry was last updated
54
- */
55
- updatedAt: string;
56
- /**
57
- * Unique identifier for the website
58
- */
59
- websiteId: string;
60
- /**
61
- * Optional metadata for the transaction entry
62
- */
63
- metadata?: Record<string, unknown>;
64
- }
65
- namespace Data {
66
- /**
67
- * Details of the loyalty transaction
68
- */
69
- interface LoyaltyTransaction {
70
- /**
71
- * Unique identifier for the loyalty transaction
72
- */
73
- id: string;
74
- /**
75
- * Type of the loyalty transaction
76
- */
77
- type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
78
- /**
79
- * Details of the loyalty rule associated with the transaction
80
- */
81
- loyaltyRule?: LoyaltyTransaction.LoyaltyRule;
82
- }
83
- namespace LoyaltyTransaction {
84
- /**
85
- * Details of the loyalty rule associated with the transaction
86
- */
87
- interface LoyaltyRule {
88
- /**
89
- * Unique identifier for the loyalty rule
90
- */
91
- id: string;
92
- /**
93
- * Type of the loyalty rule
94
- */
95
- type: string;
96
- /**
97
- * Description of the loyalty rule
98
- */
99
- description?: string;
100
- /**
101
- * Optional metadata for the loyalty rule
102
- */
103
- metadata?: Record<string, unknown>;
104
- /**
105
- * Name of the loyalty rule
106
- */
107
- name?: string;
108
- }
109
- }
110
- }
111
- }
112
- export interface TransactionEntryListParams {
113
- /**
114
- * Direction of the transaction entry to filter by
115
- */
116
- direction?: 'credit' | 'debit';
117
- /**
118
- * Key to ensure idempotency of the request
119
- */
120
- idempotencyKey?: string;
121
- /**
122
- * Maximum number of records to return (max 1000)
123
- */
124
- limit?: number;
125
- /**
126
- * Unique identifier for the loyalty rule to filter by
127
- */
128
- loyaltyRuleId?: string;
129
- /**
130
- * Unique identifier for the loyalty transaction to filter by
131
- */
132
- loyaltyTransactionId?: string;
133
- /**
134
- * Field to order the results by
135
- */
136
- orderBy?: 'createdAt' | 'updatedAt' | 'loyaltyAccountLockVersion';
137
- /**
138
- * Unique identifier for the organization to filter by
139
- */
140
- organizationId?: string;
141
- /**
142
- * Pagination cursor to start after a specific resource ID
143
- */
144
- startingAfter?: string;
145
- /**
146
- * Type of the loyalty transaction to filter by
147
- */
148
- type?: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
149
- /**
150
- * When passed in return the list of fulfilled entries for loyalty rules. If a
151
- * loyalty rule has a fulfilled entry this means the user cannot currently complete
152
- * the rule. Must be passed in with userId or walletAddress.
153
- */
154
- userCompletedLoyaltyRuleId?: string | Array<string>;
155
- /**
156
- * User ID or array of User IDs to filter by
157
- */
158
- userId?: string | Array<string>;
159
- /**
160
- * Wallet address or array of wallet addresses to filter by
161
- */
162
- walletAddress?: string | Array<string>;
163
- /**
164
- * Identifier for the wallet group to filter by
165
- */
166
- walletGroupIdentifier?: string;
167
- /**
168
- * Unique identifier for the website to filter by
169
- */
170
- websiteId?: string;
171
- }
172
- export declare namespace TransactionEntries {
173
- export { type TransactionEntryListResponse as TransactionEntryListResponse, type TransactionEntryListParams as TransactionEntryListParams, };
174
- }
175
- //# sourceMappingURL=transaction-entries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-entries.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/transaction-entries.ts"],"names":[],"mappings":"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"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TransactionEntries = void 0;
5
- const resource_1 = require("../../resource.js");
6
- const core_1 = require("../../core.js");
7
- class TransactionEntries extends resource_1.APIResource {
8
- list(query = {}, options) {
9
- if ((0, core_1.isRequestOptions)(query)) {
10
- return this.list({}, query);
11
- }
12
- return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
13
- }
14
- }
15
- exports.TransactionEntries = TransactionEntries;
16
- //# sourceMappingURL=transaction-entries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-entries.js","sourceRoot":"","sources":["../../src/resources/loyalty/transaction-entries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,kBAAmB,SAAQ,sBAAW;IAUjD,IAAI,CACF,QAA0D,EAAE,EAC5D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAnBD,gDAmBC"}
@@ -1,12 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- import { isRequestOptions } from "../../core.mjs";
4
- export class TransactionEntries extends APIResource {
5
- list(query = {}, options) {
6
- if (isRequestOptions(query)) {
7
- return this.list({}, query);
8
- }
9
- return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
10
- }
11
- }
12
- //# sourceMappingURL=transaction-entries.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-entries.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/transaction-entries.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAUjD,IAAI,CACF,QAA0D,EAAE,EAC5D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}