telnyx 7.14.0 → 7.16.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.
Files changed (229) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/calls/actions.d.mts +10 -8
  12. package/resources/calls/actions.d.mts.map +1 -1
  13. package/resources/calls/actions.d.ts +10 -8
  14. package/resources/calls/actions.d.ts.map +1 -1
  15. package/resources/calls/calls.d.mts +5 -5
  16. package/resources/calls/calls.d.mts.map +1 -1
  17. package/resources/calls/calls.d.ts +5 -5
  18. package/resources/calls/calls.d.ts.map +1 -1
  19. package/resources/index.d.mts +3 -1
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +3 -1
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +7 -3
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +2 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/meeting-sessions/actions.d.mts +82 -0
  28. package/resources/meeting-sessions/actions.d.mts.map +1 -0
  29. package/resources/meeting-sessions/actions.d.ts +82 -0
  30. package/resources/meeting-sessions/actions.d.ts.map +1 -0
  31. package/resources/meeting-sessions/actions.js +59 -0
  32. package/resources/meeting-sessions/actions.js.map +1 -0
  33. package/resources/meeting-sessions/actions.mjs +55 -0
  34. package/resources/meeting-sessions/actions.mjs.map +1 -0
  35. package/resources/meeting-sessions/artifacts.d.mts +92 -0
  36. package/resources/meeting-sessions/artifacts.d.mts.map +1 -0
  37. package/resources/meeting-sessions/artifacts.d.ts +92 -0
  38. package/resources/meeting-sessions/artifacts.d.ts.map +1 -0
  39. package/resources/meeting-sessions/artifacts.js +62 -0
  40. package/resources/meeting-sessions/artifacts.js.map +1 -0
  41. package/resources/meeting-sessions/artifacts.mjs +58 -0
  42. package/resources/meeting-sessions/artifacts.mjs.map +1 -0
  43. package/resources/meeting-sessions/index.d.mts +4 -0
  44. package/resources/meeting-sessions/index.d.mts.map +1 -0
  45. package/resources/meeting-sessions/index.d.ts +4 -0
  46. package/resources/meeting-sessions/index.d.ts.map +1 -0
  47. package/resources/meeting-sessions/index.js +11 -0
  48. package/resources/meeting-sessions/index.js.map +1 -0
  49. package/resources/meeting-sessions/index.mjs +5 -0
  50. package/resources/meeting-sessions/index.mjs.map +1 -0
  51. package/resources/meeting-sessions/meeting-sessions.d.mts +580 -0
  52. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -0
  53. package/resources/meeting-sessions/meeting-sessions.d.ts +580 -0
  54. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -0
  55. package/resources/meeting-sessions/meeting-sessions.js +175 -0
  56. package/resources/meeting-sessions/meeting-sessions.js.map +1 -0
  57. package/resources/meeting-sessions/meeting-sessions.mjs +170 -0
  58. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -0
  59. package/resources/meeting-sessions.d.mts +2 -0
  60. package/resources/meeting-sessions.d.mts.map +1 -0
  61. package/resources/meeting-sessions.d.ts +2 -0
  62. package/resources/meeting-sessions.d.ts.map +1 -0
  63. package/resources/meeting-sessions.js +6 -0
  64. package/resources/meeting-sessions.js.map +1 -0
  65. package/resources/meeting-sessions.mjs +3 -0
  66. package/resources/meeting-sessions.mjs.map +1 -0
  67. package/resources/messaging-profiles/messaging-profiles.d.mts +1 -1
  68. package/resources/messaging-profiles/messaging-profiles.d.ts +1 -1
  69. package/resources/messaging-profiles/messaging-profiles.js +1 -1
  70. package/resources/messaging-profiles/messaging-profiles.mjs +1 -1
  71. package/resources/phone-numbers/voicemail.d.mts +132 -2
  72. package/resources/phone-numbers/voicemail.d.mts.map +1 -1
  73. package/resources/phone-numbers/voicemail.d.ts +132 -2
  74. package/resources/phone-numbers/voicemail.d.ts.map +1 -1
  75. package/resources/phone-numbers/voicemail.js +8 -2
  76. package/resources/phone-numbers/voicemail.js.map +1 -1
  77. package/resources/phone-numbers/voicemail.mjs +8 -2
  78. package/resources/phone-numbers/voicemail.mjs.map +1 -1
  79. package/resources/private-wireless-gateways.d.mts +1 -1
  80. package/resources/private-wireless-gateways.d.ts +1 -1
  81. package/resources/sim-cards/actions.d.mts +69 -3
  82. package/resources/sim-cards/actions.d.mts.map +1 -1
  83. package/resources/sim-cards/actions.d.ts +69 -3
  84. package/resources/sim-cards/actions.d.ts.map +1 -1
  85. package/resources/sim-cards/actions.js +38 -0
  86. package/resources/sim-cards/actions.js.map +1 -1
  87. package/resources/sim-cards/actions.mjs +38 -0
  88. package/resources/sim-cards/actions.mjs.map +1 -1
  89. package/resources/sim-cards/index.d.mts +1 -1
  90. package/resources/sim-cards/index.d.mts.map +1 -1
  91. package/resources/sim-cards/index.d.ts +1 -1
  92. package/resources/sim-cards/index.d.ts.map +1 -1
  93. package/resources/sim-cards/index.js.map +1 -1
  94. package/resources/sim-cards/index.mjs.map +1 -1
  95. package/resources/sim-cards/sim-cards.d.mts +2 -2
  96. package/resources/sim-cards/sim-cards.d.mts.map +1 -1
  97. package/resources/sim-cards/sim-cards.d.ts +2 -2
  98. package/resources/sim-cards/sim-cards.d.ts.map +1 -1
  99. package/resources/sim-cards/sim-cards.js.map +1 -1
  100. package/resources/sim-cards/sim-cards.mjs.map +1 -1
  101. package/resources/storage/index.d.mts +2 -1
  102. package/resources/storage/index.d.mts.map +1 -1
  103. package/resources/storage/index.d.ts +2 -1
  104. package/resources/storage/index.d.ts.map +1 -1
  105. package/resources/storage/index.js +3 -1
  106. package/resources/storage/index.js.map +1 -1
  107. package/resources/storage/index.mjs +1 -0
  108. package/resources/storage/index.mjs.map +1 -1
  109. package/resources/storage/kvs/index.d.mts +1 -1
  110. package/resources/storage/kvs/index.d.mts.map +1 -1
  111. package/resources/storage/kvs/index.d.ts +1 -1
  112. package/resources/storage/kvs/index.d.ts.map +1 -1
  113. package/resources/storage/kvs/index.js.map +1 -1
  114. package/resources/storage/kvs/index.mjs.map +1 -1
  115. package/resources/storage/kvs/kvs.d.mts +7 -1
  116. package/resources/storage/kvs/kvs.d.mts.map +1 -1
  117. package/resources/storage/kvs/kvs.d.ts +7 -1
  118. package/resources/storage/kvs/kvs.d.ts.map +1 -1
  119. package/resources/storage/kvs/kvs.js.map +1 -1
  120. package/resources/storage/kvs/kvs.mjs.map +1 -1
  121. package/resources/storage/sqldbs/actions.d.mts +84 -0
  122. package/resources/storage/sqldbs/actions.d.mts.map +1 -0
  123. package/resources/storage/sqldbs/actions.d.ts +84 -0
  124. package/resources/storage/sqldbs/actions.d.ts.map +1 -0
  125. package/resources/storage/sqldbs/actions.js +29 -0
  126. package/resources/storage/sqldbs/actions.js.map +1 -0
  127. package/resources/storage/sqldbs/actions.mjs +25 -0
  128. package/resources/storage/sqldbs/actions.mjs.map +1 -0
  129. package/resources/storage/sqldbs/index.d.mts +3 -0
  130. package/resources/storage/sqldbs/index.d.mts.map +1 -0
  131. package/resources/storage/sqldbs/index.d.ts +3 -0
  132. package/resources/storage/sqldbs/index.d.ts.map +1 -0
  133. package/resources/storage/sqldbs/index.js +9 -0
  134. package/resources/storage/sqldbs/index.js.map +1 -0
  135. package/resources/storage/sqldbs/index.mjs +4 -0
  136. package/resources/storage/sqldbs/index.mjs.map +1 -0
  137. package/resources/storage/sqldbs/sqldbs.d.mts +116 -0
  138. package/resources/storage/sqldbs/sqldbs.d.mts.map +1 -0
  139. package/resources/storage/sqldbs/sqldbs.d.ts +116 -0
  140. package/resources/storage/sqldbs/sqldbs.d.ts.map +1 -0
  141. package/resources/storage/sqldbs/sqldbs.js +94 -0
  142. package/resources/storage/sqldbs/sqldbs.js.map +1 -0
  143. package/resources/storage/sqldbs/sqldbs.mjs +89 -0
  144. package/resources/storage/sqldbs/sqldbs.mjs.map +1 -0
  145. package/resources/storage/sqldbs.d.mts +2 -0
  146. package/resources/storage/sqldbs.d.mts.map +1 -0
  147. package/resources/storage/sqldbs.d.ts +2 -0
  148. package/resources/storage/sqldbs.d.ts.map +1 -0
  149. package/resources/storage/sqldbs.js +6 -0
  150. package/resources/storage/sqldbs.js.map +1 -0
  151. package/resources/storage/sqldbs.mjs +3 -0
  152. package/resources/storage/sqldbs.mjs.map +1 -0
  153. package/resources/storage/storage.d.mts +6 -2
  154. package/resources/storage/storage.d.mts.map +1 -1
  155. package/resources/storage/storage.d.ts +6 -2
  156. package/resources/storage/storage.d.ts.map +1 -1
  157. package/resources/storage/storage.js +4 -0
  158. package/resources/storage/storage.js.map +1 -1
  159. package/resources/storage/storage.mjs +4 -0
  160. package/resources/storage/storage.mjs.map +1 -1
  161. package/resources/web-search/index.d.mts +3 -0
  162. package/resources/web-search/index.d.mts.map +1 -0
  163. package/resources/web-search/index.d.ts +3 -0
  164. package/resources/web-search/index.d.ts.map +1 -0
  165. package/resources/web-search/index.js +9 -0
  166. package/resources/web-search/index.js.map +1 -0
  167. package/resources/web-search/index.mjs +4 -0
  168. package/resources/web-search/index.mjs.map +1 -0
  169. package/resources/web-search/research.d.mts +148 -0
  170. package/resources/web-search/research.d.mts.map +1 -0
  171. package/resources/web-search/research.d.ts +148 -0
  172. package/resources/web-search/research.d.ts.map +1 -0
  173. package/resources/web-search/research.js +57 -0
  174. package/resources/web-search/research.js.map +1 -0
  175. package/resources/web-search/research.mjs +53 -0
  176. package/resources/web-search/research.mjs.map +1 -0
  177. package/resources/web-search/web-search.d.mts +204 -0
  178. package/resources/web-search/web-search.d.mts.map +1 -0
  179. package/resources/web-search/web-search.d.ts +204 -0
  180. package/resources/web-search/web-search.d.ts.map +1 -0
  181. package/resources/web-search/web-search.js +59 -0
  182. package/resources/web-search/web-search.js.map +1 -0
  183. package/resources/web-search/web-search.mjs +54 -0
  184. package/resources/web-search/web-search.mjs.map +1 -0
  185. package/resources/web-search.d.mts +2 -0
  186. package/resources/web-search.d.mts.map +1 -0
  187. package/resources/web-search.d.ts +2 -0
  188. package/resources/web-search.d.ts.map +1 -0
  189. package/resources/web-search.js +6 -0
  190. package/resources/web-search.js.map +1 -0
  191. package/resources/web-search.mjs +3 -0
  192. package/resources/web-search.mjs.map +1 -0
  193. package/resources/webhooks.d.mts +475 -3
  194. package/resources/webhooks.d.mts.map +1 -1
  195. package/resources/webhooks.d.ts +475 -3
  196. package/resources/webhooks.d.ts.map +1 -1
  197. package/src/client.ts +62 -0
  198. package/src/resources/calls/actions.ts +10 -8
  199. package/src/resources/calls/calls.ts +5 -5
  200. package/src/resources/index.ts +28 -0
  201. package/src/resources/meeting-sessions/actions.ts +108 -0
  202. package/src/resources/meeting-sessions/artifacts.ts +135 -0
  203. package/src/resources/meeting-sessions/index.ts +31 -0
  204. package/src/resources/meeting-sessions/meeting-sessions.ts +771 -0
  205. package/src/resources/meeting-sessions.ts +3 -0
  206. package/src/resources/messaging-profiles/messaging-profiles.ts +1 -1
  207. package/src/resources/phone-numbers/voicemail.ts +144 -2
  208. package/src/resources/private-wireless-gateways.ts +1 -1
  209. package/src/resources/sim-cards/actions.ts +93 -2
  210. package/src/resources/sim-cards/index.ts +3 -0
  211. package/src/resources/sim-cards/sim-cards.ts +6 -0
  212. package/src/resources/storage/index.ts +10 -0
  213. package/src/resources/storage/kvs/index.ts +1 -0
  214. package/src/resources/storage/kvs/kvs.ts +11 -0
  215. package/src/resources/storage/sqldbs/actions.ts +101 -0
  216. package/src/resources/storage/sqldbs/index.ts +12 -0
  217. package/src/resources/storage/sqldbs/sqldbs.ts +179 -0
  218. package/src/resources/storage/sqldbs.ts +3 -0
  219. package/src/resources/storage/storage.ts +24 -0
  220. package/src/resources/web-search/index.ts +17 -0
  221. package/src/resources/web-search/research.ts +180 -0
  222. package/src/resources/web-search/web-search.ts +266 -0
  223. package/src/resources/web-search.ts +3 -0
  224. package/src/resources/webhooks.ts +579 -0
  225. package/src/version.ts +1 -1
  226. package/version.d.mts +1 -1
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
  229. package/version.mjs +1 -1
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./sqldbs/index.js"), exports);
6
+ //# sourceMappingURL=sqldbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqldbs.js","sourceRoot":"","sources":["../../src/resources/storage/sqldbs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./sqldbs/index.mjs";
3
+ //# sourceMappingURL=sqldbs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqldbs.mjs","sourceRoot":"","sources":["../../src/resources/storage/sqldbs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
@@ -7,9 +7,11 @@ import * as UsageAPI from "./buckets/usage.mjs";
7
7
  import * as CloudfsAPI from "./cloudfs/cloudfs.mjs";
8
8
  import { CloudfCreateParams, CloudfListParams, CloudfListResponse, CloudfUpdateParams, Cloudfs, CloudfsFilesystemDetailResponseWrapper, CloudfsFilesystemResponseWrapper, CloudfsFilesystemStatus } from "./cloudfs/cloudfs.mjs";
9
9
  import * as KvsAPI from "./kvs/kvs.mjs";
10
- import { KvCreateParams, KvListParams, KvNamespace, KvNamespaceResponseWrapper, KvNamespacesDefaultFlatPagination, Kvs } from "./kvs/kvs.mjs";
10
+ import { EdgeComputePaginationMeta, KvCreateParams, KvListParams, KvNamespace, KvNamespaceResponseWrapper, KvNamespacesDefaultFlatPagination, Kvs } from "./kvs/kvs.mjs";
11
11
  import * as MigrationsAPI from "./migrations/migrations.mjs";
12
12
  import { MigrationCreateParams, MigrationCreateResponse, MigrationListResponse, MigrationParams, MigrationRetrieveResponse, Migrations } from "./migrations/migrations.mjs";
13
+ import * as SqldbsAPI from "./sqldbs/sqldbs.mjs";
14
+ import { SqlDatabase, SqlDatabaseResponseWrapper, SqlDatabasesDefaultFlatPagination, SqldbCreateParams, SqldbDeleteParams, SqldbListParams, Sqldbs } from "./sqldbs/sqldbs.mjs";
13
15
  import { APIPromise } from "../../core/api-promise.mjs";
14
16
  import { RequestOptions } from "../../internal/request-options.mjs";
15
17
  /**
@@ -21,6 +23,7 @@ export declare class Storage extends APIResource {
21
23
  migrations: MigrationsAPI.Migrations;
22
24
  kvs: KvsAPI.Kvs;
23
25
  cloudfs: CloudfsAPI.Cloudfs;
26
+ sqldbs: SqldbsAPI.Sqldbs;
24
27
  /**
25
28
  * List the external storage providers and regions supported as migration sources.
26
29
  *
@@ -53,7 +56,8 @@ export declare namespace Storage {
53
56
  export { Buckets as Buckets, type BucketCreatePresignedURLResponse as BucketCreatePresignedURLResponse, type BucketCreatePresignedURLParams as BucketCreatePresignedURLParams, };
54
57
  export { MigrationSources as MigrationSources, type MigrationSourceParams as MigrationSourceParams, type MigrationSourceCreateResponse as MigrationSourceCreateResponse, type MigrationSourceRetrieveResponse as MigrationSourceRetrieveResponse, type MigrationSourceListResponse as MigrationSourceListResponse, type MigrationSourceDeleteResponse as MigrationSourceDeleteResponse, type MigrationSourceCreateParams as MigrationSourceCreateParams, };
55
58
  export { Migrations as Migrations, type MigrationParams as MigrationParams, type MigrationCreateResponse as MigrationCreateResponse, type MigrationRetrieveResponse as MigrationRetrieveResponse, type MigrationListResponse as MigrationListResponse, type MigrationCreateParams as MigrationCreateParams, };
56
- export { Kvs as Kvs, type KvNamespace as KvNamespace, type KvNamespaceResponseWrapper as KvNamespaceResponseWrapper, type KvNamespacesDefaultFlatPagination as KvNamespacesDefaultFlatPagination, type KvListParams as KvListParams, type KvCreateParams as KvCreateParams, };
59
+ export { Kvs as Kvs, type EdgeComputePaginationMeta as EdgeComputePaginationMeta, type KvNamespace as KvNamespace, type KvNamespaceResponseWrapper as KvNamespaceResponseWrapper, type KvNamespacesDefaultFlatPagination as KvNamespacesDefaultFlatPagination, type KvListParams as KvListParams, type KvCreateParams as KvCreateParams, };
57
60
  export { Cloudfs as Cloudfs, type CloudfsFilesystemDetailResponseWrapper as CloudfsFilesystemDetailResponseWrapper, type CloudfsFilesystemResponseWrapper as CloudfsFilesystemResponseWrapper, type CloudfsFilesystemStatus as CloudfsFilesystemStatus, type CloudfListResponse as CloudfListResponse, type CloudfListParams as CloudfListParams, type CloudfCreateParams as CloudfCreateParams, type CloudfUpdateParams as CloudfUpdateParams, };
61
+ export { Sqldbs as Sqldbs, type SqlDatabase as SqlDatabase, type SqlDatabaseResponseWrapper as SqlDatabaseResponseWrapper, type SqlDatabasesDefaultFlatPagination as SqlDatabasesDefaultFlatPagination, type SqldbListParams as SqldbListParams, type SqldbCreateParams as SqldbCreateParams, type SqldbDeleteParams as SqldbDeleteParams, };
58
62
  }
59
63
  //# sourceMappingURL=storage.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.mts","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,+BAA+B,EAC/B,gBAAgB,EACjB,gCAA4B;AAC7B,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,OAAO,EAAE,8BAA0B;AAC9G,OAAO,KAAK,QAAQ,4BAAwB;AAC5C,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,EACP,sCAAsC,EACtC,gCAAgC,EAChC,uBAAuB,EACxB,8BAA0B;AAC3B,OAAO,KAAK,MAAM,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3E,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -7,9 +7,11 @@ import * as UsageAPI from "./buckets/usage.js";
7
7
  import * as CloudfsAPI from "./cloudfs/cloudfs.js";
8
8
  import { CloudfCreateParams, CloudfListParams, CloudfListResponse, CloudfUpdateParams, Cloudfs, CloudfsFilesystemDetailResponseWrapper, CloudfsFilesystemResponseWrapper, CloudfsFilesystemStatus } from "./cloudfs/cloudfs.js";
9
9
  import * as KvsAPI from "./kvs/kvs.js";
10
- import { KvCreateParams, KvListParams, KvNamespace, KvNamespaceResponseWrapper, KvNamespacesDefaultFlatPagination, Kvs } from "./kvs/kvs.js";
10
+ import { EdgeComputePaginationMeta, KvCreateParams, KvListParams, KvNamespace, KvNamespaceResponseWrapper, KvNamespacesDefaultFlatPagination, Kvs } from "./kvs/kvs.js";
11
11
  import * as MigrationsAPI from "./migrations/migrations.js";
12
12
  import { MigrationCreateParams, MigrationCreateResponse, MigrationListResponse, MigrationParams, MigrationRetrieveResponse, Migrations } from "./migrations/migrations.js";
13
+ import * as SqldbsAPI from "./sqldbs/sqldbs.js";
14
+ import { SqlDatabase, SqlDatabaseResponseWrapper, SqlDatabasesDefaultFlatPagination, SqldbCreateParams, SqldbDeleteParams, SqldbListParams, Sqldbs } from "./sqldbs/sqldbs.js";
13
15
  import { APIPromise } from "../../core/api-promise.js";
14
16
  import { RequestOptions } from "../../internal/request-options.js";
15
17
  /**
@@ -21,6 +23,7 @@ export declare class Storage extends APIResource {
21
23
  migrations: MigrationsAPI.Migrations;
22
24
  kvs: KvsAPI.Kvs;
23
25
  cloudfs: CloudfsAPI.Cloudfs;
26
+ sqldbs: SqldbsAPI.Sqldbs;
24
27
  /**
25
28
  * List the external storage providers and regions supported as migration sources.
26
29
  *
@@ -53,7 +56,8 @@ export declare namespace Storage {
53
56
  export { Buckets as Buckets, type BucketCreatePresignedURLResponse as BucketCreatePresignedURLResponse, type BucketCreatePresignedURLParams as BucketCreatePresignedURLParams, };
54
57
  export { MigrationSources as MigrationSources, type MigrationSourceParams as MigrationSourceParams, type MigrationSourceCreateResponse as MigrationSourceCreateResponse, type MigrationSourceRetrieveResponse as MigrationSourceRetrieveResponse, type MigrationSourceListResponse as MigrationSourceListResponse, type MigrationSourceDeleteResponse as MigrationSourceDeleteResponse, type MigrationSourceCreateParams as MigrationSourceCreateParams, };
55
58
  export { Migrations as Migrations, type MigrationParams as MigrationParams, type MigrationCreateResponse as MigrationCreateResponse, type MigrationRetrieveResponse as MigrationRetrieveResponse, type MigrationListResponse as MigrationListResponse, type MigrationCreateParams as MigrationCreateParams, };
56
- export { Kvs as Kvs, type KvNamespace as KvNamespace, type KvNamespaceResponseWrapper as KvNamespaceResponseWrapper, type KvNamespacesDefaultFlatPagination as KvNamespacesDefaultFlatPagination, type KvListParams as KvListParams, type KvCreateParams as KvCreateParams, };
59
+ export { Kvs as Kvs, type EdgeComputePaginationMeta as EdgeComputePaginationMeta, type KvNamespace as KvNamespace, type KvNamespaceResponseWrapper as KvNamespaceResponseWrapper, type KvNamespacesDefaultFlatPagination as KvNamespacesDefaultFlatPagination, type KvListParams as KvListParams, type KvCreateParams as KvCreateParams, };
57
60
  export { Cloudfs as Cloudfs, type CloudfsFilesystemDetailResponseWrapper as CloudfsFilesystemDetailResponseWrapper, type CloudfsFilesystemResponseWrapper as CloudfsFilesystemResponseWrapper, type CloudfsFilesystemStatus as CloudfsFilesystemStatus, type CloudfListResponse as CloudfListResponse, type CloudfListParams as CloudfListParams, type CloudfCreateParams as CloudfCreateParams, type CloudfUpdateParams as CloudfUpdateParams, };
61
+ export { Sqldbs as Sqldbs, type SqlDatabase as SqlDatabase, type SqlDatabaseResponseWrapper as SqlDatabaseResponseWrapper, type SqlDatabasesDefaultFlatPagination as SqlDatabasesDefaultFlatPagination, type SqldbListParams as SqldbListParams, type SqldbCreateParams as SqldbCreateParams, type SqldbDeleteParams as SqldbDeleteParams, };
58
62
  }
59
63
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,+BAA+B,EAC/B,gBAAgB,EACjB,+BAA4B;AAC7B,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,OAAO,EAAE,6BAA0B;AAC9G,OAAO,KAAK,QAAQ,2BAAwB;AAC5C,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,EACP,sCAAsC,EACtC,gCAAgC,EAChC,uBAAuB,EACxB,6BAA0B;AAC3B,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EACL,cAAc,EACd,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AK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -14,6 +14,8 @@ const KvsAPI = tslib_1.__importStar(require("./kvs/kvs.js"));
14
14
  const kvs_1 = require("./kvs/kvs.js");
15
15
  const MigrationsAPI = tslib_1.__importStar(require("./migrations/migrations.js"));
16
16
  const migrations_1 = require("./migrations/migrations.js");
17
+ const SqldbsAPI = tslib_1.__importStar(require("./sqldbs/sqldbs.js"));
18
+ const sqldbs_1 = require("./sqldbs/sqldbs.js");
17
19
  /**
18
20
  * Migrate data from an external provider into Telnyx Cloud Storage
19
21
  */
@@ -25,6 +27,7 @@ class Storage extends resource_1.APIResource {
25
27
  this.migrations = new MigrationsAPI.Migrations(this._client);
26
28
  this.kvs = new KvsAPI.Kvs(this._client);
27
29
  this.cloudfs = new CloudfsAPI.Cloudfs(this._client);
30
+ this.sqldbs = new SqldbsAPI.Sqldbs(this._client);
28
31
  }
29
32
  /**
30
33
  * List the external storage providers and regions supported as migration sources.
@@ -45,4 +48,5 @@ Storage.MigrationSources = migration_sources_1.MigrationSources;
45
48
  Storage.Migrations = migrations_1.Migrations;
46
49
  Storage.Kvs = kvs_1.Kvs;
47
50
  Storage.Cloudfs = cloudfs_1.Cloudfs;
51
+ Storage.Sqldbs = sqldbs_1.Sqldbs;
48
52
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,oFAA2D;AAC3D,8DAQ6B;AAC7B,yEAAgD;AAChD,kDAA8G;AAE9G,yEAAgD;AAChD,kDAS2B;AAC3B,6DAAoC;AACpC,sCAOmB;AACnB,kFAAyD;AACzD,2DAOiC;AAIjC;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBrE,CAAC;IAdC;;;;;;;;OAQG;IACH,2BAA2B,CACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvBD,0BAuBC;AAsBD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC5C,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC;AAChC,OAAO,CAAC,GAAG,GAAG,SAAG,CAAC;AAClB,OAAO,CA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GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -10,6 +10,8 @@ import * as KvsAPI from "./kvs/kvs.mjs";
10
10
  import { Kvs, } from "./kvs/kvs.mjs";
11
11
  import * as MigrationsAPI from "./migrations/migrations.mjs";
12
12
  import { Migrations, } from "./migrations/migrations.mjs";
13
+ import * as SqldbsAPI from "./sqldbs/sqldbs.mjs";
14
+ import { Sqldbs, } from "./sqldbs/sqldbs.mjs";
13
15
  /**
14
16
  * Migrate data from an external provider into Telnyx Cloud Storage
15
17
  */
@@ -21,6 +23,7 @@ export class Storage extends APIResource {
21
23
  this.migrations = new MigrationsAPI.Migrations(this._client);
22
24
  this.kvs = new KvsAPI.Kvs(this._client);
23
25
  this.cloudfs = new CloudfsAPI.Cloudfs(this._client);
26
+ this.sqldbs = new SqldbsAPI.Sqldbs(this._client);
24
27
  }
25
28
  /**
26
29
  * List the external storage providers and regions supported as migration sources.
@@ -40,4 +43,5 @@ Storage.MigrationSources = MigrationSources;
40
43
  Storage.Migrations = Migrations;
41
44
  Storage.Kvs = Kvs;
42
45
  Storage.Cloudfs = Cloudfs;
46
+ Storage.Sqldbs = Sqldbs;
43
47
  //# sourceMappingURL=storage.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.mjs","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EAOL,gBAAgB,GACjB,gCAA4B;AAC7B,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EAAoE,OAAO,EAAE,8BAA0B;AAE9G,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EAKL,OAAO,GAIR,8BAA0B;AAC3B,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAML,GAAG,GACJ,sBAAkB;AACnB,OAAO,KAAK,aAA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CreateResponse, type ResearchRetrieveResponse, type ResearchCreateParams, } from "./research.mjs";
2
+ export { WebSearch, type WebSearchResult, type WebSearchCreateResponse, type WebSearchContentsResponse, type WebSearchCreateParams, type WebSearchContentsParams, } from "./web-search.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/web-search/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B,uBAAmB;AACpB,OAAO,EACL,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,yBAAqB"}
@@ -0,0 +1,3 @@
1
+ export { Research, type ResearchCitation, type ResearchCreateResponse, type ResearchRetrieveResponse, type ResearchCreateParams, } from "./research.js";
2
+ export { WebSearch, type WebSearchResult, type WebSearchCreateResponse, type WebSearchContentsResponse, type WebSearchCreateParams, type WebSearchContentsParams, } from "./web-search.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/web-search/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B,sBAAmB;AACpB,OAAO,EACL,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,wBAAqB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebSearch = exports.Research = void 0;
5
+ var research_1 = require("./research.js");
6
+ Object.defineProperty(exports, "Research", { enumerable: true, get: function () { return research_1.Research; } });
7
+ var web_search_1 = require("./web-search.js");
8
+ Object.defineProperty(exports, "WebSearch", { enumerable: true, get: function () { return web_search_1.WebSearch; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/web-search/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,8CAOsB;AANpB,uGAAA,SAAS,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Research, } from "./research.mjs";
3
+ export { WebSearch, } from "./web-search.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/web-search/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,SAAS,GAMV,yBAAqB"}
@@ -0,0 +1,148 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as ResearchAPI from "./research.mjs";
3
+ import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ /**
6
+ * Deep research with citations and async task polling.
7
+ */
8
+ export declare class Research extends APIResource {
9
+ /**
10
+ * Starts a deep research task that runs multiple searches, reads sources, and
11
+ * synthesizes an answer with citations.
12
+ *
13
+ * ## Synchronous mode (default)
14
+ *
15
+ * When `background` is `false` or omitted, the request blocks until the research
16
+ * completes and returns the answer with citations. This can take up to 120 seconds
17
+ * depending on `research_effort`.
18
+ *
19
+ * ## Asynchronous mode
20
+ *
21
+ * When `background` is `true`, the request returns immediately with a `task_id`
22
+ * and `status: pending`. Poll `GET /web_search/research/{task_id}` to check when
23
+ * the research completes and retrieve the answer.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const research = await client.webSearch.research.create({
28
+ * query:
29
+ * 'Compare the performance of RAG vs fine-tuning for domain-specific QA',
30
+ * max_sources: 20,
31
+ * research_effort: 'standard',
32
+ * });
33
+ * ```
34
+ */
35
+ create(body: ResearchCreateParams, options?: RequestOptions): APIPromise<ResearchCreateResponse>;
36
+ /**
37
+ * Polls the status of a previously started asynchronous research task. When the
38
+ * status is `completed`, the response includes the answer and citations. When the
39
+ * status is `failed`, the response includes an error message.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const research = await client.webSearch.research.retrieve(
44
+ * 'bf3026a5-dd57-44dd-b922-200041be3a4b',
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(taskID: string, options?: RequestOptions): APIPromise<ResearchRetrieveResponse>;
49
+ }
50
+ export interface ResearchCitation {
51
+ /**
52
+ * Title of the source page.
53
+ */
54
+ title: string;
55
+ /**
56
+ * Source URL.
57
+ */
58
+ url: string;
59
+ /**
60
+ * Relevant excerpt from the source (if available).
61
+ */
62
+ snippet?: string;
63
+ }
64
+ export interface ResearchCreateResponse {
65
+ /**
66
+ * Synchronous research response (when `background` is false or unset).
67
+ */
68
+ data?: ResearchCreateResponse.ResearchResponseSync | ResearchCreateResponse.ResearchResponseAsync;
69
+ }
70
+ export declare namespace ResearchCreateResponse {
71
+ /**
72
+ * Synchronous research response (when `background` is false or unset).
73
+ */
74
+ interface ResearchResponseSync {
75
+ /**
76
+ * The synthesized research answer.
77
+ */
78
+ answer: string;
79
+ /**
80
+ * Sources cited in the answer.
81
+ */
82
+ citations?: Array<ResearchAPI.ResearchCitation>;
83
+ }
84
+ /**
85
+ * Asynchronous research response (when `background` is true).
86
+ */
87
+ interface ResearchResponseAsync {
88
+ /**
89
+ * Current status of the research task.
90
+ */
91
+ status: 'pending' | 'running' | 'completed' | 'failed';
92
+ /**
93
+ * Unique identifier for the research task. Use this to poll the status.
94
+ */
95
+ task_id: string;
96
+ }
97
+ }
98
+ export interface ResearchRetrieveResponse {
99
+ data?: ResearchRetrieveResponse.Data;
100
+ }
101
+ export declare namespace ResearchRetrieveResponse {
102
+ interface Data {
103
+ /**
104
+ * Current status of the research task.
105
+ */
106
+ status: 'pending' | 'running' | 'completed' | 'failed';
107
+ /**
108
+ * The research task identifier.
109
+ */
110
+ task_id: string;
111
+ /**
112
+ * The synthesized research answer (present when status is `completed`).
113
+ */
114
+ answer?: string;
115
+ /**
116
+ * Sources cited in the answer (present when status is `completed`).
117
+ */
118
+ citations?: Array<ResearchAPI.ResearchCitation>;
119
+ /**
120
+ * Always present in poll responses; `null` unless the task failed.
121
+ */
122
+ error?: string | null;
123
+ }
124
+ }
125
+ export interface ResearchCreateParams {
126
+ /**
127
+ * The research question or topic.
128
+ */
129
+ query: string;
130
+ /**
131
+ * When `true`, the research runs asynchronously. The response returns a `task_id`
132
+ * immediately instead of waiting for the result. Poll
133
+ * `GET /web_search/research/{task_id}` to check status.
134
+ */
135
+ background?: boolean;
136
+ /**
137
+ * Maximum number of sources to use.
138
+ */
139
+ max_sources?: number;
140
+ /**
141
+ * Research depth level. `lite` is fastest, `deep` is most thorough.
142
+ */
143
+ research_effort?: 'lite' | 'standard' | 'deep';
144
+ }
145
+ export declare namespace Research {
146
+ export { type ResearchCitation as ResearchCitation, type ResearchCreateResponse as ResearchCreateResponse, type ResearchRetrieveResponse as ResearchRetrieveResponse, type ResearchCreateParams as ResearchCreateParams, };
147
+ }
148
+ //# sourceMappingURL=research.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"research.d.mts","sourceRoot":"","sources":["../../src/resources/web-search/research.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QA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CAAC;QAEhB;;WAEG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEhD;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,148 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as ResearchAPI from "./research.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ /**
6
+ * Deep research with citations and async task polling.
7
+ */
8
+ export declare class Research extends APIResource {
9
+ /**
10
+ * Starts a deep research task that runs multiple searches, reads sources, and
11
+ * synthesizes an answer with citations.
12
+ *
13
+ * ## Synchronous mode (default)
14
+ *
15
+ * When `background` is `false` or omitted, the request blocks until the research
16
+ * completes and returns the answer with citations. This can take up to 120 seconds
17
+ * depending on `research_effort`.
18
+ *
19
+ * ## Asynchronous mode
20
+ *
21
+ * When `background` is `true`, the request returns immediately with a `task_id`
22
+ * and `status: pending`. Poll `GET /web_search/research/{task_id}` to check when
23
+ * the research completes and retrieve the answer.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const research = await client.webSearch.research.create({
28
+ * query:
29
+ * 'Compare the performance of RAG vs fine-tuning for domain-specific QA',
30
+ * max_sources: 20,
31
+ * research_effort: 'standard',
32
+ * });
33
+ * ```
34
+ */
35
+ create(body: ResearchCreateParams, options?: RequestOptions): APIPromise<ResearchCreateResponse>;
36
+ /**
37
+ * Polls the status of a previously started asynchronous research task. When the
38
+ * status is `completed`, the response includes the answer and citations. When the
39
+ * status is `failed`, the response includes an error message.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const research = await client.webSearch.research.retrieve(
44
+ * 'bf3026a5-dd57-44dd-b922-200041be3a4b',
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(taskID: string, options?: RequestOptions): APIPromise<ResearchRetrieveResponse>;
49
+ }
50
+ export interface ResearchCitation {
51
+ /**
52
+ * Title of the source page.
53
+ */
54
+ title: string;
55
+ /**
56
+ * Source URL.
57
+ */
58
+ url: string;
59
+ /**
60
+ * Relevant excerpt from the source (if available).
61
+ */
62
+ snippet?: string;
63
+ }
64
+ export interface ResearchCreateResponse {
65
+ /**
66
+ * Synchronous research response (when `background` is false or unset).
67
+ */
68
+ data?: ResearchCreateResponse.ResearchResponseSync | ResearchCreateResponse.ResearchResponseAsync;
69
+ }
70
+ export declare namespace ResearchCreateResponse {
71
+ /**
72
+ * Synchronous research response (when `background` is false or unset).
73
+ */
74
+ interface ResearchResponseSync {
75
+ /**
76
+ * The synthesized research answer.
77
+ */
78
+ answer: string;
79
+ /**
80
+ * Sources cited in the answer.
81
+ */
82
+ citations?: Array<ResearchAPI.ResearchCitation>;
83
+ }
84
+ /**
85
+ * Asynchronous research response (when `background` is true).
86
+ */
87
+ interface ResearchResponseAsync {
88
+ /**
89
+ * Current status of the research task.
90
+ */
91
+ status: 'pending' | 'running' | 'completed' | 'failed';
92
+ /**
93
+ * Unique identifier for the research task. Use this to poll the status.
94
+ */
95
+ task_id: string;
96
+ }
97
+ }
98
+ export interface ResearchRetrieveResponse {
99
+ data?: ResearchRetrieveResponse.Data;
100
+ }
101
+ export declare namespace ResearchRetrieveResponse {
102
+ interface Data {
103
+ /**
104
+ * Current status of the research task.
105
+ */
106
+ status: 'pending' | 'running' | 'completed' | 'failed';
107
+ /**
108
+ * The research task identifier.
109
+ */
110
+ task_id: string;
111
+ /**
112
+ * The synthesized research answer (present when status is `completed`).
113
+ */
114
+ answer?: string;
115
+ /**
116
+ * Sources cited in the answer (present when status is `completed`).
117
+ */
118
+ citations?: Array<ResearchAPI.ResearchCitation>;
119
+ /**
120
+ * Always present in poll responses; `null` unless the task failed.
121
+ */
122
+ error?: string | null;
123
+ }
124
+ }
125
+ export interface ResearchCreateParams {
126
+ /**
127
+ * The research question or topic.
128
+ */
129
+ query: string;
130
+ /**
131
+ * When `true`, the research runs asynchronously. The response returns a `task_id`
132
+ * immediately instead of waiting for the result. Poll
133
+ * `GET /web_search/research/{task_id}` to check status.
134
+ */
135
+ background?: boolean;
136
+ /**
137
+ * Maximum number of sources to use.
138
+ */
139
+ max_sources?: number;
140
+ /**
141
+ * Research depth level. `lite` is fastest, `deep` is most thorough.
142
+ */
143
+ research_effort?: 'lite' | 'standard' | 'deep';
144
+ }
145
+ export declare namespace Research {
146
+ export { type ResearchCitation as ResearchCitation, type ResearchCreateResponse as ResearchCreateResponse, type ResearchRetrieveResponse as ResearchRetrieveResponse, type ResearchCreateParams as ResearchCreateParams, };
147
+ }
148
+ //# sourceMappingURL=research.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../src/resources/web-search/research.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UA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G,IAAI,CAAC;KACvB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Research = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Deep research with citations and async task polling.
9
+ */
10
+ class Research extends resource_1.APIResource {
11
+ /**
12
+ * Starts a deep research task that runs multiple searches, reads sources, and
13
+ * synthesizes an answer with citations.
14
+ *
15
+ * ## Synchronous mode (default)
16
+ *
17
+ * When `background` is `false` or omitted, the request blocks until the research
18
+ * completes and returns the answer with citations. This can take up to 120 seconds
19
+ * depending on `research_effort`.
20
+ *
21
+ * ## Asynchronous mode
22
+ *
23
+ * When `background` is `true`, the request returns immediately with a `task_id`
24
+ * and `status: pending`. Poll `GET /web_search/research/{task_id}` to check when
25
+ * the research completes and retrieve the answer.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const research = await client.webSearch.research.create({
30
+ * query:
31
+ * 'Compare the performance of RAG vs fine-tuning for domain-specific QA',
32
+ * max_sources: 20,
33
+ * research_effort: 'standard',
34
+ * });
35
+ * ```
36
+ */
37
+ create(body, options) {
38
+ return this._client.post('/web_search/research', { body, ...options });
39
+ }
40
+ /**
41
+ * Polls the status of a previously started asynchronous research task. When the
42
+ * status is `completed`, the response includes the answer and citations. When the
43
+ * status is `failed`, the response includes an error message.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const research = await client.webSearch.research.retrieve(
48
+ * 'bf3026a5-dd57-44dd-b922-200041be3a4b',
49
+ * );
50
+ * ```
51
+ */
52
+ retrieve(taskID, options) {
53
+ return this._client.get((0, path_1.path) `/web_search/research/${taskID}`, options);
54
+ }
55
+ }
56
+ exports.Research = Research;
57
+ //# sourceMappingURL=research.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"research.js","sourceRoot":"","sources":["../../src/resources/web-search/research.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AA9CD,4BA8CC"}