@gleanwork/api-client 0.14.2 → 0.14.4
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 +2 -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/actionsummary.d.ts +20 -0
- package/dist/commonjs/models/components/actionsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/actionsummary.js +57 -0
- package/dist/commonjs/models/components/actionsummary.js.map +1 -0
- package/dist/commonjs/models/components/agentschemas.d.ts +5 -0
- package/dist/commonjs/models/components/agentschemas.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentschemas.js +2 -0
- package/dist/commonjs/models/components/agentschemas.js.map +1 -1
- package/dist/commonjs/models/components/answer.d.ts +1 -1
- package/dist/commonjs/models/components/answercreationdata.d.ts +1 -1
- package/dist/commonjs/models/components/chatmessage.d.ts +3 -1
- package/dist/commonjs/models/components/chatmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatmessage.js.map +1 -1
- package/dist/commonjs/models/components/dlpconfig.d.ts +2 -2
- package/dist/commonjs/models/components/documentinteractions.d.ts +1 -1
- package/dist/commonjs/models/components/editanswerrequest.d.ts +1 -1
- package/dist/commonjs/models/components/employeeinfodefinition.d.ts +1 -1
- package/dist/commonjs/models/components/externalsharingoptions.d.ts +3 -3
- package/dist/commonjs/models/components/facetfiltervalue.d.ts +1 -1
- package/dist/commonjs/models/components/feedback.d.ts +4 -0
- package/dist/commonjs/models/components/feedback.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedback.js +4 -0
- package/dist/commonjs/models/components/feedback.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/inputoptions.d.ts +2 -2
- package/dist/commonjs/models/components/relateddocuments.d.ts +1 -1
- package/dist/commonjs/models/components/sensitivecontentoptions.d.ts +3 -3
- package/dist/commonjs/models/components/sensitiveinfotype.d.ts +3 -3
- package/dist/commonjs/models/components/sensitiveinfotype.js +1 -1
- package/dist/commonjs/models/components/sharingoptions.d.ts +2 -2
- package/dist/commonjs/models/components/viewerinfo.d.ts +3 -3
- package/dist/commonjs/models/components/viewerinfo.js +1 -1
- package/dist/esm/__tests__/summarize.test.js +2 -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/actionsummary.d.ts +20 -0
- package/dist/esm/models/components/actionsummary.d.ts.map +1 -0
- package/dist/esm/models/components/actionsummary.js +20 -0
- package/dist/esm/models/components/actionsummary.js.map +1 -0
- package/dist/esm/models/components/agentschemas.d.ts +5 -0
- package/dist/esm/models/components/agentschemas.d.ts.map +1 -1
- package/dist/esm/models/components/agentschemas.js +2 -0
- package/dist/esm/models/components/agentschemas.js.map +1 -1
- package/dist/esm/models/components/answer.d.ts +1 -1
- package/dist/esm/models/components/answercreationdata.d.ts +1 -1
- package/dist/esm/models/components/chatmessage.d.ts +3 -1
- package/dist/esm/models/components/chatmessage.d.ts.map +1 -1
- package/dist/esm/models/components/chatmessage.js.map +1 -1
- package/dist/esm/models/components/dlpconfig.d.ts +2 -2
- package/dist/esm/models/components/documentinteractions.d.ts +1 -1
- package/dist/esm/models/components/editanswerrequest.d.ts +1 -1
- package/dist/esm/models/components/employeeinfodefinition.d.ts +1 -1
- package/dist/esm/models/components/externalsharingoptions.d.ts +3 -3
- package/dist/esm/models/components/facetfiltervalue.d.ts +1 -1
- package/dist/esm/models/components/feedback.d.ts +4 -0
- package/dist/esm/models/components/feedback.d.ts.map +1 -1
- package/dist/esm/models/components/feedback.js +4 -0
- package/dist/esm/models/components/feedback.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/inputoptions.d.ts +2 -2
- package/dist/esm/models/components/relateddocuments.d.ts +1 -1
- package/dist/esm/models/components/sensitivecontentoptions.d.ts +3 -3
- package/dist/esm/models/components/sensitiveinfotype.d.ts +3 -3
- package/dist/esm/models/components/sensitiveinfotype.js +1 -1
- package/dist/esm/models/components/sharingoptions.d.ts +2 -2
- package/dist/esm/models/components/viewerinfo.d.ts +3 -3
- package/dist/esm/models/components/viewerinfo.js +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 +2 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/actionsummary.ts +48 -0
- package/src/models/components/agentschemas.ts +6 -0
- package/src/models/components/answer.ts +1 -1
- package/src/models/components/answercreationdata.ts +1 -1
- package/src/models/components/chatmessage.ts +3 -1
- package/src/models/components/dlpconfig.ts +2 -2
- package/src/models/components/documentinteractions.ts +1 -1
- package/src/models/components/editanswerrequest.ts +1 -1
- package/src/models/components/employeeinfodefinition.ts +1 -1
- package/src/models/components/externalsharingoptions.ts +3 -3
- package/src/models/components/facetfiltervalue.ts +1 -1
- package/src/models/components/feedback.ts +4 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/inputoptions.ts +2 -2
- package/src/models/components/relateddocuments.ts +1 -1
- package/src/models/components/sensitivecontentoptions.ts +3 -3
- package/src/models/components/sensitiveinfotype.ts +3 -3
- package/src/models/components/sharingoptions.ts +2 -2
- package/src/models/components/viewerinfo.ts +3 -3
|
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated enum:
|
|
6
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
7
7
|
*/
|
|
8
8
|
export declare const SensitiveInfoTypeLikelihoodThreshold: {
|
|
9
9
|
readonly Likely: "LIKELY";
|
|
@@ -13,12 +13,12 @@ export declare const SensitiveInfoTypeLikelihoodThreshold: {
|
|
|
13
13
|
readonly VeryUnlikely: "VERY_UNLIKELY";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* @deprecated enum:
|
|
16
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
17
17
|
*/
|
|
18
18
|
export type SensitiveInfoTypeLikelihoodThreshold = ClosedEnum<typeof SensitiveInfoTypeLikelihoodThreshold>;
|
|
19
19
|
export type SensitiveInfoType = {
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated field:
|
|
21
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
22
22
|
*/
|
|
23
23
|
likelihoodThreshold?: SensitiveInfoTypeLikelihoodThreshold | undefined;
|
|
24
24
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated enum:
|
|
7
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
8
8
|
*/
|
|
9
9
|
export const SensitiveInfoTypeLikelihoodThreshold = {
|
|
10
10
|
Likely: "LIKELY",
|
|
@@ -6,7 +6,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type SharingOptions = {
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated field:
|
|
9
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
10
10
|
*/
|
|
11
11
|
enabled?: boolean | undefined;
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export type SharingOptions = {
|
|
|
18
18
|
*/
|
|
19
19
|
thresholdEnabled?: boolean | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated field:
|
|
21
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
22
22
|
*/
|
|
23
23
|
anyoneWithLinkEnabled?: boolean | undefined;
|
|
24
24
|
/**
|
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated enum:
|
|
8
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
9
9
|
*/
|
|
10
10
|
export declare const Role: {
|
|
11
11
|
readonly AnswerModerator: "ANSWER_MODERATOR";
|
|
@@ -15,14 +15,14 @@ export declare const Role: {
|
|
|
15
15
|
/**
|
|
16
16
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
17
17
|
*
|
|
18
|
-
* @deprecated enum:
|
|
18
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
19
19
|
*/
|
|
20
20
|
export type Role = ClosedEnum<typeof Role>;
|
|
21
21
|
export type ViewerInfo = {
|
|
22
22
|
/**
|
|
23
23
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
24
24
|
*
|
|
25
|
-
* @deprecated field:
|
|
25
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
26
26
|
*/
|
|
27
27
|
role?: Role | undefined;
|
|
28
28
|
lastViewedTime?: Date | undefined;
|
|
@@ -6,7 +6,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
8
8
|
*
|
|
9
|
-
* @deprecated enum:
|
|
9
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
10
10
|
*/
|
|
11
11
|
export const Role = {
|
|
12
12
|
AnswerModerator: "ANSWER_MODERATOR",
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -18,12 +18,10 @@ test("Summarize Summarize", async () => {
|
|
|
18
18
|
const result = await glean.client.documents.summarize({
|
|
19
19
|
documentSpecs: [
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
contentId: 602763,
|
|
21
|
+
url: "https://dim-glider.com/",
|
|
23
22
|
},
|
|
24
23
|
{
|
|
25
|
-
|
|
26
|
-
contentId: 602763,
|
|
24
|
+
id: "<id>",
|
|
27
25
|
},
|
|
28
26
|
],
|
|
29
27
|
});
|
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.14.
|
|
72
|
-
genVersion: "2.
|
|
71
|
+
sdkVersion: "0.14.4",
|
|
72
|
+
genVersion: "2.814.0",
|
|
73
73
|
userAgent:
|
|
74
|
-
"speakeasy-sdk/typescript 0.14.
|
|
74
|
+
"speakeasy-sdk/typescript 0.14.4 2.814.0 0.9.0 @gleanwork/api-client",
|
|
75
75
|
} as const;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a minimal summary of an action.
|
|
13
|
+
*/
|
|
14
|
+
export type ActionSummary = {
|
|
15
|
+
/**
|
|
16
|
+
* The unique identifier of the action.
|
|
17
|
+
*/
|
|
18
|
+
toolId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The display name of the action.
|
|
21
|
+
*/
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ActionSummary$inboundSchema: z.ZodType<
|
|
27
|
+
ActionSummary,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
tool_id: z.string(),
|
|
32
|
+
display_name: z.string(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"tool_id": "toolId",
|
|
36
|
+
"display_name": "displayName",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function actionSummaryFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<ActionSummary, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => ActionSummary$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'ActionSummary' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { ActionSummary, ActionSummary$inboundSchema } from "./actionsummary.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* The schema for the agent input. In JSON Schema format.
|
|
@@ -34,6 +35,10 @@ export type AgentSchemas = {
|
|
|
34
35
|
* The schema for the agent output. In JSON Schema format.
|
|
35
36
|
*/
|
|
36
37
|
outputSchema: OutputSchema;
|
|
38
|
+
/**
|
|
39
|
+
* List of tools that the agent can invoke. Only included when include_tools query parameter is set to true.
|
|
40
|
+
*/
|
|
41
|
+
tools?: Array<ActionSummary> | undefined;
|
|
37
42
|
};
|
|
38
43
|
|
|
39
44
|
/** @internal */
|
|
@@ -79,6 +84,7 @@ export const AgentSchemas$inboundSchema: z.ZodType<
|
|
|
79
84
|
agent_id: z.string(),
|
|
80
85
|
input_schema: z.lazy(() => InputSchema$inboundSchema),
|
|
81
86
|
output_schema: z.lazy(() => OutputSchema$inboundSchema),
|
|
87
|
+
tools: z.array(ActionSummary$inboundSchema).optional(),
|
|
82
88
|
}).transform((v) => {
|
|
83
89
|
return remap$(v, {
|
|
84
90
|
"agent_id": "agentId",
|
|
@@ -95,7 +95,7 @@ export type Answer = {
|
|
|
95
95
|
/**
|
|
96
96
|
* The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted.
|
|
97
97
|
*
|
|
98
|
-
* @deprecated field:
|
|
98
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported.
|
|
99
99
|
*/
|
|
100
100
|
boardId?: number | undefined;
|
|
101
101
|
/**
|
|
@@ -46,7 +46,7 @@ export type AnswerCreationData = {
|
|
|
46
46
|
/**
|
|
47
47
|
* The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted.
|
|
48
48
|
*
|
|
49
|
-
* @deprecated field:
|
|
49
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported.
|
|
50
50
|
*/
|
|
51
51
|
boardId?: number | undefined;
|
|
52
52
|
/**
|
|
@@ -88,7 +88,9 @@ export type ChatMessage = {
|
|
|
88
88
|
agentConfig?: AgentConfig | undefined;
|
|
89
89
|
author?: Author | undefined;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Deprecated: Use inline citations via ChatMessageFragment.citation instead. For detailed reference information, use ChatMessageCitation.referenceRanges. This field is still populated for backward compatibility.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated field: Deprecated on 2026-02-06, removal scheduled for 2026-10-15: Use inline citations via ChatMessageFragment.citation and ChatMessageCitation.referenceRanges instead. This field is still populated for backward compatibility..
|
|
92
94
|
*/
|
|
93
95
|
citations?: Array<ChatMessageCitation> | undefined;
|
|
94
96
|
/**
|
|
@@ -60,7 +60,7 @@ export type DlpConfig = {
|
|
|
60
60
|
/**
|
|
61
61
|
* DEPRECATED - use `sensitiveContentOptions` instead.
|
|
62
62
|
*
|
|
63
|
-
* @deprecated field:
|
|
63
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use sensitiveContentOptions instead.
|
|
64
64
|
*/
|
|
65
65
|
sensitiveInfoTypes?: Array<SensitiveInfoType> | undefined;
|
|
66
66
|
/**
|
|
@@ -68,7 +68,7 @@ export type DlpConfig = {
|
|
|
68
68
|
*/
|
|
69
69
|
inputOptions?: InputOptions | undefined;
|
|
70
70
|
/**
|
|
71
|
-
* @deprecated field:
|
|
71
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use broadSharingOptions instead.
|
|
72
72
|
*/
|
|
73
73
|
externalSharingOptions?: ExternalSharingOptions | undefined;
|
|
74
74
|
/**
|
|
@@ -37,7 +37,7 @@ export type DocumentInteractions = {
|
|
|
37
37
|
/**
|
|
38
38
|
* To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document.
|
|
39
39
|
*
|
|
40
|
-
* @deprecated field:
|
|
40
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use reacts instead.
|
|
41
41
|
*/
|
|
42
42
|
reactions?: Array<string> | undefined;
|
|
43
43
|
reacts?: Array<Reaction> | undefined;
|
|
@@ -54,7 +54,7 @@ export type EditAnswerRequest = {
|
|
|
54
54
|
/**
|
|
55
55
|
* The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted.
|
|
56
56
|
*
|
|
57
|
-
* @deprecated field:
|
|
57
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported.
|
|
58
58
|
*/
|
|
59
59
|
boardId?: number | undefined;
|
|
60
60
|
/**
|
|
@@ -72,7 +72,7 @@ export type EmployeeInfoDefinition = {
|
|
|
72
72
|
/**
|
|
73
73
|
* The employee's location (city/office name etc).
|
|
74
74
|
*
|
|
75
|
-
* @deprecated field:
|
|
75
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
76
76
|
*/
|
|
77
77
|
location?: string | undefined;
|
|
78
78
|
/**
|
|
@@ -10,11 +10,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Controls how "shared" a document must be to get picked for scans.
|
|
12
12
|
*
|
|
13
|
-
* @deprecated class:
|
|
13
|
+
* @deprecated class: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use broadSharingOptions instead.
|
|
14
14
|
*/
|
|
15
15
|
export type ExternalSharingOptions = {
|
|
16
16
|
/**
|
|
17
|
-
* @deprecated field:
|
|
17
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
18
18
|
*/
|
|
19
19
|
enabled?: boolean | undefined;
|
|
20
20
|
/**
|
|
@@ -26,7 +26,7 @@ export type ExternalSharingOptions = {
|
|
|
26
26
|
*/
|
|
27
27
|
thresholdEnabled?: boolean | undefined;
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated field:
|
|
29
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
30
30
|
*/
|
|
31
31
|
anyoneWithLinkEnabled?: boolean | undefined;
|
|
32
32
|
/**
|
|
@@ -38,7 +38,7 @@ export type FacetFilterValue = {
|
|
|
38
38
|
/**
|
|
39
39
|
* DEPRECATED - please use relationType instead
|
|
40
40
|
*
|
|
41
|
-
* @deprecated field:
|
|
41
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use relationType instead.
|
|
42
42
|
*/
|
|
43
43
|
isNegated?: boolean | undefined;
|
|
44
44
|
};
|
|
@@ -118,6 +118,10 @@ export const Event = {
|
|
|
118
118
|
* The user submitted comparative feedback for multiple side-by-side implementations.
|
|
119
119
|
*/
|
|
120
120
|
ManualFeedbackSideBySide: "MANUAL_FEEDBACK_SIDE_BY_SIDE",
|
|
121
|
+
/**
|
|
122
|
+
* The user submitted feedback about time saved by an agent or workflow.
|
|
123
|
+
*/
|
|
124
|
+
FeedbackTimeSaved: "FEEDBACK_TIME_SAVED",
|
|
121
125
|
/**
|
|
122
126
|
* The user explicitly marked the content as read.
|
|
123
127
|
*/
|
|
@@ -50,7 +50,7 @@ export type InputOptions = {
|
|
|
50
50
|
/**
|
|
51
51
|
* list of url regex matching documents excluded from report
|
|
52
52
|
*
|
|
53
|
-
* @deprecated field:
|
|
53
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
54
54
|
*/
|
|
55
55
|
urlGreenlist?: Array<string> | undefined;
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ export type InputOptions = {
|
|
|
60
60
|
/**
|
|
61
61
|
* List of datasources to consider for report. DEPRECATED - use datasourceInstances instead.
|
|
62
62
|
*
|
|
63
|
-
* @deprecated field:
|
|
63
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use datasourceInstances instead.
|
|
64
64
|
*/
|
|
65
65
|
datasources?: Array<string> | undefined;
|
|
66
66
|
/**
|
|
@@ -68,7 +68,7 @@ export type RelatedDocuments = {
|
|
|
68
68
|
/**
|
|
69
69
|
* A truncated list of documents with this relation. TO BE DEPRECATED.
|
|
70
70
|
*
|
|
71
|
-
* @deprecated field:
|
|
71
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
72
72
|
*/
|
|
73
73
|
documents?: Array<Document> | undefined;
|
|
74
74
|
/**
|
|
@@ -32,19 +32,19 @@ export type SensitiveContentOptions = {
|
|
|
32
32
|
/**
|
|
33
33
|
* DEPRECATED - use 'customSensitiveExpressions' instead.
|
|
34
34
|
*
|
|
35
|
-
* @deprecated field:
|
|
35
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use customSensitiveExpressions instead.
|
|
36
36
|
*/
|
|
37
37
|
sensitiveInfoTypes?: Array<SensitiveInfoType> | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* DEPRECATED - use 'customSensitiveExpressions' instead.
|
|
40
40
|
*
|
|
41
|
-
* @deprecated field:
|
|
41
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use customSensitiveExpressions instead.
|
|
42
42
|
*/
|
|
43
43
|
sensitiveTerms?: Array<SensitiveExpression> | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* DEPRECATED - use 'customSensitiveExpressions' instead.
|
|
46
46
|
*
|
|
47
|
-
* @deprecated field:
|
|
47
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use customSensitiveExpressions instead.
|
|
48
48
|
*/
|
|
49
49
|
sensitiveRegexes?: Array<SensitiveExpression> | undefined;
|
|
50
50
|
/**
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated enum:
|
|
12
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
13
13
|
*/
|
|
14
14
|
export const SensitiveInfoTypeLikelihoodThreshold = {
|
|
15
15
|
Likely: "LIKELY",
|
|
@@ -19,7 +19,7 @@ export const SensitiveInfoTypeLikelihoodThreshold = {
|
|
|
19
19
|
VeryUnlikely: "VERY_UNLIKELY",
|
|
20
20
|
} as const;
|
|
21
21
|
/**
|
|
22
|
-
* @deprecated enum:
|
|
22
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
23
23
|
*/
|
|
24
24
|
export type SensitiveInfoTypeLikelihoodThreshold = ClosedEnum<
|
|
25
25
|
typeof SensitiveInfoTypeLikelihoodThreshold
|
|
@@ -27,7 +27,7 @@ export type SensitiveInfoTypeLikelihoodThreshold = ClosedEnum<
|
|
|
27
27
|
|
|
28
28
|
export type SensitiveInfoType = {
|
|
29
29
|
/**
|
|
30
|
-
* @deprecated field:
|
|
30
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
31
31
|
*/
|
|
32
32
|
likelihoodThreshold?: SensitiveInfoTypeLikelihoodThreshold | undefined;
|
|
33
33
|
/**
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type SharingOptions = {
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated field:
|
|
15
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
16
16
|
*/
|
|
17
17
|
enabled?: boolean | undefined;
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ export type SharingOptions = {
|
|
|
24
24
|
*/
|
|
25
25
|
thresholdEnabled?: boolean | undefined;
|
|
26
26
|
/**
|
|
27
|
-
* @deprecated field:
|
|
27
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated.
|
|
28
28
|
*/
|
|
29
29
|
anyoneWithLinkEnabled?: boolean | undefined;
|
|
30
30
|
/**
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
13
13
|
*
|
|
14
|
-
* @deprecated enum:
|
|
14
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
15
15
|
*/
|
|
16
16
|
export const Role = {
|
|
17
17
|
AnswerModerator: "ANSWER_MODERATOR",
|
|
@@ -21,7 +21,7 @@ export const Role = {
|
|
|
21
21
|
/**
|
|
22
22
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
23
23
|
*
|
|
24
|
-
* @deprecated enum:
|
|
24
|
+
* @deprecated enum: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
25
25
|
*/
|
|
26
26
|
export type Role = ClosedEnum<typeof Role>;
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@ export type ViewerInfo = {
|
|
|
29
29
|
/**
|
|
30
30
|
* DEPRECATED - use permissions instead. Viewer's role on the specific document.
|
|
31
31
|
*
|
|
32
|
-
* @deprecated field:
|
|
32
|
+
* @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use permissions instead.
|
|
33
33
|
*/
|
|
34
34
|
role?: Role | undefined;
|
|
35
35
|
lastViewedTime?: Date | undefined;
|