camara-sdk 0.1.1

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 (703) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +201 -0
  3. package/README.md +355 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +294 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +294 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +611 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +607 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +85 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +79 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +138 -0
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +2 -0
  234. package/resource.d.ts.map +1 -0
  235. package/resource.js +6 -0
  236. package/resource.js.map +1 -0
  237. package/resource.mjs +2 -0
  238. package/resource.mjs.map +1 -0
  239. package/resources/callforwardingsignal.d.mts +94 -0
  240. package/resources/callforwardingsignal.d.mts.map +1 -0
  241. package/resources/callforwardingsignal.d.ts +94 -0
  242. package/resources/callforwardingsignal.d.ts.map +1 -0
  243. package/resources/callforwardingsignal.js +54 -0
  244. package/resources/callforwardingsignal.js.map +1 -0
  245. package/resources/callforwardingsignal.mjs +50 -0
  246. package/resources/callforwardingsignal.mjs.map +1 -0
  247. package/resources/connectednetworktype/connectednetworktype.d.mts +10 -0
  248. package/resources/connectednetworktype/connectednetworktype.d.mts.map +1 -0
  249. package/resources/connectednetworktype/connectednetworktype.d.ts +10 -0
  250. package/resources/connectednetworktype/connectednetworktype.d.ts.map +1 -0
  251. package/resources/connectednetworktype/connectednetworktype.js +17 -0
  252. package/resources/connectednetworktype/connectednetworktype.js.map +1 -0
  253. package/resources/connectednetworktype/connectednetworktype.mjs +12 -0
  254. package/resources/connectednetworktype/connectednetworktype.mjs.map +1 -0
  255. package/resources/connectednetworktype/index.d.mts +3 -0
  256. package/resources/connectednetworktype/index.d.mts.map +1 -0
  257. package/resources/connectednetworktype/index.d.ts +3 -0
  258. package/resources/connectednetworktype/index.d.ts.map +1 -0
  259. package/resources/connectednetworktype/index.js +9 -0
  260. package/resources/connectednetworktype/index.js.map +1 -0
  261. package/resources/connectednetworktype/index.mjs +4 -0
  262. package/resources/connectednetworktype/index.mjs.map +1 -0
  263. package/resources/connectednetworktype/subscriptions.d.mts +380 -0
  264. package/resources/connectednetworktype/subscriptions.d.mts.map +1 -0
  265. package/resources/connectednetworktype/subscriptions.d.ts +380 -0
  266. package/resources/connectednetworktype/subscriptions.d.ts.map +1 -0
  267. package/resources/connectednetworktype/subscriptions.js +114 -0
  268. package/resources/connectednetworktype/subscriptions.js.map +1 -0
  269. package/resources/connectednetworktype/subscriptions.mjs +110 -0
  270. package/resources/connectednetworktype/subscriptions.mjs.map +1 -0
  271. package/resources/connectednetworktype.d.mts +2 -0
  272. package/resources/connectednetworktype.d.mts.map +1 -0
  273. package/resources/connectednetworktype.d.ts +2 -0
  274. package/resources/connectednetworktype.d.ts.map +1 -0
  275. package/resources/connectednetworktype.js +6 -0
  276. package/resources/connectednetworktype.js.map +1 -0
  277. package/resources/connectednetworktype.mjs +3 -0
  278. package/resources/connectednetworktype.mjs.map +1 -0
  279. package/resources/connectivityinsights/connectivityinsights.d.mts +10 -0
  280. package/resources/connectivityinsights/connectivityinsights.d.mts.map +1 -0
  281. package/resources/connectivityinsights/connectivityinsights.d.ts +10 -0
  282. package/resources/connectivityinsights/connectivityinsights.d.ts.map +1 -0
  283. package/resources/connectivityinsights/connectivityinsights.js +17 -0
  284. package/resources/connectivityinsights/connectivityinsights.js.map +1 -0
  285. package/resources/connectivityinsights/connectivityinsights.mjs +12 -0
  286. package/resources/connectivityinsights/connectivityinsights.mjs.map +1 -0
  287. package/resources/connectivityinsights/index.d.mts +3 -0
  288. package/resources/connectivityinsights/index.d.mts.map +1 -0
  289. package/resources/connectivityinsights/index.d.ts +3 -0
  290. package/resources/connectivityinsights/index.d.ts.map +1 -0
  291. package/resources/connectivityinsights/index.js +9 -0
  292. package/resources/connectivityinsights/index.js.map +1 -0
  293. package/resources/connectivityinsights/index.mjs +4 -0
  294. package/resources/connectivityinsights/index.mjs.map +1 -0
  295. package/resources/connectivityinsights/subscriptions.d.mts +445 -0
  296. package/resources/connectivityinsights/subscriptions.d.mts.map +1 -0
  297. package/resources/connectivityinsights/subscriptions.d.ts +445 -0
  298. package/resources/connectivityinsights/subscriptions.d.ts.map +1 -0
  299. package/resources/connectivityinsights/subscriptions.js +106 -0
  300. package/resources/connectivityinsights/subscriptions.js.map +1 -0
  301. package/resources/connectivityinsights/subscriptions.mjs +102 -0
  302. package/resources/connectivityinsights/subscriptions.mjs.map +1 -0
  303. package/resources/connectivityinsights.d.mts +2 -0
  304. package/resources/connectivityinsights.d.mts.map +1 -0
  305. package/resources/connectivityinsights.d.ts +2 -0
  306. package/resources/connectivityinsights.d.ts.map +1 -0
  307. package/resources/connectivityinsights.js +6 -0
  308. package/resources/connectivityinsights.js.map +1 -0
  309. package/resources/connectivityinsights.mjs +3 -0
  310. package/resources/connectivityinsights.mjs.map +1 -0
  311. package/resources/customerinsights/customerinsights.d.mts +10 -0
  312. package/resources/customerinsights/customerinsights.d.mts.map +1 -0
  313. package/resources/customerinsights/customerinsights.d.ts +10 -0
  314. package/resources/customerinsights/customerinsights.d.ts.map +1 -0
  315. package/resources/customerinsights/customerinsights.js +17 -0
  316. package/resources/customerinsights/customerinsights.js.map +1 -0
  317. package/resources/customerinsights/customerinsights.mjs +12 -0
  318. package/resources/customerinsights/customerinsights.mjs.map +1 -0
  319. package/resources/customerinsights/index.d.mts +3 -0
  320. package/resources/customerinsights/index.d.mts.map +1 -0
  321. package/resources/customerinsights/index.d.ts +3 -0
  322. package/resources/customerinsights/index.d.ts.map +1 -0
  323. package/resources/customerinsights/index.js +9 -0
  324. package/resources/customerinsights/index.js.map +1 -0
  325. package/resources/customerinsights/index.mjs +4 -0
  326. package/resources/customerinsights/index.mjs.map +1 -0
  327. package/resources/customerinsights/scoring.d.mts +71 -0
  328. package/resources/customerinsights/scoring.d.mts.map +1 -0
  329. package/resources/customerinsights/scoring.d.ts +71 -0
  330. package/resources/customerinsights/scoring.d.ts.map +1 -0
  331. package/resources/customerinsights/scoring.js +34 -0
  332. package/resources/customerinsights/scoring.js.map +1 -0
  333. package/resources/customerinsights/scoring.mjs +30 -0
  334. package/resources/customerinsights/scoring.mjs.map +1 -0
  335. package/resources/customerinsights.d.mts +2 -0
  336. package/resources/customerinsights.d.mts.map +1 -0
  337. package/resources/customerinsights.d.ts +2 -0
  338. package/resources/customerinsights.d.ts.map +1 -0
  339. package/resources/customerinsights.js +6 -0
  340. package/resources/customerinsights.js.map +1 -0
  341. package/resources/customerinsights.mjs +3 -0
  342. package/resources/customerinsights.mjs.map +1 -0
  343. package/resources/deviceidentifier.d.mts +334 -0
  344. package/resources/deviceidentifier.d.mts.map +1 -0
  345. package/resources/deviceidentifier.d.ts +334 -0
  346. package/resources/deviceidentifier.d.ts.map +1 -0
  347. package/resources/deviceidentifier.js +70 -0
  348. package/resources/deviceidentifier.js.map +1 -0
  349. package/resources/deviceidentifier.mjs +66 -0
  350. package/resources/deviceidentifier.mjs.map +1 -0
  351. package/resources/devicelocation/devicelocation.d.mts +10 -0
  352. package/resources/devicelocation/devicelocation.d.mts.map +1 -0
  353. package/resources/devicelocation/devicelocation.d.ts +10 -0
  354. package/resources/devicelocation/devicelocation.d.ts.map +1 -0
  355. package/resources/devicelocation/devicelocation.js +17 -0
  356. package/resources/devicelocation/devicelocation.js.map +1 -0
  357. package/resources/devicelocation/devicelocation.mjs +12 -0
  358. package/resources/devicelocation/devicelocation.mjs.map +1 -0
  359. package/resources/devicelocation/index.d.mts +3 -0
  360. package/resources/devicelocation/index.d.mts.map +1 -0
  361. package/resources/devicelocation/index.d.ts +3 -0
  362. package/resources/devicelocation/index.d.ts.map +1 -0
  363. package/resources/devicelocation/index.js +9 -0
  364. package/resources/devicelocation/index.js.map +1 -0
  365. package/resources/devicelocation/index.mjs +4 -0
  366. package/resources/devicelocation/index.mjs.map +1 -0
  367. package/resources/devicelocation/subscriptions.d.mts +448 -0
  368. package/resources/devicelocation/subscriptions.d.mts.map +1 -0
  369. package/resources/devicelocation/subscriptions.d.ts +448 -0
  370. package/resources/devicelocation/subscriptions.d.ts.map +1 -0
  371. package/resources/devicelocation/subscriptions.js +115 -0
  372. package/resources/devicelocation/subscriptions.js.map +1 -0
  373. package/resources/devicelocation/subscriptions.mjs +111 -0
  374. package/resources/devicelocation/subscriptions.mjs.map +1 -0
  375. package/resources/devicelocation.d.mts +2 -0
  376. package/resources/devicelocation.d.mts.map +1 -0
  377. package/resources/devicelocation.d.ts +2 -0
  378. package/resources/devicelocation.d.ts.map +1 -0
  379. package/resources/devicelocation.js +6 -0
  380. package/resources/devicelocation.js.map +1 -0
  381. package/resources/devicelocation.mjs +3 -0
  382. package/resources/devicelocation.mjs.map +1 -0
  383. package/resources/devicereachabilitystatus/devicereachabilitystatus.d.mts +10 -0
  384. package/resources/devicereachabilitystatus/devicereachabilitystatus.d.mts.map +1 -0
  385. package/resources/devicereachabilitystatus/devicereachabilitystatus.d.ts +10 -0
  386. package/resources/devicereachabilitystatus/devicereachabilitystatus.d.ts.map +1 -0
  387. package/resources/devicereachabilitystatus/devicereachabilitystatus.js +17 -0
  388. package/resources/devicereachabilitystatus/devicereachabilitystatus.js.map +1 -0
  389. package/resources/devicereachabilitystatus/devicereachabilitystatus.mjs +12 -0
  390. package/resources/devicereachabilitystatus/devicereachabilitystatus.mjs.map +1 -0
  391. package/resources/devicereachabilitystatus/index.d.mts +3 -0
  392. package/resources/devicereachabilitystatus/index.d.mts.map +1 -0
  393. package/resources/devicereachabilitystatus/index.d.ts +3 -0
  394. package/resources/devicereachabilitystatus/index.d.ts.map +1 -0
  395. package/resources/devicereachabilitystatus/index.js +9 -0
  396. package/resources/devicereachabilitystatus/index.js.map +1 -0
  397. package/resources/devicereachabilitystatus/index.mjs +4 -0
  398. package/resources/devicereachabilitystatus/index.mjs.map +1 -0
  399. package/resources/devicereachabilitystatus/subscriptions.d.mts +387 -0
  400. package/resources/devicereachabilitystatus/subscriptions.d.mts.map +1 -0
  401. package/resources/devicereachabilitystatus/subscriptions.d.ts +387 -0
  402. package/resources/devicereachabilitystatus/subscriptions.d.ts.map +1 -0
  403. package/resources/devicereachabilitystatus/subscriptions.js +114 -0
  404. package/resources/devicereachabilitystatus/subscriptions.js.map +1 -0
  405. package/resources/devicereachabilitystatus/subscriptions.mjs +110 -0
  406. package/resources/devicereachabilitystatus/subscriptions.mjs.map +1 -0
  407. package/resources/devicereachabilitystatus.d.mts +2 -0
  408. package/resources/devicereachabilitystatus.d.mts.map +1 -0
  409. package/resources/devicereachabilitystatus.d.ts +2 -0
  410. package/resources/devicereachabilitystatus.d.ts.map +1 -0
  411. package/resources/devicereachabilitystatus.js +6 -0
  412. package/resources/devicereachabilitystatus.js.map +1 -0
  413. package/resources/devicereachabilitystatus.mjs +3 -0
  414. package/resources/devicereachabilitystatus.mjs.map +1 -0
  415. package/resources/deviceroamingstatus/deviceroamingstatus.d.mts +10 -0
  416. package/resources/deviceroamingstatus/deviceroamingstatus.d.mts.map +1 -0
  417. package/resources/deviceroamingstatus/deviceroamingstatus.d.ts +10 -0
  418. package/resources/deviceroamingstatus/deviceroamingstatus.d.ts.map +1 -0
  419. package/resources/deviceroamingstatus/deviceroamingstatus.js +17 -0
  420. package/resources/deviceroamingstatus/deviceroamingstatus.js.map +1 -0
  421. package/resources/deviceroamingstatus/deviceroamingstatus.mjs +12 -0
  422. package/resources/deviceroamingstatus/deviceroamingstatus.mjs.map +1 -0
  423. package/resources/deviceroamingstatus/index.d.mts +3 -0
  424. package/resources/deviceroamingstatus/index.d.mts.map +1 -0
  425. package/resources/deviceroamingstatus/index.d.ts +3 -0
  426. package/resources/deviceroamingstatus/index.d.ts.map +1 -0
  427. package/resources/deviceroamingstatus/index.js +9 -0
  428. package/resources/deviceroamingstatus/index.js.map +1 -0
  429. package/resources/deviceroamingstatus/index.mjs +4 -0
  430. package/resources/deviceroamingstatus/index.mjs.map +1 -0
  431. package/resources/deviceroamingstatus/subscriptions.d.mts +391 -0
  432. package/resources/deviceroamingstatus/subscriptions.d.mts.map +1 -0
  433. package/resources/deviceroamingstatus/subscriptions.d.ts +391 -0
  434. package/resources/deviceroamingstatus/subscriptions.d.ts.map +1 -0
  435. package/resources/deviceroamingstatus/subscriptions.js +113 -0
  436. package/resources/deviceroamingstatus/subscriptions.js.map +1 -0
  437. package/resources/deviceroamingstatus/subscriptions.mjs +109 -0
  438. package/resources/deviceroamingstatus/subscriptions.mjs.map +1 -0
  439. package/resources/deviceroamingstatus.d.mts +2 -0
  440. package/resources/deviceroamingstatus.d.mts.map +1 -0
  441. package/resources/deviceroamingstatus.d.ts +2 -0
  442. package/resources/deviceroamingstatus.d.ts.map +1 -0
  443. package/resources/deviceroamingstatus.js +6 -0
  444. package/resources/deviceroamingstatus.js.map +1 -0
  445. package/resources/deviceroamingstatus.mjs +3 -0
  446. package/resources/deviceroamingstatus.mjs.map +1 -0
  447. package/resources/deviceswap.d.mts +81 -0
  448. package/resources/deviceswap.d.mts.map +1 -0
  449. package/resources/deviceswap.d.ts +81 -0
  450. package/resources/deviceswap.d.ts.map +1 -0
  451. package/resources/deviceswap.js +51 -0
  452. package/resources/deviceswap.js.map +1 -0
  453. package/resources/deviceswap.mjs +47 -0
  454. package/resources/deviceswap.mjs.map +1 -0
  455. package/resources/index.d.mts +21 -0
  456. package/resources/index.d.mts.map +1 -0
  457. package/resources/index.d.ts +21 -0
  458. package/resources/index.d.ts.map +1 -0
  459. package/resources/index.js +45 -0
  460. package/resources/index.js.map +1 -0
  461. package/resources/index.mjs +22 -0
  462. package/resources/index.mjs.map +1 -0
  463. package/resources/knowyourcustomerageverification.d.mts +168 -0
  464. package/resources/knowyourcustomerageverification.d.mts.map +1 -0
  465. package/resources/knowyourcustomerageverification.d.ts +168 -0
  466. package/resources/knowyourcustomerageverification.d.ts.map +1 -0
  467. package/resources/knowyourcustomerageverification.js +67 -0
  468. package/resources/knowyourcustomerageverification.js.map +1 -0
  469. package/resources/knowyourcustomerageverification.mjs +63 -0
  470. package/resources/knowyourcustomerageverification.mjs.map +1 -0
  471. package/resources/knowyourcustomerfill-in.d.mts +165 -0
  472. package/resources/knowyourcustomerfill-in.d.mts.map +1 -0
  473. package/resources/knowyourcustomerfill-in.d.ts +165 -0
  474. package/resources/knowyourcustomerfill-in.d.ts.map +1 -0
  475. package/resources/knowyourcustomerfill-in.js +33 -0
  476. package/resources/knowyourcustomerfill-in.js.map +1 -0
  477. package/resources/knowyourcustomerfill-in.mjs +29 -0
  478. package/resources/knowyourcustomerfill-in.mjs.map +1 -0
  479. package/resources/knowyourcustomermatch.d.mts +492 -0
  480. package/resources/knowyourcustomermatch.d.mts.map +1 -0
  481. package/resources/knowyourcustomermatch.d.ts +492 -0
  482. package/resources/knowyourcustomermatch.d.ts.map +1 -0
  483. package/resources/knowyourcustomermatch.js +85 -0
  484. package/resources/knowyourcustomermatch.js.map +1 -0
  485. package/resources/knowyourcustomermatch.mjs +81 -0
  486. package/resources/knowyourcustomermatch.mjs.map +1 -0
  487. package/resources/numberrecycling.d.mts +47 -0
  488. package/resources/numberrecycling.d.mts.map +1 -0
  489. package/resources/numberrecycling.d.ts +47 -0
  490. package/resources/numberrecycling.d.ts.map +1 -0
  491. package/resources/numberrecycling.js +32 -0
  492. package/resources/numberrecycling.js.map +1 -0
  493. package/resources/numberrecycling.mjs +28 -0
  494. package/resources/numberrecycling.mjs.map +1 -0
  495. package/resources/otpvalidation.d.mts +77 -0
  496. package/resources/otpvalidation.d.mts.map +1 -0
  497. package/resources/otpvalidation.d.ts +77 -0
  498. package/resources/otpvalidation.d.ts.map +1 -0
  499. package/resources/otpvalidation.js +56 -0
  500. package/resources/otpvalidation.js.map +1 -0
  501. package/resources/otpvalidation.mjs +52 -0
  502. package/resources/otpvalidation.mjs.map +1 -0
  503. package/resources/populationdensitydata.d.mts +180 -0
  504. package/resources/populationdensitydata.d.mts.map +1 -0
  505. package/resources/populationdensitydata.d.ts +180 -0
  506. package/resources/populationdensitydata.d.ts.map +1 -0
  507. package/resources/populationdensitydata.js +47 -0
  508. package/resources/populationdensitydata.js.map +1 -0
  509. package/resources/populationdensitydata.mjs +43 -0
  510. package/resources/populationdensitydata.mjs.map +1 -0
  511. package/resources/qualityondemand.d.mts +406 -0
  512. package/resources/qualityondemand.d.mts.map +1 -0
  513. package/resources/qualityondemand.d.ts +406 -0
  514. package/resources/qualityondemand.d.ts.map +1 -0
  515. package/resources/qualityondemand.js +73 -0
  516. package/resources/qualityondemand.js.map +1 -0
  517. package/resources/qualityondemand.mjs +69 -0
  518. package/resources/qualityondemand.mjs.map +1 -0
  519. package/resources/regiondevicecount.d.mts +178 -0
  520. package/resources/regiondevicecount.d.mts.map +1 -0
  521. package/resources/regiondevicecount.d.ts +178 -0
  522. package/resources/regiondevicecount.d.ts.map +1 -0
  523. package/resources/regiondevicecount.js +57 -0
  524. package/resources/regiondevicecount.js.map +1 -0
  525. package/resources/regiondevicecount.mjs +53 -0
  526. package/resources/regiondevicecount.mjs.map +1 -0
  527. package/resources/simswap/index.d.mts +3 -0
  528. package/resources/simswap/index.d.mts.map +1 -0
  529. package/resources/simswap/index.d.ts +3 -0
  530. package/resources/simswap/index.d.ts.map +1 -0
  531. package/resources/simswap/index.js +9 -0
  532. package/resources/simswap/index.js.map +1 -0
  533. package/resources/simswap/index.mjs +4 -0
  534. package/resources/simswap/index.mjs.map +1 -0
  535. package/resources/simswap/simswap.d.mts +10 -0
  536. package/resources/simswap/simswap.d.mts.map +1 -0
  537. package/resources/simswap/simswap.d.ts +10 -0
  538. package/resources/simswap/simswap.d.ts.map +1 -0
  539. package/resources/simswap/simswap.js +17 -0
  540. package/resources/simswap/simswap.js.map +1 -0
  541. package/resources/simswap/simswap.mjs +12 -0
  542. package/resources/simswap/simswap.mjs.map +1 -0
  543. package/resources/simswap/subscriptions.d.mts +264 -0
  544. package/resources/simswap/subscriptions.d.mts.map +1 -0
  545. package/resources/simswap/subscriptions.d.ts +264 -0
  546. package/resources/simswap/subscriptions.d.ts.map +1 -0
  547. package/resources/simswap/subscriptions.js +109 -0
  548. package/resources/simswap/subscriptions.js.map +1 -0
  549. package/resources/simswap/subscriptions.mjs +105 -0
  550. package/resources/simswap/subscriptions.mjs.map +1 -0
  551. package/resources/simswap.d.mts +2 -0
  552. package/resources/simswap.d.mts.map +1 -0
  553. package/resources/simswap.d.ts +2 -0
  554. package/resources/simswap.d.ts.map +1 -0
  555. package/resources/simswap.js +6 -0
  556. package/resources/simswap.js.map +1 -0
  557. package/resources/simswap.mjs +3 -0
  558. package/resources/simswap.mjs.map +1 -0
  559. package/resources/tenure.d.mts +59 -0
  560. package/resources/tenure.d.mts.map +1 -0
  561. package/resources/tenure.d.ts +59 -0
  562. package/resources/tenure.d.ts.map +1 -0
  563. package/resources/tenure.js +33 -0
  564. package/resources/tenure.js.map +1 -0
  565. package/resources/tenure.mjs +29 -0
  566. package/resources/tenure.mjs.map +1 -0
  567. package/resources/webrtc/index.d.mts +3 -0
  568. package/resources/webrtc/index.d.mts.map +1 -0
  569. package/resources/webrtc/index.d.ts +3 -0
  570. package/resources/webrtc/index.d.ts.map +1 -0
  571. package/resources/webrtc/index.js +9 -0
  572. package/resources/webrtc/index.js.map +1 -0
  573. package/resources/webrtc/index.mjs +4 -0
  574. package/resources/webrtc/index.mjs.map +1 -0
  575. package/resources/webrtc/sessions.d.mts +358 -0
  576. package/resources/webrtc/sessions.d.mts.map +1 -0
  577. package/resources/webrtc/sessions.d.ts +358 -0
  578. package/resources/webrtc/sessions.d.ts.map +1 -0
  579. package/resources/webrtc/sessions.js +115 -0
  580. package/resources/webrtc/sessions.js.map +1 -0
  581. package/resources/webrtc/sessions.mjs +111 -0
  582. package/resources/webrtc/sessions.mjs.map +1 -0
  583. package/resources/webrtc/webrtc.d.mts +10 -0
  584. package/resources/webrtc/webrtc.d.mts.map +1 -0
  585. package/resources/webrtc/webrtc.d.ts +10 -0
  586. package/resources/webrtc/webrtc.d.ts.map +1 -0
  587. package/resources/webrtc/webrtc.js +17 -0
  588. package/resources/webrtc/webrtc.js.map +1 -0
  589. package/resources/webrtc/webrtc.mjs +12 -0
  590. package/resources/webrtc/webrtc.mjs.map +1 -0
  591. package/resources/webrtc.d.mts +2 -0
  592. package/resources/webrtc.d.mts.map +1 -0
  593. package/resources/webrtc.d.ts +2 -0
  594. package/resources/webrtc.d.ts.map +1 -0
  595. package/resources/webrtc.js +6 -0
  596. package/resources/webrtc.js.map +1 -0
  597. package/resources/webrtc.mjs +3 -0
  598. package/resources/webrtc.mjs.map +1 -0
  599. package/resources.d.mts +2 -0
  600. package/resources.d.mts.map +1 -0
  601. package/resources.d.ts +2 -0
  602. package/resources.d.ts.map +1 -0
  603. package/resources.js +5 -0
  604. package/resources.js.map +1 -0
  605. package/resources.mjs +2 -0
  606. package/resources.mjs.map +1 -0
  607. package/src/api-promise.ts +2 -0
  608. package/src/client.ts +1146 -0
  609. package/src/core/README.md +3 -0
  610. package/src/core/api-promise.ts +92 -0
  611. package/src/core/error.ts +130 -0
  612. package/src/core/resource.ts +11 -0
  613. package/src/core/uploads.ts +2 -0
  614. package/src/error.ts +2 -0
  615. package/src/index.ts +22 -0
  616. package/src/internal/README.md +3 -0
  617. package/src/internal/builtin-types.ts +93 -0
  618. package/src/internal/detect-platform.ts +196 -0
  619. package/src/internal/errors.ts +33 -0
  620. package/src/internal/headers.ts +97 -0
  621. package/src/internal/parse.ts +50 -0
  622. package/src/internal/request-options.ts +91 -0
  623. package/src/internal/shim-types.ts +26 -0
  624. package/src/internal/shims.ts +107 -0
  625. package/src/internal/to-file.ts +154 -0
  626. package/src/internal/types.ts +95 -0
  627. package/src/internal/uploads.ts +187 -0
  628. package/src/internal/utils/base64.ts +40 -0
  629. package/src/internal/utils/bytes.ts +32 -0
  630. package/src/internal/utils/env.ts +18 -0
  631. package/src/internal/utils/log.ts +126 -0
  632. package/src/internal/utils/path.ts +88 -0
  633. package/src/internal/utils/sleep.ts +3 -0
  634. package/src/internal/utils/uuid.ts +17 -0
  635. package/src/internal/utils/values.ts +105 -0
  636. package/src/internal/utils.ts +8 -0
  637. package/src/lib/.keep +4 -0
  638. package/src/resource.ts +2 -0
  639. package/src/resources/callforwardingsignal.ts +140 -0
  640. package/src/resources/connectednetworktype/connectednetworktype.ts +39 -0
  641. package/src/resources/connectednetworktype/index.ts +16 -0
  642. package/src/resources/connectednetworktype/subscriptions.ts +485 -0
  643. package/src/resources/connectednetworktype.ts +3 -0
  644. package/src/resources/connectivityinsights/connectivityinsights.ts +39 -0
  645. package/src/resources/connectivityinsights/index.ts +16 -0
  646. package/src/resources/connectivityinsights/subscriptions.ts +556 -0
  647. package/src/resources/connectivityinsights.ts +3 -0
  648. package/src/resources/customerinsights/customerinsights.ts +19 -0
  649. package/src/resources/customerinsights/index.ts +4 -0
  650. package/src/resources/customerinsights/scoring.ts +94 -0
  651. package/src/resources/customerinsights.ts +3 -0
  652. package/src/resources/deviceidentifier.ts +418 -0
  653. package/src/resources/devicelocation/devicelocation.ts +43 -0
  654. package/src/resources/devicelocation/index.ts +18 -0
  655. package/src/resources/devicelocation/subscriptions.ts +558 -0
  656. package/src/resources/devicelocation.ts +3 -0
  657. package/src/resources/devicereachabilitystatus/devicereachabilitystatus.ts +39 -0
  658. package/src/resources/devicereachabilitystatus/index.ts +16 -0
  659. package/src/resources/devicereachabilitystatus/subscriptions.ts +494 -0
  660. package/src/resources/devicereachabilitystatus.ts +3 -0
  661. package/src/resources/deviceroamingstatus/deviceroamingstatus.ts +39 -0
  662. package/src/resources/deviceroamingstatus/index.ts +16 -0
  663. package/src/resources/deviceroamingstatus/subscriptions.ts +499 -0
  664. package/src/resources/deviceroamingstatus.ts +3 -0
  665. package/src/resources/deviceswap.ts +122 -0
  666. package/src/resources/index.ts +85 -0
  667. package/src/resources/knowyourcustomerageverification.ts +206 -0
  668. package/src/resources/knowyourcustomerfill-in.ts +219 -0
  669. package/src/resources/knowyourcustomermatch.ts +585 -0
  670. package/src/resources/numberrecycling.ts +71 -0
  671. package/src/resources/otpvalidation.ts +116 -0
  672. package/src/resources/populationdensitydata.ts +217 -0
  673. package/src/resources/qualityondemand.ts +493 -0
  674. package/src/resources/regiondevicecount.ts +216 -0
  675. package/src/resources/simswap/index.ts +16 -0
  676. package/src/resources/simswap/simswap.ts +39 -0
  677. package/src/resources/simswap/subscriptions.ts +357 -0
  678. package/src/resources/simswap.ts +3 -0
  679. package/src/resources/tenure.ts +78 -0
  680. package/src/resources/webrtc/index.ts +12 -0
  681. package/src/resources/webrtc/sessions.ts +519 -0
  682. package/src/resources/webrtc/webrtc.ts +31 -0
  683. package/src/resources/webrtc.ts +3 -0
  684. package/src/resources.ts +1 -0
  685. package/src/tsconfig.json +11 -0
  686. package/src/uploads.ts +2 -0
  687. package/src/version.ts +1 -0
  688. package/uploads.d.mts +2 -0
  689. package/uploads.d.mts.map +1 -0
  690. package/uploads.d.ts +2 -0
  691. package/uploads.d.ts.map +1 -0
  692. package/uploads.js +6 -0
  693. package/uploads.js.map +1 -0
  694. package/uploads.mjs +2 -0
  695. package/uploads.mjs.map +1 -0
  696. package/version.d.mts +2 -0
  697. package/version.d.mts.map +1 -0
  698. package/version.d.ts +2 -0
  699. package/version.d.ts.map +1 -0
  700. package/version.js +5 -0
  701. package/version.js.map +1 -0
  702. package/version.mjs +2 -0
  703. package/version.mjs.map +1 -0
package/src/client.ts ADDED
@@ -0,0 +1,1146 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
4
+ import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types';
5
+ import { uuid4 } from './internal/utils/uuid';
6
+ import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values';
7
+ import { sleep } from './internal/utils/sleep';
8
+ export type { Logger, LogLevel } from './internal/utils/log';
9
+ import { castToError, isAbortError } from './internal/errors';
10
+ import type { APIResponseProps } from './internal/parse';
11
+ import { getPlatformHeaders } from './internal/detect-platform';
12
+ import * as Shims from './internal/shims';
13
+ import * as Opts from './internal/request-options';
14
+ import { VERSION } from './version';
15
+ import * as Errors from './core/error';
16
+ import * as Uploads from './core/uploads';
17
+ import * as API from './resources/index';
18
+ import { APIPromise } from './core/api-promise';
19
+ import {
20
+ CallForwardingSignal,
21
+ Callforwardingsignal,
22
+ CallforwardingsignalCheckActiveForwardingsParams,
23
+ CallforwardingsignalCheckActiveForwardingsResponse,
24
+ CallforwardingsignalCheckUnconditionalForwardingParams,
25
+ CallforwardingsignalCheckUnconditionalForwardingResponse,
26
+ } from './resources/callforwardingsignal';
27
+ import {
28
+ DeviceIdentifierDevice,
29
+ DeviceIdentifierDeviceIpv4Addr,
30
+ DeviceIdentifierRequestBody,
31
+ Deviceidentifier,
32
+ DeviceidentifierRetrieveIdentifierParams,
33
+ DeviceidentifierRetrieveIdentifierResponse,
34
+ DeviceidentifierRetrievePpidParams,
35
+ DeviceidentifierRetrievePpidResponse,
36
+ DeviceidentifierRetrieveTypeParams,
37
+ DeviceidentifierRetrieveTypeResponse,
38
+ } from './resources/deviceidentifier';
39
+ import {
40
+ Deviceswap,
41
+ DeviceswapCheckParams,
42
+ DeviceswapCheckResponse,
43
+ DeviceswapRetrieveDateParams,
44
+ DeviceswapRetrieveDateResponse,
45
+ } from './resources/deviceswap';
46
+ import {
47
+ Knowyourcustomerageverification,
48
+ KnowyourcustomerageverificationVerifyParams,
49
+ KnowyourcustomerageverificationVerifyResponse,
50
+ } from './resources/knowyourcustomerageverification';
51
+ import {
52
+ KnowyourcustomerfillIn,
53
+ KnowyourcustomerfillInCreateParams,
54
+ KnowyourcustomerfillInCreateResponse,
55
+ } from './resources/knowyourcustomerfill-in';
56
+ import {
57
+ Knowyourcustomermatch,
58
+ KnowyourcustomermatchMatchParams,
59
+ KnowyourcustomermatchMatchResponse,
60
+ MatchResult,
61
+ } from './resources/knowyourcustomermatch';
62
+ import {
63
+ Numberrecycling,
64
+ NumberrecyclingCheckSubscriberChangeParams,
65
+ NumberrecyclingCheckSubscriberChangeResponse,
66
+ } from './resources/numberrecycling';
67
+ import {
68
+ Otpvalidation,
69
+ OtpvalidationSendCodeParams,
70
+ OtpvalidationSendCodeResponse,
71
+ OtpvalidationValidateCodeParams,
72
+ } from './resources/otpvalidation';
73
+ import {
74
+ Populationdensitydata,
75
+ PopulationdensitydataRetrieveParams,
76
+ PopulationdensitydataRetrieveResponse,
77
+ } from './resources/populationdensitydata';
78
+ import {
79
+ Duration,
80
+ QosProfile,
81
+ QosProfileStatus,
82
+ Qualityondemand,
83
+ QualityondemandRetrieveQosProfileParams,
84
+ QualityondemandRetrieveQosProfilesParams,
85
+ QualityondemandRetrieveQosProfilesResponse,
86
+ Rate,
87
+ } from './resources/qualityondemand';
88
+ import {
89
+ Regiondevicecount,
90
+ RegiondevicecountGetCountParams,
91
+ RegiondevicecountGetCountResponse,
92
+ } from './resources/regiondevicecount';
93
+ import { Tenure, TenureVerifyParams, TenureVerifyResponse } from './resources/tenure';
94
+ import { Connectednetworktype } from './resources/connectednetworktype/connectednetworktype';
95
+ import { Connectivityinsights } from './resources/connectivityinsights/connectivityinsights';
96
+ import { Customerinsights } from './resources/customerinsights/customerinsights';
97
+ import { Devicelocation } from './resources/devicelocation/devicelocation';
98
+ import { Devicereachabilitystatus } from './resources/devicereachabilitystatus/devicereachabilitystatus';
99
+ import { Deviceroamingstatus } from './resources/deviceroamingstatus/deviceroamingstatus';
100
+ import { Simswap } from './resources/simswap/simswap';
101
+ import { Webrtc } from './resources/webrtc/webrtc';
102
+ import { type Fetch } from './internal/builtin-types';
103
+ import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
104
+ import { FinalRequestOptions, RequestOptions } from './internal/request-options';
105
+ import { readEnv } from './internal/utils/env';
106
+ import {
107
+ type LogLevel,
108
+ type Logger,
109
+ formatRequestDetails,
110
+ loggerFor,
111
+ parseLogLevel,
112
+ } from './internal/utils/log';
113
+ import { isEmptyObj } from './internal/utils/values';
114
+
115
+ export interface ClientOptions {
116
+ /**
117
+ * Defaults to process.env['CAMARA_DEVICE_LOCATION_NOTIFICATIONS_API_KEY'].
118
+ */
119
+ deviceLocationNotificationsAPIKey?: string | undefined;
120
+
121
+ /**
122
+ * Defaults to process.env['CAMARA_NOTIFICATIONS_API_KEY'].
123
+ */
124
+ notificationsAPIKey?: string | undefined;
125
+
126
+ /**
127
+ * Bearer authentication for notifications
128
+ */
129
+ populationDensityDataNotificationsAPIKey?: string | undefined;
130
+
131
+ /**
132
+ * Bearer authentication for notifications
133
+ */
134
+ regionDeviceCountNotificationsAPIKey?: string | undefined;
135
+
136
+ /**
137
+ * Bearer authorization for notifications
138
+ */
139
+ connectivityInsightsNotificationsAPIKey?: string | undefined;
140
+
141
+ /**
142
+ * Defaults to process.env['CAMARA_SIM_SWAP_NOTIFICATIONS_API_KEY'].
143
+ */
144
+ simSwapNotificationsAPIKey?: string | undefined;
145
+
146
+ /**
147
+ * Defaults to process.env['CAMARA_DEVICE_ROAMING_STATUS_NOTIFICATIONS_API_KEY'].
148
+ */
149
+ deviceRoamingStatusNotificationsAPIKey?: string | undefined;
150
+
151
+ /**
152
+ * Defaults to process.env['CAMARA_DEVICE_REACHABILITY_STATUS_NOTIFICATIONS_API_KEY'].
153
+ */
154
+ deviceReachabilityStatusNotificationsAPIKey?: string | undefined;
155
+
156
+ /**
157
+ * Defaults to process.env['CAMARA_CONNECTED_NETWORK_TYPE_NOTIFICATIONS_API_KEY'].
158
+ */
159
+ connectedNetworkTypeNotificationsAPIKey?: string | undefined;
160
+
161
+ /**
162
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
163
+ *
164
+ * Defaults to process.env['CAMARA_BASE_URL'].
165
+ */
166
+ baseURL?: string | null | undefined;
167
+
168
+ /**
169
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
170
+ * from the server before timing out a single request.
171
+ *
172
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
173
+ * much longer than this timeout before the promise succeeds or fails.
174
+ *
175
+ * @unit milliseconds
176
+ */
177
+ timeout?: number | undefined;
178
+ /**
179
+ * Additional `RequestInit` options to be passed to `fetch` calls.
180
+ * Properties will be overridden by per-request `fetchOptions`.
181
+ */
182
+ fetchOptions?: MergedRequestInit | undefined;
183
+
184
+ /**
185
+ * Specify a custom `fetch` function implementation.
186
+ *
187
+ * If not provided, we expect that `fetch` is defined globally.
188
+ */
189
+ fetch?: Fetch | undefined;
190
+
191
+ /**
192
+ * The maximum number of times that the client will retry a request in case of a
193
+ * temporary failure, like a network error or a 5XX error from the server.
194
+ *
195
+ * @default 2
196
+ */
197
+ maxRetries?: number | undefined;
198
+
199
+ /**
200
+ * Default headers to include with every request to the API.
201
+ *
202
+ * These can be removed in individual requests by explicitly setting the
203
+ * header to `null` in request options.
204
+ */
205
+ defaultHeaders?: HeadersLike | undefined;
206
+
207
+ /**
208
+ * Default query parameters to include with every request to the API.
209
+ *
210
+ * These can be removed in individual requests by explicitly setting the
211
+ * param to `undefined` in request options.
212
+ */
213
+ defaultQuery?: Record<string, string | undefined> | undefined;
214
+
215
+ /**
216
+ * Set the log level.
217
+ *
218
+ * Defaults to process.env['CAMARA_LOG'] or 'warn' if it isn't set.
219
+ */
220
+ logLevel?: LogLevel | undefined;
221
+
222
+ /**
223
+ * Set the logger.
224
+ *
225
+ * Defaults to globalThis.console.
226
+ */
227
+ logger?: Logger | undefined;
228
+ }
229
+
230
+ /**
231
+ * API Client for interfacing with the Camara API.
232
+ */
233
+ export class Camara {
234
+ deviceLocationNotificationsAPIKey: string;
235
+ notificationsAPIKey: string;
236
+ populationDensityDataNotificationsAPIKey: string;
237
+ regionDeviceCountNotificationsAPIKey: string;
238
+ connectivityInsightsNotificationsAPIKey: string;
239
+ simSwapNotificationsAPIKey: string;
240
+ deviceRoamingStatusNotificationsAPIKey: string;
241
+ deviceReachabilityStatusNotificationsAPIKey: string;
242
+ connectedNetworkTypeNotificationsAPIKey: string;
243
+
244
+ baseURL: string;
245
+ maxRetries: number;
246
+ timeout: number;
247
+ logger: Logger | undefined;
248
+ logLevel: LogLevel | undefined;
249
+ fetchOptions: MergedRequestInit | undefined;
250
+
251
+ private fetch: Fetch;
252
+ #encoder: Opts.RequestEncoder;
253
+ protected idempotencyHeader?: string;
254
+ private _options: ClientOptions;
255
+
256
+ /**
257
+ * API Client for interfacing with the Camara API.
258
+ *
259
+ * @param {string | undefined} [opts.deviceLocationNotificationsAPIKey=process.env['CAMARA_DEVICE_LOCATION_NOTIFICATIONS_API_KEY'] ?? undefined]
260
+ * @param {string | undefined} [opts.notificationsAPIKey=process.env['CAMARA_NOTIFICATIONS_API_KEY'] ?? undefined]
261
+ * @param {string | undefined} [opts.populationDensityDataNotificationsAPIKey=process.env['CAMARA_POPULATION_DENSITY_DATA_NOTIFICATIONS_API_KEY'] ?? undefined]
262
+ * @param {string | undefined} [opts.regionDeviceCountNotificationsAPIKey=process.env['CAMARA_REGION_DEVICE_COUNT_NOTIFICATIONS_API_KEY'] ?? undefined]
263
+ * @param {string | undefined} [opts.connectivityInsightsNotificationsAPIKey=process.env['CAMARA_CONNECTIVITY_INSIGHTS_NOTIFICATIONS_API_KEY'] ?? undefined]
264
+ * @param {string | undefined} [opts.simSwapNotificationsAPIKey=process.env['CAMARA_SIM_SWAP_NOTIFICATIONS_API_KEY'] ?? undefined]
265
+ * @param {string | undefined} [opts.deviceRoamingStatusNotificationsAPIKey=process.env['CAMARA_DEVICE_ROAMING_STATUS_NOTIFICATIONS_API_KEY'] ?? undefined]
266
+ * @param {string | undefined} [opts.deviceReachabilityStatusNotificationsAPIKey=process.env['CAMARA_DEVICE_REACHABILITY_STATUS_NOTIFICATIONS_API_KEY'] ?? undefined]
267
+ * @param {string | undefined} [opts.connectedNetworkTypeNotificationsAPIKey=process.env['CAMARA_CONNECTED_NETWORK_TYPE_NOTIFICATIONS_API_KEY'] ?? undefined]
268
+ * @param {string} [opts.baseURL=process.env['CAMARA_BASE_URL'] ?? https://api.example.com/camara] - Override the default base URL for the API.
269
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
270
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
271
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
272
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
273
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
274
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
275
+ */
276
+ constructor({
277
+ baseURL = readEnv('CAMARA_BASE_URL'),
278
+ deviceLocationNotificationsAPIKey = readEnv('CAMARA_DEVICE_LOCATION_NOTIFICATIONS_API_KEY'),
279
+ notificationsAPIKey = readEnv('CAMARA_NOTIFICATIONS_API_KEY'),
280
+ populationDensityDataNotificationsAPIKey = readEnv(
281
+ 'CAMARA_POPULATION_DENSITY_DATA_NOTIFICATIONS_API_KEY',
282
+ ),
283
+ regionDeviceCountNotificationsAPIKey = readEnv('CAMARA_REGION_DEVICE_COUNT_NOTIFICATIONS_API_KEY'),
284
+ connectivityInsightsNotificationsAPIKey = readEnv('CAMARA_CONNECTIVITY_INSIGHTS_NOTIFICATIONS_API_KEY'),
285
+ simSwapNotificationsAPIKey = readEnv('CAMARA_SIM_SWAP_NOTIFICATIONS_API_KEY'),
286
+ deviceRoamingStatusNotificationsAPIKey = readEnv('CAMARA_DEVICE_ROAMING_STATUS_NOTIFICATIONS_API_KEY'),
287
+ deviceReachabilityStatusNotificationsAPIKey = readEnv(
288
+ 'CAMARA_DEVICE_REACHABILITY_STATUS_NOTIFICATIONS_API_KEY',
289
+ ),
290
+ connectedNetworkTypeNotificationsAPIKey = readEnv('CAMARA_CONNECTED_NETWORK_TYPE_NOTIFICATIONS_API_KEY'),
291
+ ...opts
292
+ }: ClientOptions = {}) {
293
+ if (deviceLocationNotificationsAPIKey === undefined) {
294
+ throw new Errors.CamaraError(
295
+ "The CAMARA_DEVICE_LOCATION_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an deviceLocationNotificationsAPIKey option, like new Camara({ deviceLocationNotificationsAPIKey: 'My Device Location Notifications API Key' }).",
296
+ );
297
+ }
298
+ if (notificationsAPIKey === undefined) {
299
+ throw new Errors.CamaraError(
300
+ "The CAMARA_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an notificationsAPIKey option, like new Camara({ notificationsAPIKey: 'My Notifications API Key' }).",
301
+ );
302
+ }
303
+ if (populationDensityDataNotificationsAPIKey === undefined) {
304
+ throw new Errors.CamaraError(
305
+ "The CAMARA_POPULATION_DENSITY_DATA_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an populationDensityDataNotificationsAPIKey option, like new Camara({ populationDensityDataNotificationsAPIKey: 'My Population Density Data Notifications API Key' }).",
306
+ );
307
+ }
308
+ if (regionDeviceCountNotificationsAPIKey === undefined) {
309
+ throw new Errors.CamaraError(
310
+ "The CAMARA_REGION_DEVICE_COUNT_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an regionDeviceCountNotificationsAPIKey option, like new Camara({ regionDeviceCountNotificationsAPIKey: 'My Region Device Count Notifications API Key' }).",
311
+ );
312
+ }
313
+ if (connectivityInsightsNotificationsAPIKey === undefined) {
314
+ throw new Errors.CamaraError(
315
+ "The CAMARA_CONNECTIVITY_INSIGHTS_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an connectivityInsightsNotificationsAPIKey option, like new Camara({ connectivityInsightsNotificationsAPIKey: 'My Connectivity Insights Notifications API Key' }).",
316
+ );
317
+ }
318
+ if (simSwapNotificationsAPIKey === undefined) {
319
+ throw new Errors.CamaraError(
320
+ "The CAMARA_SIM_SWAP_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an simSwapNotificationsAPIKey option, like new Camara({ simSwapNotificationsAPIKey: 'My Sim Swap Notifications API Key' }).",
321
+ );
322
+ }
323
+ if (deviceRoamingStatusNotificationsAPIKey === undefined) {
324
+ throw new Errors.CamaraError(
325
+ "The CAMARA_DEVICE_ROAMING_STATUS_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an deviceRoamingStatusNotificationsAPIKey option, like new Camara({ deviceRoamingStatusNotificationsAPIKey: 'My Device Roaming Status Notifications API Key' }).",
326
+ );
327
+ }
328
+ if (deviceReachabilityStatusNotificationsAPIKey === undefined) {
329
+ throw new Errors.CamaraError(
330
+ "The CAMARA_DEVICE_REACHABILITY_STATUS_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an deviceReachabilityStatusNotificationsAPIKey option, like new Camara({ deviceReachabilityStatusNotificationsAPIKey: 'My Device Reachability Status Notifications API Key' }).",
331
+ );
332
+ }
333
+ if (connectedNetworkTypeNotificationsAPIKey === undefined) {
334
+ throw new Errors.CamaraError(
335
+ "The CAMARA_CONNECTED_NETWORK_TYPE_NOTIFICATIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the Camara client with an connectedNetworkTypeNotificationsAPIKey option, like new Camara({ connectedNetworkTypeNotificationsAPIKey: 'My Connected Network Type Notifications API Key' }).",
336
+ );
337
+ }
338
+
339
+ const options: ClientOptions = {
340
+ deviceLocationNotificationsAPIKey,
341
+ notificationsAPIKey,
342
+ populationDensityDataNotificationsAPIKey,
343
+ regionDeviceCountNotificationsAPIKey,
344
+ connectivityInsightsNotificationsAPIKey,
345
+ simSwapNotificationsAPIKey,
346
+ deviceRoamingStatusNotificationsAPIKey,
347
+ deviceReachabilityStatusNotificationsAPIKey,
348
+ connectedNetworkTypeNotificationsAPIKey,
349
+ ...opts,
350
+ baseURL: baseURL || `https://api.example.com/camara`,
351
+ };
352
+
353
+ this.baseURL = options.baseURL!;
354
+ this.timeout = options.timeout ?? Camara.DEFAULT_TIMEOUT /* 1 minute */;
355
+ this.logger = options.logger ?? console;
356
+ const defaultLogLevel = 'warn';
357
+ // Set default logLevel early so that we can log a warning in parseLogLevel.
358
+ this.logLevel = defaultLogLevel;
359
+ this.logLevel =
360
+ parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
361
+ parseLogLevel(readEnv('CAMARA_LOG'), "process.env['CAMARA_LOG']", this) ??
362
+ defaultLogLevel;
363
+ this.fetchOptions = options.fetchOptions;
364
+ this.maxRetries = options.maxRetries ?? 2;
365
+ this.fetch = options.fetch ?? Shims.getDefaultFetch();
366
+ this.#encoder = Opts.FallbackEncoder;
367
+
368
+ this._options = options;
369
+
370
+ this.deviceLocationNotificationsAPIKey = deviceLocationNotificationsAPIKey;
371
+ this.notificationsAPIKey = notificationsAPIKey;
372
+ this.populationDensityDataNotificationsAPIKey = populationDensityDataNotificationsAPIKey;
373
+ this.regionDeviceCountNotificationsAPIKey = regionDeviceCountNotificationsAPIKey;
374
+ this.connectivityInsightsNotificationsAPIKey = connectivityInsightsNotificationsAPIKey;
375
+ this.simSwapNotificationsAPIKey = simSwapNotificationsAPIKey;
376
+ this.deviceRoamingStatusNotificationsAPIKey = deviceRoamingStatusNotificationsAPIKey;
377
+ this.deviceReachabilityStatusNotificationsAPIKey = deviceReachabilityStatusNotificationsAPIKey;
378
+ this.connectedNetworkTypeNotificationsAPIKey = connectedNetworkTypeNotificationsAPIKey;
379
+ }
380
+
381
+ /**
382
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
383
+ */
384
+ withOptions(options: Partial<ClientOptions>): this {
385
+ const client = new (this.constructor as any as new (props: ClientOptions) => typeof this)({
386
+ ...this._options,
387
+ baseURL: this.baseURL,
388
+ maxRetries: this.maxRetries,
389
+ timeout: this.timeout,
390
+ logger: this.logger,
391
+ logLevel: this.logLevel,
392
+ fetch: this.fetch,
393
+ fetchOptions: this.fetchOptions,
394
+ deviceLocationNotificationsAPIKey: this.deviceLocationNotificationsAPIKey,
395
+ notificationsAPIKey: this.notificationsAPIKey,
396
+ populationDensityDataNotificationsAPIKey: this.populationDensityDataNotificationsAPIKey,
397
+ regionDeviceCountNotificationsAPIKey: this.regionDeviceCountNotificationsAPIKey,
398
+ connectivityInsightsNotificationsAPIKey: this.connectivityInsightsNotificationsAPIKey,
399
+ simSwapNotificationsAPIKey: this.simSwapNotificationsAPIKey,
400
+ deviceRoamingStatusNotificationsAPIKey: this.deviceRoamingStatusNotificationsAPIKey,
401
+ deviceReachabilityStatusNotificationsAPIKey: this.deviceReachabilityStatusNotificationsAPIKey,
402
+ connectedNetworkTypeNotificationsAPIKey: this.connectedNetworkTypeNotificationsAPIKey,
403
+ ...options,
404
+ });
405
+ return client;
406
+ }
407
+
408
+ /**
409
+ * Check whether the base URL is set to its default.
410
+ */
411
+ #baseURLOverridden(): boolean {
412
+ return this.baseURL !== 'https://api.example.com/camara';
413
+ }
414
+
415
+ protected defaultQuery(): Record<string, string | undefined> | undefined {
416
+ return this._options.defaultQuery;
417
+ }
418
+
419
+ protected validateHeaders({ values, nulls }: NullableHeaders) {
420
+ return;
421
+ }
422
+
423
+ protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
424
+ return buildHeaders([
425
+ await this.deviceLocationnotificationsBearerAuth(opts),
426
+ await this.notificationsBearerAuth(opts),
427
+ await this.populationDensityDatanotificationsBearerAuth(opts),
428
+ await this.regionDeviceCountnotificationsBearerAuth(opts),
429
+ await this.connectivityInsightsnotificationsBearerAuth(opts),
430
+ await this.simSwapnotificationsBearerAuth(opts),
431
+ await this.deviceRoamingStatusnotificationsBearerAuth(opts),
432
+ await this.deviceReachabilityStatusnotificationsBearerAuth(opts),
433
+ await this.connectedNetworkTypenotificationsBearerAuth(opts),
434
+ ]);
435
+ }
436
+
437
+ protected async deviceLocationnotificationsBearerAuth(
438
+ opts: FinalRequestOptions,
439
+ ): Promise<NullableHeaders | undefined> {
440
+ return buildHeaders([{ Authorization: `Bearer ${this.deviceLocationNotificationsAPIKey}` }]);
441
+ }
442
+
443
+ protected async notificationsBearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
444
+ return buildHeaders([{ Authorization: `Bearer ${this.notificationsAPIKey}` }]);
445
+ }
446
+
447
+ protected async populationDensityDatanotificationsBearerAuth(
448
+ opts: FinalRequestOptions,
449
+ ): Promise<NullableHeaders | undefined> {
450
+ return buildHeaders([{ Authorization: `Bearer ${this.populationDensityDataNotificationsAPIKey}` }]);
451
+ }
452
+
453
+ protected async regionDeviceCountnotificationsBearerAuth(
454
+ opts: FinalRequestOptions,
455
+ ): Promise<NullableHeaders | undefined> {
456
+ return buildHeaders([{ Authorization: `Bearer ${this.regionDeviceCountNotificationsAPIKey}` }]);
457
+ }
458
+
459
+ protected async connectivityInsightsnotificationsBearerAuth(
460
+ opts: FinalRequestOptions,
461
+ ): Promise<NullableHeaders | undefined> {
462
+ return buildHeaders([{ Authorization: `Bearer ${this.connectivityInsightsNotificationsAPIKey}` }]);
463
+ }
464
+
465
+ protected async simSwapnotificationsBearerAuth(
466
+ opts: FinalRequestOptions,
467
+ ): Promise<NullableHeaders | undefined> {
468
+ return buildHeaders([{ Authorization: `Bearer ${this.simSwapNotificationsAPIKey}` }]);
469
+ }
470
+
471
+ protected async deviceRoamingStatusnotificationsBearerAuth(
472
+ opts: FinalRequestOptions,
473
+ ): Promise<NullableHeaders | undefined> {
474
+ return buildHeaders([{ Authorization: `Bearer ${this.deviceRoamingStatusNotificationsAPIKey}` }]);
475
+ }
476
+
477
+ protected async deviceReachabilityStatusnotificationsBearerAuth(
478
+ opts: FinalRequestOptions,
479
+ ): Promise<NullableHeaders | undefined> {
480
+ return buildHeaders([{ Authorization: `Bearer ${this.deviceReachabilityStatusNotificationsAPIKey}` }]);
481
+ }
482
+
483
+ protected async connectedNetworkTypenotificationsBearerAuth(
484
+ opts: FinalRequestOptions,
485
+ ): Promise<NullableHeaders | undefined> {
486
+ return buildHeaders([{ Authorization: `Bearer ${this.connectedNetworkTypeNotificationsAPIKey}` }]);
487
+ }
488
+
489
+ /**
490
+ * Basic re-implementation of `qs.stringify` for primitive types.
491
+ */
492
+ protected stringifyQuery(query: Record<string, unknown>): string {
493
+ return Object.entries(query)
494
+ .filter(([_, value]) => typeof value !== 'undefined')
495
+ .map(([key, value]) => {
496
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
497
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
498
+ }
499
+ if (value === null) {
500
+ return `${encodeURIComponent(key)}=`;
501
+ }
502
+ throw new Errors.CamaraError(
503
+ `Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
504
+ );
505
+ })
506
+ .join('&');
507
+ }
508
+
509
+ private getUserAgent(): string {
510
+ return `${this.constructor.name}/JS ${VERSION}`;
511
+ }
512
+
513
+ protected defaultIdempotencyKey(): string {
514
+ return `stainless-node-retry-${uuid4()}`;
515
+ }
516
+
517
+ protected makeStatusError(
518
+ status: number,
519
+ error: Object,
520
+ message: string | undefined,
521
+ headers: Headers,
522
+ ): Errors.APIError {
523
+ return Errors.APIError.generate(status, error, message, headers);
524
+ }
525
+
526
+ buildURL(
527
+ path: string,
528
+ query: Record<string, unknown> | null | undefined,
529
+ defaultBaseURL?: string | undefined,
530
+ ): string {
531
+ const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL;
532
+ const url =
533
+ isAbsoluteURL(path) ?
534
+ new URL(path)
535
+ : new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
536
+
537
+ const defaultQuery = this.defaultQuery();
538
+ if (!isEmptyObj(defaultQuery)) {
539
+ query = { ...defaultQuery, ...query };
540
+ }
541
+
542
+ if (typeof query === 'object' && query && !Array.isArray(query)) {
543
+ url.search = this.stringifyQuery(query as Record<string, unknown>);
544
+ }
545
+
546
+ return url.toString();
547
+ }
548
+
549
+ /**
550
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
551
+ */
552
+ protected async prepareOptions(options: FinalRequestOptions): Promise<void> {}
553
+
554
+ /**
555
+ * Used as a callback for mutating the given `RequestInit` object.
556
+ *
557
+ * This is useful for cases where you want to add certain headers based off of
558
+ * the request properties, e.g. `method` or `url`.
559
+ */
560
+ protected async prepareRequest(
561
+ request: RequestInit,
562
+ { url, options }: { url: string; options: FinalRequestOptions },
563
+ ): Promise<void> {}
564
+
565
+ get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
566
+ return this.methodRequest('get', path, opts);
567
+ }
568
+
569
+ post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
570
+ return this.methodRequest('post', path, opts);
571
+ }
572
+
573
+ patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
574
+ return this.methodRequest('patch', path, opts);
575
+ }
576
+
577
+ put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
578
+ return this.methodRequest('put', path, opts);
579
+ }
580
+
581
+ delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
582
+ return this.methodRequest('delete', path, opts);
583
+ }
584
+
585
+ private methodRequest<Rsp>(
586
+ method: HTTPMethod,
587
+ path: string,
588
+ opts?: PromiseOrValue<RequestOptions>,
589
+ ): APIPromise<Rsp> {
590
+ return this.request(
591
+ Promise.resolve(opts).then((opts) => {
592
+ return { method, path, ...opts };
593
+ }),
594
+ );
595
+ }
596
+
597
+ request<Rsp>(
598
+ options: PromiseOrValue<FinalRequestOptions>,
599
+ remainingRetries: number | null = null,
600
+ ): APIPromise<Rsp> {
601
+ return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
602
+ }
603
+
604
+ private async makeRequest(
605
+ optionsInput: PromiseOrValue<FinalRequestOptions>,
606
+ retriesRemaining: number | null,
607
+ retryOfRequestLogID: string | undefined,
608
+ ): Promise<APIResponseProps> {
609
+ const options = await optionsInput;
610
+ const maxRetries = options.maxRetries ?? this.maxRetries;
611
+ if (retriesRemaining == null) {
612
+ retriesRemaining = maxRetries;
613
+ }
614
+
615
+ await this.prepareOptions(options);
616
+
617
+ const { req, url, timeout } = await this.buildRequest(options, {
618
+ retryCount: maxRetries - retriesRemaining,
619
+ });
620
+
621
+ await this.prepareRequest(req, { url, options });
622
+
623
+ /** Not an API request ID, just for correlating local log entries. */
624
+ const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
625
+ const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
626
+ const startTime = Date.now();
627
+
628
+ loggerFor(this).debug(
629
+ `[${requestLogID}] sending request`,
630
+ formatRequestDetails({
631
+ retryOfRequestLogID,
632
+ method: options.method,
633
+ url,
634
+ options,
635
+ headers: req.headers,
636
+ }),
637
+ );
638
+
639
+ if (options.signal?.aborted) {
640
+ throw new Errors.APIUserAbortError();
641
+ }
642
+
643
+ const controller = new AbortController();
644
+ const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
645
+ const headersTime = Date.now();
646
+
647
+ if (response instanceof globalThis.Error) {
648
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
649
+ if (options.signal?.aborted) {
650
+ throw new Errors.APIUserAbortError();
651
+ }
652
+ // detect native connection timeout errors
653
+ // deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
654
+ // undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
655
+ // others do not provide enough information to distinguish timeouts from other connection errors
656
+ const isTimeout =
657
+ isAbortError(response) ||
658
+ /timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
659
+ if (retriesRemaining) {
660
+ loggerFor(this).info(
661
+ `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`,
662
+ );
663
+ loggerFor(this).debug(
664
+ `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`,
665
+ formatRequestDetails({
666
+ retryOfRequestLogID,
667
+ url,
668
+ durationMs: headersTime - startTime,
669
+ message: response.message,
670
+ }),
671
+ );
672
+ return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
673
+ }
674
+ loggerFor(this).info(
675
+ `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`,
676
+ );
677
+ loggerFor(this).debug(
678
+ `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`,
679
+ formatRequestDetails({
680
+ retryOfRequestLogID,
681
+ url,
682
+ durationMs: headersTime - startTime,
683
+ message: response.message,
684
+ }),
685
+ );
686
+ if (isTimeout) {
687
+ throw new Errors.APIConnectionTimeoutError();
688
+ }
689
+ throw new Errors.APIConnectionError({ cause: response });
690
+ }
691
+
692
+ const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${
693
+ response.ok ? 'succeeded' : 'failed'
694
+ } with status ${response.status} in ${headersTime - startTime}ms`;
695
+
696
+ if (!response.ok) {
697
+ const shouldRetry = await this.shouldRetry(response);
698
+ if (retriesRemaining && shouldRetry) {
699
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
700
+
701
+ // We don't need the body of this response.
702
+ await Shims.CancelReadableStream(response.body);
703
+ loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
704
+ loggerFor(this).debug(
705
+ `[${requestLogID}] response error (${retryMessage})`,
706
+ formatRequestDetails({
707
+ retryOfRequestLogID,
708
+ url: response.url,
709
+ status: response.status,
710
+ headers: response.headers,
711
+ durationMs: headersTime - startTime,
712
+ }),
713
+ );
714
+ return this.retryRequest(
715
+ options,
716
+ retriesRemaining,
717
+ retryOfRequestLogID ?? requestLogID,
718
+ response.headers,
719
+ );
720
+ }
721
+
722
+ const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
723
+
724
+ loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
725
+
726
+ const errText = await response.text().catch((err: any) => castToError(err).message);
727
+ const errJSON = safeJSON(errText);
728
+ const errMessage = errJSON ? undefined : errText;
729
+
730
+ loggerFor(this).debug(
731
+ `[${requestLogID}] response error (${retryMessage})`,
732
+ formatRequestDetails({
733
+ retryOfRequestLogID,
734
+ url: response.url,
735
+ status: response.status,
736
+ headers: response.headers,
737
+ message: errMessage,
738
+ durationMs: Date.now() - startTime,
739
+ }),
740
+ );
741
+
742
+ const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
743
+ throw err;
744
+ }
745
+
746
+ loggerFor(this).info(responseInfo);
747
+ loggerFor(this).debug(
748
+ `[${requestLogID}] response start`,
749
+ formatRequestDetails({
750
+ retryOfRequestLogID,
751
+ url: response.url,
752
+ status: response.status,
753
+ headers: response.headers,
754
+ durationMs: headersTime - startTime,
755
+ }),
756
+ );
757
+
758
+ return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
759
+ }
760
+
761
+ async fetchWithTimeout(
762
+ url: RequestInfo,
763
+ init: RequestInit | undefined,
764
+ ms: number,
765
+ controller: AbortController,
766
+ ): Promise<Response> {
767
+ const { signal, method, ...options } = init || {};
768
+ if (signal) signal.addEventListener('abort', () => controller.abort());
769
+
770
+ const timeout = setTimeout(() => controller.abort(), ms);
771
+
772
+ const isReadableBody =
773
+ ((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
774
+ (typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
775
+
776
+ const fetchOptions: RequestInit = {
777
+ signal: controller.signal as any,
778
+ ...(isReadableBody ? { duplex: 'half' } : {}),
779
+ method: 'GET',
780
+ ...options,
781
+ };
782
+ if (method) {
783
+ // Custom methods like 'patch' need to be uppercased
784
+ // See https://github.com/nodejs/undici/issues/2294
785
+ fetchOptions.method = method.toUpperCase();
786
+ }
787
+
788
+ try {
789
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
790
+ return await this.fetch.call(undefined, url, fetchOptions);
791
+ } finally {
792
+ clearTimeout(timeout);
793
+ }
794
+ }
795
+
796
+ private async shouldRetry(response: Response): Promise<boolean> {
797
+ // Note this is not a standard header.
798
+ const shouldRetryHeader = response.headers.get('x-should-retry');
799
+
800
+ // If the server explicitly says whether or not to retry, obey.
801
+ if (shouldRetryHeader === 'true') return true;
802
+ if (shouldRetryHeader === 'false') return false;
803
+
804
+ // Retry on request timeouts.
805
+ if (response.status === 408) return true;
806
+
807
+ // Retry on lock timeouts.
808
+ if (response.status === 409) return true;
809
+
810
+ // Retry on rate limits.
811
+ if (response.status === 429) return true;
812
+
813
+ // Retry internal errors.
814
+ if (response.status >= 500) return true;
815
+
816
+ return false;
817
+ }
818
+
819
+ private async retryRequest(
820
+ options: FinalRequestOptions,
821
+ retriesRemaining: number,
822
+ requestLogID: string,
823
+ responseHeaders?: Headers | undefined,
824
+ ): Promise<APIResponseProps> {
825
+ let timeoutMillis: number | undefined;
826
+
827
+ // Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
828
+ const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
829
+ if (retryAfterMillisHeader) {
830
+ const timeoutMs = parseFloat(retryAfterMillisHeader);
831
+ if (!Number.isNaN(timeoutMs)) {
832
+ timeoutMillis = timeoutMs;
833
+ }
834
+ }
835
+
836
+ // About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
837
+ const retryAfterHeader = responseHeaders?.get('retry-after');
838
+ if (retryAfterHeader && !timeoutMillis) {
839
+ const timeoutSeconds = parseFloat(retryAfterHeader);
840
+ if (!Number.isNaN(timeoutSeconds)) {
841
+ timeoutMillis = timeoutSeconds * 1000;
842
+ } else {
843
+ timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
844
+ }
845
+ }
846
+
847
+ // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
848
+ // just do what it says, but otherwise calculate a default
849
+ if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
850
+ const maxRetries = options.maxRetries ?? this.maxRetries;
851
+ timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
852
+ }
853
+ await sleep(timeoutMillis);
854
+
855
+ return this.makeRequest(options, retriesRemaining - 1, requestLogID);
856
+ }
857
+
858
+ private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, maxRetries: number): number {
859
+ const initialRetryDelay = 0.5;
860
+ const maxRetryDelay = 8.0;
861
+
862
+ const numRetries = maxRetries - retriesRemaining;
863
+
864
+ // Apply exponential backoff, but not more than the max.
865
+ const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
866
+
867
+ // Apply some jitter, take up to at most 25 percent of the retry time.
868
+ const jitter = 1 - Math.random() * 0.25;
869
+
870
+ return sleepSeconds * jitter * 1000;
871
+ }
872
+
873
+ async buildRequest(
874
+ inputOptions: FinalRequestOptions,
875
+ { retryCount = 0 }: { retryCount?: number } = {},
876
+ ): Promise<{ req: FinalizedRequestInit; url: string; timeout: number }> {
877
+ const options = { ...inputOptions };
878
+ const { method, path, query, defaultBaseURL } = options;
879
+
880
+ const url = this.buildURL(path!, query as Record<string, unknown>, defaultBaseURL);
881
+ if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
882
+ options.timeout = options.timeout ?? this.timeout;
883
+ const { bodyHeaders, body } = this.buildBody({ options });
884
+ const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
885
+
886
+ const req: FinalizedRequestInit = {
887
+ method,
888
+ headers: reqHeaders,
889
+ ...(options.signal && { signal: options.signal }),
890
+ ...((globalThis as any).ReadableStream &&
891
+ body instanceof (globalThis as any).ReadableStream && { duplex: 'half' }),
892
+ ...(body && { body }),
893
+ ...((this.fetchOptions as any) ?? {}),
894
+ ...((options.fetchOptions as any) ?? {}),
895
+ };
896
+
897
+ return { req, url, timeout: options.timeout };
898
+ }
899
+
900
+ private async buildHeaders({
901
+ options,
902
+ method,
903
+ bodyHeaders,
904
+ retryCount,
905
+ }: {
906
+ options: FinalRequestOptions;
907
+ method: HTTPMethod;
908
+ bodyHeaders: HeadersLike;
909
+ retryCount: number;
910
+ }): Promise<Headers> {
911
+ let idempotencyHeaders: HeadersLike = {};
912
+ if (this.idempotencyHeader && method !== 'get') {
913
+ if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
914
+ idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
915
+ }
916
+
917
+ const headers = buildHeaders([
918
+ idempotencyHeaders,
919
+ {
920
+ Accept: 'application/json',
921
+ 'User-Agent': this.getUserAgent(),
922
+ 'X-Stainless-Retry-Count': String(retryCount),
923
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
924
+ ...getPlatformHeaders(),
925
+ },
926
+ await this.authHeaders(options),
927
+ this._options.defaultHeaders,
928
+ bodyHeaders,
929
+ options.headers,
930
+ ]);
931
+
932
+ this.validateHeaders(headers);
933
+
934
+ return headers.values;
935
+ }
936
+
937
+ private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
938
+ bodyHeaders: HeadersLike;
939
+ body: BodyInit | undefined;
940
+ } {
941
+ if (!body) {
942
+ return { bodyHeaders: undefined, body: undefined };
943
+ }
944
+ const headers = buildHeaders([rawHeaders]);
945
+ if (
946
+ // Pass raw type verbatim
947
+ ArrayBuffer.isView(body) ||
948
+ body instanceof ArrayBuffer ||
949
+ body instanceof DataView ||
950
+ (typeof body === 'string' &&
951
+ // Preserve legacy string encoding behavior for now
952
+ headers.values.has('content-type')) ||
953
+ // `Blob` is superset of `File`
954
+ ((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
955
+ // `FormData` -> `multipart/form-data`
956
+ body instanceof FormData ||
957
+ // `URLSearchParams` -> `application/x-www-form-urlencoded`
958
+ body instanceof URLSearchParams ||
959
+ // Send chunked stream (each chunk has own `length`)
960
+ ((globalThis as any).ReadableStream && body instanceof (globalThis as any).ReadableStream)
961
+ ) {
962
+ return { bodyHeaders: undefined, body: body as BodyInit };
963
+ } else if (
964
+ typeof body === 'object' &&
965
+ (Symbol.asyncIterator in body ||
966
+ (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
967
+ ) {
968
+ return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
969
+ } else {
970
+ return this.#encoder({ body, headers });
971
+ }
972
+ }
973
+
974
+ static Camara = this;
975
+ static DEFAULT_TIMEOUT = 60000; // 1 minute
976
+
977
+ static CamaraError = Errors.CamaraError;
978
+ static APIError = Errors.APIError;
979
+ static APIConnectionError = Errors.APIConnectionError;
980
+ static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
981
+ static APIUserAbortError = Errors.APIUserAbortError;
982
+ static NotFoundError = Errors.NotFoundError;
983
+ static ConflictError = Errors.ConflictError;
984
+ static RateLimitError = Errors.RateLimitError;
985
+ static BadRequestError = Errors.BadRequestError;
986
+ static AuthenticationError = Errors.AuthenticationError;
987
+ static InternalServerError = Errors.InternalServerError;
988
+ static PermissionDeniedError = Errors.PermissionDeniedError;
989
+ static UnprocessableEntityError = Errors.UnprocessableEntityError;
990
+
991
+ static toFile = Uploads.toFile;
992
+
993
+ customerinsights: API.Customerinsights = new API.Customerinsights(this);
994
+ deviceswap: API.Deviceswap = new API.Deviceswap(this);
995
+ knowyourcustomerageverification: API.Knowyourcustomerageverification =
996
+ new API.Knowyourcustomerageverification(this);
997
+ knowyourcustomerfillIn: API.KnowyourcustomerfillIn = new API.KnowyourcustomerfillIn(this);
998
+ knowyourcustomermatch: API.Knowyourcustomermatch = new API.Knowyourcustomermatch(this);
999
+ tenure: API.Tenure = new API.Tenure(this);
1000
+ numberrecycling: API.Numberrecycling = new API.Numberrecycling(this);
1001
+ otpvalidation: API.Otpvalidation = new API.Otpvalidation(this);
1002
+ callforwardingsignal: API.Callforwardingsignal = new API.Callforwardingsignal(this);
1003
+ devicelocation: API.Devicelocation = new API.Devicelocation(this);
1004
+ populationdensitydata: API.Populationdensitydata = new API.Populationdensitydata(this);
1005
+ regiondevicecount: API.Regiondevicecount = new API.Regiondevicecount(this);
1006
+ webrtc: API.Webrtc = new API.Webrtc(this);
1007
+ connectivityinsights: API.Connectivityinsights = new API.Connectivityinsights(this);
1008
+ qualityondemand: API.Qualityondemand = new API.Qualityondemand(this);
1009
+ deviceidentifier: API.Deviceidentifier = new API.Deviceidentifier(this);
1010
+ simswap: API.Simswap = new API.Simswap(this);
1011
+ deviceroamingstatus: API.Deviceroamingstatus = new API.Deviceroamingstatus(this);
1012
+ devicereachabilitystatus: API.Devicereachabilitystatus = new API.Devicereachabilitystatus(this);
1013
+ connectednetworktype: API.Connectednetworktype = new API.Connectednetworktype(this);
1014
+ }
1015
+
1016
+ Camara.Customerinsights = Customerinsights;
1017
+ Camara.Deviceswap = Deviceswap;
1018
+ Camara.Knowyourcustomerageverification = Knowyourcustomerageverification;
1019
+ Camara.KnowyourcustomerfillIn = KnowyourcustomerfillIn;
1020
+ Camara.Knowyourcustomermatch = Knowyourcustomermatch;
1021
+ Camara.Tenure = Tenure;
1022
+ Camara.Numberrecycling = Numberrecycling;
1023
+ Camara.Otpvalidation = Otpvalidation;
1024
+ Camara.Callforwardingsignal = Callforwardingsignal;
1025
+ Camara.Devicelocation = Devicelocation;
1026
+ Camara.Populationdensitydata = Populationdensitydata;
1027
+ Camara.Regiondevicecount = Regiondevicecount;
1028
+ Camara.Webrtc = Webrtc;
1029
+ Camara.Connectivityinsights = Connectivityinsights;
1030
+ Camara.Qualityondemand = Qualityondemand;
1031
+ Camara.Deviceidentifier = Deviceidentifier;
1032
+ Camara.Simswap = Simswap;
1033
+ Camara.Deviceroamingstatus = Deviceroamingstatus;
1034
+ Camara.Devicereachabilitystatus = Devicereachabilitystatus;
1035
+ Camara.Connectednetworktype = Connectednetworktype;
1036
+
1037
+ export declare namespace Camara {
1038
+ export type RequestOptions = Opts.RequestOptions;
1039
+
1040
+ export { Customerinsights as Customerinsights };
1041
+
1042
+ export {
1043
+ Deviceswap as Deviceswap,
1044
+ type DeviceswapCheckResponse as DeviceswapCheckResponse,
1045
+ type DeviceswapRetrieveDateResponse as DeviceswapRetrieveDateResponse,
1046
+ type DeviceswapCheckParams as DeviceswapCheckParams,
1047
+ type DeviceswapRetrieveDateParams as DeviceswapRetrieveDateParams,
1048
+ };
1049
+
1050
+ export {
1051
+ Knowyourcustomerageverification as Knowyourcustomerageverification,
1052
+ type KnowyourcustomerageverificationVerifyResponse as KnowyourcustomerageverificationVerifyResponse,
1053
+ type KnowyourcustomerageverificationVerifyParams as KnowyourcustomerageverificationVerifyParams,
1054
+ };
1055
+
1056
+ export {
1057
+ KnowyourcustomerfillIn as KnowyourcustomerfillIn,
1058
+ type KnowyourcustomerfillInCreateResponse as KnowyourcustomerfillInCreateResponse,
1059
+ type KnowyourcustomerfillInCreateParams as KnowyourcustomerfillInCreateParams,
1060
+ };
1061
+
1062
+ export {
1063
+ Knowyourcustomermatch as Knowyourcustomermatch,
1064
+ type MatchResult as MatchResult,
1065
+ type KnowyourcustomermatchMatchResponse as KnowyourcustomermatchMatchResponse,
1066
+ type KnowyourcustomermatchMatchParams as KnowyourcustomermatchMatchParams,
1067
+ };
1068
+
1069
+ export {
1070
+ Tenure as Tenure,
1071
+ type TenureVerifyResponse as TenureVerifyResponse,
1072
+ type TenureVerifyParams as TenureVerifyParams,
1073
+ };
1074
+
1075
+ export {
1076
+ Numberrecycling as Numberrecycling,
1077
+ type NumberrecyclingCheckSubscriberChangeResponse as NumberrecyclingCheckSubscriberChangeResponse,
1078
+ type NumberrecyclingCheckSubscriberChangeParams as NumberrecyclingCheckSubscriberChangeParams,
1079
+ };
1080
+
1081
+ export {
1082
+ Otpvalidation as Otpvalidation,
1083
+ type OtpvalidationSendCodeResponse as OtpvalidationSendCodeResponse,
1084
+ type OtpvalidationSendCodeParams as OtpvalidationSendCodeParams,
1085
+ type OtpvalidationValidateCodeParams as OtpvalidationValidateCodeParams,
1086
+ };
1087
+
1088
+ export {
1089
+ Callforwardingsignal as Callforwardingsignal,
1090
+ type CallForwardingSignal as CallForwardingSignal,
1091
+ type CallforwardingsignalCheckActiveForwardingsResponse as CallforwardingsignalCheckActiveForwardingsResponse,
1092
+ type CallforwardingsignalCheckUnconditionalForwardingResponse as CallforwardingsignalCheckUnconditionalForwardingResponse,
1093
+ type CallforwardingsignalCheckActiveForwardingsParams as CallforwardingsignalCheckActiveForwardingsParams,
1094
+ type CallforwardingsignalCheckUnconditionalForwardingParams as CallforwardingsignalCheckUnconditionalForwardingParams,
1095
+ };
1096
+
1097
+ export { Devicelocation as Devicelocation };
1098
+
1099
+ export {
1100
+ Populationdensitydata as Populationdensitydata,
1101
+ type PopulationdensitydataRetrieveResponse as PopulationdensitydataRetrieveResponse,
1102
+ type PopulationdensitydataRetrieveParams as PopulationdensitydataRetrieveParams,
1103
+ };
1104
+
1105
+ export {
1106
+ Regiondevicecount as Regiondevicecount,
1107
+ type RegiondevicecountGetCountResponse as RegiondevicecountGetCountResponse,
1108
+ type RegiondevicecountGetCountParams as RegiondevicecountGetCountParams,
1109
+ };
1110
+
1111
+ export { Webrtc as Webrtc };
1112
+
1113
+ export { Connectivityinsights as Connectivityinsights };
1114
+
1115
+ export {
1116
+ Qualityondemand as Qualityondemand,
1117
+ type Duration as Duration,
1118
+ type QosProfile as QosProfile,
1119
+ type QosProfileStatus as QosProfileStatus,
1120
+ type Rate as Rate,
1121
+ type QualityondemandRetrieveQosProfilesResponse as QualityondemandRetrieveQosProfilesResponse,
1122
+ type QualityondemandRetrieveQosProfileParams as QualityondemandRetrieveQosProfileParams,
1123
+ type QualityondemandRetrieveQosProfilesParams as QualityondemandRetrieveQosProfilesParams,
1124
+ };
1125
+
1126
+ export {
1127
+ Deviceidentifier as Deviceidentifier,
1128
+ type DeviceIdentifierDevice as DeviceIdentifierDevice,
1129
+ type DeviceIdentifierDeviceIpv4Addr as DeviceIdentifierDeviceIpv4Addr,
1130
+ type DeviceIdentifierRequestBody as DeviceIdentifierRequestBody,
1131
+ type DeviceidentifierRetrieveIdentifierResponse as DeviceidentifierRetrieveIdentifierResponse,
1132
+ type DeviceidentifierRetrievePpidResponse as DeviceidentifierRetrievePpidResponse,
1133
+ type DeviceidentifierRetrieveTypeResponse as DeviceidentifierRetrieveTypeResponse,
1134
+ type DeviceidentifierRetrieveIdentifierParams as DeviceidentifierRetrieveIdentifierParams,
1135
+ type DeviceidentifierRetrievePpidParams as DeviceidentifierRetrievePpidParams,
1136
+ type DeviceidentifierRetrieveTypeParams as DeviceidentifierRetrieveTypeParams,
1137
+ };
1138
+
1139
+ export { Simswap as Simswap };
1140
+
1141
+ export { Deviceroamingstatus as Deviceroamingstatus };
1142
+
1143
+ export { Devicereachabilitystatus as Devicereachabilitystatus };
1144
+
1145
+ export { Connectednetworktype as Connectednetworktype };
1146
+ }