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
@@ -0,0 +1,216 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
+ import { RequestOptions } from '../internal/request-options';
7
+
8
+ export class Regiondevicecount extends APIResource {
9
+ /**
10
+ * Get the number of devices in the specified area during a certain time interval.
11
+ *
12
+ * - The query area can be a circle or a polygon composed of longitude and latitude
13
+ * points.
14
+ * - If the areaType is circle, the circleCenter and circleRadius must be provided;
15
+ * if the area is a polygon, the point list must be provided.
16
+ * - If starttime and endtime are not passed in,this api should return the current
17
+ * number of devices in the area.
18
+ * - If the device appears in the specified area at least once during the certain
19
+ * time interval, it should be counted.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.regiondevicecount.getCount({
24
+ * area: {
25
+ * areaType: 'CIRCLE',
26
+ * center: { latitude: 45.754114, longitude: 4.860374 },
27
+ * radius: 800,
28
+ * },
29
+ * endtime: '2023-07-04T14:27:08.312+02:00',
30
+ * filter: {
31
+ * roamingStatus: ['roaming'],
32
+ * deviceType: ['human device', 'IoT device'],
33
+ * },
34
+ * sink: 'https://endpoint.example.com/sink',
35
+ * sinkCredential: {
36
+ * credentialType: 'ACCESSTOKEN',
37
+ * accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
38
+ * accessTokenExpiresUtc: '1717753038',
39
+ * accessTokenType: 'bearer',
40
+ * },
41
+ * starttime: '2023-07-03T14:27:08.312+02:00',
42
+ * });
43
+ * ```
44
+ */
45
+ getCount(
46
+ params: RegiondevicecountGetCountParams,
47
+ options?: RequestOptions,
48
+ ): APIPromise<RegiondevicecountGetCountResponse> {
49
+ const { 'x-correlator': xCorrelator, ...body } = params;
50
+ return this._client.post('/regiondevicecount/count', {
51
+ body,
52
+ ...options,
53
+ headers: buildHeaders([
54
+ { ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
55
+ options?.headers,
56
+ ]),
57
+ });
58
+ }
59
+ }
60
+
61
+ /**
62
+ * RegionDeviceCount result
63
+ */
64
+ export interface RegiondevicecountGetCountResponse {
65
+ /**
66
+ * Device Count
67
+ */
68
+ count?: number;
69
+
70
+ /**
71
+ * SUPPORTED_AREA: The whole requested area is supported Region Device Count for
72
+ * the entire requested area is returned - Telco Coverage = 100 %
73
+ *
74
+ * PART_OF_AREA_NOT_SUPPORTED: Part of the requested area is outside the MNOs
75
+ * coverage area, the area outside the coverage area are not returned - 100% >Telco
76
+ * Coverage >=50%
77
+ *
78
+ * AREA_NOT_SUPPORTED: The whole requested area is outside the MNO coverage area No
79
+ * data will be returned- Telco Coverage <50%
80
+ *
81
+ * DENSITY_BELOW_PRIVACY_THRESHOLD: The number of connected devices is below
82
+ * privacy threshold of local regulation
83
+ *
84
+ * TIME_INTERVAL_NO_DATA_FOUND: Unable to find device count data within the
85
+ * requested time interval
86
+ */
87
+ status?:
88
+ | 'SUPPORTED_AREA'
89
+ | 'PART_OF_AREA_NOT_SUPPORTED'
90
+ | 'AREA_NOT_SUPPORTED'
91
+ | 'DENSITY_BELOW_PRIVACY_THRESHOLD'
92
+ | 'TIME_INTERVAL_NO_DATA_FOUND';
93
+ }
94
+
95
+ export interface RegiondevicecountGetCountParams {
96
+ /**
97
+ * Body param:
98
+ */
99
+ area?: RegiondevicecountGetCountParams.Area;
100
+
101
+ /**
102
+ * Body param: Ending timestamp for counting the number of devices in the area. It
103
+ * must follow
104
+ * [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
105
+ * have time zone.
106
+ */
107
+ endtime?: string | null;
108
+
109
+ /**
110
+ * Body param: This parameter is used to filter devices. Currently, two filtering
111
+ * criteria are defined, `roamingStatus` and `deviceType`, which can be expanded in
112
+ * the future. `IN` logic is used used for multiple filtering items within a single
113
+ * filtering criterion, `AND` logic is used between multiple filtering criteria.
114
+ *
115
+ * - If a filtering critera is not provided, it means that there is no need to
116
+ * filter this item.
117
+ * - At least one of the criteria must be provided,a filter without any criteria is
118
+ * not allowed.
119
+ * - If no filtering is required, this parameter does not need to be provided. For
120
+ * example
121
+ * ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
122
+ * means the API need to return the count of human network devices and IoT
123
+ * devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
124
+ * means that the API need to return the count of all devices that are not in
125
+ * roaming mode.
126
+ */
127
+ filter?: RegiondevicecountGetCountParams.Filter;
128
+
129
+ /**
130
+ * Body param: The URL where the API response will be asynchronously delivered,
131
+ * using the HTTP protocol.
132
+ */
133
+ sink?: string;
134
+
135
+ /**
136
+ * Body param: A sink credential provides authentication or authorization
137
+ * information necessary to enable delivery of events to a target.
138
+ */
139
+ sinkCredential?: RegiondevicecountGetCountParams.SinkCredential;
140
+
141
+ /**
142
+ * Body param: Starting timestamp for counting the number of devices in the area.
143
+ * It must follow
144
+ * [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
145
+ * have time zone.
146
+ */
147
+ starttime?: string | null;
148
+
149
+ /**
150
+ * Header param: Correlation ID for cross-service tracking
151
+ */
152
+ 'x-correlator'?: string;
153
+ }
154
+
155
+ export namespace RegiondevicecountGetCountParams {
156
+ export interface Area {
157
+ /**
158
+ * Type of this area. CIRCLE - The area is defined as a circle. POLYGON - The area
159
+ * is defined as a polygon.
160
+ */
161
+ areaType: 'CIRCLE' | 'POLYGON';
162
+ }
163
+
164
+ /**
165
+ * This parameter is used to filter devices. Currently, two filtering criteria are
166
+ * defined, `roamingStatus` and `deviceType`, which can be expanded in the future.
167
+ * `IN` logic is used used for multiple filtering items within a single filtering
168
+ * criterion, `AND` logic is used between multiple filtering criteria.
169
+ *
170
+ * - If a filtering critera is not provided, it means that there is no need to
171
+ * filter this item.
172
+ * - At least one of the criteria must be provided,a filter without any criteria is
173
+ * not allowed.
174
+ * - If no filtering is required, this parameter does not need to be provided. For
175
+ * example
176
+ * ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
177
+ * means the API need to return the count of human network devices and IoT
178
+ * devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
179
+ * means that the API need to return the count of all devices that are not in
180
+ * roaming mode.
181
+ */
182
+ export interface Filter {
183
+ /**
184
+ * Filtering by device type, 'human device' represents the need to filter for human
185
+ * network devices, 'IoT device' represents the need to filter for IoT devices, and
186
+ * 'other' represents the need to filter for other types of devices.
187
+ */
188
+ deviceType?: Array<'human device' | 'IoT device' | 'other'>;
189
+
190
+ /**
191
+ * Filter whether the device is in roaming mode,'roaming' represents the need to
192
+ * filter devices that are in roaming mode,'non-roaming' represents the need to
193
+ * filter devices that are not roaming.
194
+ */
195
+ roamingStatus?: Array<'roaming' | 'non-roaming'>;
196
+ }
197
+
198
+ /**
199
+ * A sink credential provides authentication or authorization information necessary
200
+ * to enable delivery of events to a target.
201
+ */
202
+ export interface SinkCredential {
203
+ /**
204
+ * The type of the credential. Note: Type of the credential - MUST be set to
205
+ * ACCESSTOKEN for now
206
+ */
207
+ credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
208
+ }
209
+ }
210
+
211
+ export declare namespace Regiondevicecount {
212
+ export {
213
+ type RegiondevicecountGetCountResponse as RegiondevicecountGetCountResponse,
214
+ type RegiondevicecountGetCountParams as RegiondevicecountGetCountParams,
215
+ };
216
+ }
@@ -0,0 +1,16 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Simswap } from './simswap';
4
+ export {
5
+ Subscriptions,
6
+ type SimSwapConfig,
7
+ type SimSwapProtocol,
8
+ type SimSwapSubscription,
9
+ type SimSwapSubscriptionEventType,
10
+ type SubscriptionListResponse,
11
+ type SubscriptionDeleteResponse,
12
+ type SubscriptionCreateParams,
13
+ type SubscriptionRetrieveParams,
14
+ type SubscriptionListParams,
15
+ type SubscriptionDeleteParams,
16
+ } from './subscriptions';
@@ -0,0 +1,39 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as SubscriptionsAPI from './subscriptions';
5
+ import {
6
+ SimSwapConfig,
7
+ SimSwapProtocol,
8
+ SimSwapSubscription,
9
+ SimSwapSubscriptionEventType,
10
+ SubscriptionCreateParams,
11
+ SubscriptionDeleteParams,
12
+ SubscriptionDeleteResponse,
13
+ SubscriptionListParams,
14
+ SubscriptionListResponse,
15
+ SubscriptionRetrieveParams,
16
+ Subscriptions,
17
+ } from './subscriptions';
18
+
19
+ export class Simswap extends APIResource {
20
+ subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
21
+ }
22
+
23
+ Simswap.Subscriptions = Subscriptions;
24
+
25
+ export declare namespace Simswap {
26
+ export {
27
+ Subscriptions as Subscriptions,
28
+ type SimSwapConfig as SimSwapConfig,
29
+ type SimSwapProtocol as SimSwapProtocol,
30
+ type SimSwapSubscription as SimSwapSubscription,
31
+ type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType,
32
+ type SubscriptionListResponse as SubscriptionListResponse,
33
+ type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
34
+ type SubscriptionCreateParams as SubscriptionCreateParams,
35
+ type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
36
+ type SubscriptionListParams as SubscriptionListParams,
37
+ type SubscriptionDeleteParams as SubscriptionDeleteParams,
38
+ };
39
+ }
@@ -0,0 +1,357 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ export class Subscriptions extends APIResource {
10
+ /**
11
+ * Create a sim swap event subscription for a phone number
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const simSwapSubscription =
16
+ * await client.simswap.subscriptions.create({
17
+ * config: {
18
+ * subscriptionDetail: { phoneNumber: '+123456789' },
19
+ * subscriptionMaxEvents: 10,
20
+ * subscriptionExpireTime: '2025-01-17T13:18:23.682Z',
21
+ * },
22
+ * protocol: 'HTTP',
23
+ * sink: 'https://endpoint.example.com/sink',
24
+ * types: [
25
+ * 'org.camaraproject.sim-swap-subscriptions.v0.swapped',
26
+ * ],
27
+ * sinkCredential: {
28
+ * credentialType: 'ACCESSTOKEN',
29
+ * accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
30
+ * accessTokenExpiresUtc: '1717753038',
31
+ * accessTokenType: 'bearer',
32
+ * },
33
+ * });
34
+ * ```
35
+ */
36
+ create(params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SimSwapSubscription> {
37
+ const { 'x-correlator': xCorrelator, ...body } = params;
38
+ return this._client.post('/simswap/subscriptions', {
39
+ body,
40
+ ...options,
41
+ headers: buildHeaders([
42
+ { ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
43
+ options?.headers,
44
+ ]),
45
+ });
46
+ }
47
+
48
+ /**
49
+ * retrieve event subscription information for a given subscription.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const simSwapSubscription =
54
+ * await client.simswap.subscriptions.retrieve(
55
+ * 'qs15-h556-rt89-1298',
56
+ * );
57
+ * ```
58
+ */
59
+ retrieve(
60
+ subscriptionID: string,
61
+ params: SubscriptionRetrieveParams | null | undefined = {},
62
+ options?: RequestOptions,
63
+ ): APIPromise<SimSwapSubscription> {
64
+ const { 'x-correlator': xCorrelator } = params ?? {};
65
+ return this._client.get(path`/simswap/subscriptions/${subscriptionID}`, {
66
+ ...options,
67
+ headers: buildHeaders([
68
+ { ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
69
+ options?.headers,
70
+ ]),
71
+ });
72
+ }
73
+
74
+ /**
75
+ * Retrieve a list of sim swap event subscription(s)
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * const simSwapSubscriptions =
80
+ * await client.simswap.subscriptions.list();
81
+ * ```
82
+ */
83
+ list(
84
+ params: SubscriptionListParams | null | undefined = {},
85
+ options?: RequestOptions,
86
+ ): APIPromise<SubscriptionListResponse> {
87
+ const { 'x-correlator': xCorrelator } = params ?? {};
88
+ return this._client.get('/simswap/subscriptions', {
89
+ ...options,
90
+ headers: buildHeaders([
91
+ { ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
92
+ options?.headers,
93
+ ]),
94
+ });
95
+ }
96
+
97
+ /**
98
+ * delete a given event subscription.
99
+ *
100
+ * @example
101
+ * ```ts
102
+ * const subscription =
103
+ * await client.simswap.subscriptions.delete(
104
+ * 'qs15-h556-rt89-1298',
105
+ * );
106
+ * ```
107
+ */
108
+ delete(
109
+ subscriptionID: string,
110
+ params: SubscriptionDeleteParams | null | undefined = {},
111
+ options?: RequestOptions,
112
+ ): APIPromise<SubscriptionDeleteResponse> {
113
+ const { 'x-correlator': xCorrelator } = params ?? {};
114
+ return this._client.delete(path`/simswap/subscriptions/${subscriptionID}`, {
115
+ ...options,
116
+ headers: buildHeaders([
117
+ { ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
118
+ options?.headers,
119
+ ]),
120
+ });
121
+ }
122
+ }
123
+
124
+ /**
125
+ * Implementation-specific configuration parameters needed by the subscription
126
+ * manager for acquiring events. In CAMARA we have predefined attributes like
127
+ * `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
128
+ * lifetime. Event type attributes must be defined in `subscriptionDetail`
129
+ */
130
+ export interface SimSwapConfig {
131
+ /**
132
+ * The detail of the requested event subscription
133
+ */
134
+ subscriptionDetail: SimSwapConfig.SubscriptionDetail;
135
+
136
+ /**
137
+ * The subscription expiration time (in date-time format) requested by the API
138
+ * consumer. It must follow
139
+ * [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
140
+ * have time zone.
141
+ */
142
+ subscriptionExpireTime?: string;
143
+
144
+ /**
145
+ * Identifies the maximum number of event reports to be generated (>=1) requested
146
+ * by the API consumer - Once this number is reached, the subscription ends.
147
+ */
148
+ subscriptionMaxEvents?: number;
149
+ }
150
+
151
+ export namespace SimSwapConfig {
152
+ /**
153
+ * The detail of the requested event subscription
154
+ */
155
+ export interface SubscriptionDetail {
156
+ /**
157
+ * A public identifier addressing a telephone subscription. In mobile networks it
158
+ * corresponds to the MSISDN (Mobile Station International Subscriber Directory
159
+ * Number). In order to be globally unique it has to be formatted in international
160
+ * format, according to E.164 standard, prefixed with '+'.
161
+ */
162
+ phoneNumber?: string;
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Identifier of a delivery protocol. Only HTTP is allowed for now
168
+ */
169
+ export type SimSwapProtocol = 'HTTP' | 'MQTT3' | 'MQTT5' | 'AMQP' | 'NATS' | 'KAFKA';
170
+
171
+ /**
172
+ * Represents a event-type subscription.
173
+ */
174
+ export interface SimSwapSubscription {
175
+ /**
176
+ * The unique identifier of the subscription in the scope of the subscription
177
+ * manager. When this information is contained within an event notification, this
178
+ * concept SHALL be referred as subscriptionId as per Commonalities Event
179
+ * Notification Model.
180
+ */
181
+ id: string;
182
+
183
+ /**
184
+ * Implementation-specific configuration parameters needed by the subscription
185
+ * manager for acquiring events. In CAMARA we have predefined attributes like
186
+ * `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
187
+ * lifetime. Event type attributes must be defined in `subscriptionDetail`
188
+ */
189
+ config: SimSwapConfig;
190
+
191
+ /**
192
+ * Identifier of a delivery protocol. Only HTTP is allowed for now
193
+ */
194
+ protocol: SimSwapProtocol;
195
+
196
+ /**
197
+ * The address to which events shall be delivered using the selected protocol.
198
+ */
199
+ sink: string;
200
+
201
+ /**
202
+ * Camara Event types eligible for subscription:
203
+ *
204
+ * - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
205
+ * when a sim swap is performed on the line. Note: for the Commonalities
206
+ * meta-release v0.4 we enforce to have only event type per subscription then for
207
+ * following meta-release use of array MUST be decided at API project level.
208
+ */
209
+ types: Array<SimSwapSubscriptionEventType>;
210
+
211
+ /**
212
+ * Date when the event subscription will expire. Only provided when
213
+ * `subscriptionExpireTime` is indicated by API client or Telco Operator has
214
+ * specific policy about that. It must follow
215
+ * [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
216
+ * have time zone.
217
+ */
218
+ expiresAt?: string;
219
+
220
+ /**
221
+ * Date when the event subscription will begin/began It must follow
222
+ * [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
223
+ * have time zone.
224
+ */
225
+ startsAt?: string;
226
+
227
+ /**
228
+ * Current status of the subscription - Management of Subscription State engine is
229
+ * not mandatory for now. Note not all statuses may be considered to be
230
+ * implemented. Details:
231
+ *
232
+ * - `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but
233
+ * subscription creation process is not finished yet.
234
+ * - `ACTIVE`: Subscription creation process is completed. Subscription is fully
235
+ * operative.
236
+ * - `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is
237
+ * not deleted.
238
+ * - `EXPIRED`: Subscription is ended (no longer active). This status applies when
239
+ * subscription is ended due to `SUBSCRIPTION_EXPIRED` event.
240
+ * - `DELETED`: Subscription is ended as deleted (no longer active). This status
241
+ * applies when subscription information is kept (i.e. subscription workflow is
242
+ * no longer active but its metainformation is kept).
243
+ */
244
+ status?: 'ACTIVATION_REQUESTED' | 'ACTIVE' | 'EXPIRED' | 'INACTIVE' | 'DELETED';
245
+ }
246
+
247
+ /**
248
+ * swapped - Event triggered when a sim swap occurs on the line
249
+ */
250
+ export type SimSwapSubscriptionEventType = 'org.camaraproject.sim-swap-subscriptions.v0.swapped';
251
+
252
+ export type SubscriptionListResponse = Array<SimSwapSubscription>;
253
+
254
+ /**
255
+ * Response for a event-type subscription request managed asynchronously (Creation
256
+ * or Deletion)
257
+ */
258
+ export interface SubscriptionDeleteResponse {
259
+ /**
260
+ * The unique identifier of the subscription in the scope of the subscription
261
+ * manager. When this information is contained within an event notification, this
262
+ * concept SHALL be referred as subscriptionId as per Commonalities Event
263
+ * Notification Model.
264
+ */
265
+ id?: string;
266
+ }
267
+
268
+ export interface SubscriptionCreateParams {
269
+ /**
270
+ * Body param: Implementation-specific configuration parameters needed by the
271
+ * subscription manager for acquiring events. In CAMARA we have predefined
272
+ * attributes like `subscriptionExpireTime` or `subscriptionMaxEvents` to limit
273
+ * subscription lifetime. Event type attributes must be defined in
274
+ * `subscriptionDetail`
275
+ */
276
+ config: SimSwapConfig;
277
+
278
+ /**
279
+ * Body param: Identifier of a delivery protocol. Only HTTP is allowed for now
280
+ */
281
+ protocol: SimSwapProtocol;
282
+
283
+ /**
284
+ * Body param: The address to which events shall be delivered using the selected
285
+ * protocol.
286
+ */
287
+ sink: string;
288
+
289
+ /**
290
+ * Body param: Camara Event types eligible for subscription:
291
+ *
292
+ * - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
293
+ * when a sim swap is performed on the line.
294
+ */
295
+ types: Array<SimSwapSubscriptionEventType>;
296
+
297
+ /**
298
+ * Body param: A sink credential provides authentication or authorization
299
+ * information necessary to enable delivery of events to a target.
300
+ */
301
+ sinkCredential?: SubscriptionCreateParams.SinkCredential;
302
+
303
+ /**
304
+ * Header param: Correlation id for the different services
305
+ */
306
+ 'x-correlator'?: string;
307
+ }
308
+
309
+ export namespace SubscriptionCreateParams {
310
+ /**
311
+ * A sink credential provides authentication or authorization information necessary
312
+ * to enable delivery of events to a target.
313
+ */
314
+ export interface SinkCredential {
315
+ /**
316
+ * The type of the credential. With the current API version the type MUST be set to
317
+ * ACCESSTOKEN.
318
+ */
319
+ credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
320
+ }
321
+ }
322
+
323
+ export interface SubscriptionRetrieveParams {
324
+ /**
325
+ * Correlation id for the different services
326
+ */
327
+ 'x-correlator'?: string;
328
+ }
329
+
330
+ export interface SubscriptionListParams {
331
+ /**
332
+ * Correlation id for the different services
333
+ */
334
+ 'x-correlator'?: string;
335
+ }
336
+
337
+ export interface SubscriptionDeleteParams {
338
+ /**
339
+ * Correlation id for the different services
340
+ */
341
+ 'x-correlator'?: string;
342
+ }
343
+
344
+ export declare namespace Subscriptions {
345
+ export {
346
+ type SimSwapConfig as SimSwapConfig,
347
+ type SimSwapProtocol as SimSwapProtocol,
348
+ type SimSwapSubscription as SimSwapSubscription,
349
+ type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType,
350
+ type SubscriptionListResponse as SubscriptionListResponse,
351
+ type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
352
+ type SubscriptionCreateParams as SubscriptionCreateParams,
353
+ type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
354
+ type SubscriptionListParams as SubscriptionListParams,
355
+ type SubscriptionDeleteParams as SubscriptionDeleteParams,
356
+ };
357
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './simswap/index';