@linqapp/sdk 0.75.1 → 0.76.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.76.0](https://github.com/linq-team/linq-node/compare/v0.75.1...v0.76.0) (2026-10-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * add type parameter to phone number resolution endpoint ([6ea95de](https://github.com/linq-team/linq-node/commit/6ea95de1d1b42d369716a83bc631d2fe41ea919f))
9
+
3
10
  ## [0.75.1](https://github.com/linq-team/linq-node/compare/v0.75.0...v0.75.1) (2026-10-01)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linqapp/sdk",
3
- "version": "0.75.1",
3
+ "version": "0.76.0",
4
4
  "description": "The official TypeScript library for the Linq API V3 API",
5
5
  "author": "Linq API V3 <support@linq.com>",
6
6
  "types": "./index.d.ts",
@@ -38,6 +38,9 @@ export declare class AvailableNumber extends APIResource {
38
38
  * primary `TEL` and the partner's other available lines as backups. Share it with
39
39
  * recipients so they can save the line as a contact. Lines you pass in
40
40
  * `exclude_from` are left out of the vCard too.
41
+ *
42
+ * Pass `type` to pick only from one kind of line — for example `RCS` to get one of
43
+ * your Android (RCS-only) lines. Omit it to choose from all of them.
41
44
  */
42
45
  retrieve(query?: AvailableNumberRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<AvailableNumberRetrieveResponse>;
43
46
  }
@@ -75,6 +78,18 @@ export interface AvailableNumberRetrieveParams {
75
78
  * parameter for multiple recipients.
76
79
  */
77
80
  to?: Array<string>;
81
+ /**
82
+ * Only return a line of this kind. Case-insensitive.
83
+ *
84
+ * - `RCS`: Android lines, which send RCS (and SMS) only.
85
+ * - `iMessage`: iMessage lines.
86
+ *
87
+ * Applies to the returned `phone_number`, to the sticky choice when `to` is given
88
+ * (an existing chat on another kind of line is not returned), and to the vCard's
89
+ * backup numbers. Omit it to choose from all your lines. Returns 503 if you have
90
+ * no available line of this kind.
91
+ */
92
+ type?: 'RCS' | 'iMessage';
78
93
  }
79
94
  export declare namespace AvailableNumber {
80
95
  export { type AvailableNumberRetrieveResponse as AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams as AvailableNumberRetrieveParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"available-number.d.mts","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CACN,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
1
+ {"version":3,"file":"available-number.d.mts","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -38,6 +38,9 @@ export declare class AvailableNumber extends APIResource {
38
38
  * primary `TEL` and the partner's other available lines as backups. Share it with
39
39
  * recipients so they can save the line as a contact. Lines you pass in
40
40
  * `exclude_from` are left out of the vCard too.
41
+ *
42
+ * Pass `type` to pick only from one kind of line — for example `RCS` to get one of
43
+ * your Android (RCS-only) lines. Omit it to choose from all of them.
41
44
  */
42
45
  retrieve(query?: AvailableNumberRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<AvailableNumberRetrieveResponse>;
43
46
  }
@@ -75,6 +78,18 @@ export interface AvailableNumberRetrieveParams {
75
78
  * parameter for multiple recipients.
76
79
  */
77
80
  to?: Array<string>;
81
+ /**
82
+ * Only return a line of this kind. Case-insensitive.
83
+ *
84
+ * - `RCS`: Android lines, which send RCS (and SMS) only.
85
+ * - `iMessage`: iMessage lines.
86
+ *
87
+ * Applies to the returned `phone_number`, to the sticky choice when `to` is given
88
+ * (an existing chat on another kind of line is not returned), and to the vCard's
89
+ * backup numbers. Omit it to choose from all your lines. Returns 503 if you have
90
+ * no available line of this kind.
91
+ */
92
+ type?: 'RCS' | 'iMessage';
78
93
  }
79
94
  export declare namespace AvailableNumber {
80
95
  export { type AvailableNumberRetrieveResponse as AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams as AvailableNumberRetrieveParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"available-number.d.ts","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CACN,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
1
+ {"version":3,"file":"available-number.d.ts","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -40,6 +40,9 @@ class AvailableNumber extends resource_1.APIResource {
40
40
  * primary `TEL` and the partner's other available lines as backups. Share it with
41
41
  * recipients so they can save the line as a contact. Lines you pass in
42
42
  * `exclude_from` are left out of the vCard too.
43
+ *
44
+ * Pass `type` to pick only from one kind of line — for example `RCS` to get one of
45
+ * your Android (RCS-only) lines. Omit it to choose from all of them.
43
46
  */
44
47
  retrieve(query = {}, options) {
45
48
  return this._client.get('/v3/available_number', { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"available-number.js","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CACN,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA1BD,0CA0BC"}
1
+ {"version":3,"file":"available-number.js","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA7BD,0CA6BC"}
@@ -37,6 +37,9 @@ export class AvailableNumber extends APIResource {
37
37
  * primary `TEL` and the partner's other available lines as backups. Share it with
38
38
  * recipients so they can save the line as a contact. Lines you pass in
39
39
  * `exclude_from` are left out of the vCard too.
40
+ *
41
+ * Pass `type` to pick only from one kind of line — for example `RCS` to get one of
42
+ * your Android (RCS-only) lines. Omit it to choose from all of them.
40
43
  */
41
44
  retrieve(query = {}, options) {
42
45
  return this._client.get('/v3/available_number', { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"available-number.mjs","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CACN,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
1
+ {"version":3,"file":"available-number.mjs","sourceRoot":"","sources":["../src/resources/available-number.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
@@ -41,6 +41,9 @@ export class AvailableNumber extends APIResource {
41
41
  * primary `TEL` and the partner's other available lines as backups. Share it with
42
42
  * recipients so they can save the line as a contact. Lines you pass in
43
43
  * `exclude_from` are left out of the vCard too.
44
+ *
45
+ * Pass `type` to pick only from one kind of line — for example `RCS` to get one of
46
+ * your Android (RCS-only) lines. Omit it to choose from all of them.
44
47
  */
45
48
  retrieve(
46
49
  query: AvailableNumberRetrieveParams | null | undefined = {},
@@ -87,6 +90,19 @@ export interface AvailableNumberRetrieveParams {
87
90
  * parameter for multiple recipients.
88
91
  */
89
92
  to?: Array<string>;
93
+
94
+ /**
95
+ * Only return a line of this kind. Case-insensitive.
96
+ *
97
+ * - `RCS`: Android lines, which send RCS (and SMS) only.
98
+ * - `iMessage`: iMessage lines.
99
+ *
100
+ * Applies to the returned `phone_number`, to the sticky choice when `to` is given
101
+ * (an existing chat on another kind of line is not returned), and to the vCard's
102
+ * backup numbers. Omit it to choose from all your lines. Returns 503 if you have
103
+ * no available line of this kind.
104
+ */
105
+ type?: 'RCS' | 'iMessage';
90
106
  }
91
107
 
92
108
  export declare namespace AvailableNumber {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.75.1'; // x-release-please-version
1
+ export const VERSION = '0.76.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.75.1";
1
+ export declare const VERSION = "0.76.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.75.1";
1
+ export declare const VERSION = "0.76.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.75.1'; // x-release-please-version
4
+ exports.VERSION = '0.76.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.75.1'; // x-release-please-version
1
+ export const VERSION = '0.76.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map