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
package/resources/v2/groups.mjs
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Operations for group messaging (beta)
|
|
6
|
-
*/
|
|
7
|
-
export class Groups extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the current complete membership for a group owned by the authenticated
|
|
10
|
-
* account.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const group = await client.v2.groups.retrieve(
|
|
15
|
-
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
retrieve(groupID, options) {
|
|
20
|
-
return this._client.get(path `/api/v2/groups/${groupID}`, options);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
2
|
+
export * from "./groups/index.mjs";
|
|
23
3
|
//# sourceMappingURL=groups.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
package/resources/v2/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Groups, type GroupRetrieveResponse } from "./groups.mjs";
|
|
1
|
+
export { Groups, type GroupRetrieveResponse } from "./groups/index.mjs";
|
|
2
2
|
export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.mjs";
|
|
3
3
|
export { Totp, type TotpGetCodeResponse } from "./totp/index.mjs";
|
|
4
4
|
export { V2 } from "./v2.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,2BAAuB;AACpE,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
|
package/resources/v2/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Groups, type GroupRetrieveResponse } from "./groups.js";
|
|
1
|
+
export { Groups, type GroupRetrieveResponse } from "./groups/index.js";
|
|
2
2
|
export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.js";
|
|
3
3
|
export { Totp, type TotpGetCodeResponse } from "./totp/index.js";
|
|
4
4
|
export { V2 } from "./v2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,0BAAuB;AACpE,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,mBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,wBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,gBAAa"}
|
package/resources/v2/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.V2 = exports.Totp = exports.Seats = exports.Groups = void 0;
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return
|
|
5
|
+
var index_1 = require("./groups/index.js");
|
|
6
|
+
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return index_1.Groups; } });
|
|
7
7
|
var seats_1 = require("./seats.js");
|
|
8
8
|
Object.defineProperty(exports, "Seats", { enumerable: true, get: function () { return seats_1.Seats; } });
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "Totp", { enumerable: true, get: function () { return
|
|
9
|
+
var index_2 = require("./totp/index.js");
|
|
10
|
+
Object.defineProperty(exports, "Totp", { enumerable: true, get: function () { return index_2.Totp; } });
|
|
11
11
|
var v2_1 = require("./v2.js");
|
|
12
12
|
Object.defineProperty(exports, "V2", { enumerable: true, get: function () { return v2_1.V2; } });
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAoE;AAA3D,+FAAA,MAAM,OAAA;AACf,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,yCAA8D;AAArD,6FAAA,IAAI,OAAA;AACb,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v2/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Groups } from "./groups.mjs";
|
|
2
|
+
export { Groups } from "./groups/index.mjs";
|
|
3
3
|
export { Seats, } from "./seats.mjs";
|
|
4
4
|
export { Totp } from "./totp/index.mjs";
|
|
5
5
|
export { V2 } from "./v2.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAA8B,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAA8B,2BAAuB;AACpE,OAAO,EACL,KAAK,GAMN,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAA4B,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
|
package/resources/v2/v2.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as GroupsAPI from "./groups.mjs";
|
|
3
|
-
import { GroupRetrieveResponse, Groups } from "./groups.mjs";
|
|
4
2
|
import * as SeatsAPI from "./seats.mjs";
|
|
5
3
|
import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.mjs";
|
|
4
|
+
import * as GroupsAPI from "./groups/groups.mjs";
|
|
5
|
+
import { GroupRetrieveResponse, Groups } from "./groups/groups.mjs";
|
|
6
6
|
import * as TotpAPI from "./totp/totp.mjs";
|
|
7
7
|
import { Totp, TotpGetCodeResponse } from "./totp/totp.mjs";
|
|
8
8
|
export declare class V2 extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN,oBAAgB;AACjB,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,4BAAwB;AAChE,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,wBAAoB;AAExD,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAEzE,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAClF"}
|
package/resources/v2/v2.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as GroupsAPI from "./groups.js";
|
|
3
|
-
import { GroupRetrieveResponse, Groups } from "./groups.js";
|
|
4
2
|
import * as SeatsAPI from "./seats.js";
|
|
5
3
|
import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.js";
|
|
4
|
+
import * as GroupsAPI from "./groups/groups.js";
|
|
5
|
+
import { GroupRetrieveResponse, Groups } from "./groups/groups.js";
|
|
6
6
|
import * as TotpAPI from "./totp/totp.js";
|
|
7
7
|
import { Totp, TotpGetCodeResponse } from "./totp/totp.js";
|
|
8
8
|
export declare class V2 extends APIResource {
|
package/resources/v2/v2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN,mBAAgB;AACjB,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,2BAAwB;AAChE,OAAO,KAAK,OAAO,uBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,uBAAoB;AAExD,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAEzE,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAClF"}
|
package/resources/v2/v2.js
CHANGED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.V2 = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const GroupsAPI = tslib_1.__importStar(require("./groups.js"));
|
|
8
|
-
const groups_1 = require("./groups.js");
|
|
9
7
|
const SeatsAPI = tslib_1.__importStar(require("./seats.js"));
|
|
10
8
|
const seats_1 = require("./seats.js");
|
|
9
|
+
const GroupsAPI = tslib_1.__importStar(require("./groups/groups.js"));
|
|
10
|
+
const groups_1 = require("./groups/groups.js");
|
|
11
11
|
const TotpAPI = tslib_1.__importStar(require("./totp/totp.js"));
|
|
12
12
|
const totp_1 = require("./totp/totp.js");
|
|
13
13
|
class V2 extends resource_1.APIResource {
|
package/resources/v2/v2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD
|
|
1
|
+
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAOiB;AACjB,sEAA6C;AAC7C,+CAAgE;AAChE,gEAAuC;AACvC,yCAAwD;AAExD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
package/resources/v2/v2.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as GroupsAPI from "./groups.mjs";
|
|
4
|
-
import { Groups } from "./groups.mjs";
|
|
5
3
|
import * as SeatsAPI from "./seats.mjs";
|
|
6
4
|
import { Seats, } from "./seats.mjs";
|
|
5
|
+
import * as GroupsAPI from "./groups/groups.mjs";
|
|
6
|
+
import { Groups } from "./groups/groups.mjs";
|
|
7
7
|
import * as TotpAPI from "./totp/totp.mjs";
|
|
8
8
|
import { Totp } from "./totp/totp.mjs";
|
|
9
9
|
export class V2 extends APIResource {
|
package/resources/v2/v2.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAML,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAAyB,MAAM,EAAE,4BAAwB;AAChE,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAuB,wBAAoB;AAExD,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Verifications, type VerificationState, type VerificationListResponse, type VerificationListParams, } from "./verifications.mjs";
|
|
1
|
+
export { Verifications, type VerificationState, type DeliveryTarget, type HostedVerification, type VerificationCreateResponse, type VerificationRetrieveResponse, type VerificationListResponse, type VerificationCreateParams, type VerificationRetrieveParams, type VerificationListParams, } from "./verifications.mjs";
|
|
2
2
|
export { Verify } from "./verify.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,4BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,4BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Verifications, type VerificationState, type VerificationListResponse, type VerificationListParams, } from "./verifications.js";
|
|
1
|
+
export { Verifications, type VerificationState, type DeliveryTarget, type HostedVerification, type VerificationCreateResponse, type VerificationRetrieveResponse, type VerificationListResponse, type VerificationCreateParams, type VerificationRetrieveParams, type VerificationListParams, } from "./verifications.js";
|
|
2
2
|
export { Verify } from "./verify.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,2BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,2BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAWyB;AAVvB,8GAAA,aAAa,OAAA;AAWf,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAUd,4BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -5,9 +5,54 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
5
5
|
* Sendblue Verify issuance and recovery state
|
|
6
6
|
*/
|
|
7
7
|
export declare class Verifications extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an inverted-OTP verification for the supplied E.164 phone number. The
|
|
10
|
+
* user must send the returned code from that exact phone number to the returned
|
|
11
|
+
* Sendblue destination number.
|
|
12
|
+
*
|
|
13
|
+
* Include `hosted` to create an origin-bound Hosted Verify widget session.
|
|
14
|
+
* Sendblue API credentials must remain on the customer's backend; only the
|
|
15
|
+
* returned `hosted` values may be sent to the browser. Twilio-compatible clients
|
|
16
|
+
* may alternatively send the API Key ID and API Secret Key with HTTP Basic
|
|
17
|
+
* authentication. Temporary bearer authentication is supported for account-scoped
|
|
18
|
+
* tokens; line-scoped temporary tokens cannot create account-wide Verifications.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const verification =
|
|
23
|
+
* await client.verify.verifications.create(
|
|
24
|
+
* 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
25
|
+
* { to: '+14155551212' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(serviceSid: string, body: VerificationCreateParams, options?: RequestOptions): APIPromise<VerificationCreateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the authoritative status for one Verification owned by the authenticated
|
|
32
|
+
* account. Twilio-compatible clients may send the API Key ID and API Secret Key
|
|
33
|
+
* with HTTP Basic authentication. Temporary bearer authentication is supported for
|
|
34
|
+
* account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
|
|
35
|
+
* Verification state.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const verification =
|
|
40
|
+
* await client.verify.verifications.retrieve(
|
|
41
|
+
* 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
42
|
+
* { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(verificationSid: string, params: VerificationRetrieveParams, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
|
|
8
47
|
/**
|
|
9
48
|
* Account-scoped verification state used to recover terminal Verify events after
|
|
10
49
|
* an SSE gap.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const verifications =
|
|
54
|
+
* await client.verify.verifications.list();
|
|
55
|
+
* ```
|
|
11
56
|
*/
|
|
12
57
|
list(query?: VerificationListParams | null | undefined, options?: RequestOptions): APIPromise<VerificationListResponse>;
|
|
13
58
|
}
|
|
@@ -21,6 +66,87 @@ export interface VerificationState {
|
|
|
21
66
|
date_completed?: string | null;
|
|
22
67
|
to?: string | null;
|
|
23
68
|
}
|
|
69
|
+
export interface DeliveryTarget {
|
|
70
|
+
/**
|
|
71
|
+
* Code the expected sender must text to `pool_number`.
|
|
72
|
+
*/
|
|
73
|
+
code: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sendblue phone number that should receive the verification code.
|
|
76
|
+
*/
|
|
77
|
+
pool_number: string;
|
|
78
|
+
/**
|
|
79
|
+
* Messages/SMS deep link with the destination and code prefilled.
|
|
80
|
+
*/
|
|
81
|
+
sms_deep_link: string;
|
|
82
|
+
}
|
|
83
|
+
export interface HostedVerification {
|
|
84
|
+
/**
|
|
85
|
+
* Web-component script URL. Load this value exactly as returned.
|
|
86
|
+
*/
|
|
87
|
+
component_script: string;
|
|
88
|
+
/**
|
|
89
|
+
* ISO timestamp when the Verification expires.
|
|
90
|
+
*/
|
|
91
|
+
expires_at: string;
|
|
92
|
+
/**
|
|
93
|
+
* Hosted widget session identifier.
|
|
94
|
+
*/
|
|
95
|
+
session_id: string;
|
|
96
|
+
/**
|
|
97
|
+
* Origin-bound widget URL containing a one-session bearer token in its fragment.
|
|
98
|
+
* Do not log, persist, or move the token into a query parameter.
|
|
99
|
+
*/
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
102
|
+
export interface VerificationCreateResponse {
|
|
103
|
+
account_sid: string;
|
|
104
|
+
channel: 'imessage';
|
|
105
|
+
date_created: string;
|
|
106
|
+
date_updated: string;
|
|
107
|
+
/**
|
|
108
|
+
* ISO timestamp when the Verification expires.
|
|
109
|
+
*/
|
|
110
|
+
expires_at: string;
|
|
111
|
+
service_sid: string;
|
|
112
|
+
sid: string;
|
|
113
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
114
|
+
/**
|
|
115
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
116
|
+
*/
|
|
117
|
+
to: string | null;
|
|
118
|
+
url: string;
|
|
119
|
+
/**
|
|
120
|
+
* Present while the Verification is pending.
|
|
121
|
+
*/
|
|
122
|
+
delivery_target?: DeliveryTarget;
|
|
123
|
+
/**
|
|
124
|
+
* Present only when hosted options were supplied during creation.
|
|
125
|
+
*/
|
|
126
|
+
hosted?: HostedVerification;
|
|
127
|
+
}
|
|
128
|
+
export interface VerificationRetrieveResponse {
|
|
129
|
+
account_sid: string;
|
|
130
|
+
channel: 'imessage';
|
|
131
|
+
date_created: string;
|
|
132
|
+
date_updated: string;
|
|
133
|
+
/**
|
|
134
|
+
* ISO timestamp when the Verification expires.
|
|
135
|
+
*/
|
|
136
|
+
expires_at: string;
|
|
137
|
+
service_sid: string;
|
|
138
|
+
sid: string;
|
|
139
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
140
|
+
/**
|
|
141
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
142
|
+
*/
|
|
143
|
+
to: string | null;
|
|
144
|
+
url: string;
|
|
145
|
+
/**
|
|
146
|
+
* Present while the Verification is pending.
|
|
147
|
+
*/
|
|
148
|
+
delivery_target?: DeliveryTarget;
|
|
149
|
+
}
|
|
24
150
|
export interface VerificationListResponse {
|
|
25
151
|
data: Array<VerificationState>;
|
|
26
152
|
pagination: VerificationListResponse.Pagination;
|
|
@@ -34,12 +160,57 @@ export declare namespace VerificationListResponse {
|
|
|
34
160
|
offset?: number;
|
|
35
161
|
}
|
|
36
162
|
}
|
|
163
|
+
export interface VerificationCreateParams {
|
|
164
|
+
/**
|
|
165
|
+
* E.164 phone number that must send the verification message.
|
|
166
|
+
*/
|
|
167
|
+
to: string;
|
|
168
|
+
/**
|
|
169
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
170
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
171
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
172
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
173
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
174
|
+
*/
|
|
175
|
+
hosted?: VerificationCreateParams.Hosted;
|
|
176
|
+
}
|
|
177
|
+
export declare namespace VerificationCreateParams {
|
|
178
|
+
/**
|
|
179
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
180
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
181
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
182
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
183
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
184
|
+
*/
|
|
185
|
+
interface Hosted {
|
|
186
|
+
/**
|
|
187
|
+
* Exact website origin allowed to embed the widget, with no path, query, or
|
|
188
|
+
* fragment.
|
|
189
|
+
*/
|
|
190
|
+
parent_origin: string;
|
|
191
|
+
/**
|
|
192
|
+
* Six-digit hexadecimal accent color.
|
|
193
|
+
*/
|
|
194
|
+
accent_color?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Brand name displayed by the widget. Defaults to Sendblue.
|
|
197
|
+
*/
|
|
198
|
+
brand_name?: string;
|
|
199
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export interface VerificationRetrieveParams {
|
|
203
|
+
/**
|
|
204
|
+
* Verify Service SID.
|
|
205
|
+
*/
|
|
206
|
+
service_sid: string;
|
|
207
|
+
}
|
|
37
208
|
export interface VerificationListParams {
|
|
38
209
|
limit?: number;
|
|
39
210
|
offset?: number;
|
|
40
211
|
updated_at_gte?: string;
|
|
41
212
|
}
|
|
42
213
|
export declare namespace Verifications {
|
|
43
|
-
export { type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
|
|
214
|
+
export { type VerificationState as VerificationState, type DeliveryTarget as DeliveryTarget, type HostedVerification as HostedVerification, type VerificationCreateResponse as VerificationCreateResponse, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationListResponse as VerificationListResponse, type VerificationCreateParams as VerificationCreateParams, type VerificationRetrieveParams as VerificationRetrieveParams, type VerificationListParams as VerificationListParams, };
|
|
44
215
|
}
|
|
45
216
|
//# sourceMappingURL=verifications.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;
|
|
1
|
+
{"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EA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AK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,MAAM,CAAC;CAC1C;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;;;;OAMG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;KACnC;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -5,9 +5,54 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
* Sendblue Verify issuance and recovery state
|
|
6
6
|
*/
|
|
7
7
|
export declare class Verifications extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an inverted-OTP verification for the supplied E.164 phone number. The
|
|
10
|
+
* user must send the returned code from that exact phone number to the returned
|
|
11
|
+
* Sendblue destination number.
|
|
12
|
+
*
|
|
13
|
+
* Include `hosted` to create an origin-bound Hosted Verify widget session.
|
|
14
|
+
* Sendblue API credentials must remain on the customer's backend; only the
|
|
15
|
+
* returned `hosted` values may be sent to the browser. Twilio-compatible clients
|
|
16
|
+
* may alternatively send the API Key ID and API Secret Key with HTTP Basic
|
|
17
|
+
* authentication. Temporary bearer authentication is supported for account-scoped
|
|
18
|
+
* tokens; line-scoped temporary tokens cannot create account-wide Verifications.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const verification =
|
|
23
|
+
* await client.verify.verifications.create(
|
|
24
|
+
* 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
25
|
+
* { to: '+14155551212' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(serviceSid: string, body: VerificationCreateParams, options?: RequestOptions): APIPromise<VerificationCreateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the authoritative status for one Verification owned by the authenticated
|
|
32
|
+
* account. Twilio-compatible clients may send the API Key ID and API Secret Key
|
|
33
|
+
* with HTTP Basic authentication. Temporary bearer authentication is supported for
|
|
34
|
+
* account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
|
|
35
|
+
* Verification state.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const verification =
|
|
40
|
+
* await client.verify.verifications.retrieve(
|
|
41
|
+
* 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
|
|
42
|
+
* { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(verificationSid: string, params: VerificationRetrieveParams, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
|
|
8
47
|
/**
|
|
9
48
|
* Account-scoped verification state used to recover terminal Verify events after
|
|
10
49
|
* an SSE gap.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const verifications =
|
|
54
|
+
* await client.verify.verifications.list();
|
|
55
|
+
* ```
|
|
11
56
|
*/
|
|
12
57
|
list(query?: VerificationListParams | null | undefined, options?: RequestOptions): APIPromise<VerificationListResponse>;
|
|
13
58
|
}
|
|
@@ -21,6 +66,87 @@ export interface VerificationState {
|
|
|
21
66
|
date_completed?: string | null;
|
|
22
67
|
to?: string | null;
|
|
23
68
|
}
|
|
69
|
+
export interface DeliveryTarget {
|
|
70
|
+
/**
|
|
71
|
+
* Code the expected sender must text to `pool_number`.
|
|
72
|
+
*/
|
|
73
|
+
code: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sendblue phone number that should receive the verification code.
|
|
76
|
+
*/
|
|
77
|
+
pool_number: string;
|
|
78
|
+
/**
|
|
79
|
+
* Messages/SMS deep link with the destination and code prefilled.
|
|
80
|
+
*/
|
|
81
|
+
sms_deep_link: string;
|
|
82
|
+
}
|
|
83
|
+
export interface HostedVerification {
|
|
84
|
+
/**
|
|
85
|
+
* Web-component script URL. Load this value exactly as returned.
|
|
86
|
+
*/
|
|
87
|
+
component_script: string;
|
|
88
|
+
/**
|
|
89
|
+
* ISO timestamp when the Verification expires.
|
|
90
|
+
*/
|
|
91
|
+
expires_at: string;
|
|
92
|
+
/**
|
|
93
|
+
* Hosted widget session identifier.
|
|
94
|
+
*/
|
|
95
|
+
session_id: string;
|
|
96
|
+
/**
|
|
97
|
+
* Origin-bound widget URL containing a one-session bearer token in its fragment.
|
|
98
|
+
* Do not log, persist, or move the token into a query parameter.
|
|
99
|
+
*/
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
102
|
+
export interface VerificationCreateResponse {
|
|
103
|
+
account_sid: string;
|
|
104
|
+
channel: 'imessage';
|
|
105
|
+
date_created: string;
|
|
106
|
+
date_updated: string;
|
|
107
|
+
/**
|
|
108
|
+
* ISO timestamp when the Verification expires.
|
|
109
|
+
*/
|
|
110
|
+
expires_at: string;
|
|
111
|
+
service_sid: string;
|
|
112
|
+
sid: string;
|
|
113
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
114
|
+
/**
|
|
115
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
116
|
+
*/
|
|
117
|
+
to: string | null;
|
|
118
|
+
url: string;
|
|
119
|
+
/**
|
|
120
|
+
* Present while the Verification is pending.
|
|
121
|
+
*/
|
|
122
|
+
delivery_target?: DeliveryTarget;
|
|
123
|
+
/**
|
|
124
|
+
* Present only when hosted options were supplied during creation.
|
|
125
|
+
*/
|
|
126
|
+
hosted?: HostedVerification;
|
|
127
|
+
}
|
|
128
|
+
export interface VerificationRetrieveResponse {
|
|
129
|
+
account_sid: string;
|
|
130
|
+
channel: 'imessage';
|
|
131
|
+
date_created: string;
|
|
132
|
+
date_updated: string;
|
|
133
|
+
/**
|
|
134
|
+
* ISO timestamp when the Verification expires.
|
|
135
|
+
*/
|
|
136
|
+
expires_at: string;
|
|
137
|
+
service_sid: string;
|
|
138
|
+
sid: string;
|
|
139
|
+
status: 'pending' | 'approved' | 'expired' | 'canceled';
|
|
140
|
+
/**
|
|
141
|
+
* Expected sender in E.164 format; older durable terminal records may return null.
|
|
142
|
+
*/
|
|
143
|
+
to: string | null;
|
|
144
|
+
url: string;
|
|
145
|
+
/**
|
|
146
|
+
* Present while the Verification is pending.
|
|
147
|
+
*/
|
|
148
|
+
delivery_target?: DeliveryTarget;
|
|
149
|
+
}
|
|
24
150
|
export interface VerificationListResponse {
|
|
25
151
|
data: Array<VerificationState>;
|
|
26
152
|
pagination: VerificationListResponse.Pagination;
|
|
@@ -34,12 +160,57 @@ export declare namespace VerificationListResponse {
|
|
|
34
160
|
offset?: number;
|
|
35
161
|
}
|
|
36
162
|
}
|
|
163
|
+
export interface VerificationCreateParams {
|
|
164
|
+
/**
|
|
165
|
+
* E.164 phone number that must send the verification message.
|
|
166
|
+
*/
|
|
167
|
+
to: string;
|
|
168
|
+
/**
|
|
169
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
170
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
171
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
172
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
173
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
174
|
+
*/
|
|
175
|
+
hosted?: VerificationCreateParams.Hosted;
|
|
176
|
+
}
|
|
177
|
+
export declare namespace VerificationCreateParams {
|
|
178
|
+
/**
|
|
179
|
+
* Options for an origin-bound Hosted Verify widget session. Nested keys are strict
|
|
180
|
+
* snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
|
|
181
|
+
* `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
|
|
182
|
+
* `127.0.0.1` development origins. Wildcards and other IP literals are rejected
|
|
183
|
+
* because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
|
|
184
|
+
*/
|
|
185
|
+
interface Hosted {
|
|
186
|
+
/**
|
|
187
|
+
* Exact website origin allowed to embed the widget, with no path, query, or
|
|
188
|
+
* fragment.
|
|
189
|
+
*/
|
|
190
|
+
parent_origin: string;
|
|
191
|
+
/**
|
|
192
|
+
* Six-digit hexadecimal accent color.
|
|
193
|
+
*/
|
|
194
|
+
accent_color?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Brand name displayed by the widget. Defaults to Sendblue.
|
|
197
|
+
*/
|
|
198
|
+
brand_name?: string;
|
|
199
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export interface VerificationRetrieveParams {
|
|
203
|
+
/**
|
|
204
|
+
* Verify Service SID.
|
|
205
|
+
*/
|
|
206
|
+
service_sid: string;
|
|
207
|
+
}
|
|
37
208
|
export interface VerificationListParams {
|
|
38
209
|
limit?: number;
|
|
39
210
|
offset?: number;
|
|
40
211
|
updated_at_gte?: string;
|
|
41
212
|
}
|
|
42
213
|
export declare namespace Verifications {
|
|
43
|
-
export { type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
|
|
214
|
+
export { type VerificationState as VerificationState, type DeliveryTarget as DeliveryTarget, type HostedVerification as HostedVerification, type VerificationCreateResponse as VerificationCreateResponse, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationListResponse as VerificationListResponse, type VerificationCreateParams as VerificationCreateParams, type VerificationRetrieveParams as VerificationRetrieveParams, type VerificationListParams as VerificationListParams, };
|
|
44
215
|
}
|
|
45
216
|
//# sourceMappingURL=verifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;
|
|
1
|
+
{"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,eAAe,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