@snagsolutions/sdk 0.1.0-alpha.214 → 0.1.0-alpha.216
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 +21 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +2 -2
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +1 -1
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +2 -2
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +2 -1
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.js +3 -1
- package/resources/loyalty/transactions/index.js.map +1 -1
- package/resources/loyalty/transactions/index.mjs +1 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -1
- 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/transactions.d.ts +144 -2
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +34 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +34 -0
- package/resources/loyalty/transactions/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 +38 -0
- package/resources/minting/contracts.d.ts.map +1 -0
- package/resources/minting/contracts.js +23 -0
- package/resources/minting/contracts.js.map +1 -0
- package/resources/minting/contracts.mjs +19 -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/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/src/index.ts +42 -1
- package/src/resources/index.ts +22 -1
- package/src/resources/loyalty/index.ts +4 -0
- package/src/resources/loyalty/loyalty.ts +8 -0
- package/src/resources/loyalty/rule-groups.ts +1 -2
- package/src/resources/loyalty/rules.ts +2 -4
- package/src/resources/loyalty/transactions/index.ts +11 -0
- package/src/resources/loyalty/transactions/posts.ts +221 -0
- package/src/resources/loyalty/transactions/transactions.ts +194 -2
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +73 -0
- package/src/resources/minting/index.ts +23 -0
- package/src/resources/minting/minting.ts +269 -0
- package/src/resources/minting/status.ts +70 -0
- package/src/resources/minting.ts +1 -176
- package/src/resources/token-claims.ts +307 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class TokenClaims extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get a token claim by id
|
|
6
|
+
*/
|
|
7
|
+
retrieve(pathId: string, query: TokenClaimRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimRetrieveResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Get all available token claims for a given website and organization
|
|
10
|
+
*/
|
|
11
|
+
list(query?: TokenClaimListParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
12
|
+
list(options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Check if a wallet address is eligible for a token claim
|
|
15
|
+
*/
|
|
16
|
+
checkEligibility(pathId: string, query: TokenClaimCheckEligibilityParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimCheckEligibilityResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a token claim proof for a given wallet address
|
|
19
|
+
*/
|
|
20
|
+
getProof(pathId: string, query: TokenClaimGetProofParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimGetProofResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get all users part of a token claim
|
|
23
|
+
*/
|
|
24
|
+
listUsers(id: string, query?: TokenClaimListUsersParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
25
|
+
listUsers(id: string, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Update a user claim status after a user has claimed
|
|
28
|
+
*/
|
|
29
|
+
updateClaim(id: string, body: TokenClaimUpdateClaimParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimUpdateClaimResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface TokenClaimRetrieveResponse {
|
|
32
|
+
tokenClaimId: string;
|
|
33
|
+
totalAllocation: number;
|
|
34
|
+
walletAddress: string;
|
|
35
|
+
proof?: unknown;
|
|
36
|
+
}
|
|
37
|
+
export interface TokenClaimListResponse {
|
|
38
|
+
data: Array<TokenClaimListResponse.Data>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace TokenClaimListResponse {
|
|
41
|
+
interface Data {
|
|
42
|
+
id: string;
|
|
43
|
+
claimContractAddress: string | null;
|
|
44
|
+
contract: Data.Contract;
|
|
45
|
+
csvUrl: string | null;
|
|
46
|
+
dataJobId: string | null;
|
|
47
|
+
endTime: string | null;
|
|
48
|
+
geoBlock: Array<string>;
|
|
49
|
+
isDraft: boolean;
|
|
50
|
+
name: string;
|
|
51
|
+
relayerId: string | null;
|
|
52
|
+
stakingContractAddress: string | null;
|
|
53
|
+
startTime: string | null;
|
|
54
|
+
totalAllocatedAmount: number;
|
|
55
|
+
totalClaimedAmount: number;
|
|
56
|
+
totalWalletsAllocated: number;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
claimAndStake?: boolean;
|
|
59
|
+
isStakingOptional?: boolean;
|
|
60
|
+
maxBonus?: number;
|
|
61
|
+
minLockup?: number;
|
|
62
|
+
minLockupForMultiplier?: number;
|
|
63
|
+
multiplier?: number;
|
|
64
|
+
stakingContractType?: 'linear' | 'timelock' | null;
|
|
65
|
+
}
|
|
66
|
+
namespace Data {
|
|
67
|
+
interface Contract {
|
|
68
|
+
id: string;
|
|
69
|
+
address: string;
|
|
70
|
+
chainId: number;
|
|
71
|
+
name: string | null;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export interface TokenClaimCheckEligibilityResponse {
|
|
76
|
+
alreadyClaimed: boolean;
|
|
77
|
+
amount: number;
|
|
78
|
+
claimContractAddress: string | null;
|
|
79
|
+
claimedAt: string | null;
|
|
80
|
+
eligible: boolean;
|
|
81
|
+
stakes: Array<TokenClaimCheckEligibilityResponse.Stake>;
|
|
82
|
+
tokenClaimId: string;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace TokenClaimCheckEligibilityResponse {
|
|
85
|
+
interface Stake {
|
|
86
|
+
amount: string;
|
|
87
|
+
claimable: string;
|
|
88
|
+
claimed: string;
|
|
89
|
+
duration: number;
|
|
90
|
+
stakeId: string;
|
|
91
|
+
startTime: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export interface TokenClaimGetProofResponse {
|
|
95
|
+
tokenClaimId: string;
|
|
96
|
+
totalAllocation: number;
|
|
97
|
+
walletAddress: string;
|
|
98
|
+
proof?: unknown;
|
|
99
|
+
}
|
|
100
|
+
export interface TokenClaimListUsersResponse {
|
|
101
|
+
data: Array<TokenClaimListUsersResponse.Data>;
|
|
102
|
+
hasNextPage: boolean;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace TokenClaimListUsersResponse {
|
|
105
|
+
interface Data {
|
|
106
|
+
id: string;
|
|
107
|
+
amount: number;
|
|
108
|
+
claimedAt: string | null;
|
|
109
|
+
user: Data.User;
|
|
110
|
+
}
|
|
111
|
+
namespace Data {
|
|
112
|
+
interface User {
|
|
113
|
+
id: string;
|
|
114
|
+
walletAddress: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export interface TokenClaimUpdateClaimResponse {
|
|
119
|
+
data: TokenClaimUpdateClaimResponse.Data;
|
|
120
|
+
message: string;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace TokenClaimUpdateClaimResponse {
|
|
123
|
+
interface Data {
|
|
124
|
+
claimedAt: string;
|
|
125
|
+
tokenClaimId: string;
|
|
126
|
+
totalAllocation: number;
|
|
127
|
+
walletAddress: string;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export interface TokenClaimRetrieveParams {
|
|
131
|
+
query_id: string;
|
|
132
|
+
}
|
|
133
|
+
export interface TokenClaimListParams {
|
|
134
|
+
contractId?: string;
|
|
135
|
+
organizationId?: string;
|
|
136
|
+
websiteId?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface TokenClaimCheckEligibilityParams {
|
|
139
|
+
query_id: string;
|
|
140
|
+
walletAddress: string;
|
|
141
|
+
}
|
|
142
|
+
export interface TokenClaimGetProofParams {
|
|
143
|
+
query_id: string;
|
|
144
|
+
walletAddress: string;
|
|
145
|
+
}
|
|
146
|
+
export interface TokenClaimListUsersParams {
|
|
147
|
+
limit?: number;
|
|
148
|
+
sortBy?: 'claimedAt' | 'amount';
|
|
149
|
+
sortOrder?: 'asc' | 'desc';
|
|
150
|
+
startingAfter?: string;
|
|
151
|
+
walletAddress?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface TokenClaimUpdateClaimParams {
|
|
154
|
+
txHash: string;
|
|
155
|
+
walletAddress: string;
|
|
156
|
+
}
|
|
157
|
+
export declare namespace TokenClaims {
|
|
158
|
+
export { 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, };
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=token-claims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-claims.d.ts","sourceRoot":"","sources":["../src/resources/token-claims.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAI9C;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAC1G,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAW5E;;OAEG;IACH,gBAAgB,CACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAItD;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAI9C;;OAE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AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IAEhC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAE3B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IAEf,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TokenClaims = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
const core_1 = require("../core.js");
|
|
7
|
+
class TokenClaims extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a token claim by id
|
|
10
|
+
*/
|
|
11
|
+
retrieve(pathId, query, options) {
|
|
12
|
+
return this._client.get(`/api/token_claims/${pathId}`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
list(query = {}, options) {
|
|
15
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
16
|
+
return this.list({}, query);
|
|
17
|
+
}
|
|
18
|
+
return this._client.get('/api/token_claims', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if a wallet address is eligible for a token claim
|
|
22
|
+
*/
|
|
23
|
+
checkEligibility(pathId, query, options) {
|
|
24
|
+
return this._client.get(`/api/token_claims/${pathId}/eligibility`, { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get a token claim proof for a given wallet address
|
|
28
|
+
*/
|
|
29
|
+
getProof(pathId, query, options) {
|
|
30
|
+
return this._client.get(`/api/token_claims/${pathId}/proof`, { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
listUsers(id, query = {}, options) {
|
|
33
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
34
|
+
return this.listUsers(id, {}, query);
|
|
35
|
+
}
|
|
36
|
+
return this._client.get(`/api/token_claims/${id}/users`, { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Update a user claim status after a user has claimed
|
|
40
|
+
*/
|
|
41
|
+
updateClaim(id, body, options) {
|
|
42
|
+
return this._client.post(`/api/token_claims/${id}/claim`, { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.TokenClaims = TokenClaims;
|
|
46
|
+
//# sourceMappingURL=token-claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-claims.js","sourceRoot":"","sources":["../src/resources/token-claims.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,KAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,MAA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IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA/ED,kCA+EC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../core.mjs";
|
|
4
|
+
export class TokenClaims extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a token claim by id
|
|
7
|
+
*/
|
|
8
|
+
retrieve(pathId, query, options) {
|
|
9
|
+
return this._client.get(`/api/token_claims/${pathId}`, { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
list(query = {}, options) {
|
|
12
|
+
if (isRequestOptions(query)) {
|
|
13
|
+
return this.list({}, query);
|
|
14
|
+
}
|
|
15
|
+
return this._client.get('/api/token_claims', { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Check if a wallet address is eligible for a token claim
|
|
19
|
+
*/
|
|
20
|
+
checkEligibility(pathId, query, options) {
|
|
21
|
+
return this._client.get(`/api/token_claims/${pathId}/eligibility`, { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get a token claim proof for a given wallet address
|
|
25
|
+
*/
|
|
26
|
+
getProof(pathId, query, options) {
|
|
27
|
+
return this._client.get(`/api/token_claims/${pathId}/proof`, { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
listUsers(id, query = {}, options) {
|
|
30
|
+
if (isRequestOptions(query)) {
|
|
31
|
+
return this.listUsers(id, {}, query);
|
|
32
|
+
}
|
|
33
|
+
return this._client.get(`/api/token_claims/${id}/users`, { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Update a user claim status after a user has claimed
|
|
37
|
+
*/
|
|
38
|
+
updateClaim(id, body, options) {
|
|
39
|
+
return this._client.post(`/api/token_claims/${id}/claim`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=token-claims.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-claims.mjs","sourceRoot":"","sources":["../src/resources/token-claims.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,KAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAOD,IAAI,CACF,QAAoD,EAAE,EACtD,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,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,gBAAgB,CACd,MAAc,EACd,KAAuC,EACvC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,MAAM,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,KAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,MAAM,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAWD,SAAS,CACP,EAAU,EACV,QAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,WAAW,CACT,EAAU,EACV,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,21 @@ import * as Uploads from './uploads';
|
|
|
8
8
|
import * as API from './resources/index';
|
|
9
9
|
import { AssetCreateAssetParams, AssetCreateAssetResponse, Assets } from './resources/assets';
|
|
10
10
|
import { Auth, AuthConnectAuthParams, AuthConnectAuthResponse } from './resources/auth';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
TokenClaimCheckEligibilityParams,
|
|
13
|
+
TokenClaimCheckEligibilityResponse,
|
|
14
|
+
TokenClaimGetProofParams,
|
|
15
|
+
TokenClaimGetProofResponse,
|
|
16
|
+
TokenClaimListParams,
|
|
17
|
+
TokenClaimListResponse,
|
|
18
|
+
TokenClaimListUsersParams,
|
|
19
|
+
TokenClaimListUsersResponse,
|
|
20
|
+
TokenClaimRetrieveParams,
|
|
21
|
+
TokenClaimRetrieveResponse,
|
|
22
|
+
TokenClaimUpdateClaimParams,
|
|
23
|
+
TokenClaimUpdateClaimResponse,
|
|
24
|
+
TokenClaims,
|
|
25
|
+
} from './resources/token-claims';
|
|
12
26
|
import {
|
|
13
27
|
AuctionGetPageSectionsParams,
|
|
14
28
|
AuctionGetPageSectionsResponse,
|
|
@@ -18,6 +32,13 @@ import {
|
|
|
18
32
|
Auctions,
|
|
19
33
|
} from './resources/auctions/auctions';
|
|
20
34
|
import { Loyalty } from './resources/loyalty/loyalty';
|
|
35
|
+
import {
|
|
36
|
+
Minting,
|
|
37
|
+
MintingGetAssetsParams,
|
|
38
|
+
MintingGetAssetsResponse,
|
|
39
|
+
MintingGetTokenGateStatusParams,
|
|
40
|
+
MintingGetTokenGateStatusResponse,
|
|
41
|
+
} from './resources/minting/minting';
|
|
21
42
|
import {
|
|
22
43
|
Referral,
|
|
23
44
|
ReferralCreateCodeParams,
|
|
@@ -170,6 +191,7 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
170
191
|
minting: API.Minting = new API.Minting(this);
|
|
171
192
|
referral: API.Referral = new API.Referral(this);
|
|
172
193
|
websites: API.Websites = new API.Websites(this);
|
|
194
|
+
tokenClaims: API.TokenClaims = new API.TokenClaims(this);
|
|
173
195
|
|
|
174
196
|
/**
|
|
175
197
|
* Check whether the base URL is set to its default.
|
|
@@ -226,6 +248,7 @@ SnagSolutions.Loyalty = Loyalty;
|
|
|
226
248
|
SnagSolutions.Minting = Minting;
|
|
227
249
|
SnagSolutions.Referral = Referral;
|
|
228
250
|
SnagSolutions.Websites = Websites;
|
|
251
|
+
SnagSolutions.TokenClaims = TokenClaims;
|
|
229
252
|
|
|
230
253
|
export declare namespace SnagSolutions {
|
|
231
254
|
export type RequestOptions = Core.RequestOptions;
|
|
@@ -272,7 +295,9 @@ export declare namespace SnagSolutions {
|
|
|
272
295
|
export {
|
|
273
296
|
Minting as Minting,
|
|
274
297
|
type MintingGetAssetsResponse as MintingGetAssetsResponse,
|
|
298
|
+
type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse,
|
|
275
299
|
type MintingGetAssetsParams as MintingGetAssetsParams,
|
|
300
|
+
type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams,
|
|
276
301
|
};
|
|
277
302
|
|
|
278
303
|
export {
|
|
@@ -288,6 +313,22 @@ export declare namespace SnagSolutions {
|
|
|
288
313
|
type WebsiteCreateParams as WebsiteCreateParams,
|
|
289
314
|
type WebsiteListParams as WebsiteListParams,
|
|
290
315
|
};
|
|
316
|
+
|
|
317
|
+
export {
|
|
318
|
+
TokenClaims as TokenClaims,
|
|
319
|
+
type TokenClaimRetrieveResponse as TokenClaimRetrieveResponse,
|
|
320
|
+
type TokenClaimListResponse as TokenClaimListResponse,
|
|
321
|
+
type TokenClaimCheckEligibilityResponse as TokenClaimCheckEligibilityResponse,
|
|
322
|
+
type TokenClaimGetProofResponse as TokenClaimGetProofResponse,
|
|
323
|
+
type TokenClaimListUsersResponse as TokenClaimListUsersResponse,
|
|
324
|
+
type TokenClaimUpdateClaimResponse as TokenClaimUpdateClaimResponse,
|
|
325
|
+
type TokenClaimRetrieveParams as TokenClaimRetrieveParams,
|
|
326
|
+
type TokenClaimListParams as TokenClaimListParams,
|
|
327
|
+
type TokenClaimCheckEligibilityParams as TokenClaimCheckEligibilityParams,
|
|
328
|
+
type TokenClaimGetProofParams as TokenClaimGetProofParams,
|
|
329
|
+
type TokenClaimListUsersParams as TokenClaimListUsersParams,
|
|
330
|
+
type TokenClaimUpdateClaimParams as TokenClaimUpdateClaimParams,
|
|
331
|
+
};
|
|
291
332
|
}
|
|
292
333
|
|
|
293
334
|
export { toFile, fileFromPath } from './uploads';
|
package/src/resources/index.ts
CHANGED
|
@@ -11,12 +11,33 @@ export {
|
|
|
11
11
|
} from './auctions/auctions';
|
|
12
12
|
export { Auth, type AuthConnectAuthResponse, type AuthConnectAuthParams } from './auth';
|
|
13
13
|
export { Loyalty } from './loyalty/loyalty';
|
|
14
|
-
export {
|
|
14
|
+
export {
|
|
15
|
+
Minting,
|
|
16
|
+
type MintingGetAssetsResponse,
|
|
17
|
+
type MintingGetTokenGateStatusResponse,
|
|
18
|
+
type MintingGetAssetsParams,
|
|
19
|
+
type MintingGetTokenGateStatusParams,
|
|
20
|
+
} from './minting/minting';
|
|
15
21
|
export {
|
|
16
22
|
Referral,
|
|
17
23
|
type ReferralCreateCodeResponse,
|
|
18
24
|
type ReferralCreateCodeParams,
|
|
19
25
|
} from './referral/referral';
|
|
26
|
+
export {
|
|
27
|
+
TokenClaims,
|
|
28
|
+
type TokenClaimRetrieveResponse,
|
|
29
|
+
type TokenClaimListResponse,
|
|
30
|
+
type TokenClaimCheckEligibilityResponse,
|
|
31
|
+
type TokenClaimGetProofResponse,
|
|
32
|
+
type TokenClaimListUsersResponse,
|
|
33
|
+
type TokenClaimUpdateClaimResponse,
|
|
34
|
+
type TokenClaimRetrieveParams,
|
|
35
|
+
type TokenClaimListParams,
|
|
36
|
+
type TokenClaimCheckEligibilityParams,
|
|
37
|
+
type TokenClaimGetProofParams,
|
|
38
|
+
type TokenClaimListUsersParams,
|
|
39
|
+
type TokenClaimUpdateClaimParams,
|
|
40
|
+
} from './token-claims';
|
|
20
41
|
export {
|
|
21
42
|
Users,
|
|
22
43
|
type UserListResponse,
|
|
@@ -98,8 +98,12 @@ export {
|
|
|
98
98
|
Transactions,
|
|
99
99
|
type TransactionCreateTransactionResponse,
|
|
100
100
|
type TransactionGetTransactionEntriesResponse,
|
|
101
|
+
type TransactionListBadgeUsersResponse,
|
|
101
102
|
type TransactionListRuleChainsResponse,
|
|
103
|
+
type TransactionResetLoyaltyCurrencyResponse,
|
|
102
104
|
type TransactionCreateTransactionParams,
|
|
103
105
|
type TransactionGetTransactionEntriesParams,
|
|
106
|
+
type TransactionListBadgeUsersParams,
|
|
104
107
|
type TransactionListRuleChainsParams,
|
|
108
|
+
type TransactionResetLoyaltyCurrencyParams,
|
|
105
109
|
} from './transactions/index';
|
|
@@ -110,8 +110,12 @@ import {
|
|
|
110
110
|
TransactionCreateTransactionResponse,
|
|
111
111
|
TransactionGetTransactionEntriesParams,
|
|
112
112
|
TransactionGetTransactionEntriesResponse,
|
|
113
|
+
TransactionListBadgeUsersParams,
|
|
114
|
+
TransactionListBadgeUsersResponse,
|
|
113
115
|
TransactionListRuleChainsParams,
|
|
114
116
|
TransactionListRuleChainsResponse,
|
|
117
|
+
TransactionResetLoyaltyCurrencyParams,
|
|
118
|
+
TransactionResetLoyaltyCurrencyResponse,
|
|
115
119
|
Transactions,
|
|
116
120
|
} from './transactions/transactions';
|
|
117
121
|
|
|
@@ -159,10 +163,14 @@ export declare namespace Loyalty {
|
|
|
159
163
|
Transactions as Transactions,
|
|
160
164
|
type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
|
|
161
165
|
type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
|
|
166
|
+
type TransactionListBadgeUsersResponse as TransactionListBadgeUsersResponse,
|
|
162
167
|
type TransactionListRuleChainsResponse as TransactionListRuleChainsResponse,
|
|
168
|
+
type TransactionResetLoyaltyCurrencyResponse as TransactionResetLoyaltyCurrencyResponse,
|
|
163
169
|
type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
|
|
164
170
|
type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
|
|
171
|
+
type TransactionListBadgeUsersParams as TransactionListBadgeUsersParams,
|
|
165
172
|
type TransactionListRuleChainsParams as TransactionListRuleChainsParams,
|
|
173
|
+
type TransactionResetLoyaltyCurrencyParams as TransactionResetLoyaltyCurrencyParams,
|
|
166
174
|
};
|
|
167
175
|
|
|
168
176
|
export {
|
|
@@ -264,8 +264,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
264
264
|
| 'discord_role_grant'
|
|
265
265
|
| 'connected_reddit'
|
|
266
266
|
| 'reddit_comment'
|
|
267
|
-
| 'robinhood_token_hold'
|
|
268
|
-
| 'shopify_purchase';
|
|
267
|
+
| 'robinhood_token_hold';
|
|
269
268
|
}
|
|
270
269
|
|
|
271
270
|
export namespace LoyaltyRule {
|
|
@@ -291,8 +291,7 @@ export interface RuleCreateResponse {
|
|
|
291
291
|
| 'discord_role_grant'
|
|
292
292
|
| 'connected_reddit'
|
|
293
293
|
| 'reddit_comment'
|
|
294
|
-
| 'robinhood_token_hold'
|
|
295
|
-
| 'shopify_purchase';
|
|
294
|
+
| 'robinhood_token_hold';
|
|
296
295
|
|
|
297
296
|
/**
|
|
298
297
|
* Unique identifier for the associated website
|
|
@@ -4120,8 +4119,7 @@ export interface RuleCreateParams {
|
|
|
4120
4119
|
| 'discord_role_grant'
|
|
4121
4120
|
| 'connected_reddit'
|
|
4122
4121
|
| 'reddit_comment'
|
|
4123
|
-
| 'robinhood_token_hold'
|
|
4124
|
-
| 'shopify_purchase';
|
|
4122
|
+
| 'robinhood_token_hold';
|
|
4125
4123
|
|
|
4126
4124
|
/**
|
|
4127
4125
|
* Unique identifier for the associated website
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Posts,
|
|
5
|
+
type PostListResponse,
|
|
6
|
+
type PostRewardResponse,
|
|
7
|
+
type PostListParams,
|
|
8
|
+
type PostRewardParams,
|
|
9
|
+
} from './posts';
|
|
3
10
|
export {
|
|
4
11
|
RuleStatuses,
|
|
5
12
|
type RuleStatusUpdateResponse,
|
|
@@ -11,8 +18,12 @@ export {
|
|
|
11
18
|
Transactions,
|
|
12
19
|
type TransactionCreateTransactionResponse,
|
|
13
20
|
type TransactionGetTransactionEntriesResponse,
|
|
21
|
+
type TransactionListBadgeUsersResponse,
|
|
14
22
|
type TransactionListRuleChainsResponse,
|
|
23
|
+
type TransactionResetLoyaltyCurrencyResponse,
|
|
15
24
|
type TransactionCreateTransactionParams,
|
|
16
25
|
type TransactionGetTransactionEntriesParams,
|
|
26
|
+
type TransactionListBadgeUsersParams,
|
|
17
27
|
type TransactionListRuleChainsParams,
|
|
28
|
+
type TransactionResetLoyaltyCurrencyParams,
|
|
18
29
|
} from './transactions';
|