@spotto/contract 1.0.70-alpha.8 → 1.0.70-y.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -0
  3. package/dist/actions/[id]/index.js +18 -0
  4. package/dist/actions/[id]/index.js.map +1 -0
  5. package/dist/actions/[id]/patch/index.d.ts +2 -0
  6. package/dist/actions/[id]/patch/index.js +19 -0
  7. package/dist/actions/[id]/patch/index.js.map +1 -0
  8. package/dist/actions/[id]/patch/request.d.ts +16 -0
  9. package/dist/actions/[id]/patch/request.js +3 -0
  10. package/dist/actions/[id]/patch/request.js.map +1 -0
  11. package/dist/actions/[id]/patch/response.d.ts +1 -0
  12. package/dist/actions/[id]/patch/response.js +3 -0
  13. package/dist/actions/[id]/patch/response.js.map +1 -0
  14. package/dist/actions/get/index.d.ts +2 -0
  15. package/dist/actions/get/index.js +19 -0
  16. package/dist/actions/get/index.js.map +1 -0
  17. package/dist/actions/get/query.d.ts +14 -0
  18. package/dist/actions/get/query.js +3 -0
  19. package/dist/actions/get/query.js.map +1 -0
  20. package/dist/actions/get/response.d.ts +29 -0
  21. package/dist/actions/get/response.js +3 -0
  22. package/dist/actions/get/response.js.map +1 -0
  23. package/dist/actions/index.d.ts +4 -0
  24. package/dist/actions/index.js +21 -0
  25. package/dist/actions/index.js.map +1 -0
  26. package/dist/actions/post/index.d.ts +2 -0
  27. package/dist/actions/post/index.js +19 -0
  28. package/dist/actions/post/index.js.map +1 -0
  29. package/dist/actions/post/request.d.ts +15 -0
  30. package/dist/actions/post/request.js +3 -0
  31. package/dist/actions/post/request.js.map +1 -0
  32. package/dist/actions/post/response.d.ts +1 -0
  33. package/dist/actions/post/response.js +3 -0
  34. package/dist/actions/post/response.js.map +1 -0
  35. package/dist/actions/shared.d.ts +51 -0
  36. package/dist/actions/shared.js +13 -0
  37. package/dist/actions/shared.js.map +1 -0
  38. package/dist/ai/chat/index.d.ts +2 -0
  39. package/dist/ai/chat/index.js +19 -0
  40. package/dist/ai/chat/index.js.map +1 -0
  41. package/dist/ai/chat/request.d.ts +42 -0
  42. package/dist/ai/chat/request.js +3 -0
  43. package/dist/ai/chat/request.js.map +1 -0
  44. package/dist/ai/chat/response.d.ts +74 -0
  45. package/dist/ai/chat/response.js +11 -0
  46. package/dist/ai/chat/response.js.map +1 -0
  47. package/dist/ai/expression/request.d.ts +3 -1
  48. package/dist/ai/index.d.ts +3 -0
  49. package/dist/ai/index.js +3 -0
  50. package/dist/ai/index.js.map +1 -1
  51. package/dist/ai/semantic-query/index.d.ts +2 -0
  52. package/dist/ai/semantic-query/index.js +19 -0
  53. package/dist/ai/semantic-query/index.js.map +1 -0
  54. package/dist/ai/semantic-query/request.d.ts +43 -0
  55. package/dist/ai/semantic-query/request.js +3 -0
  56. package/dist/ai/semantic-query/request.js.map +1 -0
  57. package/dist/ai/semantic-query/response.d.ts +40 -0
  58. package/dist/ai/semantic-query/response.js +3 -0
  59. package/dist/ai/semantic-query/response.js.map +1 -0
  60. package/dist/ai/shared.d.ts +22 -0
  61. package/dist/ai/shared.js +11 -0
  62. package/dist/ai/shared.js.map +1 -0
  63. package/dist/assets/[id]/get.d.ts +2 -1
  64. package/dist/assets/count/query.d.ts +16 -1
  65. package/dist/assets/download/query.d.ts +7 -0
  66. package/dist/assets/get/query.d.ts +16 -1
  67. package/dist/assets/location/request.d.ts +10 -1
  68. package/dist/events/constants.d.ts +16 -1
  69. package/dist/events/constants.js +21 -1
  70. package/dist/events/constants.js.map +1 -1
  71. package/dist/events/get/query.d.ts +25 -0
  72. package/dist/events/get/response.d.ts +17 -1
  73. package/dist/fields/[id]/get.d.ts +3 -0
  74. package/dist/fields/[id]/patch/request.d.ts +4 -0
  75. package/dist/forms/[id]/index.d.ts +1 -0
  76. package/dist/forms/[id]/index.js +18 -0
  77. package/dist/forms/[id]/index.js.map +1 -0
  78. package/dist/forms/[id]/patch/index.d.ts +2 -0
  79. package/dist/forms/[id]/patch/index.js +19 -0
  80. package/dist/forms/[id]/patch/index.js.map +1 -0
  81. package/dist/forms/[id]/patch/request.d.ts +14 -0
  82. package/dist/forms/[id]/patch/request.js +3 -0
  83. package/dist/forms/[id]/patch/request.js.map +1 -0
  84. package/dist/forms/[id]/patch/response.d.ts +1 -0
  85. package/dist/forms/[id]/patch/response.js +3 -0
  86. package/dist/forms/[id]/patch/response.js.map +1 -0
  87. package/dist/forms/constants.d.ts +19 -0
  88. package/dist/forms/constants.js +33 -0
  89. package/dist/forms/constants.js.map +1 -0
  90. package/dist/forms/get/index.d.ts +2 -0
  91. package/dist/forms/get/index.js +19 -0
  92. package/dist/forms/get/index.js.map +1 -0
  93. package/dist/forms/get/query.d.ts +18 -0
  94. package/dist/forms/get/query.js +3 -0
  95. package/dist/forms/get/query.js.map +1 -0
  96. package/dist/forms/get/response.d.ts +23 -0
  97. package/dist/forms/get/response.js +3 -0
  98. package/dist/forms/get/response.js.map +1 -0
  99. package/dist/forms/index.d.ts +6 -0
  100. package/dist/forms/index.js +23 -0
  101. package/dist/forms/index.js.map +1 -0
  102. package/dist/forms/post/index.d.ts +2 -0
  103. package/dist/forms/post/index.js +19 -0
  104. package/dist/forms/post/index.js.map +1 -0
  105. package/dist/forms/post/request.d.ts +9 -0
  106. package/dist/forms/post/request.js +3 -0
  107. package/dist/forms/post/request.js.map +1 -0
  108. package/dist/forms/post/response.d.ts +1 -0
  109. package/dist/forms/post/response.js +3 -0
  110. package/dist/forms/post/response.js.map +1 -0
  111. package/dist/forms/shared.d.ts +127 -0
  112. package/dist/forms/shared.js +3 -0
  113. package/dist/forms/shared.js.map +1 -0
  114. package/dist/forms/versions/index.d.ts +2 -0
  115. package/dist/forms/versions/index.js +19 -0
  116. package/dist/forms/versions/index.js.map +1 -0
  117. package/dist/forms/versions/path.d.ts +8 -0
  118. package/dist/forms/versions/path.js +3 -0
  119. package/dist/forms/versions/path.js.map +1 -0
  120. package/dist/forms/versions/response.d.ts +1 -0
  121. package/dist/forms/versions/response.js +3 -0
  122. package/dist/forms/versions/response.js.map +1 -0
  123. package/dist/index.d.ts +5 -0
  124. package/dist/index.js +5 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/locations/get/query.d.ts +14 -0
  127. package/dist/organisations/constants.d.ts +11 -0
  128. package/dist/organisations/sso/constants.d.ts +15 -0
  129. package/dist/organisations/sso/constants.js +16 -1
  130. package/dist/organisations/sso/constants.js.map +1 -1
  131. package/dist/organisations/sso/types.d.ts +48 -0
  132. package/dist/readers/get/query.d.ts +12 -0
  133. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  134. package/dist/semantic-queries/[id]/index.js +18 -0
  135. package/dist/semantic-queries/[id]/index.js.map +1 -0
  136. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  137. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  138. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  139. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  140. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  141. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  142. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  143. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  144. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  145. package/dist/semantic-queries/get/index.d.ts +2 -0
  146. package/dist/semantic-queries/get/index.js +19 -0
  147. package/dist/semantic-queries/get/index.js.map +1 -0
  148. package/dist/semantic-queries/get/query.d.ts +18 -0
  149. package/dist/semantic-queries/get/query.js +3 -0
  150. package/dist/semantic-queries/get/query.js.map +1 -0
  151. package/dist/semantic-queries/get/response.d.ts +40 -0
  152. package/dist/semantic-queries/get/response.js +3 -0
  153. package/dist/semantic-queries/get/response.js.map +1 -0
  154. package/dist/semantic-queries/index.d.ts +4 -0
  155. package/dist/semantic-queries/index.js +21 -0
  156. package/dist/semantic-queries/index.js.map +1 -0
  157. package/dist/semantic-queries/post/index.d.ts +2 -0
  158. package/dist/semantic-queries/post/index.js +19 -0
  159. package/dist/semantic-queries/post/index.js.map +1 -0
  160. package/dist/semantic-queries/post/request.d.ts +56 -0
  161. package/dist/semantic-queries/post/request.js +3 -0
  162. package/dist/semantic-queries/post/request.js.map +1 -0
  163. package/dist/semantic-queries/post/response.d.ts +1 -0
  164. package/dist/semantic-queries/post/response.js +3 -0
  165. package/dist/semantic-queries/post/response.js.map +1 -0
  166. package/dist/semantic-queries/shared.d.ts +853 -0
  167. package/dist/semantic-queries/shared.js +318 -0
  168. package/dist/semantic-queries/shared.js.map +1 -0
  169. package/dist/shared/attachments.d.ts +29 -0
  170. package/dist/shared/attachments.js +11 -0
  171. package/dist/shared/attachments.js.map +1 -0
  172. package/dist/shared/embed.d.ts +14 -0
  173. package/dist/shared/index.d.ts +1 -0
  174. package/dist/shared/index.js +1 -0
  175. package/dist/shared/index.js.map +1 -1
  176. package/dist/shared/readiness.d.ts +23 -0
  177. package/dist/snapshots/[id]/get.d.ts +139 -11
  178. package/dist/snapshots/[id]/get.js.map +1 -1
  179. package/dist/snapshots/get/query.d.ts +39 -0
  180. package/dist/snapshots/get/query.js +23 -1
  181. package/dist/snapshots/get/query.js.map +1 -1
  182. package/dist/snapshots/post/request.d.ts +21 -0
  183. package/dist/snapshots/post/request.js.map +1 -1
  184. package/dist/sso/onboard/request.d.ts +12 -1
  185. package/dist/sso/sso-mappings/request.d.ts +10 -5
  186. package/dist/submissions/[id]/index.d.ts +1 -0
  187. package/dist/submissions/[id]/index.js +18 -0
  188. package/dist/submissions/[id]/index.js.map +1 -0
  189. package/dist/submissions/[id]/void/post.d.ts +6 -0
  190. package/dist/submissions/[id]/void/post.js +3 -0
  191. package/dist/submissions/[id]/void/post.js.map +1 -0
  192. package/dist/submissions/constants.d.ts +14 -0
  193. package/dist/submissions/constants.js +21 -0
  194. package/dist/submissions/constants.js.map +1 -0
  195. package/dist/submissions/get/index.d.ts +2 -0
  196. package/dist/submissions/get/index.js +19 -0
  197. package/dist/submissions/get/index.js.map +1 -0
  198. package/dist/submissions/get/query.d.ts +14 -0
  199. package/dist/submissions/get/query.js +3 -0
  200. package/dist/submissions/get/query.js.map +1 -0
  201. package/dist/submissions/get/response.d.ts +6 -0
  202. package/dist/submissions/get/response.js +3 -0
  203. package/dist/submissions/get/response.js.map +1 -0
  204. package/dist/submissions/index.d.ts +6 -0
  205. package/dist/submissions/index.js +23 -0
  206. package/dist/submissions/index.js.map +1 -0
  207. package/dist/submissions/post/index.d.ts +2 -0
  208. package/dist/submissions/post/index.js +19 -0
  209. package/dist/submissions/post/index.js.map +1 -0
  210. package/dist/submissions/post/request.d.ts +17 -0
  211. package/dist/submissions/post/request.js +3 -0
  212. package/dist/submissions/post/request.js.map +1 -0
  213. package/dist/submissions/post/response.d.ts +22 -0
  214. package/dist/submissions/post/response.js +3 -0
  215. package/dist/submissions/post/response.js.map +1 -0
  216. package/dist/submissions/shared.d.ts +133 -0
  217. package/dist/submissions/shared.js +3 -0
  218. package/dist/submissions/shared.js.map +1 -0
  219. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  220. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  221. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  222. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  223. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  224. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  225. package/dist/submissions/uploads/index.d.ts +2 -0
  226. package/dist/submissions/uploads/index.js +19 -0
  227. package/dist/submissions/uploads/index.js.map +1 -0
  228. package/dist/submissions/uploads/post/index.d.ts +2 -0
  229. package/dist/submissions/uploads/post/index.js +19 -0
  230. package/dist/submissions/uploads/post/index.js.map +1 -0
  231. package/dist/submissions/uploads/post/request.d.ts +9 -0
  232. package/dist/submissions/uploads/post/request.js +3 -0
  233. package/dist/submissions/uploads/post/request.js.map +1 -0
  234. package/dist/submissions/uploads/post/response.d.ts +18 -0
  235. package/dist/submissions/uploads/post/response.js +3 -0
  236. package/dist/submissions/uploads/post/response.js.map +1 -0
  237. package/dist/types/[id]/get.d.ts +3 -1
  238. package/dist/types/[id]/patch/request.d.ts +4 -1
  239. package/dist/types/post/request.d.ts +2 -1
  240. package/dist/types/post/request.js.map +1 -1
  241. package/dist/usergroups/[id]/index.d.ts +1 -0
  242. package/dist/usergroups/[id]/index.js +18 -0
  243. package/dist/usergroups/[id]/index.js.map +1 -0
  244. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  245. package/dist/usergroups/[id]/patch/index.js +19 -0
  246. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  247. package/dist/usergroups/[id]/patch/request.d.ts +12 -0
  248. package/dist/usergroups/[id]/patch/request.js +3 -0
  249. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  250. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  251. package/dist/usergroups/[id]/patch/response.js +3 -0
  252. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  253. package/dist/usergroups/get/index.d.ts +2 -0
  254. package/dist/usergroups/get/index.js +19 -0
  255. package/dist/usergroups/get/index.js.map +1 -0
  256. package/dist/usergroups/get/query.d.ts +12 -0
  257. package/dist/usergroups/get/query.js +3 -0
  258. package/dist/usergroups/get/query.js.map +1 -0
  259. package/dist/usergroups/get/response.d.ts +35 -0
  260. package/dist/usergroups/get/response.js +3 -0
  261. package/dist/usergroups/get/response.js.map +1 -0
  262. package/dist/usergroups/index.d.ts +4 -0
  263. package/dist/usergroups/index.js +21 -0
  264. package/dist/usergroups/index.js.map +1 -0
  265. package/dist/usergroups/post/index.d.ts +2 -0
  266. package/dist/usergroups/post/index.js +19 -0
  267. package/dist/usergroups/post/index.js.map +1 -0
  268. package/dist/usergroups/post/request.d.ts +11 -0
  269. package/dist/usergroups/post/request.js +3 -0
  270. package/dist/usergroups/post/request.js.map +1 -0
  271. package/dist/usergroups/post/response.d.ts +1 -0
  272. package/dist/usergroups/post/response.js +3 -0
  273. package/dist/usergroups/post/response.js.map +1 -0
  274. package/dist/usergroups/shared.d.ts +25 -0
  275. package/dist/usergroups/shared.js +11 -0
  276. package/dist/usergroups/shared.js.map +1 -0
  277. package/dist/users/[id]/get/response.d.ts +0 -2
  278. package/dist/users/[id]/patch/request.d.ts +5 -1
  279. package/dist/users/current.d.ts +22 -4
  280. package/dist/users/get/query.d.ts +0 -2
  281. package/dist/users/home-layout/shared.d.ts +96 -21
  282. package/dist/users/home-layout/shared.js +11 -5
  283. package/dist/users/home-layout/shared.js.map +1 -1
  284. package/dist/users/post/request.d.ts +6 -1
  285. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/[fileId]/get.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './get';
@@ -0,0 +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("./get"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/[fileId]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB"}
@@ -0,0 +1,2 @@
1
+ export * from './post';
2
+ export * from './[fileId]';
@@ -0,0 +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("./post"), exports);
18
+ __exportStar(require("./[fileId]"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/submissions/uploads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,6CAA0B"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +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);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,9 @@
1
+ import { SubmissionMediaContentType } from '../../constants';
2
+ /** One file to upload — the declared type is pinned into the POST policy. */
3
+ export interface PostSubmissionUploadsRequestFile {
4
+ contentType: SubmissionMediaContentType;
5
+ }
6
+ /** POST /submissions/uploads — mint presigned upload POSTs (§4.3). */
7
+ export interface PostSubmissionUploadsRequest {
8
+ files: PostSubmissionUploadsRequestFile[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A ready-to-send presigned POST: multipart-form the `fields` verbatim (file
3
+ * last) at `url`. The policy enforces the declared content-type and the size
4
+ * cap, so a disallowed file bounces at upload time.
5
+ */
6
+ export interface ISubmissionUploadPost {
7
+ url: string;
8
+ fields: Record<string, string>;
9
+ }
10
+ export interface PostSubmissionUploadsResponseFile {
11
+ /** Server-minted ULID — becomes the attachment's fileId at submit. */
12
+ fileId: string;
13
+ post: ISubmissionUploadPost;
14
+ }
15
+ export interface PostSubmissionUploadsResponse {
16
+ /** Same order as the request's files. */
17
+ files: PostSubmissionUploadsResponseFile[];
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/post/response.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { GetFieldResponse } from '../../fields/[id]/get';
2
2
  import { IFieldBindingDelta } from '../../fields';
3
- import { IEmbeddedEntity, IReadinessRule, IReadinessRuleAll } from '../../shared';
3
+ import { IActionAttachment, IActionAttachmentAll, IEmbeddedEntity, IReadinessRule, IReadinessRuleAll } from '../../shared';
4
4
  export interface IFieldValue {
5
5
  id: string;
6
6
  name: string;
@@ -49,4 +49,6 @@ export interface GetTypeResponse {
49
49
  typeKit?: boolean;
50
50
  readinessRules?: IReadinessRule[];
51
51
  readinessRulesAll?: IReadinessRuleAll[];
52
+ actions?: IActionAttachment[];
53
+ actionsAll?: IActionAttachmentAll[];
52
54
  }
@@ -1,5 +1,5 @@
1
1
  import { IEmbeddedEntityWithIdOrName, IFieldBinding, IFieldValueWithConstraints } from '../../post';
2
- import { IReadinessRule, IReadinessRuleAll } from '../../../shared';
2
+ import { IActionAttachment, IActionAttachmentAll, IReadinessRule, IReadinessRuleAll } from '../../../shared';
3
3
  export interface UpdateTypeRequest {
4
4
  name?: string;
5
5
  parent?: string;
@@ -21,4 +21,7 @@ export interface UpdateTypeRequest {
21
21
  * parent (prepareUpdate), so it never affects what is stored.
22
22
  */
23
23
  readinessRulesAll?: IReadinessRuleAll[];
24
+ actions?: IActionAttachment[];
25
+ /** Server-derived like `readinessRulesAll`: tolerated on input, stripped. */
26
+ actionsAll?: IActionAttachmentAll[];
24
27
  }
@@ -1,4 +1,4 @@
1
- import { IReadinessRule } from '../../shared';
1
+ import { IActionAttachment, IReadinessRule } from '../../shared';
2
2
  import { IFieldBindingDelta } from '../../fields';
3
3
  export declare type IEmbeddedEntityWithIdOrName = {
4
4
  id: string;
@@ -91,6 +91,7 @@ export interface PostTypeRequest {
91
91
  /** Assets of this type are kits (containers) — G2G M2. */
92
92
  typeKit?: boolean;
93
93
  readinessRules?: IReadinessRule[];
94
+ actions?: IActionAttachment[];
94
95
  }
95
96
  export declare type PostTypesRequest = PostTypeRequest[];
96
97
  export declare const testPostTypeRequest: PostTypeRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAyGA,QAAQ;AACK,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YACE,gBAAgB;YAChB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,oBAAoB;SACrB;KACF;IACD,iBAAiB,EAAE,IAAI;CACxB,CAAA"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AA0GA,QAAQ;AACK,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YACE,gBAAgB;YAChB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,oBAAoB;SACrB;KACF;IACD,iBAAiB,EAAE,IAAI;CACxB,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './patch';
@@ -0,0 +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("./patch"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usergroups/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +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);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/usergroups/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Membership and scope are replaced wholesale; an empty array clears either
3
+ * (a scope-less group abstains from location scope). `allLocations: false`
4
+ * clears the sentinel. Changes that alter the actor's own membership are
5
+ * rejected (the own-role-guard rule).
6
+ */
7
+ export interface UpdateUsergroupRequest {
8
+ name?: string;
9
+ members?: string[];
10
+ locationScope?: string[];
11
+ allLocations?: boolean;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/usergroups/[id]/patch/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetUsergroupResponse as UpdateUsergroupResponse } from '../../get/response';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/usergroups/[id]/patch/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -0,0 +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("./query"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usergroups/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,12 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ export declare type UsergroupEmbedField = 'meta';
3
+ export interface GetUsergroupsQuery {
4
+ page?: number;
5
+ limit?: number;
6
+ ids?: string[];
7
+ sort?: StandardSortFields;
8
+ sortOrder?: SortOrders;
9
+ embed?: Array<UsergroupEmbedField>;
10
+ /** Usergroups a given user id is a member of. */
11
+ member?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/usergroups/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { IEntityMeta } from '../../shared';
2
+ import { GetUsergroupsQuery } from './query';
3
+ export interface GetUsergroupResponse {
4
+ id: string;
5
+ name: string;
6
+ /** User ids. Membership's source of truth lives here, never on the user. */
7
+ members: string[];
8
+ /**
9
+ * Location-name path prefixes this group confines its members to. Absent
10
+ * or empty = the group abstains from location scope (it may exist purely
11
+ * for field/action grants).
12
+ */
13
+ locationScope?: string[];
14
+ /**
15
+ * The explicit "entire organisation" sentinel — never expressed as the
16
+ * root location's path (the root's name is the empty string). Emitted
17
+ * only when true.
18
+ */
19
+ allLocations?: boolean;
20
+ /**
21
+ * True when the group is referenced by the org's SSO `usergroupMappings` —
22
+ * i.e. membership is SSO-managed for federated users (manual membership
23
+ * edits for `authProvider: 'sso'` users are refused; sync adds AND removes
24
+ * within the mapped set). Emitted only when true. Lets group/user admin
25
+ * surfaces mark managed groups without needing `sso:admin` to read the
26
+ * org's SSO config.
27
+ */
28
+ ssoManaged?: boolean;
29
+ meta?: IEntityMeta;
30
+ }
31
+ export interface GetUsergroupsResponse {
32
+ query: GetUsergroupsQuery | null;
33
+ total: number;
34
+ items: GetUsergroupResponse[];
35
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/usergroups/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './shared';
2
+ export * from './get';
3
+ export * from './post';
4
+ export * from './[id]';
@@ -0,0 +1,21 @@
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("./shared"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./post"), exports);
20
+ __exportStar(require("./[id]"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/usergroups/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +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);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usergroups/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,11 @@
1
+ export interface PostUsergroupRequest {
2
+ name: string;
3
+ /** User ids. The actor's own id is rejected — nobody edits their own
4
+ * memberships (the own-role-guard rule). */
5
+ members?: string[];
6
+ /** Non-empty location-name path prefixes; omitted/empty = the group
7
+ * abstains from location scope. Never the root path — "entire
8
+ * organisation" is `allLocations: true`. */
9
+ locationScope?: string[];
10
+ allLocations?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/usergroups/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetUsergroupResponse as PostUsergroupResponse } from '../get/response';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/usergroups/post/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Effective access level a field grant confers. Most-permissive wins across
3
+ * a user's groups; a field with no grants at all is open (EDIT) to everyone.
4
+ * Actions reuse the grant shape with `level` ignored (binary: any grant ⇒
5
+ * members-only).
6
+ */
7
+ export declare const PERMISSION_GRANT_LEVELS: readonly ["NONE", "VIEW", "EDIT"];
8
+ export declare type PermissionGrantLevel = (typeof PERMISSION_GRANT_LEVELS)[number];
9
+ /** One usergroup's grant on a field or action. */
10
+ export interface PermissionGrant {
11
+ /** Usergroup id — must exist in the organisation at write time. */
12
+ group: string;
13
+ level: PermissionGrantLevel;
14
+ }
15
+ /**
16
+ * A user's resolved location scope, derived from their usergroups: any
17
+ * `allLocations` group — or no location-defining group at all — resolves to
18
+ * unconfined; otherwise the union of the groups' `locationScope` prefixes.
19
+ * Emitted on GET /users/current so the client can detect scope changes.
20
+ */
21
+ export declare type UsergroupsScope = {
22
+ unconfined: true;
23
+ } | {
24
+ paths: string[];
25
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PERMISSION_GRANT_LEVELS = void 0;
4
+ /**
5
+ * Effective access level a field grant confers. Most-permissive wins across
6
+ * a user's groups; a field with no grants at all is open (EDIT) to everyone.
7
+ * Actions reuse the grant shape with `level` ignored (binary: any grant ⇒
8
+ * members-only).
9
+ */
10
+ exports.PERMISSION_GRANT_LEVELS = ['NONE', 'VIEW', 'EDIT'];
11
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/usergroups/shared.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACU,QAAA,uBAAuB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAA"}
@@ -4,8 +4,6 @@ export interface BaseGetUserResponse {
4
4
  name: string;
5
5
  role: IEmbeddedEntity;
6
6
  organisation: IEmbeddedEntity;
7
- permissionLocationId: string;
8
- permissionLocationPath: string;
9
7
  homeLocationId: string;
10
8
  homeLocationPath: string;
11
9
  meta?: IEntityMeta;
@@ -1,6 +1,10 @@
1
1
  export interface UpdateUserRequest {
2
2
  name?: string;
3
3
  role?: string;
4
- permissionLocationId?: string;
5
4
  homeLocationId?: string;
5
+ /**
6
+ * Complete usergroup membership for the target (group ids) — replaced
7
+ * wholesale; [] clears every membership. Never applied to yourself.
8
+ */
9
+ usergroups?: string[];
6
10
  }
@@ -3,6 +3,12 @@ import { Preferences } from '../organisations/constants';
3
3
  import { Integrations } from '../integrations/constants';
4
4
  import { System } from '../system';
5
5
  import { HomeLayout } from './home-layout';
6
+ import { PermissionGrantLevel, UsergroupsScope } from '../usergroups/shared';
7
+ /** One entry of the §1.7 field access list — every org field appears. */
8
+ export interface FieldAccessEntry {
9
+ id: string;
10
+ level: PermissionGrantLevel;
11
+ }
6
12
  export interface EmbeddedRole extends IEmbeddedEntity {
7
13
  permissions: string[];
8
14
  }
@@ -16,8 +22,6 @@ export interface CurrentUserResponse {
16
22
  name: string;
17
23
  role: EmbeddedRole;
18
24
  organisation: EmbeddedOrganisation;
19
- permissionLocationId: string;
20
- permissionLocationPath: string;
21
25
  homeLocationId: string;
22
26
  homeLocationPath: string;
23
27
  meta?: IEntityMeta;
@@ -35,14 +39,28 @@ export interface CurrentUserResponse {
35
39
  * user customises — the client then renders its built-in default layout.
36
40
  */
37
41
  homeLayout?: HomeLayout;
42
+ /**
43
+ * UI-only visibility lists (usergroups feature) — COMPLETE: every org
44
+ * field appears with the caller's effective level (grant-less ⇒ EDIT;
45
+ * admin bypass ⇒ all EDIT), every usable action id appears. All three
46
+ * keys are omitted entirely when the org toggle is OFF — client rule:
47
+ * absent list (or absent id) ⇒ open.
48
+ */
49
+ fieldAccess?: FieldAccessEntry[];
50
+ actionAccess?: string[];
51
+ /**
52
+ * The caller's resolved location scope, verbatim from the user-doc cache.
53
+ * The offline client treats a CHANGE in this value (including appearing/
54
+ * disappearing) as its delta-cursor + cache reset trigger — delta reads
55
+ * never re-deliver docs whose lastChanged predates the cursor.
56
+ */
57
+ usergroupsScope?: UsergroupsScope;
38
58
  }
39
59
  export interface CurrentUserPublicResponse {
40
60
  id: string;
41
61
  name: string;
42
62
  role: EmbeddedRole;
43
63
  organisation: EmbeddedOrganisation;
44
- permissionLocationId: string;
45
- permissionLocationPath: string;
46
64
  homeLocationId: string;
47
65
  homeLocationPath: string;
48
66
  meta?: IEntityMeta;
@@ -10,8 +10,6 @@ export interface GetUsersQuery {
10
10
  sort?: StandardSortFields;
11
11
  sortOrder?: SortOrders;
12
12
  embed?: Array<UserEmbedField>;
13
- permissionLocationId?: string;
14
- permissionLocationPathBeginsWith?: string;
15
13
  homeLocationId?: string;
16
14
  homeLocationPathBeginsWith?: string;
17
15
  }