sendblue 3.11.0 → 3.13.0
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 +16 -0
- package/client.d.mts +9 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -3
- package/client.d.ts.map +1 -1
- package/client.js +21 -6
- package/client.js.map +1 -1
- package/client.mjs +21 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v2/groups/groups.d.mts +86 -0
- package/resources/v2/groups/groups.d.mts.map +1 -0
- package/resources/v2/groups/groups.d.ts +86 -0
- package/resources/v2/groups/groups.d.ts.map +1 -0
- package/resources/v2/groups/groups.js +35 -0
- package/resources/v2/groups/groups.js.map +1 -0
- package/resources/v2/groups/groups.mjs +30 -0
- package/resources/v2/groups/groups.mjs.map +1 -0
- package/resources/v2/groups/index.d.mts +3 -0
- package/resources/v2/groups/index.d.mts.map +1 -0
- package/resources/v2/groups/index.d.ts +3 -0
- package/resources/v2/groups/index.d.ts.map +1 -0
- package/resources/v2/groups/index.js +9 -0
- package/resources/v2/groups/index.js.map +1 -0
- package/resources/v2/groups/index.mjs +4 -0
- package/resources/v2/groups/index.mjs.map +1 -0
- package/resources/v2/groups/verify/index.d.mts +3 -0
- package/resources/v2/groups/verify/index.d.mts.map +1 -0
- package/resources/v2/groups/verify/index.d.ts +3 -0
- package/resources/v2/groups/verify/index.d.ts.map +1 -0
- package/resources/v2/groups/verify/index.js +9 -0
- package/resources/v2/groups/verify/index.js.map +1 -0
- package/resources/v2/groups/verify/index.mjs +4 -0
- package/resources/v2/groups/verify/index.mjs.map +1 -0
- package/resources/v2/groups/verify/services/index.d.mts +3 -0
- package/resources/v2/groups/verify/services/index.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/index.d.ts +3 -0
- package/resources/v2/groups/verify/services/index.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/index.js +9 -0
- package/resources/v2/groups/verify/services/index.js.map +1 -0
- package/resources/v2/groups/verify/services/index.mjs +4 -0
- package/resources/v2/groups/verify/services/index.mjs.map +1 -0
- package/resources/v2/groups/verify/services/services.d.mts +10 -0
- package/resources/v2/groups/verify/services/services.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/services.d.ts +10 -0
- package/resources/v2/groups/verify/services/services.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/services.js +17 -0
- package/resources/v2/groups/verify/services/services.js.map +1 -0
- package/resources/v2/groups/verify/services/services.mjs +12 -0
- package/resources/v2/groups/verify/services/services.mjs.map +1 -0
- package/resources/v2/groups/verify/services/verifications.d.mts +145 -0
- package/resources/v2/groups/verify/services/verifications.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/verifications.d.ts +145 -0
- package/resources/v2/groups/verify/services/verifications.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/verifications.js +57 -0
- package/resources/v2/groups/verify/services/verifications.js.map +1 -0
- package/resources/v2/groups/verify/services/verifications.mjs +53 -0
- package/resources/v2/groups/verify/services/verifications.mjs.map +1 -0
- package/resources/v2/groups/verify/services.d.mts +2 -0
- package/resources/v2/groups/verify/services.d.mts.map +1 -0
- package/resources/v2/groups/verify/services.d.ts +2 -0
- package/resources/v2/groups/verify/services.d.ts.map +1 -0
- package/resources/v2/groups/verify/services.js +6 -0
- package/resources/v2/groups/verify/services.js.map +1 -0
- package/resources/v2/groups/verify/services.mjs +3 -0
- package/resources/v2/groups/verify/services.mjs.map +1 -0
- package/resources/v2/groups/verify/verify.d.mts +10 -0
- package/resources/v2/groups/verify/verify.d.mts.map +1 -0
- package/resources/v2/groups/verify/verify.d.ts +10 -0
- package/resources/v2/groups/verify/verify.d.ts.map +1 -0
- package/resources/v2/groups/verify/verify.js +17 -0
- package/resources/v2/groups/verify/verify.js.map +1 -0
- package/resources/v2/groups/verify/verify.mjs +12 -0
- package/resources/v2/groups/verify/verify.mjs.map +1 -0
- package/resources/v2/groups/verify.d.mts +2 -0
- package/resources/v2/groups/verify.d.mts.map +1 -0
- package/resources/v2/groups/verify.d.ts +2 -0
- package/resources/v2/groups/verify.d.ts.map +1 -0
- package/resources/v2/groups/verify.js +6 -0
- package/resources/v2/groups/verify.js.map +1 -0
- package/resources/v2/groups/verify.mjs +3 -0
- package/resources/v2/groups/verify.mjs.map +1 -0
- package/resources/v2/groups.d.mts +1 -81
- package/resources/v2/groups.d.mts.map +1 -1
- package/resources/v2/groups.d.ts +1 -81
- package/resources/v2/groups.d.ts.map +1 -1
- package/resources/v2/groups.js +2 -23
- package/resources/v2/groups.js.map +1 -1
- package/resources/v2/groups.mjs +1 -21
- package/resources/v2/groups.mjs.map +1 -1
- package/resources/v2/index.d.mts +1 -1
- package/resources/v2/index.d.mts.map +1 -1
- package/resources/v2/index.d.ts +1 -1
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/index.js +4 -4
- package/resources/v2/index.js.map +1 -1
- package/resources/v2/index.mjs +1 -1
- package/resources/v2/index.mjs.map +1 -1
- package/resources/v2/v2.d.mts +2 -2
- package/resources/v2/v2.d.mts.map +1 -1
- package/resources/v2/v2.d.ts +2 -2
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js +2 -2
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +2 -2
- package/resources/v2/v2.mjs.map +1 -1
- package/resources/verify/index.d.mts +1 -1
- package/resources/verify/index.d.mts.map +1 -1
- package/resources/verify/index.d.ts +1 -1
- package/resources/verify/index.d.ts.map +1 -1
- package/resources/verify/index.js.map +1 -1
- package/resources/verify/index.mjs.map +1 -1
- package/resources/verify/verifications.d.mts +172 -1
- package/resources/verify/verifications.d.mts.map +1 -1
- package/resources/verify/verifications.d.ts +172 -1
- package/resources/verify/verifications.d.ts.map +1 -1
- package/resources/verify/verifications.js +51 -0
- package/resources/verify/verifications.js.map +1 -1
- package/resources/verify/verifications.mjs +51 -0
- package/resources/verify/verifications.mjs.map +1 -1
- package/resources/verify/verify.d.mts +2 -2
- package/resources/verify/verify.d.mts.map +1 -1
- package/resources/verify/verify.d.ts +2 -2
- package/resources/verify/verify.d.ts.map +1 -1
- package/resources/verify/verify.js.map +1 -1
- package/resources/verify/verify.mjs.map +1 -1
- package/src/client.ts +31 -13
- package/src/resources/v2/groups/groups.ts +114 -0
- package/src/resources/v2/groups/index.ts +4 -0
- package/src/resources/v2/groups/verify/index.ts +4 -0
- package/src/resources/v2/groups/verify/services/index.ts +10 -0
- package/src/resources/v2/groups/verify/services/services.ts +27 -0
- package/src/resources/v2/groups/verify/services/verifications.ts +201 -0
- package/src/resources/v2/groups/verify/services.ts +3 -0
- package/src/resources/v2/groups/verify/verify.ts +15 -0
- package/src/resources/v2/groups/verify.ts +3 -0
- package/src/resources/v2/groups.ts +1 -104
- package/src/resources/v2/index.ts +1 -1
- package/src/resources/v2/v2.ts +2 -2
- package/src/resources/verify/index.ts +6 -0
- package/src/resources/verify/verifications.ts +233 -0
- package/src/resources/verify/verify.ts +12 -0
- 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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as ServicesAPI from './services/services';
|
|
5
|
+
import { Services } from './services/services';
|
|
6
|
+
|
|
7
|
+
export class Verify extends APIResource {
|
|
8
|
+
services: ServicesAPI.Services = new ServicesAPI.Services(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Verify.Services = Services;
|
|
12
|
+
|
|
13
|
+
export declare namespace Verify {
|
|
14
|
+
export { Services as Services };
|
|
15
|
+
}
|
|
@@ -1,106 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Operations for group messaging (beta)
|
|
10
|
-
*/
|
|
11
|
-
export class Groups extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve the current complete membership for a group owned by the authenticated
|
|
14
|
-
* account.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const group = await client.v2.groups.retrieve(
|
|
19
|
-
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
20
|
-
* );
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupRetrieveResponse> {
|
|
24
|
-
return this._client.get(path`/api/v2/groups/${groupID}`, options);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface GroupRetrieveResponse {
|
|
29
|
-
data?: GroupRetrieveResponse.Data;
|
|
30
|
-
|
|
31
|
-
status?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export namespace GroupRetrieveResponse {
|
|
35
|
-
export interface Data {
|
|
36
|
-
created_at?: string;
|
|
37
|
-
|
|
38
|
-
group_id?: string;
|
|
39
|
-
|
|
40
|
-
group_name?: string;
|
|
41
|
-
|
|
42
|
-
latest_comm_at?: string | null;
|
|
43
|
-
|
|
44
|
-
latest_message_id?: string | null;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Convenience list of resolved participant phone numbers. Participants with
|
|
48
|
-
* email-only handles remain in participants but are omitted here.
|
|
49
|
-
*/
|
|
50
|
-
participant_numbers?: Array<string>;
|
|
51
|
-
|
|
52
|
-
participants?: Array<Data.Participant>;
|
|
53
|
-
|
|
54
|
-
updated_at?: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Worker-local iMessage group identifier when known
|
|
58
|
-
*/
|
|
59
|
-
worker_group_id?: string | null;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export namespace Data {
|
|
63
|
-
export interface Participant {
|
|
64
|
-
/**
|
|
65
|
-
* Contact ID when this participant is linked to a contact
|
|
66
|
-
*/
|
|
67
|
-
contact_id?: string | null;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Raw participant handle, usually an E.164 phone number but sometimes an iMessage
|
|
71
|
-
* email handle
|
|
72
|
-
*/
|
|
73
|
-
handle?: string | null;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Contact or seat display name when available
|
|
77
|
-
*/
|
|
78
|
-
name?: string | null;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Unique participant row identifier
|
|
82
|
-
*/
|
|
83
|
-
participant_id?: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Resolved participant phone number, preferring the stored group phone handle and
|
|
87
|
-
* falling back to contact phone. Email handles remain available in handle.
|
|
88
|
-
*/
|
|
89
|
-
phone?: string | null;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Seat ID when this participant is a team member
|
|
93
|
-
*/
|
|
94
|
-
seat_id?: string | null;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Participant kind
|
|
98
|
-
*/
|
|
99
|
-
type?: 'contact' | 'seat';
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export declare namespace Groups {
|
|
105
|
-
export { type GroupRetrieveResponse as GroupRetrieveResponse };
|
|
106
|
-
}
|
|
3
|
+
export * from './groups/index';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Groups, type GroupRetrieveResponse } from './groups';
|
|
3
|
+
export { Groups, type GroupRetrieveResponse } from './groups/index';
|
|
4
4
|
export {
|
|
5
5
|
Seats,
|
|
6
6
|
type SeatRetrieveResponse,
|
package/src/resources/v2/v2.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as GroupsAPI from './groups';
|
|
5
|
-
import { GroupRetrieveResponse, Groups } from './groups';
|
|
6
4
|
import * as SeatsAPI from './seats';
|
|
7
5
|
import {
|
|
8
6
|
SeatCountParams,
|
|
@@ -12,6 +10,8 @@ import {
|
|
|
12
10
|
SeatRetrieveResponse,
|
|
13
11
|
Seats,
|
|
14
12
|
} from './seats';
|
|
13
|
+
import * as GroupsAPI from './groups/groups';
|
|
14
|
+
import { GroupRetrieveResponse, Groups } from './groups/groups';
|
|
15
15
|
import * as TotpAPI from './totp/totp';
|
|
16
16
|
import { Totp, TotpGetCodeResponse } from './totp/totp';
|
|
17
17
|
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Verifications,
|
|
5
5
|
type VerificationState,
|
|
6
|
+
type DeliveryTarget,
|
|
7
|
+
type HostedVerification,
|
|
8
|
+
type VerificationCreateResponse,
|
|
9
|
+
type VerificationRetrieveResponse,
|
|
6
10
|
type VerificationListResponse,
|
|
11
|
+
type VerificationCreateParams,
|
|
12
|
+
type VerificationRetrieveParams,
|
|
7
13
|
type VerificationListParams,
|
|
8
14
|
} from './verifications';
|
|
9
15
|
export { Verify } from './verify';
|
|
@@ -3,14 +3,78 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Sendblue Verify issuance and recovery state
|
|
9
10
|
*/
|
|
10
11
|
export class Verifications extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates an inverted-OTP verification for the supplied E.164 phone number. The
|
|
14
|
+
* user must send the returned code from that exact phone number to the returned
|
|
15
|
+
* Sendblue destination number.
|
|
16
|
+
*
|
|
17
|
+
* Include `hosted` to create an origin-bound Hosted Verify widget session.
|
|
18
|
+
* Sendblue API credentials must remain on the customer's backend; only the
|
|
19
|
+
* returned `hosted` values may be sent to the browser. Twilio-compatible clients
|
|
20
|
+
* may alternatively send the API Key ID and API Secret Key with HTTP Basic
|
|
21
|
+
* authentication. Temporary bearer authentication is supported for account-scoped
|
|
22
|
+
* tokens; line-scoped temporary tokens cannot create account-wide Verifications.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const verification =
|
|
27
|
+
* await client.verify.verifications.create(
|
|
28
|
+
* 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
29
|
+
* { to: '+14155551212' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(
|
|
34
|
+
serviceSid: string,
|
|
35
|
+
body: VerificationCreateParams,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<VerificationCreateResponse> {
|
|
38
|
+
return this._client.post(path`/api/v2/verify/services/${serviceSid}/verifications`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Returns the authoritative status for one Verification owned by the authenticated
|
|
43
|
+
* account. Twilio-compatible clients may send the API Key ID and API Secret Key
|
|
44
|
+
* with HTTP Basic authentication. Temporary bearer authentication is supported for
|
|
45
|
+
* account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
|
|
46
|
+
* Verification state.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const verification =
|
|
51
|
+
* await client.verify.verifications.retrieve(
|
|
52
|
+
* 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
53
|
+
* { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
retrieve(
|
|
58
|
+
verificationSid: string,
|
|
59
|
+
params: VerificationRetrieveParams,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): APIPromise<VerificationRetrieveResponse> {
|
|
62
|
+
const { service_sid } = params;
|
|
63
|
+
return this._client.get(
|
|
64
|
+
path`/api/v2/verify/services/${service_sid}/verifications/${verificationSid}`,
|
|
65
|
+
options,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
11
69
|
/**
|
|
12
70
|
* Account-scoped verification state used to recover terminal Verify events after
|
|
13
71
|
* an SSE gap.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const verifications =
|
|
76
|
+
* await client.verify.verifications.list();
|
|
77
|
+
* ```
|
|
14
78
|
*/
|
|
15
79
|
list(
|
|
16
80
|
query: VerificationListParams | null | undefined = {},
|
|
@@ -38,6 +102,117 @@ export interface VerificationState {
|
|
|
38
102
|
to?: string | null;
|
|
39
103
|
}
|
|
40
104
|
|
|
105
|
+
export interface DeliveryTarget {
|
|
106
|
+
/**
|
|
107
|
+
* Code the expected sender must text to `pool_number`.
|
|
108
|
+
*/
|
|
109
|
+
code: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Sendblue phone number that should receive the verification code.
|
|
113
|
+
*/
|
|
114
|
+
pool_number: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Messages/SMS deep link with the destination and code prefilled.
|
|
118
|
+
*/
|
|
119
|
+
sms_deep_link: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface HostedVerification {
|
|
123
|
+
/**
|
|
124
|
+
* Web-component script URL. Load this value exactly as returned.
|
|
125
|
+
*/
|
|
126
|
+
component_script: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* ISO timestamp when the Verification expires.
|
|
130
|
+
*/
|
|
131
|
+
expires_at: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Hosted widget session identifier.
|
|
135
|
+
*/
|
|
136
|
+
session_id: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Origin-bound widget URL containing a one-session bearer token in its fragment.
|
|
140
|
+
* Do not log, persist, or move the token into a query parameter.
|
|
141
|
+
*/
|
|
142
|
+
url: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface VerificationCreateResponse {
|
|
146
|
+
account_sid: string;
|
|
147
|
+
|
|
148
|
+
channel: 'imessage';
|
|
149
|
+
|
|
150
|
+
date_created: string;
|
|
151
|
+
|
|
152
|
+
date_updated: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* ISO timestamp when the Verification expires.
|
|
156
|
+
*/
|
|
157
|
+
expires_at: string;
|
|
158
|
+
|
|
159
|
+
service_sid: string;
|
|
160
|
+
|
|
161
|
+
sid: string;
|
|
162
|
+
|
|
163
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
167
|
+
*/
|
|
168
|
+
to: string | null;
|
|
169
|
+
|
|
170
|
+
url: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Present while the Verification is pending.
|
|
174
|
+
*/
|
|
175
|
+
delivery_target?: DeliveryTarget;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Present only when hosted options were supplied during creation.
|
|
179
|
+
*/
|
|
180
|
+
hosted?: HostedVerification;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface VerificationRetrieveResponse {
|
|
184
|
+
account_sid: string;
|
|
185
|
+
|
|
186
|
+
channel: 'imessage';
|
|
187
|
+
|
|
188
|
+
date_created: string;
|
|
189
|
+
|
|
190
|
+
date_updated: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* ISO timestamp when the Verification expires.
|
|
194
|
+
*/
|
|
195
|
+
expires_at: string;
|
|
196
|
+
|
|
197
|
+
service_sid: string;
|
|
198
|
+
|
|
199
|
+
sid: string;
|
|
200
|
+
|
|
201
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
205
|
+
*/
|
|
206
|
+
to: string | null;
|
|
207
|
+
|
|
208
|
+
url: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Present while the Verification is pending.
|
|
212
|
+
*/
|
|
213
|
+
delivery_target?: DeliveryTarget;
|
|
214
|
+
}
|
|
215
|
+
|
|
41
216
|
export interface VerificationListResponse {
|
|
42
217
|
data: Array<VerificationState>;
|
|
43
218
|
|
|
@@ -58,6 +233,58 @@ export namespace VerificationListResponse {
|
|
|
58
233
|
}
|
|
59
234
|
}
|
|
60
235
|
|
|
236
|
+
export interface VerificationCreateParams {
|
|
237
|
+
/**
|
|
238
|
+
* E.164 phone number that must send the verification message.
|
|
239
|
+
*/
|
|
240
|
+
to: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
244
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
245
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
246
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
247
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
248
|
+
*/
|
|
249
|
+
hosted?: VerificationCreateParams.Hosted;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export namespace VerificationCreateParams {
|
|
253
|
+
/**
|
|
254
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
255
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
256
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
257
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
258
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
259
|
+
*/
|
|
260
|
+
export interface Hosted {
|
|
261
|
+
/**
|
|
262
|
+
* Exact website origin allowed to embed the widget, with no path, query, or
|
|
263
|
+
* fragment.
|
|
264
|
+
*/
|
|
265
|
+
parent_origin: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Six-digit hexadecimal accent color.
|
|
269
|
+
*/
|
|
270
|
+
accent_color?: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Brand name displayed by the widget. Defaults to Sendblue.
|
|
274
|
+
*/
|
|
275
|
+
brand_name?: string;
|
|
276
|
+
|
|
277
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface VerificationRetrieveParams {
|
|
282
|
+
/**
|
|
283
|
+
* Verify Service SID.
|
|
284
|
+
*/
|
|
285
|
+
service_sid: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
61
288
|
export interface VerificationListParams {
|
|
62
289
|
limit?: number;
|
|
63
290
|
|
|
@@ -69,7 +296,13 @@ export interface VerificationListParams {
|
|
|
69
296
|
export declare namespace Verifications {
|
|
70
297
|
export {
|
|
71
298
|
type VerificationState as VerificationState,
|
|
299
|
+
type DeliveryTarget as DeliveryTarget,
|
|
300
|
+
type HostedVerification as HostedVerification,
|
|
301
|
+
type VerificationCreateResponse as VerificationCreateResponse,
|
|
302
|
+
type VerificationRetrieveResponse as VerificationRetrieveResponse,
|
|
72
303
|
type VerificationListResponse as VerificationListResponse,
|
|
304
|
+
type VerificationCreateParams as VerificationCreateParams,
|
|
305
|
+
type VerificationRetrieveParams as VerificationRetrieveParams,
|
|
73
306
|
type VerificationListParams as VerificationListParams,
|
|
74
307
|
};
|
|
75
308
|
}
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as VerificationsAPI from './verifications';
|
|
5
5
|
import {
|
|
6
|
+
DeliveryTarget,
|
|
7
|
+
HostedVerification,
|
|
8
|
+
VerificationCreateParams,
|
|
9
|
+
VerificationCreateResponse,
|
|
6
10
|
VerificationListParams,
|
|
7
11
|
VerificationListResponse,
|
|
12
|
+
VerificationRetrieveParams,
|
|
13
|
+
VerificationRetrieveResponse,
|
|
8
14
|
VerificationState,
|
|
9
15
|
Verifications,
|
|
10
16
|
} from './verifications';
|
|
@@ -19,7 +25,13 @@ export declare namespace Verify {
|
|
|
19
25
|
export {
|
|
20
26
|
Verifications as Verifications,
|
|
21
27
|
type VerificationState as VerificationState,
|
|
28
|
+
type DeliveryTarget as DeliveryTarget,
|
|
29
|
+
type HostedVerification as HostedVerification,
|
|
30
|
+
type VerificationCreateResponse as VerificationCreateResponse,
|
|
31
|
+
type VerificationRetrieveResponse as VerificationRetrieveResponse,
|
|
22
32
|
type VerificationListResponse as VerificationListResponse,
|
|
33
|
+
type VerificationCreateParams as VerificationCreateParams,
|
|
34
|
+
type VerificationRetrieveParams as VerificationRetrieveParams,
|
|
23
35
|
type VerificationListParams as VerificationListParams,
|
|
24
36
|
};
|
|
25
37
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.13.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.13.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.13.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.13.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|