@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
@@ -1,71 +0,0 @@
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 Assets extends 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: AssetCreateParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateResponse> {
13
- return this._client.post('/api/assets', { body, ...options });
14
- }
15
- }
16
-
17
- /**
18
- * Response returned upon successful generation of the signed URL for uploading the
19
- * file.
20
- */
21
- export interface AssetCreateResponse {
22
- /**
23
- * The pre-signed URL to be used for uploading the file.
24
- */
25
- signedUrl: string;
26
-
27
- /**
28
- * The URL of the uploaded file.
29
- */
30
- url: string;
31
- }
32
-
33
- export interface AssetCreateParams {
34
- /**
35
- * The name of the file, must match the regex pattern (converted to lowercase)
36
- */
37
- fileName: string;
38
-
39
- /**
40
- * The file path, must be a valid enum value.
41
- */
42
- filePath?:
43
- | 'announcements'
44
- | 'images'
45
- | 'videos'
46
- | 'banners'
47
- | 'fonts'
48
- | 'posts'
49
- | 'profiles'
50
- | 'minting'
51
- | 'loyalty';
52
-
53
- /**
54
- * UUID of the organization (optional, converted to lowercase)
55
- */
56
- organizationId?: string;
57
-
58
- /**
59
- * UUID of the user (optional, converted to lowercase)
60
- */
61
- userId?: string;
62
-
63
- /**
64
- * UUID of the website (optional, converted to lowercase)
65
- */
66
- websiteId?: string;
67
- }
68
-
69
- export declare namespace Assets {
70
- export { type AssetCreateResponse as AssetCreateResponse, type AssetCreateParams as AssetCreateParams };
71
- }
@@ -1,229 +0,0 @@
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
-
7
- export class TransactionEntries extends APIResource {
8
- /**
9
- * Fetch loyalty transaction entries for wallets or users, representing account
10
- * balance changes.
11
- */
12
- list(
13
- query?: TransactionEntryListParams,
14
- options?: Core.RequestOptions,
15
- ): Core.APIPromise<TransactionEntryListResponse>;
16
- list(options?: Core.RequestOptions): Core.APIPromise<TransactionEntryListResponse>;
17
- list(
18
- query: TransactionEntryListParams | Core.RequestOptions = {},
19
- options?: Core.RequestOptions,
20
- ): Core.APIPromise<TransactionEntryListResponse> {
21
- if (isRequestOptions(query)) {
22
- return this.list({}, query);
23
- }
24
- return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
25
- }
26
- }
27
-
28
- export interface TransactionEntryListResponse {
29
- data: Array<TransactionEntryListResponse.Data>;
30
-
31
- hasNextPage: boolean;
32
- }
33
-
34
- export namespace TransactionEntryListResponse {
35
- /**
36
- * Schema for a loyalty transaction entry
37
- */
38
- export interface Data {
39
- /**
40
- * Unique identifier for the transaction entry
41
- */
42
- id: string;
43
-
44
- /**
45
- * Amount involved in the transaction
46
- */
47
- amount: number;
48
-
49
- /**
50
- * Timestamp when the transaction entry was created
51
- */
52
- createdAt: string;
53
-
54
- /**
55
- * Direction of the transaction entry
56
- */
57
- direction: 'credit' | 'debit';
58
-
59
- /**
60
- * Unique identifier for the loyalty account
61
- */
62
- loyaltyAccountId: string;
63
-
64
- /**
65
- * Details of the loyalty transaction
66
- */
67
- loyaltyTransaction: Data.LoyaltyTransaction;
68
-
69
- /**
70
- * Unique identifier for the organization
71
- */
72
- organizationId: string;
73
-
74
- /**
75
- * Type of the loyalty transaction
76
- */
77
- type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
78
-
79
- /**
80
- * Timestamp when the transaction entry was last updated
81
- */
82
- updatedAt: string;
83
-
84
- /**
85
- * Unique identifier for the website
86
- */
87
- websiteId: string;
88
-
89
- /**
90
- * Optional metadata for the transaction entry
91
- */
92
- metadata?: Record<string, unknown>;
93
- }
94
-
95
- export namespace Data {
96
- /**
97
- * Details of the loyalty transaction
98
- */
99
- export interface LoyaltyTransaction {
100
- /**
101
- * Unique identifier for the loyalty transaction
102
- */
103
- id: string;
104
-
105
- /**
106
- * Type of the loyalty transaction
107
- */
108
- type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
109
-
110
- /**
111
- * Details of the loyalty rule associated with the transaction
112
- */
113
- loyaltyRule?: LoyaltyTransaction.LoyaltyRule;
114
- }
115
-
116
- export namespace LoyaltyTransaction {
117
- /**
118
- * Details of the loyalty rule associated with the transaction
119
- */
120
- export interface LoyaltyRule {
121
- /**
122
- * Unique identifier for the loyalty rule
123
- */
124
- id: string;
125
-
126
- /**
127
- * Type of the loyalty rule
128
- */
129
- type: string;
130
-
131
- /**
132
- * Description of the loyalty rule
133
- */
134
- description?: string;
135
-
136
- /**
137
- * Optional metadata for the loyalty rule
138
- */
139
- metadata?: Record<string, unknown>;
140
-
141
- /**
142
- * Name of the loyalty rule
143
- */
144
- name?: string;
145
- }
146
- }
147
- }
148
- }
149
-
150
- export interface TransactionEntryListParams {
151
- /**
152
- * Direction of the transaction entry to filter by
153
- */
154
- direction?: 'credit' | 'debit';
155
-
156
- /**
157
- * Key to ensure idempotency of the request
158
- */
159
- idempotencyKey?: string;
160
-
161
- /**
162
- * Maximum number of records to return (max 1000)
163
- */
164
- limit?: number;
165
-
166
- /**
167
- * Unique identifier for the loyalty rule to filter by
168
- */
169
- loyaltyRuleId?: string;
170
-
171
- /**
172
- * Unique identifier for the loyalty transaction to filter by
173
- */
174
- loyaltyTransactionId?: string;
175
-
176
- /**
177
- * Field to order the results by
178
- */
179
- orderBy?: 'createdAt' | 'updatedAt' | 'loyaltyAccountLockVersion';
180
-
181
- /**
182
- * Unique identifier for the organization to filter by
183
- */
184
- organizationId?: string;
185
-
186
- /**
187
- * Pagination cursor to start after a specific resource ID
188
- */
189
- startingAfter?: string;
190
-
191
- /**
192
- * Type of the loyalty transaction to filter by
193
- */
194
- type?: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
195
-
196
- /**
197
- * When passed in return the list of fulfilled entries for loyalty rules. If a
198
- * loyalty rule has a fulfilled entry this means the user cannot currently complete
199
- * the rule. Must be passed in with userId or walletAddress.
200
- */
201
- userCompletedLoyaltyRuleId?: string | Array<string>;
202
-
203
- /**
204
- * User ID or array of User IDs to filter by
205
- */
206
- userId?: string | Array<string>;
207
-
208
- /**
209
- * Wallet address or array of wallet addresses to filter by
210
- */
211
- walletAddress?: string | Array<string>;
212
-
213
- /**
214
- * Identifier for the wallet group to filter by
215
- */
216
- walletGroupIdentifier?: string;
217
-
218
- /**
219
- * Unique identifier for the website to filter by
220
- */
221
- websiteId?: string;
222
- }
223
-
224
- export declare namespace TransactionEntries {
225
- export {
226
- type TransactionEntryListResponse as TransactionEntryListResponse,
227
- type TransactionEntryListParams as TransactionEntryListParams,
228
- };
229
- }