@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.15
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.
- package/CHANGELOG.md +98 -0
- package/README.md +22 -14
- package/core.d.ts.map +1 -1
- package/core.js +14 -7
- package/core.js.map +1 -1
- package/core.mjs +14 -7
- package/core.mjs.map +1 -1
- package/index.d.mts +11 -26
- package/index.d.ts +11 -26
- package/index.d.ts.map +1 -1
- package/index.js +8 -23
- package/index.js.map +1 -1
- package/index.mjs +8 -23
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/api/api.js +94 -0
- package/resources/api/api.js.map +1 -0
- package/resources/api/api.mjs +67 -0
- package/resources/api/api.mjs.map +1 -0
- package/resources/api/index.d.ts +9 -0
- package/resources/api/index.d.ts.map +1 -0
- package/resources/api/index.js +21 -0
- package/resources/api/index.js.map +1 -0
- package/resources/api/index.mjs +10 -0
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/accounts.d.ts +44 -6
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/api/loyalty/accounts.js +24 -0
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/api/loyalty/accounts.mjs +20 -0
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/api/loyalty/badges.d.ts +870 -0
- package/resources/api/loyalty/badges.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.js +2 -2
- package/resources/api/loyalty/badges.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
- package/resources/api/loyalty/badges.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.d.ts +3 -9
- package/resources/api/loyalty/currencies.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
- package/resources/api/loyalty/currencies.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
- package/resources/api/loyalty/currencies.mjs.map +1 -0
- package/resources/api/loyalty/index.d.ts +10 -0
- package/resources/api/loyalty/index.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.js +5 -3
- package/resources/api/loyalty/index.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
- package/resources/api/loyalty/index.mjs.map +1 -0
- package/resources/api/loyalty/loyalty.d.ts +807 -0
- package/resources/api/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
- package/resources/api/loyalty/loyalty.js.map +1 -0
- package/resources/api/loyalty/loyalty.mjs +59 -0
- package/resources/api/loyalty/loyalty.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.d.ts +36 -4
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +8 -2
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +8 -2
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts +97 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js +22 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs +18 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts +150 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js +27 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs +23 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +9 -9
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +3 -3
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +3 -3
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +167 -90
- package/resources/api/loyalty/rules.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.js +3 -3
- package/resources/api/loyalty/rules.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
- package/resources/api/loyalty/rules.mjs.map +1 -0
- package/resources/api/loyalty.d.ts +2 -0
- package/resources/api/loyalty.d.ts.map +1 -0
- package/resources/api/loyalty.js +19 -0
- package/resources/api/loyalty.js.map +1 -0
- package/resources/api/loyalty.mjs +3 -0
- package/resources/api/loyalty.mjs.map +1 -0
- package/resources/api/minting.d.ts +95 -0
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/api/minting.js +15 -0
- package/resources/api/minting.js.map +1 -0
- package/resources/api/minting.mjs +11 -0
- package/resources/api/minting.mjs.map +1 -0
- package/resources/api/referral/index.d.ts +3 -0
- package/resources/api/referral/index.d.ts.map +1 -0
- package/resources/api/referral/index.js +9 -0
- package/resources/api/referral/index.js.map +1 -0
- package/resources/api/referral/index.mjs +4 -0
- package/resources/api/referral/index.mjs.map +1 -0
- package/resources/api/referral/referral.d.ts +31 -0
- package/resources/api/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → api/referral/referral.js} +16 -13
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/api/referral/referral.mjs +19 -0
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/api/referral/users.d.ts +57 -0
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/api/referral/users.js +21 -0
- package/resources/api/referral/users.js.map +1 -0
- package/resources/api/referral/users.mjs +17 -0
- package/resources/api/referral/users.mjs.map +1 -0
- package/resources/api/referral.d.ts +2 -0
- package/resources/api/referral.d.ts.map +1 -0
- package/resources/api/referral.js +19 -0
- package/resources/api/referral.js.map +1 -0
- package/resources/api/referral.mjs +3 -0
- package/resources/api/referral.mjs.map +1 -0
- package/resources/api/users/index.d.ts +3 -0
- package/resources/api/users/index.d.ts.map +1 -0
- package/resources/{users → api/users}/index.js +1 -3
- package/resources/api/users/index.js.map +1 -0
- package/resources/api/users/index.mjs +4 -0
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/api/users/metadatas.d.ts +137 -0
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +8 -2
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/api/users/metadatas.mjs +18 -0
- package/resources/api/users/metadatas.mjs.map +1 -0
- package/resources/api/users/users.d.ts +133 -0
- package/resources/api/users/users.d.ts.map +1 -0
- package/resources/{users → api/users}/users.js +19 -5
- package/resources/api/users/users.js.map +1 -0
- package/resources/api/users/users.mjs +30 -0
- package/resources/api/users/users.mjs.map +1 -0
- package/resources/api/users.d.ts +2 -0
- package/resources/api/users.d.ts.map +1 -0
- package/resources/api/users.js +19 -0
- package/resources/api/users.js.map +1 -0
- package/resources/api/users.mjs +3 -0
- package/resources/api/users.mjs.map +1 -0
- package/resources/api/website-collections.d.ts +73 -0
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/api/website-collections.js +25 -0
- package/resources/api/website-collections.js.map +1 -0
- package/resources/api/website-collections.mjs +21 -0
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/api/website-user-roles.d.ts +73 -0
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/api/website-user-roles.js +22 -0
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/api/website-user-roles.mjs +18 -0
- package/resources/api/website-user-roles.mjs.map +1 -0
- package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
- package/resources/api/websites.d.ts.map +1 -0
- package/resources/{websites.js → api/websites.js} +2 -2
- package/resources/api/websites.js.map +1 -0
- package/resources/{websites.mjs → api/websites.mjs} +2 -2
- package/resources/api/websites.mjs.map +1 -0
- package/resources/api.d.ts +2 -0
- package/resources/api.d.ts.map +1 -0
- package/resources/api.js +19 -0
- package/resources/api.js.map +1 -0
- package/resources/api.mjs +3 -0
- package/resources/api.mjs.map +1 -0
- package/resources/index.d.ts +1 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/core.ts +16 -8
- package/src/index.ts +28 -57
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty → api/loyalty}/accounts.ts +65 -8
- package/src/resources/api/loyalty/badges.ts +1142 -0
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +3 -9
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -11
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +61 -4
- package/src/resources/api/loyalty/questions-responses.ts +146 -0
- package/src/resources/api/loyalty/questions.ts +208 -0
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +11 -14
- package/src/resources/{loyalty → api/loyalty}/rules.ts +339 -180
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/api/minting.ts +157 -0
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/api/referral/users.ts +93 -0
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/api/users/metadatas.ts +206 -0
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/api/website-collections.ts +148 -0
- package/src/resources/api/website-user-roles.ts +107 -0
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -11
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -81
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -30
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -26
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -168
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -17
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -13
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -26
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -16
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -12
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -16
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -12
- package/resources/loyalty/accounts.mjs.map +0 -1
- package/resources/loyalty/badges.d.ts +0 -299
- package/resources/loyalty/badges.d.ts.map +0 -1
- package/resources/loyalty/badges.js.map +0 -1
- package/resources/loyalty/badges.mjs.map +0 -1
- package/resources/loyalty/currencies.d.ts.map +0 -1
- package/resources/loyalty/currencies.js.map +0 -1
- package/resources/loyalty/currencies.mjs.map +0 -1
- package/resources/loyalty/index.d.ts +0 -9
- package/resources/loyalty/index.d.ts.map +0 -1
- package/resources/loyalty/index.js.map +0 -1
- package/resources/loyalty/index.mjs.map +0 -1
- package/resources/loyalty/loyalty.d.ts +0 -34
- package/resources/loyalty/loyalty.d.ts.map +0 -1
- package/resources/loyalty/loyalty.js.map +0 -1
- package/resources/loyalty/loyalty.mjs +0 -36
- package/resources/loyalty/loyalty.mjs.map +0 -1
- package/resources/loyalty/multipliers.d.ts.map +0 -1
- package/resources/loyalty/multipliers.js.map +0 -1
- package/resources/loyalty/multipliers.mjs.map +0 -1
- package/resources/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/loyalty/rule-edits.js.map +0 -1
- package/resources/loyalty/rule-edits.mjs.map +0 -1
- package/resources/loyalty/rules.d.ts.map +0 -1
- package/resources/loyalty/rules.js.map +0 -1
- package/resources/loyalty/rules.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/resources/users/index.d.ts +0 -4
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs +0 -5
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/metadatas.d.ts +0 -64
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- package/resources/users/metadatas.mjs +0 -12
- package/resources/users/metadatas.mjs.map +0 -1
- package/resources/users/users.d.ts +0 -14
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -16
- package/resources/users/users.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -193
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -28
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -24
- package/resources/users/wallets.mjs.map +0 -1
- package/resources/websites.d.ts.map +0 -1
- package/resources/websites.js.map +0 -1
- package/resources/websites.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/auction-bids.ts +0 -123
- package/src/resources/drip/drip.ts +0 -25
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -210
- package/src/resources/drip/status.ts +0 -33
- package/src/resources/loyalty/badges.ts +0 -435
- package/src/resources/loyalty/loyalty.ts +0 -159
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/index.ts +0 -12
- package/src/resources/users/metadatas.ts +0 -103
- package/src/resources/users/users.ts +0 -39
- package/src/resources/users/wallets.ts +0 -271
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/api/users/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,SAAS,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Users = exports.Metadatas = void 0;
|
|
5
5
|
var metadatas_1 = require("./metadatas.js");
|
|
6
6
|
Object.defineProperty(exports, "Metadatas", { enumerable: true, get: function () { return metadatas_1.Metadatas; } });
|
|
7
7
|
var users_1 = require("./users.js");
|
|
8
8
|
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
9
|
-
var wallets_1 = require("./wallets.js");
|
|
10
|
-
Object.defineProperty(exports, "Wallets", { enumerable: true, get: function () { return wallets_1.Wallets; } });
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/api/users/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,oCAQiB;AAPf,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/api/users/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAKV;OACM,EACL,KAAK,GAON"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
export declare class Metadatas extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint is used to create user metadata
|
|
6
|
+
*/
|
|
7
|
+
create(body?: MetadataCreateParams, options?: Core.RequestOptions): Core.APIPromise<MetadataCreateResponse>;
|
|
8
|
+
create(options?: Core.RequestOptions): Core.APIPromise<MetadataCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint is used to get user metadata
|
|
11
|
+
*/
|
|
12
|
+
list(query?: MetadataListParams, options?: Core.RequestOptions): Core.APIPromise<MetadataListResponse>;
|
|
13
|
+
list(options?: Core.RequestOptions): Core.APIPromise<MetadataListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface MetadataCreateResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier for the user metadata
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Timestamp when the wallet was created
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the organization
|
|
26
|
+
*/
|
|
27
|
+
organizationId: string;
|
|
28
|
+
user: MetadataCreateResponse.User;
|
|
29
|
+
userGroup: MetadataCreateResponse.UserGroup;
|
|
30
|
+
/**
|
|
31
|
+
* Identifier for the user group set via api
|
|
32
|
+
*/
|
|
33
|
+
userGroupId: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Identifier for the user wallet group set via api
|
|
36
|
+
*/
|
|
37
|
+
walletGroupIdentifier: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the website
|
|
40
|
+
*/
|
|
41
|
+
websiteId: string;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace MetadataCreateResponse {
|
|
44
|
+
interface User {
|
|
45
|
+
/**
|
|
46
|
+
* Id for the user
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Wallet address of the user
|
|
51
|
+
*/
|
|
52
|
+
walletAddress: string;
|
|
53
|
+
}
|
|
54
|
+
interface UserGroup {
|
|
55
|
+
/**
|
|
56
|
+
* id for the user group
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* External identifier for the user group
|
|
61
|
+
*/
|
|
62
|
+
externalIdentifier: string | null;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Response schema for fetching user metadata
|
|
67
|
+
*/
|
|
68
|
+
export interface MetadataListResponse {
|
|
69
|
+
data: Array<MetadataListResponse.Data>;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if there are more records available
|
|
72
|
+
*/
|
|
73
|
+
hasNextPage: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace MetadataListResponse {
|
|
76
|
+
interface Data {
|
|
77
|
+
/**
|
|
78
|
+
* Unique identifier for the user metadata
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export interface MetadataCreateParams {
|
|
84
|
+
discordUser?: string | null;
|
|
85
|
+
discordUserId?: string | null;
|
|
86
|
+
displayName?: string | null;
|
|
87
|
+
emailAddress?: string | null;
|
|
88
|
+
epicAccountIdentifier?: string | null;
|
|
89
|
+
externalIdentifier?: string | null;
|
|
90
|
+
isBlocked?: boolean;
|
|
91
|
+
logoUrl?: string | null;
|
|
92
|
+
stardustProfileIdentifier?: string | null;
|
|
93
|
+
stardustWalletIdentifier?: string | null;
|
|
94
|
+
telegramUserId?: string | null;
|
|
95
|
+
telegramUsername?: string | null;
|
|
96
|
+
twitterUser?: string | null;
|
|
97
|
+
twitterUserId?: string | null;
|
|
98
|
+
userGroupExternalIdentifier?: string | null;
|
|
99
|
+
userGroupId?: string;
|
|
100
|
+
userId?: string;
|
|
101
|
+
walletAddress?: string;
|
|
102
|
+
walletGroupIdentifier?: string | null;
|
|
103
|
+
}
|
|
104
|
+
export interface MetadataListParams {
|
|
105
|
+
/**
|
|
106
|
+
* External identifier for the user
|
|
107
|
+
*/
|
|
108
|
+
externalIdentifier?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Number of records to fetch
|
|
111
|
+
*/
|
|
112
|
+
limit?: number;
|
|
113
|
+
/**
|
|
114
|
+
* UUID of the organization
|
|
115
|
+
*/
|
|
116
|
+
organizationId?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Fetch records starting after this ID
|
|
119
|
+
*/
|
|
120
|
+
startingAfter?: string;
|
|
121
|
+
/**
|
|
122
|
+
* UUID of the user
|
|
123
|
+
*/
|
|
124
|
+
userId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Wallet address of the user
|
|
127
|
+
*/
|
|
128
|
+
walletAddress?: string;
|
|
129
|
+
/**
|
|
130
|
+
* UUID of the website
|
|
131
|
+
*/
|
|
132
|
+
websiteId?: string;
|
|
133
|
+
}
|
|
134
|
+
export declare namespace Metadatas {
|
|
135
|
+
export { type MetadataCreateResponse as MetadataCreateResponse, type MetadataListResponse as MetadataListResponse, type MetadataCreateParams as MetadataCreateParams, type MetadataListParams as MetadataListParams, };
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=metadatas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadatas.d.ts","sourceRoot":"","sources":["../../../src/resources/api/users/metadatas.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Metadatas = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const core_1 = require("
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
const core_1 = require("../../../core.js");
|
|
7
7
|
class Metadatas extends resource_1.APIResource {
|
|
8
8
|
create(body = {}, options) {
|
|
9
9
|
if ((0, core_1.isRequestOptions)(body)) {
|
|
@@ -11,6 +11,12 @@ class Metadatas extends resource_1.APIResource {
|
|
|
11
11
|
}
|
|
12
12
|
return this._client.post('/api/users/metadatas', { body, ...options });
|
|
13
13
|
}
|
|
14
|
+
list(query = {}, options) {
|
|
15
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
16
|
+
return this.list({}, query);
|
|
17
|
+
}
|
|
18
|
+
return this._client.get('/api/users/metadatas', { query, ...options });
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
exports.Metadatas = Metadatas;
|
|
16
22
|
//# sourceMappingURL=metadatas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadatas.js","sourceRoot":"","sources":["../../../src/resources/api/users/metadatas.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,MAAa,SAAU,SAAQ,sBAAW;IAMxC,MAAM,CACJ,OAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAOD,IAAI,CACF,QAAkD,EAAE,EACpD,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,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA9BD,8BA8BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 Metadatas extends APIResource {
|
|
5
|
+
create(body = {}, options) {
|
|
6
|
+
if (isRequestOptions(body)) {
|
|
7
|
+
return this.create({}, body);
|
|
8
|
+
}
|
|
9
|
+
return this._client.post('/api/users/metadatas', { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
list(query = {}, options) {
|
|
12
|
+
if (isRequestOptions(query)) {
|
|
13
|
+
return this.list({}, query);
|
|
14
|
+
}
|
|
15
|
+
return this._client.get('/api/users/metadatas', { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=metadatas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadatas.mjs","sourceRoot":"","sources":["../../../src/resources/api/users/metadatas.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,SAAU,SAAQ,WAAW;IAMxC,MAAM,CACJ,OAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAOD,IAAI,CACF,QAAkD,EAAE,EACpD,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,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
import * as MetadatasAPI from "./metadatas.js";
|
|
4
|
+
import { MetadataCreateParams, MetadataCreateResponse, MetadataListParams, MetadataListResponse, Metadatas } from "./metadatas.js";
|
|
5
|
+
export declare class Users extends APIResource {
|
|
6
|
+
metadatas: MetadatasAPI.Metadatas;
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint allows you to create a user
|
|
9
|
+
*/
|
|
10
|
+
connect(body: UserConnectParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint returns the total user count
|
|
13
|
+
*/
|
|
14
|
+
count(query: UserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserCountResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* This endpoint allows you to disconnect a user from another user
|
|
17
|
+
*/
|
|
18
|
+
disconnect(body: UserDisconnectParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface UserConnectResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the user
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Timestamp when the user was created
|
|
27
|
+
*/
|
|
28
|
+
createdAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* Timestamp when the user was last updated
|
|
31
|
+
*/
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
/**
|
|
34
|
+
* The wallet address of the user
|
|
35
|
+
*/
|
|
36
|
+
walletAddress: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Schema for counting users response
|
|
40
|
+
*/
|
|
41
|
+
export interface UserCountResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Total count of users
|
|
44
|
+
*/
|
|
45
|
+
totalCount: number;
|
|
46
|
+
}
|
|
47
|
+
export type UserDisconnectResponse = unknown;
|
|
48
|
+
export interface UserConnectParams {
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the organization
|
|
51
|
+
*/
|
|
52
|
+
organizationId: string;
|
|
53
|
+
/**
|
|
54
|
+
* The wallet address of the user
|
|
55
|
+
*/
|
|
56
|
+
walletAddress: string;
|
|
57
|
+
walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
|
|
58
|
+
/**
|
|
59
|
+
* The ID of the website
|
|
60
|
+
*/
|
|
61
|
+
websiteId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to confirm the disconnect
|
|
64
|
+
*/
|
|
65
|
+
confirmDisconnect?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the user to whome this wallet is being connected
|
|
68
|
+
*/
|
|
69
|
+
userId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The verification data of the user walletAddress
|
|
72
|
+
*/
|
|
73
|
+
verificationData?: UserConnectParams.VerificationData;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace UserConnectParams {
|
|
76
|
+
/**
|
|
77
|
+
* The verification data of the user walletAddress
|
|
78
|
+
*/
|
|
79
|
+
interface VerificationData {
|
|
80
|
+
accessToken?: string;
|
|
81
|
+
dynamicAuthToken?: string;
|
|
82
|
+
message?: string;
|
|
83
|
+
signature?: string;
|
|
84
|
+
tonVerification?: VerificationData.TonVerification;
|
|
85
|
+
}
|
|
86
|
+
namespace VerificationData {
|
|
87
|
+
interface TonVerification {
|
|
88
|
+
account: TonVerification.Account;
|
|
89
|
+
proof: TonVerification.Proof;
|
|
90
|
+
}
|
|
91
|
+
namespace TonVerification {
|
|
92
|
+
interface Account {
|
|
93
|
+
address: string;
|
|
94
|
+
chain: '-239' | '-3';
|
|
95
|
+
publicKey: string;
|
|
96
|
+
walletStateInit?: string;
|
|
97
|
+
}
|
|
98
|
+
interface Proof {
|
|
99
|
+
domain: Proof.Domain;
|
|
100
|
+
payload: string;
|
|
101
|
+
signature: string;
|
|
102
|
+
timestamp: number;
|
|
103
|
+
state_init?: string;
|
|
104
|
+
}
|
|
105
|
+
namespace Proof {
|
|
106
|
+
interface Domain {
|
|
107
|
+
lengthBytes: number;
|
|
108
|
+
value: string;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export interface UserCountParams {
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the organization
|
|
117
|
+
*/
|
|
118
|
+
organizationId: string;
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the website
|
|
121
|
+
*/
|
|
122
|
+
websiteId: string;
|
|
123
|
+
}
|
|
124
|
+
export interface UserDisconnectParams {
|
|
125
|
+
organizationId: string;
|
|
126
|
+
userId: string;
|
|
127
|
+
websiteId: string;
|
|
128
|
+
}
|
|
129
|
+
export declare namespace Users {
|
|
130
|
+
export { type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
131
|
+
export { Metadatas as Metadatas, type MetadataCreateResponse as MetadataCreateResponse, type MetadataListResponse as MetadataListResponse, type MetadataCreateParams as MetadataCreateParams, type MetadataListParams as MetadataListParams, };
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/resources/api/users/users.ts"],"names":[],"mappings":"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"}
|
|
@@ -25,19 +25,33 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.Users = void 0;
|
|
28
|
-
const resource_1 = require("
|
|
28
|
+
const resource_1 = require("../../../resource.js");
|
|
29
29
|
const MetadatasAPI = __importStar(require("./metadatas.js"));
|
|
30
30
|
const metadatas_1 = require("./metadatas.js");
|
|
31
|
-
const WalletsAPI = __importStar(require("./wallets.js"));
|
|
32
|
-
const wallets_1 = require("./wallets.js");
|
|
33
31
|
class Users extends resource_1.APIResource {
|
|
34
32
|
constructor() {
|
|
35
33
|
super(...arguments);
|
|
36
|
-
this.wallets = new WalletsAPI.Wallets(this._client);
|
|
37
34
|
this.metadatas = new MetadatasAPI.Metadatas(this._client);
|
|
38
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* This endpoint allows you to create a user
|
|
38
|
+
*/
|
|
39
|
+
connect(body, options) {
|
|
40
|
+
return this._client.post('/api/users/connect', { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This endpoint returns the total user count
|
|
44
|
+
*/
|
|
45
|
+
count(query, options) {
|
|
46
|
+
return this._client.get('/api/users/count', { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* This endpoint allows you to disconnect a user from another user
|
|
50
|
+
*/
|
|
51
|
+
disconnect(body, options) {
|
|
52
|
+
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
53
|
+
}
|
|
39
54
|
}
|
|
40
55
|
exports.Users = Users;
|
|
41
|
-
Users.Wallets = wallets_1.Wallets;
|
|
42
56
|
Users.Metadatas = metadatas_1.Metadatas;
|
|
43
57
|
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/resources/api/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,6DAA4C;AAC5C,8CAMqB;AAErB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB/E,CAAC;IApBC;;OAEG;IACH,OAAO,CAAC,IAAuB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,IAA0B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAvBD,sBAuBC;AAmJD,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -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 * as MetadatasAPI from "./metadatas.mjs";
|
|
4
|
+
import { Metadatas, } from "./metadatas.mjs";
|
|
5
|
+
export class Users extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.metadatas = new MetadatasAPI.Metadatas(this._client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This endpoint allows you to create a user
|
|
12
|
+
*/
|
|
13
|
+
connect(body, options) {
|
|
14
|
+
return this._client.post('/api/users/connect', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint returns the total user count
|
|
18
|
+
*/
|
|
19
|
+
count(query, options) {
|
|
20
|
+
return this._client.get('/api/users/count', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint allows you to disconnect a user from another user
|
|
24
|
+
*/
|
|
25
|
+
disconnect(body, options) {
|
|
26
|
+
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
Users.Metadatas = Metadatas;
|
|
30
|
+
//# sourceMappingURL=users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../../src/resources/api/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB/E,CAAC;IApBC;;OAEG;IACH,OAAO,CAAC,IAAuB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,IAA0B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAmJD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/api/users.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,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("./users/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/api/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,mDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/api/users.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*/
|
|
7
|
+
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves collections for a specific website.
|
|
10
|
+
*/
|
|
11
|
+
list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Response schema for fetching website collections
|
|
15
|
+
*/
|
|
16
|
+
export interface WebsiteCollectionListResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Array of websites
|
|
19
|
+
*/
|
|
20
|
+
data: Array<WebsiteCollectionListResponse.Data>;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates if more pages are available
|
|
23
|
+
*/
|
|
24
|
+
hasNextPage: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace WebsiteCollectionListResponse {
|
|
27
|
+
interface Data {
|
|
28
|
+
/**
|
|
29
|
+
* Website Collection ID
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface WebsiteCollectionCreateParams {
|
|
35
|
+
collectionAddress: string;
|
|
36
|
+
name: string;
|
|
37
|
+
network: 'mainnet' | 'polygon' | 'polygon_mumbai' | 'optimism' | 'arbitrum' | 'binance' | 'bscTestnet' | 'avalanche' | 'avalancheFuji' | 'zksync' | 'fantom' | 'fantomTestnet' | 'base' | 'baseSepolia' | 'skaleNebula' | 'xai' | 'berachainArtio' | 'solana' | 'apechain' | 'flowMainnet' | 'campTestnet' | 'sui' | 'vanar' | 'superseed' | 'superseedSepolia' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
38
|
+
organizationId: string;
|
|
39
|
+
sortId: number;
|
|
40
|
+
websiteId: string;
|
|
41
|
+
discordUrl?: string;
|
|
42
|
+
homeUrl?: string;
|
|
43
|
+
imageUrl?: string | null;
|
|
44
|
+
instagramUsername?: string;
|
|
45
|
+
royaltyFee?: number | null;
|
|
46
|
+
royaltyFeeAddress?: string | null;
|
|
47
|
+
stakingAddress?: string;
|
|
48
|
+
telegramUrl?: string;
|
|
49
|
+
themeId?: string;
|
|
50
|
+
twitterUsername?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface WebsiteCollectionListParams {
|
|
53
|
+
/**
|
|
54
|
+
* Filter by website ID
|
|
55
|
+
*/
|
|
56
|
+
websiteId: string;
|
|
57
|
+
/**
|
|
58
|
+
* Number of items to return
|
|
59
|
+
*/
|
|
60
|
+
limit?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Filter by organization ID
|
|
63
|
+
*/
|
|
64
|
+
organizationId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Pagination cursor, start after this ID
|
|
67
|
+
*/
|
|
68
|
+
startingAfter?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace WebsiteCollections {
|
|
71
|
+
export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=website-collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQjG;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;IAEhD;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EACH,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,UAAU,GACV,SAAS,GACT,YAAY,GACZ,WAAW,GACX,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,MAAM,GACN,aAAa,GACb,aAAa,GACb,KAAK,GACL,gBAAgB,GAChB,QAAQ,GACR,UAAU,GACV,aAAa,GACb,aAAa,GACb,KAAK,GACL,OAAO,GACP,WAAW,GACX,kBAAkB,GAClB,SAAS,GACT,kBAAkB,GAClB,iBAAiB,GACjB,QAAQ,GACR,iBAAiB,GACjB,gBAAgB,GAChB,UAAU,GACV,UAAU,CAAC;IAEf,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.WebsiteCollections = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class WebsiteCollections extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new collection under a website
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/api/website_collections', {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves collections for a specific website.
|
|
19
|
+
*/
|
|
20
|
+
list(query, options) {
|
|
21
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.WebsiteCollections = WebsiteCollections;
|
|
25
|
+
//# sourceMappingURL=website-collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AArBD,gDAqBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*/
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/api/website_collections', {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves collections for a specific website.
|
|
16
|
+
*/
|
|
17
|
+
list(query, options) {
|
|
18
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=website-collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|