@snagsolutions/sdk 0.1.0-alpha.23 → 0.1.0-alpha.231
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 +13 -254
- package/LICENSE +1 -1
- package/README.md +15 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +29 -17
- package/core.js.map +1 -1
- package/core.mjs +29 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +14 -8
- package/index.d.ts +14 -8
- package/index.d.ts.map +1 -1
- package/index.js +12 -5
- package/index.js.map +1 -1
- package/index.mjs +13 -6
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +368 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +66 -6
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +6 -0
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -3
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +96 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +666 -135
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +2 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +9 -9
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +6 -6
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +55 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +60 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +39 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +39 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2842 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +279 -56
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +18 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +18 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +2299 -365
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +4 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +11 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +5 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/posts.d.ts +145 -0
- package/resources/loyalty/transactions/posts.d.ts.map +1 -0
- package/resources/loyalty/transactions/posts.js +32 -0
- package/resources/loyalty/transactions/posts.js.map +1 -0
- package/resources/loyalty/transactions/posts.mjs +28 -0
- package/resources/loyalty/transactions/posts.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +121 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +564 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +110 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +83 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -248
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/minting/allowlist.d.ts +84 -0
- package/resources/minting/allowlist.d.ts.map +1 -0
- package/resources/minting/allowlist.js +42 -0
- package/resources/minting/allowlist.js.map +1 -0
- package/resources/minting/allowlist.mjs +38 -0
- package/resources/minting/allowlist.mjs.map +1 -0
- package/resources/minting/contracts.d.ts +165 -0
- package/resources/minting/contracts.d.ts.map +1 -0
- package/resources/minting/contracts.js +30 -0
- package/resources/minting/contracts.js.map +1 -0
- package/resources/minting/contracts.mjs +26 -0
- package/resources/minting/contracts.mjs.map +1 -0
- package/resources/minting/index.d.ts +5 -0
- package/resources/minting/index.d.ts.map +1 -0
- package/resources/minting/index.js +13 -0
- package/resources/minting/index.js.map +1 -0
- package/resources/minting/index.mjs +6 -0
- package/resources/minting/index.mjs.map +1 -0
- package/resources/minting/minting.d.ts +142 -0
- package/resources/minting/minting.d.ts.map +1 -0
- package/resources/minting/minting.js +79 -0
- package/resources/minting/minting.js.map +1 -0
- package/resources/minting/minting.mjs +52 -0
- package/resources/minting/minting.mjs.map +1 -0
- package/resources/minting/status.d.ts +44 -0
- package/resources/minting/status.d.ts.map +1 -0
- package/resources/minting/status.js +33 -0
- package/resources/minting/status.js.map +1 -0
- package/resources/minting/status.mjs +29 -0
- package/resources/minting/status.mjs.map +1 -0
- package/resources/minting.d.ts +1 -94
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -11
- package/resources/minting.js.map +1 -1
- package/resources/minting.mjs +1 -9
- package/resources/minting.mjs.map +1 -1
- package/resources/referral/referral.d.ts +12 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +30 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.mjs.map +1 -1
- package/resources/token-claims.d.ts +160 -0
- package/resources/token-claims.d.ts.map +1 -0
- package/resources/token-claims.js +46 -0
- package/resources/token-claims.js.map +1 -0
- package/resources/token-claims.mjs +42 -0
- package/resources/token-claims.mjs.map +1 -0
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +36 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +196 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +118 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +45 -16
- package/src/index.ts +82 -4
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +561 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +121 -6
- package/src/resources/index.ts +41 -3
- package/src/resources/loyalty/account-streaks.ts +128 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +790 -146
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +13 -2
- package/src/resources/loyalty/loyalty.ts +30 -12
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +64 -4
- package/src/resources/loyalty/questions.ts +64 -6
- package/src/resources/loyalty/rule-edits.ts +4118 -100
- package/src/resources/loyalty/rule-groups.ts +454 -64
- package/src/resources/loyalty/rules.ts +3499 -372
- package/src/resources/loyalty/transactions/index.ts +29 -0
- package/src/resources/loyalty/transactions/posts.ts +221 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +179 -0
- package/src/resources/loyalty/transactions/transactions.ts +914 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +408 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +277 -0
- package/src/resources/minting/status.ts +70 -0
- package/src/resources/minting.ts +1 -157
- package/src/resources/referral/referral.ts +15 -11
- package/src/resources/referral/users.ts +45 -5
- package/src/resources/token-claims.ts +307 -0
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +61 -3
- package/src/resources/users/users.ts +264 -38
- package/src/resources/websites/website-collections.ts +41 -1
- package/src/resources/websites/website-user-roles.ts +26 -1
- package/src/resources/websites/websites.ts +142 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
package/index.d.mts
CHANGED
|
@@ -4,12 +4,13 @@ import * as Errors from "./error.js";
|
|
|
4
4
|
import * as Uploads from "./uploads.js";
|
|
5
5
|
import * as API from "./resources/index.js";
|
|
6
6
|
import { AssetCreateAssetParams, AssetCreateAssetResponse, Assets } from "./resources/assets.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Auth, AuthConnectAuthParams, AuthConnectAuthResponse, AuthConnectAuthVerifyParams, AuthConnectAuthVerifyResponse } from "./resources/auth.js";
|
|
8
|
+
import { TokenClaimCheckEligibilityParams, TokenClaimCheckEligibilityResponse, TokenClaimGetProofParams, TokenClaimGetProofResponse, TokenClaimListParams, TokenClaimListResponse, TokenClaimListUsersParams, TokenClaimListUsersResponse, TokenClaimRetrieveParams, TokenClaimRetrieveResponse, TokenClaimUpdateClaimParams, TokenClaimUpdateClaimResponse, TokenClaims } from "./resources/token-claims.js";
|
|
9
|
+
import { AuctionGetPageSectionsParams, AuctionGetPageSectionsResponse, AuctionListAuctionBidsParams, AuctionListAuctionBidsResponse, AuctionListAuctionsResponse, Auctions } from "./resources/auctions/auctions.js";
|
|
10
10
|
import { Loyalty } from "./resources/loyalty/loyalty.js";
|
|
11
|
+
import { Minting, MintingGetAssetsParams, MintingGetAssetsResponse, MintingGetTokenGateStatusParams, MintingGetTokenGateStatusResponse } from "./resources/minting/minting.js";
|
|
11
12
|
import { Referral, ReferralCreateCodeParams, ReferralCreateCodeResponse } from "./resources/referral/referral.js";
|
|
12
|
-
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, Users } from "./resources/users/users.js";
|
|
13
|
+
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserCreateDeviceParams, UserCreateDeviceResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, UserVerifyParams, UserVerifyResponse, Users } from "./resources/users/users.js";
|
|
13
14
|
import { WebsiteCreateParams, WebsiteCreateResponse, WebsiteListParams, WebsiteListResponse, Websites } from "./resources/websites/websites.js";
|
|
14
15
|
export interface ClientOptions {
|
|
15
16
|
/**
|
|
@@ -28,6 +29,8 @@ export interface ClientOptions {
|
|
|
28
29
|
*
|
|
29
30
|
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
30
31
|
* much longer than this timeout before the promise succeeds or fails.
|
|
32
|
+
*
|
|
33
|
+
* @unit milliseconds
|
|
31
34
|
*/
|
|
32
35
|
timeout?: number | undefined;
|
|
33
36
|
/**
|
|
@@ -70,6 +73,7 @@ export interface ClientOptions {
|
|
|
70
73
|
* API Client for interfacing with the Snag Solutions API.
|
|
71
74
|
*/
|
|
72
75
|
export declare class SnagSolutions extends Core.APIClient {
|
|
76
|
+
#private;
|
|
73
77
|
apiKey: string;
|
|
74
78
|
private _options;
|
|
75
79
|
/**
|
|
@@ -93,6 +97,7 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
93
97
|
minting: API.Minting;
|
|
94
98
|
referral: API.Referral;
|
|
95
99
|
websites: API.Websites;
|
|
100
|
+
tokenClaims: API.TokenClaims;
|
|
96
101
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
97
102
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
98
103
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -118,13 +123,14 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
118
123
|
export declare namespace SnagSolutions {
|
|
119
124
|
export type RequestOptions = Core.RequestOptions;
|
|
120
125
|
export { Assets as Assets, type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
|
|
121
|
-
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthParams as AuthConnectAuthParams, };
|
|
122
|
-
export { Auctions as Auctions, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
123
|
-
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
126
|
+
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthVerifyResponse as AuthConnectAuthVerifyResponse, type AuthConnectAuthParams as AuthConnectAuthParams, type AuthConnectAuthVerifyParams as AuthConnectAuthVerifyParams, };
|
|
127
|
+
export { Auctions as Auctions, type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
128
|
+
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserCreateDeviceResponse as UserCreateDeviceResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserVerifyResponse as UserVerifyResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserCreateDeviceParams as UserCreateDeviceParams, type UserDisconnectParams as UserDisconnectParams, type UserVerifyParams as UserVerifyParams, };
|
|
124
129
|
export { Loyalty as Loyalty };
|
|
125
|
-
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetAssetsParams as MintingGetAssetsParams, };
|
|
130
|
+
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
126
131
|
export { Referral as Referral, type ReferralCreateCodeResponse as ReferralCreateCodeResponse, type ReferralCreateCodeParams as ReferralCreateCodeParams, };
|
|
127
132
|
export { Websites as Websites, type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
133
|
+
export { TokenClaims as TokenClaims, type TokenClaimRetrieveResponse as TokenClaimRetrieveResponse, type TokenClaimListResponse as TokenClaimListResponse, type TokenClaimCheckEligibilityResponse as TokenClaimCheckEligibilityResponse, type TokenClaimGetProofResponse as TokenClaimGetProofResponse, type TokenClaimListUsersResponse as TokenClaimListUsersResponse, type TokenClaimUpdateClaimResponse as TokenClaimUpdateClaimResponse, type TokenClaimRetrieveParams as TokenClaimRetrieveParams, type TokenClaimListParams as TokenClaimListParams, type TokenClaimCheckEligibilityParams as TokenClaimCheckEligibilityParams, type TokenClaimGetProofParams as TokenClaimGetProofParams, type TokenClaimListUsersParams as TokenClaimListUsersParams, type TokenClaimUpdateClaimParams as TokenClaimUpdateClaimParams, };
|
|
128
134
|
}
|
|
129
135
|
export { toFile, fileFromPath } from "./uploads.js";
|
|
130
136
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts
CHANGED
|
@@ -4,12 +4,13 @@ import * as Errors from "./error.js";
|
|
|
4
4
|
import * as Uploads from "./uploads.js";
|
|
5
5
|
import * as API from "./resources/index.js";
|
|
6
6
|
import { AssetCreateAssetParams, AssetCreateAssetResponse, Assets } from "./resources/assets.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Auth, AuthConnectAuthParams, AuthConnectAuthResponse, AuthConnectAuthVerifyParams, AuthConnectAuthVerifyResponse } from "./resources/auth.js";
|
|
8
|
+
import { TokenClaimCheckEligibilityParams, TokenClaimCheckEligibilityResponse, TokenClaimGetProofParams, TokenClaimGetProofResponse, TokenClaimListParams, TokenClaimListResponse, TokenClaimListUsersParams, TokenClaimListUsersResponse, TokenClaimRetrieveParams, TokenClaimRetrieveResponse, TokenClaimUpdateClaimParams, TokenClaimUpdateClaimResponse, TokenClaims } from "./resources/token-claims.js";
|
|
9
|
+
import { AuctionGetPageSectionsParams, AuctionGetPageSectionsResponse, AuctionListAuctionBidsParams, AuctionListAuctionBidsResponse, AuctionListAuctionsResponse, Auctions } from "./resources/auctions/auctions.js";
|
|
10
10
|
import { Loyalty } from "./resources/loyalty/loyalty.js";
|
|
11
|
+
import { Minting, MintingGetAssetsParams, MintingGetAssetsResponse, MintingGetTokenGateStatusParams, MintingGetTokenGateStatusResponse } from "./resources/minting/minting.js";
|
|
11
12
|
import { Referral, ReferralCreateCodeParams, ReferralCreateCodeResponse } from "./resources/referral/referral.js";
|
|
12
|
-
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, Users } from "./resources/users/users.js";
|
|
13
|
+
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserCreateDeviceParams, UserCreateDeviceResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, UserVerifyParams, UserVerifyResponse, Users } from "./resources/users/users.js";
|
|
13
14
|
import { WebsiteCreateParams, WebsiteCreateResponse, WebsiteListParams, WebsiteListResponse, Websites } from "./resources/websites/websites.js";
|
|
14
15
|
export interface ClientOptions {
|
|
15
16
|
/**
|
|
@@ -28,6 +29,8 @@ export interface ClientOptions {
|
|
|
28
29
|
*
|
|
29
30
|
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
30
31
|
* much longer than this timeout before the promise succeeds or fails.
|
|
32
|
+
*
|
|
33
|
+
* @unit milliseconds
|
|
31
34
|
*/
|
|
32
35
|
timeout?: number | undefined;
|
|
33
36
|
/**
|
|
@@ -70,6 +73,7 @@ export interface ClientOptions {
|
|
|
70
73
|
* API Client for interfacing with the Snag Solutions API.
|
|
71
74
|
*/
|
|
72
75
|
export declare class SnagSolutions extends Core.APIClient {
|
|
76
|
+
#private;
|
|
73
77
|
apiKey: string;
|
|
74
78
|
private _options;
|
|
75
79
|
/**
|
|
@@ -93,6 +97,7 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
93
97
|
minting: API.Minting;
|
|
94
98
|
referral: API.Referral;
|
|
95
99
|
websites: API.Websites;
|
|
100
|
+
tokenClaims: API.TokenClaims;
|
|
96
101
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
97
102
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
98
103
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -118,13 +123,14 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
118
123
|
export declare namespace SnagSolutions {
|
|
119
124
|
export type RequestOptions = Core.RequestOptions;
|
|
120
125
|
export { Assets as Assets, type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
|
|
121
|
-
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthParams as AuthConnectAuthParams, };
|
|
122
|
-
export { Auctions as Auctions, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
123
|
-
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
126
|
+
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthVerifyResponse as AuthConnectAuthVerifyResponse, type AuthConnectAuthParams as AuthConnectAuthParams, type AuthConnectAuthVerifyParams as AuthConnectAuthVerifyParams, };
|
|
127
|
+
export { Auctions as Auctions, type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
128
|
+
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserCreateDeviceResponse as UserCreateDeviceResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserVerifyResponse as UserVerifyResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserCreateDeviceParams as UserCreateDeviceParams, type UserDisconnectParams as UserDisconnectParams, type UserVerifyParams as UserVerifyParams, };
|
|
124
129
|
export { Loyalty as Loyalty };
|
|
125
|
-
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetAssetsParams as MintingGetAssetsParams, };
|
|
130
|
+
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
126
131
|
export { Referral as Referral, type ReferralCreateCodeResponse as ReferralCreateCodeResponse, type ReferralCreateCodeParams as ReferralCreateCodeParams, };
|
|
127
132
|
export { Websites as Websites, type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
133
|
+
export { TokenClaims as TokenClaims, type TokenClaimRetrieveResponse as TokenClaimRetrieveResponse, type TokenClaimListResponse as TokenClaimListResponse, type TokenClaimCheckEligibilityResponse as TokenClaimCheckEligibilityResponse, type TokenClaimGetProofResponse as TokenClaimGetProofResponse, type TokenClaimListUsersResponse as TokenClaimListUsersResponse, type TokenClaimUpdateClaimResponse as TokenClaimUpdateClaimResponse, type TokenClaimRetrieveParams as TokenClaimRetrieveParams, type TokenClaimListParams as TokenClaimListParams, type TokenClaimCheckEligibilityParams as TokenClaimCheckEligibilityParams, type TokenClaimGetProofParams as TokenClaimGetProofParams, type TokenClaimListUsersParams as TokenClaimListUsersParams, type TokenClaimUpdateClaimParams as TokenClaimUpdateClaimParams, };
|
|
128
134
|
}
|
|
129
135
|
export { toFile, fileFromPath } from "./uploads.js";
|
|
130
136
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,2BAA2B,EAC3B,QAAQ,EACT,MAAM,+BA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EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,aAAa,CAAC"}
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
__setModuleDefault(result, mod);
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
|
-
var _a;
|
|
26
|
+
var _SnagSolutions_instances, _a, _SnagSolutions_baseURLOverridden;
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.SnagSolutionsError = exports.fileFromPath = exports.toFile = exports.SnagSolutions = void 0;
|
|
29
29
|
const qs = __importStar(require("./internal/qs/index.js"));
|
|
@@ -32,10 +32,11 @@ const Errors = __importStar(require("./error.js"));
|
|
|
32
32
|
const Uploads = __importStar(require("./uploads.js"));
|
|
33
33
|
const API = __importStar(require("./resources/index.js"));
|
|
34
34
|
const assets_1 = require("./resources/assets.js");
|
|
35
|
-
const auctions_1 = require("./resources/auctions.js");
|
|
36
35
|
const auth_1 = require("./resources/auth.js");
|
|
37
|
-
const
|
|
36
|
+
const token_claims_1 = require("./resources/token-claims.js");
|
|
37
|
+
const auctions_1 = require("./resources/auctions/auctions.js");
|
|
38
38
|
const loyalty_1 = require("./resources/loyalty/loyalty.js");
|
|
39
|
+
const minting_1 = require("./resources/minting/minting.js");
|
|
39
40
|
const referral_1 = require("./resources/referral/referral.js");
|
|
40
41
|
const users_1 = require("./resources/users/users.js");
|
|
41
42
|
const websites_1 = require("./resources/websites/websites.js");
|
|
@@ -66,11 +67,13 @@ class SnagSolutions extends Core.APIClient {
|
|
|
66
67
|
};
|
|
67
68
|
super({
|
|
68
69
|
baseURL: options.baseURL,
|
|
70
|
+
baseURLOverridden: baseURL ? baseURL !== 'https://admin.snagsolutions.io/' : false,
|
|
69
71
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
70
72
|
httpAgent: options.httpAgent,
|
|
71
73
|
maxRetries: options.maxRetries,
|
|
72
74
|
fetch: options.fetch,
|
|
73
75
|
});
|
|
76
|
+
_SnagSolutions_instances.add(this);
|
|
74
77
|
this.assets = new API.Assets(this);
|
|
75
78
|
this.auth = new API.Auth(this);
|
|
76
79
|
this.auctions = new API.Auctions(this);
|
|
@@ -79,6 +82,7 @@ class SnagSolutions extends Core.APIClient {
|
|
|
79
82
|
this.minting = new API.Minting(this);
|
|
80
83
|
this.referral = new API.Referral(this);
|
|
81
84
|
this.websites = new API.Websites(this);
|
|
85
|
+
this.tokenClaims = new API.TokenClaims(this);
|
|
82
86
|
this._options = options;
|
|
83
87
|
this.apiKey = apiKey;
|
|
84
88
|
}
|
|
@@ -95,11 +99,13 @@ class SnagSolutions extends Core.APIClient {
|
|
|
95
99
|
return { 'X-API-KEY': this.apiKey };
|
|
96
100
|
}
|
|
97
101
|
stringifyQuery(query) {
|
|
98
|
-
return qs.stringify(query, { arrayFormat: '
|
|
102
|
+
return qs.stringify(query, { arrayFormat: 'repeat' });
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
exports.SnagSolutions = SnagSolutions;
|
|
102
|
-
_a = SnagSolutions
|
|
106
|
+
_a = SnagSolutions, _SnagSolutions_instances = new WeakSet(), _SnagSolutions_baseURLOverridden = function _SnagSolutions_baseURLOverridden() {
|
|
107
|
+
return this.baseURL !== 'https://admin.snagsolutions.io/';
|
|
108
|
+
};
|
|
103
109
|
SnagSolutions.SnagSolutions = _a;
|
|
104
110
|
SnagSolutions.DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
105
111
|
SnagSolutions.SnagSolutionsError = Errors.SnagSolutionsError;
|
|
@@ -125,6 +131,7 @@ SnagSolutions.Loyalty = loyalty_1.Loyalty;
|
|
|
125
131
|
SnagSolutions.Minting = minting_1.Minting;
|
|
126
132
|
SnagSolutions.Referral = referral_1.Referral;
|
|
127
133
|
SnagSolutions.Websites = websites_1.Websites;
|
|
134
|
+
SnagSolutions.TokenClaims = token_claims_1.TokenClaims;
|
|
128
135
|
var uploads_1 = require("./uploads.js");
|
|
129
136
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
130
137
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,kDAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,kDAA8F;AAC9F,8CAM0B;AAC1B,8DAckC;AAClC,+DAOuC;AACvC,4DAAsD;AACtD,4DAMqC;AACrC,+DAIuC;AACvC,sDAciC;AACjC,+DAMuC;AAmEvC;;GAEG;AACH,MAAa,aAAc,SAAQ,IAAI,CAAC,SAAS;IAK/C;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,EACjD,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAClC,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,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B,0BAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,aAAa,CAAC,MAAM,GAAG,eAAM,CAAC;AAC9B,aAAa,CAAC,IAAI,GAAG,WAAI,CAAC;AAC1B,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAClC,aAAa,CAAC,KAAK,GAAG,aAAK,CAAC;AAC5B,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAClC,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAClC,aAAa,CAAC,WAAW,GAAG,0BAAW,CAAC;AAqFxC,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,2GAAA,kBAAkB,OAAA;AAClB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,aAAa,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
var _a;
|
|
2
|
+
var _SnagSolutions_instances, _a, _SnagSolutions_baseURLOverridden;
|
|
3
3
|
import * as qs from "./internal/qs/index.mjs";
|
|
4
4
|
import * as Core from "./core.mjs";
|
|
5
5
|
import * as Errors from "./error.mjs";
|
|
6
6
|
import * as Uploads from "./uploads.mjs";
|
|
7
7
|
import * as API from "./resources/index.mjs";
|
|
8
8
|
import { Assets } from "./resources/assets.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { Auth, } from "./resources/auth.mjs";
|
|
10
|
+
import { TokenClaims, } from "./resources/token-claims.mjs";
|
|
11
|
+
import { Auctions, } from "./resources/auctions/auctions.mjs";
|
|
12
12
|
import { Loyalty } from "./resources/loyalty/loyalty.mjs";
|
|
13
|
+
import { Minting, } from "./resources/minting/minting.mjs";
|
|
13
14
|
import { Referral, } from "./resources/referral/referral.mjs";
|
|
14
15
|
import { Users, } from "./resources/users/users.mjs";
|
|
15
16
|
import { Websites, } from "./resources/websites/websites.mjs";
|
|
@@ -40,11 +41,13 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
40
41
|
};
|
|
41
42
|
super({
|
|
42
43
|
baseURL: options.baseURL,
|
|
44
|
+
baseURLOverridden: baseURL ? baseURL !== 'https://admin.snagsolutions.io/' : false,
|
|
43
45
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
44
46
|
httpAgent: options.httpAgent,
|
|
45
47
|
maxRetries: options.maxRetries,
|
|
46
48
|
fetch: options.fetch,
|
|
47
49
|
});
|
|
50
|
+
_SnagSolutions_instances.add(this);
|
|
48
51
|
this.assets = new API.Assets(this);
|
|
49
52
|
this.auth = new API.Auth(this);
|
|
50
53
|
this.auctions = new API.Auctions(this);
|
|
@@ -53,6 +56,7 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
53
56
|
this.minting = new API.Minting(this);
|
|
54
57
|
this.referral = new API.Referral(this);
|
|
55
58
|
this.websites = new API.Websites(this);
|
|
59
|
+
this.tokenClaims = new API.TokenClaims(this);
|
|
56
60
|
this._options = options;
|
|
57
61
|
this.apiKey = apiKey;
|
|
58
62
|
}
|
|
@@ -69,10 +73,12 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
69
73
|
return { 'X-API-KEY': this.apiKey };
|
|
70
74
|
}
|
|
71
75
|
stringifyQuery(query) {
|
|
72
|
-
return qs.stringify(query, { arrayFormat: '
|
|
76
|
+
return qs.stringify(query, { arrayFormat: 'repeat' });
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
_a = SnagSolutions
|
|
79
|
+
_a = SnagSolutions, _SnagSolutions_instances = new WeakSet(), _SnagSolutions_baseURLOverridden = function _SnagSolutions_baseURLOverridden() {
|
|
80
|
+
return this.baseURL !== 'https://admin.snagsolutions.io/';
|
|
81
|
+
};
|
|
76
82
|
SnagSolutions.SnagSolutions = _a;
|
|
77
83
|
SnagSolutions.DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
78
84
|
SnagSolutions.SnagSolutionsError = Errors.SnagSolutionsError;
|
|
@@ -98,6 +104,7 @@ SnagSolutions.Loyalty = Loyalty;
|
|
|
98
104
|
SnagSolutions.Minting = Minting;
|
|
99
105
|
SnagSolutions.Referral = Referral;
|
|
100
106
|
SnagSolutions.Websites = Websites;
|
|
107
|
+
SnagSolutions.TokenClaims = TokenClaims;
|
|
101
108
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
102
109
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
|
103
110
|
export default SnagSolutions;
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAoD,MAAM,EAAE;OAC5D,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO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
1
|
{
|
|
2
2
|
"name": "@snagsolutions/sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.231",
|
|
4
4
|
"description": "The official TypeScript library for the Snag Solutions API",
|
|
5
5
|
"author": "Snag Solutions <dev-feedback@snag-solutions.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"**/*"
|
|
14
14
|
],
|
|
15
15
|
"private": false,
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
16
19
|
"scripts": {
|
|
17
20
|
"test": "./scripts/test",
|
|
18
21
|
"build": "./scripts/build",
|
|
@@ -38,10 +41,6 @@
|
|
|
38
41
|
"./shims/web.js",
|
|
39
42
|
"./shims/web.mjs"
|
|
40
43
|
],
|
|
41
|
-
"imports": {
|
|
42
|
-
"@snagsolutions/sdk": ".",
|
|
43
|
-
"@snagsolutions/sdk/*": "./src/*"
|
|
44
|
-
},
|
|
45
44
|
"exports": {
|
|
46
45
|
"./_shims/auto/*": {
|
|
47
46
|
"deno": {
|
package/resource.d.ts
CHANGED
package/resource.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,8BAAsB,WAAW;IAC/B,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;gBAErB,MAAM,EAAE,aAAa;CAGlC"}
|
package/resource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAsB,WAAW;IAG/B,YAAY,MAAqB;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
|
package/resource.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAgB,WAAW;IAG/B,YAAY,MAAqB;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
package/resources/assets.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ export declare class Assets extends APIResource {
|
|
|
5
5
|
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
6
6
|
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
7
7
|
* asset using the presigned URL.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.assets.createAsset({
|
|
12
|
+
* fileName: 'example.png',
|
|
13
|
+
* fileSize: 1024,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
createAsset(body: AssetCreateAssetParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateAssetResponse>;
|
|
10
18
|
}
|
|
@@ -24,13 +32,19 @@ export interface AssetCreateAssetResponse {
|
|
|
24
32
|
}
|
|
25
33
|
export interface AssetCreateAssetParams {
|
|
26
34
|
/**
|
|
27
|
-
* The name of the file, must match the regex pattern (converted to lowercase)
|
|
35
|
+
* The name of the file, must match the regex pattern (converted to lowercase) and
|
|
36
|
+
* have a valid extension.
|
|
28
37
|
*/
|
|
29
38
|
fileName: string;
|
|
39
|
+
/**
|
|
40
|
+
* Size of the file in bytes. Uploaded file must match this file size. 1mb for
|
|
41
|
+
* images and 10mb for videos.
|
|
42
|
+
*/
|
|
43
|
+
fileSize: number;
|
|
30
44
|
/**
|
|
31
45
|
* The file path, must be a valid enum value.
|
|
32
46
|
*/
|
|
33
|
-
filePath?: '
|
|
47
|
+
filePath?: 'images' | 'videos' | 'banners' | 'fonts' | 'posts' | 'profiles' | 'minting' | 'loyalty' | 'tokenClaims';
|
|
34
48
|
/**
|
|
35
49
|
* UUID of the organization (optional, converted to lowercase)
|
|
36
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAG7C;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EACL,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,GACT,aAAa,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/assets.js
CHANGED
|
@@ -8,6 +8,14 @@ class Assets extends resource_1.APIResource {
|
|
|
8
8
|
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
9
9
|
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
10
10
|
* asset using the presigned URL.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.assets.createAsset({
|
|
15
|
+
* fileName: 'example.png',
|
|
16
|
+
* fileSize: 1024,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
createAsset(body, options) {
|
|
13
21
|
return this._client.post('/api/assets', { body, ...options });
|
package/resources/assets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AApBD,wBAoBC"}
|
package/resources/assets.mjs
CHANGED
|
@@ -5,6 +5,14 @@ export class Assets extends APIResource {
|
|
|
5
5
|
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
6
6
|
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
7
7
|
* asset using the presigned URL.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.assets.createAsset({
|
|
12
|
+
* fileName: 'example.png',
|
|
13
|
+
* fileSize: 1024,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
createAsset(body, options) {
|
|
10
18
|
return this._client.post('/api/assets', { body, ...options });
|
package/resources/assets.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF"}
|