@spotto/contract 1.0.70-alpha.34 → 1.0.70-alpha.35

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 (778) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -1
  3. package/dist/actions/[id]/index.js +17 -17
  4. package/dist/actions/[id]/patch/index.d.ts +2 -2
  5. package/dist/actions/[id]/patch/index.js +18 -18
  6. package/dist/actions/[id]/patch/request.d.ts +16 -16
  7. package/dist/actions/[id]/patch/request.js +2 -2
  8. package/dist/actions/[id]/patch/response.d.ts +1 -1
  9. package/dist/actions/[id]/patch/response.js +2 -2
  10. package/dist/actions/get/index.d.ts +2 -2
  11. package/dist/actions/get/index.js +18 -18
  12. package/dist/actions/get/query.d.ts +14 -14
  13. package/dist/actions/get/query.js +2 -2
  14. package/dist/actions/get/response.d.ts +29 -29
  15. package/dist/actions/get/response.js +2 -2
  16. package/dist/actions/index.d.ts +4 -4
  17. package/dist/actions/index.js +20 -20
  18. package/dist/actions/post/index.d.ts +2 -2
  19. package/dist/actions/post/index.js +18 -18
  20. package/dist/actions/post/request.d.ts +15 -15
  21. package/dist/actions/post/request.js +2 -2
  22. package/dist/actions/post/response.d.ts +1 -1
  23. package/dist/actions/post/response.js +2 -2
  24. package/dist/actions/shared.d.ts +51 -51
  25. package/dist/actions/shared.js +12 -12
  26. package/dist/ai/chat/index.d.ts +2 -2
  27. package/dist/ai/chat/index.js +18 -18
  28. package/dist/ai/chat/request.d.ts +42 -42
  29. package/dist/ai/chat/request.js +2 -2
  30. package/dist/ai/chat/response.d.ts +74 -74
  31. package/dist/ai/chat/response.js +10 -10
  32. package/dist/ai/expression/index.d.ts +2 -2
  33. package/dist/ai/expression/index.js +18 -18
  34. package/dist/ai/expression/request.d.ts +29 -29
  35. package/dist/ai/expression/request.js +2 -2
  36. package/dist/ai/expression/response.d.ts +23 -23
  37. package/dist/ai/expression/response.js +2 -2
  38. package/dist/ai/index.d.ts +4 -4
  39. package/dist/ai/index.js +20 -20
  40. package/dist/ai/semantic-query/index.d.ts +2 -2
  41. package/dist/ai/semantic-query/index.js +18 -18
  42. package/dist/ai/semantic-query/request.d.ts +43 -43
  43. package/dist/ai/semantic-query/request.js +2 -2
  44. package/dist/ai/semantic-query/response.d.ts +40 -40
  45. package/dist/ai/semantic-query/response.js +2 -2
  46. package/dist/ai/shared.d.ts +22 -22
  47. package/dist/ai/shared.js +10 -10
  48. package/dist/assets/[id]/get.d.ts +86 -86
  49. package/dist/assets/[id]/get.js +2 -2
  50. package/dist/assets/[id]/index.d.ts +4 -4
  51. package/dist/assets/[id]/index.js +20 -20
  52. package/dist/assets/[id]/location.d.ts +6 -6
  53. package/dist/assets/[id]/location.js +2 -2
  54. package/dist/assets/[id]/patch/index.d.ts +2 -2
  55. package/dist/assets/[id]/patch/index.js +18 -18
  56. package/dist/assets/[id]/patch/request.d.ts +16 -16
  57. package/dist/assets/[id]/patch/request.js +2 -2
  58. package/dist/assets/[id]/patch/response.d.ts +7 -7
  59. package/dist/assets/[id]/patch/response.js +2 -2
  60. package/dist/assets/[id]/readers.d.ts +9 -9
  61. package/dist/assets/[id]/readers.js +2 -2
  62. package/dist/assets/count/index.d.ts +2 -2
  63. package/dist/assets/count/index.js +18 -18
  64. package/dist/assets/count/query.d.ts +16 -16
  65. package/dist/assets/count/query.js +2 -2
  66. package/dist/assets/count/response.d.ts +15 -15
  67. package/dist/assets/count/response.js +2 -2
  68. package/dist/assets/count-filtered/index.d.ts +1 -1
  69. package/dist/assets/count-filtered/index.js +17 -17
  70. package/dist/assets/count-filtered/response.d.ts +5 -5
  71. package/dist/assets/count-filtered/response.js +2 -2
  72. package/dist/assets/download/index.d.ts +2 -2
  73. package/dist/assets/download/index.js +18 -18
  74. package/dist/assets/download/query.d.ts +17 -17
  75. package/dist/assets/download/query.js +2 -2
  76. package/dist/assets/download/response.d.ts +3 -3
  77. package/dist/assets/download/response.js +2 -2
  78. package/dist/assets/errors.d.ts +3 -3
  79. package/dist/assets/errors.js +2 -2
  80. package/dist/assets/get/index.d.ts +2 -2
  81. package/dist/assets/get/index.js +18 -18
  82. package/dist/assets/get/query.d.ts +99 -95
  83. package/dist/assets/get/query.js +2 -2
  84. package/dist/assets/get/response.d.ts +12 -12
  85. package/dist/assets/get/response.js +2 -2
  86. package/dist/assets/index.d.ts +14 -14
  87. package/dist/assets/index.js +30 -30
  88. package/dist/assets/location/index.d.ts +2 -2
  89. package/dist/assets/location/index.js +18 -18
  90. package/dist/assets/location/request.d.ts +23 -23
  91. package/dist/assets/location/request.js +2 -2
  92. package/dist/assets/location/response.d.ts +2 -2
  93. package/dist/assets/location/response.js +2 -2
  94. package/dist/assets/partitions/index.d.ts +2 -2
  95. package/dist/assets/partitions/index.js +18 -18
  96. package/dist/assets/partitions/query.d.ts +9 -9
  97. package/dist/assets/partitions/query.js +2 -2
  98. package/dist/assets/partitions/response.d.ts +10 -10
  99. package/dist/assets/partitions/response.js +2 -2
  100. package/dist/assets/post/index.d.ts +2 -2
  101. package/dist/assets/post/index.js +18 -18
  102. package/dist/assets/post/request.d.ts +15 -15
  103. package/dist/assets/post/request.js +9 -9
  104. package/dist/assets/post/response.d.ts +11 -11
  105. package/dist/assets/post/response.js +2 -2
  106. package/dist/assets/readiness/index.d.ts +2 -2
  107. package/dist/assets/readiness/index.js +18 -18
  108. package/dist/assets/readiness/query.d.ts +7 -7
  109. package/dist/assets/readiness/query.js +2 -2
  110. package/dist/assets/readiness/response.d.ts +24 -24
  111. package/dist/assets/readiness/response.js +2 -2
  112. package/dist/assets/rollup/index.d.ts +2 -2
  113. package/dist/assets/rollup/index.js +18 -18
  114. package/dist/assets/rollup/query.d.ts +12 -12
  115. package/dist/assets/rollup/query.js +4 -4
  116. package/dist/assets/rollup/response.d.ts +58 -58
  117. package/dist/assets/rollup/response.js +2 -2
  118. package/dist/assets/suggestions/index.d.ts +2 -2
  119. package/dist/assets/suggestions/index.js +18 -18
  120. package/dist/assets/suggestions/query.d.ts +5 -5
  121. package/dist/assets/suggestions/query.js +2 -2
  122. package/dist/assets/suggestions/response.d.ts +15 -15
  123. package/dist/assets/suggestions/response.js +2 -2
  124. package/dist/assets/summary/index.d.ts +2 -2
  125. package/dist/assets/summary/index.js +18 -18
  126. package/dist/assets/summary/response.d.ts +7 -7
  127. package/dist/assets/summary/response.js +2 -2
  128. package/dist/assets/summary/summary.d.ts +9 -9
  129. package/dist/assets/summary/summary.js +2 -2
  130. package/dist/assets/upload/index.d.ts +2 -2
  131. package/dist/assets/upload/index.js +18 -18
  132. package/dist/assets/upload/request.d.ts +3 -3
  133. package/dist/assets/upload/request.js +2 -2
  134. package/dist/assets/upload/response.d.ts +7 -7
  135. package/dist/assets/upload/response.js +2 -2
  136. package/dist/errors.d.ts +4 -4
  137. package/dist/errors.js +2 -2
  138. package/dist/events/constants.d.ts +32 -32
  139. package/dist/events/constants.js +62 -62
  140. package/dist/events/count/index.d.ts +2 -2
  141. package/dist/events/count/index.js +18 -18
  142. package/dist/events/count/query.d.ts +5 -5
  143. package/dist/events/count/query.js +2 -2
  144. package/dist/events/count/response.d.ts +18 -18
  145. package/dist/events/count/response.js +2 -2
  146. package/dist/events/download/index.d.ts +2 -2
  147. package/dist/events/download/index.js +18 -18
  148. package/dist/events/download/query.d.ts +9 -9
  149. package/dist/events/download/query.js +2 -2
  150. package/dist/events/download/response.d.ts +3 -3
  151. package/dist/events/download/response.js +2 -2
  152. package/dist/events/get/index.d.ts +2 -2
  153. package/dist/events/get/index.js +18 -18
  154. package/dist/events/get/query.d.ts +40 -40
  155. package/dist/events/get/query.js +2 -2
  156. package/dist/events/get/response.d.ts +195 -195
  157. package/dist/events/get/response.js +2 -2
  158. package/dist/events/index.d.ts +5 -5
  159. package/dist/events/index.js +21 -21
  160. package/dist/events/post.d.ts +9 -9
  161. package/dist/events/post.js +2 -2
  162. package/dist/fields/[id]/get.d.ts +31 -31
  163. package/dist/fields/[id]/get.js +2 -2
  164. package/dist/fields/[id]/index.d.ts +2 -2
  165. package/dist/fields/[id]/index.js +18 -18
  166. package/dist/fields/[id]/patch/index.d.ts +2 -2
  167. package/dist/fields/[id]/patch/index.js +18 -18
  168. package/dist/fields/[id]/patch/request.d.ts +36 -36
  169. package/dist/fields/[id]/patch/request.js +2 -2
  170. package/dist/fields/[id]/patch/response.d.ts +1 -1
  171. package/dist/fields/[id]/patch/response.js +2 -2
  172. package/dist/fields/constants.d.ts +72 -72
  173. package/dist/fields/constants.js +55 -55
  174. package/dist/fields/get/index.d.ts +2 -2
  175. package/dist/fields/get/index.js +18 -18
  176. package/dist/fields/get/query.d.ts +9 -9
  177. package/dist/fields/get/query.js +2 -2
  178. package/dist/fields/get/response.d.ts +5 -5
  179. package/dist/fields/get/response.js +2 -2
  180. package/dist/fields/index.d.ts +5 -5
  181. package/dist/fields/index.js +21 -21
  182. package/dist/fields/post/index.d.ts +2 -2
  183. package/dist/fields/post/index.js +18 -18
  184. package/dist/fields/post/request.d.ts +24 -24
  185. package/dist/fields/post/request.js +8 -8
  186. package/dist/fields/post/response.d.ts +5 -5
  187. package/dist/fields/post/response.js +2 -2
  188. package/dist/fields/suggestions/index.d.ts +2 -2
  189. package/dist/fields/suggestions/index.js +18 -18
  190. package/dist/fields/suggestions/query.d.ts +5 -5
  191. package/dist/fields/suggestions/query.js +2 -2
  192. package/dist/fields/suggestions/response.d.ts +15 -15
  193. package/dist/fields/suggestions/response.js +2 -2
  194. package/dist/forms/[id]/index.d.ts +1 -1
  195. package/dist/forms/[id]/index.js +17 -17
  196. package/dist/forms/[id]/patch/index.d.ts +2 -2
  197. package/dist/forms/[id]/patch/index.js +18 -18
  198. package/dist/forms/[id]/patch/request.d.ts +14 -14
  199. package/dist/forms/[id]/patch/request.js +2 -2
  200. package/dist/forms/[id]/patch/response.d.ts +1 -1
  201. package/dist/forms/[id]/patch/response.js +2 -2
  202. package/dist/forms/constants.d.ts +19 -19
  203. package/dist/forms/constants.js +32 -32
  204. package/dist/forms/get/index.d.ts +2 -2
  205. package/dist/forms/get/index.js +18 -18
  206. package/dist/forms/get/query.d.ts +18 -18
  207. package/dist/forms/get/query.js +2 -2
  208. package/dist/forms/get/response.d.ts +23 -23
  209. package/dist/forms/get/response.js +2 -2
  210. package/dist/forms/index.d.ts +6 -6
  211. package/dist/forms/index.js +22 -22
  212. package/dist/forms/post/index.d.ts +2 -2
  213. package/dist/forms/post/index.js +18 -18
  214. package/dist/forms/post/request.d.ts +9 -9
  215. package/dist/forms/post/request.js +2 -2
  216. package/dist/forms/post/response.d.ts +1 -1
  217. package/dist/forms/post/response.js +2 -2
  218. package/dist/forms/shared.d.ts +136 -136
  219. package/dist/forms/shared.js +2 -2
  220. package/dist/forms/versions/index.d.ts +2 -2
  221. package/dist/forms/versions/index.js +18 -18
  222. package/dist/forms/versions/path.d.ts +8 -8
  223. package/dist/forms/versions/path.js +2 -2
  224. package/dist/forms/versions/response.d.ts +1 -1
  225. package/dist/forms/versions/response.js +2 -2
  226. package/dist/index.d.ts +29 -29
  227. package/dist/index.js +45 -45
  228. package/dist/integrations/constants.d.ts +43 -43
  229. package/dist/integrations/constants.js +7 -7
  230. package/dist/integrations/index.d.ts +3 -3
  231. package/dist/integrations/index.js +19 -19
  232. package/dist/integrations/mqtt/get.d.ts +1 -1
  233. package/dist/integrations/mqtt/get.js +2 -2
  234. package/dist/integrations/mqtt/index.d.ts +2 -2
  235. package/dist/integrations/mqtt/index.js +18 -18
  236. package/dist/integrations/mqtt/patch/index.d.ts +2 -2
  237. package/dist/integrations/mqtt/patch/index.js +18 -18
  238. package/dist/integrations/mqtt/patch/request.d.ts +3 -3
  239. package/dist/integrations/mqtt/patch/request.js +2 -2
  240. package/dist/integrations/mqtt/patch/response.d.ts +1 -1
  241. package/dist/integrations/mqtt/patch/response.js +2 -2
  242. package/dist/integrations/oneblink/index.d.ts +2 -2
  243. package/dist/integrations/oneblink/index.js +18 -18
  244. package/dist/integrations/oneblink/patch/index.d.ts +1 -1
  245. package/dist/integrations/oneblink/patch/index.js +17 -17
  246. package/dist/integrations/oneblink/patch/request.d.ts +8 -8
  247. package/dist/integrations/oneblink/patch/request.js +2 -2
  248. package/dist/integrations/oneblink/token.d.ts +6 -6
  249. package/dist/integrations/oneblink/token.js +2 -2
  250. package/dist/labels/[id]/get.d.ts +6 -6
  251. package/dist/labels/[id]/get.js +2 -2
  252. package/dist/labels/[id]/index.d.ts +2 -2
  253. package/dist/labels/[id]/index.js +18 -18
  254. package/dist/labels/[id]/patch/index.d.ts +2 -2
  255. package/dist/labels/[id]/patch/index.js +18 -18
  256. package/dist/labels/[id]/patch/request.d.ts +3 -3
  257. package/dist/labels/[id]/patch/request.js +2 -2
  258. package/dist/labels/[id]/patch/response.d.ts +1 -1
  259. package/dist/labels/[id]/patch/response.js +2 -2
  260. package/dist/labels/constants.d.ts +4 -4
  261. package/dist/labels/constants.js +2 -2
  262. package/dist/labels/get/index.d.ts +2 -2
  263. package/dist/labels/get/index.js +18 -18
  264. package/dist/labels/get/query.d.ts +11 -11
  265. package/dist/labels/get/query.js +2 -2
  266. package/dist/labels/get/response.d.ts +7 -7
  267. package/dist/labels/get/response.js +2 -2
  268. package/dist/labels/index.d.ts +4 -4
  269. package/dist/labels/index.js +20 -20
  270. package/dist/labels/post/index.d.ts +2 -2
  271. package/dist/labels/post/index.js +18 -18
  272. package/dist/labels/post/request.d.ts +4 -4
  273. package/dist/labels/post/request.js +2 -2
  274. package/dist/labels/post/response.d.ts +5 -5
  275. package/dist/labels/post/response.js +2 -2
  276. package/dist/locations/[id]/get.d.ts +39 -39
  277. package/dist/locations/[id]/get.js +2 -2
  278. package/dist/locations/[id]/index.d.ts +4 -4
  279. package/dist/locations/[id]/index.js +20 -20
  280. package/dist/locations/[id]/inventory.d.ts +9 -9
  281. package/dist/locations/[id]/inventory.js +2 -2
  282. package/dist/locations/[id]/patch/index.d.ts +2 -2
  283. package/dist/locations/[id]/patch/index.js +18 -18
  284. package/dist/locations/[id]/patch/request.d.ts +12 -12
  285. package/dist/locations/[id]/patch/request.js +2 -2
  286. package/dist/locations/[id]/patch/response.d.ts +7 -7
  287. package/dist/locations/[id]/patch/response.js +2 -2
  288. package/dist/locations/[id]/status.d.ts +4 -4
  289. package/dist/locations/[id]/status.js +2 -2
  290. package/dist/locations/constants.d.ts +13 -4
  291. package/dist/locations/constants.js +23 -14
  292. package/dist/locations/constants.js.map +1 -1
  293. package/dist/locations/count/index.d.ts +2 -2
  294. package/dist/locations/count/index.js +18 -18
  295. package/dist/locations/count/query.d.ts +1 -1
  296. package/dist/locations/count/query.js +2 -2
  297. package/dist/locations/count/response.d.ts +6 -6
  298. package/dist/locations/count/response.js +2 -2
  299. package/dist/locations/download/index.d.ts +2 -2
  300. package/dist/locations/download/index.js +18 -18
  301. package/dist/locations/download/query.d.ts +10 -10
  302. package/dist/locations/download/query.js +2 -2
  303. package/dist/locations/download/response.d.ts +3 -3
  304. package/dist/locations/download/response.js +2 -2
  305. package/dist/locations/errors.d.ts +3 -3
  306. package/dist/locations/errors.js +2 -2
  307. package/dist/locations/get/index.d.ts +2 -2
  308. package/dist/locations/get/index.js +18 -18
  309. package/dist/locations/get/query.d.ts +46 -46
  310. package/dist/locations/get/query.js +2 -2
  311. package/dist/locations/get/response.d.ts +7 -7
  312. package/dist/locations/get/response.js +2 -2
  313. package/dist/locations/index.d.ts +8 -8
  314. package/dist/locations/index.js +24 -24
  315. package/dist/locations/post/index.d.ts +2 -2
  316. package/dist/locations/post/index.js +18 -18
  317. package/dist/locations/post/request.d.ts +13 -13
  318. package/dist/locations/post/request.js +2 -2
  319. package/dist/locations/post/response.d.ts +11 -11
  320. package/dist/locations/post/response.js +2 -2
  321. package/dist/locations/suggestions/index.d.ts +2 -2
  322. package/dist/locations/suggestions/index.js +18 -18
  323. package/dist/locations/suggestions/query.d.ts +7 -7
  324. package/dist/locations/suggestions/query.js +2 -2
  325. package/dist/locations/suggestions/response.d.ts +15 -15
  326. package/dist/locations/suggestions/response.js +2 -2
  327. package/dist/manifests/[id]/get.d.ts +35 -35
  328. package/dist/manifests/[id]/get.js +38 -38
  329. package/dist/manifests/[id]/index.d.ts +2 -2
  330. package/dist/manifests/[id]/index.js +18 -18
  331. package/dist/manifests/[id]/patch/index.d.ts +2 -2
  332. package/dist/manifests/[id]/patch/index.js +18 -18
  333. package/dist/manifests/[id]/patch/request.d.ts +8 -8
  334. package/dist/manifests/[id]/patch/request.js +45 -45
  335. package/dist/manifests/[id]/patch/response.d.ts +1 -1
  336. package/dist/manifests/[id]/patch/response.js +2 -2
  337. package/dist/manifests/get/index.d.ts +2 -2
  338. package/dist/manifests/get/index.js +18 -18
  339. package/dist/manifests/get/query.d.ts +11 -11
  340. package/dist/manifests/get/query.js +2 -2
  341. package/dist/manifests/get/response.d.ts +7 -7
  342. package/dist/manifests/get/response.js +2 -2
  343. package/dist/manifests/index.d.ts +4 -4
  344. package/dist/manifests/index.js +20 -20
  345. package/dist/manifests/post/index.d.ts +2 -2
  346. package/dist/manifests/post/index.js +18 -18
  347. package/dist/manifests/post/request.d.ts +16 -16
  348. package/dist/manifests/post/request.js +51 -51
  349. package/dist/manifests/post/response.d.ts +5 -5
  350. package/dist/manifests/post/response.js +2 -2
  351. package/dist/manifests/suggestions/index.d.ts +2 -2
  352. package/dist/manifests/suggestions/index.js +18 -18
  353. package/dist/manifests/suggestions/query.d.ts +5 -5
  354. package/dist/manifests/suggestions/query.js +2 -2
  355. package/dist/manifests/suggestions/response.d.ts +15 -15
  356. package/dist/manifests/suggestions/response.js +2 -2
  357. package/dist/networks/constants.d.ts +6 -6
  358. package/dist/networks/constants.js +2 -2
  359. package/dist/networks/index.d.ts +1 -1
  360. package/dist/networks/index.js +17 -17
  361. package/dist/organisations/[id]/delete/index.d.ts +2 -2
  362. package/dist/organisations/[id]/delete/index.js +18 -18
  363. package/dist/organisations/[id]/delete/query.d.ts +3 -3
  364. package/dist/organisations/[id]/delete/query.js +2 -2
  365. package/dist/organisations/[id]/delete/response.d.ts +13 -13
  366. package/dist/organisations/[id]/delete/response.js +2 -2
  367. package/dist/organisations/[id]/get.d.ts +29 -29
  368. package/dist/organisations/[id]/get.js +2 -2
  369. package/dist/organisations/[id]/index.d.ts +4 -4
  370. package/dist/organisations/[id]/index.js +20 -20
  371. package/dist/organisations/[id]/patch/index.d.ts +2 -2
  372. package/dist/organisations/[id]/patch/index.js +18 -18
  373. package/dist/organisations/[id]/patch/request.d.ts +11 -11
  374. package/dist/organisations/[id]/patch/request.js +2 -2
  375. package/dist/organisations/[id]/patch/response.d.ts +1 -1
  376. package/dist/organisations/[id]/patch/response.js +2 -2
  377. package/dist/organisations/[id]/wifi/index.d.ts +2 -2
  378. package/dist/organisations/[id]/wifi/index.js +18 -18
  379. package/dist/organisations/[id]/wifi/query.d.ts +3 -3
  380. package/dist/organisations/[id]/wifi/query.js +2 -2
  381. package/dist/organisations/[id]/wifi/response.d.ts +4 -4
  382. package/dist/organisations/[id]/wifi/response.js +2 -2
  383. package/dist/organisations/constants.d.ts +46 -46
  384. package/dist/organisations/constants.js +2 -2
  385. package/dist/organisations/get/index.d.ts +2 -2
  386. package/dist/organisations/get/index.js +18 -18
  387. package/dist/organisations/get/query.d.ts +11 -11
  388. package/dist/organisations/get/query.js +2 -2
  389. package/dist/organisations/get/response.d.ts +7 -7
  390. package/dist/organisations/get/response.js +2 -2
  391. package/dist/organisations/index.d.ts +5 -5
  392. package/dist/organisations/index.js +21 -21
  393. package/dist/organisations/post/index.d.ts +2 -2
  394. package/dist/organisations/post/index.js +18 -18
  395. package/dist/organisations/post/request.d.ts +6 -6
  396. package/dist/organisations/post/request.js +2 -2
  397. package/dist/organisations/post/response.d.ts +1 -1
  398. package/dist/organisations/post/response.js +2 -2
  399. package/dist/organisations/sso/constants.d.ts +63 -63
  400. package/dist/organisations/sso/constants.js +65 -65
  401. package/dist/organisations/sso/index.d.ts +2 -2
  402. package/dist/organisations/sso/index.js +18 -18
  403. package/dist/organisations/sso/types.d.ts +162 -162
  404. package/dist/organisations/sso/types.js +12 -12
  405. package/dist/readers/[id]/get.d.ts +41 -41
  406. package/dist/readers/[id]/get.js +2 -2
  407. package/dist/readers/[id]/index.d.ts +4 -4
  408. package/dist/readers/[id]/index.js +20 -20
  409. package/dist/readers/[id]/inventory/index.d.ts +1 -1
  410. package/dist/readers/[id]/inventory/index.js +17 -17
  411. package/dist/readers/[id]/inventory/response.d.ts +5 -5
  412. package/dist/readers/[id]/inventory/response.js +2 -2
  413. package/dist/readers/[id]/patch/index.d.ts +2 -2
  414. package/dist/readers/[id]/patch/index.js +18 -18
  415. package/dist/readers/[id]/patch/request.d.ts +13 -13
  416. package/dist/readers/[id]/patch/request.js +2 -2
  417. package/dist/readers/[id]/patch/response.d.ts +1 -1
  418. package/dist/readers/[id]/patch/response.js +2 -2
  419. package/dist/readers/[id]/status.d.ts +4 -4
  420. package/dist/readers/[id]/status.js +2 -2
  421. package/dist/readers/constants/deviceTypes.d.ts +43 -43
  422. package/dist/readers/constants/deviceTypes.js +198 -198
  423. package/dist/readers/constants/index.d.ts +2 -2
  424. package/dist/readers/constants/index.js +18 -18
  425. package/dist/readers/constants/types.d.ts +10 -10
  426. package/dist/readers/constants/types.js +24 -24
  427. package/dist/readers/count/index.d.ts +2 -2
  428. package/dist/readers/count/index.js +18 -18
  429. package/dist/readers/count/query.d.ts +1 -1
  430. package/dist/readers/count/query.js +2 -2
  431. package/dist/readers/count/response.d.ts +5 -5
  432. package/dist/readers/count/response.js +2 -2
  433. package/dist/readers/download/index.d.ts +2 -2
  434. package/dist/readers/download/index.js +18 -18
  435. package/dist/readers/download/query.d.ts +10 -10
  436. package/dist/readers/download/query.js +2 -2
  437. package/dist/readers/download/response.d.ts +3 -3
  438. package/dist/readers/download/response.js +2 -2
  439. package/dist/readers/get/index.d.ts +2 -2
  440. package/dist/readers/get/index.js +18 -18
  441. package/dist/readers/get/query.d.ts +36 -36
  442. package/dist/readers/get/query.js +2 -2
  443. package/dist/readers/get/response.d.ts +7 -7
  444. package/dist/readers/get/response.js +2 -2
  445. package/dist/readers/index.d.ts +8 -8
  446. package/dist/readers/index.js +24 -24
  447. package/dist/readers/post/index.d.ts +2 -2
  448. package/dist/readers/post/index.js +18 -18
  449. package/dist/readers/post/request.d.ts +14 -14
  450. package/dist/readers/post/request.js +2 -2
  451. package/dist/readers/post/response.d.ts +5 -5
  452. package/dist/readers/post/response.js +2 -2
  453. package/dist/readers/suggestions/index.d.ts +2 -2
  454. package/dist/readers/suggestions/index.js +18 -18
  455. package/dist/readers/suggestions/query.d.ts +5 -5
  456. package/dist/readers/suggestions/query.js +2 -2
  457. package/dist/readers/suggestions/response.d.ts +15 -15
  458. package/dist/readers/suggestions/response.js +2 -2
  459. package/dist/readers/user/index.d.ts +2 -2
  460. package/dist/readers/user/index.js +18 -18
  461. package/dist/readers/user/request.d.ts +3 -3
  462. package/dist/readers/user/request.js +2 -2
  463. package/dist/readers/user/response.d.ts +8 -8
  464. package/dist/readers/user/response.js +2 -2
  465. package/dist/reports.d.ts +38 -38
  466. package/dist/reports.js +2 -2
  467. package/dist/roles/[id]/get.d.ts +6 -6
  468. package/dist/roles/[id]/get.js +2 -2
  469. package/dist/roles/[id]/index.d.ts +1 -1
  470. package/dist/roles/[id]/index.js +17 -17
  471. package/dist/roles/get/index.d.ts +2 -2
  472. package/dist/roles/get/index.js +18 -18
  473. package/dist/roles/get/query.d.ts +7 -7
  474. package/dist/roles/get/query.js +2 -2
  475. package/dist/roles/get/response.d.ts +7 -7
  476. package/dist/roles/get/response.js +2 -2
  477. package/dist/roles/index.d.ts +3 -3
  478. package/dist/roles/index.js +19 -19
  479. package/dist/roles/post/index.d.ts +2 -2
  480. package/dist/roles/post/index.js +18 -18
  481. package/dist/roles/post/request.d.ts +6 -6
  482. package/dist/roles/post/request.js +2 -2
  483. package/dist/roles/post/response.d.ts +1 -1
  484. package/dist/roles/post/response.js +2 -2
  485. package/dist/semantic-queries/[id]/index.d.ts +1 -1
  486. package/dist/semantic-queries/[id]/index.js +17 -17
  487. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -2
  488. package/dist/semantic-queries/[id]/patch/index.js +18 -18
  489. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -20
  490. package/dist/semantic-queries/[id]/patch/request.js +2 -2
  491. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -1
  492. package/dist/semantic-queries/[id]/patch/response.js +2 -2
  493. package/dist/semantic-queries/get/index.d.ts +2 -2
  494. package/dist/semantic-queries/get/index.js +18 -18
  495. package/dist/semantic-queries/get/query.d.ts +18 -18
  496. package/dist/semantic-queries/get/query.js +2 -2
  497. package/dist/semantic-queries/get/response.d.ts +40 -40
  498. package/dist/semantic-queries/get/response.js +2 -2
  499. package/dist/semantic-queries/index.d.ts +4 -4
  500. package/dist/semantic-queries/index.js +20 -20
  501. package/dist/semantic-queries/post/index.d.ts +2 -2
  502. package/dist/semantic-queries/post/index.js +18 -18
  503. package/dist/semantic-queries/post/request.d.ts +56 -56
  504. package/dist/semantic-queries/post/request.js +2 -2
  505. package/dist/semantic-queries/post/response.d.ts +1 -1
  506. package/dist/semantic-queries/post/response.js +2 -2
  507. package/dist/semantic-queries/shared.d.ts +876 -853
  508. package/dist/semantic-queries/shared.js +318 -317
  509. package/dist/semantic-queries/shared.js.map +1 -1
  510. package/dist/shared/attachments.d.ts +29 -29
  511. package/dist/shared/attachments.js +10 -10
  512. package/dist/shared/body.d.ts +6 -6
  513. package/dist/shared/body.js +2 -2
  514. package/dist/shared/delete.d.ts +3 -3
  515. package/dist/shared/delete.js +2 -2
  516. package/dist/shared/embed.d.ts +22 -22
  517. package/dist/shared/embed.js +2 -2
  518. package/dist/shared/errors.d.ts +3 -3
  519. package/dist/shared/errors.js +2 -2
  520. package/dist/shared/headers.d.ts +3 -3
  521. package/dist/shared/headers.js +2 -2
  522. package/dist/shared/index.d.ts +13 -13
  523. package/dist/shared/index.js +29 -29
  524. package/dist/shared/path.d.ts +3 -3
  525. package/dist/shared/path.js +2 -2
  526. package/dist/shared/query.d.ts +12 -12
  527. package/dist/shared/query.js +2 -2
  528. package/dist/shared/readiness.d.ts +81 -81
  529. package/dist/shared/readiness.js +10 -10
  530. package/dist/shared/relative-date.d.ts +17 -17
  531. package/dist/shared/relative-date.js +11 -11
  532. package/dist/shared/sort.d.ts +12 -12
  533. package/dist/shared/sort.js +13 -13
  534. package/dist/shared/timestamp.d.ts +2 -2
  535. package/dist/shared/timestamp.js +4 -4
  536. package/dist/shared/timezone.d.ts +4 -4
  537. package/dist/shared/timezone.js +357 -357
  538. package/dist/snapshots/[id]/get.d.ts +256 -256
  539. package/dist/snapshots/[id]/get.js +34 -34
  540. package/dist/snapshots/[id]/index.d.ts +1 -1
  541. package/dist/snapshots/[id]/index.js +17 -17
  542. package/dist/snapshots/get/index.d.ts +2 -2
  543. package/dist/snapshots/get/index.js +18 -18
  544. package/dist/snapshots/get/query.d.ts +64 -64
  545. package/dist/snapshots/get/query.js +26 -26
  546. package/dist/snapshots/get/response.d.ts +7 -7
  547. package/dist/snapshots/get/response.js +2 -2
  548. package/dist/snapshots/index.d.ts +3 -3
  549. package/dist/snapshots/index.js +19 -19
  550. package/dist/snapshots/post/index.d.ts +2 -2
  551. package/dist/snapshots/post/index.js +18 -18
  552. package/dist/snapshots/post/request.d.ts +54 -54
  553. package/dist/snapshots/post/request.js +239 -239
  554. package/dist/snapshots/post/response.d.ts +5 -5
  555. package/dist/snapshots/post/response.js +2 -2
  556. package/dist/sso/discover/index.d.ts +2 -2
  557. package/dist/sso/discover/index.js +18 -18
  558. package/dist/sso/discover/request.d.ts +9 -9
  559. package/dist/sso/discover/request.js +2 -2
  560. package/dist/sso/discover/response.d.ts +17 -17
  561. package/dist/sso/discover/response.js +2 -2
  562. package/dist/sso/get/index.d.ts +1 -1
  563. package/dist/sso/get/index.js +17 -17
  564. package/dist/sso/get/response.d.ts +22 -22
  565. package/dist/sso/get/response.js +2 -2
  566. package/dist/sso/idp-setup.d.ts +32 -32
  567. package/dist/sso/idp-setup.js +2 -2
  568. package/dist/sso/index.d.ts +7 -7
  569. package/dist/sso/index.js +23 -23
  570. package/dist/sso/offboard/index.d.ts +1 -1
  571. package/dist/sso/offboard/index.js +17 -17
  572. package/dist/sso/offboard/response.d.ts +9 -9
  573. package/dist/sso/offboard/response.js +2 -2
  574. package/dist/sso/onboard/index.d.ts +2 -2
  575. package/dist/sso/onboard/index.js +18 -18
  576. package/dist/sso/onboard/request.d.ts +70 -70
  577. package/dist/sso/onboard/request.js +2 -2
  578. package/dist/sso/onboard/response.d.ts +25 -25
  579. package/dist/sso/onboard/response.js +2 -2
  580. package/dist/sso/revert/index.d.ts +1 -1
  581. package/dist/sso/revert/index.js +17 -17
  582. package/dist/sso/revert/response.d.ts +33 -33
  583. package/dist/sso/revert/response.js +2 -2
  584. package/dist/sso/sso-mappings/index.d.ts +2 -2
  585. package/dist/sso/sso-mappings/index.js +18 -18
  586. package/dist/sso/sso-mappings/request.d.ts +19 -19
  587. package/dist/sso/sso-mappings/request.js +2 -2
  588. package/dist/sso/sso-mappings/response.d.ts +9 -9
  589. package/dist/sso/sso-mappings/response.js +2 -2
  590. package/dist/submissions/[id]/index.d.ts +1 -1
  591. package/dist/submissions/[id]/index.js +17 -17
  592. package/dist/submissions/[id]/void/post.d.ts +6 -6
  593. package/dist/submissions/[id]/void/post.js +2 -2
  594. package/dist/submissions/constants.d.ts +14 -14
  595. package/dist/submissions/constants.js +20 -20
  596. package/dist/submissions/get/index.d.ts +2 -2
  597. package/dist/submissions/get/index.js +18 -18
  598. package/dist/submissions/get/query.d.ts +14 -14
  599. package/dist/submissions/get/query.js +2 -2
  600. package/dist/submissions/get/response.d.ts +6 -6
  601. package/dist/submissions/get/response.js +2 -2
  602. package/dist/submissions/index.d.ts +6 -6
  603. package/dist/submissions/index.js +22 -22
  604. package/dist/submissions/post/index.d.ts +2 -2
  605. package/dist/submissions/post/index.js +18 -18
  606. package/dist/submissions/post/request.d.ts +17 -17
  607. package/dist/submissions/post/request.js +2 -2
  608. package/dist/submissions/post/response.d.ts +22 -22
  609. package/dist/submissions/post/response.js +2 -2
  610. package/dist/submissions/shared.d.ts +133 -133
  611. package/dist/submissions/shared.js +2 -2
  612. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -11
  613. package/dist/submissions/uploads/[fileId]/get.js +2 -2
  614. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -1
  615. package/dist/submissions/uploads/[fileId]/index.js +17 -17
  616. package/dist/submissions/uploads/index.d.ts +2 -2
  617. package/dist/submissions/uploads/index.js +18 -18
  618. package/dist/submissions/uploads/post/index.d.ts +2 -2
  619. package/dist/submissions/uploads/post/index.js +18 -18
  620. package/dist/submissions/uploads/post/request.d.ts +9 -9
  621. package/dist/submissions/uploads/post/request.js +2 -2
  622. package/dist/submissions/uploads/post/response.d.ts +18 -18
  623. package/dist/submissions/uploads/post/response.js +2 -2
  624. package/dist/system/index.d.ts +5 -5
  625. package/dist/system/index.js +2 -2
  626. package/dist/tags/constants.d.ts +9 -9
  627. package/dist/tags/constants.js +2 -2
  628. package/dist/tags/errors.d.ts +19 -19
  629. package/dist/tags/errors.js +2 -2
  630. package/dist/tags/get/index.d.ts +2 -2
  631. package/dist/tags/get/index.js +18 -18
  632. package/dist/tags/get/query.d.ts +3 -3
  633. package/dist/tags/get/query.js +2 -2
  634. package/dist/tags/get/response.d.ts +7 -7
  635. package/dist/tags/get/response.js +2 -2
  636. package/dist/tags/index.d.ts +3 -3
  637. package/dist/tags/index.js +19 -19
  638. package/dist/telemetry.d.ts +10 -10
  639. package/dist/telemetry.js +2 -2
  640. package/dist/types/[id]/get.d.ts +69 -69
  641. package/dist/types/[id]/get.js +2 -2
  642. package/dist/types/[id]/index.d.ts +2 -2
  643. package/dist/types/[id]/index.js +18 -18
  644. package/dist/types/[id]/patch/index.d.ts +2 -2
  645. package/dist/types/[id]/patch/index.js +18 -18
  646. package/dist/types/[id]/patch/request.d.ts +33 -33
  647. package/dist/types/[id]/patch/request.js +2 -2
  648. package/dist/types/[id]/patch/response.d.ts +1 -1
  649. package/dist/types/[id]/patch/response.js +2 -2
  650. package/dist/types/constants.d.ts +9 -9
  651. package/dist/types/constants.js +12 -12
  652. package/dist/types/get/index.d.ts +2 -2
  653. package/dist/types/get/index.js +18 -18
  654. package/dist/types/get/query.d.ts +10 -10
  655. package/dist/types/get/query.js +2 -2
  656. package/dist/types/get/response.d.ts +7 -7
  657. package/dist/types/get/response.js +2 -2
  658. package/dist/types/hierarchy/index.d.ts +1 -1
  659. package/dist/types/hierarchy/index.js +17 -17
  660. package/dist/types/hierarchy/response.d.ts +8 -8
  661. package/dist/types/hierarchy/response.js +27 -27
  662. package/dist/types/index.d.ts +6 -6
  663. package/dist/types/index.js +22 -22
  664. package/dist/types/post/index.d.ts +2 -2
  665. package/dist/types/post/index.js +18 -18
  666. package/dist/types/post/request.d.ts +110 -110
  667. package/dist/types/post/request.js +24 -24
  668. package/dist/types/post/response.d.ts +5 -5
  669. package/dist/types/post/response.js +2 -2
  670. package/dist/types/suggestions/index.d.ts +2 -2
  671. package/dist/types/suggestions/index.js +18 -18
  672. package/dist/types/suggestions/query.d.ts +5 -5
  673. package/dist/types/suggestions/query.js +2 -2
  674. package/dist/types/suggestions/response.d.ts +15 -15
  675. package/dist/types/suggestions/response.js +2 -2
  676. package/dist/usergroups/[id]/index.d.ts +1 -1
  677. package/dist/usergroups/[id]/index.js +17 -17
  678. package/dist/usergroups/[id]/patch/index.d.ts +2 -2
  679. package/dist/usergroups/[id]/patch/index.js +18 -18
  680. package/dist/usergroups/[id]/patch/request.d.ts +20 -20
  681. package/dist/usergroups/[id]/patch/request.js +2 -2
  682. package/dist/usergroups/[id]/patch/response.d.ts +1 -1
  683. package/dist/usergroups/[id]/patch/response.js +2 -2
  684. package/dist/usergroups/get/index.d.ts +2 -2
  685. package/dist/usergroups/get/index.js +18 -18
  686. package/dist/usergroups/get/query.d.ts +12 -12
  687. package/dist/usergroups/get/query.js +2 -2
  688. package/dist/usergroups/get/response.d.ts +44 -44
  689. package/dist/usergroups/get/response.js +2 -2
  690. package/dist/usergroups/index.d.ts +4 -4
  691. package/dist/usergroups/index.js +20 -20
  692. package/dist/usergroups/post/index.d.ts +2 -2
  693. package/dist/usergroups/post/index.js +18 -18
  694. package/dist/usergroups/post/request.d.ts +14 -14
  695. package/dist/usergroups/post/request.js +2 -2
  696. package/dist/usergroups/post/response.d.ts +1 -1
  697. package/dist/usergroups/post/response.js +2 -2
  698. package/dist/usergroups/shared.d.ts +25 -25
  699. package/dist/usergroups/shared.js +10 -10
  700. package/dist/users/[id]/disable.d.ts +7 -7
  701. package/dist/users/[id]/disable.js +2 -2
  702. package/dist/users/[id]/enable.d.ts +6 -6
  703. package/dist/users/[id]/enable.js +2 -2
  704. package/dist/users/[id]/get/index.d.ts +2 -2
  705. package/dist/users/[id]/get/index.js +18 -18
  706. package/dist/users/[id]/get/query.d.ts +3 -3
  707. package/dist/users/[id]/get/query.js +2 -2
  708. package/dist/users/[id]/get/response.d.ts +39 -39
  709. package/dist/users/[id]/get/response.js +2 -2
  710. package/dist/users/[id]/index.d.ts +5 -5
  711. package/dist/users/[id]/index.js +21 -21
  712. package/dist/users/[id]/key.d.ts +3 -3
  713. package/dist/users/[id]/key.js +2 -2
  714. package/dist/users/[id]/patch/index.d.ts +2 -2
  715. package/dist/users/[id]/patch/index.js +18 -18
  716. package/dist/users/[id]/patch/request.d.ts +10 -10
  717. package/dist/users/[id]/patch/request.js +2 -2
  718. package/dist/users/[id]/patch/response.d.ts +1 -1
  719. package/dist/users/[id]/patch/response.js +2 -2
  720. package/dist/users/console.d.ts +15 -15
  721. package/dist/users/console.js +4 -4
  722. package/dist/users/constants.d.ts +2 -2
  723. package/dist/users/constants.js +4 -4
  724. package/dist/users/current.d.ts +87 -87
  725. package/dist/users/current.js +2 -2
  726. package/dist/users/get/index.d.ts +2 -2
  727. package/dist/users/get/index.js +18 -18
  728. package/dist/users/get/query.d.ts +15 -15
  729. package/dist/users/get/query.js +2 -2
  730. package/dist/users/get/response.d.ts +7 -7
  731. package/dist/users/get/response.js +2 -2
  732. package/dist/users/home-layout/index.d.ts +3 -3
  733. package/dist/users/home-layout/index.js +19 -19
  734. package/dist/users/home-layout/request.d.ts +5 -5
  735. package/dist/users/home-layout/request.js +2 -2
  736. package/dist/users/home-layout/response.d.ts +5 -5
  737. package/dist/users/home-layout/response.js +2 -2
  738. package/dist/users/home-layout/shared.d.ts +288 -288
  739. package/dist/users/home-layout/shared.js +29 -29
  740. package/dist/users/index.d.ts +9 -9
  741. package/dist/users/index.js +25 -25
  742. package/dist/users/invites.d.ts +19 -19
  743. package/dist/users/invites.js +2 -2
  744. package/dist/users/password-reset.d.ts +33 -33
  745. package/dist/users/password-reset.js +2 -2
  746. package/dist/users/post/index.d.ts +2 -2
  747. package/dist/users/post/index.js +18 -18
  748. package/dist/users/post/request.d.ts +25 -25
  749. package/dist/users/post/request.js +2 -2
  750. package/dist/users/post/response.d.ts +1 -1
  751. package/dist/users/post/response.js +2 -2
  752. package/dist/views/[id]/index.d.ts +1 -1
  753. package/dist/views/[id]/index.js +17 -17
  754. package/dist/views/[id]/patch/index.d.ts +2 -2
  755. package/dist/views/[id]/patch/index.js +18 -18
  756. package/dist/views/[id]/patch/request.d.ts +9 -9
  757. package/dist/views/[id]/patch/request.js +2 -2
  758. package/dist/views/[id]/patch/response.d.ts +1 -1
  759. package/dist/views/[id]/patch/response.js +2 -2
  760. package/dist/views/get/index.d.ts +2 -2
  761. package/dist/views/get/index.js +18 -18
  762. package/dist/views/get/query.d.ts +12 -12
  763. package/dist/views/get/query.js +2 -2
  764. package/dist/views/get/response.d.ts +20 -20
  765. package/dist/views/get/response.js +2 -2
  766. package/dist/views/index.d.ts +4 -4
  767. package/dist/views/index.js +20 -20
  768. package/dist/views/post/index.d.ts +2 -2
  769. package/dist/views/post/index.js +18 -18
  770. package/dist/views/post/request.d.ts +10 -10
  771. package/dist/views/post/request.js +2 -2
  772. package/dist/views/post/response.d.ts +1 -1
  773. package/dist/views/post/response.js +2 -2
  774. package/dist/views/shared.d.ts +27 -27
  775. package/dist/views/shared.js +2 -2
  776. package/dist/workflows/index.d.ts +44 -44
  777. package/dist/workflows/index.js +2 -2
  778. package/package.json +2 -2
@@ -1,22 +1,22 @@
1
- import { SsoConfig } from '../../organisations/sso';
2
- import { SamlIdpSetup } from '../idp-setup';
3
- /**
4
- * Response shape for `GET /sso/orgs/:id`.
5
- *
6
- * `config` is the persisted SSO config — always a discriminated `SsoConfig`,
7
- * with `{ enabled: false }` for orgs that don't have SSO (rather than 404),
8
- * so the FE can drive its UI from the discriminator without separate
9
- * "exists" handling.
10
- *
11
- * `samlSetup` is populated only when `config.mode === 'saml'`. Carries the
12
- * values the operator needs to paste into their IdP's SAML config dialog.
13
- * Absent for OIDC and disabled orgs.
14
- *
15
- * Scoped to super-users only (via `sso:admin` + cross-account ancestry).
16
- * The customer-facing `GET /organisations/:id` deliberately does NOT
17
- * include this — SSO config is super-user-only data in the short term.
18
- */
19
- export interface GetSsoOrgResponse {
20
- config: SsoConfig;
21
- samlSetup?: SamlIdpSetup;
22
- }
1
+ import { SsoConfig } from '../../organisations/sso';
2
+ import { SamlIdpSetup } from '../idp-setup';
3
+ /**
4
+ * Response shape for `GET /sso/orgs/:id`.
5
+ *
6
+ * `config` is the persisted SSO config — always a discriminated `SsoConfig`,
7
+ * with `{ enabled: false }` for orgs that don't have SSO (rather than 404),
8
+ * so the FE can drive its UI from the discriminator without separate
9
+ * "exists" handling.
10
+ *
11
+ * `samlSetup` is populated only when `config.mode === 'saml'`. Carries the
12
+ * values the operator needs to paste into their IdP's SAML config dialog.
13
+ * Absent for OIDC and disabled orgs.
14
+ *
15
+ * Scoped to super-users only (via `sso:admin` + cross-account ancestry).
16
+ * The customer-facing `GET /organisations/:id` deliberately does NOT
17
+ * include this — SSO config is super-user-only data in the short term.
18
+ */
19
+ export interface GetSsoOrgResponse {
20
+ config: SsoConfig;
21
+ samlSetup?: SamlIdpSetup;
22
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,32 +1,32 @@
1
- /**
2
- * IdP-side configuration values an operator needs to plug into their IdP
3
- * (e.g. Auth0's SAML2 Web App "Settings" JSON) to complete the SSO setup.
4
- *
5
- * Returned on the onboard and GET-org-SSO responses so the super-user UI
6
- * can render copy-paste blocks. Generic-shaped — the FE renders them in
7
- * the IdP-specific format the operator's tool expects (Auth0, Entra,
8
- * Okta, etc., all take similar values in slightly different containers).
9
- *
10
- * The `acsUrl` (where the IdP POSTs the SAML response) is not in this
11
- * payload because the FE already knows its Cognito hosted UI domain and
12
- * can compose `${domain}/saml2/idpresponse` itself — keeps the backend
13
- * free of an extra hosted-UI-domain config knob.
14
- */
15
- export interface SamlIdpSetup {
16
- /**
17
- * The Cognito SP audience URN. For Auth0 SAML2 Web App, paste into the
18
- * "audience" field. For Entra / Okta, the equivalent "Entity ID" /
19
- * "Audience" field.
20
- */
21
- audience: string;
22
- /**
23
- * SAML attribute name mappings. Key is the Cognito-side user attribute
24
- * name; value is the SAML attribute Name the IdP must emit. Auth0
25
- * SAML2 Web App's "mappings" field takes this shape directly.
26
- */
27
- mappings: Record<string, string>;
28
- /**
29
- * NameID format Cognito expects from the IdP.
30
- */
31
- nameIdentifierFormat: string;
32
- }
1
+ /**
2
+ * IdP-side configuration values an operator needs to plug into their IdP
3
+ * (e.g. Auth0's SAML2 Web App "Settings" JSON) to complete the SSO setup.
4
+ *
5
+ * Returned on the onboard and GET-org-SSO responses so the super-user UI
6
+ * can render copy-paste blocks. Generic-shaped — the FE renders them in
7
+ * the IdP-specific format the operator's tool expects (Auth0, Entra,
8
+ * Okta, etc., all take similar values in slightly different containers).
9
+ *
10
+ * The `acsUrl` (where the IdP POSTs the SAML response) is not in this
11
+ * payload because the FE already knows its Cognito hosted UI domain and
12
+ * can compose `${domain}/saml2/idpresponse` itself — keeps the backend
13
+ * free of an extra hosted-UI-domain config knob.
14
+ */
15
+ export interface SamlIdpSetup {
16
+ /**
17
+ * The Cognito SP audience URN. For Auth0 SAML2 Web App, paste into the
18
+ * "audience" field. For Entra / Okta, the equivalent "Entity ID" /
19
+ * "Audience" field.
20
+ */
21
+ audience: string;
22
+ /**
23
+ * SAML attribute name mappings. Key is the Cognito-side user attribute
24
+ * name; value is the SAML attribute Name the IdP must emit. Auth0
25
+ * SAML2 Web App's "mappings" field takes this shape directly.
26
+ */
27
+ mappings: Record<string, string>;
28
+ /**
29
+ * NameID format Cognito expects from the IdP.
30
+ */
31
+ nameIdentifierFormat: string;
32
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=idp-setup.js.map
@@ -1,7 +1,7 @@
1
- export * from './discover';
2
- export * from './get';
3
- export * from './idp-setup';
4
- export * from './onboard';
5
- export * from './offboard';
6
- export * from './revert';
7
- export * from './sso-mappings';
1
+ export * from './discover';
2
+ export * from './get';
3
+ export * from './idp-setup';
4
+ export * from './onboard';
5
+ export * from './offboard';
6
+ export * from './revert';
7
+ export * from './sso-mappings';
package/dist/sso/index.js CHANGED
@@ -1,24 +1,24 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./discover"), exports);
18
- __exportStar(require("./get"), exports);
19
- __exportStar(require("./idp-setup"), exports);
20
- __exportStar(require("./onboard"), exports);
21
- __exportStar(require("./offboard"), exports);
22
- __exportStar(require("./revert"), exports);
23
- __exportStar(require("./sso-mappings"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discover"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./idp-setup"), exports);
20
+ __exportStar(require("./onboard"), exports);
21
+ __exportStar(require("./offboard"), exports);
22
+ __exportStar(require("./revert"), exports);
23
+ __exportStar(require("./sso-mappings"), exports);
24
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from './response';
1
+ export * from './response';
@@ -1,18 +1,18 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./response"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./response"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- /**
2
- * Response shape for `POST /sso/orgs/:id/offboard`. No body fields beyond
3
- * the audit correlationId — the offboard is fire-and-forget from the
4
- * caller's perspective; outcomes are queryable by correlationId in the
5
- * audit logs.
6
- */
7
- export interface OffboardSsoOrgResponse {
8
- correlationId: string;
9
- }
1
+ /**
2
+ * Response shape for `POST /sso/orgs/:id/offboard`. No body fields beyond
3
+ * the audit correlationId — the offboard is fire-and-forget from the
4
+ * caller's perspective; outcomes are queryable by correlationId in the
5
+ * audit logs.
6
+ */
7
+ export interface OffboardSsoOrgResponse {
8
+ correlationId: string;
9
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,2 +1,2 @@
1
- export * from './request';
2
- export * from './response';
1
+ export * from './request';
2
+ export * from './response';
@@ -1,19 +1,19 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./request"), exports);
18
- __exportStar(require("./response"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./request"), exports);
18
+ __exportStar(require("./response"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,70 +1,70 @@
1
- import { RoleMappingInput, UsergroupMappingInput } from '../../organisations/sso';
2
- /**
3
- * Wire shape for `POST /sso/orgs/:id/onboard`. Operator-supplied fields only.
4
- *
5
- * Two persisted-shape fields are NOT wire inputs:
6
- *
7
- * - `cognitoProviderName` — orchestrator computes it deterministically from
8
- * the org's `_id` (`buildSsoProviderName` → `sso-{orgId}`).
9
- * - `cognitoClientId` — orchestrator returns the Client ID it created.
10
- *
11
- * `idpRoleClaim` IS a wire input — it names the IdP claim that the per-org
12
- * Cognito `AttributeMapping` should wire into `custom:g2g_role`. Customers
13
- * pick whatever their IdP naturally emits (e.g. `roles`, `groups`); Spotto
14
- * maps the captured values to roles via `roleMappings`.
15
- */
16
- interface OnboardSsoOrgWireBase {
17
- emailDomains: string[];
18
- inactivityTimeoutMinutes?: number;
19
- unknownRoleAction: {
20
- type: 'deny';
21
- } | {
22
- type: 'defaultRole';
23
- roleId: string;
24
- };
25
- callbackUrls: string[];
26
- logoutUrls: string[];
27
- idpRoleClaim: string;
28
- /**
29
- * Initial mappings. Optional — when absent or empty, every federated
30
- * sign-in falls through to `unknownRoleAction` until the admin populates
31
- * mappings via `PUT /sso/orgs/:id/sso-mappings`.
32
- */
33
- roleMappings?: RoleMappingInput[];
34
- /**
35
- * IdP claim to wire into `custom:g2g_groups`. Optional — group mapping is
36
- * opt-in; absent means no group sync for the org until configured via
37
- * `PUT /sso/orgs/:id/sso-mappings`.
38
- */
39
- idpGroupClaim?: string;
40
- /**
41
- * Initial usergroup mappings (union semantics — see `UsergroupMapping`).
42
- * Only meaningful alongside `idpGroupClaim`.
43
- */
44
- usergroupMappings?: UsergroupMappingInput[];
45
- /**
46
- * Opt-in to mixed-mode: allow password-auth users alongside SSO-managed
47
- * users in the same org. Password-user emails must be OUTSIDE
48
- * `emailDomains`. Defaults to `false`.
49
- */
50
- allowGuestUsers?: boolean;
51
- /**
52
- * Testing escape hatch: when `true`, federation is allowed for users
53
- * whose email domain isn't in `emailDomains`. See `SsoEnabledBase`.
54
- * Defaults to `false`.
55
- */
56
- allowOutOfDomainEmails?: boolean;
57
- }
58
- export interface OnboardSsoOrgOidcRequest extends OnboardSsoOrgWireBase {
59
- mode: 'oidc';
60
- oidcIssuer: string;
61
- oidcClientId: string;
62
- oidcClientSecret: string;
63
- }
64
- export interface OnboardSsoOrgSamlRequest extends OnboardSsoOrgWireBase {
65
- mode: 'saml';
66
- metadataUrl: string;
67
- enableSamlLogout: boolean;
68
- }
69
- export declare type OnboardSsoOrgRequest = OnboardSsoOrgOidcRequest | OnboardSsoOrgSamlRequest;
70
- export {};
1
+ import { RoleMappingInput, UsergroupMappingInput } from '../../organisations/sso';
2
+ /**
3
+ * Wire shape for `POST /sso/orgs/:id/onboard`. Operator-supplied fields only.
4
+ *
5
+ * Two persisted-shape fields are NOT wire inputs:
6
+ *
7
+ * - `cognitoProviderName` — orchestrator computes it deterministically from
8
+ * the org's `_id` (`buildSsoProviderName` → `sso-{orgId}`).
9
+ * - `cognitoClientId` — orchestrator returns the Client ID it created.
10
+ *
11
+ * `idpRoleClaim` IS a wire input — it names the IdP claim that the per-org
12
+ * Cognito `AttributeMapping` should wire into `custom:g2g_role`. Customers
13
+ * pick whatever their IdP naturally emits (e.g. `roles`, `groups`); Spotto
14
+ * maps the captured values to roles via `roleMappings`.
15
+ */
16
+ interface OnboardSsoOrgWireBase {
17
+ emailDomains: string[];
18
+ inactivityTimeoutMinutes?: number;
19
+ unknownRoleAction: {
20
+ type: 'deny';
21
+ } | {
22
+ type: 'defaultRole';
23
+ roleId: string;
24
+ };
25
+ callbackUrls: string[];
26
+ logoutUrls: string[];
27
+ idpRoleClaim: string;
28
+ /**
29
+ * Initial mappings. Optional — when absent or empty, every federated
30
+ * sign-in falls through to `unknownRoleAction` until the admin populates
31
+ * mappings via `PUT /sso/orgs/:id/sso-mappings`.
32
+ */
33
+ roleMappings?: RoleMappingInput[];
34
+ /**
35
+ * IdP claim to wire into `custom:g2g_groups`. Optional — group mapping is
36
+ * opt-in; absent means no group sync for the org until configured via
37
+ * `PUT /sso/orgs/:id/sso-mappings`.
38
+ */
39
+ idpGroupClaim?: string;
40
+ /**
41
+ * Initial usergroup mappings (union semantics — see `UsergroupMapping`).
42
+ * Only meaningful alongside `idpGroupClaim`.
43
+ */
44
+ usergroupMappings?: UsergroupMappingInput[];
45
+ /**
46
+ * Opt-in to mixed-mode: allow password-auth users alongside SSO-managed
47
+ * users in the same org. Password-user emails must be OUTSIDE
48
+ * `emailDomains`. Defaults to `false`.
49
+ */
50
+ allowGuestUsers?: boolean;
51
+ /**
52
+ * Testing escape hatch: when `true`, federation is allowed for users
53
+ * whose email domain isn't in `emailDomains`. See `SsoEnabledBase`.
54
+ * Defaults to `false`.
55
+ */
56
+ allowOutOfDomainEmails?: boolean;
57
+ }
58
+ export interface OnboardSsoOrgOidcRequest extends OnboardSsoOrgWireBase {
59
+ mode: 'oidc';
60
+ oidcIssuer: string;
61
+ oidcClientId: string;
62
+ oidcClientSecret: string;
63
+ }
64
+ export interface OnboardSsoOrgSamlRequest extends OnboardSsoOrgWireBase {
65
+ mode: 'saml';
66
+ metadataUrl: string;
67
+ enableSamlLogout: boolean;
68
+ }
69
+ export declare type OnboardSsoOrgRequest = OnboardSsoOrgOidcRequest | OnboardSsoOrgSamlRequest;
70
+ export {};
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=request.js.map
@@ -1,25 +1,25 @@
1
- import { SamlIdpSetup } from '../idp-setup';
2
- /**
3
- * Response shape for `POST /sso/orgs/:id/onboard`. Returned on the success
4
- * path; on failure the standard ValidationError / DatabaseError envelope
5
- * is used.
6
- *
7
- * `cognitoProviderName` and `cognitoClientId` are what the frontend needs
8
- * to construct the federated sign-in redirect URL — return them so the
9
- * super-user UI can display them after a successful onboard without an
10
- * extra round-trip.
11
- *
12
- * `correlationId` threads through every audit log entry for this onboard
13
- * — useful to surface in the UI for ops to copy-paste when investigating.
14
- *
15
- * `samlSetup` is populated only on SAML onboards. It carries the values
16
- * the operator needs to plug into their IdP's SAML config dialog (Auth0
17
- * SAML2 Web App, Entra Enterprise Application, Okta SAML app, etc.).
18
- * Absent for OIDC onboards.
19
- */
20
- export interface OnboardSsoOrgResponse {
21
- cognitoProviderName: string;
22
- cognitoClientId: string;
23
- correlationId: string;
24
- samlSetup?: SamlIdpSetup;
25
- }
1
+ import { SamlIdpSetup } from '../idp-setup';
2
+ /**
3
+ * Response shape for `POST /sso/orgs/:id/onboard`. Returned on the success
4
+ * path; on failure the standard ValidationError / DatabaseError envelope
5
+ * is used.
6
+ *
7
+ * `cognitoProviderName` and `cognitoClientId` are what the frontend needs
8
+ * to construct the federated sign-in redirect URL — return them so the
9
+ * super-user UI can display them after a successful onboard without an
10
+ * extra round-trip.
11
+ *
12
+ * `correlationId` threads through every audit log entry for this onboard
13
+ * — useful to surface in the UI for ops to copy-paste when investigating.
14
+ *
15
+ * `samlSetup` is populated only on SAML onboards. It carries the values
16
+ * the operator needs to plug into their IdP's SAML config dialog (Auth0
17
+ * SAML2 Web App, Entra Enterprise Application, Okta SAML app, etc.).
18
+ * Absent for OIDC onboards.
19
+ */
20
+ export interface OnboardSsoOrgResponse {
21
+ cognitoProviderName: string;
22
+ cognitoClientId: string;
23
+ correlationId: string;
24
+ samlSetup?: SamlIdpSetup;
25
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1 +1 @@
1
- export * from './response';
1
+ export * from './response';
@@ -1,18 +1,18 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./response"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./response"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,33 +1,33 @@
1
- /**
2
- * Per-user revert outcome.
3
- *
4
- * - `reverted` — pre-SSO native Cognito record restored. User logs in with
5
- * their original pre-SSO password.
6
- * - `noPriorAccount` — user was JIT-created post-SSO; no native record to
7
- * restore. Loses access. Operator must manually re-add.
8
- * - `skippedGuest` — user's email domain is outside the org's
9
- * (now-removed) `sso.emailDomains`, so they were never federation-
10
- * managed in the first place. Their native Cognito record is intact
11
- * and they retain access. No Mongo write needed. (Name kept for
12
- * contract stability; semantically "skipped because not SSO-bound".)
13
- * - `failed` — Mongo update threw mid-loop; see `error`. The revert as a
14
- * whole continues processing other users; an operator can retry the
15
- * failed ones.
16
- */
17
- export interface RevertedUserResult {
18
- /** Mongo user `_id` as 24-char hex. */
19
- userId: string;
20
- email: string;
21
- status: 'reverted' | 'noPriorAccount' | 'skippedGuest' | 'failed';
22
- error?: string;
23
- }
24
- /**
25
- * Response shape for `POST /sso/orgs/:id/revert`. Use the `users` array to
26
- * surface the per-user outcome in the UI — particularly the
27
- * `noPriorAccount` rows so the operator knows which users they need to
28
- * manually re-add.
29
- */
30
- export interface RevertSsoOrgResponse {
31
- correlationId: string;
32
- users: RevertedUserResult[];
33
- }
1
+ /**
2
+ * Per-user revert outcome.
3
+ *
4
+ * - `reverted` — pre-SSO native Cognito record restored. User logs in with
5
+ * their original pre-SSO password.
6
+ * - `noPriorAccount` — user was JIT-created post-SSO; no native record to
7
+ * restore. Loses access. Operator must manually re-add.
8
+ * - `skippedGuest` — user's email domain is outside the org's
9
+ * (now-removed) `sso.emailDomains`, so they were never federation-
10
+ * managed in the first place. Their native Cognito record is intact
11
+ * and they retain access. No Mongo write needed. (Name kept for
12
+ * contract stability; semantically "skipped because not SSO-bound".)
13
+ * - `failed` — Mongo update threw mid-loop; see `error`. The revert as a
14
+ * whole continues processing other users; an operator can retry the
15
+ * failed ones.
16
+ */
17
+ export interface RevertedUserResult {
18
+ /** Mongo user `_id` as 24-char hex. */
19
+ userId: string;
20
+ email: string;
21
+ status: 'reverted' | 'noPriorAccount' | 'skippedGuest' | 'failed';
22
+ error?: string;
23
+ }
24
+ /**
25
+ * Response shape for `POST /sso/orgs/:id/revert`. Use the `users` array to
26
+ * surface the per-user outcome in the UI — particularly the
27
+ * `noPriorAccount` rows so the operator knows which users they need to
28
+ * manually re-add.
29
+ */
30
+ export interface RevertSsoOrgResponse {
31
+ correlationId: string;
32
+ users: RevertedUserResult[];
33
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,2 +1,2 @@
1
- export * from './request';
2
- export * from './response';
1
+ export * from './request';
2
+ export * from './response';