@snagsolutions/sdk 0.1.0-alpha.14 → 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 +58 -0
- package/README.md +21 -13
- package/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +6 -21
- package/index.d.ts +6 -21
- 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 +8 -29
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/{assets/assets.js → api/api.js} +38 -13
- package/resources/api/api.js.map +1 -0
- package/resources/{assets/assets.mjs → api/api.mjs} +37 -12
- 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/{assets → api}/index.js +11 -7
- package/resources/api/index.js.map +1 -0
- package/resources/{assets → api}/index.mjs +5 -3
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.d.ts +8 -4
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.js +1 -1
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.mjs +1 -1
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.d.ts +6 -2
- 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 +2 -2
- 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 +15 -8
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +9 -3
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +9 -3
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +8 -8
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +2 -2
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +2 -2
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +41 -25
- 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/{assets → api}/minting.d.ts +8 -8
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/{assets → api}/minting.js +1 -1
- package/resources/api/minting.js.map +1 -0
- package/resources/{assets → api}/minting.mjs +1 -1
- 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.map +1 -0
- package/resources/{assets → api}/referral/index.mjs +1 -1
- 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/{assets → api}/referral/referral.js +2 -2
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/{assets → api}/referral/referral.mjs +3 -3
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/{assets → api}/referral/users.d.ts +9 -9
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/{assets → api}/referral/users.js +2 -2
- package/resources/api/referral/users.js.map +1 -0
- package/resources/{assets → api}/referral/users.mjs +2 -2
- 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/{users → api/users}/index.mjs +1 -2
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/{users → api/users}/metadatas.d.ts +14 -9
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +4 -4
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/{users → api/users}/metadatas.mjs +4 -4
- 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/{assets → api/users}/users.mjs +15 -15
- 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/{assets → api}/website-collections.d.ts +9 -9
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/{assets → api}/website-collections.js +2 -2
- package/resources/api/website-collections.js.map +1 -0
- package/resources/{assets → api}/website-collections.mjs +2 -2
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/{assets → api}/website-user-roles.d.ts +28 -28
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → api}/website-user-roles.js +7 -7
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/{assets → api}/website-user-roles.mjs +7 -7
- 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 +2 -2
- package/src/index.ts +23 -54
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty/transaction-entries → api/loyalty}/accounts.ts +12 -7
- package/src/resources/{loyalty → api/loyalty}/badges.ts +8 -3
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +2 -2
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -16
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +23 -11
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +9 -12
- package/src/resources/{loyalty → api/loyalty}/rules.ts +98 -27
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/{assets → api}/minting.ts +15 -11
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/{assets → api}/referral/users.ts +12 -18
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/{users → api/users}/metadatas.ts +22 -18
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/{assets → api}/website-collections.ts +17 -16
- package/src/resources/{assets → api}/website-user-roles.ts +40 -40
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -16
- 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/assets.d.ts +0 -153
- package/resources/assets/assets.d.ts.map +0 -1
- package/resources/assets/assets.js.map +0 -1
- package/resources/assets/assets.mjs.map +0 -1
- package/resources/assets/index.d.ts +0 -7
- package/resources/assets/index.d.ts.map +0 -1
- package/resources/assets/index.js.map +0 -1
- package/resources/assets/index.mjs.map +0 -1
- package/resources/assets/minting.d.ts.map +0 -1
- package/resources/assets/minting.js.map +0 -1
- package/resources/assets/minting.mjs.map +0 -1
- package/resources/assets/referral/index.d.ts +0 -3
- package/resources/assets/referral/index.d.ts.map +0 -1
- package/resources/assets/referral/index.js.map +0 -1
- package/resources/assets/referral/index.mjs.map +0 -1
- package/resources/assets/referral/referral.d.ts +0 -30
- package/resources/assets/referral/referral.d.ts.map +0 -1
- package/resources/assets/referral/referral.js.map +0 -1
- package/resources/assets/referral/referral.mjs.map +0 -1
- package/resources/assets/referral/users.d.ts.map +0 -1
- package/resources/assets/referral/users.js.map +0 -1
- package/resources/assets/referral/users.mjs.map +0 -1
- package/resources/assets/users.d.ts +0 -285
- package/resources/assets/users.d.ts.map +0 -1
- package/resources/assets/users.js +0 -34
- package/resources/assets/users.js.map +0 -1
- package/resources/assets/users.mjs.map +0 -1
- package/resources/assets/website-collections.d.ts.map +0 -1
- package/resources/assets/website-collections.js.map +0 -1
- package/resources/assets/website-collections.mjs.map +0 -1
- package/resources/assets/website-user-roles.d.ts.map +0 -1
- package/resources/assets/website-user-roles.js.map +0 -1
- package/resources/assets/website-user-roles.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -51
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -20
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -16
- 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 +0 -43
- 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 -4
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -9
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -5
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -4
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -9
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -5
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/accounts.d.ts +0 -4
- package/resources/loyalty/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -9
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -5
- package/resources/loyalty/accounts.mjs.map +0 -1
- 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/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/index.d.ts +0 -5
- package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/index.js +0 -13
- package/resources/loyalty/transaction-entries/index.js.map +0 -1
- package/resources/loyalty/transaction-entries/index.mjs +0 -6
- package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.js +0 -66
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
- package/resources/loyalty/transaction-entries/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.map +0 -1
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- 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 -4
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -9
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -5
- 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/assets.ts +0 -294
- package/src/resources/assets/index.ts +0 -38
- package/src/resources/assets/referral/index.ts +0 -14
- package/src/resources/assets/referral/referral.ts +0 -74
- package/src/resources/assets/users.ts +0 -415
- package/src/resources/auction-bids.ts +0 -77
- package/src/resources/drip/drip.ts +0 -21
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -5
- package/src/resources/drip/status.ts +0 -5
- package/src/resources/loyalty/accounts.ts +0 -5
- package/src/resources/loyalty/loyalty.ts +0 -165
- package/src/resources/loyalty/transaction-entries/index.ts +0 -34
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
- package/src/resources/users/index.ts +0 -11
- package/src/resources/users/users.ts +0 -33
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.d.ts +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.js +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.mjs +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.d.ts +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.js +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.mjs +0 -0
- /package/resources/{assets → api}/referral/index.js +0 -0
- /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.ts +0 -0
- /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions.ts +0 -0
|
@@ -4,26 +4,26 @@ export declare class WebsiteCollections extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new collection under a website
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
8
|
/**
|
|
9
9
|
* Retrieves collections for a specific website.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for fetching website collections
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface WebsiteCollectionListResponse {
|
|
17
17
|
/**
|
|
18
18
|
* Array of websites
|
|
19
19
|
*/
|
|
20
|
-
data: Array<
|
|
20
|
+
data: Array<WebsiteCollectionListResponse.Data>;
|
|
21
21
|
/**
|
|
22
22
|
* Indicates if more pages are available
|
|
23
23
|
*/
|
|
24
24
|
hasNextPage: boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare namespace
|
|
26
|
+
export declare namespace WebsiteCollectionListResponse {
|
|
27
27
|
interface Data {
|
|
28
28
|
/**
|
|
29
29
|
* Website Collection ID
|
|
@@ -31,10 +31,10 @@ export declare namespace WebsiteCollectionGetWebsiteCollectionsResponse {
|
|
|
31
31
|
id: string;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface WebsiteCollectionCreateParams {
|
|
35
35
|
collectionAddress: string;
|
|
36
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' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli';
|
|
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
38
|
organizationId: string;
|
|
39
39
|
sortId: number;
|
|
40
40
|
websiteId: string;
|
|
@@ -49,7 +49,7 @@ export interface WebsiteCollectionCreateWebsiteCollectionParams {
|
|
|
49
49
|
themeId?: string;
|
|
50
50
|
twitterUsername?: string;
|
|
51
51
|
}
|
|
52
|
-
export interface
|
|
52
|
+
export interface WebsiteCollectionListParams {
|
|
53
53
|
/**
|
|
54
54
|
* Filter by website ID
|
|
55
55
|
*/
|
|
@@ -68,6 +68,6 @@ export interface WebsiteCollectionGetWebsiteCollectionsParams {
|
|
|
68
68
|
startingAfter?: string;
|
|
69
69
|
}
|
|
70
70
|
export declare namespace WebsiteCollections {
|
|
71
|
-
export { type
|
|
71
|
+
export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
72
72
|
}
|
|
73
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"}
|
|
@@ -7,7 +7,7 @@ class WebsiteCollections extends resource_1.APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new collection under a website
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
create(body, options) {
|
|
11
11
|
return this._client.post('/api/website_collections', {
|
|
12
12
|
body,
|
|
13
13
|
...options,
|
|
@@ -17,7 +17,7 @@ class WebsiteCollections extends resource_1.APIResource {
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves collections for a specific website.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
list(query, options) {
|
|
21
21
|
return this._client.get('/api/website_collections', { query, ...options });
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -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"}
|
|
@@ -4,7 +4,7 @@ export class WebsiteCollections extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new collection under a website
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
create(body, options) {
|
|
8
8
|
return this._client.post('/api/website_collections', {
|
|
9
9
|
body,
|
|
10
10
|
...options,
|
|
@@ -14,7 +14,7 @@ export class WebsiteCollections extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Retrieves collections for a specific website.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
list(query, options) {
|
|
18
18
|
return this._client.get('/api/website_collections', { query, ...options });
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -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"}
|
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
export declare class WebsiteUserRoles extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Assign roles to users for a specific website
|
|
6
|
-
*/
|
|
7
|
-
assignRolesToUsers(body: WebsiteUserRoleAssignRolesToUsersParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignRolesToUsersResponse>;
|
|
8
4
|
/**
|
|
9
5
|
* Retrieves roles of users for a specific website. If userId is provided,
|
|
10
6
|
* retrieves the role of that specific user for the website.
|
|
11
7
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export interface WebsiteUserRoleAssignRolesToUsersResponse {
|
|
18
|
-
data?: unknown;
|
|
8
|
+
list(query: WebsiteUserRoleListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleListResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Assign roles to users for a specific website
|
|
11
|
+
*/
|
|
12
|
+
assign(body: WebsiteUserRoleAssignParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignResponse>;
|
|
19
13
|
}
|
|
20
14
|
/**
|
|
21
15
|
* Schema for getWebsiteUserRoles response
|
|
22
16
|
*/
|
|
23
|
-
export interface
|
|
24
|
-
data: Array<
|
|
17
|
+
export interface WebsiteUserRoleListResponse {
|
|
18
|
+
data: Array<WebsiteUserRoleListResponse.Data>;
|
|
25
19
|
}
|
|
26
|
-
export declare namespace
|
|
20
|
+
export declare namespace WebsiteUserRoleListResponse {
|
|
27
21
|
interface Data {
|
|
28
22
|
/**
|
|
29
23
|
* UUID of the website user role
|
|
@@ -31,7 +25,23 @@ export declare namespace WebsiteUserRoleGetWebsiteUserRolesResponse {
|
|
|
31
25
|
id: string;
|
|
32
26
|
}
|
|
33
27
|
}
|
|
34
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Schema for postWebsiteUserRoles response
|
|
30
|
+
*/
|
|
31
|
+
export interface WebsiteUserRoleAssignResponse {
|
|
32
|
+
data?: unknown;
|
|
33
|
+
}
|
|
34
|
+
export interface WebsiteUserRoleListParams {
|
|
35
|
+
/**
|
|
36
|
+
* UUID of the website
|
|
37
|
+
*/
|
|
38
|
+
websiteId: string;
|
|
39
|
+
/**
|
|
40
|
+
* UUID of the user
|
|
41
|
+
*/
|
|
42
|
+
userId?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface WebsiteUserRoleAssignParams {
|
|
35
45
|
/**
|
|
36
46
|
* UUID of the website
|
|
37
47
|
*/
|
|
@@ -39,9 +49,9 @@ export interface WebsiteUserRoleAssignRolesToUsersParams {
|
|
|
39
49
|
/**
|
|
40
50
|
* Array of website user roles
|
|
41
51
|
*/
|
|
42
|
-
websiteUserRoles: Array<
|
|
52
|
+
websiteUserRoles: Array<WebsiteUserRoleAssignParams.WebsiteUserRole>;
|
|
43
53
|
}
|
|
44
|
-
export declare namespace
|
|
54
|
+
export declare namespace WebsiteUserRoleAssignParams {
|
|
45
55
|
interface WebsiteUserRole {
|
|
46
56
|
/**
|
|
47
57
|
* Role type of the user
|
|
@@ -57,17 +67,7 @@ export declare namespace WebsiteUserRoleAssignRolesToUsersParams {
|
|
|
57
67
|
deletedAt?: string;
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
|
-
export interface WebsiteUserRoleGetWebsiteUserRolesParams {
|
|
61
|
-
/**
|
|
62
|
-
* UUID of the website
|
|
63
|
-
*/
|
|
64
|
-
websiteId: string;
|
|
65
|
-
/**
|
|
66
|
-
* UUID of the user
|
|
67
|
-
*/
|
|
68
|
-
userId?: string;
|
|
69
|
-
}
|
|
70
70
|
export declare namespace WebsiteUserRoles {
|
|
71
|
-
export { type
|
|
71
|
+
export { type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
72
72
|
}
|
|
73
73
|
//# sourceMappingURL=website-user-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.d.ts","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAI/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;CAC/C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACtE;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,eAAe;QAC9B;;WAEG;QACH,QAAQ,EACJ,qBAAqB,GACrB,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.WebsiteUserRoles = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class WebsiteUserRoles extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Assign roles to users for a specific website
|
|
9
|
-
*/
|
|
10
|
-
assignRolesToUsers(body, options) {
|
|
11
|
-
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
12
|
-
}
|
|
13
7
|
/**
|
|
14
8
|
* Retrieves roles of users for a specific website. If userId is provided,
|
|
15
9
|
* retrieves the role of that specific user for the website.
|
|
16
10
|
*/
|
|
17
|
-
|
|
11
|
+
list(query, options) {
|
|
18
12
|
return this._client.get('/api/website_user_roles', { query, ...options });
|
|
19
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Assign roles to users for a specific website
|
|
16
|
+
*/
|
|
17
|
+
assign(body, options) {
|
|
18
|
+
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
21
|
exports.WebsiteUserRoles = WebsiteUserRoles;
|
|
22
22
|
//# sourceMappingURL=website-user-roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.js","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AArBD,4CAqBC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class WebsiteUserRoles extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Assign roles to users for a specific website
|
|
6
|
-
*/
|
|
7
|
-
assignRolesToUsers(body, options) {
|
|
8
|
-
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
9
|
-
}
|
|
10
4
|
/**
|
|
11
5
|
* Retrieves roles of users for a specific website. If userId is provided,
|
|
12
6
|
* retrieves the role of that specific user for the website.
|
|
13
7
|
*/
|
|
14
|
-
|
|
8
|
+
list(query, options) {
|
|
15
9
|
return this._client.get('/api/website_user_roles', { query, ...options });
|
|
16
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Assign roles to users for a specific website
|
|
13
|
+
*/
|
|
14
|
+
assign(body, options) {
|
|
15
|
+
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
16
|
+
}
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=website-user-roles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.mjs","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/api/websites.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.Websites = 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 Websites extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new website
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/api/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAQD,IAAI,CACF,QAAiD,EAAE,EACnD,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,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AAvBD,4BAuBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { isRequestOptions } from "
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
4
|
export class Websites extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new website
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/api/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAQD,IAAI,CACF,QAAiD,EAAE,EACnD,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,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC"}
|
package/resources/api.js
ADDED
|
@@ -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("./api/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,iDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.mjs","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { AuctionBids, type AuctionBidListParams } from "./auction-bids.js";
|
|
3
|
-
export { Drip } from "./drip/drip.js";
|
|
4
|
-
export { Loyalty } from "./loyalty/loyalty.js";
|
|
5
|
-
export { Users } from "./users/users.js";
|
|
6
|
-
export { Websites, type WebsiteCreateResponse, type WebsiteListResponse, type WebsiteCreateParams, type WebsiteListParams, } from "./websites.js";
|
|
1
|
+
export { API, type APICreateAssetUploadURLResponse, type APIListAuctionsResponse, type APIListUsersResponse, type APICreateAssetUploadURLParams, type APIListAuctionBidsParams, type APIListUsersParams, } from "./api/api.js";
|
|
7
2
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
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.
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
var auction_bids_1 = require("./auction-bids.js");
|
|
8
|
-
Object.defineProperty(exports, "AuctionBids", { enumerable: true, get: function () { return auction_bids_1.AuctionBids; } });
|
|
9
|
-
var drip_1 = require("./drip/drip.js");
|
|
10
|
-
Object.defineProperty(exports, "Drip", { enumerable: true, get: function () { return drip_1.Drip; } });
|
|
11
|
-
var loyalty_1 = require("./loyalty/loyalty.js");
|
|
12
|
-
Object.defineProperty(exports, "Loyalty", { enumerable: true, get: function () { return loyalty_1.Loyalty; } });
|
|
13
|
-
var users_1 = require("./users/users.js");
|
|
14
|
-
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
15
|
-
var websites_1 = require("./websites.js");
|
|
16
|
-
Object.defineProperty(exports, "Websites", { enumerable: true, get: function () { return websites_1.Websites; } });
|
|
4
|
+
exports.API = void 0;
|
|
5
|
+
var api_1 = require("./api/api.js");
|
|
6
|
+
Object.defineProperty(exports, "API", { enumerable: true, get: function () { return api_1.API; } });
|
|
17
7
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAQmB;AAPjB,0FAAA,GAAG,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export {
|
|
3
|
-
export { AuctionBids } from "./auction-bids.mjs";
|
|
4
|
-
export { Drip } from "./drip/drip.mjs";
|
|
5
|
-
export { Loyalty } from "./loyalty/loyalty.mjs";
|
|
6
|
-
export { Users } from "./users/users.mjs";
|
|
7
|
-
export { Websites, } from "./websites.mjs";
|
|
2
|
+
export { API, } from "./api/api.mjs";
|
|
8
3
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,GAAG,GAOJ"}
|
package/resources.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/resources.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAkC"}
|
package/resources.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/src/core.ts
CHANGED
|
@@ -48,8 +48,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
const contentType = response.headers.get('content-type');
|
|
51
|
-
const
|
|
52
|
-
|
|
51
|
+
const mediaType = contentType?.split(';')[0]?.trim();
|
|
52
|
+
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
53
53
|
if (isJSON) {
|
|
54
54
|
const json = await response.json();
|
|
55
55
|
|
package/src/index.ts
CHANGED
|
@@ -6,27 +6,19 @@ import * as Core from './core';
|
|
|
6
6
|
import * as Errors from './error';
|
|
7
7
|
import * as Uploads from './uploads';
|
|
8
8
|
import * as API from './resources/index';
|
|
9
|
-
import { AuctionBidListParams, AuctionBids } from './resources/auction-bids';
|
|
10
9
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
AssetCreateResponse,
|
|
20
|
-
AssetGetAuctionsResponse,
|
|
21
|
-
Assets,
|
|
22
|
-
} from './resources/assets/assets';
|
|
23
|
-
import { Drip } from './resources/drip/drip';
|
|
24
|
-
import { Loyalty } from './resources/loyalty/loyalty';
|
|
25
|
-
import { Users } from './resources/users/users';
|
|
10
|
+
API as ApiapiAPI,
|
|
11
|
+
APICreateAssetUploadURLParams,
|
|
12
|
+
APICreateAssetUploadURLResponse,
|
|
13
|
+
APIListAuctionBidsParams,
|
|
14
|
+
APIListAuctionsResponse,
|
|
15
|
+
APIListUsersParams,
|
|
16
|
+
APIListUsersResponse,
|
|
17
|
+
} from './resources/api/api';
|
|
26
18
|
|
|
27
19
|
export interface ClientOptions {
|
|
28
20
|
/**
|
|
29
|
-
*
|
|
21
|
+
* Defaults to process.env['SNAG_SOLUTIONS_API_KEY'].
|
|
30
22
|
*/
|
|
31
23
|
apiKey?: string | undefined;
|
|
32
24
|
|
|
@@ -98,8 +90,8 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
98
90
|
/**
|
|
99
91
|
* API Client for interfacing with the Snag Solutions API.
|
|
100
92
|
*
|
|
101
|
-
* @param {string | undefined} [opts.apiKey=process.env['
|
|
102
|
-
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://
|
|
93
|
+
* @param {string | undefined} [opts.apiKey=process.env['SNAG_SOLUTIONS_API_KEY'] ?? undefined]
|
|
94
|
+
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
|
|
103
95
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
104
96
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
105
97
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -109,19 +101,19 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
109
101
|
*/
|
|
110
102
|
constructor({
|
|
111
103
|
baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'),
|
|
112
|
-
apiKey = Core.readEnv('
|
|
104
|
+
apiKey = Core.readEnv('SNAG_SOLUTIONS_API_KEY'),
|
|
113
105
|
...opts
|
|
114
106
|
}: ClientOptions = {}) {
|
|
115
107
|
if (apiKey === undefined) {
|
|
116
108
|
throw new Errors.SnagSolutionsError(
|
|
117
|
-
"The
|
|
109
|
+
"The SNAG_SOLUTIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the SnagSolutions client with an apiKey option, like new SnagSolutions({ apiKey: 'My API Key' }).",
|
|
118
110
|
);
|
|
119
111
|
}
|
|
120
112
|
|
|
121
113
|
const options: ClientOptions = {
|
|
122
114
|
apiKey,
|
|
123
115
|
...opts,
|
|
124
|
-
baseURL: baseURL || `https://
|
|
116
|
+
baseURL: baseURL || `https://api.example.com`,
|
|
125
117
|
};
|
|
126
118
|
|
|
127
119
|
super({
|
|
@@ -137,12 +129,7 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
137
129
|
this.apiKey = apiKey;
|
|
138
130
|
}
|
|
139
131
|
|
|
140
|
-
|
|
141
|
-
users: API.Users = new API.Users(this);
|
|
142
|
-
loyalty: API.Loyalty = new API.Loyalty(this);
|
|
143
|
-
auctionBids: API.AuctionBids = new API.AuctionBids(this);
|
|
144
|
-
websites: API.Websites = new API.Websites(this);
|
|
145
|
-
drip: API.Drip = new API.Drip(this);
|
|
132
|
+
api: API.API = new API.API(this);
|
|
146
133
|
|
|
147
134
|
protected override defaultQuery(): Core.DefaultQuery | undefined {
|
|
148
135
|
return this._options.defaultQuery;
|
|
@@ -184,37 +171,19 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
184
171
|
static fileFromPath = Uploads.fileFromPath;
|
|
185
172
|
}
|
|
186
173
|
|
|
187
|
-
SnagSolutions.
|
|
188
|
-
SnagSolutions.Users = Users;
|
|
189
|
-
SnagSolutions.Loyalty = Loyalty;
|
|
190
|
-
SnagSolutions.AuctionBids = AuctionBids;
|
|
191
|
-
SnagSolutions.Websites = Websites;
|
|
192
|
-
SnagSolutions.Drip = Drip;
|
|
174
|
+
SnagSolutions.API = ApiapiAPI;
|
|
193
175
|
export declare namespace SnagSolutions {
|
|
194
176
|
export type RequestOptions = Core.RequestOptions;
|
|
195
177
|
|
|
196
178
|
export {
|
|
197
|
-
|
|
198
|
-
type
|
|
199
|
-
type
|
|
200
|
-
type
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
export { Loyalty as Loyalty };
|
|
206
|
-
|
|
207
|
-
export { AuctionBids as AuctionBids, type AuctionBidListParams as AuctionBidListParams };
|
|
208
|
-
|
|
209
|
-
export {
|
|
210
|
-
Websites as Websites,
|
|
211
|
-
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
212
|
-
type WebsiteListResponse as WebsiteListResponse,
|
|
213
|
-
type WebsiteCreateParams as WebsiteCreateParams,
|
|
214
|
-
type WebsiteListParams as WebsiteListParams,
|
|
179
|
+
ApiapiAPI as API,
|
|
180
|
+
type APICreateAssetUploadURLResponse as APICreateAssetUploadURLResponse,
|
|
181
|
+
type APIListAuctionsResponse as APIListAuctionsResponse,
|
|
182
|
+
type APIListUsersResponse as APIListUsersResponse,
|
|
183
|
+
type APICreateAssetUploadURLParams as APICreateAssetUploadURLParams,
|
|
184
|
+
type APIListAuctionBidsParams as APIListAuctionBidsParams,
|
|
185
|
+
type APIListUsersParams as APIListUsersParams,
|
|
215
186
|
};
|
|
216
|
-
|
|
217
|
-
export { Drip as Drip };
|
|
218
187
|
}
|
|
219
188
|
|
|
220
189
|
export { toFile, fileFromPath } from './uploads';
|