@whop/sdk 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/client.d.mts +29 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -25
- package/client.d.ts.map +1 -1
- package/client.js +14 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -5
- 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 +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +36 -104
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +36 -104
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +43 -9
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +43 -9
- 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/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +23 -109
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +23 -109
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.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/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +9 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +9 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +12 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -11
- 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/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +21 -189
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +21 -189
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +12 -9
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +12 -9
- 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 +14 -14
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +14 -14
- 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 +25 -15
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -15
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +59 -19
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +59 -19
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +14 -9
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +14 -9
- 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/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +209 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +209 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +12 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +12 -4
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +105 -350
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +105 -350
- 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 +32 -139
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +32 -139
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +87 -41
- package/src/internal/parse.ts +6 -0
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +36 -122
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +49 -9
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +24 -126
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +10 -4
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +38 -18
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +21 -217
- package/src/resources/ledger-accounts.ts +12 -42
- package/src/resources/members.ts +15 -15
- package/src/resources/memberships.ts +34 -30
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +67 -17
- package/src/resources/payout-methods.ts +21 -8
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +217 -145
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +50 -37
- package/src/resources/webhooks.ts +138 -785
- package/src/resources/withdrawals.ts +39 -216
- 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
|
@@ -79,7 +79,7 @@ export type ShipmentListResponsesCursorPage = CursorPage<ShipmentListResponse>;
|
|
|
79
79
|
*/
|
|
80
80
|
export interface ShipmentListResponse {
|
|
81
81
|
/**
|
|
82
|
-
* The
|
|
82
|
+
* The unique identifier for the shipment.
|
|
83
83
|
*/
|
|
84
84
|
id: string;
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ export interface ShipmentListResponse {
|
|
|
89
89
|
carrier: Shared.ShipmentCarrier;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* The
|
|
92
|
+
* The datetime the shipment was created.
|
|
93
93
|
*/
|
|
94
94
|
created_at: string;
|
|
95
95
|
|
|
@@ -124,7 +124,7 @@ export interface ShipmentListResponse {
|
|
|
124
124
|
tracking_code: string;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* The
|
|
127
|
+
* The datetime the shipment was last updated.
|
|
128
128
|
*/
|
|
129
129
|
updated_at: string;
|
|
130
130
|
}
|
|
@@ -135,7 +135,7 @@ export namespace ShipmentListResponse {
|
|
|
135
135
|
*/
|
|
136
136
|
export interface Payment {
|
|
137
137
|
/**
|
|
138
|
-
* The payment
|
|
138
|
+
* The unique identifier for the payment.
|
|
139
139
|
*/
|
|
140
140
|
id: string;
|
|
141
141
|
}
|
package/src/resources/topups.ts
CHANGED
|
@@ -29,16 +29,17 @@ export class Topups extends APIResource {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
33
|
+
* track the amount, status, currency, and payment method used.
|
|
33
34
|
*/
|
|
34
35
|
export interface TopupCreateResponse {
|
|
35
36
|
/**
|
|
36
|
-
* The payment
|
|
37
|
+
* The unique identifier for the payment.
|
|
37
38
|
*/
|
|
38
39
|
id: string;
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
* The datetime the payment was created
|
|
42
|
+
* The datetime the payment was created.
|
|
42
43
|
*/
|
|
43
44
|
created_at: string;
|
|
44
45
|
|
|
@@ -70,7 +71,8 @@ export interface TopupCreateResponse {
|
|
|
70
71
|
|
|
71
72
|
export interface TopupCreateParams {
|
|
72
73
|
/**
|
|
73
|
-
* The amount to add to the balance.
|
|
74
|
+
* The amount to add to the balance. Provided as a number in the specified
|
|
75
|
+
* currency. Eg: 50.00 for $50.00 USD.
|
|
74
76
|
*/
|
|
75
77
|
amount: number;
|
|
76
78
|
|
|
@@ -77,17 +77,18 @@ export type TransferListResponsesCursorPage = CursorPage<TransferListResponse>;
|
|
|
77
77
|
*/
|
|
78
78
|
export interface TransferListResponse {
|
|
79
79
|
/**
|
|
80
|
-
* The unique identifier
|
|
80
|
+
* The unique identifier for the credit transaction transfer.
|
|
81
81
|
*/
|
|
82
82
|
id: string;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* The amount of the
|
|
85
|
+
* The amount of the transfer. Provided as a number in the specified currency. Eg:
|
|
86
|
+
* 10.43 for $10.43 USD.
|
|
86
87
|
*/
|
|
87
88
|
amount: number;
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
|
-
* The
|
|
91
|
+
* The datetime the credit transaction transfer was created.
|
|
91
92
|
*/
|
|
92
93
|
created_at: string;
|
|
93
94
|
|
|
@@ -107,7 +108,8 @@ export interface TransferListResponse {
|
|
|
107
108
|
fee_amount: number | null;
|
|
108
109
|
|
|
109
110
|
/**
|
|
110
|
-
*
|
|
111
|
+
* Custom key-value pairs attached to the transfer. Max 50 keys, 500 chars per key,
|
|
112
|
+
* 5000 chars per value.
|
|
111
113
|
*/
|
|
112
114
|
metadata: { [key: string]: unknown } | null;
|
|
113
115
|
|
|
@@ -124,7 +126,8 @@ export interface TransferListResponse {
|
|
|
124
126
|
|
|
125
127
|
export interface TransferCreateParams {
|
|
126
128
|
/**
|
|
127
|
-
* The amount to
|
|
129
|
+
* The amount to transfer. Provided as a number in the specified currency. Eg:
|
|
130
|
+
* 25.00 for $25.00 USD.
|
|
128
131
|
*/
|
|
129
132
|
amount: number;
|
|
130
133
|
|
package/src/resources/users.ts
CHANGED
|
@@ -10,7 +10,7 @@ export class Users extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Retrieves a user by ID or username
|
|
12
12
|
*/
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<User> {
|
|
14
14
|
return this._client.get(path`/users/${id}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -25,14 +25,29 @@ export class Users extends APIResource {
|
|
|
25
25
|
const { id } = params;
|
|
26
26
|
return this._client.get(path`/users/${id}/access/${resourceID}`, options);
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Updates the current user's profile
|
|
31
|
+
*
|
|
32
|
+
* Required permissions:
|
|
33
|
+
*
|
|
34
|
+
* - `user:profile:update`
|
|
35
|
+
*/
|
|
36
|
+
updateProfile(
|
|
37
|
+
body: UserUpdateProfileParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<User> {
|
|
40
|
+
return this._client.patch('/users/me', { body, ...options });
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/**
|
|
31
|
-
*
|
|
45
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
46
|
+
* social connections.
|
|
32
47
|
*/
|
|
33
|
-
export interface
|
|
48
|
+
export interface User {
|
|
34
49
|
/**
|
|
35
|
-
* The
|
|
50
|
+
* The unique identifier for the user.
|
|
36
51
|
*/
|
|
37
52
|
id: string;
|
|
38
53
|
|
|
@@ -42,7 +57,7 @@ export interface UserRetrieveResponse {
|
|
|
42
57
|
bio: string | null;
|
|
43
58
|
|
|
44
59
|
/**
|
|
45
|
-
*
|
|
60
|
+
* The datetime the user was created.
|
|
46
61
|
*/
|
|
47
62
|
created_at: string;
|
|
48
63
|
|
|
@@ -54,7 +69,7 @@ export interface UserRetrieveResponse {
|
|
|
54
69
|
/**
|
|
55
70
|
* The user's profile picture
|
|
56
71
|
*/
|
|
57
|
-
profile_picture:
|
|
72
|
+
profile_picture: User.ProfilePicture | null;
|
|
58
73
|
|
|
59
74
|
/**
|
|
60
75
|
* The username of the user from their Whop account.
|
|
@@ -62,7 +77,7 @@ export interface UserRetrieveResponse {
|
|
|
62
77
|
username: string;
|
|
63
78
|
}
|
|
64
79
|
|
|
65
|
-
export namespace
|
|
80
|
+
export namespace User {
|
|
66
81
|
/**
|
|
67
82
|
* The user's profile picture
|
|
68
83
|
*/
|
|
@@ -97,10 +112,45 @@ export interface UserCheckAccessParams {
|
|
|
97
112
|
id: string;
|
|
98
113
|
}
|
|
99
114
|
|
|
115
|
+
export interface UserUpdateProfileParams {
|
|
116
|
+
/**
|
|
117
|
+
* User biography
|
|
118
|
+
*/
|
|
119
|
+
bio?: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Display name
|
|
123
|
+
*/
|
|
124
|
+
name?: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Profile picture
|
|
128
|
+
*/
|
|
129
|
+
profile_picture?: UserUpdateProfileParams.ProfilePicture | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Username (alphanumeric and hyphens)
|
|
133
|
+
*/
|
|
134
|
+
username?: string | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace UserUpdateProfileParams {
|
|
138
|
+
/**
|
|
139
|
+
* Profile picture
|
|
140
|
+
*/
|
|
141
|
+
export interface ProfilePicture {
|
|
142
|
+
/**
|
|
143
|
+
* The ID of an existing file object.
|
|
144
|
+
*/
|
|
145
|
+
id: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
100
149
|
export declare namespace Users {
|
|
101
150
|
export {
|
|
102
|
-
type
|
|
151
|
+
type User as User,
|
|
103
152
|
type UserCheckAccessResponse as UserCheckAccessResponse,
|
|
104
153
|
type UserCheckAccessParams as UserCheckAccessParams,
|
|
154
|
+
type UserUpdateProfileParams as UserUpdateProfileParams,
|
|
105
155
|
};
|
|
106
156
|
}
|
|
@@ -18,39 +18,61 @@ export class Verifications extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* An error code for a verification attempt.
|
|
23
|
+
*/
|
|
24
|
+
export type VerificationErrorCode =
|
|
25
|
+
| 'abandoned'
|
|
26
|
+
| 'consent_declined'
|
|
27
|
+
| 'country_not_supported'
|
|
28
|
+
| 'device_not_supported'
|
|
29
|
+
| 'document_expired'
|
|
30
|
+
| 'document_type_not_supported'
|
|
31
|
+
| 'document_unverified_other'
|
|
32
|
+
| 'email_unverified_other'
|
|
33
|
+
| 'email_verification_declined'
|
|
34
|
+
| 'id_number_insufficient_document_data'
|
|
35
|
+
| 'id_number_mismatch'
|
|
36
|
+
| 'id_number_unverified_other'
|
|
37
|
+
| 'phone_unverified_other'
|
|
38
|
+
| 'phone_verification_declined'
|
|
39
|
+
| 'selfie_document_missing_photo'
|
|
40
|
+
| 'selfie_face_mismatch'
|
|
41
|
+
| 'selfie_manipulated'
|
|
42
|
+
| 'selfie_unverified_other'
|
|
43
|
+
| 'under_supported_age';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A status for a verification.
|
|
47
|
+
*/
|
|
48
|
+
export type VerificationStatus =
|
|
49
|
+
| 'requires_input'
|
|
50
|
+
| 'processing'
|
|
51
|
+
| 'verified'
|
|
52
|
+
| 'canceled'
|
|
53
|
+
| 'created'
|
|
54
|
+
| 'started'
|
|
55
|
+
| 'submitted'
|
|
56
|
+
| 'approved'
|
|
57
|
+
| 'declined'
|
|
58
|
+
| 'resubmission_requested'
|
|
59
|
+
| 'expired'
|
|
60
|
+
| 'abandoned'
|
|
61
|
+
| 'review';
|
|
62
|
+
|
|
21
63
|
/**
|
|
22
64
|
* An object representing an identity verification session
|
|
23
65
|
*/
|
|
24
66
|
export interface VerificationRetrieveResponse {
|
|
25
67
|
/**
|
|
26
|
-
*
|
|
68
|
+
* The unique identifier for the verification.
|
|
27
69
|
*/
|
|
28
70
|
id: string;
|
|
29
71
|
|
|
30
72
|
/**
|
|
31
73
|
* An error code for a verification attempt.
|
|
32
74
|
*/
|
|
33
|
-
last_error_code:
|
|
34
|
-
| 'abandoned'
|
|
35
|
-
| 'consent_declined'
|
|
36
|
-
| 'country_not_supported'
|
|
37
|
-
| 'device_not_supported'
|
|
38
|
-
| 'document_expired'
|
|
39
|
-
| 'document_type_not_supported'
|
|
40
|
-
| 'document_unverified_other'
|
|
41
|
-
| 'email_unverified_other'
|
|
42
|
-
| 'email_verification_declined'
|
|
43
|
-
| 'id_number_insufficient_document_data'
|
|
44
|
-
| 'id_number_mismatch'
|
|
45
|
-
| 'id_number_unverified_other'
|
|
46
|
-
| 'phone_unverified_other'
|
|
47
|
-
| 'phone_verification_declined'
|
|
48
|
-
| 'selfie_document_missing_photo'
|
|
49
|
-
| 'selfie_face_mismatch'
|
|
50
|
-
| 'selfie_manipulated'
|
|
51
|
-
| 'selfie_unverified_other'
|
|
52
|
-
| 'under_supported_age'
|
|
53
|
-
| null;
|
|
75
|
+
last_error_code: VerificationErrorCode | null;
|
|
54
76
|
|
|
55
77
|
/**
|
|
56
78
|
* The last error reason that occurred during the verification.
|
|
@@ -60,22 +82,13 @@ export interface VerificationRetrieveResponse {
|
|
|
60
82
|
/**
|
|
61
83
|
* The status of the verification.
|
|
62
84
|
*/
|
|
63
|
-
status:
|
|
64
|
-
| 'requires_input'
|
|
65
|
-
| 'processing'
|
|
66
|
-
| 'verified'
|
|
67
|
-
| 'canceled'
|
|
68
|
-
| 'created'
|
|
69
|
-
| 'started'
|
|
70
|
-
| 'submitted'
|
|
71
|
-
| 'approved'
|
|
72
|
-
| 'declined'
|
|
73
|
-
| 'resubmission_requested'
|
|
74
|
-
| 'expired'
|
|
75
|
-
| 'abandoned'
|
|
76
|
-
| 'review';
|
|
85
|
+
status: VerificationStatus;
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
export declare namespace Verifications {
|
|
80
|
-
export {
|
|
89
|
+
export {
|
|
90
|
+
type VerificationErrorCode as VerificationErrorCode,
|
|
91
|
+
type VerificationStatus as VerificationStatus,
|
|
92
|
+
type VerificationRetrieveResponse as VerificationRetrieveResponse,
|
|
93
|
+
};
|
|
81
94
|
}
|