@whop/sdk 0.0.25 → 0.0.26
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/client.d.mts +23 -20
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -20
- package/client.d.ts.map +1 -1
- package/client.js +6 -2
- package/client.js.map +1 -1
- package/client.mjs +8 -4
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai-chats.d.mts +7 -103
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +7 -103
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/authorized-users.d.mts +39 -5
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +39 -5
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +1 -1
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +1 -1
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +13 -99
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +13 -99
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/dm-channels.d.mts +161 -0
- package/resources/dm-channels.d.mts.map +1 -0
- package/resources/dm-channels.d.ts +161 -0
- package/resources/dm-channels.d.ts.map +1 -0
- package/resources/dm-channels.js +87 -0
- package/resources/dm-channels.js.map +1 -0
- package/resources/dm-channels.mjs +83 -0
- package/resources/dm-channels.mjs.map +1 -0
- package/resources/dm-members.d.mts +14 -66
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +14 -66
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/files.d.mts +7 -3
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +7 -3
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/leads.d.mts +9 -177
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +9 -177
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +3 -2
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +3 -2
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +5 -5
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +5 -5
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +1 -1
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +1 -1
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +8 -3
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +8 -3
- package/resources/memberships.d.ts.map +1 -1
- package/resources/payments.d.mts +33 -0
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +33 -0
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +8 -3
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +8 -3
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/shared.d.mts +35 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +35 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/verifications.d.mts +11 -3
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +11 -3
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +34 -293
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -293
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +17 -128
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +17 -128
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +68 -34
- package/src/internal/parse.ts +6 -0
- package/src/resources/ai-chats.ts +7 -126
- package/src/resources/authorized-users.ts +45 -5
- package/src/resources/company-token-transactions.ts +14 -116
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/files.ts +8 -2
- package/src/resources/index.ts +36 -17
- package/src/resources/leads.ts +9 -205
- package/src/resources/ledger-accounts.ts +3 -35
- package/src/resources/members.ts +6 -6
- package/src/resources/memberships.ts +16 -18
- package/src/resources/payments.ts +40 -0
- package/src/resources/payout-methods.ts +15 -2
- package/src/resources/shared.ts +42 -9
- package/src/resources/verifications.ts +49 -36
- package/src/resources/webhooks.ts +67 -728
- package/src/resources/withdrawals.ts +24 -205
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/ai-chats.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare class AIChats extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* - `ai_chat:create`
|
|
12
12
|
*/
|
|
13
|
-
create(body?: AIChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
13
|
+
create(body?: AIChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<AIChat>;
|
|
14
14
|
/**
|
|
15
15
|
* Fetches a single AI chat by ID
|
|
16
16
|
*/
|
|
17
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AIChat>;
|
|
18
18
|
/**
|
|
19
19
|
* Updates an AI chat
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ export declare class AIChats extends APIResource {
|
|
|
22
22
|
*
|
|
23
23
|
* - `ai_chat:update`
|
|
24
24
|
*/
|
|
25
|
-
update(id: string, body?: AIChatUpdateParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
25
|
+
update(id: string, body?: AIChatUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AIChat>;
|
|
26
26
|
/**
|
|
27
27
|
* Fetches all AI chats for the current user
|
|
28
28
|
*/
|
|
@@ -40,7 +40,7 @@ export type AIChatListResponsesCursorPage = CursorPage<AIChatListResponse>;
|
|
|
40
40
|
/**
|
|
41
41
|
* An AI chat conversation belonging to a user
|
|
42
42
|
*/
|
|
43
|
-
export interface
|
|
43
|
+
export interface AIChat {
|
|
44
44
|
/**
|
|
45
45
|
* The unique identifier for the AI chat
|
|
46
46
|
*/
|
|
@@ -72,105 +72,9 @@ export interface AIChatCreateResponse {
|
|
|
72
72
|
/**
|
|
73
73
|
* The user who owns the AI chat
|
|
74
74
|
*/
|
|
75
|
-
user:
|
|
75
|
+
user: AIChat.User;
|
|
76
76
|
}
|
|
77
|
-
export declare namespace
|
|
78
|
-
/**
|
|
79
|
-
* The user who owns the AI chat
|
|
80
|
-
*/
|
|
81
|
-
interface User {
|
|
82
|
-
/**
|
|
83
|
-
* The internal ID of the user.
|
|
84
|
-
*/
|
|
85
|
-
id: string;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* An AI chat conversation belonging to a user
|
|
90
|
-
*/
|
|
91
|
-
export interface AIChatRetrieveResponse {
|
|
92
|
-
/**
|
|
93
|
-
* The unique identifier for the AI chat
|
|
94
|
-
*/
|
|
95
|
-
id: string;
|
|
96
|
-
/**
|
|
97
|
-
* The total number of tokens used in the chat
|
|
98
|
-
*/
|
|
99
|
-
blended_token_usage: string;
|
|
100
|
-
/**
|
|
101
|
-
* When the AI chat was created
|
|
102
|
-
*/
|
|
103
|
-
created_at: string;
|
|
104
|
-
/**
|
|
105
|
-
* When the last message was sent
|
|
106
|
-
*/
|
|
107
|
-
last_message_at: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* The number of messages in the chat
|
|
110
|
-
*/
|
|
111
|
-
message_count: number;
|
|
112
|
-
/**
|
|
113
|
-
* The title of the AI chat
|
|
114
|
-
*/
|
|
115
|
-
title: string | null;
|
|
116
|
-
/**
|
|
117
|
-
* When the AI chat was last updated
|
|
118
|
-
*/
|
|
119
|
-
updated_at: string;
|
|
120
|
-
/**
|
|
121
|
-
* The user who owns the AI chat
|
|
122
|
-
*/
|
|
123
|
-
user: AIChatRetrieveResponse.User;
|
|
124
|
-
}
|
|
125
|
-
export declare namespace AIChatRetrieveResponse {
|
|
126
|
-
/**
|
|
127
|
-
* The user who owns the AI chat
|
|
128
|
-
*/
|
|
129
|
-
interface User {
|
|
130
|
-
/**
|
|
131
|
-
* The internal ID of the user.
|
|
132
|
-
*/
|
|
133
|
-
id: string;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* An AI chat conversation belonging to a user
|
|
138
|
-
*/
|
|
139
|
-
export interface AIChatUpdateResponse {
|
|
140
|
-
/**
|
|
141
|
-
* The unique identifier for the AI chat
|
|
142
|
-
*/
|
|
143
|
-
id: string;
|
|
144
|
-
/**
|
|
145
|
-
* The total number of tokens used in the chat
|
|
146
|
-
*/
|
|
147
|
-
blended_token_usage: string;
|
|
148
|
-
/**
|
|
149
|
-
* When the AI chat was created
|
|
150
|
-
*/
|
|
151
|
-
created_at: string;
|
|
152
|
-
/**
|
|
153
|
-
* When the last message was sent
|
|
154
|
-
*/
|
|
155
|
-
last_message_at: string | null;
|
|
156
|
-
/**
|
|
157
|
-
* The number of messages in the chat
|
|
158
|
-
*/
|
|
159
|
-
message_count: number;
|
|
160
|
-
/**
|
|
161
|
-
* The title of the AI chat
|
|
162
|
-
*/
|
|
163
|
-
title: string | null;
|
|
164
|
-
/**
|
|
165
|
-
* When the AI chat was last updated
|
|
166
|
-
*/
|
|
167
|
-
updated_at: string;
|
|
168
|
-
/**
|
|
169
|
-
* The user who owns the AI chat
|
|
170
|
-
*/
|
|
171
|
-
user: AIChatUpdateResponse.User;
|
|
172
|
-
}
|
|
173
|
-
export declare namespace AIChatUpdateResponse {
|
|
77
|
+
export declare namespace AIChat {
|
|
174
78
|
/**
|
|
175
79
|
* The user who owns the AI chat
|
|
176
80
|
*/
|
|
@@ -260,6 +164,6 @@ export interface AIChatListParams extends CursorPageParams {
|
|
|
260
164
|
last?: number | null;
|
|
261
165
|
}
|
|
262
166
|
export declare namespace AIChats {
|
|
263
|
-
export { type
|
|
167
|
+
export { type AIChat as AIChat, type AIChatListResponse as AIChatListResponse, type AIChatDeleteResponse as AIChatDeleteResponse, type AIChatListResponsesCursorPage as AIChatListResponsesCursorPage, type AIChatCreateParams as AIChatCreateParams, type AIChatUpdateParams as AIChatUpdateParams, type AIChatListParams as AIChatListParams, };
|
|
264
168
|
}
|
|
265
169
|
//# sourceMappingURL=ai-chats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chats.d.ts","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"ai-chats.d.ts","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EA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IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chats.js","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;OAMG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"ai-chats.js","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;OAMG;IACH,MAAM,CAAC,OAA8C,EAAE,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAtDD,0BAsDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chats.mjs","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"ai-chats.mjs","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,CAAC,OAA8C,EAAE,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,UAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -21,7 +21,7 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
21
21
|
* - `company:authorized_user:read`
|
|
22
22
|
* - `member:email:read`
|
|
23
23
|
*/
|
|
24
|
-
list(query
|
|
24
|
+
list(query?: AuthorizedUserListParams | null | undefined, options?: RequestOptions): PagePromise<AuthorizedUserListResponsesCursorPage, AuthorizedUserListResponse>;
|
|
25
25
|
}
|
|
26
26
|
export type AuthorizedUserListResponsesCursorPage = CursorPage<AuthorizedUserListResponse>;
|
|
27
27
|
/**
|
|
@@ -32,6 +32,10 @@ export interface AuthorizedUserRetrieveResponse {
|
|
|
32
32
|
* A unique ID representing the authorized user object.
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The company associated with the authorized user.
|
|
37
|
+
*/
|
|
38
|
+
company: AuthorizedUserRetrieveResponse.Company;
|
|
35
39
|
/**
|
|
36
40
|
* The role of the authorized user in the company.
|
|
37
41
|
*/
|
|
@@ -42,6 +46,19 @@ export interface AuthorizedUserRetrieveResponse {
|
|
|
42
46
|
user: AuthorizedUserRetrieveResponse.User;
|
|
43
47
|
}
|
|
44
48
|
export declare namespace AuthorizedUserRetrieveResponse {
|
|
49
|
+
/**
|
|
50
|
+
* The company associated with the authorized user.
|
|
51
|
+
*/
|
|
52
|
+
interface Company {
|
|
53
|
+
/**
|
|
54
|
+
* The ID (tag) of the company.
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The title of the company.
|
|
59
|
+
*/
|
|
60
|
+
title: string;
|
|
61
|
+
}
|
|
45
62
|
/**
|
|
46
63
|
* The user associated with the authorized user.
|
|
47
64
|
*/
|
|
@@ -72,6 +89,10 @@ export interface AuthorizedUserListResponse {
|
|
|
72
89
|
* A unique ID representing the authorized user object.
|
|
73
90
|
*/
|
|
74
91
|
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* The company associated with the authorized user.
|
|
94
|
+
*/
|
|
95
|
+
company: AuthorizedUserListResponse.Company;
|
|
75
96
|
/**
|
|
76
97
|
* The role of the authorized user in the company.
|
|
77
98
|
*/
|
|
@@ -82,6 +103,19 @@ export interface AuthorizedUserListResponse {
|
|
|
82
103
|
user: AuthorizedUserListResponse.User;
|
|
83
104
|
}
|
|
84
105
|
export declare namespace AuthorizedUserListResponse {
|
|
106
|
+
/**
|
|
107
|
+
* The company associated with the authorized user.
|
|
108
|
+
*/
|
|
109
|
+
interface Company {
|
|
110
|
+
/**
|
|
111
|
+
* The ID (tag) of the company.
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* The title of the company.
|
|
116
|
+
*/
|
|
117
|
+
title: string;
|
|
118
|
+
}
|
|
85
119
|
/**
|
|
86
120
|
* The user associated with the authorized user.
|
|
87
121
|
*/
|
|
@@ -105,14 +139,14 @@ export declare namespace AuthorizedUserListResponse {
|
|
|
105
139
|
}
|
|
106
140
|
}
|
|
107
141
|
export interface AuthorizedUserListParams extends CursorPageParams {
|
|
108
|
-
/**
|
|
109
|
-
* The ID of the company to list authorized users for
|
|
110
|
-
*/
|
|
111
|
-
company_id: string;
|
|
112
142
|
/**
|
|
113
143
|
* Returns the elements in the list that come before the specified cursor.
|
|
114
144
|
*/
|
|
115
145
|
before?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* The ID of the company to list authorized users for
|
|
148
|
+
*/
|
|
149
|
+
company_id?: string | null;
|
|
116
150
|
/**
|
|
117
151
|
* The minimum creation date to filter by
|
|
118
152
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.d.mts","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,
|
|
1
|
+
{"version":3,"file":"authorized-users.d.mts","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CA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EX;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -21,7 +21,7 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
21
21
|
* - `company:authorized_user:read`
|
|
22
22
|
* - `member:email:read`
|
|
23
23
|
*/
|
|
24
|
-
list(query
|
|
24
|
+
list(query?: AuthorizedUserListParams | null | undefined, options?: RequestOptions): PagePromise<AuthorizedUserListResponsesCursorPage, AuthorizedUserListResponse>;
|
|
25
25
|
}
|
|
26
26
|
export type AuthorizedUserListResponsesCursorPage = CursorPage<AuthorizedUserListResponse>;
|
|
27
27
|
/**
|
|
@@ -32,6 +32,10 @@ export interface AuthorizedUserRetrieveResponse {
|
|
|
32
32
|
* A unique ID representing the authorized user object.
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The company associated with the authorized user.
|
|
37
|
+
*/
|
|
38
|
+
company: AuthorizedUserRetrieveResponse.Company;
|
|
35
39
|
/**
|
|
36
40
|
* The role of the authorized user in the company.
|
|
37
41
|
*/
|
|
@@ -42,6 +46,19 @@ export interface AuthorizedUserRetrieveResponse {
|
|
|
42
46
|
user: AuthorizedUserRetrieveResponse.User;
|
|
43
47
|
}
|
|
44
48
|
export declare namespace AuthorizedUserRetrieveResponse {
|
|
49
|
+
/**
|
|
50
|
+
* The company associated with the authorized user.
|
|
51
|
+
*/
|
|
52
|
+
interface Company {
|
|
53
|
+
/**
|
|
54
|
+
* The ID (tag) of the company.
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The title of the company.
|
|
59
|
+
*/
|
|
60
|
+
title: string;
|
|
61
|
+
}
|
|
45
62
|
/**
|
|
46
63
|
* The user associated with the authorized user.
|
|
47
64
|
*/
|
|
@@ -72,6 +89,10 @@ export interface AuthorizedUserListResponse {
|
|
|
72
89
|
* A unique ID representing the authorized user object.
|
|
73
90
|
*/
|
|
74
91
|
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* The company associated with the authorized user.
|
|
94
|
+
*/
|
|
95
|
+
company: AuthorizedUserListResponse.Company;
|
|
75
96
|
/**
|
|
76
97
|
* The role of the authorized user in the company.
|
|
77
98
|
*/
|
|
@@ -82,6 +103,19 @@ export interface AuthorizedUserListResponse {
|
|
|
82
103
|
user: AuthorizedUserListResponse.User;
|
|
83
104
|
}
|
|
84
105
|
export declare namespace AuthorizedUserListResponse {
|
|
106
|
+
/**
|
|
107
|
+
* The company associated with the authorized user.
|
|
108
|
+
*/
|
|
109
|
+
interface Company {
|
|
110
|
+
/**
|
|
111
|
+
* The ID (tag) of the company.
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* The title of the company.
|
|
116
|
+
*/
|
|
117
|
+
title: string;
|
|
118
|
+
}
|
|
85
119
|
/**
|
|
86
120
|
* The user associated with the authorized user.
|
|
87
121
|
*/
|
|
@@ -105,14 +139,14 @@ export declare namespace AuthorizedUserListResponse {
|
|
|
105
139
|
}
|
|
106
140
|
}
|
|
107
141
|
export interface AuthorizedUserListParams extends CursorPageParams {
|
|
108
|
-
/**
|
|
109
|
-
* The ID of the company to list authorized users for
|
|
110
|
-
*/
|
|
111
|
-
company_id: string;
|
|
112
142
|
/**
|
|
113
143
|
* Returns the elements in the list that come before the specified cursor.
|
|
114
144
|
*/
|
|
115
145
|
before?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* The ID of the company to list authorized users for
|
|
148
|
+
*/
|
|
149
|
+
company_id?: string | null;
|
|
116
150
|
/**
|
|
117
151
|
* The minimum creation date to filter by
|
|
118
152
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.d.ts","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,
|
|
1
|
+
{"version":3,"file":"authorized-users.d.ts","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UA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AqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -25,7 +25,7 @@ class AuthorizedUsers extends resource_1.APIResource {
|
|
|
25
25
|
* - `company:authorized_user:read`
|
|
26
26
|
* - `member:email:read`
|
|
27
27
|
*/
|
|
28
|
-
list(query, options) {
|
|
28
|
+
list(query = {}, options) {
|
|
29
29
|
return this._client.getAPIList('/authorized_users', (pagination_1.CursorPage), {
|
|
30
30
|
query,
|
|
31
31
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.js","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"authorized-users.js","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,0CA8BC"}
|
|
@@ -22,7 +22,7 @@ export class AuthorizedUsers extends APIResource {
|
|
|
22
22
|
* - `company:authorized_user:read`
|
|
23
23
|
* - `member:email:read`
|
|
24
24
|
*/
|
|
25
|
-
list(query, options) {
|
|
25
|
+
list(query = {}, options) {
|
|
26
26
|
return this._client.getAPIList('/authorized_users', (CursorPage), {
|
|
27
27
|
query,
|
|
28
28
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.mjs","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"authorized-users.mjs","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,UAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -24,7 +24,7 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
create(body: CompanyTokenTransactionCreateParams, options?: RequestOptions): APIPromise<
|
|
27
|
+
create(body: CompanyTokenTransactionCreateParams, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
28
28
|
/**
|
|
29
29
|
* Retrieves a token transaction by ID
|
|
30
30
|
*
|
|
@@ -34,7 +34,7 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
34
34
|
* - `member:basic:read`
|
|
35
35
|
* - `company:basic:read`
|
|
36
36
|
*/
|
|
37
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
37
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
38
38
|
/**
|
|
39
39
|
* Lists token transactions for a company
|
|
40
40
|
*
|
|
@@ -48,99 +48,13 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
48
48
|
}
|
|
49
49
|
export type CompanyTokenTransactionListResponsesCursorPage = CursorPage<CompanyTokenTransactionListResponse>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The type of token transaction
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the transaction
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* The transaction amount (always positive)
|
|
60
|
-
*/
|
|
61
|
-
amount: number;
|
|
62
|
-
/**
|
|
63
|
-
* The company
|
|
64
|
-
*/
|
|
65
|
-
company: CompanyTokenTransactionCreateResponse.Company;
|
|
66
|
-
/**
|
|
67
|
-
* When the transaction was created
|
|
68
|
-
*/
|
|
69
|
-
created_at: string;
|
|
70
|
-
/**
|
|
71
|
-
* Optional description
|
|
72
|
-
*/
|
|
73
|
-
description: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Optional idempotency key to prevent duplicate transactions
|
|
76
|
-
*/
|
|
77
|
-
idempotency_key: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* For transfers, the ID of the linked transaction
|
|
80
|
-
*/
|
|
81
|
-
linked_transaction_id: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* The member
|
|
84
|
-
*/
|
|
85
|
-
member: CompanyTokenTransactionCreateResponse.Member;
|
|
86
|
-
/**
|
|
87
|
-
* The type of transaction
|
|
88
|
-
*/
|
|
89
|
-
transaction_type: 'add' | 'subtract' | 'transfer';
|
|
90
|
-
/**
|
|
91
|
-
* The user whose balance changed
|
|
92
|
-
*/
|
|
93
|
-
user: CompanyTokenTransactionCreateResponse.User;
|
|
94
|
-
}
|
|
95
|
-
export declare namespace CompanyTokenTransactionCreateResponse {
|
|
96
|
-
/**
|
|
97
|
-
* The company
|
|
98
|
-
*/
|
|
99
|
-
interface Company {
|
|
100
|
-
/**
|
|
101
|
-
* The ID of the company
|
|
102
|
-
*/
|
|
103
|
-
id: string;
|
|
104
|
-
/**
|
|
105
|
-
* The slug/route of the company on the Whop site.
|
|
106
|
-
*/
|
|
107
|
-
route: string;
|
|
108
|
-
/**
|
|
109
|
-
* The written name of the company.
|
|
110
|
-
*/
|
|
111
|
-
title: string;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* The member
|
|
115
|
-
*/
|
|
116
|
-
interface Member {
|
|
117
|
-
/**
|
|
118
|
-
* The ID of the member
|
|
119
|
-
*/
|
|
120
|
-
id: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The user whose balance changed
|
|
124
|
-
*/
|
|
125
|
-
interface User {
|
|
126
|
-
/**
|
|
127
|
-
* The internal ID of the user.
|
|
128
|
-
*/
|
|
129
|
-
id: string;
|
|
130
|
-
/**
|
|
131
|
-
* The name of the user from their Whop account.
|
|
132
|
-
*/
|
|
133
|
-
name: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* The username of the user from their Whop account.
|
|
136
|
-
*/
|
|
137
|
-
username: string;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
53
|
+
export type BotTokenTransactionTypes = 'add' | 'subtract' | 'transfer';
|
|
140
54
|
/**
|
|
141
55
|
* A token transaction within a company
|
|
142
56
|
*/
|
|
143
|
-
export interface
|
|
57
|
+
export interface CompanyTokenTransaction {
|
|
144
58
|
/**
|
|
145
59
|
* The ID of the transaction
|
|
146
60
|
*/
|
|
@@ -152,7 +66,7 @@ export interface CompanyTokenTransactionRetrieveResponse {
|
|
|
152
66
|
/**
|
|
153
67
|
* The company
|
|
154
68
|
*/
|
|
155
|
-
company:
|
|
69
|
+
company: CompanyTokenTransaction.Company;
|
|
156
70
|
/**
|
|
157
71
|
* When the transaction was created
|
|
158
72
|
*/
|
|
@@ -172,17 +86,17 @@ export interface CompanyTokenTransactionRetrieveResponse {
|
|
|
172
86
|
/**
|
|
173
87
|
* The member
|
|
174
88
|
*/
|
|
175
|
-
member:
|
|
89
|
+
member: CompanyTokenTransaction.Member;
|
|
176
90
|
/**
|
|
177
91
|
* The type of transaction
|
|
178
92
|
*/
|
|
179
|
-
transaction_type:
|
|
93
|
+
transaction_type: BotTokenTransactionTypes;
|
|
180
94
|
/**
|
|
181
95
|
* The user whose balance changed
|
|
182
96
|
*/
|
|
183
|
-
user:
|
|
97
|
+
user: CompanyTokenTransaction.User;
|
|
184
98
|
}
|
|
185
|
-
export declare namespace
|
|
99
|
+
export declare namespace CompanyTokenTransaction {
|
|
186
100
|
/**
|
|
187
101
|
* The company
|
|
188
102
|
*/
|
|
@@ -266,7 +180,7 @@ export interface CompanyTokenTransactionListResponse {
|
|
|
266
180
|
/**
|
|
267
181
|
* The type of transaction
|
|
268
182
|
*/
|
|
269
|
-
transaction_type:
|
|
183
|
+
transaction_type: BotTokenTransactionTypes;
|
|
270
184
|
/**
|
|
271
185
|
* The user whose balance changed
|
|
272
186
|
*/
|
|
@@ -413,13 +327,13 @@ export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
|
413
327
|
/**
|
|
414
328
|
* The type of token transaction
|
|
415
329
|
*/
|
|
416
|
-
transaction_type?:
|
|
330
|
+
transaction_type?: BotTokenTransactionTypes | null;
|
|
417
331
|
/**
|
|
418
332
|
* Filter by user ID
|
|
419
333
|
*/
|
|
420
334
|
user_id?: string | null;
|
|
421
335
|
}
|
|
422
336
|
export declare namespace CompanyTokenTransactions {
|
|
423
|
-
export { type
|
|
337
|
+
export { type BotTokenTransactionTypes as BotTokenTransactionTypes, type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type CompanyTokenTransactionCreateParams as CompanyTokenTransactionCreateParams, type CompanyTokenTransactionListParams as CompanyTokenTransactionListParams, };
|
|
424
338
|
}
|
|
425
339
|
//# sourceMappingURL=company-token-transactions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;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