@surgeapi/node 0.44.0 → 0.45.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 +8 -0
- package/package.json +1 -1
- package/resources/verifications.d.mts +7 -5
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +7 -5
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +8 -6
- package/resources/verifications.js.map +1 -1
- package/resources/verifications.mjs +8 -6
- package/resources/verifications.mjs.map +1 -1
- package/src/resources/verifications.ts +12 -6
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.45.0 (2026-06-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.44.0...v0.45.0](https://github.com/surgeapi/typescript-sdk/compare/v0.44.0...v0.45.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** use account-scoped verifications endpoint ([34bf26d](https://github.com/surgeapi/typescript-sdk/commit/34bf26d50a591c0f782f0cf080577f28dff26763))
|
|
10
|
+
|
|
3
11
|
## 0.44.0 (2026-05-27)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.43.0...v0.44.0](https://github.com/surgeapi/typescript-sdk/compare/v0.43.0...v0.44.0)
|
package/package.json
CHANGED
|
@@ -3,16 +3,18 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Verifications extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Creates a new Verification and sends the code to the given phone
|
|
6
|
+
* Creates a new Verification for an account and sends the code to the given phone
|
|
7
|
+
* number.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
10
|
-
* const verification = await client.verifications.create(
|
|
11
|
-
*
|
|
12
|
-
* }
|
|
11
|
+
* const verification = await client.verifications.create(
|
|
12
|
+
* 'acct_01j9a43avnfqzbjfch6pygv1td',
|
|
13
|
+
* { phone_number: '+18015551234' },
|
|
14
|
+
* );
|
|
13
15
|
* ```
|
|
14
16
|
*/
|
|
15
|
-
create(body: VerificationCreateParams, options?: RequestOptions): APIPromise<Verification>;
|
|
17
|
+
create(accountID: string, body: VerificationCreateParams, options?: RequestOptions): APIPromise<Verification>;
|
|
16
18
|
/**
|
|
17
19
|
* Checks the code against a verification.
|
|
18
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG1G;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,kBAAkB,CAAC;IAE3E;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -3,16 +3,18 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Verifications extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Creates a new Verification and sends the code to the given phone
|
|
6
|
+
* Creates a new Verification for an account and sends the code to the given phone
|
|
7
|
+
* number.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
10
|
-
* const verification = await client.verifications.create(
|
|
11
|
-
*
|
|
12
|
-
* }
|
|
11
|
+
* const verification = await client.verifications.create(
|
|
12
|
+
* 'acct_01j9a43avnfqzbjfch6pygv1td',
|
|
13
|
+
* { phone_number: '+18015551234' },
|
|
14
|
+
* );
|
|
13
15
|
* ```
|
|
14
16
|
*/
|
|
15
|
-
create(body: VerificationCreateParams, options?: RequestOptions): APIPromise<Verification>;
|
|
17
|
+
create(accountID: string, body: VerificationCreateParams, options?: RequestOptions): APIPromise<Verification>;
|
|
16
18
|
/**
|
|
17
19
|
* Checks the code against a verification.
|
|
18
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG1G;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,kBAAkB,CAAC;IAE3E;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -6,17 +6,19 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
7
|
class Verifications extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Creates a new Verification and sends the code to the given phone
|
|
9
|
+
* Creates a new Verification for an account and sends the code to the given phone
|
|
10
|
+
* number.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
13
|
-
* const verification = await client.verifications.create(
|
|
14
|
-
*
|
|
15
|
-
* }
|
|
14
|
+
* const verification = await client.verifications.create(
|
|
15
|
+
* 'acct_01j9a43avnfqzbjfch6pygv1td',
|
|
16
|
+
* { phone_number: '+18015551234' },
|
|
17
|
+
* );
|
|
16
18
|
* ```
|
|
17
19
|
*/
|
|
18
|
-
create(body, options) {
|
|
19
|
-
return this._client.post(
|
|
20
|
+
create(accountID, body, options) {
|
|
21
|
+
return this._client.post((0, path_1.path) `/accounts/${accountID}/verifications`, { body, ...options });
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Checks the code against a verification.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.js","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"verifications.js","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAnCD,sCAmCC"}
|
|
@@ -3,17 +3,19 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
export class Verifications extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Creates a new Verification and sends the code to the given phone
|
|
6
|
+
* Creates a new Verification for an account and sends the code to the given phone
|
|
7
|
+
* number.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
10
|
-
* const verification = await client.verifications.create(
|
|
11
|
-
*
|
|
12
|
-
* }
|
|
11
|
+
* const verification = await client.verifications.create(
|
|
12
|
+
* 'acct_01j9a43avnfqzbjfch6pygv1td',
|
|
13
|
+
* { phone_number: '+18015551234' },
|
|
14
|
+
* );
|
|
13
15
|
* ```
|
|
14
16
|
*/
|
|
15
|
-
create(body, options) {
|
|
16
|
-
return this._client.post(
|
|
17
|
+
create(accountID, body, options) {
|
|
18
|
+
return this._client.post(path `/accounts/${accountID}/verifications`, { body, ...options });
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* Checks the code against a verification.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -7,17 +7,23 @@ import { path } from '../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Verifications extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new Verification and sends the code to the given phone
|
|
10
|
+
* Creates a new Verification for an account and sends the code to the given phone
|
|
11
|
+
* number.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```ts
|
|
14
|
-
* const verification = await client.verifications.create(
|
|
15
|
-
*
|
|
16
|
-
* }
|
|
15
|
+
* const verification = await client.verifications.create(
|
|
16
|
+
* 'acct_01j9a43avnfqzbjfch6pygv1td',
|
|
17
|
+
* { phone_number: '+18015551234' },
|
|
18
|
+
* );
|
|
17
19
|
* ```
|
|
18
20
|
*/
|
|
19
|
-
create(
|
|
20
|
-
|
|
21
|
+
create(
|
|
22
|
+
accountID: string,
|
|
23
|
+
body: VerificationCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<Verification> {
|
|
26
|
+
return this._client.post(path`/accounts/${accountID}/verifications`, { body, ...options });
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.45.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.45.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.45.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.45.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|