@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
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Referral, } from "./referral.mjs";
3
+ export { Users, } from "./users.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/assets/referral/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAGT;OACM,EACL,KAAK,GAKN"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ import * as UsersAPI from "./users.js";
4
+ import { UserCreateReferralUserParams, UserCreateReferralUserResponse, UserGetReferralsParams, UserGetReferralsResponse, Users } from "./users.js";
5
+ export declare class Referral extends APIResource {
6
+ users: UsersAPI.Users;
7
+ /**
8
+ * This endpoint allows you to create a referral code
9
+ */
10
+ createReferralCode(body?: ReferralCreateReferralCodeParams, options?: Core.RequestOptions): Core.APIPromise<ReferralCreateReferralCodeResponse>;
11
+ createReferralCode(options?: Core.RequestOptions): Core.APIPromise<ReferralCreateReferralCodeResponse>;
12
+ }
13
+ export interface ReferralCreateReferralCodeResponse {
14
+ id: string;
15
+ createdAt: string;
16
+ deletedAt: string | null;
17
+ organizationId: string;
18
+ referralCode: string;
19
+ updatedAt: string;
20
+ userId: string;
21
+ websiteId: string;
22
+ }
23
+ export interface ReferralCreateReferralCodeParams {
24
+ userId?: string;
25
+ }
26
+ export declare namespace Referral {
27
+ export { type ReferralCreateReferralCodeResponse as ReferralCreateReferralCodeResponse, type ReferralCreateReferralCodeParams as ReferralCreateReferralCodeParams, };
28
+ export { Users as Users, type UserCreateReferralUserResponse as UserCreateReferralUserResponse, type UserGetReferralsResponse as UserGetReferralsResponse, type UserCreateReferralUserParams as UserCreateReferralUserParams, type UserGetReferralsParams as UserGetReferralsParams, };
29
+ }
30
+ //# sourceMappingURL=referral.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referral.d.ts","sourceRoot":"","sources":["../../../src/resources/assets/referral/referral.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,kBAAkB,CAChB,IAAI,CAAC,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC;IACtD,kBAAkB,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAUvG;AAED,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,cAAc,EAAE,MAAM,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,46 @@
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.Referral = void 0;
28
+ const resource_1 = require("../../../resource.js");
29
+ const core_1 = require("../../../core.js");
30
+ const UsersAPI = __importStar(require("./users.js"));
31
+ const users_1 = require("./users.js");
32
+ class Referral extends resource_1.APIResource {
33
+ constructor() {
34
+ super(...arguments);
35
+ this.users = new UsersAPI.Users(this._client);
36
+ }
37
+ createReferralCode(body = {}, options) {
38
+ if ((0, core_1.isRequestOptions)(body)) {
39
+ return this.createReferralCode({}, body);
40
+ }
41
+ return this._client.post('/api/referral/codes', { body, ...options });
42
+ }
43
+ }
44
+ exports.Referral = Referral;
45
+ Referral.Users = users_1.Users;
46
+ //# sourceMappingURL=referral.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referral.js","sourceRoot":"","sources":["../../../src/resources/assets/referral/referral.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAEjD,qDAAoC;AACpC,sCAMiB;AAEjB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmB3D,CAAC;IATC,kBAAkB,CAChB,OAA+D,EAAE,EACjE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AApBD,4BAoBC;AAwBD,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
@@ -0,0 +1,19 @@
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 UsersAPI from "./users.mjs";
5
+ import { Users, } from "./users.mjs";
6
+ export class Referral extends APIResource {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.users = new UsersAPI.Users(this._client);
10
+ }
11
+ createReferralCode(body = {}, options) {
12
+ if (isRequestOptions(body)) {
13
+ return this.createReferralCode({}, body);
14
+ }
15
+ return this._client.post('/api/referral/codes', { body, ...options });
16
+ }
17
+ }
18
+ Referral.Users = Users;
19
+ //# sourceMappingURL=referral.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referral.mjs","sourceRoot":"","sources":["../../../src/resources/assets/referral/referral.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,QAAQ;OACb,EAKL,KAAK,GACN;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmB3D,CAAC;IATC,kBAAkB,CAChB,OAA+D,EAAE,EACjE,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAwBD,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ export declare class Users extends APIResource {
4
+ /**
5
+ * This endpoint allows you to create a referral user
6
+ */
7
+ createReferralUser(body: UserCreateReferralUserParams, options?: Core.RequestOptions): Core.APIPromise<UserCreateReferralUserResponse>;
8
+ /**
9
+ * This endpoint allows you to get referrals
10
+ */
11
+ getReferrals(query: UserGetReferralsParams, options?: Core.RequestOptions): Core.APIPromise<UserGetReferralsResponse>;
12
+ }
13
+ export interface UserCreateReferralUserResponse {
14
+ message: string;
15
+ }
16
+ export interface UserGetReferralsResponse {
17
+ data: Array<UserGetReferralsResponse.Data>;
18
+ hasNextPage: boolean;
19
+ }
20
+ export declare namespace UserGetReferralsResponse {
21
+ interface Data {
22
+ id: string;
23
+ referralCode: Data.ReferralCode;
24
+ user: Data.User;
25
+ }
26
+ namespace Data {
27
+ interface ReferralCode {
28
+ id: string;
29
+ createdAt: string;
30
+ deletedAt: string | null;
31
+ referralCode: string;
32
+ updatedAt: string;
33
+ userId: string;
34
+ }
35
+ interface User {
36
+ id: string;
37
+ walletAddress: string;
38
+ }
39
+ }
40
+ }
41
+ export interface UserCreateReferralUserParams {
42
+ userIds: Array<string>;
43
+ referralCode?: string;
44
+ referralCodeId?: string;
45
+ }
46
+ export interface UserGetReferralsParams {
47
+ walletAddress: string | Array<string>;
48
+ includeEligibility?: boolean | null;
49
+ limit?: number;
50
+ organizationId?: string;
51
+ startingAfter?: string;
52
+ websiteId?: string;
53
+ }
54
+ export declare namespace Users {
55
+ export { type UserCreateReferralUserResponse as UserCreateReferralUserResponse, type UserGetReferralsResponse as UserGetReferralsResponse, type UserCreateReferralUserParams as UserCreateReferralUserParams, type UserGetReferralsParams as UserGetReferralsParams, };
56
+ }
57
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/resources/assets/referral/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAIlD;;OAEG;IACH,YAAY,CACV,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAG7C;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,w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AsB,IAAI,sBAAsB,GACtD,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.Users = void 0;
5
+ const resource_1 = require("../../../resource.js");
6
+ class Users extends resource_1.APIResource {
7
+ /**
8
+ * This endpoint allows you to create a referral user
9
+ */
10
+ createReferralUser(body, options) {
11
+ return this._client.post('/api/referral/users', { body, ...options });
12
+ }
13
+ /**
14
+ * This endpoint allows you to get referrals
15
+ */
16
+ getReferrals(query, options) {
17
+ return this._client.get('/api/referral/users', { query, ...options });
18
+ }
19
+ }
20
+ exports.Users = Users;
21
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/resources/assets/referral/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AApBD,sBAoBC"}
@@ -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 Users extends APIResource {
4
+ /**
5
+ * This endpoint allows you to create a referral user
6
+ */
7
+ createReferralUser(body, options) {
8
+ return this._client.post('/api/referral/users', { body, ...options });
9
+ }
10
+ /**
11
+ * This endpoint allows you to get referrals
12
+ */
13
+ getReferrals(query, options) {
14
+ return this._client.get('/api/referral/users', { query, ...options });
15
+ }
16
+ }
17
+ //# sourceMappingURL=users.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../../src/resources/assets/referral/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -0,0 +1,285 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class Users extends APIResource {
4
+ /**
5
+ * This endpoint allows you to create a user
6
+ */
7
+ connectUser(body: UserConnectUserParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectUserResponse>;
8
+ /**
9
+ * This endpoint allows you to disconnect a user from another user
10
+ */
11
+ disconnectUser(body: UserDisconnectUserParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
12
+ /**
13
+ * This endpoint returns the total user count
14
+ */
15
+ getUserCount(query: UserGetUserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserGetUserCountResponse>;
16
+ /**
17
+ * This endpoint allows you to get users
18
+ */
19
+ getUsers(query?: UserGetUsersParams, options?: Core.RequestOptions): Core.APIPromise<UserGetUsersResponse>;
20
+ getUsers(options?: Core.RequestOptions): Core.APIPromise<UserGetUsersResponse>;
21
+ }
22
+ export interface UserConnectUserResponse {
23
+ /**
24
+ * The ID of the user
25
+ */
26
+ id: string;
27
+ /**
28
+ * Timestamp when the user was created
29
+ */
30
+ createdAt: string;
31
+ /**
32
+ * Timestamp when the user was last updated
33
+ */
34
+ updatedAt: string;
35
+ /**
36
+ * The wallet address of the user
37
+ */
38
+ walletAddress: string;
39
+ }
40
+ export type UserDisconnectUserResponse = unknown;
41
+ /**
42
+ * Schema for counting users response
43
+ */
44
+ export interface UserGetUserCountResponse {
45
+ /**
46
+ * Total count of users
47
+ */
48
+ totalCount: number;
49
+ }
50
+ export interface UserGetUsersResponse {
51
+ /**
52
+ * Schema for users response
53
+ */
54
+ data: Array<UserGetUsersResponse.Data>;
55
+ }
56
+ export declare namespace UserGetUsersResponse {
57
+ interface Data {
58
+ id: string;
59
+ isSnagSuperAdmin: boolean;
60
+ walletAddress: string;
61
+ /**
62
+ * The followers of the user, only returned if includeFollow is true
63
+ */
64
+ _count?: Data._Count | null;
65
+ /**
66
+ * The delegations from the user, only returned if includeDelegation is true
67
+ */
68
+ delegationsFrom?: Array<Data.DelegationsFrom> | null;
69
+ /**
70
+ * The followers of the user, only returned if includeFollow is true and the user
71
+ * is querying their own user
72
+ */
73
+ followers?: Array<Data.Follower> | null;
74
+ /**
75
+ * Whether the user has notifications enabled, only returned if
76
+ * includeNotifications is true
77
+ */
78
+ notifications?: boolean;
79
+ privyUserId?: string | null;
80
+ stardustProfileId?: string | null;
81
+ temporaryLoyaltyUser?: boolean | null;
82
+ userMetadata?: Array<Data.UserMetadata> | null;
83
+ }
84
+ namespace Data {
85
+ /**
86
+ * The followers of the user, only returned if includeFollow is true
87
+ */
88
+ interface _Count {
89
+ select: _Count.Select;
90
+ }
91
+ namespace _Count {
92
+ interface Select {
93
+ followers: number;
94
+ follows: number;
95
+ }
96
+ }
97
+ interface DelegationsFrom {
98
+ walletAddress: string;
99
+ }
100
+ interface Follower {
101
+ userId: string;
102
+ }
103
+ interface UserMetadata {
104
+ bio?: string | null;
105
+ discordUser?: string | null;
106
+ discordVerifiedAt?: string | null;
107
+ displayName?: string | null;
108
+ /**
109
+ * The email address of the user, only returned if the user is querying their own
110
+ * user
111
+ */
112
+ emailAddress?: string | null;
113
+ emailVerifiedAt?: string | null;
114
+ epicAccountIdentifier?: string | null;
115
+ epicUsername?: string | null;
116
+ instagramUser?: string | null;
117
+ instagramVerifiedAt?: string | null;
118
+ isBlocked?: boolean | null;
119
+ location?: string | null;
120
+ logoUrl?: string | null;
121
+ meta?: string | null;
122
+ portfolioUrl?: string | null;
123
+ steamUserId?: string | null;
124
+ steamUsername?: string | null;
125
+ telegramUserId?: string | null;
126
+ telegramUsername?: string | null;
127
+ telegramVerifiedAt?: string | null;
128
+ twitterUser?: string | null;
129
+ twitterUserFollowersCount?: number | null;
130
+ twitterVerifiedAt?: string | null;
131
+ userGroupId?: string | null;
132
+ walletGroupIdentifier?: string | null;
133
+ }
134
+ }
135
+ }
136
+ export interface UserConnectUserParams {
137
+ /**
138
+ * The ID of the organization
139
+ */
140
+ organizationId: string;
141
+ /**
142
+ * The wallet address of the user
143
+ */
144
+ walletAddress: string;
145
+ walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
146
+ /**
147
+ * The ID of the website
148
+ */
149
+ websiteId: string;
150
+ /**
151
+ * Whether to confirm the disconnect
152
+ */
153
+ confirmDisconnect?: boolean;
154
+ /**
155
+ * The ID of the user to whome this wallet is being connected
156
+ */
157
+ userId?: string;
158
+ /**
159
+ * The verification data of the user walletAddress
160
+ */
161
+ verificationData?: UserConnectUserParams.VerificationData;
162
+ }
163
+ export declare namespace UserConnectUserParams {
164
+ /**
165
+ * The verification data of the user walletAddress
166
+ */
167
+ interface VerificationData {
168
+ accessToken?: string;
169
+ message?: string;
170
+ signature?: string;
171
+ tonVerification?: VerificationData.TonVerification;
172
+ }
173
+ namespace VerificationData {
174
+ interface TonVerification {
175
+ account: TonVerification.Account;
176
+ proof: TonVerification.Proof;
177
+ }
178
+ namespace TonVerification {
179
+ interface Account {
180
+ address: string;
181
+ chain: '-239' | '-3';
182
+ publicKey: string;
183
+ walletStateInit?: string;
184
+ }
185
+ interface Proof {
186
+ domain: Proof.Domain;
187
+ payload: string;
188
+ signature: string;
189
+ timestamp: number;
190
+ state_init?: string;
191
+ }
192
+ namespace Proof {
193
+ interface Domain {
194
+ lengthBytes: number;
195
+ value: string;
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ export interface UserDisconnectUserParams {
202
+ organizationId: string;
203
+ userId: string;
204
+ websiteId: string;
205
+ }
206
+ export interface UserGetUserCountParams {
207
+ /**
208
+ * The ID of the organization
209
+ */
210
+ organizationId: string;
211
+ /**
212
+ * The ID of the website
213
+ */
214
+ websiteId: string;
215
+ }
216
+ export interface UserGetUsersParams {
217
+ /**
218
+ * The address of the user
219
+ */
220
+ address?: string;
221
+ /**
222
+ * Discord username of the user
223
+ */
224
+ discordUser?: string;
225
+ /**
226
+ * Whether to include delegations in the response
227
+ */
228
+ includeDelegation?: boolean | null;
229
+ /**
230
+ * Whether to include followers in the response
231
+ */
232
+ includeFollow?: boolean | null;
233
+ /**
234
+ * Number of users to return
235
+ */
236
+ limit?: number;
237
+ /**
238
+ * The ID of the organization
239
+ */
240
+ organizationId?: string;
241
+ /**
242
+ * Pagination cursor to start after a specific user ID
243
+ */
244
+ startingAfter?: string;
245
+ /**
246
+ * Steam username of the user
247
+ */
248
+ steamUsername?: string;
249
+ /**
250
+ * Telegram ID of the user
251
+ */
252
+ telegramUserId?: string;
253
+ /**
254
+ * Telegram username of the user
255
+ */
256
+ telegramUsername?: string;
257
+ /**
258
+ * Twitter username of the user
259
+ */
260
+ twitterUser?: string;
261
+ /**
262
+ * External identifier for the user group controlled by you
263
+ */
264
+ userGroupExternalIdentifier?: string;
265
+ /**
266
+ * The ID of the user group
267
+ */
268
+ userGroupId?: string;
269
+ /**
270
+ * The ID of the user
271
+ */
272
+ userId?: string | Array<string>;
273
+ /**
274
+ * The wallet address of the user
275
+ */
276
+ walletAddress?: string;
277
+ /**
278
+ * The ID of the website
279
+ */
280
+ websiteId?: string;
281
+ }
282
+ export declare namespace Users {
283
+ export { type UserConnectUserResponse as UserConnectUserResponse, type UserDisconnectUserResponse as UserDisconnectUserResponse, type UserGetUserCountResponse as UserGetUserCountResponse, type UserGetUsersResponse as UserGetUsersResponse, type UserConnectUserParams as UserConnectUserParams, type UserDisconnectUserParams as UserDisconnectUserParams, type UserGetUserCountParams as UserGetUserCountParams, type UserGetUsersParams as UserGetUsersParams, };
284
+ }
285
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/assets/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,WAAW,CACT,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAI3C;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IAIvG;;OAEG;IACH,YAAY,CACV,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAC1G,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAU/E;AAED,MAAM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ErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,34 @@
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.Users = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ const core_1 = require("../../core.js");
7
+ class Users extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint allows you to create a user
10
+ */
11
+ connectUser(body, options) {
12
+ return this._client.post('/api/users/connect', { body, ...options });
13
+ }
14
+ /**
15
+ * This endpoint allows you to disconnect a user from another user
16
+ */
17
+ disconnectUser(body, options) {
18
+ return this._client.post('/api/users/disconnect', { body, ...options });
19
+ }
20
+ /**
21
+ * This endpoint returns the total user count
22
+ */
23
+ getUserCount(query, options) {
24
+ return this._client.get('/api/users/count', { query, ...options });
25
+ }
26
+ getUsers(query = {}, options) {
27
+ if ((0, core_1.isRequestOptions)(query)) {
28
+ return this.getUsers({}, query);
29
+ }
30
+ return this._client.get('/api/users', { query, ...options });
31
+ }
32
+ }
33
+ exports.Users = Users;
34
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/assets/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,WAAW,CACT,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,IAA8B,EAAE,OAA6B;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,YAAY,CACV,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAOD,QAAQ,CACN,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACjC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AA1CD,sBA0CC"}
@@ -0,0 +1,30 @@
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 Users extends APIResource {
5
+ /**
6
+ * This endpoint allows you to create a user
7
+ */
8
+ connectUser(body, options) {
9
+ return this._client.post('/api/users/connect', { body, ...options });
10
+ }
11
+ /**
12
+ * This endpoint allows you to disconnect a user from another user
13
+ */
14
+ disconnectUser(body, options) {
15
+ return this._client.post('/api/users/disconnect', { body, ...options });
16
+ }
17
+ /**
18
+ * This endpoint returns the total user count
19
+ */
20
+ getUserCount(query, options) {
21
+ return this._client.get('/api/users/count', { query, ...options });
22
+ }
23
+ getUsers(query = {}, options) {
24
+ if (isRequestOptions(query)) {
25
+ return this.getUsers({}, query);
26
+ }
27
+ return this._client.get('/api/users', { query, ...options });
28
+ }
29
+ }
30
+ //# sourceMappingURL=users.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/assets/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,WAAW,CACT,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,IAA8B,EAAE,OAA6B;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,YAAY,CACV,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAOD,QAAQ,CACN,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACjC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF"}