@spotto/contract 1.0.70-alpha.9 → 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.
- package/README.md +33 -33
- package/dist/actions/[id]/index.d.ts +1 -0
- package/dist/actions/[id]/index.js +18 -0
- package/dist/actions/[id]/index.js.map +1 -0
- package/dist/actions/[id]/patch/index.d.ts +2 -0
- package/dist/actions/[id]/patch/index.js +19 -0
- package/dist/actions/[id]/patch/index.js.map +1 -0
- package/dist/actions/[id]/patch/request.d.ts +16 -0
- package/dist/actions/[id]/patch/request.js +3 -0
- package/dist/actions/[id]/patch/request.js.map +1 -0
- package/dist/actions/[id]/patch/response.d.ts +1 -0
- package/dist/actions/[id]/patch/response.js +3 -0
- package/dist/actions/[id]/patch/response.js.map +1 -0
- package/dist/actions/get/index.d.ts +2 -0
- package/dist/actions/get/index.js +19 -0
- package/dist/actions/get/index.js.map +1 -0
- package/dist/actions/get/query.d.ts +14 -0
- package/dist/actions/get/query.js +3 -0
- package/dist/actions/get/query.js.map +1 -0
- package/dist/actions/get/response.d.ts +29 -0
- package/dist/actions/get/response.js +3 -0
- package/dist/actions/get/response.js.map +1 -0
- package/dist/actions/index.d.ts +4 -0
- package/dist/actions/index.js +21 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/post/index.d.ts +2 -0
- package/dist/actions/post/index.js +19 -0
- package/dist/actions/post/index.js.map +1 -0
- package/dist/actions/post/request.d.ts +15 -0
- package/dist/actions/post/request.js +3 -0
- package/dist/actions/post/request.js.map +1 -0
- package/dist/actions/post/response.d.ts +1 -0
- package/dist/actions/post/response.js +3 -0
- package/dist/actions/post/response.js.map +1 -0
- package/dist/actions/shared.d.ts +51 -0
- package/dist/actions/shared.js +13 -0
- package/dist/actions/shared.js.map +1 -0
- package/dist/ai/chat/index.d.ts +2 -0
- package/dist/ai/chat/index.js +19 -0
- package/dist/ai/chat/index.js.map +1 -0
- package/dist/ai/chat/request.d.ts +42 -0
- package/dist/ai/chat/request.js +3 -0
- package/dist/ai/chat/request.js.map +1 -0
- package/dist/ai/chat/response.d.ts +74 -0
- package/dist/ai/chat/response.js +11 -0
- package/dist/ai/chat/response.js.map +1 -0
- package/dist/ai/expression/request.d.ts +3 -1
- package/dist/ai/index.d.ts +3 -0
- package/dist/ai/index.js +3 -0
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/semantic-query/index.d.ts +2 -0
- package/dist/ai/semantic-query/index.js +19 -0
- package/dist/ai/semantic-query/index.js.map +1 -0
- package/dist/ai/semantic-query/request.d.ts +43 -0
- package/dist/ai/semantic-query/request.js +3 -0
- package/dist/ai/semantic-query/request.js.map +1 -0
- package/dist/ai/semantic-query/response.d.ts +40 -0
- package/dist/ai/semantic-query/response.js +3 -0
- package/dist/ai/semantic-query/response.js.map +1 -0
- package/dist/ai/shared.d.ts +22 -0
- package/dist/ai/shared.js +11 -0
- package/dist/ai/shared.js.map +1 -0
- package/dist/assets/[id]/get.d.ts +2 -1
- package/dist/assets/count/query.d.ts +16 -1
- package/dist/assets/download/query.d.ts +7 -0
- package/dist/assets/get/query.d.ts +11 -0
- package/dist/assets/location/request.d.ts +10 -1
- package/dist/events/constants.d.ts +16 -1
- package/dist/events/constants.js +21 -1
- package/dist/events/constants.js.map +1 -1
- package/dist/events/get/query.d.ts +25 -0
- package/dist/events/get/response.d.ts +17 -1
- package/dist/fields/[id]/get.d.ts +3 -0
- package/dist/fields/[id]/patch/request.d.ts +4 -0
- package/dist/forms/[id]/index.d.ts +1 -0
- package/dist/forms/[id]/index.js +18 -0
- package/dist/forms/[id]/index.js.map +1 -0
- package/dist/forms/[id]/patch/index.d.ts +2 -0
- package/dist/forms/[id]/patch/index.js +19 -0
- package/dist/forms/[id]/patch/index.js.map +1 -0
- package/dist/forms/[id]/patch/request.d.ts +14 -0
- package/dist/forms/[id]/patch/request.js +3 -0
- package/dist/forms/[id]/patch/request.js.map +1 -0
- package/dist/forms/[id]/patch/response.d.ts +1 -0
- package/dist/forms/[id]/patch/response.js +3 -0
- package/dist/forms/[id]/patch/response.js.map +1 -0
- package/dist/forms/constants.d.ts +19 -0
- package/dist/forms/constants.js +33 -0
- package/dist/forms/constants.js.map +1 -0
- package/dist/forms/get/index.d.ts +2 -0
- package/dist/forms/get/index.js +19 -0
- package/dist/forms/get/index.js.map +1 -0
- package/dist/forms/get/query.d.ts +18 -0
- package/dist/forms/get/query.js +3 -0
- package/dist/forms/get/query.js.map +1 -0
- package/dist/forms/get/response.d.ts +23 -0
- package/dist/forms/get/response.js +3 -0
- package/dist/forms/get/response.js.map +1 -0
- package/dist/forms/index.d.ts +6 -0
- package/dist/forms/index.js +23 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/post/index.d.ts +2 -0
- package/dist/forms/post/index.js +19 -0
- package/dist/forms/post/index.js.map +1 -0
- package/dist/forms/post/request.d.ts +9 -0
- package/dist/forms/post/request.js +3 -0
- package/dist/forms/post/request.js.map +1 -0
- package/dist/forms/post/response.d.ts +1 -0
- package/dist/forms/post/response.js +3 -0
- package/dist/forms/post/response.js.map +1 -0
- package/dist/forms/shared.d.ts +127 -0
- package/dist/forms/shared.js +3 -0
- package/dist/forms/shared.js.map +1 -0
- package/dist/forms/versions/index.d.ts +2 -0
- package/dist/forms/versions/index.js +19 -0
- package/dist/forms/versions/index.js.map +1 -0
- package/dist/forms/versions/path.d.ts +8 -0
- package/dist/forms/versions/path.js +3 -0
- package/dist/forms/versions/path.js.map +1 -0
- package/dist/forms/versions/response.d.ts +1 -0
- package/dist/forms/versions/response.js +3 -0
- package/dist/forms/versions/response.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/locations/get/query.d.ts +14 -0
- package/dist/organisations/constants.d.ts +11 -0
- package/dist/organisations/sso/constants.d.ts +15 -0
- package/dist/organisations/sso/constants.js +16 -1
- package/dist/organisations/sso/constants.js.map +1 -1
- package/dist/organisations/sso/types.d.ts +48 -0
- package/dist/readers/get/query.d.ts +12 -0
- package/dist/semantic-queries/[id]/index.d.ts +1 -0
- package/dist/semantic-queries/[id]/index.js +18 -0
- package/dist/semantic-queries/[id]/index.js.map +1 -0
- package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
- package/dist/semantic-queries/[id]/patch/index.js +19 -0
- package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
- package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
- package/dist/semantic-queries/[id]/patch/request.js +3 -0
- package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
- package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
- package/dist/semantic-queries/[id]/patch/response.js +3 -0
- package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
- package/dist/semantic-queries/get/index.d.ts +2 -0
- package/dist/semantic-queries/get/index.js +19 -0
- package/dist/semantic-queries/get/index.js.map +1 -0
- package/dist/semantic-queries/get/query.d.ts +18 -0
- package/dist/semantic-queries/get/query.js +3 -0
- package/dist/semantic-queries/get/query.js.map +1 -0
- package/dist/semantic-queries/get/response.d.ts +40 -0
- package/dist/semantic-queries/get/response.js +3 -0
- package/dist/semantic-queries/get/response.js.map +1 -0
- package/dist/semantic-queries/index.d.ts +4 -0
- package/dist/semantic-queries/index.js +21 -0
- package/dist/semantic-queries/index.js.map +1 -0
- package/dist/semantic-queries/post/index.d.ts +2 -0
- package/dist/semantic-queries/post/index.js +19 -0
- package/dist/semantic-queries/post/index.js.map +1 -0
- package/dist/semantic-queries/post/request.d.ts +56 -0
- package/dist/semantic-queries/post/request.js +3 -0
- package/dist/semantic-queries/post/request.js.map +1 -0
- package/dist/semantic-queries/post/response.d.ts +1 -0
- package/dist/semantic-queries/post/response.js +3 -0
- package/dist/semantic-queries/post/response.js.map +1 -0
- package/dist/semantic-queries/shared.d.ts +853 -0
- package/dist/semantic-queries/shared.js +318 -0
- package/dist/semantic-queries/shared.js.map +1 -0
- package/dist/shared/attachments.d.ts +29 -0
- package/dist/shared/attachments.js +11 -0
- package/dist/shared/attachments.js.map +1 -0
- package/dist/shared/embed.d.ts +14 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/readiness.d.ts +23 -0
- package/dist/snapshots/[id]/get.d.ts +139 -11
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/get/query.d.ts +39 -0
- package/dist/snapshots/get/query.js +23 -1
- package/dist/snapshots/get/query.js.map +1 -1
- package/dist/snapshots/post/request.d.ts +21 -0
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/sso/onboard/request.d.ts +12 -1
- package/dist/sso/sso-mappings/request.d.ts +10 -5
- package/dist/submissions/[id]/index.d.ts +1 -0
- package/dist/submissions/[id]/index.js +18 -0
- package/dist/submissions/[id]/index.js.map +1 -0
- package/dist/submissions/[id]/void/post.d.ts +6 -0
- package/dist/submissions/[id]/void/post.js +3 -0
- package/dist/submissions/[id]/void/post.js.map +1 -0
- package/dist/submissions/constants.d.ts +14 -0
- package/dist/submissions/constants.js +21 -0
- package/dist/submissions/constants.js.map +1 -0
- package/dist/submissions/get/index.d.ts +2 -0
- package/dist/submissions/get/index.js +19 -0
- package/dist/submissions/get/index.js.map +1 -0
- package/dist/submissions/get/query.d.ts +14 -0
- package/dist/submissions/get/query.js +3 -0
- package/dist/submissions/get/query.js.map +1 -0
- package/dist/submissions/get/response.d.ts +6 -0
- package/dist/submissions/get/response.js +3 -0
- package/dist/submissions/get/response.js.map +1 -0
- package/dist/submissions/index.d.ts +6 -0
- package/dist/submissions/index.js +23 -0
- package/dist/submissions/index.js.map +1 -0
- package/dist/submissions/post/index.d.ts +2 -0
- package/dist/submissions/post/index.js +19 -0
- package/dist/submissions/post/index.js.map +1 -0
- package/dist/submissions/post/request.d.ts +17 -0
- package/dist/submissions/post/request.js +3 -0
- package/dist/submissions/post/request.js.map +1 -0
- package/dist/submissions/post/response.d.ts +22 -0
- package/dist/submissions/post/response.js +3 -0
- package/dist/submissions/post/response.js.map +1 -0
- package/dist/submissions/shared.d.ts +133 -0
- package/dist/submissions/shared.js +3 -0
- package/dist/submissions/shared.js.map +1 -0
- package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
- package/dist/submissions/uploads/[fileId]/get.js +3 -0
- package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
- package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
- package/dist/submissions/uploads/[fileId]/index.js +18 -0
- package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
- package/dist/submissions/uploads/index.d.ts +2 -0
- package/dist/submissions/uploads/index.js +19 -0
- package/dist/submissions/uploads/index.js.map +1 -0
- package/dist/submissions/uploads/post/index.d.ts +2 -0
- package/dist/submissions/uploads/post/index.js +19 -0
- package/dist/submissions/uploads/post/index.js.map +1 -0
- package/dist/submissions/uploads/post/request.d.ts +9 -0
- package/dist/submissions/uploads/post/request.js +3 -0
- package/dist/submissions/uploads/post/request.js.map +1 -0
- package/dist/submissions/uploads/post/response.d.ts +18 -0
- package/dist/submissions/uploads/post/response.js +3 -0
- package/dist/submissions/uploads/post/response.js.map +1 -0
- package/dist/types/[id]/get.d.ts +3 -1
- package/dist/types/[id]/patch/request.d.ts +4 -1
- package/dist/types/post/request.d.ts +2 -1
- package/dist/types/post/request.js.map +1 -1
- package/dist/usergroups/[id]/index.d.ts +1 -0
- package/dist/usergroups/[id]/index.js +18 -0
- package/dist/usergroups/[id]/index.js.map +1 -0
- package/dist/usergroups/[id]/patch/index.d.ts +2 -0
- package/dist/usergroups/[id]/patch/index.js +19 -0
- package/dist/usergroups/[id]/patch/index.js.map +1 -0
- package/dist/usergroups/[id]/patch/request.d.ts +12 -0
- package/dist/usergroups/[id]/patch/request.js +3 -0
- package/dist/usergroups/[id]/patch/request.js.map +1 -0
- package/dist/usergroups/[id]/patch/response.d.ts +1 -0
- package/dist/usergroups/[id]/patch/response.js +3 -0
- package/dist/usergroups/[id]/patch/response.js.map +1 -0
- package/dist/usergroups/get/index.d.ts +2 -0
- package/dist/usergroups/get/index.js +19 -0
- package/dist/usergroups/get/index.js.map +1 -0
- package/dist/usergroups/get/query.d.ts +12 -0
- package/dist/usergroups/get/query.js +3 -0
- package/dist/usergroups/get/query.js.map +1 -0
- package/dist/usergroups/get/response.d.ts +35 -0
- package/dist/usergroups/get/response.js +3 -0
- package/dist/usergroups/get/response.js.map +1 -0
- package/dist/usergroups/index.d.ts +4 -0
- package/dist/usergroups/index.js +21 -0
- package/dist/usergroups/index.js.map +1 -0
- package/dist/usergroups/post/index.d.ts +2 -0
- package/dist/usergroups/post/index.js +19 -0
- package/dist/usergroups/post/index.js.map +1 -0
- package/dist/usergroups/post/request.d.ts +11 -0
- package/dist/usergroups/post/request.js +3 -0
- package/dist/usergroups/post/request.js.map +1 -0
- package/dist/usergroups/post/response.d.ts +1 -0
- package/dist/usergroups/post/response.js +3 -0
- package/dist/usergroups/post/response.js.map +1 -0
- package/dist/usergroups/shared.d.ts +25 -0
- package/dist/usergroups/shared.js +11 -0
- package/dist/usergroups/shared.js.map +1 -0
- package/dist/users/[id]/get/response.d.ts +0 -2
- package/dist/users/[id]/patch/request.d.ts +5 -1
- package/dist/users/current.d.ts +22 -4
- package/dist/users/get/query.d.ts +0 -2
- package/dist/users/home-layout/shared.d.ts +96 -21
- package/dist/users/home-layout/shared.js +11 -5
- package/dist/users/home-layout/shared.js.map +1 -1
- package/dist/users/post/request.d.ts +6 -1
- 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,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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/actions/[id]/patch/response.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/actions/get/response.ts"],"names":[],"mappings":""}
|
|
@@ -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,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 @@
|
|
|
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 @@
|
|
|
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,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,42 @@
|
|
|
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
|
+
/** One prior turn of the on-screen transcript, replayed as context. */
|
|
11
|
+
export interface AiChatHistoryTurn {
|
|
12
|
+
role: 'user' | 'assistant';
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PostAiChatRequest {
|
|
16
|
+
/** The user's chat message, verbatim. */
|
|
17
|
+
message: string;
|
|
18
|
+
/**
|
|
19
|
+
* Recent turns of the conversation, oldest first — the client holds the
|
|
20
|
+
* transcript, the server stores none of it.
|
|
21
|
+
*
|
|
22
|
+
* Read by PRODUCT HELP only, where a follow-up ("and how do I undo that?")
|
|
23
|
+
* is meaningless without what came before. Query turns need no transcript:
|
|
24
|
+
* the registered query IS the state and `baseQueryId` carries it, which is
|
|
25
|
+
* why chat conversations are not persisted at all.
|
|
26
|
+
*/
|
|
27
|
+
history?: AiChatHistoryTurn[];
|
|
28
|
+
/**
|
|
29
|
+
* Id of the stored query the user currently has open, if any. Context for
|
|
30
|
+
* the classifier (an instruction fragment refines the open query) and the
|
|
31
|
+
* refinement base when the turn generates.
|
|
32
|
+
*/
|
|
33
|
+
baseQueryId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Which entity list is on screen. A bare refinement ("last 30 days") typed
|
|
36
|
+
* while viewing one list refines THAT list — without this hint it would be
|
|
37
|
+
* classified as an asset query and answer a different question entirely.
|
|
38
|
+
*/
|
|
39
|
+
viewing?: SemanticQueryEntityType;
|
|
40
|
+
/** IANA timezone, forwarded to generation (see PostAiSemanticQueryRequest). */
|
|
41
|
+
timezone?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/ai/chat/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
/**
|
|
51
|
+
* A help article an answer drew on — enough to render a link, no more.
|
|
52
|
+
*
|
|
53
|
+
* Matched by TITLE against the reply the model produced, which is why an
|
|
54
|
+
* answer is asked to name its article: a miss costs a link, not an answer.
|
|
55
|
+
*/
|
|
56
|
+
export interface AiHelpSource {
|
|
57
|
+
title: string;
|
|
58
|
+
url: string;
|
|
59
|
+
}
|
|
60
|
+
/** A text-only turn: product help, general chat, or recognised-but-not-built. */
|
|
61
|
+
export interface AiChatReplyResponse extends AiChatResponseBase {
|
|
62
|
+
kind: 'help' | 'general' | 'unsupported';
|
|
63
|
+
/** The reply to show. Markdown — help answers are step-by-step prose. */
|
|
64
|
+
reply: string;
|
|
65
|
+
/**
|
|
66
|
+
* Present on `help` turns that cited an article. The reply's own trailing
|
|
67
|
+
* "Source:" line is stripped server-side once these are extracted, so a
|
|
68
|
+
* client renders links rather than the model's plain-text restatement of
|
|
69
|
+
* them — and every client renders the same thing.
|
|
70
|
+
*/
|
|
71
|
+
sources?: AiHelpSource[];
|
|
72
|
+
}
|
|
73
|
+
export declare type PostAiChatResponse = AiChatQueryResponse | AiChatReplyResponse;
|
|
74
|
+
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"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FieldDataType, FieldInputType, FieldSource } from '../../fields';
|
|
2
|
+
import { AiProvider } from '../shared';
|
|
2
3
|
export declare type AiExpressionMode = 'readinessRule' | 'computedField';
|
|
3
|
-
|
|
4
|
+
/** Kept under its original name; the general union now lives in ai/shared.ts. */
|
|
5
|
+
export declare type AiExpressionProvider = AiProvider;
|
|
4
6
|
/**
|
|
5
7
|
* A field the AI may reference, supplied inline by the client (which already
|
|
6
8
|
* holds the type's resolved fields). A trimmed view of `GetFieldResponse` — the
|
package/dist/ai/index.d.ts
CHANGED
package/dist/ai/index.js
CHANGED
|
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared"), exports);
|
|
17
18
|
__exportStar(require("./expression"), exports);
|
|
19
|
+
__exportStar(require("./semantic-query"), exports);
|
|
20
|
+
__exportStar(require("./chat"), exports);
|
|
18
21
|
//# sourceMappingURL=index.js.map
|
package/dist/ai/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B;AAC5B,mDAAgC;AAChC,yCAAsB"}
|