@gleanwork/api-client 0.11.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- 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/agentsinsightsv2response.d.ts +60 -0
- package/dist/commonjs/models/components/agentsinsightsv2response.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentsinsightsv2response.js +91 -0
- package/dist/commonjs/models/components/agentsinsightsv2response.js.map +1 -0
- package/dist/commonjs/models/components/agentsusagebydepartmentinsight.d.ts +57 -0
- package/dist/commonjs/models/components/agentsusagebydepartmentinsight.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentsusagebydepartmentinsight.js +79 -0
- package/dist/commonjs/models/components/agentsusagebydepartmentinsight.js.map +1 -0
- package/dist/commonjs/models/components/agentusersinsight.d.ts +55 -0
- package/dist/commonjs/models/components/agentusersinsight.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentusersinsight.js +80 -0
- package/dist/commonjs/models/components/agentusersinsight.js.map +1 -0
- package/dist/commonjs/models/components/assistantinsightsresponse.d.ts +69 -0
- package/dist/commonjs/models/components/assistantinsightsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/assistantinsightsresponse.js +97 -0
- package/dist/commonjs/models/components/assistantinsightsresponse.js.map +1 -0
- package/dist/commonjs/models/components/currentactiveusers.d.ts +37 -0
- package/dist/commonjs/models/components/currentactiveusers.d.ts.map +1 -0
- package/dist/commonjs/models/components/currentactiveusers.js +71 -0
- package/dist/commonjs/models/components/currentactiveusers.js.map +1 -0
- package/dist/commonjs/models/components/feedrequest.d.ts +3 -0
- package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedrequest.js +1 -0
- package/dist/commonjs/models/components/feedrequest.js.map +1 -1
- package/dist/commonjs/models/components/feedresult.d.ts +3 -0
- package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedresult.js +1 -0
- package/dist/commonjs/models/components/feedresult.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +11 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +11 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/insightschatsummary.d.ts +47 -0
- package/dist/commonjs/models/components/insightschatsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/insightschatsummary.js +75 -0
- package/dist/commonjs/models/components/insightschatsummary.js.map +1 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.d.ts +149 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.js +143 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.js.map +1 -0
- package/dist/commonjs/models/components/insightsresponse.d.ts +13 -0
- package/dist/commonjs/models/components/insightsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/insightsresponse.js +9 -0
- package/dist/commonjs/models/components/insightsresponse.js.map +1 -1
- package/dist/commonjs/models/components/insightssearchsummary.d.ts +47 -0
- package/dist/commonjs/models/components/insightssearchsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/insightssearchsummary.js +75 -0
- package/dist/commonjs/models/components/insightssearchsummary.js.map +1 -0
- package/dist/commonjs/models/components/peragentinsight.d.ts +47 -0
- package/dist/commonjs/models/components/peragentinsight.d.ts.map +1 -0
- package/dist/commonjs/models/components/peragentinsight.js +75 -0
- package/dist/commonjs/models/components/peragentinsight.js.map +1 -0
- package/dist/commonjs/models/components/peruserassistantinsight.d.ts +55 -0
- package/dist/commonjs/models/components/peruserassistantinsight.d.ts.map +1 -0
- package/dist/commonjs/models/components/peruserassistantinsight.js +80 -0
- package/dist/commonjs/models/components/peruserassistantinsight.js.map +1 -0
- package/dist/commonjs/models/components/peruserinsight.d.ts +40 -0
- package/dist/commonjs/models/components/peruserinsight.d.ts.map +1 -0
- package/dist/commonjs/models/components/peruserinsight.js +74 -0
- package/dist/commonjs/models/components/peruserinsight.js.map +1 -0
- 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/agentsinsightsv2response.d.ts +60 -0
- package/dist/esm/models/components/agentsinsightsv2response.d.ts.map +1 -0
- package/dist/esm/models/components/agentsinsightsv2response.js +53 -0
- package/dist/esm/models/components/agentsinsightsv2response.js.map +1 -0
- package/dist/esm/models/components/agentsusagebydepartmentinsight.d.ts +57 -0
- package/dist/esm/models/components/agentsusagebydepartmentinsight.d.ts.map +1 -0
- package/dist/esm/models/components/agentsusagebydepartmentinsight.js +41 -0
- package/dist/esm/models/components/agentsusagebydepartmentinsight.js.map +1 -0
- package/dist/esm/models/components/agentusersinsight.d.ts +55 -0
- package/dist/esm/models/components/agentusersinsight.d.ts.map +1 -0
- package/dist/esm/models/components/agentusersinsight.js +42 -0
- package/dist/esm/models/components/agentusersinsight.js.map +1 -0
- package/dist/esm/models/components/assistantinsightsresponse.d.ts +69 -0
- package/dist/esm/models/components/assistantinsightsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/assistantinsightsresponse.js +59 -0
- package/dist/esm/models/components/assistantinsightsresponse.js.map +1 -0
- package/dist/esm/models/components/currentactiveusers.d.ts +37 -0
- package/dist/esm/models/components/currentactiveusers.d.ts.map +1 -0
- package/dist/esm/models/components/currentactiveusers.js +33 -0
- package/dist/esm/models/components/currentactiveusers.js.map +1 -0
- package/dist/esm/models/components/feedrequest.d.ts +3 -0
- package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
- package/dist/esm/models/components/feedrequest.js +1 -0
- package/dist/esm/models/components/feedrequest.js.map +1 -1
- package/dist/esm/models/components/feedresult.d.ts +3 -0
- package/dist/esm/models/components/feedresult.d.ts.map +1 -1
- package/dist/esm/models/components/feedresult.js +1 -0
- package/dist/esm/models/components/feedresult.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +11 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +11 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/insightschatsummary.d.ts +47 -0
- package/dist/esm/models/components/insightschatsummary.d.ts.map +1 -0
- package/dist/esm/models/components/insightschatsummary.js +37 -0
- package/dist/esm/models/components/insightschatsummary.js.map +1 -0
- package/dist/esm/models/components/insightsoverviewresponse.d.ts +149 -0
- package/dist/esm/models/components/insightsoverviewresponse.d.ts.map +1 -0
- package/dist/esm/models/components/insightsoverviewresponse.js +103 -0
- package/dist/esm/models/components/insightsoverviewresponse.js.map +1 -0
- package/dist/esm/models/components/insightsresponse.d.ts +13 -0
- package/dist/esm/models/components/insightsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/insightsresponse.js +9 -0
- package/dist/esm/models/components/insightsresponse.js.map +1 -1
- package/dist/esm/models/components/insightssearchsummary.d.ts +47 -0
- package/dist/esm/models/components/insightssearchsummary.d.ts.map +1 -0
- package/dist/esm/models/components/insightssearchsummary.js +37 -0
- package/dist/esm/models/components/insightssearchsummary.js.map +1 -0
- package/dist/esm/models/components/peragentinsight.d.ts +47 -0
- package/dist/esm/models/components/peragentinsight.d.ts.map +1 -0
- package/dist/esm/models/components/peragentinsight.js +37 -0
- package/dist/esm/models/components/peragentinsight.js.map +1 -0
- package/dist/esm/models/components/peruserassistantinsight.d.ts +55 -0
- package/dist/esm/models/components/peruserassistantinsight.d.ts.map +1 -0
- package/dist/esm/models/components/peruserassistantinsight.js +42 -0
- package/dist/esm/models/components/peruserassistantinsight.js.map +1 -0
- package/dist/esm/models/components/peruserinsight.d.ts +40 -0
- package/dist/esm/models/components/peruserinsight.d.ts.map +1 -0
- package/dist/esm/models/components/peruserinsight.js +36 -0
- package/dist/esm/models/components/peruserinsight.js.map +1 -0
- 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/agentsinsightsv2response.ts +143 -0
- package/src/models/components/agentsusagebydepartmentinsight.ts +106 -0
- package/src/models/components/agentusersinsight.ts +107 -0
- package/src/models/components/assistantinsightsresponse.ts +142 -0
- package/src/models/components/currentactiveusers.ts +76 -0
- package/src/models/components/feedrequest.ts +1 -0
- package/src/models/components/feedresult.ts +1 -0
- package/src/models/components/index.ts +11 -0
- package/src/models/components/insightschatsummary.ts +90 -0
- package/src/models/components/insightsoverviewresponse.ts +278 -0
- package/src/models/components/insightsresponse.ts +34 -0
- package/src/models/components/insightssearchsummary.ts +90 -0
- package/src/models/components/peragentinsight.ts +88 -0
- package/src/models/components/peruserassistantinsight.ts +107 -0
- package/src/models/components/peruserinsight.ts +82 -0
- package/docs/sdks/client/README.md +0 -6
- package/docs/sdks/glean/README.md +0 -23
- package/docs/sdks/indexing/README.md +0 -6
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
|
|
10
|
+
export type AgentsUsageByDepartmentInsight = {
|
|
11
|
+
/**
|
|
12
|
+
* Name of the department
|
|
13
|
+
*/
|
|
14
|
+
department?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Percentage of employees in the department who have used agents at least once over the specified time period.
|
|
17
|
+
*/
|
|
18
|
+
agentAdoptionRate?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of users in this department who have used any agent over the specified time period.
|
|
21
|
+
*/
|
|
22
|
+
userCount?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Total number of runs in this department over the specified time period.
|
|
25
|
+
*/
|
|
26
|
+
runCount?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* ID of the agent to be shown in the agent column in this department over the specified time period.
|
|
29
|
+
*/
|
|
30
|
+
agentId?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the agent to be shown in the agent column in this department over the specified time period.
|
|
33
|
+
*/
|
|
34
|
+
agentName?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AgentsUsageByDepartmentInsight$inboundSchema: z.ZodType<
|
|
39
|
+
AgentsUsageByDepartmentInsight,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
department: z.string().optional(),
|
|
44
|
+
agentAdoptionRate: z.number().optional(),
|
|
45
|
+
userCount: z.number().int().optional(),
|
|
46
|
+
runCount: z.number().int().optional(),
|
|
47
|
+
agentId: z.string().optional(),
|
|
48
|
+
agentName: z.string().optional(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type AgentsUsageByDepartmentInsight$Outbound = {
|
|
53
|
+
department?: string | undefined;
|
|
54
|
+
agentAdoptionRate?: number | undefined;
|
|
55
|
+
userCount?: number | undefined;
|
|
56
|
+
runCount?: number | undefined;
|
|
57
|
+
agentId?: string | undefined;
|
|
58
|
+
agentName?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const AgentsUsageByDepartmentInsight$outboundSchema: z.ZodType<
|
|
63
|
+
AgentsUsageByDepartmentInsight$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
AgentsUsageByDepartmentInsight
|
|
66
|
+
> = z.object({
|
|
67
|
+
department: z.string().optional(),
|
|
68
|
+
agentAdoptionRate: z.number().optional(),
|
|
69
|
+
userCount: z.number().int().optional(),
|
|
70
|
+
runCount: z.number().int().optional(),
|
|
71
|
+
agentId: z.string().optional(),
|
|
72
|
+
agentName: z.string().optional(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace AgentsUsageByDepartmentInsight$ {
|
|
80
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema = AgentsUsageByDepartmentInsight$inboundSchema;
|
|
82
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema = AgentsUsageByDepartmentInsight$outboundSchema;
|
|
84
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$Outbound` instead. */
|
|
85
|
+
export type Outbound = AgentsUsageByDepartmentInsight$Outbound;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function agentsUsageByDepartmentInsightToJSON(
|
|
89
|
+
agentsUsageByDepartmentInsight: AgentsUsageByDepartmentInsight,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
AgentsUsageByDepartmentInsight$outboundSchema.parse(
|
|
93
|
+
agentsUsageByDepartmentInsight,
|
|
94
|
+
),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function agentsUsageByDepartmentInsightFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<AgentsUsageByDepartmentInsight, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => AgentsUsageByDepartmentInsight$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'AgentsUsageByDepartmentInsight' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
Person,
|
|
11
|
+
Person$inboundSchema,
|
|
12
|
+
Person$Outbound,
|
|
13
|
+
Person$outboundSchema,
|
|
14
|
+
} from "./person.js";
|
|
15
|
+
|
|
16
|
+
export type AgentUsersInsight = {
|
|
17
|
+
person?: Person | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Department name
|
|
20
|
+
*/
|
|
21
|
+
departmentName?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Total number of agents used by this user over the specified time period.
|
|
24
|
+
*/
|
|
25
|
+
agentsUsedCount?: number | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Average number of runs per day for this user over the specified time period.
|
|
28
|
+
*/
|
|
29
|
+
averageRunsPerDayCount?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of agents created by this user over the specified time period.
|
|
32
|
+
*/
|
|
33
|
+
agentsCreatedCount?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Total number of agent runs for this user over the specified time period.
|
|
36
|
+
*/
|
|
37
|
+
runCount?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const AgentUsersInsight$inboundSchema: z.ZodType<
|
|
42
|
+
AgentUsersInsight,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
person: Person$inboundSchema.optional(),
|
|
47
|
+
departmentName: z.string().optional(),
|
|
48
|
+
agentsUsedCount: z.number().int().optional(),
|
|
49
|
+
averageRunsPerDayCount: z.number().optional(),
|
|
50
|
+
agentsCreatedCount: z.number().int().optional(),
|
|
51
|
+
runCount: z.number().int().optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type AgentUsersInsight$Outbound = {
|
|
56
|
+
person?: Person$Outbound | undefined;
|
|
57
|
+
departmentName?: string | undefined;
|
|
58
|
+
agentsUsedCount?: number | undefined;
|
|
59
|
+
averageRunsPerDayCount?: number | undefined;
|
|
60
|
+
agentsCreatedCount?: number | undefined;
|
|
61
|
+
runCount?: number | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const AgentUsersInsight$outboundSchema: z.ZodType<
|
|
66
|
+
AgentUsersInsight$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
AgentUsersInsight
|
|
69
|
+
> = z.object({
|
|
70
|
+
person: Person$outboundSchema.optional(),
|
|
71
|
+
departmentName: z.string().optional(),
|
|
72
|
+
agentsUsedCount: z.number().int().optional(),
|
|
73
|
+
averageRunsPerDayCount: z.number().optional(),
|
|
74
|
+
agentsCreatedCount: z.number().int().optional(),
|
|
75
|
+
runCount: z.number().int().optional(),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace AgentUsersInsight$ {
|
|
83
|
+
/** @deprecated use `AgentUsersInsight$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = AgentUsersInsight$inboundSchema;
|
|
85
|
+
/** @deprecated use `AgentUsersInsight$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = AgentUsersInsight$outboundSchema;
|
|
87
|
+
/** @deprecated use `AgentUsersInsight$Outbound` instead. */
|
|
88
|
+
export type Outbound = AgentUsersInsight$Outbound;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function agentUsersInsightToJSON(
|
|
92
|
+
agentUsersInsight: AgentUsersInsight,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
AgentUsersInsight$outboundSchema.parse(agentUsersInsight),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function agentUsersInsightFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<AgentUsersInsight, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => AgentUsersInsight$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'AgentUsersInsight' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
LabeledCountInfo,
|
|
11
|
+
LabeledCountInfo$inboundSchema,
|
|
12
|
+
LabeledCountInfo$Outbound,
|
|
13
|
+
LabeledCountInfo$outboundSchema,
|
|
14
|
+
} from "./labeledcountinfo.js";
|
|
15
|
+
import {
|
|
16
|
+
PerUserAssistantInsight,
|
|
17
|
+
PerUserAssistantInsight$inboundSchema,
|
|
18
|
+
PerUserAssistantInsight$Outbound,
|
|
19
|
+
PerUserAssistantInsight$outboundSchema,
|
|
20
|
+
} from "./peruserassistantinsight.js";
|
|
21
|
+
|
|
22
|
+
export type AssistantInsightsResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* Number of current Monthly Active Users, in the specified departments.
|
|
25
|
+
*/
|
|
26
|
+
monthlyActiveUsers?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Number of current Weekly Active Users, in the specified departments.
|
|
29
|
+
*/
|
|
30
|
+
weeklyActiveUsers?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Unix timestamp of the last update for the insights data in the response.
|
|
33
|
+
*/
|
|
34
|
+
lastUpdatedTs?: number | undefined;
|
|
35
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
36
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
37
|
+
dailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Number of current signed up employees in the specified departments, according to the Org Chart.
|
|
40
|
+
*/
|
|
41
|
+
totalSignups?: number | undefined;
|
|
42
|
+
chatMessagesTimeseries?: LabeledCountInfo | undefined;
|
|
43
|
+
summarizationsTimeseries?: LabeledCountInfo | undefined;
|
|
44
|
+
aiAnswersTimeseries?: LabeledCountInfo | undefined;
|
|
45
|
+
gleanbotInteractionsTimeseries?: LabeledCountInfo | undefined;
|
|
46
|
+
perUserInsights?: Array<PerUserAssistantInsight> | undefined;
|
|
47
|
+
upvotesTimeseries?: LabeledCountInfo | undefined;
|
|
48
|
+
downvotesTimeseries?: LabeledCountInfo | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AssistantInsightsResponse$inboundSchema: z.ZodType<
|
|
53
|
+
AssistantInsightsResponse,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
58
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
59
|
+
lastUpdatedTs: z.number().int().optional(),
|
|
60
|
+
monthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
61
|
+
weeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
62
|
+
dailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
63
|
+
totalSignups: z.number().int().optional(),
|
|
64
|
+
chatMessagesTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
65
|
+
summarizationsTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
66
|
+
aiAnswersTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
67
|
+
gleanbotInteractionsTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
68
|
+
perUserInsights: z.array(PerUserAssistantInsight$inboundSchema).optional(),
|
|
69
|
+
upvotesTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
70
|
+
downvotesTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type AssistantInsightsResponse$Outbound = {
|
|
75
|
+
monthlyActiveUsers?: number | undefined;
|
|
76
|
+
weeklyActiveUsers?: number | undefined;
|
|
77
|
+
lastUpdatedTs?: number | undefined;
|
|
78
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
79
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
80
|
+
dailyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
81
|
+
totalSignups?: number | undefined;
|
|
82
|
+
chatMessagesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
83
|
+
summarizationsTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
84
|
+
aiAnswersTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
85
|
+
gleanbotInteractionsTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
86
|
+
perUserInsights?: Array<PerUserAssistantInsight$Outbound> | undefined;
|
|
87
|
+
upvotesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
88
|
+
downvotesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const AssistantInsightsResponse$outboundSchema: z.ZodType<
|
|
93
|
+
AssistantInsightsResponse$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
AssistantInsightsResponse
|
|
96
|
+
> = z.object({
|
|
97
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
98
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
99
|
+
lastUpdatedTs: z.number().int().optional(),
|
|
100
|
+
monthlyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
101
|
+
weeklyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
102
|
+
dailyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
103
|
+
totalSignups: z.number().int().optional(),
|
|
104
|
+
chatMessagesTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
105
|
+
summarizationsTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
106
|
+
aiAnswersTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
107
|
+
gleanbotInteractionsTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
108
|
+
perUserInsights: z.array(PerUserAssistantInsight$outboundSchema).optional(),
|
|
109
|
+
upvotesTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
110
|
+
downvotesTimeseries: LabeledCountInfo$outboundSchema.optional(),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
+
*/
|
|
117
|
+
export namespace AssistantInsightsResponse$ {
|
|
118
|
+
/** @deprecated use `AssistantInsightsResponse$inboundSchema` instead. */
|
|
119
|
+
export const inboundSchema = AssistantInsightsResponse$inboundSchema;
|
|
120
|
+
/** @deprecated use `AssistantInsightsResponse$outboundSchema` instead. */
|
|
121
|
+
export const outboundSchema = AssistantInsightsResponse$outboundSchema;
|
|
122
|
+
/** @deprecated use `AssistantInsightsResponse$Outbound` instead. */
|
|
123
|
+
export type Outbound = AssistantInsightsResponse$Outbound;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function assistantInsightsResponseToJSON(
|
|
127
|
+
assistantInsightsResponse: AssistantInsightsResponse,
|
|
128
|
+
): string {
|
|
129
|
+
return JSON.stringify(
|
|
130
|
+
AssistantInsightsResponse$outboundSchema.parse(assistantInsightsResponse),
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function assistantInsightsResponseFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<AssistantInsightsResponse, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => AssistantInsightsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'AssistantInsightsResponse' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
|
|
10
|
+
export type CurrentActiveUsers = {
|
|
11
|
+
/**
|
|
12
|
+
* Number of current Monthly Active Users, in the specified departments.
|
|
13
|
+
*/
|
|
14
|
+
monthlyActiveUsers?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Number of current Weekly Active Users, in the specified departments.
|
|
17
|
+
*/
|
|
18
|
+
weeklyActiveUsers?: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CurrentActiveUsers$inboundSchema: z.ZodType<
|
|
23
|
+
CurrentActiveUsers,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
28
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type CurrentActiveUsers$Outbound = {
|
|
33
|
+
monthlyActiveUsers?: number | undefined;
|
|
34
|
+
weeklyActiveUsers?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CurrentActiveUsers$outboundSchema: z.ZodType<
|
|
39
|
+
CurrentActiveUsers$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
CurrentActiveUsers
|
|
42
|
+
> = z.object({
|
|
43
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
44
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace CurrentActiveUsers$ {
|
|
52
|
+
/** @deprecated use `CurrentActiveUsers$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = CurrentActiveUsers$inboundSchema;
|
|
54
|
+
/** @deprecated use `CurrentActiveUsers$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = CurrentActiveUsers$outboundSchema;
|
|
56
|
+
/** @deprecated use `CurrentActiveUsers$Outbound` instead. */
|
|
57
|
+
export type Outbound = CurrentActiveUsers$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function currentActiveUsersToJSON(
|
|
61
|
+
currentActiveUsers: CurrentActiveUsers,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CurrentActiveUsers$outboundSchema.parse(currentActiveUsers),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function currentActiveUsersFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<CurrentActiveUsers, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => CurrentActiveUsers$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'CurrentActiveUsers' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -42,6 +42,7 @@ export const FeedRequestCategory = {
|
|
|
42
42
|
ZeroStateWorkflowCreatedByMe: "ZERO_STATE_WORKFLOW_CREATED_BY_ME",
|
|
43
43
|
ZeroStateWorkflowFavorites: "ZERO_STATE_WORKFLOW_FAVORITES",
|
|
44
44
|
ZeroStateWorkflowPopular: "ZERO_STATE_WORKFLOW_POPULAR",
|
|
45
|
+
ZeroStateWorkflowRecent: "ZERO_STATE_WORKFLOW_RECENT",
|
|
45
46
|
ZeroStateWorkflowSuggestion: "ZERO_STATE_WORKFLOW_SUGGESTION",
|
|
46
47
|
PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION",
|
|
47
48
|
DailyDigest: "DAILY_DIGEST",
|
|
@@ -39,6 +39,7 @@ export const FeedResultCategory = {
|
|
|
39
39
|
ZeroStateWorkflowCreatedByMe: "ZERO_STATE_WORKFLOW_CREATED_BY_ME",
|
|
40
40
|
ZeroStateWorkflowFavorites: "ZERO_STATE_WORKFLOW_FAVORITES",
|
|
41
41
|
ZeroStateWorkflowPopular: "ZERO_STATE_WORKFLOW_POPULAR",
|
|
42
|
+
ZeroStateWorkflowRecent: "ZERO_STATE_WORKFLOW_RECENT",
|
|
42
43
|
ZeroStateWorkflowSuggestion: "ZERO_STATE_WORKFLOW_SUGGESTION",
|
|
43
44
|
PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION",
|
|
44
45
|
DailyDigest: "DAILY_DIGEST",
|
|
@@ -17,6 +17,9 @@ export * from "./agentruncreate.js";
|
|
|
17
17
|
export * from "./agentrunwaitresponse.js";
|
|
18
18
|
export * from "./agentschemas.js";
|
|
19
19
|
export * from "./agentsinsightsv2request.js";
|
|
20
|
+
export * from "./agentsinsightsv2response.js";
|
|
21
|
+
export * from "./agentsusagebydepartmentinsight.js";
|
|
22
|
+
export * from "./agentusersinsight.js";
|
|
20
23
|
export * from "./aiappactioncounts.js";
|
|
21
24
|
export * from "./aiappsinsightsresponse.js";
|
|
22
25
|
export * from "./aiinsightsresponse.js";
|
|
@@ -30,6 +33,7 @@ export * from "./answerlike.js";
|
|
|
30
33
|
export * from "./answerlikes.js";
|
|
31
34
|
export * from "./answerresult.js";
|
|
32
35
|
export * from "./appresult.js";
|
|
36
|
+
export * from "./assistantinsightsresponse.js";
|
|
33
37
|
export * from "./authconfig.js";
|
|
34
38
|
export * from "./authtoken.js";
|
|
35
39
|
export * from "./autocompleterequest.js";
|
|
@@ -98,6 +102,7 @@ export * from "./createdlpreportrequest.js";
|
|
|
98
102
|
export * from "./createdlpreportresponse.js";
|
|
99
103
|
export * from "./createshortcutrequest.js";
|
|
100
104
|
export * from "./createshortcutresponse.js";
|
|
105
|
+
export * from "./currentactiveusers.js";
|
|
101
106
|
export * from "./customdatasourceconfig.js";
|
|
102
107
|
export * from "./customdatavalue.js";
|
|
103
108
|
export * from "./customentity.js";
|
|
@@ -255,9 +260,12 @@ export * from "./inputoptions.js";
|
|
|
255
260
|
export * from "./insightsagentsrequestoptions.js";
|
|
256
261
|
export * from "./insightsaiapprequestoptions.js";
|
|
257
262
|
export * from "./insightsassistantrequest.js";
|
|
263
|
+
export * from "./insightschatsummary.js";
|
|
258
264
|
export * from "./insightsoverviewrequest.js";
|
|
265
|
+
export * from "./insightsoverviewresponse.js";
|
|
259
266
|
export * from "./insightsrequest.js";
|
|
260
267
|
export * from "./insightsresponse.js";
|
|
268
|
+
export * from "./insightssearchsummary.js";
|
|
261
269
|
export * from "./invalidoperatorvalueerror.js";
|
|
262
270
|
export * from "./inviteinfo.js";
|
|
263
271
|
export * from "./labeledcountinfo.js";
|
|
@@ -284,6 +292,7 @@ export * from "./operatormetadata.js";
|
|
|
284
292
|
export * from "./operatorscope.js";
|
|
285
293
|
export * from "./peoplerequest.js";
|
|
286
294
|
export * from "./peopleresponse.js";
|
|
295
|
+
export * from "./peragentinsight.js";
|
|
287
296
|
export * from "./period.js";
|
|
288
297
|
export * from "./permissions.js";
|
|
289
298
|
export * from "./permissionsgroupintersectiondefinition.js";
|
|
@@ -293,6 +302,8 @@ export * from "./personmetadata.js";
|
|
|
293
302
|
export * from "./personobject.js";
|
|
294
303
|
export * from "./personteam.js";
|
|
295
304
|
export * from "./persontoteamrelationship.js";
|
|
305
|
+
export * from "./peruserassistantinsight.js";
|
|
306
|
+
export * from "./peruserinsight.js";
|
|
296
307
|
export * from "./pindocument.js";
|
|
297
308
|
export * from "./pinrequest.js";
|
|
298
309
|
export * from "./possiblevalue.js";
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
10
|
+
export type InsightsChatSummary = {
|
|
11
|
+
/**
|
|
12
|
+
* Number of current Monthly Active Users, in the specified departments.
|
|
13
|
+
*/
|
|
14
|
+
monthlyActiveUsers?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Number of current Weekly Active Users, in the specified departments.
|
|
17
|
+
*/
|
|
18
|
+
weeklyActiveUsers?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of chats by users over the specified time period.
|
|
21
|
+
*/
|
|
22
|
+
numChats?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Total number of distinct users who used Chat over the specified time period.
|
|
25
|
+
*/
|
|
26
|
+
numChatUsers?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const InsightsChatSummary$inboundSchema: z.ZodType<
|
|
31
|
+
InsightsChatSummary,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
36
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
37
|
+
numChats: z.number().int().optional(),
|
|
38
|
+
numChatUsers: z.number().int().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type InsightsChatSummary$Outbound = {
|
|
43
|
+
monthlyActiveUsers?: number | undefined;
|
|
44
|
+
weeklyActiveUsers?: number | undefined;
|
|
45
|
+
numChats?: number | undefined;
|
|
46
|
+
numChatUsers?: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const InsightsChatSummary$outboundSchema: z.ZodType<
|
|
51
|
+
InsightsChatSummary$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
InsightsChatSummary
|
|
54
|
+
> = z.object({
|
|
55
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
56
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
57
|
+
numChats: z.number().int().optional(),
|
|
58
|
+
numChatUsers: z.number().int().optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace InsightsChatSummary$ {
|
|
66
|
+
/** @deprecated use `InsightsChatSummary$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = InsightsChatSummary$inboundSchema;
|
|
68
|
+
/** @deprecated use `InsightsChatSummary$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = InsightsChatSummary$outboundSchema;
|
|
70
|
+
/** @deprecated use `InsightsChatSummary$Outbound` instead. */
|
|
71
|
+
export type Outbound = InsightsChatSummary$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function insightsChatSummaryToJSON(
|
|
75
|
+
insightsChatSummary: InsightsChatSummary,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
InsightsChatSummary$outboundSchema.parse(insightsChatSummary),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function insightsChatSummaryFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<InsightsChatSummary, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => InsightsChatSummary$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'InsightsChatSummary' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|