@spotto/contract 1.0.70-alpha.2 → 1.0.70-alpha.21

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 (305) 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 +27 -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 +57 -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/index.d.ts +2 -0
  48. package/dist/ai/expression/index.js +19 -0
  49. package/dist/ai/expression/index.js.map +1 -0
  50. package/dist/ai/expression/request.d.ts +29 -0
  51. package/dist/ai/expression/request.js +3 -0
  52. package/dist/ai/expression/request.js.map +1 -0
  53. package/dist/ai/expression/response.d.ts +23 -0
  54. package/dist/ai/expression/response.js +3 -0
  55. package/dist/ai/expression/response.js.map +1 -0
  56. package/dist/ai/index.d.ts +4 -0
  57. package/dist/ai/index.js +21 -0
  58. package/dist/ai/index.js.map +1 -0
  59. package/dist/ai/semantic-query/index.d.ts +2 -0
  60. package/dist/ai/semantic-query/index.js +19 -0
  61. package/dist/ai/semantic-query/index.js.map +1 -0
  62. package/dist/ai/semantic-query/request.d.ts +43 -0
  63. package/dist/ai/semantic-query/request.js +3 -0
  64. package/dist/ai/semantic-query/request.js.map +1 -0
  65. package/dist/ai/semantic-query/response.d.ts +40 -0
  66. package/dist/ai/semantic-query/response.js +3 -0
  67. package/dist/ai/semantic-query/response.js.map +1 -0
  68. package/dist/ai/shared.d.ts +22 -0
  69. package/dist/ai/shared.js +11 -0
  70. package/dist/ai/shared.js.map +1 -0
  71. package/dist/assets/[id]/get.d.ts +9 -1
  72. package/dist/assets/[id]/patch/request.d.ts +5 -0
  73. package/dist/assets/count/query.d.ts +16 -1
  74. package/dist/assets/download/query.d.ts +7 -0
  75. package/dist/assets/get/query.d.ts +22 -4
  76. package/dist/assets/post/request.d.ts +2 -0
  77. package/dist/assets/post/request.js.map +1 -1
  78. package/dist/events/constants.d.ts +2 -1
  79. package/dist/events/constants.js +2 -0
  80. package/dist/events/constants.js.map +1 -1
  81. package/dist/events/get/response.d.ts +17 -1
  82. package/dist/fields/[id]/get.d.ts +3 -0
  83. package/dist/fields/[id]/patch/request.d.ts +4 -0
  84. package/dist/fields/constants.d.ts +19 -0
  85. package/dist/fields/constants.js +15 -1
  86. package/dist/fields/constants.js.map +1 -1
  87. package/dist/forms/[id]/index.d.ts +1 -0
  88. package/dist/forms/[id]/index.js +18 -0
  89. package/dist/forms/[id]/index.js.map +1 -0
  90. package/dist/forms/[id]/patch/index.d.ts +2 -0
  91. package/dist/forms/[id]/patch/index.js +19 -0
  92. package/dist/forms/[id]/patch/index.js.map +1 -0
  93. package/dist/forms/[id]/patch/request.d.ts +14 -0
  94. package/dist/forms/[id]/patch/request.js +3 -0
  95. package/dist/forms/[id]/patch/request.js.map +1 -0
  96. package/dist/forms/[id]/patch/response.d.ts +1 -0
  97. package/dist/forms/[id]/patch/response.js +3 -0
  98. package/dist/forms/[id]/patch/response.js.map +1 -0
  99. package/dist/forms/constants.d.ts +19 -0
  100. package/dist/forms/constants.js +33 -0
  101. package/dist/forms/constants.js.map +1 -0
  102. package/dist/forms/get/index.d.ts +2 -0
  103. package/dist/forms/get/index.js +19 -0
  104. package/dist/forms/get/index.js.map +1 -0
  105. package/dist/forms/get/query.d.ts +18 -0
  106. package/dist/forms/get/query.js +3 -0
  107. package/dist/forms/get/query.js.map +1 -0
  108. package/dist/forms/get/response.d.ts +23 -0
  109. package/dist/forms/get/response.js +3 -0
  110. package/dist/forms/get/response.js.map +1 -0
  111. package/dist/forms/index.d.ts +6 -0
  112. package/dist/forms/index.js +23 -0
  113. package/dist/forms/index.js.map +1 -0
  114. package/dist/forms/post/index.d.ts +2 -0
  115. package/dist/forms/post/index.js +19 -0
  116. package/dist/forms/post/index.js.map +1 -0
  117. package/dist/forms/post/request.d.ts +9 -0
  118. package/dist/forms/post/request.js +3 -0
  119. package/dist/forms/post/request.js.map +1 -0
  120. package/dist/forms/post/response.d.ts +1 -0
  121. package/dist/forms/post/response.js +3 -0
  122. package/dist/forms/post/response.js.map +1 -0
  123. package/dist/forms/shared.d.ts +127 -0
  124. package/dist/forms/shared.js +3 -0
  125. package/dist/forms/shared.js.map +1 -0
  126. package/dist/forms/versions/index.d.ts +2 -0
  127. package/dist/forms/versions/index.js +19 -0
  128. package/dist/forms/versions/index.js.map +1 -0
  129. package/dist/forms/versions/path.d.ts +8 -0
  130. package/dist/forms/versions/path.js +3 -0
  131. package/dist/forms/versions/path.js.map +1 -0
  132. package/dist/forms/versions/response.d.ts +1 -0
  133. package/dist/forms/versions/response.js +3 -0
  134. package/dist/forms/versions/response.js.map +1 -0
  135. package/dist/index.d.ts +6 -0
  136. package/dist/index.js +6 -0
  137. package/dist/index.js.map +1 -1
  138. package/dist/integrations/oneblink/patch/request.d.ts +2 -2
  139. package/dist/integrations/oneblink/token.d.ts +2 -0
  140. package/dist/locations/get/query.d.ts +14 -0
  141. package/dist/organisations/constants.d.ts +11 -0
  142. package/dist/organisations/sso/constants.d.ts +15 -0
  143. package/dist/organisations/sso/constants.js +16 -1
  144. package/dist/organisations/sso/constants.js.map +1 -1
  145. package/dist/organisations/sso/types.d.ts +48 -0
  146. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  147. package/dist/semantic-queries/[id]/index.js +18 -0
  148. package/dist/semantic-queries/[id]/index.js.map +1 -0
  149. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  150. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  151. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  152. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  153. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  154. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  155. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  156. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  157. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  158. package/dist/semantic-queries/get/index.d.ts +2 -0
  159. package/dist/semantic-queries/get/index.js +19 -0
  160. package/dist/semantic-queries/get/index.js.map +1 -0
  161. package/dist/semantic-queries/get/query.d.ts +18 -0
  162. package/dist/semantic-queries/get/query.js +3 -0
  163. package/dist/semantic-queries/get/query.js.map +1 -0
  164. package/dist/semantic-queries/get/response.d.ts +40 -0
  165. package/dist/semantic-queries/get/response.js +3 -0
  166. package/dist/semantic-queries/get/response.js.map +1 -0
  167. package/dist/semantic-queries/index.d.ts +4 -0
  168. package/dist/semantic-queries/index.js +21 -0
  169. package/dist/semantic-queries/index.js.map +1 -0
  170. package/dist/semantic-queries/post/index.d.ts +2 -0
  171. package/dist/semantic-queries/post/index.js +19 -0
  172. package/dist/semantic-queries/post/index.js.map +1 -0
  173. package/dist/semantic-queries/post/request.d.ts +56 -0
  174. package/dist/semantic-queries/post/request.js +3 -0
  175. package/dist/semantic-queries/post/request.js.map +1 -0
  176. package/dist/semantic-queries/post/response.d.ts +1 -0
  177. package/dist/semantic-queries/post/response.js +3 -0
  178. package/dist/semantic-queries/post/response.js.map +1 -0
  179. package/dist/semantic-queries/shared.d.ts +496 -0
  180. package/dist/semantic-queries/shared.js +224 -0
  181. package/dist/semantic-queries/shared.js.map +1 -0
  182. package/dist/shared/attachments.d.ts +29 -0
  183. package/dist/shared/attachments.js +11 -0
  184. package/dist/shared/attachments.js.map +1 -0
  185. package/dist/shared/embed.d.ts +14 -0
  186. package/dist/shared/index.d.ts +2 -0
  187. package/dist/shared/index.js +2 -0
  188. package/dist/shared/index.js.map +1 -1
  189. package/dist/shared/readiness.d.ts +81 -0
  190. package/dist/shared/readiness.js +11 -0
  191. package/dist/shared/readiness.js.map +1 -0
  192. package/dist/sso/onboard/request.d.ts +12 -1
  193. package/dist/sso/sso-mappings/request.d.ts +10 -5
  194. package/dist/submissions/[id]/index.d.ts +1 -0
  195. package/dist/submissions/[id]/index.js +18 -0
  196. package/dist/submissions/[id]/index.js.map +1 -0
  197. package/dist/submissions/[id]/void/post.d.ts +6 -0
  198. package/dist/submissions/[id]/void/post.js +3 -0
  199. package/dist/submissions/[id]/void/post.js.map +1 -0
  200. package/dist/submissions/constants.d.ts +14 -0
  201. package/dist/submissions/constants.js +21 -0
  202. package/dist/submissions/constants.js.map +1 -0
  203. package/dist/submissions/get/index.d.ts +2 -0
  204. package/dist/submissions/get/index.js +19 -0
  205. package/dist/submissions/get/index.js.map +1 -0
  206. package/dist/submissions/get/query.d.ts +14 -0
  207. package/dist/submissions/get/query.js +3 -0
  208. package/dist/submissions/get/query.js.map +1 -0
  209. package/dist/submissions/get/response.d.ts +6 -0
  210. package/dist/submissions/get/response.js +3 -0
  211. package/dist/submissions/get/response.js.map +1 -0
  212. package/dist/submissions/index.d.ts +6 -0
  213. package/dist/submissions/index.js +23 -0
  214. package/dist/submissions/index.js.map +1 -0
  215. package/dist/submissions/post/index.d.ts +2 -0
  216. package/dist/submissions/post/index.js +19 -0
  217. package/dist/submissions/post/index.js.map +1 -0
  218. package/dist/submissions/post/request.d.ts +17 -0
  219. package/dist/submissions/post/request.js +3 -0
  220. package/dist/submissions/post/request.js.map +1 -0
  221. package/dist/submissions/post/response.d.ts +22 -0
  222. package/dist/submissions/post/response.js +3 -0
  223. package/dist/submissions/post/response.js.map +1 -0
  224. package/dist/submissions/shared.d.ts +133 -0
  225. package/dist/submissions/shared.js +3 -0
  226. package/dist/submissions/shared.js.map +1 -0
  227. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  228. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  229. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  230. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  231. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  232. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  233. package/dist/submissions/uploads/index.d.ts +2 -0
  234. package/dist/submissions/uploads/index.js +19 -0
  235. package/dist/submissions/uploads/index.js.map +1 -0
  236. package/dist/submissions/uploads/post/index.d.ts +2 -0
  237. package/dist/submissions/uploads/post/index.js +19 -0
  238. package/dist/submissions/uploads/post/index.js.map +1 -0
  239. package/dist/submissions/uploads/post/request.d.ts +9 -0
  240. package/dist/submissions/uploads/post/request.js +3 -0
  241. package/dist/submissions/uploads/post/request.js.map +1 -0
  242. package/dist/submissions/uploads/post/response.d.ts +18 -0
  243. package/dist/submissions/uploads/post/response.js +3 -0
  244. package/dist/submissions/uploads/post/response.js.map +1 -0
  245. package/dist/types/[id]/get.d.ts +17 -2
  246. package/dist/types/[id]/patch/request.d.ts +16 -2
  247. package/dist/types/post/request.d.ts +16 -2
  248. package/dist/types/post/request.js.map +1 -1
  249. package/dist/usergroups/[id]/index.d.ts +1 -0
  250. package/dist/usergroups/[id]/index.js +18 -0
  251. package/dist/usergroups/[id]/index.js.map +1 -0
  252. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  253. package/dist/usergroups/[id]/patch/index.js +19 -0
  254. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  255. package/dist/usergroups/[id]/patch/request.d.ts +12 -0
  256. package/dist/usergroups/[id]/patch/request.js +3 -0
  257. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  258. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  259. package/dist/usergroups/[id]/patch/response.js +3 -0
  260. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  261. package/dist/usergroups/get/index.d.ts +2 -0
  262. package/dist/usergroups/get/index.js +19 -0
  263. package/dist/usergroups/get/index.js.map +1 -0
  264. package/dist/usergroups/get/query.d.ts +12 -0
  265. package/dist/usergroups/get/query.js +3 -0
  266. package/dist/usergroups/get/query.js.map +1 -0
  267. package/dist/usergroups/get/response.d.ts +35 -0
  268. package/dist/usergroups/get/response.js +3 -0
  269. package/dist/usergroups/get/response.js.map +1 -0
  270. package/dist/usergroups/index.d.ts +4 -0
  271. package/dist/usergroups/index.js +21 -0
  272. package/dist/usergroups/index.js.map +1 -0
  273. package/dist/usergroups/post/index.d.ts +2 -0
  274. package/dist/usergroups/post/index.js +19 -0
  275. package/dist/usergroups/post/index.js.map +1 -0
  276. package/dist/usergroups/post/request.d.ts +11 -0
  277. package/dist/usergroups/post/request.js +3 -0
  278. package/dist/usergroups/post/request.js.map +1 -0
  279. package/dist/usergroups/post/response.d.ts +1 -0
  280. package/dist/usergroups/post/response.js +3 -0
  281. package/dist/usergroups/post/response.js.map +1 -0
  282. package/dist/usergroups/shared.d.ts +25 -0
  283. package/dist/usergroups/shared.js +11 -0
  284. package/dist/usergroups/shared.js.map +1 -0
  285. package/dist/users/[id]/get/response.d.ts +0 -2
  286. package/dist/users/[id]/patch/request.d.ts +5 -1
  287. package/dist/users/current.d.ts +29 -4
  288. package/dist/users/get/query.d.ts +0 -2
  289. package/dist/users/home-layout/index.d.ts +3 -0
  290. package/dist/users/home-layout/index.js +20 -0
  291. package/dist/users/home-layout/index.js.map +1 -0
  292. package/dist/users/home-layout/request.d.ts +5 -0
  293. package/dist/users/home-layout/request.js +3 -0
  294. package/dist/users/home-layout/request.js.map +1 -0
  295. package/dist/users/home-layout/response.d.ts +5 -0
  296. package/dist/users/home-layout/response.js +3 -0
  297. package/dist/users/home-layout/response.js.map +1 -0
  298. package/dist/users/home-layout/shared.d.ts +98 -0
  299. package/dist/users/home-layout/shared.js +21 -0
  300. package/dist/users/home-layout/shared.js.map +1 -0
  301. package/dist/users/index.d.ts +1 -0
  302. package/dist/users/index.js +1 -0
  303. package/dist/users/index.js.map +1 -1
  304. package/dist/users/post/request.d.ts +6 -1
  305. package/package.json +2 -2
package/README.md CHANGED
@@ -1,33 +1,33 @@
1
- # README
2
-
3
- This repository is a source of truth / documentation for the spotto-api.
4
-
5
- The repository consists of a series of typescript classes that document the API contract
6
- between the spotto API and its clients
7
-
8
- ### How do I get set up?
9
-
10
- 1. Clone this repository
11
- 1. yarn install
12
- 1. run 'yarn start' to start a documentation server
13
-
14
- ### Contribution guidelines
15
-
16
- When adding endpoints create a new folder / file for your endpoint.
17
- Fill out file using others as a guide.
18
-
19
- Any response and request shapes should be specified in the /types folder. The documentation server
20
- is sometimes unable to understand more complicated interfaces. In these scenarios please create two
21
- types files, one with a logical working type that can be used by other repositories. The other will
22
- be simply for filling the response server.
23
-
24
- Any documentation specific types files should have the suffix 'Docs' within the same folder. e.g.
25
-
26
- - types
27
- - objects
28
- - objectTypes.ts
29
- - objectTypesDocs.ts
30
-
31
- ### Who do I talk to?
32
-
33
- - Repo owner or admin
1
+ # README
2
+
3
+ This repository is a source of truth / documentation for the spotto-api.
4
+
5
+ The repository consists of a series of typescript classes that document the API contract
6
+ between the spotto API and its clients
7
+
8
+ ### How do I get set up?
9
+
10
+ 1. Clone this repository
11
+ 1. yarn install
12
+ 1. run 'yarn start' to start a documentation server
13
+
14
+ ### Contribution guidelines
15
+
16
+ When adding endpoints create a new folder / file for your endpoint.
17
+ Fill out file using others as a guide.
18
+
19
+ Any response and request shapes should be specified in the /types folder. The documentation server
20
+ is sometimes unable to understand more complicated interfaces. In these scenarios please create two
21
+ types files, one with a logical working type that can be used by other repositories. The other will
22
+ be simply for filling the response server.
23
+
24
+ Any documentation specific types files should have the suffix 'Docs' within the same folder. e.g.
25
+
26
+ - types
27
+ - objects
28
+ - objectTypes.ts
29
+ - objectTypesDocs.ts
30
+
31
+ ### Who do I talk to?
32
+
33
+ - Repo owner or admin
@@ -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/actions/[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/actions/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,16 @@
1
+ import { ActionEffect, ActionEvent, ActionPresentation, ActionTargetEntity } from '../../shared';
2
+ import { PermissionGrant } from '../../../usergroups/shared';
3
+ /** `name` is immutable. `event: null` clears the custom history label. */
4
+ export interface UpdateActionRequest {
5
+ label?: string;
6
+ purpose?: string;
7
+ form?: string;
8
+ targetEntity?: ActionTargetEntity;
9
+ presentation?: ActionPresentation;
10
+ event?: ActionEvent | null;
11
+ /** Replaced wholesale; an empty array clears every effect. */
12
+ effects?: ActionEffect[];
13
+ /** UI-only visibility grants — replaced wholesale; [] clears them (usable
14
+ * by everyone). Every group id must exist in the org; `level` ignored. */
15
+ permissions?: PermissionGrant[];
16
+ }
@@ -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/actions/[id]/patch/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetActionResponse as UpdateActionResponse } 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/actions/[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/actions/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,14 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ import { ActionTargetEntity } from '../shared';
3
+ export declare type ActionEmbedField = 'meta';
4
+ export interface GetActionsQuery {
5
+ page?: number;
6
+ limit?: number;
7
+ ids?: string[];
8
+ sort?: StandardSortFields;
9
+ sortOrder?: SortOrders;
10
+ embed?: Array<ActionEmbedField>;
11
+ /** Actions running the given form (exact form name). */
12
+ form?: string;
13
+ targetEntity?: ActionTargetEntity;
14
+ }
@@ -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/actions/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import { IEntityMeta } from '../../shared';
2
+ import { PermissionGrant } from '../../usergroups/shared';
3
+ import { ActionEffect, ActionEvent, ActionPresentation, ActionTargetEntity } from '../shared';
4
+ import { GetActionsQuery } from './query';
5
+ export interface GetActionResponse {
6
+ id: string;
7
+ /** Immutable handle; referenced by type attachments and rule CTAs. */
8
+ name: string;
9
+ label: string;
10
+ /** Free-form semantic tag (e.g. INSPECTION, CAPTURE, AUDIT). */
11
+ purpose?: string;
12
+ /** Form name — resolved to the current version at run time. */
13
+ form: string;
14
+ targetEntity: ActionTargetEntity;
15
+ presentation: ActionPresentation;
16
+ /** Absent = the generic submission label on history events. */
17
+ event?: ActionEvent;
18
+ /** Run on submit in author order (§4.2); absent = none. */
19
+ effects?: ActionEffect[];
20
+ /** UI-only visibility grants — binary for actions (`level` ignored; any
21
+ * grant ⇒ members-only). Absent/empty = usable by everyone. */
22
+ permissions?: PermissionGrant[];
23
+ meta?: IEntityMeta;
24
+ }
25
+ export interface GetActionsResponse {
26
+ query: GetActionsQuery | null;
27
+ total: number;
28
+ items: GetActionResponse[];
29
+ }
@@ -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/actions/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/actions/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/actions/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,15 @@
1
+ import { ActionEffect, ActionEvent, ActionPresentation, ActionTargetEntity } from '../shared';
2
+ export interface PostActionRequest {
3
+ /** Immutable handle; referenced by type attachments and rule CTAs. */
4
+ name: string;
5
+ label: string;
6
+ purpose?: string;
7
+ /** Must name an existing, non-archived form. Required in v1. */
8
+ form: string;
9
+ targetEntity: ActionTargetEntity;
10
+ /** Defaults to { placement: ['entityDetailButton'] }. */
11
+ presentation?: ActionPresentation;
12
+ event?: ActionEvent;
13
+ /** Run on submit in author order; templates checked at save (§4.2). */
14
+ effects?: ActionEffect[];
15
+ }
@@ -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/actions/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetActionResponse as PostActionResponse } 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/actions/post/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ /** The kind of entity an action runs against. */
2
+ export declare type ActionTargetEntity = 'asset' | 'location';
3
+ /**
4
+ * Where the client surfaces the action. Asset-target actions appear per the
5
+ * type attachment; location-target actions appear on every location (v1).
6
+ * `entityListButton` also surfaces the action inline on each row of the entity
7
+ * list / tree, not just on the detail page.
8
+ */
9
+ export declare type ActionPlacement = 'entityDetailButton' | 'overflowMenu' | 'entityListButton';
10
+ export interface ActionPresentation {
11
+ placement: ActionPlacement[];
12
+ icon?: string;
13
+ }
14
+ /**
15
+ * Display label stamped on the submission event (e.g. "INSPECTION_COMPLETED").
16
+ * Absent/null = the generic submission label. Never an event *type* — the
17
+ * stored type is always FormSubmitted.
18
+ */
19
+ export interface ActionEvent {
20
+ label: string;
21
+ }
22
+ /** Severity of a raiseAlert effect — drives the client toast/result panel. */
23
+ export declare const ACTION_ALERT_LEVELS: readonly ["success", "info", "warning", "error"];
24
+ export declare type ActionAlertLevel = (typeof ACTION_ALERT_LEVELS)[number];
25
+ /** One SES call carries all of a sendMessage effect's recipients (§4.2). */
26
+ export declare const ACTION_EFFECT_MAX_RECIPIENTS = 50;
27
+ /**
28
+ * Raise a resolved message into the submit response and the stored
29
+ * submission — client toast + result panel (§4.2). There is no persistent
30
+ * notification store in v1.
31
+ */
32
+ export interface ActionAlertEffect {
33
+ type: 'raiseAlert';
34
+ level: ActionAlertLevel;
35
+ /** Template; {Field} placeholders resolve over the submit env at run time. */
36
+ message: string;
37
+ }
38
+ /**
39
+ * Email via SES, sent post-commit best-effort (§4.2) — at most once per
40
+ * capture; interpolated values are HTML-escaped into the body at send time.
41
+ */
42
+ export interface ActionMessageEffect {
43
+ type: 'sendMessage';
44
+ /** Static recipient addresses (v1), capped at ACTION_EFFECT_MAX_RECIPIENTS. */
45
+ to: string[];
46
+ /** Template, interpolated like message (an SES field — structurally header-safe). */
47
+ subject: string;
48
+ message: string;
49
+ }
50
+ export declare type ActionEffect = ActionAlertEffect | ActionMessageEffect;
51
+ export declare type ActionEffectType = ActionEffect['type'];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACTION_EFFECT_MAX_RECIPIENTS = exports.ACTION_ALERT_LEVELS = void 0;
4
+ /** Severity of a raiseAlert effect — drives the client toast/result panel. */
5
+ exports.ACTION_ALERT_LEVELS = [
6
+ 'success',
7
+ 'info',
8
+ 'warning',
9
+ 'error',
10
+ ];
11
+ /** One SES call carries all of a sendMessage effect's recipients (§4.2). */
12
+ exports.ACTION_EFFECT_MAX_RECIPIENTS = 50;
13
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/actions/shared.ts"],"names":[],"mappings":";;;AA4BA,8EAA8E;AACjE,QAAA,mBAAmB,GAAG;IACjC,SAAS;IACT,MAAM;IACN,SAAS;IACT,OAAO;CACC,CAAA;AAIV,4EAA4E;AAC/D,QAAA,4BAA4B,GAAG,EAAE,CAAA"}
@@ -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/ai/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,27 @@
1
+ import { SemanticQueryEntityType } from '../../semantic-queries';
2
+ /**
3
+ * The chat entry point (POST /ai/chat) — one door, intent-routed.
4
+ *
5
+ * Every message is classified by a cheap model first (two tiers on purpose:
6
+ * classification costs a fraction of generation, and generation only runs once
7
+ * the intent is known). Only a supported intent goes on to pay for the big
8
+ * model; everything else is answered honestly as recognised-but-not-built.
9
+ */
10
+ export interface PostAiChatRequest {
11
+ /** The user's chat message, verbatim. */
12
+ message: string;
13
+ /**
14
+ * Id of the stored query the user currently has open, if any. Context for
15
+ * the classifier (an instruction fragment refines the open query) and the
16
+ * refinement base when the turn generates.
17
+ */
18
+ baseQueryId?: string;
19
+ /**
20
+ * Which entity list is on screen. A bare refinement ("last 30 days") typed
21
+ * while viewing one list refines THAT list — without this hint it would be
22
+ * classified as an asset query and answer a different question entirely.
23
+ */
24
+ viewing?: SemanticQueryEntityType;
25
+ /** IANA timezone, forwarded to generation (see PostAiSemanticQueryRequest). */
26
+ timezone?: string;
27
+ }
@@ -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/ai/chat/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ import { SemanticQueryEntityType } from '../../semantic-queries';
2
+ import { AiTokenUsage } from '../shared';
3
+ import { PostAiSemanticQueryResponse } from '../semantic-query';
4
+ export declare const aiChatActions: readonly ["filter", "edit", "help", "general"];
5
+ /** What the user wants to DO: see records, change records, learn the product, or chat. */
6
+ export declare type AiChatAction = (typeof aiChatActions)[number];
7
+ /**
8
+ * What the classifier understood — returned on EVERY response so the client
9
+ * can show what was understood and the misroutes are visible, not silent.
10
+ */
11
+ export interface AiChatIntent {
12
+ action: AiChatAction;
13
+ /**
14
+ * What the action applies to (what the user wants BACK, not what is
15
+ * mentioned in passing). Null for help/general. This is what a saved query
16
+ * stores as `entityType` — the classifier speaks the same vocabulary.
17
+ */
18
+ entity: SemanticQueryEntityType | null;
19
+ /** The classifier's one-line restatement of the request. */
20
+ summary: string;
21
+ /** False for intents recognised but not yet built (they answer honestly). */
22
+ supported: boolean;
23
+ }
24
+ /**
25
+ * Which shape the client got. `query` executes today; `help`, `general` and
26
+ * `unsupported` carry an honest text reply — help content and bulk-operation
27
+ * crafting are recognised by the classifier but deliberately deferred.
28
+ */
29
+ export declare const aiChatResponseKinds: readonly ["query", "help", "general", "unsupported"];
30
+ export declare type AiChatResponseKind = (typeof aiChatResponseKinds)[number];
31
+ interface AiChatResponseBase {
32
+ /** Discriminator for the payload shape. */
33
+ kind: AiChatResponseKind;
34
+ /** What the classifier understood. */
35
+ intent: AiChatIntent;
36
+ /** The classifier model that routed the turn (server-side config). */
37
+ classifierModel: string;
38
+ /**
39
+ * Whole-turn usage: classifier plus (for `query`) generation. The embedded
40
+ * generation result carries its own generation-only figure.
41
+ */
42
+ tokens: AiTokenUsage;
43
+ }
44
+ /** A filter turn that went to generation — the full generation result, embedded. */
45
+ export interface AiChatQueryResponse extends AiChatResponseBase {
46
+ kind: 'query';
47
+ /** The generation outcome, identical to POST /ai/semantic-query. */
48
+ result: PostAiSemanticQueryResponse;
49
+ }
50
+ /** A text-only turn: product help, general chat, or recognised-but-not-built. */
51
+ export interface AiChatReplyResponse extends AiChatResponseBase {
52
+ kind: 'help' | 'general' | 'unsupported';
53
+ /** The reply to show, markdown-safe plain text. */
54
+ reply: string;
55
+ }
56
+ export declare type PostAiChatResponse = AiChatQueryResponse | AiChatReplyResponse;
57
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiChatResponseKinds = exports.aiChatActions = void 0;
4
+ exports.aiChatActions = ['filter', 'edit', 'help', 'general'];
5
+ /**
6
+ * Which shape the client got. `query` executes today; `help`, `general` and
7
+ * `unsupported` carry an honest text reply — help content and bulk-operation
8
+ * crafting are recognised by the classifier but deliberately deferred.
9
+ */
10
+ exports.aiChatResponseKinds = ['query', 'help', 'general', 'unsupported'];
11
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/ai/chat/response.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAU,CAAA;AAsB3E;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,CAAU,CAAA"}
@@ -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/ai/expression/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,29 @@
1
+ import { FieldDataType, FieldInputType, FieldSource } from '../../fields';
2
+ import { AiProvider } from '../shared';
3
+ export declare type AiExpressionMode = 'readinessRule' | 'computedField';
4
+ /** Kept under its original name; the general union now lives in ai/shared.ts. */
5
+ export declare type AiExpressionProvider = AiProvider;
6
+ /**
7
+ * A field the AI may reference, supplied inline by the client (which already
8
+ * holds the type's resolved fields). A trimmed view of `GetFieldResponse` — the
9
+ * server builds the preamble + validates against this, so the client never has
10
+ * to round-trip the schema.
11
+ */
12
+ export interface AiExpressionField {
13
+ name: string;
14
+ dataType: FieldDataType;
15
+ inputType?: FieldInputType;
16
+ options?: string[];
17
+ label?: string;
18
+ source?: FieldSource;
19
+ }
20
+ export interface PostAiExpressionRequest {
21
+ /** Plain-language description of the rule / calculation. */
22
+ prompt: string;
23
+ /** Which kind of expression to produce. */
24
+ mode: AiExpressionMode;
25
+ /** The fields the expression may reference (the type's resolved fields). */
26
+ fields: AiExpressionField[];
27
+ /** Required for `computedField`: the field being computed (excluded from refs). */
28
+ fieldName?: string;
29
+ }
@@ -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/ai/expression/request.ts"],"names":[],"mappings":""}