@snagsolutions/sdk 0.1.0-alpha.45 → 0.1.0-alpha.47

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 (140) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +18 -16
  3. package/index.d.mts +4 -4
  4. package/index.d.ts +4 -4
  5. package/index.d.ts.map +1 -1
  6. package/index.js +1 -1
  7. package/index.js.map +1 -1
  8. package/index.mjs +1 -1
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/assets.d.ts +7 -1
  12. package/resources/assets.d.ts.map +1 -1
  13. package/resources/auctions/auctions.d.ts +266 -0
  14. package/resources/auctions/auctions.d.ts.map +1 -0
  15. package/resources/auctions/auctions.js +62 -0
  16. package/resources/auctions/auctions.js.map +1 -0
  17. package/resources/auctions/auctions.mjs +35 -0
  18. package/resources/auctions/auctions.mjs.map +1 -0
  19. package/resources/auctions/index.d.ts +3 -0
  20. package/resources/auctions/index.d.ts.map +1 -0
  21. package/resources/auctions/index.js +9 -0
  22. package/resources/auctions/index.js.map +1 -0
  23. package/resources/auctions/index.mjs +4 -0
  24. package/resources/auctions/index.mjs.map +1 -0
  25. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  26. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  27. package/resources/auctions/website-user-attributes/index.js +9 -0
  28. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  29. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  30. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  31. package/resources/auctions/website-user-attributes/values.d.ts +94 -0
  32. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  33. package/resources/auctions/website-user-attributes/values.js +21 -0
  34. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  35. package/resources/auctions/website-user-attributes/values.mjs +17 -0
  36. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  37. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +108 -0
  38. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  39. package/resources/auctions/website-user-attributes/website-user-attributes.js +58 -0
  40. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  41. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +31 -0
  42. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  43. package/resources/auctions/website-user-attributes.d.ts +2 -0
  44. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  45. package/resources/auctions/website-user-attributes.js +19 -0
  46. package/resources/auctions/website-user-attributes.js.map +1 -0
  47. package/resources/auctions/website-user-attributes.mjs +3 -0
  48. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  49. package/resources/auctions.d.ts +1 -133
  50. package/resources/auctions.d.ts.map +1 -1
  51. package/resources/auctions.js +15 -22
  52. package/resources/auctions.js.map +1 -1
  53. package/resources/auctions.mjs +1 -20
  54. package/resources/auctions.mjs.map +1 -1
  55. package/resources/index.d.ts +2 -2
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -1
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +1 -1
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/loyalty/accounts.d.ts +2 -2
  62. package/resources/loyalty/accounts.d.ts.map +1 -1
  63. package/resources/loyalty/index.d.ts +1 -1
  64. package/resources/loyalty/index.d.ts.map +1 -1
  65. package/resources/loyalty/index.js +2 -2
  66. package/resources/loyalty/index.js.map +1 -1
  67. package/resources/loyalty/index.mjs +1 -1
  68. package/resources/loyalty/index.mjs.map +1 -1
  69. package/resources/loyalty/loyalty.d.ts +3 -3
  70. package/resources/loyalty/loyalty.d.ts.map +1 -1
  71. package/resources/loyalty/loyalty.js +2 -2
  72. package/resources/loyalty/loyalty.js.map +1 -1
  73. package/resources/loyalty/loyalty.mjs +2 -2
  74. package/resources/loyalty/loyalty.mjs.map +1 -1
  75. package/resources/loyalty/rule-edits.d.ts +16 -0
  76. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  77. package/resources/loyalty/rule-groups.d.ts +4 -0
  78. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  79. package/resources/loyalty/rules.d.ts +20 -0
  80. package/resources/loyalty/rules.d.ts.map +1 -1
  81. package/resources/loyalty/transactions/index.d.ts +3 -0
  82. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  83. package/resources/loyalty/transactions/index.js +9 -0
  84. package/resources/loyalty/transactions/index.js.map +1 -0
  85. package/resources/loyalty/transactions/index.mjs +4 -0
  86. package/resources/loyalty/transactions/index.mjs.map +1 -0
  87. package/resources/loyalty/transactions/rule-statuses.d.ts +104 -0
  88. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  89. package/resources/loyalty/transactions/rule-statuses.js +22 -0
  90. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  91. package/resources/loyalty/transactions/rule-statuses.mjs +18 -0
  92. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  93. package/resources/loyalty/transactions/transactions.d.ts +288 -0
  94. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  95. package/resources/loyalty/transactions/transactions.js +58 -0
  96. package/resources/loyalty/transactions/transactions.js.map +1 -0
  97. package/resources/loyalty/transactions/transactions.mjs +31 -0
  98. package/resources/loyalty/transactions/transactions.mjs.map +1 -0
  99. package/resources/loyalty/transactions.d.ts +1 -257
  100. package/resources/loyalty/transactions.d.ts.map +1 -1
  101. package/resources/loyalty/transactions.js +15 -18
  102. package/resources/loyalty/transactions.js.map +1 -1
  103. package/resources/loyalty/transactions.mjs +1 -16
  104. package/resources/loyalty/transactions.mjs.map +1 -1
  105. package/resources/users/index.d.ts +1 -1
  106. package/resources/users/index.d.ts.map +1 -1
  107. package/resources/users/index.js.map +1 -1
  108. package/resources/users/index.mjs.map +1 -1
  109. package/resources/users/users.d.ts +60 -1
  110. package/resources/users/users.d.ts.map +1 -1
  111. package/resources/users/users.js +9 -0
  112. package/resources/users/users.js.map +1 -1
  113. package/resources/users/users.mjs +9 -0
  114. package/resources/users/users.mjs.map +1 -1
  115. package/src/index.ts +17 -1
  116. package/src/resources/assets.ts +8 -1
  117. package/src/resources/auctions/auctions.ts +417 -0
  118. package/src/resources/auctions/index.ts +18 -0
  119. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  120. package/src/resources/auctions/website-user-attributes/values.ts +137 -0
  121. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +183 -0
  122. package/src/resources/auctions/website-user-attributes.ts +3 -0
  123. package/src/resources/auctions.ts +1 -207
  124. package/src/resources/index.ts +11 -1
  125. package/src/resources/loyalty/accounts.ts +2 -2
  126. package/src/resources/loyalty/index.ts +3 -1
  127. package/src/resources/loyalty/loyalty.ts +6 -2
  128. package/src/resources/loyalty/rule-edits.ts +20 -0
  129. package/src/resources/loyalty/rule-groups.ts +5 -0
  130. package/src/resources/loyalty/rules.ts +25 -0
  131. package/src/resources/loyalty/transactions/index.ts +18 -0
  132. package/src/resources/loyalty/transactions/rule-statuses.ts +160 -0
  133. package/src/resources/loyalty/transactions/transactions.ts +515 -0
  134. package/src/resources/loyalty/transactions.ts +1 -453
  135. package/src/resources/users/index.ts +4 -0
  136. package/src/resources/users/users.ts +88 -0
  137. package/src/version.ts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -0,0 +1,35 @@
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
+ import * as WebsiteUserAttributesAPI from "./website-user-attributes/website-user-attributes.mjs";
5
+ import { WebsiteUserAttributes, } from "./website-user-attributes/website-user-attributes.mjs";
6
+ export class Auctions extends APIResource {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.websiteUserAttributes = new WebsiteUserAttributesAPI.WebsiteUserAttributes(this._client);
10
+ }
11
+ /**
12
+ * This endpoint allows you to fetch page sections
13
+ */
14
+ getPageSections(query, options) {
15
+ return this._client.get('/api/page_sections', { query, ...options });
16
+ }
17
+ listAuctionBids(query = {}, options) {
18
+ if (isRequestOptions(query)) {
19
+ return this.listAuctionBids({}, query);
20
+ }
21
+ return this._client.get('/api/auction_bids', {
22
+ query,
23
+ ...options,
24
+ headers: { Accept: '*/*', ...options?.headers },
25
+ });
26
+ }
27
+ /**
28
+ * Returns a list of auctions with optional filtering and pagination.
29
+ */
30
+ listAuctions(options) {
31
+ return this._client.get('/api/auctions', options);
32
+ }
33
+ }
34
+ Auctions.WebsiteUserAttributes = WebsiteUserAttributes;
35
+ //# sourceMappingURL=auctions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auctions.mjs","sourceRoot":"","sources":["../../src/resources/auctions/auctions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,wBAAwB;OAC7B,EAOL,qBAAqB,GACtB;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqCrE,CAAC;IAnCC;;OAEG;IACH,eAAe,CACb,KAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAOD,eAAe,CACb,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;YAC3C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAsVD,QAAQ,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Auctions, type AuctionGetPageSectionsResponse, type AuctionListAuctionsResponse, type AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams, } from "./auctions.js";
2
+ export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,GAClC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,9 @@
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.WebsiteUserAttributes = exports.Auctions = void 0;
5
+ var auctions_1 = require("./auctions.js");
6
+ Object.defineProperty(exports, "Auctions", { enumerable: true, get: function () { return auctions_1.Auctions; } });
7
+ var index_1 = require("./website-user-attributes/index.js");
8
+ Object.defineProperty(exports, "WebsiteUserAttributes", { enumerable: true, get: function () { return index_1.WebsiteUserAttributes; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,4DAQyC;AAPvC,8GAAA,qBAAqB,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Auctions, } from "./auctions.mjs";
3
+ export { WebsiteUserAttributes, } from "./website-user-attributes/index.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAKT;OACM,EACL,qBAAqB,GAOtB"}
@@ -0,0 +1,3 @@
1
+ export { Values, type ValueCreateResponse, type ValueListResponse, type ValueCreateParams, type ValueListParams, } from "./values.js";
2
+ export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,9 @@
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.WebsiteUserAttributes = exports.Values = void 0;
5
+ var values_1 = require("./values.js");
6
+ Object.defineProperty(exports, "Values", { enumerable: true, get: function () { return values_1.Values; } });
7
+ var website_user_attributes_1 = require("./website-user-attributes.js");
8
+ Object.defineProperty(exports, "WebsiteUserAttributes", { enumerable: true, get: function () { return website_user_attributes_1.WebsiteUserAttributes; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,wEAQmC;AAPjC,gIAAA,qBAAqB,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Values, } from "./values.mjs";
3
+ export { WebsiteUserAttributes, } from "./website-user-attributes.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EACL,qBAAqB,GAOtB"}
@@ -0,0 +1,94 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ export declare class Values extends APIResource {
4
+ /**
5
+ * Create a new website user attribute value
6
+ */
7
+ create(body: ValueCreateParams, options?: Core.RequestOptions): Core.APIPromise<ValueCreateResponse>;
8
+ /**
9
+ * Get all website user attribute values
10
+ */
11
+ list(query: ValueListParams, options?: Core.RequestOptions): Core.APIPromise<ValueListResponse>;
12
+ }
13
+ export type ValueCreateResponse = Array<ValueCreateResponse.ValueCreateResponseItem>;
14
+ export declare namespace ValueCreateResponse {
15
+ interface ValueCreateResponseItem {
16
+ id: string;
17
+ createdAt: string;
18
+ organizationId: string;
19
+ updatedAt: string;
20
+ userId: string;
21
+ value: string;
22
+ websiteId: string;
23
+ websiteUserAttributeId: string;
24
+ }
25
+ }
26
+ export interface ValueListResponse {
27
+ data: Array<ValueListResponse.Data>;
28
+ hasNextPage: boolean;
29
+ }
30
+ export declare namespace ValueListResponse {
31
+ interface Data {
32
+ id: string;
33
+ createdAt: string;
34
+ customFieldId: string;
35
+ organizationId: string;
36
+ updatedAt: string;
37
+ userId: string;
38
+ value: string;
39
+ websiteId: string;
40
+ }
41
+ }
42
+ export interface ValueCreateParams {
43
+ data: Array<ValueCreateParams.Data>;
44
+ /**
45
+ * Unique identifier for the organization
46
+ */
47
+ organizationId: string;
48
+ /**
49
+ * Unique identifier for the website
50
+ */
51
+ websiteId: string;
52
+ }
53
+ export declare namespace ValueCreateParams {
54
+ interface Data {
55
+ /**
56
+ * Unique identifier for the user
57
+ */
58
+ userId: string;
59
+ /**
60
+ * Value for the website user attribute
61
+ */
62
+ value: string;
63
+ /**
64
+ * Unique identifier for the website user attribute
65
+ */
66
+ websiteUserAttributeId: string;
67
+ /**
68
+ * Unique identifier for the website user attribute value
69
+ */
70
+ id?: string;
71
+ }
72
+ }
73
+ export interface ValueListParams {
74
+ /**
75
+ * Unique identifier for the user
76
+ */
77
+ userIds: string | Array<string>;
78
+ /**
79
+ * Number of website user attributes to return
80
+ */
81
+ limit?: string;
82
+ /**
83
+ * Unique identifier for the organization
84
+ */
85
+ organizationId?: string;
86
+ /**
87
+ * Unique identifier for the website
88
+ */
89
+ websiteId?: string;
90
+ }
91
+ export declare namespace Values {
92
+ export { type ValueCreateResponse as ValueCreateResponse, type ValueListResponse as ValueListResponse, type ValueCreateParams as ValueCreateParams, type ValueListParams as ValueListParams, };
93
+ }
94
+ //# sourceMappingURL=values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/values.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAIpG;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;CAGhG;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC;AAErF,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,uBAAuB;QACtC,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,cAAc,EAAE,MAAM,CAAC;QAEvB,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;QAEf,KAAK,EAAE,MAAM,CAAC;QAEd,SAAS,EAAE,MAAM,CAAC;QAElB,sBAAsB,EAAE,MAAM,CAAC;KAChC;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,aAAa,EAAE,MAAM,CAAC;QAEtB,cAAc,EAAE,MAAM,CAAC;QAEvB,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;QAEf,KAAK,EAAE,MAAM,CAAC;QAEd,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEpC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,21 @@
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.Values = void 0;
5
+ const resource_1 = require("../../../resource.js");
6
+ class Values extends resource_1.APIResource {
7
+ /**
8
+ * Create a new website user attribute value
9
+ */
10
+ create(body, options) {
11
+ return this._client.post('/api/website_user_attributes/values', { body, ...options });
12
+ }
13
+ /**
14
+ * Get all website user attribute values
15
+ */
16
+ list(query, options) {
17
+ return this._client.get('/api/website_user_attributes/values', { query, ...options });
18
+ }
19
+ }
20
+ exports.Values = Values;
21
+ //# sourceMappingURL=values.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"values.js","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/values.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AAdD,wBAcC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../resource.mjs";
3
+ export class Values extends APIResource {
4
+ /**
5
+ * Create a new website user attribute value
6
+ */
7
+ create(body, options) {
8
+ return this._client.post('/api/website_user_attributes/values', { body, ...options });
9
+ }
10
+ /**
11
+ * Get all website user attribute values
12
+ */
13
+ list(query, options) {
14
+ return this._client.get('/api/website_user_attributes/values', { query, ...options });
15
+ }
16
+ }
17
+ //# sourceMappingURL=values.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
@@ -0,0 +1,108 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ import * as ValuesAPI from "./values.js";
4
+ import { ValueCreateParams, ValueCreateResponse, ValueListParams, ValueListResponse, Values } from "./values.js";
5
+ export declare class WebsiteUserAttributes extends APIResource {
6
+ values: ValuesAPI.Values;
7
+ /**
8
+ * Create a new website user attribute
9
+ */
10
+ create(body: WebsiteUserAttributeCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeCreateResponse>;
11
+ /**
12
+ * Get all website user attributes
13
+ */
14
+ list(query?: WebsiteUserAttributeListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeListResponse>;
15
+ list(options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeListResponse>;
16
+ /**
17
+ * Delete a website user attribute
18
+ */
19
+ delete(pathId: string, body: WebsiteUserAttributeDeleteParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeDeleteResponse>;
20
+ }
21
+ export interface WebsiteUserAttributeCreateResponse {
22
+ data: Array<WebsiteUserAttributeCreateResponse.Data>;
23
+ }
24
+ export declare namespace WebsiteUserAttributeCreateResponse {
25
+ interface Data {
26
+ id: string;
27
+ createdAt: string;
28
+ deletedAt: string | null;
29
+ label: string;
30
+ organizationId: string;
31
+ updatedAt: string;
32
+ websiteId: string;
33
+ }
34
+ }
35
+ export interface WebsiteUserAttributeListResponse {
36
+ data: Array<WebsiteUserAttributeListResponse.Data>;
37
+ hasNextPage: boolean;
38
+ }
39
+ export declare namespace WebsiteUserAttributeListResponse {
40
+ interface Data {
41
+ id: string;
42
+ createdAt: string;
43
+ deletedAt: string | null;
44
+ label: string;
45
+ organizationId: string;
46
+ updatedAt: string;
47
+ websiteId: string;
48
+ }
49
+ }
50
+ export interface WebsiteUserAttributeDeleteResponse {
51
+ message: string;
52
+ }
53
+ export interface WebsiteUserAttributeCreateParams {
54
+ data: Array<WebsiteUserAttributeCreateParams.Data>;
55
+ /**
56
+ * Unique identifier for the organization
57
+ */
58
+ organizationId?: string;
59
+ /**
60
+ * Unique identifier for the website
61
+ */
62
+ websiteId?: string;
63
+ }
64
+ export declare namespace WebsiteUserAttributeCreateParams {
65
+ interface Data {
66
+ /**
67
+ * Label for the website user attribute
68
+ */
69
+ label: string;
70
+ /**
71
+ * Unique identifier for the website user attribute
72
+ */
73
+ id?: string;
74
+ }
75
+ }
76
+ export interface WebsiteUserAttributeListParams {
77
+ /**
78
+ * Number of website user attributes to return
79
+ */
80
+ limit?: string;
81
+ /**
82
+ * Unique identifier for the organization
83
+ */
84
+ organizationId?: string;
85
+ /**
86
+ * Unique identifier for the website
87
+ */
88
+ websiteId?: string;
89
+ }
90
+ export interface WebsiteUserAttributeDeleteParams {
91
+ /**
92
+ * Unique identifier for the website user attribute
93
+ */
94
+ body_id: string;
95
+ /**
96
+ * Unique identifier for the organization
97
+ */
98
+ organizationId: string;
99
+ /**
100
+ * Unique identifier for the website
101
+ */
102
+ websiteId: string;
103
+ }
104
+ export declare namespace WebsiteUserAttributes {
105
+ export { type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams, };
106
+ export { Values as Values, type ValueCreateResponse as ValueCreateResponse, type ValueListResponse as ValueListResponse, type ValueCreateParams as ValueCreateParams, type ValueListParams as ValueListParams, };
107
+ }
108
+ //# sourceMappingURL=website-user-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.d.ts","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/website-user-attributes.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.WebsiteUserAttributes = void 0;
28
+ const resource_1 = require("../../../resource.js");
29
+ const core_1 = require("../../../core.js");
30
+ const ValuesAPI = __importStar(require("./values.js"));
31
+ const values_1 = require("./values.js");
32
+ class WebsiteUserAttributes extends resource_1.APIResource {
33
+ constructor() {
34
+ super(...arguments);
35
+ this.values = new ValuesAPI.Values(this._client);
36
+ }
37
+ /**
38
+ * Create a new website user attribute
39
+ */
40
+ create(body, options) {
41
+ return this._client.post('/api/website_user_attributes', { body, ...options });
42
+ }
43
+ list(query = {}, options) {
44
+ if ((0, core_1.isRequestOptions)(query)) {
45
+ return this.list({}, query);
46
+ }
47
+ return this._client.get('/api/website_user_attributes', { query, ...options });
48
+ }
49
+ /**
50
+ * Delete a website user attribute
51
+ */
52
+ delete(pathId, body, options) {
53
+ return this._client.delete(`/api/website_user_attributes/${pathId}`, { body, ...options });
54
+ }
55
+ }
56
+ exports.WebsiteUserAttributes = WebsiteUserAttributes;
57
+ WebsiteUserAttributes.Values = values_1.Values;
58
+ //# sourceMappingURL=website-user-attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.js","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/website-user-attributes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAEjD,uDAAsC;AACtC,wCAA8G;AAE9G,MAAa,qBAAsB,SAAQ,sBAAW;IAAtD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwChE,CAAC;IAtCC;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAUD,IAAI,CACF,QAA8D,EAAE,EAChE,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,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAzCD,sDAyCC;AAkHD,qBAAqB,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -0,0 +1,31 @@
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
+ import * as ValuesAPI from "./values.mjs";
5
+ import { Values } from "./values.mjs";
6
+ export class WebsiteUserAttributes extends APIResource {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.values = new ValuesAPI.Values(this._client);
10
+ }
11
+ /**
12
+ * Create a new website user attribute
13
+ */
14
+ create(body, options) {
15
+ return this._client.post('/api/website_user_attributes', { body, ...options });
16
+ }
17
+ list(query = {}, options) {
18
+ if (isRequestOptions(query)) {
19
+ return this.list({}, query);
20
+ }
21
+ return this._client.get('/api/website_user_attributes', { query, ...options });
22
+ }
23
+ /**
24
+ * Delete a website user attribute
25
+ */
26
+ delete(pathId, body, options) {
27
+ return this._client.delete(`/api/website_user_attributes/${pathId}`, { body, ...options });
28
+ }
29
+ }
30
+ WebsiteUserAttributes.Values = Values;
31
+ //# sourceMappingURL=website-user-attributes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.mjs","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/website-user-attributes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,SAAS;OACd,EAA8E,MAAM,EAAE;AAE7F,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IAAtD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwChE,CAAC;IAtCC;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAUD,IAAI,CACF,QAA8D,EAAE,EAChE,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,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAkHD,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./website-user-attributes/index.js";
2
+ //# sourceMappingURL=website-user-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.d.ts","sourceRoot":"","sources":["../../src/resources/auctions/website-user-attributes.ts"],"names":[],"mappings":"AAEA,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./website-user-attributes/index.js"), exports);
19
+ //# sourceMappingURL=website-user-attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.js","sourceRoot":"","sources":["../../src/resources/auctions/website-user-attributes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,qEAAgD"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./website-user-attributes/index.mjs";
3
+ //# sourceMappingURL=website-user-attributes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-attributes.mjs","sourceRoot":"","sources":["../../src/resources/auctions/website-user-attributes.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,134 +1,2 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class Auctions extends APIResource {
4
- /**
5
- * Returns a list of auction bids with optional filtering and pagination.
6
- */
7
- listAuctionBids(query?: AuctionListAuctionBidsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
8
- listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<void>;
9
- /**
10
- * Returns a list of auctions with optional filtering and pagination.
11
- */
12
- listAuctions(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionsResponse>;
13
- }
14
- /**
15
- * Schema for the response when fetching auctions
16
- */
17
- export interface AuctionListAuctionsResponse {
18
- data: Array<AuctionListAuctionsResponse.Data>;
19
- hasNextPage: boolean;
20
- }
21
- export declare namespace AuctionListAuctionsResponse {
22
- interface Data {
23
- id: string;
24
- auctionBids: Array<Data.AuctionBid>;
25
- auctionItems: Array<Data.AuctionItem>;
26
- biddersOwnCollectionAddresses: Array<string>;
27
- createdAt: string;
28
- currencyAddress: string | null;
29
- currencyDecimals: number;
30
- deletedAt: string | null;
31
- description: string;
32
- endsAt: string;
33
- extendedDurationInSeconds: number | null;
34
- hideBids: boolean;
35
- /**
36
- * Schema representing a loyalty currency
37
- */
38
- loyaltyCurrency: Data.LoyaltyCurrency | null;
39
- loyaltyCurrencyId: string | null;
40
- minBidAmount: string;
41
- minBidIncrement: string | null;
42
- mintingContractId: string;
43
- name: string;
44
- network: 'ethereum' | 'zksync';
45
- organizationId: string;
46
- reservePrice: string | null;
47
- signature: string;
48
- startsAt: string;
49
- status: 'in_progress' | 'completed' | 'cancelled';
50
- type: 'first_price' | 'second_price' | 'english';
51
- updatedAt: string;
52
- userId: string;
53
- websiteId: string;
54
- }
55
- namespace Data {
56
- /**
57
- * Schema representing an auction bid
58
- */
59
- interface AuctionBid {
60
- id: string;
61
- amount: string;
62
- createdAt: string;
63
- }
64
- interface AuctionItem {
65
- id: string;
66
- /**
67
- * Schema representing a minting contract asset
68
- */
69
- mintingContractAsset: AuctionItem.MintingContractAsset;
70
- quantity: number;
71
- sortId: number;
72
- }
73
- namespace AuctionItem {
74
- /**
75
- * Schema representing a minting contract asset
76
- */
77
- interface MintingContractAsset {
78
- id: string;
79
- }
80
- }
81
- /**
82
- * Schema representing a loyalty currency
83
- */
84
- interface LoyaltyCurrency {
85
- id: string;
86
- decimals: number;
87
- imageUrl: string | null;
88
- name: string;
89
- symbol: string;
90
- }
91
- }
92
- }
93
- export interface AuctionListAuctionBidsParams {
94
- /**
95
- * The bid ID
96
- */
97
- id?: string;
98
- /**
99
- * ID of the auction
100
- */
101
- auctionId?: string;
102
- /**
103
- * Maximum number of bids to return
104
- */
105
- limit?: number;
106
- /**
107
- * ID of the organization
108
- */
109
- organizationId?: string;
110
- /**
111
- * Pagination cursor to start after a specific bid ID
112
- */
113
- startingAfter?: string;
114
- /**
115
- * Status of the bid
116
- */
117
- status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
118
- /**
119
- * ID of the user who made the bid
120
- */
121
- userId?: string;
122
- /**
123
- * Wallet address of the bidder
124
- */
125
- walletAddress?: string;
126
- /**
127
- * ID of the website
128
- */
129
- websiteId?: string;
130
- }
131
- export declare namespace Auctions {
132
- export { type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
133
- }
1
+ export * from "./auctions/index.js";
134
2
  //# sourceMappingURL=auctions.d.ts.map