@gleanwork/api-client 0.13.5 → 0.13.7
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/dist/commonjs/__tests__/summarize.test.js +3 -4
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/activityevent.d.ts +21 -0
- package/dist/commonjs/models/components/activityevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/activityevent.js +21 -0
- package/dist/commonjs/models/components/activityevent.js.map +1 -1
- package/dist/commonjs/models/components/agentconfig.d.ts +21 -0
- package/dist/commonjs/models/components/agentconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconfig.js +21 -0
- package/dist/commonjs/models/components/agentconfig.js.map +1 -1
- package/dist/commonjs/models/components/chatmessage.d.ts +27 -0
- package/dist/commonjs/models/components/chatmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatmessage.js +27 -0
- package/dist/commonjs/models/components/chatmessage.js.map +1 -1
- package/dist/commonjs/models/components/documentvisibility.d.ts +18 -0
- package/dist/commonjs/models/components/documentvisibility.d.ts.map +1 -1
- package/dist/commonjs/models/components/documentvisibility.js +18 -0
- package/dist/commonjs/models/components/documentvisibility.js.map +1 -1
- package/dist/commonjs/models/components/facetfiltervalue.d.ts +15 -0
- package/dist/commonjs/models/components/facetfiltervalue.d.ts.map +1 -1
- package/dist/commonjs/models/components/facetfiltervalue.js +15 -0
- package/dist/commonjs/models/components/facetfiltervalue.js.map +1 -1
- package/dist/commonjs/models/components/feedback.d.ts +90 -0
- package/dist/commonjs/models/components/feedback.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedback.js +90 -0
- package/dist/commonjs/models/components/feedback.js.map +1 -1
- package/dist/commonjs/models/components/getchatfilesrequest.d.ts +0 -5
- package/dist/commonjs/models/components/getchatfilesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/getchatfilesrequest.js +0 -1
- package/dist/commonjs/models/components/getchatfilesrequest.js.map +1 -1
- package/dist/commonjs/models/components/listentitiesrequest.d.ts +6 -0
- package/dist/commonjs/models/components/listentitiesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/listentitiesrequest.js +6 -0
- package/dist/commonjs/models/components/listentitiesrequest.js.map +1 -1
- package/dist/commonjs/models/components/personmetadata.d.ts +12 -0
- package/dist/commonjs/models/components/personmetadata.d.ts.map +1 -1
- package/dist/commonjs/models/components/personmetadata.js +12 -0
- package/dist/commonjs/models/components/personmetadata.js.map +1 -1
- package/dist/commonjs/models/components/relateddocuments.d.ts +3 -0
- package/dist/commonjs/models/components/relateddocuments.d.ts.map +1 -1
- package/dist/commonjs/models/components/relateddocuments.js +3 -0
- package/dist/commonjs/models/components/relateddocuments.js.map +1 -1
- package/dist/commonjs/models/components/searchrequestoptions.d.ts +15 -0
- package/dist/commonjs/models/components/searchrequestoptions.d.ts.map +1 -1
- package/dist/commonjs/models/components/searchrequestoptions.js +15 -0
- package/dist/commonjs/models/components/searchrequestoptions.js.map +1 -1
- package/dist/commonjs/models/components/searchresultprominenceenum.d.ts +9 -0
- package/dist/commonjs/models/components/searchresultprominenceenum.d.ts.map +1 -1
- package/dist/commonjs/models/components/searchresultprominenceenum.js +9 -0
- package/dist/commonjs/models/components/searchresultprominenceenum.js.map +1 -1
- package/dist/commonjs/models/components/sectiontype.d.ts +9 -0
- package/dist/commonjs/models/components/sectiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/sectiontype.js +9 -0
- package/dist/commonjs/models/components/sectiontype.js.map +1 -1
- package/dist/commonjs/models/components/structuredresult.d.ts +9 -0
- package/dist/commonjs/models/components/structuredresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/structuredresult.js +9 -0
- package/dist/commonjs/models/components/structuredresult.js.map +1 -1
- package/dist/commonjs/models/components/toolmetadata.d.ts +4 -3
- package/dist/commonjs/models/components/toolmetadata.d.ts.map +1 -1
- package/dist/commonjs/models/components/toolmetadata.js +2 -1
- package/dist/commonjs/models/components/toolmetadata.js.map +1 -1
- package/dist/commonjs/models/components/updatetype.d.ts +6 -0
- package/dist/commonjs/models/components/updatetype.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatetype.js +6 -0
- package/dist/commonjs/models/components/updatetype.js.map +1 -1
- package/dist/commonjs/types/enums.d.ts +10 -6
- package/dist/commonjs/types/enums.d.ts.map +1 -1
- package/dist/commonjs/types/enums.js +76 -2
- package/dist/commonjs/types/enums.js.map +1 -1
- package/dist/commonjs/types/index.d.ts +0 -1
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +1 -3
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/esm/__tests__/summarize.test.js +3 -4
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/activityevent.d.ts +21 -0
- package/dist/esm/models/components/activityevent.d.ts.map +1 -1
- package/dist/esm/models/components/activityevent.js +21 -0
- package/dist/esm/models/components/activityevent.js.map +1 -1
- package/dist/esm/models/components/agentconfig.d.ts +21 -0
- package/dist/esm/models/components/agentconfig.d.ts.map +1 -1
- package/dist/esm/models/components/agentconfig.js +21 -0
- package/dist/esm/models/components/agentconfig.js.map +1 -1
- package/dist/esm/models/components/chatmessage.d.ts +27 -0
- package/dist/esm/models/components/chatmessage.d.ts.map +1 -1
- package/dist/esm/models/components/chatmessage.js +27 -0
- package/dist/esm/models/components/chatmessage.js.map +1 -1
- package/dist/esm/models/components/documentvisibility.d.ts +18 -0
- package/dist/esm/models/components/documentvisibility.d.ts.map +1 -1
- package/dist/esm/models/components/documentvisibility.js +18 -0
- package/dist/esm/models/components/documentvisibility.js.map +1 -1
- package/dist/esm/models/components/facetfiltervalue.d.ts +15 -0
- package/dist/esm/models/components/facetfiltervalue.d.ts.map +1 -1
- package/dist/esm/models/components/facetfiltervalue.js +15 -0
- package/dist/esm/models/components/facetfiltervalue.js.map +1 -1
- package/dist/esm/models/components/feedback.d.ts +90 -0
- package/dist/esm/models/components/feedback.d.ts.map +1 -1
- package/dist/esm/models/components/feedback.js +90 -0
- package/dist/esm/models/components/feedback.js.map +1 -1
- package/dist/esm/models/components/getchatfilesrequest.d.ts +0 -5
- package/dist/esm/models/components/getchatfilesrequest.d.ts.map +1 -1
- package/dist/esm/models/components/getchatfilesrequest.js +0 -1
- package/dist/esm/models/components/getchatfilesrequest.js.map +1 -1
- package/dist/esm/models/components/listentitiesrequest.d.ts +6 -0
- package/dist/esm/models/components/listentitiesrequest.d.ts.map +1 -1
- package/dist/esm/models/components/listentitiesrequest.js +6 -0
- package/dist/esm/models/components/listentitiesrequest.js.map +1 -1
- package/dist/esm/models/components/personmetadata.d.ts +12 -0
- package/dist/esm/models/components/personmetadata.d.ts.map +1 -1
- package/dist/esm/models/components/personmetadata.js +12 -0
- package/dist/esm/models/components/personmetadata.js.map +1 -1
- package/dist/esm/models/components/relateddocuments.d.ts +3 -0
- package/dist/esm/models/components/relateddocuments.d.ts.map +1 -1
- package/dist/esm/models/components/relateddocuments.js +3 -0
- package/dist/esm/models/components/relateddocuments.js.map +1 -1
- package/dist/esm/models/components/searchrequestoptions.d.ts +15 -0
- package/dist/esm/models/components/searchrequestoptions.d.ts.map +1 -1
- package/dist/esm/models/components/searchrequestoptions.js +15 -0
- package/dist/esm/models/components/searchrequestoptions.js.map +1 -1
- package/dist/esm/models/components/searchresultprominenceenum.d.ts +9 -0
- package/dist/esm/models/components/searchresultprominenceenum.d.ts.map +1 -1
- package/dist/esm/models/components/searchresultprominenceenum.js +9 -0
- package/dist/esm/models/components/searchresultprominenceenum.js.map +1 -1
- package/dist/esm/models/components/sectiontype.d.ts +9 -0
- package/dist/esm/models/components/sectiontype.d.ts.map +1 -1
- package/dist/esm/models/components/sectiontype.js +9 -0
- package/dist/esm/models/components/sectiontype.js.map +1 -1
- package/dist/esm/models/components/structuredresult.d.ts +9 -0
- package/dist/esm/models/components/structuredresult.d.ts.map +1 -1
- package/dist/esm/models/components/structuredresult.js +9 -0
- package/dist/esm/models/components/structuredresult.js.map +1 -1
- package/dist/esm/models/components/toolmetadata.d.ts +4 -3
- package/dist/esm/models/components/toolmetadata.d.ts.map +1 -1
- package/dist/esm/models/components/toolmetadata.js +2 -1
- package/dist/esm/models/components/toolmetadata.js.map +1 -1
- package/dist/esm/models/components/updatetype.d.ts +6 -0
- package/dist/esm/models/components/updatetype.d.ts.map +1 -1
- package/dist/esm/models/components/updatetype.js +6 -0
- package/dist/esm/models/components/updatetype.js.map +1 -1
- package/dist/esm/types/enums.d.ts +10 -6
- package/dist/esm/types/enums.d.ts.map +1 -1
- package/dist/esm/types/enums.js +38 -1
- package/dist/esm/types/enums.js.map +1 -1
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/index.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/summarize.test.ts +3 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/activityevent.ts +21 -0
- package/src/models/components/agentconfig.ts +21 -0
- package/src/models/components/chatmessage.ts +27 -0
- package/src/models/components/documentvisibility.ts +18 -0
- package/src/models/components/facetfiltervalue.ts +15 -0
- package/src/models/components/feedback.ts +90 -0
- package/src/models/components/getchatfilesrequest.ts +0 -6
- package/src/models/components/listentitiesrequest.ts +6 -0
- package/src/models/components/personmetadata.ts +12 -0
- package/src/models/components/relateddocuments.ts +3 -0
- package/src/models/components/searchrequestoptions.ts +15 -0
- package/src/models/components/searchresultprominenceenum.ts +9 -0
- package/src/models/components/sectiontype.ts +9 -0
- package/src/models/components/structuredresult.ts +9 -0
- package/src/models/components/toolmetadata.ts +4 -3
- package/src/models/components/updatetype.ts +6 -0
- package/src/types/enums.ts +55 -6
- package/src/types/index.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACb,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACpE,CAAC,CAAC,MAAM,CAAC,CAAC,GACV,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAS9D,wBAAgB,mBAAmB;;EAUlC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAM/C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxE,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAO/C;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7D,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACzE,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C"}
|
package/dist/esm/types/enums.js
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
function unrecognized(value) {
|
|
6
|
+
unrecognizedCount++;
|
|
5
7
|
return value;
|
|
6
8
|
}
|
|
9
|
+
let unrecognizedCount = 0;
|
|
10
|
+
let refCount = 0;
|
|
11
|
+
export function unrecognizedCounter() {
|
|
12
|
+
refCount++;
|
|
13
|
+
const start = unrecognizedCount;
|
|
14
|
+
return {
|
|
15
|
+
count: () => {
|
|
16
|
+
const count = unrecognizedCount - start;
|
|
17
|
+
if (--refCount === 0)
|
|
18
|
+
unrecognizedCount = 0;
|
|
19
|
+
return count;
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function inboundSchema(enumObj) {
|
|
24
|
+
const options = Object.values(enumObj);
|
|
25
|
+
return z.union([
|
|
26
|
+
...options.map(x => z.literal(x)),
|
|
27
|
+
z.string().transform(x => unrecognized(x)),
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
export function inboundSchemaInt(enumObj) {
|
|
31
|
+
// For numeric enums, Object.values returns both numbers and string keys
|
|
32
|
+
const options = Object.values(enumObj).filter(v => typeof v === "number");
|
|
33
|
+
return z.union([
|
|
34
|
+
...options.map(x => z.literal(x)),
|
|
35
|
+
z.number().int().transform(x => unrecognized(x)),
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
export function outboundSchema(_) {
|
|
39
|
+
return z.string();
|
|
40
|
+
}
|
|
41
|
+
export function outboundSchemaInt(_) {
|
|
42
|
+
return z.number().int();
|
|
43
|
+
}
|
|
7
44
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAU5B,SAAS,YAAY,CAAI,KAAQ;IAC/B,iBAAiB,EAAE,CAAC;IACpB,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAC1B,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,MAAM,UAAU,mBAAmB;IACjC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,iBAAiB,CAAC;IAChC,OAAO;QACL,KAAK,EAAE,GAAG,EAAE;YACV,MAAM,KAAK,GAAG,iBAAiB,GAAG,KAAK,CAAC;YACxC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,iBAAiB,GAAG,CAAC,CAAC;YAC5C,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,OAAU;IAEV,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;KACpC,CAAC,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,OAAU;IAEV,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC1E,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;KAC1C,CAAC,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAS,CAAC;AACjC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
-
export { catchUnrecognizedEnum } from "./enums.js";
|
|
3
2
|
export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js";
|
|
4
3
|
export type { Result } from "./fp.js";
|
|
5
4
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
5
|
-
export { catchUnrecognizedEnum } from "./enums.js";
|
|
6
5
|
export { createPageIterator } from "./operations.js";
|
|
7
6
|
export { RFCDate } from "./rfcdate.js";
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -18,12 +18,11 @@ test("Summarize Summarize", async () => {
|
|
|
18
18
|
const result = await glean.client.documents.summarize({
|
|
19
19
|
documentSpecs: [
|
|
20
20
|
{
|
|
21
|
-
ugcType: "
|
|
22
|
-
contentId:
|
|
21
|
+
ugcType: "ANNOUNCEMENTS",
|
|
22
|
+
contentId: 936916,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
|
|
26
|
-
contentId: 602763,
|
|
25
|
+
url: "https://ruddy-massage.net",
|
|
27
26
|
},
|
|
28
27
|
],
|
|
29
28
|
});
|
package/src/lib/config.ts
CHANGED
|
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "0.9.0",
|
|
71
|
-
sdkVersion: "0.13.
|
|
72
|
-
genVersion: "2.
|
|
71
|
+
sdkVersion: "0.13.7",
|
|
72
|
+
genVersion: "2.753.6",
|
|
73
73
|
userAgent:
|
|
74
|
-
"speakeasy-sdk/typescript 0.13.
|
|
74
|
+
"speakeasy-sdk/typescript 0.13.7 2.753.6 0.9.0 @gleanwork/api-client",
|
|
75
75
|
} as const;
|
|
@@ -14,12 +14,33 @@ import {
|
|
|
14
14
|
* The type of activity this represents.
|
|
15
15
|
*/
|
|
16
16
|
export const ActivityEventAction = {
|
|
17
|
+
/**
|
|
18
|
+
* Represents a visit to the given `url`.
|
|
19
|
+
*/
|
|
17
20
|
View: "VIEW",
|
|
21
|
+
/**
|
|
22
|
+
* Represents an edit of the document represented by the `url`.
|
|
23
|
+
*/
|
|
18
24
|
Edit: "EDIT",
|
|
25
|
+
/**
|
|
26
|
+
* Represents a search performed at the given `url`.
|
|
27
|
+
*/
|
|
19
28
|
Search: "SEARCH",
|
|
29
|
+
/**
|
|
30
|
+
* Represents a comment on the document represented by the `url`.
|
|
31
|
+
*/
|
|
20
32
|
Comment: "COMMENT",
|
|
33
|
+
/**
|
|
34
|
+
* Represents an explicit request to index the given `url` along with associated attributes in this payload.
|
|
35
|
+
*/
|
|
21
36
|
Crawl: "CRAWL",
|
|
37
|
+
/**
|
|
38
|
+
* Represents a search performed at the given `url` as indicated by the user's history.
|
|
39
|
+
*/
|
|
22
40
|
HistoricalSearch: "HISTORICAL_SEARCH",
|
|
41
|
+
/**
|
|
42
|
+
* Represents a visit to the given `url` as indicated by the user's history.
|
|
43
|
+
*/
|
|
23
44
|
HistoricalView: "HISTORICAL_VIEW",
|
|
24
45
|
} as const;
|
|
25
46
|
/**
|
|
@@ -18,10 +18,25 @@ import {
|
|
|
18
18
|
* Name of the agent.
|
|
19
19
|
*/
|
|
20
20
|
export const AgentEnum = {
|
|
21
|
+
/**
|
|
22
|
+
* Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values
|
|
23
|
+
*/
|
|
21
24
|
Default: "DEFAULT",
|
|
25
|
+
/**
|
|
26
|
+
* Communicates directly with the LLM. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values
|
|
27
|
+
*/
|
|
22
28
|
Gpt: "GPT",
|
|
29
|
+
/**
|
|
30
|
+
* Uses both company and web knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values
|
|
31
|
+
*/
|
|
23
32
|
Universal: "UNIVERSAL",
|
|
33
|
+
/**
|
|
34
|
+
* Uses an agent powered by the agentic engine that responds faster but may have lower quality results. Requires the agentic engine to be enabled in the deployment.
|
|
35
|
+
*/
|
|
24
36
|
Fast: "FAST",
|
|
37
|
+
/**
|
|
38
|
+
* Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment.
|
|
39
|
+
*/
|
|
25
40
|
Advanced: "ADVANCED",
|
|
26
41
|
} as const;
|
|
27
42
|
/**
|
|
@@ -33,7 +48,13 @@ export type AgentEnum = ClosedEnum<typeof AgentEnum>;
|
|
|
33
48
|
* Top level modes to run GleanChat in.
|
|
34
49
|
*/
|
|
35
50
|
export const Mode = {
|
|
51
|
+
/**
|
|
52
|
+
* Used if no mode supplied.
|
|
53
|
+
*/
|
|
36
54
|
Default: "DEFAULT",
|
|
55
|
+
/**
|
|
56
|
+
* Deprecated.
|
|
57
|
+
*/
|
|
37
58
|
Quick: "QUICK",
|
|
38
59
|
} as const;
|
|
39
60
|
/**
|
|
@@ -36,14 +36,41 @@ export type Author = ClosedEnum<typeof Author>;
|
|
|
36
36
|
* Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified.
|
|
37
37
|
*/
|
|
38
38
|
export const MessageType = {
|
|
39
|
+
/**
|
|
40
|
+
* An intermediate state message for progress updates.
|
|
41
|
+
*/
|
|
39
42
|
Update: "UPDATE",
|
|
43
|
+
/**
|
|
44
|
+
* A user query or response message.
|
|
45
|
+
*/
|
|
40
46
|
Content: "CONTENT",
|
|
47
|
+
/**
|
|
48
|
+
* A message providing context in addition to the user query.
|
|
49
|
+
*/
|
|
41
50
|
Context: "CONTEXT",
|
|
51
|
+
/**
|
|
52
|
+
* A debug message. Strictly used internally.
|
|
53
|
+
*/
|
|
42
54
|
Debug: "DEBUG",
|
|
55
|
+
/**
|
|
56
|
+
* A debug message to be used while debugging Action creation.
|
|
57
|
+
*/
|
|
43
58
|
DebugExternal: "DEBUG_EXTERNAL",
|
|
59
|
+
/**
|
|
60
|
+
* A message that describes an error while processing the request.
|
|
61
|
+
*/
|
|
44
62
|
Error: "ERROR",
|
|
63
|
+
/**
|
|
64
|
+
* A heading message used to distinguish different sections of the holistic response.
|
|
65
|
+
*/
|
|
45
66
|
Heading: "HEADING",
|
|
67
|
+
/**
|
|
68
|
+
* A warning message to be shown to the user.
|
|
69
|
+
*/
|
|
46
70
|
Warning: "WARNING",
|
|
71
|
+
/**
|
|
72
|
+
* A message used to for server-side tool auth/use, for request and response.
|
|
73
|
+
*/
|
|
47
74
|
ServerTool: "SERVER_TOOL",
|
|
48
75
|
} as const;
|
|
49
76
|
/**
|
|
@@ -9,11 +9,29 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
* The level of visibility of the document as understood by our system.
|
|
10
10
|
*/
|
|
11
11
|
export const DocumentVisibility = {
|
|
12
|
+
/**
|
|
13
|
+
* Only one person is able to see the document.
|
|
14
|
+
*/
|
|
12
15
|
Private: "PRIVATE",
|
|
16
|
+
/**
|
|
17
|
+
* Only specific people and/or groups can see the document.
|
|
18
|
+
*/
|
|
13
19
|
SpecificPeopleAndGroups: "SPECIFIC_PEOPLE_AND_GROUPS",
|
|
20
|
+
/**
|
|
21
|
+
* Anyone in the domain with the link can see the document.
|
|
22
|
+
*/
|
|
14
23
|
DomainLink: "DOMAIN_LINK",
|
|
24
|
+
/**
|
|
25
|
+
* Anyone in the domain can search for the document.
|
|
26
|
+
*/
|
|
15
27
|
DomainVisible: "DOMAIN_VISIBLE",
|
|
28
|
+
/**
|
|
29
|
+
* Anyone with the link can see the document.
|
|
30
|
+
*/
|
|
16
31
|
PublicLink: "PUBLIC_LINK",
|
|
32
|
+
/**
|
|
33
|
+
* Anyone on the internet can search for the document.
|
|
34
|
+
*/
|
|
17
35
|
PublicVisible: "PUBLIC_VISIBLE",
|
|
18
36
|
} as const;
|
|
19
37
|
/**
|
|
@@ -9,10 +9,25 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export const RelationType = {
|
|
12
|
+
/**
|
|
13
|
+
* The value is equal to the specified value.
|
|
14
|
+
*/
|
|
12
15
|
Equals: "EQUALS",
|
|
16
|
+
/**
|
|
17
|
+
* The value is equal to the specified ID.
|
|
18
|
+
*/
|
|
13
19
|
IdEquals: "ID_EQUALS",
|
|
20
|
+
/**
|
|
21
|
+
* The value is less than the specified value.
|
|
22
|
+
*/
|
|
14
23
|
Lt: "LT",
|
|
24
|
+
/**
|
|
25
|
+
* The value is greater than the specified value.
|
|
26
|
+
*/
|
|
15
27
|
Gt: "GT",
|
|
28
|
+
/**
|
|
29
|
+
* The value is not equal to the specified value.
|
|
30
|
+
*/
|
|
16
31
|
NotEquals: "NOT_EQUALS",
|
|
17
32
|
} as const;
|
|
18
33
|
export type RelationType = ClosedEnum<typeof RelationType>;
|
|
@@ -62,36 +62,126 @@ export type FeedbackCategory = ClosedEnum<typeof FeedbackCategory>;
|
|
|
62
62
|
* The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`.
|
|
63
63
|
*/
|
|
64
64
|
export const Event = {
|
|
65
|
+
/**
|
|
66
|
+
* The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app.
|
|
67
|
+
*/
|
|
65
68
|
Click: "CLICK",
|
|
69
|
+
/**
|
|
70
|
+
* A link to the object's parent container (e.g. the folder in which it's located) was clicked.
|
|
71
|
+
*/
|
|
66
72
|
ContainerClick: "CONTAINER_CLICK",
|
|
73
|
+
/**
|
|
74
|
+
* The user copied a link to the primary link.
|
|
75
|
+
*/
|
|
67
76
|
CopyLink: "COPY_LINK",
|
|
77
|
+
/**
|
|
78
|
+
* The user creates a document.
|
|
79
|
+
*/
|
|
68
80
|
Create: "CREATE",
|
|
81
|
+
/**
|
|
82
|
+
* The user dismissed the object such that it was hidden from view.
|
|
83
|
+
*/
|
|
69
84
|
Dismiss: "DISMISS",
|
|
85
|
+
/**
|
|
86
|
+
* The user gave feedback that the object was not useful.
|
|
87
|
+
*/
|
|
70
88
|
Downvote: "DOWNVOTE",
|
|
89
|
+
/**
|
|
90
|
+
* The user attempted to send an email.
|
|
91
|
+
*/
|
|
71
92
|
Email: "EMAIL",
|
|
93
|
+
/**
|
|
94
|
+
* The user executed the object (e.g. ran a workflow).
|
|
95
|
+
*/
|
|
72
96
|
Execute: "EXECUTE",
|
|
97
|
+
/**
|
|
98
|
+
* The user applied a filter.
|
|
99
|
+
*/
|
|
73
100
|
Filter: "FILTER",
|
|
101
|
+
/**
|
|
102
|
+
* The first token of a streaming response is received.
|
|
103
|
+
*/
|
|
74
104
|
FirstToken: "FIRST_TOKEN",
|
|
105
|
+
/**
|
|
106
|
+
* The user clicked into an interactive element, e.g. the search box.
|
|
107
|
+
*/
|
|
75
108
|
FocusIn: "FOCUS_IN",
|
|
109
|
+
/**
|
|
110
|
+
* The final token of a streaming response is received.
|
|
111
|
+
*/
|
|
76
112
|
LastToken: "LAST_TOKEN",
|
|
113
|
+
/**
|
|
114
|
+
* The user submitted textual manual feedback regarding the object.
|
|
115
|
+
*/
|
|
77
116
|
ManualFeedback: "MANUAL_FEEDBACK",
|
|
117
|
+
/**
|
|
118
|
+
* The user submitted comparative feedback for multiple side-by-side implementations.
|
|
119
|
+
*/
|
|
78
120
|
ManualFeedbackSideBySide: "MANUAL_FEEDBACK_SIDE_BY_SIDE",
|
|
121
|
+
/**
|
|
122
|
+
* The user explicitly marked the content as read.
|
|
123
|
+
*/
|
|
79
124
|
MarkAsRead: "MARK_AS_READ",
|
|
125
|
+
/**
|
|
126
|
+
* The user attempted to send a message using their default messaing app.
|
|
127
|
+
*/
|
|
80
128
|
Message: "MESSAGE",
|
|
129
|
+
/**
|
|
130
|
+
* The user middle clicked the object's primary link with the intent to open its full representation in a new tab.
|
|
131
|
+
*/
|
|
81
132
|
MiddleClick: "MIDDLE_CLICK",
|
|
133
|
+
/**
|
|
134
|
+
* The user puts a page out of focus but keeps it in the background.
|
|
135
|
+
*/
|
|
82
136
|
PageBlur: "PAGE_BLUR",
|
|
137
|
+
/**
|
|
138
|
+
* The user puts a page in focus, meaning it is the first to receive keyboard events.
|
|
139
|
+
*/
|
|
83
140
|
PageFocus: "PAGE_FOCUS",
|
|
141
|
+
/**
|
|
142
|
+
* The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc).
|
|
143
|
+
*/
|
|
84
144
|
PageLeave: "PAGE_LEAVE",
|
|
145
|
+
/**
|
|
146
|
+
* The user clicked the object's inline preview affordance.
|
|
147
|
+
*/
|
|
85
148
|
Preview: "PREVIEW",
|
|
86
149
|
RelatedClick: "RELATED_CLICK",
|
|
150
|
+
/**
|
|
151
|
+
* The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it.
|
|
152
|
+
*/
|
|
87
153
|
RightClick: "RIGHT_CLICK",
|
|
154
|
+
/**
|
|
155
|
+
* The user clicked a link to a subsection of the primary object.
|
|
156
|
+
*/
|
|
88
157
|
SectionClick: "SECTION_CLICK",
|
|
158
|
+
/**
|
|
159
|
+
* The user has likely seen the object (e.g. took action to make the object visible within the user's viewport).
|
|
160
|
+
*/
|
|
89
161
|
Seen: "SEEN",
|
|
162
|
+
/**
|
|
163
|
+
* The user explicitly selected something, eg. a chat response variant they prefer.
|
|
164
|
+
*/
|
|
90
165
|
Select: "SELECT",
|
|
166
|
+
/**
|
|
167
|
+
* The user shared the object with another user.
|
|
168
|
+
*/
|
|
91
169
|
Share: "SHARE",
|
|
170
|
+
/**
|
|
171
|
+
* The user clicked the object's show more affordance.
|
|
172
|
+
*/
|
|
92
173
|
ShowMore: "SHOW_MORE",
|
|
174
|
+
/**
|
|
175
|
+
* The user gave feedback that the object was useful.
|
|
176
|
+
*/
|
|
93
177
|
Upvote: "UPVOTE",
|
|
178
|
+
/**
|
|
179
|
+
* The object was visible within the user's viewport.
|
|
180
|
+
*/
|
|
94
181
|
View: "VIEW",
|
|
182
|
+
/**
|
|
183
|
+
* The object was visible within the user's viewport.
|
|
184
|
+
*/
|
|
95
185
|
Visible: "VISIBLE",
|
|
96
186
|
} as const;
|
|
97
187
|
/**
|
|
@@ -9,16 +9,11 @@ export type GetChatFilesRequest = {
|
|
|
9
9
|
* IDs of files to fetch.
|
|
10
10
|
*/
|
|
11
11
|
fileIds: Array<string>;
|
|
12
|
-
/**
|
|
13
|
-
* The ID of the chat that contains the chat file.
|
|
14
|
-
*/
|
|
15
|
-
chatId?: string | undefined;
|
|
16
12
|
};
|
|
17
13
|
|
|
18
14
|
/** @internal */
|
|
19
15
|
export type GetChatFilesRequest$Outbound = {
|
|
20
16
|
fileIds: Array<string>;
|
|
21
|
-
chatId?: string | undefined;
|
|
22
17
|
};
|
|
23
18
|
|
|
24
19
|
/** @internal */
|
|
@@ -28,7 +23,6 @@ export const GetChatFilesRequest$outboundSchema: z.ZodType<
|
|
|
28
23
|
GetChatFilesRequest
|
|
29
24
|
> = z.object({
|
|
30
25
|
fileIds: z.array(z.string()),
|
|
31
|
-
chatId: z.string().optional(),
|
|
32
26
|
});
|
|
33
27
|
|
|
34
28
|
export function getChatFilesRequestToJSON(
|
|
@@ -43,7 +43,13 @@ export type ListEntitiesRequestIncludeField = ClosedEnum<
|
|
|
43
43
|
* The type of request being made.
|
|
44
44
|
*/
|
|
45
45
|
export const RequestType = {
|
|
46
|
+
/**
|
|
47
|
+
* Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities.
|
|
48
|
+
*/
|
|
46
49
|
Standard: "STANDARD",
|
|
50
|
+
/**
|
|
51
|
+
* Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations.
|
|
52
|
+
*/
|
|
47
53
|
FullDirectory: "FULL_DIRECTORY",
|
|
48
54
|
} as const;
|
|
49
55
|
/**
|
|
@@ -82,9 +82,21 @@ import {
|
|
|
82
82
|
} from "./structuredlocation.js";
|
|
83
83
|
|
|
84
84
|
export const PersonMetadataType = {
|
|
85
|
+
/**
|
|
86
|
+
* The person is a current full-time employee of the company.
|
|
87
|
+
*/
|
|
85
88
|
FullTime: "FULL_TIME",
|
|
89
|
+
/**
|
|
90
|
+
* The person is a current contractor of the company.
|
|
91
|
+
*/
|
|
86
92
|
Contractor: "CONTRACTOR",
|
|
93
|
+
/**
|
|
94
|
+
* The person object represents a non-human actor such as a service or admin account.
|
|
95
|
+
*/
|
|
87
96
|
NonEmployee: "NON_EMPLOYEE",
|
|
97
|
+
/**
|
|
98
|
+
* The person is a previous employee of the company.
|
|
99
|
+
*/
|
|
88
100
|
FormerEmployee: "FORMER_EMPLOYEE",
|
|
89
101
|
} as const;
|
|
90
102
|
export type PersonMetadataType = ClosedEnum<typeof PersonMetadataType>;
|
|
@@ -42,10 +42,25 @@ import {
|
|
|
42
42
|
* Hints for the response content.
|
|
43
43
|
*/
|
|
44
44
|
export const ResponseHint = {
|
|
45
|
+
/**
|
|
46
|
+
* Return result counts for each result set which has non-zero results, even when the request itself is limited to a subset.
|
|
47
|
+
*/
|
|
45
48
|
AllResultCounts: "ALL_RESULT_COUNTS",
|
|
49
|
+
/**
|
|
50
|
+
* Return only facet results.
|
|
51
|
+
*/
|
|
46
52
|
FacetResults: "FACET_RESULTS",
|
|
53
|
+
/**
|
|
54
|
+
* Returns result counts for each result set which has non-zero results, as well as other information about the search such as suggested spelling corrections.
|
|
55
|
+
*/
|
|
47
56
|
QueryMetadata: "QUERY_METADATA",
|
|
57
|
+
/**
|
|
58
|
+
* Return search result documents.
|
|
59
|
+
*/
|
|
48
60
|
Results: "RESULTS",
|
|
61
|
+
/**
|
|
62
|
+
* Return metadata pertaining to spellcheck results.
|
|
63
|
+
*/
|
|
49
64
|
SpellcheckMetadata: "SPELLCHECK_METADATA",
|
|
50
65
|
} as const;
|
|
51
66
|
/**
|
|
@@ -11,8 +11,17 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
*/
|
|
13
13
|
export const SearchResultProminenceEnum = {
|
|
14
|
+
/**
|
|
15
|
+
* A high-confidence result that should feature prominently on the page.
|
|
16
|
+
*/
|
|
14
17
|
Hero: "HERO",
|
|
18
|
+
/**
|
|
19
|
+
* May not be the best result but should be given additional visual distinction.
|
|
20
|
+
*/
|
|
15
21
|
Promoted: "PROMOTED",
|
|
22
|
+
/**
|
|
23
|
+
* Should not be distinct from any other results.
|
|
24
|
+
*/
|
|
16
25
|
Standard: "STANDARD",
|
|
17
26
|
} as const;
|
|
18
27
|
/**
|
|
@@ -9,8 +9,17 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
* Type of the section. This defines how the section should be interpreted and rendered in the digest.
|
|
10
10
|
*/
|
|
11
11
|
export const SectionType = {
|
|
12
|
+
/**
|
|
13
|
+
* A standard section for channel-based digests (e.g. from Slack, Teams).
|
|
14
|
+
*/
|
|
12
15
|
Channel: "CHANNEL",
|
|
16
|
+
/**
|
|
17
|
+
* A dedicated section that surfaces user mentions (actionable, informative, or all).
|
|
18
|
+
*/
|
|
13
19
|
Mentions: "MENTIONS",
|
|
20
|
+
/**
|
|
21
|
+
* A section driven by a generic topic, not tied to any specific channel or instance.
|
|
22
|
+
*/
|
|
14
23
|
Topic: "TOPIC",
|
|
15
24
|
} as const;
|
|
16
25
|
/**
|
|
@@ -132,8 +132,17 @@ import {
|
|
|
132
132
|
* The level of visual distinction that should be given to a result.
|
|
133
133
|
*/
|
|
134
134
|
export const Prominence = {
|
|
135
|
+
/**
|
|
136
|
+
* A high-confidence result that should feature prominently on the page.
|
|
137
|
+
*/
|
|
135
138
|
Hero: "HERO",
|
|
139
|
+
/**
|
|
140
|
+
* May not be the best result but should be given additional visual distinction.
|
|
141
|
+
*/
|
|
136
142
|
Promoted: "PROMOTED",
|
|
143
|
+
/**
|
|
144
|
+
* Should not be distinct from any other results.
|
|
145
|
+
*/
|
|
137
146
|
Standard: "STANDARD",
|
|
138
147
|
} as const;
|
|
139
148
|
/**
|
|
@@ -52,14 +52,15 @@ export const KnowledgeType = {
|
|
|
52
52
|
export type KnowledgeType = ClosedEnum<typeof KnowledgeType>;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action.
|
|
55
|
+
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. MCP - Send a tools/call request to an MCP server to execute the action.
|
|
56
56
|
*/
|
|
57
57
|
export const WriteActionType = {
|
|
58
58
|
Redirect: "REDIRECT",
|
|
59
59
|
Execution: "EXECUTION",
|
|
60
|
+
Mcp: "MCP",
|
|
60
61
|
} as const;
|
|
61
62
|
/**
|
|
62
|
-
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action.
|
|
63
|
+
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. MCP - Send a tools/call request to an MCP server to execute the action.
|
|
63
64
|
*/
|
|
64
65
|
export type WriteActionType = ClosedEnum<typeof WriteActionType>;
|
|
65
66
|
|
|
@@ -138,7 +139,7 @@ export type ToolMetadata = {
|
|
|
138
139
|
*/
|
|
139
140
|
lastUpdatedAt?: Date | undefined;
|
|
140
141
|
/**
|
|
141
|
-
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action.
|
|
142
|
+
* Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. MCP - Send a tools/call request to an MCP server to execute the action.
|
|
142
143
|
*/
|
|
143
144
|
writeActionType?: WriteActionType | undefined;
|
|
144
145
|
/**
|
|
@@ -9,7 +9,13 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
* Optional type classification for the update.
|
|
10
10
|
*/
|
|
11
11
|
export const UpdateType = {
|
|
12
|
+
/**
|
|
13
|
+
* Updates that require user attention or action
|
|
14
|
+
*/
|
|
12
15
|
Actionable: "ACTIONABLE",
|
|
16
|
+
/**
|
|
17
|
+
* Updates that are purely informational
|
|
18
|
+
*/
|
|
13
19
|
Informative: "INFORMATIVE",
|
|
14
20
|
} as const;
|
|
15
21
|
/**
|