@gleanwork/api-client 0.10.3 → 0.10.5
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 +3 -3
- package/dist/commonjs/__tests__/summarize.test.js +2 -3
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/funcs/clientInsightsRetrieve.d.ts +2 -2
- package/dist/commonjs/funcs/clientInsightsRetrieve.js +2 -2
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/agentsinsightsv2request.d.ts +40 -0
- package/dist/commonjs/models/components/agentsinsightsv2request.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentsinsightsv2request.js +74 -0
- package/dist/commonjs/models/components/agentsinsightsv2request.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/insightsassistantrequest.d.ts +35 -0
- package/dist/commonjs/models/components/insightsassistantrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/insightsassistantrequest.js +72 -0
- package/dist/commonjs/models/components/insightsassistantrequest.js.map +1 -0
- package/dist/commonjs/models/components/insightsoverviewrequest.d.ts +35 -0
- package/dist/commonjs/models/components/insightsoverviewrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/insightsoverviewrequest.js +72 -0
- package/dist/commonjs/models/components/insightsoverviewrequest.js.map +1 -0
- package/dist/commonjs/models/components/insightsrequest.d.ts +31 -7
- package/dist/commonjs/models/components/insightsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/insightsrequest.js +16 -4
- package/dist/commonjs/models/components/insightsrequest.js.map +1 -1
- package/dist/commonjs/react-query/clientInsightsRetrieve.d.ts +2 -2
- package/dist/commonjs/react-query/clientInsightsRetrieve.js +2 -2
- package/dist/commonjs/sdk/insights.d.ts +2 -2
- package/dist/commonjs/sdk/insights.js +2 -2
- package/dist/esm/__tests__/summarize.test.js +2 -3
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/funcs/clientInsightsRetrieve.d.ts +2 -2
- package/dist/esm/funcs/clientInsightsRetrieve.js +2 -2
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/agentsinsightsv2request.d.ts +40 -0
- package/dist/esm/models/components/agentsinsightsv2request.d.ts.map +1 -0
- package/dist/esm/models/components/agentsinsightsv2request.js +36 -0
- package/dist/esm/models/components/agentsinsightsv2request.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/insightsassistantrequest.d.ts +35 -0
- package/dist/esm/models/components/insightsassistantrequest.d.ts.map +1 -0
- package/dist/esm/models/components/insightsassistantrequest.js +34 -0
- package/dist/esm/models/components/insightsassistantrequest.js.map +1 -0
- package/dist/esm/models/components/insightsoverviewrequest.d.ts +35 -0
- package/dist/esm/models/components/insightsoverviewrequest.d.ts.map +1 -0
- package/dist/esm/models/components/insightsoverviewrequest.js +34 -0
- package/dist/esm/models/components/insightsoverviewrequest.js.map +1 -0
- package/dist/esm/models/components/insightsrequest.d.ts +31 -7
- package/dist/esm/models/components/insightsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/insightsrequest.js +16 -4
- package/dist/esm/models/components/insightsrequest.js.map +1 -1
- package/dist/esm/react-query/clientInsightsRetrieve.d.ts +2 -2
- package/dist/esm/react-query/clientInsightsRetrieve.js +2 -2
- package/dist/esm/sdk/insights.d.ts +2 -2
- package/dist/esm/sdk/insights.js +2 -2
- package/docs/sdks/insights/README.md +4 -16
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/summarize.test.ts +2 -3
- package/src/funcs/clientInsightsRetrieve.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentsinsightsv2request.ts +86 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/insightsassistantrequest.ts +79 -0
- package/src/models/components/insightsoverviewrequest.ts +79 -0
- package/src/models/components/insightsrequest.ts +50 -11
- package/src/react-query/clientInsightsRetrieve.ts +2 -2
- package/src/sdk/insights.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsassistantrequest.js","sourceRoot":"","sources":["../../../../src/models/components/insightsassistantrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAUrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,sCAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,uCAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,KAAzB,yBAAyB,QAOzC;AAED,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Period, Period$Outbound } from "./period.js";
|
|
5
|
+
export type InsightsOverviewRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Departments for which Insights are requested.
|
|
8
|
+
*/
|
|
9
|
+
departments?: Array<string> | undefined;
|
|
10
|
+
dayRange?: Period | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const InsightsOverviewRequest$inboundSchema: z.ZodType<InsightsOverviewRequest, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type InsightsOverviewRequest$Outbound = {
|
|
16
|
+
departments?: Array<string> | undefined;
|
|
17
|
+
dayRange?: Period$Outbound | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const InsightsOverviewRequest$outboundSchema: z.ZodType<InsightsOverviewRequest$Outbound, z.ZodTypeDef, InsightsOverviewRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export declare namespace InsightsOverviewRequest$ {
|
|
26
|
+
/** @deprecated use `InsightsOverviewRequest$inboundSchema` instead. */
|
|
27
|
+
const inboundSchema: z.ZodType<InsightsOverviewRequest, z.ZodTypeDef, unknown>;
|
|
28
|
+
/** @deprecated use `InsightsOverviewRequest$outboundSchema` instead. */
|
|
29
|
+
const outboundSchema: z.ZodType<InsightsOverviewRequest$Outbound, z.ZodTypeDef, InsightsOverviewRequest>;
|
|
30
|
+
/** @deprecated use `InsightsOverviewRequest$Outbound` instead. */
|
|
31
|
+
type Outbound = InsightsOverviewRequest$Outbound;
|
|
32
|
+
}
|
|
33
|
+
export declare function insightsOverviewRequestToJSON(insightsOverviewRequest: InsightsOverviewRequest): string;
|
|
34
|
+
export declare function insightsOverviewRequestFromJSON(jsonString: string): SafeParseResult<InsightsOverviewRequest, SDKValidationError>;
|
|
35
|
+
//# sourceMappingURL=insightsoverviewrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsoverviewrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAIvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { Period$inboundSchema, Period$outboundSchema, } from "./period.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const InsightsOverviewRequest$inboundSchema = z.object({
|
|
9
|
+
departments: z.array(z.string()).optional(),
|
|
10
|
+
dayRange: Period$inboundSchema.optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const InsightsOverviewRequest$outboundSchema = z.object({
|
|
14
|
+
departments: z.array(z.string()).optional(),
|
|
15
|
+
dayRange: Period$outboundSchema.optional(),
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
+
*/
|
|
21
|
+
export var InsightsOverviewRequest$;
|
|
22
|
+
(function (InsightsOverviewRequest$) {
|
|
23
|
+
/** @deprecated use `InsightsOverviewRequest$inboundSchema` instead. */
|
|
24
|
+
InsightsOverviewRequest$.inboundSchema = InsightsOverviewRequest$inboundSchema;
|
|
25
|
+
/** @deprecated use `InsightsOverviewRequest$outboundSchema` instead. */
|
|
26
|
+
InsightsOverviewRequest$.outboundSchema = InsightsOverviewRequest$outboundSchema;
|
|
27
|
+
})(InsightsOverviewRequest$ || (InsightsOverviewRequest$ = {}));
|
|
28
|
+
export function insightsOverviewRequestToJSON(insightsOverviewRequest) {
|
|
29
|
+
return JSON.stringify(InsightsOverviewRequest$outboundSchema.parse(insightsOverviewRequest));
|
|
30
|
+
}
|
|
31
|
+
export function insightsOverviewRequestFromJSON(jsonString) {
|
|
32
|
+
return safeParse(jsonString, (x) => InsightsOverviewRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InsightsOverviewRequest' from JSON`);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=insightsoverviewrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsoverviewrequest.js","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAUrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,qCAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,sCAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC;AAED,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -2,11 +2,17 @@ import * as z from "zod";
|
|
|
2
2
|
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
|
+
import { AgentsInsightsV2Request, AgentsInsightsV2Request$Outbound } from "./agentsinsightsv2request.js";
|
|
5
6
|
import { InsightsAgentsRequestOptions, InsightsAgentsRequestOptions$Outbound } from "./insightsagentsrequestoptions.js";
|
|
6
7
|
import { InsightsAiAppRequestOptions, InsightsAiAppRequestOptions$Outbound } from "./insightsaiapprequestoptions.js";
|
|
8
|
+
import { InsightsAssistantRequest, InsightsAssistantRequest$Outbound } from "./insightsassistantrequest.js";
|
|
9
|
+
import { InsightsOverviewRequest, InsightsOverviewRequest$Outbound } from "./insightsoverviewrequest.js";
|
|
7
10
|
import { Period, Period$Outbound } from "./period.js";
|
|
8
11
|
export declare const InsightsRequestCategory: {
|
|
9
12
|
readonly Agents: "AGENTS";
|
|
13
|
+
readonly AgentUsers: "AGENT_USERS";
|
|
14
|
+
readonly TopAgents: "TOP_AGENTS";
|
|
15
|
+
readonly AgentsUsageByDepartment: "AGENTS_USAGE_BY_DEPARTMENT";
|
|
10
16
|
readonly Ai: "AI";
|
|
11
17
|
readonly AiApps: "AI_APPS";
|
|
12
18
|
readonly Announcements: "ANNOUNCEMENTS";
|
|
@@ -27,12 +33,23 @@ export declare const AssistantActivityType: {
|
|
|
27
33
|
};
|
|
28
34
|
export type AssistantActivityType = ClosedEnum<typeof AssistantActivityType>;
|
|
29
35
|
export type InsightsRequest = {
|
|
36
|
+
overviewRequest?: InsightsOverviewRequest | undefined;
|
|
37
|
+
assistantRequest?: InsightsAssistantRequest | undefined;
|
|
38
|
+
agentsRequest?: AgentsInsightsV2Request | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* If true, suppresses the generation of per-user Insights in the response. Default is false.
|
|
41
|
+
*/
|
|
42
|
+
disablePerUserInsights?: boolean | undefined;
|
|
30
43
|
/**
|
|
31
44
|
* Categories of data requested. Request can include single or multiple types.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
47
|
*/
|
|
33
|
-
categories
|
|
48
|
+
categories?: Array<InsightsRequestCategory> | undefined;
|
|
34
49
|
/**
|
|
35
50
|
* Departments that the data is requested for. If this is empty, corresponds to whole company.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
53
|
*/
|
|
37
54
|
departments?: Array<string> | undefined;
|
|
38
55
|
dayRange?: Period | undefined;
|
|
@@ -40,12 +57,10 @@ export type InsightsRequest = {
|
|
|
40
57
|
agentsRequestOptions?: InsightsAgentsRequestOptions | undefined;
|
|
41
58
|
/**
|
|
42
59
|
* Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
43
62
|
*/
|
|
44
63
|
assistantActivityTypes?: Array<AssistantActivityType> | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* If true, suppresses the generation of per-user Insights in the response. Default is false.
|
|
47
|
-
*/
|
|
48
|
-
disablePerUserInsights?: boolean | undefined;
|
|
49
64
|
};
|
|
50
65
|
/** @internal */
|
|
51
66
|
export declare const InsightsRequestCategory$inboundSchema: z.ZodNativeEnum<typeof InsightsRequestCategory>;
|
|
@@ -59,6 +74,9 @@ export declare namespace InsightsRequestCategory$ {
|
|
|
59
74
|
/** @deprecated use `InsightsRequestCategory$inboundSchema` instead. */
|
|
60
75
|
const inboundSchema: z.ZodNativeEnum<{
|
|
61
76
|
readonly Agents: "AGENTS";
|
|
77
|
+
readonly AgentUsers: "AGENT_USERS";
|
|
78
|
+
readonly TopAgents: "TOP_AGENTS";
|
|
79
|
+
readonly AgentsUsageByDepartment: "AGENTS_USAGE_BY_DEPARTMENT";
|
|
62
80
|
readonly Ai: "AI";
|
|
63
81
|
readonly AiApps: "AI_APPS";
|
|
64
82
|
readonly Announcements: "ANNOUNCEMENTS";
|
|
@@ -73,6 +91,9 @@ export declare namespace InsightsRequestCategory$ {
|
|
|
73
91
|
/** @deprecated use `InsightsRequestCategory$outboundSchema` instead. */
|
|
74
92
|
const outboundSchema: z.ZodNativeEnum<{
|
|
75
93
|
readonly Agents: "AGENTS";
|
|
94
|
+
readonly AgentUsers: "AGENT_USERS";
|
|
95
|
+
readonly TopAgents: "TOP_AGENTS";
|
|
96
|
+
readonly AgentsUsageByDepartment: "AGENTS_USAGE_BY_DEPARTMENT";
|
|
76
97
|
readonly Ai: "AI";
|
|
77
98
|
readonly AiApps: "AI_APPS";
|
|
78
99
|
readonly Announcements: "ANNOUNCEMENTS";
|
|
@@ -113,13 +134,16 @@ export declare namespace AssistantActivityType$ {
|
|
|
113
134
|
export declare const InsightsRequest$inboundSchema: z.ZodType<InsightsRequest, z.ZodTypeDef, unknown>;
|
|
114
135
|
/** @internal */
|
|
115
136
|
export type InsightsRequest$Outbound = {
|
|
116
|
-
|
|
137
|
+
overviewRequest?: InsightsOverviewRequest$Outbound | undefined;
|
|
138
|
+
assistantRequest?: InsightsAssistantRequest$Outbound | undefined;
|
|
139
|
+
agentsRequest?: AgentsInsightsV2Request$Outbound | undefined;
|
|
140
|
+
disablePerUserInsights?: boolean | undefined;
|
|
141
|
+
categories?: Array<string> | undefined;
|
|
117
142
|
departments?: Array<string> | undefined;
|
|
118
143
|
dayRange?: Period$Outbound | undefined;
|
|
119
144
|
aiAppRequestOptions?: InsightsAiAppRequestOptions$Outbound | undefined;
|
|
120
145
|
agentsRequestOptions?: InsightsAgentsRequestOptions$Outbound | undefined;
|
|
121
146
|
assistantActivityTypes?: Array<string> | undefined;
|
|
122
|
-
disablePerUserInsights?: boolean | undefined;
|
|
123
147
|
};
|
|
124
148
|
/** @internal */
|
|
125
149
|
export declare const InsightsRequest$outboundSchema: z.ZodType<InsightsRequest$Outbound, z.ZodTypeDef, InsightsRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"insightsrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;CAe1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IACtD,gBAAgB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACxD,aAAa,CAA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}
|
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { AgentsInsightsV2Request$inboundSchema, AgentsInsightsV2Request$outboundSchema, } from "./agentsinsightsv2request.js";
|
|
6
7
|
import { InsightsAgentsRequestOptions$inboundSchema, InsightsAgentsRequestOptions$outboundSchema, } from "./insightsagentsrequestoptions.js";
|
|
7
8
|
import { InsightsAiAppRequestOptions$inboundSchema, InsightsAiAppRequestOptions$outboundSchema, } from "./insightsaiapprequestoptions.js";
|
|
9
|
+
import { InsightsAssistantRequest$inboundSchema, InsightsAssistantRequest$outboundSchema, } from "./insightsassistantrequest.js";
|
|
10
|
+
import { InsightsOverviewRequest$inboundSchema, InsightsOverviewRequest$outboundSchema, } from "./insightsoverviewrequest.js";
|
|
8
11
|
import { Period$inboundSchema, Period$outboundSchema, } from "./period.js";
|
|
9
12
|
export const InsightsRequestCategory = {
|
|
10
13
|
Agents: "AGENTS",
|
|
14
|
+
AgentUsers: "AGENT_USERS",
|
|
15
|
+
TopAgents: "TOP_AGENTS",
|
|
16
|
+
AgentsUsageByDepartment: "AGENTS_USAGE_BY_DEPARTMENT",
|
|
11
17
|
Ai: "AI",
|
|
12
18
|
AiApps: "AI_APPS",
|
|
13
19
|
Announcements: "ANNOUNCEMENTS",
|
|
@@ -57,25 +63,31 @@ export var AssistantActivityType$;
|
|
|
57
63
|
})(AssistantActivityType$ || (AssistantActivityType$ = {}));
|
|
58
64
|
/** @internal */
|
|
59
65
|
export const InsightsRequest$inboundSchema = z.object({
|
|
60
|
-
|
|
66
|
+
overviewRequest: InsightsOverviewRequest$inboundSchema.optional(),
|
|
67
|
+
assistantRequest: InsightsAssistantRequest$inboundSchema.optional(),
|
|
68
|
+
agentsRequest: AgentsInsightsV2Request$inboundSchema.optional(),
|
|
69
|
+
disablePerUserInsights: z.boolean().optional(),
|
|
70
|
+
categories: z.array(InsightsRequestCategory$inboundSchema).optional(),
|
|
61
71
|
departments: z.array(z.string()).optional(),
|
|
62
72
|
dayRange: Period$inboundSchema.optional(),
|
|
63
73
|
aiAppRequestOptions: InsightsAiAppRequestOptions$inboundSchema.optional(),
|
|
64
74
|
agentsRequestOptions: InsightsAgentsRequestOptions$inboundSchema.optional(),
|
|
65
75
|
assistantActivityTypes: z.array(AssistantActivityType$inboundSchema)
|
|
66
76
|
.optional(),
|
|
67
|
-
disablePerUserInsights: z.boolean().optional(),
|
|
68
77
|
});
|
|
69
78
|
/** @internal */
|
|
70
79
|
export const InsightsRequest$outboundSchema = z.object({
|
|
71
|
-
|
|
80
|
+
overviewRequest: InsightsOverviewRequest$outboundSchema.optional(),
|
|
81
|
+
assistantRequest: InsightsAssistantRequest$outboundSchema.optional(),
|
|
82
|
+
agentsRequest: AgentsInsightsV2Request$outboundSchema.optional(),
|
|
83
|
+
disablePerUserInsights: z.boolean().optional(),
|
|
84
|
+
categories: z.array(InsightsRequestCategory$outboundSchema).optional(),
|
|
72
85
|
departments: z.array(z.string()).optional(),
|
|
73
86
|
dayRange: Period$outboundSchema.optional(),
|
|
74
87
|
aiAppRequestOptions: InsightsAiAppRequestOptions$outboundSchema.optional(),
|
|
75
88
|
agentsRequestOptions: InsightsAgentsRequestOptions$outboundSchema.optional(),
|
|
76
89
|
assistantActivityTypes: z.array(AssistantActivityType$outboundSchema)
|
|
77
90
|
.optional(),
|
|
78
|
-
disablePerUserInsights: z.boolean().optional(),
|
|
79
91
|
});
|
|
80
92
|
/**
|
|
81
93
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsrequest.js","sourceRoot":"","sources":["../../../../src/models/components/insightsrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,0CAA0C,EAE1C,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,SAAS;IACjB,aAAa,EAAE,eAAe;IAC9B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;CACN,CAAC;AAKX,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"insightsrequest.js","sourceRoot":"","sources":["../../../../src/models/components/insightsrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,0CAA0C,EAE1C,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,C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QAAQ,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IAC1C,mBAAmB,EAAE,0CAA0C,CAAC,QAAQ,EAAE;IAC1E,oBAAoB,EAAE,2CAA2C,CAAC,QAAQ,EAAE;IAC5E,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,oCAAoC,CAAC;SAClE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,6BAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,8BAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,KAAhB,gBAAgB,QAOhC;AAED,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -9,10 +9,10 @@ export type ClientInsightsRetrieveMutationVariables = {
|
|
|
9
9
|
};
|
|
10
10
|
export type ClientInsightsRetrieveMutationData = components.InsightsResponse;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Get insights
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useClientInsightsRetrieveMutation(options?: MutationHookOptions<ClientInsightsRetrieveMutationData, Error, ClientInsightsRetrieveMutationVariables>): UseMutationResult<ClientInsightsRetrieveMutationData, Error, ClientInsightsRetrieveMutationVariables>;
|
|
18
18
|
export declare function mutationKeyClientInsightsRetrieve(): MutationKey;
|
|
@@ -7,10 +7,10 @@ import { combineSignals } from "../lib/primitives.js";
|
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
8
|
import { useGleanContext } from "./_context.js";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Get insights
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
14
14
|
*/
|
|
15
15
|
export function useClientInsightsRetrieveMutation(options) {
|
|
16
16
|
const client = useGleanContext();
|
|
@@ -2,10 +2,10 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
3
|
export declare class Insights extends ClientSDK {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Get insights
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
9
9
|
*/
|
|
10
10
|
retrieve(request: components.InsightsRequest, options?: RequestOptions): Promise<components.InsightsResponse>;
|
|
11
11
|
}
|
package/dist/esm/sdk/insights.js
CHANGED
|
@@ -6,10 +6,10 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
6
6
|
import { unwrapAsync } from "../types/fp.js";
|
|
7
7
|
export class Insights extends ClientSDK {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Get insights
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
*
|
|
12
|
+
* Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
13
13
|
*/
|
|
14
14
|
async retrieve(request, options) {
|
|
15
15
|
return unwrapAsync(clientInsightsRetrieve(this, request, options));
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [retrieve](#retrieve) -
|
|
8
|
+
* [retrieve](#retrieve) - Get insights
|
|
9
9
|
|
|
10
10
|
## retrieve
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
13
13
|
|
|
14
14
|
### Example Usage
|
|
15
15
|
|
|
@@ -21,13 +21,7 @@ const glean = new Glean({
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
24
|
-
const result = await glean.client.insights.retrieve({
|
|
25
|
-
categories: [
|
|
26
|
-
"COLLECTIONS",
|
|
27
|
-
"SHORTCUTS",
|
|
28
|
-
"ANNOUNCEMENTS",
|
|
29
|
-
],
|
|
30
|
-
});
|
|
24
|
+
const result = await glean.client.insights.retrieve({});
|
|
31
25
|
|
|
32
26
|
// Handle the result
|
|
33
27
|
console.log(result);
|
|
@@ -51,13 +45,7 @@ const glean = new GleanCore({
|
|
|
51
45
|
});
|
|
52
46
|
|
|
53
47
|
async function run() {
|
|
54
|
-
const res = await clientInsightsRetrieve(glean, {
|
|
55
|
-
categories: [
|
|
56
|
-
"COLLECTIONS",
|
|
57
|
-
"SHORTCUTS",
|
|
58
|
-
"ANNOUNCEMENTS",
|
|
59
|
-
],
|
|
60
|
-
});
|
|
48
|
+
const res = await clientInsightsRetrieve(glean, {});
|
|
61
49
|
|
|
62
50
|
if (!res.ok) {
|
|
63
51
|
throw res.error;
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -18,11 +18,10 @@ test("Summarize Summarize", async () => {
|
|
|
18
18
|
const result = await glean.client.documents.summarize({
|
|
19
19
|
documentSpecs: [
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
contentId: 4922,
|
|
21
|
+
url: "https://vivid-bourgeoisie.com/",
|
|
23
22
|
},
|
|
24
23
|
{
|
|
25
|
-
url: "https://
|
|
24
|
+
url: "https://sorrowful-hutch.name",
|
|
26
25
|
},
|
|
27
26
|
],
|
|
28
27
|
});
|
|
@@ -24,10 +24,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Get insights
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
*
|
|
30
|
+
* Gets the aggregate usage insights data displayed in the Insights Dashboards.
|
|
31
31
|
*/
|
|
32
32
|
export function clientInsightsRetrieve(
|
|
33
33
|
client: GleanCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -64,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "0.9.0",
|
|
67
|
-
sdkVersion: "0.10.
|
|
67
|
+
sdkVersion: "0.10.5",
|
|
68
68
|
genVersion: "2.610.0",
|
|
69
69
|
userAgent:
|
|
70
|
-
"speakeasy-sdk/typescript 0.10.
|
|
70
|
+
"speakeasy-sdk/typescript 0.10.5 2.610.0 0.9.0 @gleanwork/api-client",
|
|
71
71
|
} as const;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Period,
|
|
11
|
+
Period$inboundSchema,
|
|
12
|
+
Period$Outbound,
|
|
13
|
+
Period$outboundSchema,
|
|
14
|
+
} from "./period.js";
|
|
15
|
+
|
|
16
|
+
export type AgentsInsightsV2Request = {
|
|
17
|
+
/**
|
|
18
|
+
* IDs of the Agents for which Insights should be returned. An empty array signifies all.
|
|
19
|
+
*/
|
|
20
|
+
agentIds?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Departments for which Insights are requested.
|
|
23
|
+
*/
|
|
24
|
+
departments?: Array<string> | undefined;
|
|
25
|
+
dayRange?: Period | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AgentsInsightsV2Request$inboundSchema: z.ZodType<
|
|
30
|
+
AgentsInsightsV2Request,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
agentIds: z.array(z.string()).optional(),
|
|
35
|
+
departments: z.array(z.string()).optional(),
|
|
36
|
+
dayRange: Period$inboundSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AgentsInsightsV2Request$Outbound = {
|
|
41
|
+
agentIds?: Array<string> | undefined;
|
|
42
|
+
departments?: Array<string> | undefined;
|
|
43
|
+
dayRange?: Period$Outbound | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AgentsInsightsV2Request$outboundSchema: z.ZodType<
|
|
48
|
+
AgentsInsightsV2Request$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AgentsInsightsV2Request
|
|
51
|
+
> = z.object({
|
|
52
|
+
agentIds: z.array(z.string()).optional(),
|
|
53
|
+
departments: z.array(z.string()).optional(),
|
|
54
|
+
dayRange: Period$outboundSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace AgentsInsightsV2Request$ {
|
|
62
|
+
/** @deprecated use `AgentsInsightsV2Request$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = AgentsInsightsV2Request$inboundSchema;
|
|
64
|
+
/** @deprecated use `AgentsInsightsV2Request$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = AgentsInsightsV2Request$outboundSchema;
|
|
66
|
+
/** @deprecated use `AgentsInsightsV2Request$Outbound` instead. */
|
|
67
|
+
export type Outbound = AgentsInsightsV2Request$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function agentsInsightsV2RequestToJSON(
|
|
71
|
+
agentsInsightsV2Request: AgentsInsightsV2Request,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
AgentsInsightsV2Request$outboundSchema.parse(agentsInsightsV2Request),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function agentsInsightsV2RequestFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<AgentsInsightsV2Request, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => AgentsInsightsV2Request$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'AgentsInsightsV2Request' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -16,6 +16,7 @@ export * from "./agentrun.js";
|
|
|
16
16
|
export * from "./agentruncreate.js";
|
|
17
17
|
export * from "./agentrunwaitresponse.js";
|
|
18
18
|
export * from "./agentschemas.js";
|
|
19
|
+
export * from "./agentsinsightsv2request.js";
|
|
19
20
|
export * from "./aiappactioncounts.js";
|
|
20
21
|
export * from "./aiappsinsightsresponse.js";
|
|
21
22
|
export * from "./aiinsightsresponse.js";
|
|
@@ -253,6 +254,8 @@ export * from "./indexuserrequest.js";
|
|
|
253
254
|
export * from "./inputoptions.js";
|
|
254
255
|
export * from "./insightsagentsrequestoptions.js";
|
|
255
256
|
export * from "./insightsaiapprequestoptions.js";
|
|
257
|
+
export * from "./insightsassistantrequest.js";
|
|
258
|
+
export * from "./insightsoverviewrequest.js";
|
|
256
259
|
export * from "./insightsrequest.js";
|
|
257
260
|
export * from "./insightsresponse.js";
|
|
258
261
|
export * from "./invalidoperatorvalueerror.js";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Period,
|
|
11
|
+
Period$inboundSchema,
|
|
12
|
+
Period$Outbound,
|
|
13
|
+
Period$outboundSchema,
|
|
14
|
+
} from "./period.js";
|
|
15
|
+
|
|
16
|
+
export type InsightsAssistantRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* Departments for which Insights are requested.
|
|
19
|
+
*/
|
|
20
|
+
departments?: Array<string> | undefined;
|
|
21
|
+
dayRange?: Period | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const InsightsAssistantRequest$inboundSchema: z.ZodType<
|
|
26
|
+
InsightsAssistantRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
departments: z.array(z.string()).optional(),
|
|
31
|
+
dayRange: Period$inboundSchema.optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type InsightsAssistantRequest$Outbound = {
|
|
36
|
+
departments?: Array<string> | undefined;
|
|
37
|
+
dayRange?: Period$Outbound | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const InsightsAssistantRequest$outboundSchema: z.ZodType<
|
|
42
|
+
InsightsAssistantRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
InsightsAssistantRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
departments: z.array(z.string()).optional(),
|
|
47
|
+
dayRange: Period$outboundSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace InsightsAssistantRequest$ {
|
|
55
|
+
/** @deprecated use `InsightsAssistantRequest$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = InsightsAssistantRequest$inboundSchema;
|
|
57
|
+
/** @deprecated use `InsightsAssistantRequest$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = InsightsAssistantRequest$outboundSchema;
|
|
59
|
+
/** @deprecated use `InsightsAssistantRequest$Outbound` instead. */
|
|
60
|
+
export type Outbound = InsightsAssistantRequest$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function insightsAssistantRequestToJSON(
|
|
64
|
+
insightsAssistantRequest: InsightsAssistantRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
InsightsAssistantRequest$outboundSchema.parse(insightsAssistantRequest),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function insightsAssistantRequestFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<InsightsAssistantRequest, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => InsightsAssistantRequest$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'InsightsAssistantRequest' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|