@snagsolutions/sdk 0.1.0-alpha.152 → 0.1.0-alpha.154

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 (116) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/auctions/auctions.d.ts +2 -2
  10. package/resources/auctions/auctions.d.ts.map +1 -1
  11. package/resources/auctions/auctions.js.map +1 -1
  12. package/resources/auctions/auctions.mjs.map +1 -1
  13. package/resources/auctions/index.d.ts +1 -1
  14. package/resources/auctions/index.d.ts.map +1 -1
  15. package/resources/auctions/index.js.map +1 -1
  16. package/resources/auctions/index.mjs.map +1 -1
  17. package/resources/auctions/website-user-attributes/index.d.ts +2 -2
  18. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
  19. package/resources/auctions/website-user-attributes/index.js.map +1 -1
  20. package/resources/auctions/website-user-attributes/index.mjs +1 -1
  21. package/resources/auctions/website-user-attributes/index.mjs.map +1 -1
  22. package/resources/auctions/website-user-attributes/values.d.ts +1 -47
  23. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
  24. package/resources/auctions/website-user-attributes/values.js +0 -14
  25. package/resources/auctions/website-user-attributes/values.js.map +1 -1
  26. package/resources/auctions/website-user-attributes/values.mjs +0 -14
  27. package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
  28. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +3 -43
  29. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
  30. package/resources/auctions/website-user-attributes/website-user-attributes.js +0 -7
  31. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
  32. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +0 -7
  33. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
  34. package/resources/index.d.ts +1 -1
  35. package/resources/index.d.ts.map +1 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/loyalty/index.d.ts +1 -1
  40. package/resources/loyalty/index.d.ts.map +1 -1
  41. package/resources/loyalty/index.js.map +1 -1
  42. package/resources/loyalty/index.mjs.map +1 -1
  43. package/resources/loyalty/loyalty.d.ts +2 -2
  44. package/resources/loyalty/loyalty.d.ts.map +1 -1
  45. package/resources/loyalty/loyalty.js.map +1 -1
  46. package/resources/loyalty/loyalty.mjs.map +1 -1
  47. package/resources/loyalty/rule-edits.d.ts +8 -8
  48. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  49. package/resources/loyalty/rule-groups.d.ts +2 -2
  50. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  51. package/resources/loyalty/rules.d.ts +36 -23
  52. package/resources/loyalty/rules.d.ts.map +1 -1
  53. package/resources/loyalty/transactions/index.d.ts +2 -2
  54. package/resources/loyalty/transactions/index.d.ts.map +1 -1
  55. package/resources/loyalty/transactions/index.js.map +1 -1
  56. package/resources/loyalty/transactions/index.mjs +1 -1
  57. package/resources/loyalty/transactions/index.mjs.map +1 -1
  58. package/resources/loyalty/transactions/rule-statuses.d.ts +1 -60
  59. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
  60. package/resources/loyalty/transactions/rule-statuses.js +0 -7
  61. package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
  62. package/resources/loyalty/transactions/rule-statuses.mjs +0 -7
  63. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
  64. package/resources/loyalty/transactions/transactions.d.ts +3 -121
  65. package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
  66. package/resources/loyalty/transactions/transactions.js +0 -15
  67. package/resources/loyalty/transactions/transactions.js.map +1 -1
  68. package/resources/loyalty/transactions/transactions.mjs +1 -16
  69. package/resources/loyalty/transactions/transactions.mjs.map +1 -1
  70. package/resources/minting.d.ts +1 -1
  71. package/resources/minting.d.ts.map +1 -1
  72. package/resources/users/users.d.ts +14 -0
  73. package/resources/users/users.d.ts.map +1 -1
  74. package/resources/users/users.js.map +1 -1
  75. package/resources/users/users.mjs.map +1 -1
  76. package/resources/websites/index.d.ts +2 -2
  77. package/resources/websites/index.d.ts.map +1 -1
  78. package/resources/websites/index.js.map +1 -1
  79. package/resources/websites/index.mjs +2 -2
  80. package/resources/websites/index.mjs.map +1 -1
  81. package/resources/websites/website-collections.d.ts +0 -90
  82. package/resources/websites/website-collections.d.ts.map +1 -1
  83. package/resources/websites/website-collections.js +0 -37
  84. package/resources/websites/website-collections.js.map +1 -1
  85. package/resources/websites/website-collections.mjs +0 -37
  86. package/resources/websites/website-collections.mjs.map +1 -1
  87. package/resources/websites/websites.d.ts +3 -105
  88. package/resources/websites/websites.d.ts.map +1 -1
  89. package/resources/websites/websites.js +0 -13
  90. package/resources/websites/websites.js.map +1 -1
  91. package/resources/websites/websites.mjs +1 -14
  92. package/resources/websites/websites.mjs.map +1 -1
  93. package/src/index.ts +1 -9
  94. package/src/resources/auctions/auctions.ts +0 -4
  95. package/src/resources/auctions/index.ts +0 -2
  96. package/src/resources/auctions/website-user-attributes/index.ts +1 -9
  97. package/src/resources/auctions/website-user-attributes/values.ts +1 -69
  98. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +1 -71
  99. package/src/resources/index.ts +1 -7
  100. package/src/resources/loyalty/index.ts +0 -2
  101. package/src/resources/loyalty/loyalty.ts +0 -4
  102. package/src/resources/loyalty/rule-edits.ts +16 -8
  103. package/src/resources/loyalty/rule-groups.ts +4 -2
  104. package/src/resources/loyalty/rules.ts +59 -25
  105. package/src/resources/loyalty/transactions/index.ts +1 -9
  106. package/src/resources/loyalty/transactions/rule-statuses.ts +0 -91
  107. package/src/resources/loyalty/transactions/transactions.ts +1 -160
  108. package/src/resources/minting.ts +2 -1
  109. package/src/resources/users/users.ts +22 -0
  110. package/src/resources/websites/index.ts +2 -13
  111. package/src/resources/websites/website-collections.ts +1 -179
  112. package/src/resources/websites/websites.ts +3 -141
  113. package/src/version.ts +1 -1
  114. package/version.d.ts +1 -1
  115. package/version.js +1 -1
  116. package/version.mjs +1 -1
@@ -1,10 +1,9 @@
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
4
  import * as Core from '../../../core';
6
5
  import * as ValuesAPI from './values';
7
- import { ValueCreateParams, ValueCreateResponse, ValueListParams, ValueListResponse, Values } from './values';
6
+ import { ValueCreateParams, ValueCreateResponse, Values } from './values';
8
7
 
9
8
  export class WebsiteUserAttributes extends APIResource {
10
9
  values: ValuesAPI.Values = new ValuesAPI.Values(this._client);
@@ -27,30 +26,6 @@ export class WebsiteUserAttributes extends APIResource {
27
26
  return this._client.post('/api/website_user_attributes', { body, ...options });
28
27
  }
29
28
 
30
- /**
31
- * Get all website user attributes
32
- *
33
- * @example
34
- * ```ts
35
- * const websiteUserAttributes =
36
- * await client.auctions.websiteUserAttributes.list();
37
- * ```
38
- */
39
- list(
40
- query?: WebsiteUserAttributeListParams,
41
- options?: Core.RequestOptions,
42
- ): Core.APIPromise<WebsiteUserAttributeListResponse>;
43
- list(options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeListResponse>;
44
- list(
45
- query: WebsiteUserAttributeListParams | Core.RequestOptions = {},
46
- options?: Core.RequestOptions,
47
- ): Core.APIPromise<WebsiteUserAttributeListResponse> {
48
- if (isRequestOptions(query)) {
49
- return this.list({}, query);
50
- }
51
- return this._client.get('/api/website_user_attributes', { query, ...options });
52
- }
53
-
54
29
  /**
55
30
  * Delete a website user attribute
56
31
  *
@@ -95,30 +70,6 @@ export namespace WebsiteUserAttributeCreateResponse {
95
70
  }
96
71
  }
97
72
 
98
- export interface WebsiteUserAttributeListResponse {
99
- data: Array<WebsiteUserAttributeListResponse.Data>;
100
-
101
- hasNextPage: boolean;
102
- }
103
-
104
- export namespace WebsiteUserAttributeListResponse {
105
- export interface Data {
106
- id: string;
107
-
108
- createdAt: string;
109
-
110
- deletedAt: string | null;
111
-
112
- label: string;
113
-
114
- organizationId: string;
115
-
116
- updatedAt: string;
117
-
118
- websiteId: string;
119
- }
120
- }
121
-
122
73
  export interface WebsiteUserAttributeDeleteResponse {
123
74
  message: string;
124
75
  }
@@ -151,23 +102,6 @@ export namespace WebsiteUserAttributeCreateParams {
151
102
  }
152
103
  }
153
104
 
154
- export interface WebsiteUserAttributeListParams {
155
- /**
156
- * Number of website user attributes to return
157
- */
158
- limit?: string;
159
-
160
- /**
161
- * Unique identifier for the organization
162
- */
163
- organizationId?: string;
164
-
165
- /**
166
- * Unique identifier for the website
167
- */
168
- websiteId?: string;
169
- }
170
-
171
105
  export interface WebsiteUserAttributeDeleteParams {
172
106
  /**
173
107
  * Unique identifier for the website user attribute
@@ -190,18 +124,14 @@ WebsiteUserAttributes.Values = Values;
190
124
  export declare namespace WebsiteUserAttributes {
191
125
  export {
192
126
  type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
193
- type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
194
127
  type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
195
128
  type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
196
- type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
197
129
  type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
198
130
  };
199
131
 
200
132
  export {
201
133
  Values as Values,
202
134
  type ValueCreateResponse as ValueCreateResponse,
203
- type ValueListResponse as ValueListResponse,
204
135
  type ValueCreateParams as ValueCreateParams,
205
- type ValueListParams as ValueListParams,
206
136
  };
207
137
  }
@@ -31,10 +31,4 @@ export {
31
31
  type UserDisconnectParams,
32
32
  type UserVerifyParams,
33
33
  } from './users/users';
34
- export {
35
- Websites,
36
- type WebsiteCreateResponse,
37
- type WebsiteListResponse,
38
- type WebsiteCreateParams,
39
- type WebsiteListParams,
40
- } from './websites/websites';
34
+ export { Websites, type WebsiteListResponse, type WebsiteListParams } from './websites/websites';
@@ -98,8 +98,6 @@ export {
98
98
  Transactions,
99
99
  type TransactionCreateTransactionResponse,
100
100
  type TransactionGetTransactionEntriesResponse,
101
- type TransactionListRuleChainsResponse,
102
101
  type TransactionCreateTransactionParams,
103
102
  type TransactionGetTransactionEntriesParams,
104
- type TransactionListRuleChainsParams,
105
103
  } from './transactions/index';
@@ -110,8 +110,6 @@ import {
110
110
  TransactionCreateTransactionResponse,
111
111
  TransactionGetTransactionEntriesParams,
112
112
  TransactionGetTransactionEntriesResponse,
113
- TransactionListRuleChainsParams,
114
- TransactionListRuleChainsResponse,
115
113
  Transactions,
116
114
  } from './transactions/transactions';
117
115
 
@@ -159,10 +157,8 @@ export declare namespace Loyalty {
159
157
  Transactions as Transactions,
160
158
  type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
161
159
  type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
162
- type TransactionListRuleChainsResponse as TransactionListRuleChainsResponse,
163
160
  type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
164
161
  type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
165
- type TransactionListRuleChainsParams as TransactionListRuleChainsParams,
166
162
  };
167
163
 
168
164
  export {
@@ -686,7 +686,8 @@ export namespace RuleEditListResponse {
686
686
  | 'goerli'
687
687
  | 'optimism_goerli'
688
688
  | 'arbitrumGoerli'
689
- | 'basecamp';
689
+ | 'basecamp'
690
+ | 'somnia';
690
691
  }
691
692
 
692
693
  /**
@@ -834,7 +835,8 @@ export namespace RuleEditListResponse {
834
835
  | 'goerli'
835
836
  | 'optimism_goerli'
836
837
  | 'arbitrumGoerli'
837
- | 'basecamp';
838
+ | 'basecamp'
839
+ | 'somnia';
838
840
 
839
841
  /**
840
842
  * Indicates if only in-range liquidity is rewarded.
@@ -1645,7 +1647,8 @@ export namespace RuleEditListResponse {
1645
1647
  | 'goerli'
1646
1648
  | 'optimism_goerli'
1647
1649
  | 'arbitrumGoerli'
1648
- | 'basecamp';
1650
+ | 'basecamp'
1651
+ | 'somnia';
1649
1652
  }
1650
1653
 
1651
1654
  /**
@@ -1793,7 +1796,8 @@ export namespace RuleEditListResponse {
1793
1796
  | 'goerli'
1794
1797
  | 'optimism_goerli'
1795
1798
  | 'arbitrumGoerli'
1796
- | 'basecamp';
1799
+ | 'basecamp'
1800
+ | 'somnia';
1797
1801
 
1798
1802
  /**
1799
1803
  * Indicates if only in-range liquidity is rewarded.
@@ -2659,7 +2663,8 @@ export namespace RuleEditRestoreResponse {
2659
2663
  | 'goerli'
2660
2664
  | 'optimism_goerli'
2661
2665
  | 'arbitrumGoerli'
2662
- | 'basecamp';
2666
+ | 'basecamp'
2667
+ | 'somnia';
2663
2668
  }
2664
2669
 
2665
2670
  /**
@@ -2807,7 +2812,8 @@ export namespace RuleEditRestoreResponse {
2807
2812
  | 'goerli'
2808
2813
  | 'optimism_goerli'
2809
2814
  | 'arbitrumGoerli'
2810
- | 'basecamp';
2815
+ | 'basecamp'
2816
+ | 'somnia';
2811
2817
 
2812
2818
  /**
2813
2819
  * Indicates if only in-range liquidity is rewarded.
@@ -3618,7 +3624,8 @@ export namespace RuleEditRestoreResponse {
3618
3624
  | 'goerli'
3619
3625
  | 'optimism_goerli'
3620
3626
  | 'arbitrumGoerli'
3621
- | 'basecamp';
3627
+ | 'basecamp'
3628
+ | 'somnia';
3622
3629
  }
3623
3630
 
3624
3631
  /**
@@ -3766,7 +3773,8 @@ export namespace RuleEditRestoreResponse {
3766
3773
  | 'goerli'
3767
3774
  | 'optimism_goerli'
3768
3775
  | 'arbitrumGoerli'
3769
- | 'basecamp';
3776
+ | 'basecamp'
3777
+ | 'somnia';
3770
3778
 
3771
3779
  /**
3772
3780
  * Indicates if only in-range liquidity is rewarded.
@@ -764,7 +764,8 @@ export namespace RuleGroupGetRuleGroupsResponse {
764
764
  | 'goerli'
765
765
  | 'optimism_goerli'
766
766
  | 'arbitrumGoerli'
767
- | 'basecamp';
767
+ | 'basecamp'
768
+ | 'somnia';
768
769
  }
769
770
 
770
771
  /**
@@ -912,7 +913,8 @@ export namespace RuleGroupGetRuleGroupsResponse {
912
913
  | 'goerli'
913
914
  | 'optimism_goerli'
914
915
  | 'arbitrumGoerli'
915
- | 'basecamp';
916
+ | 'basecamp'
917
+ | 'somnia';
916
918
 
917
919
  /**
918
920
  * Indicates if only in-range liquidity is rewarded.
@@ -419,7 +419,8 @@ export interface RuleCreateResponse {
419
419
  | 'goerli'
420
420
  | 'optimism_goerli'
421
421
  | 'arbitrumGoerli'
422
- | 'basecamp';
422
+ | 'basecamp'
423
+ | 'somnia';
423
424
 
424
425
  /**
425
426
  * OAuth credentials associated with the rule
@@ -949,7 +950,8 @@ export namespace RuleCreateResponse {
949
950
  | 'goerli'
950
951
  | 'optimism_goerli'
951
952
  | 'arbitrumGoerli'
952
- | 'basecamp';
953
+ | 'basecamp'
954
+ | 'somnia';
953
955
  }
954
956
 
955
957
  /**
@@ -1097,7 +1099,8 @@ export namespace RuleCreateResponse {
1097
1099
  | 'goerli'
1098
1100
  | 'optimism_goerli'
1099
1101
  | 'arbitrumGoerli'
1100
- | 'basecamp';
1102
+ | 'basecamp'
1103
+ | 'somnia';
1101
1104
 
1102
1105
  /**
1103
1106
  * Indicates if only in-range liquidity is rewarded.
@@ -1374,7 +1377,8 @@ export namespace RuleCreateResponse {
1374
1377
  | 'goerli'
1375
1378
  | 'optimism_goerli'
1376
1379
  | 'arbitrumGoerli'
1377
- | 'basecamp';
1380
+ | 'basecamp'
1381
+ | 'somnia';
1378
1382
 
1379
1383
  /**
1380
1384
  * Symbol of the collection.
@@ -1538,7 +1542,8 @@ export interface RuleUpdateResponse {
1538
1542
  | 'goerli'
1539
1543
  | 'optimism_goerli'
1540
1544
  | 'arbitrumGoerli'
1541
- | 'basecamp';
1545
+ | 'basecamp'
1546
+ | 'somnia';
1542
1547
 
1543
1548
  /**
1544
1549
  * ID for associated OAuth credentials
@@ -1628,7 +1633,8 @@ export namespace RuleUpdateResponse {
1628
1633
  | 'goerli'
1629
1634
  | 'optimism_goerli'
1630
1635
  | 'arbitrumGoerli'
1631
- | 'basecamp';
1636
+ | 'basecamp'
1637
+ | 'somnia';
1632
1638
 
1633
1639
  /**
1634
1640
  * Symbol of the collection.
@@ -2137,7 +2143,8 @@ export namespace RuleUpdateResponse {
2137
2143
  | 'goerli'
2138
2144
  | 'optimism_goerli'
2139
2145
  | 'arbitrumGoerli'
2140
- | 'basecamp';
2146
+ | 'basecamp'
2147
+ | 'somnia';
2141
2148
  }
2142
2149
 
2143
2150
  /**
@@ -2285,7 +2292,8 @@ export namespace RuleUpdateResponse {
2285
2292
  | 'goerli'
2286
2293
  | 'optimism_goerli'
2287
2294
  | 'arbitrumGoerli'
2288
- | 'basecamp';
2295
+ | 'basecamp'
2296
+ | 'somnia';
2289
2297
 
2290
2298
  /**
2291
2299
  * Indicates if only in-range liquidity is rewarded.
@@ -3205,7 +3213,8 @@ export namespace RuleListResponse {
3205
3213
  | 'goerli'
3206
3214
  | 'optimism_goerli'
3207
3215
  | 'arbitrumGoerli'
3208
- | 'basecamp';
3216
+ | 'basecamp'
3217
+ | 'somnia';
3209
3218
  }
3210
3219
 
3211
3220
  /**
@@ -3353,7 +3362,8 @@ export namespace RuleListResponse {
3353
3362
  | 'goerli'
3354
3363
  | 'optimism_goerli'
3355
3364
  | 'arbitrumGoerli'
3356
- | 'basecamp';
3365
+ | 'basecamp'
3366
+ | 'somnia';
3357
3367
 
3358
3368
  /**
3359
3369
  * Indicates if only in-range liquidity is rewarded.
@@ -3596,11 +3606,15 @@ export namespace RuleGetStatusResponse {
3596
3606
  export interface Data {
3597
3607
  loyaltyRuleId: string;
3598
3608
 
3599
- status: 'pending' | 'processing' | 'completed' | 'failed';
3600
-
3601
3609
  userId: string;
3602
3610
 
3603
3611
  message?: string;
3612
+
3613
+ /**
3614
+ * Status of the queued job, this is only returned if the job is queued and being
3615
+ * processed, this wil be retained for 10 minutes after the job is completed
3616
+ */
3617
+ status?: 'pending' | 'processing' | 'completed' | 'failed';
3604
3618
  }
3605
3619
  }
3606
3620
 
@@ -3864,7 +3878,8 @@ export interface RuleCreateParams {
3864
3878
  | 'goerli'
3865
3879
  | 'optimism_goerli'
3866
3880
  | 'arbitrumGoerli'
3867
- | 'basecamp';
3881
+ | 'basecamp'
3882
+ | 'somnia';
3868
3883
 
3869
3884
  /**
3870
3885
  * OAuth credentials associated with the rule
@@ -4394,7 +4409,8 @@ export namespace RuleCreateParams {
4394
4409
  | 'goerli'
4395
4410
  | 'optimism_goerli'
4396
4411
  | 'arbitrumGoerli'
4397
- | 'basecamp';
4412
+ | 'basecamp'
4413
+ | 'somnia';
4398
4414
  }
4399
4415
 
4400
4416
  /**
@@ -4542,7 +4558,8 @@ export namespace RuleCreateParams {
4542
4558
  | 'goerli'
4543
4559
  | 'optimism_goerli'
4544
4560
  | 'arbitrumGoerli'
4545
- | 'basecamp';
4561
+ | 'basecamp'
4562
+ | 'somnia';
4546
4563
 
4547
4564
  /**
4548
4565
  * Indicates if only in-range liquidity is rewarded.
@@ -4819,7 +4836,8 @@ export namespace RuleCreateParams {
4819
4836
  | 'goerli'
4820
4837
  | 'optimism_goerli'
4821
4838
  | 'arbitrumGoerli'
4822
- | 'basecamp';
4839
+ | 'basecamp'
4840
+ | 'somnia';
4823
4841
 
4824
4842
  /**
4825
4843
  * Symbol of the collection.
@@ -4981,7 +4999,8 @@ export interface RuleUpdateParams {
4981
4999
  | 'goerli'
4982
5000
  | 'optimism_goerli'
4983
5001
  | 'arbitrumGoerli'
4984
- | 'basecamp';
5002
+ | 'basecamp'
5003
+ | 'somnia';
4985
5004
 
4986
5005
  /**
4987
5006
  * ID for associated OAuth credentials
@@ -5071,7 +5090,8 @@ export namespace RuleUpdateParams {
5071
5090
  | 'goerli'
5072
5091
  | 'optimism_goerli'
5073
5092
  | 'arbitrumGoerli'
5074
- | 'basecamp';
5093
+ | 'basecamp'
5094
+ | 'somnia';
5075
5095
 
5076
5096
  /**
5077
5097
  * Symbol of the collection.
@@ -5580,7 +5600,8 @@ export namespace RuleUpdateParams {
5580
5600
  | 'goerli'
5581
5601
  | 'optimism_goerli'
5582
5602
  | 'arbitrumGoerli'
5583
- | 'basecamp';
5603
+ | 'basecamp'
5604
+ | 'somnia';
5584
5605
  }
5585
5606
 
5586
5607
  /**
@@ -5728,7 +5749,8 @@ export namespace RuleUpdateParams {
5728
5749
  | 'goerli'
5729
5750
  | 'optimism_goerli'
5730
5751
  | 'arbitrumGoerli'
5731
- | 'basecamp';
5752
+ | 'basecamp'
5753
+ | 'somnia';
5732
5754
 
5733
5755
  /**
5734
5756
  * Indicates if only in-range liquidity is rewarded.
@@ -5966,11 +5988,6 @@ export interface RuleListParams {
5966
5988
  */
5967
5989
  collectionAddress?: string;
5968
5990
 
5969
- /**
5970
- * If true this will only return loyalty rule chains
5971
- */
5972
- includeLoyaltyRuleChains?: 'true' | 'false';
5973
-
5974
5991
  /**
5975
5992
  * If true this will only return active rules, the rules for which the startTime is
5976
5993
  * in the past and the endTime is in the future
@@ -6071,8 +6088,25 @@ export interface RuleCompleteParams {
6071
6088
  }
6072
6089
 
6073
6090
  export interface RuleGetStatusParams {
6091
+ /**
6092
+ * Number of items to return
6093
+ */
6094
+ limit?: number | null;
6095
+
6096
+ /**
6097
+ * Unique identifier for the loyalty rule[s]
6098
+ */
6099
+ loyaltyRuleId?: string | Array<string>;
6100
+
6074
6101
  organizationId?: string;
6075
6102
 
6103
+ /**
6104
+ * Starting after item
6105
+ */
6106
+ startingAfter?: string;
6107
+
6108
+ userGroupId?: string;
6109
+
6076
6110
  userId?: string;
6077
6111
 
6078
6112
  walletAddress?: string;
@@ -1,18 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- RuleStatuses,
5
- type RuleStatusUpdateResponse,
6
- type RuleStatusListResponse,
7
- type RuleStatusUpdateParams,
8
- type RuleStatusListParams,
9
- } from './rule-statuses';
3
+ export { RuleStatuses, type RuleStatusUpdateResponse, type RuleStatusUpdateParams } from './rule-statuses';
10
4
  export {
11
5
  Transactions,
12
6
  type TransactionCreateTransactionResponse,
13
7
  type TransactionGetTransactionEntriesResponse,
14
- type TransactionListRuleChainsResponse,
15
8
  type TransactionCreateTransactionParams,
16
9
  type TransactionGetTransactionEntriesParams,
17
- type TransactionListRuleChainsParams,
18
10
  } from './transactions';
@@ -1,7 +1,6 @@
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
4
  import * as Core from '../../../core';
6
5
 
7
6
  export class RuleStatuses extends APIResource {
@@ -22,27 +21,6 @@ export class RuleStatuses extends APIResource {
22
21
  ): Core.APIPromise<RuleStatusUpdateResponse> {
23
22
  return this._client.post('/api/loyalty/rule_statuses', { body, ...options });
24
23
  }
25
-
26
- /**
27
- * Retrieve loyalty rule statuses
28
- *
29
- * @example
30
- * ```ts
31
- * const ruleStatuses =
32
- * await client.loyalty.transactions.ruleStatuses.list();
33
- * ```
34
- */
35
- list(query?: RuleStatusListParams, options?: Core.RequestOptions): Core.APIPromise<RuleStatusListResponse>;
36
- list(options?: Core.RequestOptions): Core.APIPromise<RuleStatusListResponse>;
37
- list(
38
- query: RuleStatusListParams | Core.RequestOptions = {},
39
- options?: Core.RequestOptions,
40
- ): Core.APIPromise<RuleStatusListResponse> {
41
- if (isRequestOptions(query)) {
42
- return this.list({}, query);
43
- }
44
- return this._client.get('/api/loyalty/rule_statuses', { query, ...options });
45
- }
46
24
  }
47
25
 
48
26
  export interface RuleStatusUpdateResponse {
@@ -63,32 +41,6 @@ export interface RuleStatusUpdateResponse {
63
41
  websiteId: string;
64
42
  }
65
43
 
66
- export interface RuleStatusListResponse {
67
- data: Array<RuleStatusListResponse.Data>;
68
-
69
- hasNextPage: boolean;
70
- }
71
-
72
- export namespace RuleStatusListResponse {
73
- export interface Data {
74
- id: string;
75
-
76
- createdAt: string;
77
-
78
- loyaltyRuleId: string;
79
-
80
- organizationId: string;
81
-
82
- progress: number;
83
-
84
- updatedAt: string;
85
-
86
- userId: string;
87
-
88
- websiteId: string;
89
- }
90
- }
91
-
92
44
  export interface RuleStatusUpdateParams {
93
45
  /**
94
46
  * Unique identifier for the loyalty rule
@@ -127,52 +79,9 @@ export interface RuleStatusUpdateParams {
127
79
  websiteId?: string;
128
80
  }
129
81
 
130
- export interface RuleStatusListParams {
131
- /**
132
- * Number of items to return
133
- */
134
- limit?: number | null;
135
-
136
- /**
137
- * Unique identifier for the loyalty rule[s]
138
- */
139
- loyaltyRuleId?: string | Array<string>;
140
-
141
- /**
142
- * Unique identifier for the organization
143
- */
144
- organizationId?: string;
145
-
146
- /**
147
- * Starting after item
148
- */
149
- startingAfter?: string;
150
-
151
- userGroupExternalIdentifier?: string;
152
-
153
- userGroupId?: string;
154
-
155
- /**
156
- * User ID(s) to filter accounts by
157
- */
158
- userId?: string | Array<string>;
159
-
160
- /**
161
- * Wallet address(es) to filter accounts by
162
- */
163
- walletAddress?: string | Array<string>;
164
-
165
- /**
166
- * Unique identifier for the website
167
- */
168
- websiteId?: string;
169
- }
170
-
171
82
  export declare namespace RuleStatuses {
172
83
  export {
173
84
  type RuleStatusUpdateResponse as RuleStatusUpdateResponse,
174
- type RuleStatusListResponse as RuleStatusListResponse,
175
85
  type RuleStatusUpdateParams as RuleStatusUpdateParams,
176
- type RuleStatusListParams as RuleStatusListParams,
177
86
  };
178
87
  }