@gleanwork/api-client 0.13.10 → 0.13.12
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__/messages.test.js +1 -1
- package/dist/commonjs/__tests__/messages.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/insightsoverviewresponse.d.ts +1 -23
- package/dist/commonjs/models/components/insightsoverviewresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/insightsoverviewresponse.js +1 -14
- package/dist/commonjs/models/components/insightsoverviewresponse.js.map +1 -1
- package/dist/commonjs/models/components/peragentinsight.d.ts +4 -0
- package/dist/commonjs/models/components/peragentinsight.d.ts.map +1 -1
- package/dist/commonjs/models/components/peragentinsight.js +1 -0
- package/dist/commonjs/models/components/peragentinsight.js.map +1 -1
- package/dist/commonjs/models/components/peruserassistantinsight.d.ts +2 -2
- package/dist/commonjs/models/components/peruserinsight.d.ts +12 -0
- package/dist/commonjs/models/components/peruserinsight.d.ts.map +1 -1
- package/dist/commonjs/models/components/peruserinsight.js +3 -0
- package/dist/commonjs/models/components/peruserinsight.js.map +1 -1
- package/dist/commonjs/types/enums.d.ts +1 -8
- package/dist/commonjs/types/enums.d.ts.map +1 -1
- package/dist/commonjs/types/enums.js +3 -21
- package/dist/commonjs/types/enums.js.map +1 -1
- package/dist/commonjs/types/index.d.ts +2 -1
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +15 -0
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/commonjs/types/unrecognized.d.ts +10 -0
- package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
- package/dist/commonjs/types/unrecognized.js +26 -0
- package/dist/commonjs/types/unrecognized.js.map +1 -0
- package/dist/esm/__tests__/messages.test.js +1 -1
- package/dist/esm/__tests__/messages.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/insightsoverviewresponse.d.ts +1 -23
- package/dist/esm/models/components/insightsoverviewresponse.d.ts.map +1 -1
- package/dist/esm/models/components/insightsoverviewresponse.js +0 -12
- package/dist/esm/models/components/insightsoverviewresponse.js.map +1 -1
- package/dist/esm/models/components/peragentinsight.d.ts +4 -0
- package/dist/esm/models/components/peragentinsight.d.ts.map +1 -1
- package/dist/esm/models/components/peragentinsight.js +1 -0
- package/dist/esm/models/components/peragentinsight.js.map +1 -1
- package/dist/esm/models/components/peruserassistantinsight.d.ts +2 -2
- package/dist/esm/models/components/peruserinsight.d.ts +12 -0
- package/dist/esm/models/components/peruserinsight.d.ts.map +1 -1
- package/dist/esm/models/components/peruserinsight.js +3 -0
- package/dist/esm/models/components/peruserinsight.js.map +1 -1
- package/dist/esm/types/enums.d.ts +1 -8
- package/dist/esm/types/enums.d.ts.map +1 -1
- package/dist/esm/types/enums.js +1 -18
- package/dist/esm/types/enums.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/unrecognized.d.ts +10 -0
- package/dist/esm/types/unrecognized.d.ts.map +1 -0
- package/dist/esm/types/unrecognized.js +23 -0
- package/dist/esm/types/unrecognized.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/messages.test.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/insightsoverviewresponse.ts +1 -45
- package/src/models/components/peragentinsight.ts +5 -0
- package/src/models/components/peruserassistantinsight.ts +2 -2
- package/src/models/components/peruserinsight.ts +15 -0
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +27 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.test.js","sourceRoot":"","sources":["../../../src/__tests__/messages.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAAoC;AACpC,mDAAuD;AAEvD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;IACnC,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,UAAU,CAAC,CAAC;IAExD,MAAM,KAAK,GAAG,IAAI,gBAAK,CAAC;QACtB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,wBAAwB;QACrE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,OAAO;KACpD,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAClD,MAAM,EAAE,iBAAiB;QACzB,EAAE,EAAE,MAAM;QACV,eAAe,EAAE,MAAM;QACvB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"messages.test.js","sourceRoot":"","sources":["../../../src/__tests__/messages.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAAoC;AACpC,mDAAuD;AAEvD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;IACnC,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,UAAU,CAAC,CAAC;IAExD,MAAM,KAAK,GAAG,IAAI,gBAAK,CAAC;QACtB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,wBAAwB;QACrE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,OAAO;KACpD,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAClD,MAAM,EAAE,iBAAiB;QACzB,EAAE,EAAE,MAAM;QACV,eAAe,EAAE,MAAM;QACvB,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.9.0";
|
|
38
|
-
readonly sdkVersion: "0.13.
|
|
39
|
-
readonly genVersion: "2.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
38
|
+
readonly sdkVersion: "0.13.12";
|
|
39
|
+
readonly genVersion: "2.760.2";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.12 2.760.2 0.9.0 @gleanwork/api-client";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -34,8 +34,8 @@ function serverURLFromOptions(options) {
|
|
|
34
34
|
exports.SDK_METADATA = {
|
|
35
35
|
language: "typescript",
|
|
36
36
|
openapiDocVersion: "0.9.0",
|
|
37
|
-
sdkVersion: "0.13.
|
|
38
|
-
genVersion: "2.
|
|
39
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
37
|
+
sdkVersion: "0.13.12",
|
|
38
|
+
genVersion: "2.760.2",
|
|
39
|
+
userAgent: "speakeasy-sdk/typescript 0.13.12 2.760.2 0.9.0 @gleanwork/api-client",
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=config.js.map
|
|
@@ -6,24 +6,6 @@ import { InsightsChatSummary } from "./insightschatsummary.js";
|
|
|
6
6
|
import { InsightsSearchSummary } from "./insightssearchsummary.js";
|
|
7
7
|
import { LabeledCountInfo } from "./labeledcountinfo.js";
|
|
8
8
|
import { PerUserInsight } from "./peruserinsight.js";
|
|
9
|
-
export type EngagementBreakdown = {
|
|
10
|
-
/**
|
|
11
|
-
* Number of non-user employees in the specified departments.
|
|
12
|
-
*/
|
|
13
|
-
nonUsers?: number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Number of currently dormant users in the specified departments.
|
|
16
|
-
*/
|
|
17
|
-
dormantUsers?: number | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Number of currently regular users in the specified departments.
|
|
20
|
-
*/
|
|
21
|
-
regularUsers?: number | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Number of currently power users in the specified departments.
|
|
24
|
-
*/
|
|
25
|
-
powerUsers?: number | undefined;
|
|
26
|
-
};
|
|
27
9
|
export type InsightsOverviewResponse = {
|
|
28
10
|
/**
|
|
29
11
|
* Number of current Monthly Active Users, in the specified departments.
|
|
@@ -73,15 +55,11 @@ export type InsightsOverviewResponse = {
|
|
|
73
55
|
[k: string]: number;
|
|
74
56
|
} | undefined;
|
|
75
57
|
/**
|
|
76
|
-
*
|
|
58
|
+
* Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included.
|
|
77
59
|
*/
|
|
78
60
|
perUserInsights?: Array<PerUserInsight> | undefined;
|
|
79
|
-
engagementBreakdown?: EngagementBreakdown | undefined;
|
|
80
61
|
};
|
|
81
62
|
/** @internal */
|
|
82
|
-
export declare const EngagementBreakdown$inboundSchema: z.ZodType<EngagementBreakdown, z.ZodTypeDef, unknown>;
|
|
83
|
-
export declare function engagementBreakdownFromJSON(jsonString: string): SafeParseResult<EngagementBreakdown, SDKValidationError>;
|
|
84
|
-
/** @internal */
|
|
85
63
|
export declare const InsightsOverviewResponse$inboundSchema: z.ZodType<InsightsOverviewResponse, z.ZodTypeDef, unknown>;
|
|
86
64
|
export declare function insightsOverviewResponseFromJSON(jsonString: string): SafeParseResult<InsightsOverviewResponse, SDKValidationError>;
|
|
87
65
|
//# sourceMappingURL=insightsoverviewresponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoverviewresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"insightsoverviewresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAA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
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InsightsOverviewResponse$inboundSchema =
|
|
40
|
-
exports.engagementBreakdownFromJSON = engagementBreakdownFromJSON;
|
|
39
|
+
exports.InsightsOverviewResponse$inboundSchema = void 0;
|
|
41
40
|
exports.insightsOverviewResponseFromJSON = insightsOverviewResponseFromJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -47,16 +46,6 @@ const insightssearchsummary_js_1 = require("./insightssearchsummary.js");
|
|
|
47
46
|
const labeledcountinfo_js_1 = require("./labeledcountinfo.js");
|
|
48
47
|
const peruserinsight_js_1 = require("./peruserinsight.js");
|
|
49
48
|
/** @internal */
|
|
50
|
-
exports.EngagementBreakdown$inboundSchema = z.object({
|
|
51
|
-
nonUsers: z.number().int().optional(),
|
|
52
|
-
dormantUsers: z.number().int().optional(),
|
|
53
|
-
regularUsers: z.number().int().optional(),
|
|
54
|
-
powerUsers: z.number().int().optional(),
|
|
55
|
-
});
|
|
56
|
-
function engagementBreakdownFromJSON(jsonString) {
|
|
57
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EngagementBreakdown$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EngagementBreakdown' from JSON`);
|
|
58
|
-
}
|
|
59
|
-
/** @internal */
|
|
60
49
|
exports.InsightsOverviewResponse$inboundSchema = z.object({
|
|
61
50
|
monthlyActiveUsers: z.number().int().optional(),
|
|
62
51
|
weeklyActiveUsers: z.number().int().optional(),
|
|
@@ -75,8 +64,6 @@ exports.InsightsOverviewResponse$inboundSchema = z.object({
|
|
|
75
64
|
searchDatasourceCounts: z.record(z.number().int()).optional(),
|
|
76
65
|
chatDatasourceCounts: z.record(z.number().int()).optional(),
|
|
77
66
|
perUserInsights: z.array(peruserinsight_js_1.PerUserInsight$inboundSchema).optional(),
|
|
78
|
-
engagementBreakdown: z.lazy(() => exports.EngagementBreakdown$inboundSchema)
|
|
79
|
-
.optional(),
|
|
80
67
|
});
|
|
81
68
|
function insightsOverviewResponseFromJSON(jsonString) {
|
|
82
69
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InsightsOverviewResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InsightsOverviewResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoverviewresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"insightsoverviewresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,4EAQC;AA5GD,0CAA4B;AAC5B,qDAAiD;AAGjD,mEAGiC;AACjC,qEAGkC;AAClC,yEAGoC;AACpC,+DAG+B;AAC/B,2DAG6B;AAoD7B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,aAAa,EAAE,8DAAmC,CAAC,QAAQ,EAAE;IAC7D,WAAW,EAAE,0DAAiC,CAAC,QAAQ,EAAE;IACzD,gBAAgB,EAAE,wDAAgC,CAAC,QAAQ,EAAE;IAC7D,UAAU,EAAE,wDAAgC,CAAC,QAAQ,EAAE;IACvD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1C,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,2BAA2B,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACtE,0BAA0B,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACrE,yBAAyB,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACpE,sBAAsB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7D,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,gDAA4B,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -15,6 +15,10 @@ export type PerAgentInsight = {
|
|
|
15
15
|
* Defines how to render an icon
|
|
16
16
|
*/
|
|
17
17
|
icon?: IconConfig | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the agent has been deleted
|
|
20
|
+
*/
|
|
21
|
+
isDeleted?: boolean | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* Total number of users for this agent over the specified time period.
|
|
20
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peragentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"peragentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -46,6 +46,7 @@ exports.PerAgentInsight$inboundSchema = z.object({
|
|
|
46
46
|
agentId: z.string().optional(),
|
|
47
47
|
agentName: z.string().optional(),
|
|
48
48
|
icon: iconconfig_js_1.IconConfig$inboundSchema.optional(),
|
|
49
|
+
isDeleted: z.boolean().optional(),
|
|
49
50
|
userCount: z.number().int().optional(),
|
|
50
51
|
runCount: z.number().int().optional(),
|
|
51
52
|
upvoteCount: z.number().int().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peragentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"peragentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,0DAQC;AAjED,0CAA4B;AAC5B,qDAAiD;AAGjD,mDAAuE;AAqCvE,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,wCAAwB,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -17,11 +17,11 @@ export type PerUserAssistantInsight = {
|
|
|
17
17
|
*/
|
|
18
18
|
numAiAnswers?: number | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Total number of Gleanbot
|
|
20
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
21
21
|
*/
|
|
22
22
|
numGleanbotInteractions?: number | undefined;
|
|
23
23
|
/**
|
|
24
|
-
* Total number of days this user was active over the specified time period.
|
|
24
|
+
* Total number of days this user was active on the Assistant over the specified time period.
|
|
25
25
|
*/
|
|
26
26
|
numDaysActive?: number | undefined;
|
|
27
27
|
};
|
|
@@ -12,6 +12,18 @@ export type PerUserInsight = {
|
|
|
12
12
|
* Total number of chats by this user over the specified time period.
|
|
13
13
|
*/
|
|
14
14
|
numChats?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of active sessions by this user in a Glean client over the specified time period.
|
|
17
|
+
*/
|
|
18
|
+
numActiveSessions?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
21
|
+
*/
|
|
22
|
+
numGleanbotUsefulResponses?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Total number of days this user was an Active User over the specified time period.
|
|
25
|
+
*/
|
|
26
|
+
numDaysActive?: number | undefined;
|
|
15
27
|
};
|
|
16
28
|
/** @internal */
|
|
17
29
|
export declare const PerUserInsight$inboundSchema: z.ZodType<PerUserInsight, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peruserinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAwB,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"peruserinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAwB,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -46,6 +46,9 @@ exports.PerUserInsight$inboundSchema = z.object({
|
|
|
46
46
|
person: person_js_1.Person$inboundSchema.optional(),
|
|
47
47
|
numSearches: z.number().int().optional(),
|
|
48
48
|
numChats: z.number().int().optional(),
|
|
49
|
+
numActiveSessions: z.number().int().optional(),
|
|
50
|
+
numGleanbotUsefulResponses: z.number().int().optional(),
|
|
51
|
+
numDaysActive: z.number().int().optional(),
|
|
49
52
|
});
|
|
50
53
|
function perUserInsightFromJSON(jsonString) {
|
|
51
54
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PerUserInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerUserInsight' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peruserinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"peruserinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,wDAQC;AApDD,0CAA4B;AAC5B,qDAAiD;AAGjD,2CAA2D;AA0B3D,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACvD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
|
|
3
|
-
export type Unrecognized<T> = T & {
|
|
4
|
-
[__brand]: "unrecognized";
|
|
5
|
-
};
|
|
2
|
+
import { Unrecognized } from "./unrecognized.js";
|
|
6
3
|
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
|
|
7
4
|
export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
8
|
-
export declare function unrecognizedCounter(): {
|
|
9
|
-
count: () => number;
|
|
10
|
-
};
|
|
11
5
|
export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
12
6
|
export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
13
7
|
export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodType<string, z.ZodTypeDef, OpenEnum<T>>;
|
|
14
8
|
export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodType<number, z.ZodTypeDef, OpenEnum<T>>;
|
|
15
|
-
export {};
|
|
16
9
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,G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
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.unrecognizedCounter = unrecognizedCounter;
|
|
40
39
|
exports.inboundSchema = inboundSchema;
|
|
41
40
|
exports.inboundSchemaInt = inboundSchemaInt;
|
|
42
41
|
exports.outboundSchema = outboundSchema;
|
|
43
42
|
exports.outboundSchemaInt = outboundSchemaInt;
|
|
44
43
|
const z = __importStar(require("zod/v3"));
|
|
45
|
-
|
|
46
|
-
unrecognizedCount++;
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
let unrecognizedCount = 0;
|
|
50
|
-
let refCount = 0;
|
|
51
|
-
function unrecognizedCounter() {
|
|
52
|
-
refCount++;
|
|
53
|
-
const start = unrecognizedCount;
|
|
54
|
-
return {
|
|
55
|
-
count: () => {
|
|
56
|
-
const count = unrecognizedCount - start;
|
|
57
|
-
if (--refCount === 0)
|
|
58
|
-
unrecognizedCount = 0;
|
|
59
|
-
return count;
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
}
|
|
44
|
+
const unrecognized_js_1 = require("./unrecognized.js");
|
|
63
45
|
function inboundSchema(enumObj) {
|
|
64
46
|
const options = Object.values(enumObj);
|
|
65
47
|
return z.union([
|
|
66
48
|
...options.map(x => z.literal(x)),
|
|
67
|
-
z.string().transform(x => unrecognized(x)),
|
|
49
|
+
z.string().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
|
|
68
50
|
]);
|
|
69
51
|
}
|
|
70
52
|
function inboundSchemaInt(enumObj) {
|
|
@@ -72,7 +54,7 @@ function inboundSchemaInt(enumObj) {
|
|
|
72
54
|
const options = Object.values(enumObj).filter(v => typeof v === "number");
|
|
73
55
|
return z.union([
|
|
74
56
|
...options.map(x => z.literal(x)),
|
|
75
|
-
z.number().int().transform(x => unrecognized(x)),
|
|
57
|
+
z.number().int().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
|
|
76
58
|
]);
|
|
77
59
|
}
|
|
78
60
|
function outboundSchema(_) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWH,sCAQC;AAED,4CASC;AAED,wCAIC;AAED,8CAIC;AAxCD,0CAA4B;AAC5B,uDAA+D;AAQ/D,SAAgB,aAAa,CAC3B,OAAU;IAEV,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,8BAAY,EAAC,CAAC,CAAC,CAAC;KACpC,CAAC,CAAC;AACZ,CAAC;AAED,SAAgB,gBAAgB,CAC9B,OAAU;IAEV,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC1E,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,8BAAY,EAAC,CAAC,CAAC,CAAC;KAC1C,CAAC,CAAC;AACZ,CAAC;AAED,SAAgB,cAAc,CAC5B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAC3B,CAAC;AAED,SAAgB,iBAAiB,CAC/B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAS,CAAC;AACjC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
-
export type { ClosedEnum, OpenEnum
|
|
2
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
3
3
|
export type { Result } from "./fp.js";
|
|
4
4
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
5
5
|
export { createPageIterator } from "./operations.js";
|
|
6
6
|
export { RFCDate } from "./rfcdate.js";
|
|
7
|
+
export * from "./unrecognized.js";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
20
|
exports.RFCDate = exports.createPageIterator = exports.isBlobLike = exports.blobLikeSchema = void 0;
|
|
7
21
|
var blobs_js_1 = require("./blobs.js");
|
|
@@ -11,4 +25,5 @@ var operations_js_1 = require("./operations.js");
|
|
|
11
25
|
Object.defineProperty(exports, "createPageIterator", { enumerable: true, get: function () { return operations_js_1.createPageIterator; } });
|
|
12
26
|
var rfcdate_js_1 = require("./rfcdate.js");
|
|
13
27
|
Object.defineProperty(exports, "RFCDate", { enumerable: true, get: function () { return rfcdate_js_1.RFCDate; } });
|
|
28
|
+
__exportStar(require("./unrecognized.js"), exports);
|
|
14
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,uCAAwD;AAA/C,0GAAA,cAAc,OAAA;AAAE,sGAAA,UAAU,OAAA;AAInC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,oDAAkC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
export type Unrecognized<T> = T & {
|
|
3
|
+
[__brand]: "unrecognized";
|
|
4
|
+
};
|
|
5
|
+
declare function unrecognized<T>(value: T): Unrecognized<T>;
|
|
6
|
+
export declare function startCountingUnrecognized(): {
|
|
7
|
+
end: () => number;
|
|
8
|
+
};
|
|
9
|
+
export { unrecognized };
|
|
10
|
+
//# sourceMappingURL=unrecognized.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../../../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;;EAUxC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.startCountingUnrecognized = startCountingUnrecognized;
|
|
7
|
+
exports.unrecognized = unrecognized;
|
|
8
|
+
function unrecognized(value) {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
let globalCount = 0;
|
|
13
|
+
let refCount = 0;
|
|
14
|
+
function startCountingUnrecognized() {
|
|
15
|
+
refCount++;
|
|
16
|
+
const start = globalCount;
|
|
17
|
+
return {
|
|
18
|
+
end: () => {
|
|
19
|
+
const count = globalCount - start;
|
|
20
|
+
if (--refCount === 0)
|
|
21
|
+
globalCount = 0;
|
|
22
|
+
return count;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=unrecognized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../../../src/types/unrecognized.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,8DAUC;AAEQ,oCAAY;AAnBrB,SAAS,YAAY,CAAI,KAAQ;IAC/B,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,SAAgB,yBAAyB;IACvC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL,GAAG,EAAE,GAAG,EAAE;YACR,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.test.js","sourceRoot":"","sources":["../../../src/__tests__/messages.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,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AE,EAAE,MAAM;QACV,eAAe,EAAE,MAAM;QACvB,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.9.0";
|
|
38
|
-
readonly sdkVersion: "0.13.
|
|
39
|
-
readonly genVersion: "2.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
38
|
+
readonly sdkVersion: "0.13.12";
|
|
39
|
+
readonly genVersion: "2.760.2";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.12 2.760.2 0.9.0 @gleanwork/api-client";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ export function serverURLFromOptions(options) {
|
|
|
30
30
|
export const SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "0.9.0",
|
|
33
|
-
sdkVersion: "0.13.
|
|
34
|
-
genVersion: "2.
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
33
|
+
sdkVersion: "0.13.12",
|
|
34
|
+
genVersion: "2.760.2",
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.13.12 2.760.2 0.9.0 @gleanwork/api-client",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -6,24 +6,6 @@ import { InsightsChatSummary } from "./insightschatsummary.js";
|
|
|
6
6
|
import { InsightsSearchSummary } from "./insightssearchsummary.js";
|
|
7
7
|
import { LabeledCountInfo } from "./labeledcountinfo.js";
|
|
8
8
|
import { PerUserInsight } from "./peruserinsight.js";
|
|
9
|
-
export type EngagementBreakdown = {
|
|
10
|
-
/**
|
|
11
|
-
* Number of non-user employees in the specified departments.
|
|
12
|
-
*/
|
|
13
|
-
nonUsers?: number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Number of currently dormant users in the specified departments.
|
|
16
|
-
*/
|
|
17
|
-
dormantUsers?: number | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Number of currently regular users in the specified departments.
|
|
20
|
-
*/
|
|
21
|
-
regularUsers?: number | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Number of currently power users in the specified departments.
|
|
24
|
-
*/
|
|
25
|
-
powerUsers?: number | undefined;
|
|
26
|
-
};
|
|
27
9
|
export type InsightsOverviewResponse = {
|
|
28
10
|
/**
|
|
29
11
|
* Number of current Monthly Active Users, in the specified departments.
|
|
@@ -73,15 +55,11 @@ export type InsightsOverviewResponse = {
|
|
|
73
55
|
[k: string]: number;
|
|
74
56
|
} | undefined;
|
|
75
57
|
/**
|
|
76
|
-
*
|
|
58
|
+
* Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included.
|
|
77
59
|
*/
|
|
78
60
|
perUserInsights?: Array<PerUserInsight> | undefined;
|
|
79
|
-
engagementBreakdown?: EngagementBreakdown | undefined;
|
|
80
61
|
};
|
|
81
62
|
/** @internal */
|
|
82
|
-
export declare const EngagementBreakdown$inboundSchema: z.ZodType<EngagementBreakdown, z.ZodTypeDef, unknown>;
|
|
83
|
-
export declare function engagementBreakdownFromJSON(jsonString: string): SafeParseResult<EngagementBreakdown, SDKValidationError>;
|
|
84
|
-
/** @internal */
|
|
85
63
|
export declare const InsightsOverviewResponse$inboundSchema: z.ZodType<InsightsOverviewResponse, z.ZodTypeDef, unknown>;
|
|
86
64
|
export declare function insightsOverviewResponseFromJSON(jsonString: string): SafeParseResult<InsightsOverviewResponse, SDKValidationError>;
|
|
87
65
|
//# sourceMappingURL=insightsoverviewresponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoverviewresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"insightsoverviewresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,S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B,CAAC,CAM/D"}
|
|
@@ -9,16 +9,6 @@ import { InsightsSearchSummary$inboundSchema, } from "./insightssearchsummary.js
|
|
|
9
9
|
import { LabeledCountInfo$inboundSchema, } from "./labeledcountinfo.js";
|
|
10
10
|
import { PerUserInsight$inboundSchema, } from "./peruserinsight.js";
|
|
11
11
|
/** @internal */
|
|
12
|
-
export const EngagementBreakdown$inboundSchema = z.object({
|
|
13
|
-
nonUsers: z.number().int().optional(),
|
|
14
|
-
dormantUsers: z.number().int().optional(),
|
|
15
|
-
regularUsers: z.number().int().optional(),
|
|
16
|
-
powerUsers: z.number().int().optional(),
|
|
17
|
-
});
|
|
18
|
-
export function engagementBreakdownFromJSON(jsonString) {
|
|
19
|
-
return safeParse(jsonString, (x) => EngagementBreakdown$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EngagementBreakdown' from JSON`);
|
|
20
|
-
}
|
|
21
|
-
/** @internal */
|
|
22
12
|
export const InsightsOverviewResponse$inboundSchema = z.object({
|
|
23
13
|
monthlyActiveUsers: z.number().int().optional(),
|
|
24
14
|
weeklyActiveUsers: z.number().int().optional(),
|
|
@@ -37,8 +27,6 @@ export const InsightsOverviewResponse$inboundSchema = z.object({
|
|
|
37
27
|
searchDatasourceCounts: z.record(z.number().int()).optional(),
|
|
38
28
|
chatDatasourceCounts: z.record(z.number().int()).optional(),
|
|
39
29
|
perUserInsights: z.array(PerUserInsight$inboundSchema).optional(),
|
|
40
|
-
engagementBreakdown: z.lazy(() => EngagementBreakdown$inboundSchema)
|
|
41
|
-
.optional(),
|
|
42
30
|
});
|
|
43
31
|
export function insightsOverviewResponseFromJSON(jsonString) {
|
|
44
32
|
return safeParse(jsonString, (x) => InsightsOverviewResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InsightsOverviewResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoverviewresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,mCAAmC,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"insightsoverviewresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsoverviewresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,mCAAmC,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAoD7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,MA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
icon?: IconConfig | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the agent has been deleted
|
|
20
|
+
*/
|
|
21
|
+
isDeleted?: boolean | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* Total number of users for this agent over the specified time period.
|
|
20
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peragentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"peragentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -9,6 +9,7 @@ export const PerAgentInsight$inboundSchema = z.object({
|
|
|
9
9
|
agentId: z.string().optional(),
|
|
10
10
|
agentName: z.string().optional(),
|
|
11
11
|
icon: IconConfig$inboundSchema.optional(),
|
|
12
|
+
isDeleted: z.boolean().optional(),
|
|
12
13
|
userCount: z.number().int().optional(),
|
|
13
14
|
runCount: z.number().int().optional(),
|
|
14
15
|
upvoteCount: z.number().int().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peragentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAc,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"peragentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAc,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAqCvE,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,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"}
|
|
@@ -17,11 +17,11 @@ export type PerUserAssistantInsight = {
|
|
|
17
17
|
*/
|
|
18
18
|
numAiAnswers?: number | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Total number of Gleanbot
|
|
20
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
21
21
|
*/
|
|
22
22
|
numGleanbotInteractions?: number | undefined;
|
|
23
23
|
/**
|
|
24
|
-
* Total number of days this user was active over the specified time period.
|
|
24
|
+
* Total number of days this user was active on the Assistant over the specified time period.
|
|
25
25
|
*/
|
|
26
26
|
numDaysActive?: number | undefined;
|
|
27
27
|
};
|
|
@@ -12,6 +12,18 @@ export type PerUserInsight = {
|
|
|
12
12
|
* Total number of chats by this user over the specified time period.
|
|
13
13
|
*/
|
|
14
14
|
numChats?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of active sessions by this user in a Glean client over the specified time period.
|
|
17
|
+
*/
|
|
18
|
+
numActiveSessions?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
21
|
+
*/
|
|
22
|
+
numGleanbotUsefulResponses?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Total number of days this user was an Active User over the specified time period.
|
|
25
|
+
*/
|
|
26
|
+
numDaysActive?: number | undefined;
|
|
15
27
|
};
|
|
16
28
|
/** @internal */
|
|
17
29
|
export declare const PerUserInsight$inboundSchema: z.ZodType<PerUserInsight, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peruserinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAA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AAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -9,6 +9,9 @@ export const PerUserInsight$inboundSchema = z.object({
|
|
|
9
9
|
person: Person$inboundSchema.optional(),
|
|
10
10
|
numSearches: z.number().int().optional(),
|
|
11
11
|
numChats: z.number().int().optional(),
|
|
12
|
+
numActiveSessions: z.number().int().optional(),
|
|
13
|
+
numGleanbotUsefulResponses: z.number().int().optional(),
|
|
14
|
+
numDaysActive: z.number().int().optional(),
|
|
12
15
|
});
|
|
13
16
|
export function perUserInsightFromJSON(jsonString) {
|
|
14
17
|
return safeParse(jsonString, (x) => PerUserInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerUserInsight' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peruserinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAU,oBAAoB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"peruserinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAU,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA0B3D,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACvD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
|
|
3
|
-
export type Unrecognized<T> = T & {
|
|
4
|
-
[__brand]: "unrecognized";
|
|
5
|
-
};
|
|
2
|
+
import { Unrecognized } from "./unrecognized.js";
|
|
6
3
|
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
|
|
7
4
|
export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
8
|
-
export declare function unrecognizedCounter(): {
|
|
9
|
-
count: () => number;
|
|
10
|
-
};
|
|
11
5
|
export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
12
6
|
export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
13
7
|
export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodType<string, z.ZodTypeDef, OpenEnum<T>>;
|
|
14
8
|
export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodType<number, z.ZodTypeDef, OpenEnum<T>>;
|
|
15
|
-
export {};
|
|
16
9
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACb,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACpE,CAAC,CAAC,MAAM,CAAC,CAAC,GACV,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9D,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAM/C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxE,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAO/C;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7D,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACzE,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C"}
|
package/dist/esm/types/enums.js
CHANGED
|
@@ -2,24 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
|
-
|
|
6
|
-
unrecognizedCount++;
|
|
7
|
-
return value;
|
|
8
|
-
}
|
|
9
|
-
let unrecognizedCount = 0;
|
|
10
|
-
let refCount = 0;
|
|
11
|
-
export function unrecognizedCounter() {
|
|
12
|
-
refCount++;
|
|
13
|
-
const start = unrecognizedCount;
|
|
14
|
-
return {
|
|
15
|
-
count: () => {
|
|
16
|
-
const count = unrecognizedCount - start;
|
|
17
|
-
if (--refCount === 0)
|
|
18
|
-
unrecognizedCount = 0;
|
|
19
|
-
return count;
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
}
|
|
5
|
+
import { unrecognized } from "./unrecognized.js";
|
|
23
6
|
export function inboundSchema(enumObj) {
|
|
24
7
|
const options = Object.values(enumObj);
|
|
25
8
|
return z.union([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/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|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
-
export type { ClosedEnum, OpenEnum
|
|
2
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
3
3
|
export type { Result } from "./fp.js";
|
|
4
4
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
5
5
|
export { createPageIterator } from "./operations.js";
|
|
6
6
|
export { RFCDate } from "./rfcdate.js";
|
|
7
|
+
export * from "./unrecognized.js";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
export type Unrecognized<T> = T & {
|
|
3
|
+
[__brand]: "unrecognized";
|
|
4
|
+
};
|
|
5
|
+
declare function unrecognized<T>(value: T): Unrecognized<T>;
|
|
6
|
+
export declare function startCountingUnrecognized(): {
|
|
7
|
+
end: () => number;
|
|
8
|
+
};
|
|
9
|
+
export { unrecognized };
|
|
10
|
+
//# sourceMappingURL=unrecognized.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../../../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;;EAUxC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
function unrecognized(value) {
|
|
5
|
+
globalCount++;
|
|
6
|
+
return value;
|
|
7
|
+
}
|
|
8
|
+
let globalCount = 0;
|
|
9
|
+
let refCount = 0;
|
|
10
|
+
export function startCountingUnrecognized() {
|
|
11
|
+
refCount++;
|
|
12
|
+
const start = globalCount;
|
|
13
|
+
return {
|
|
14
|
+
end: () => {
|
|
15
|
+
const count = globalCount - start;
|
|
16
|
+
if (--refCount === 0)
|
|
17
|
+
globalCount = 0;
|
|
18
|
+
return count;
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export { unrecognized };
|
|
23
|
+
//# sourceMappingURL=unrecognized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../../../src/types/unrecognized.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,SAAS,YAAY,CAAI,KAAQ;IAC/B,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,MAAM,UAAU,yBAAyB;IACvC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL,GAAG,EAAE,GAAG,EAAE;YACR,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "0.9.0",
|
|
71
|
-
sdkVersion: "0.13.
|
|
72
|
-
genVersion: "2.
|
|
71
|
+
sdkVersion: "0.13.12",
|
|
72
|
+
genVersion: "2.760.2",
|
|
73
73
|
userAgent:
|
|
74
|
-
"speakeasy-sdk/typescript 0.13.
|
|
74
|
+
"speakeasy-sdk/typescript 0.13.12 2.760.2 0.9.0 @gleanwork/api-client",
|
|
75
75
|
} as const;
|
|
@@ -27,25 +27,6 @@ import {
|
|
|
27
27
|
PerUserInsight$inboundSchema,
|
|
28
28
|
} from "./peruserinsight.js";
|
|
29
29
|
|
|
30
|
-
export type EngagementBreakdown = {
|
|
31
|
-
/**
|
|
32
|
-
* Number of non-user employees in the specified departments.
|
|
33
|
-
*/
|
|
34
|
-
nonUsers?: number | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Number of currently dormant users in the specified departments.
|
|
37
|
-
*/
|
|
38
|
-
dormantUsers?: number | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Number of currently regular users in the specified departments.
|
|
41
|
-
*/
|
|
42
|
-
regularUsers?: number | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Number of currently power users in the specified departments.
|
|
45
|
-
*/
|
|
46
|
-
powerUsers?: number | undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
30
|
export type InsightsOverviewResponse = {
|
|
50
31
|
/**
|
|
51
32
|
* Number of current Monthly Active Users, in the specified departments.
|
|
@@ -91,34 +72,11 @@ export type InsightsOverviewResponse = {
|
|
|
91
72
|
*/
|
|
92
73
|
chatDatasourceCounts?: { [k: string]: number } | undefined;
|
|
93
74
|
/**
|
|
94
|
-
*
|
|
75
|
+
* Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included.
|
|
95
76
|
*/
|
|
96
77
|
perUserInsights?: Array<PerUserInsight> | undefined;
|
|
97
|
-
engagementBreakdown?: EngagementBreakdown | undefined;
|
|
98
78
|
};
|
|
99
79
|
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const EngagementBreakdown$inboundSchema: z.ZodType<
|
|
102
|
-
EngagementBreakdown,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
unknown
|
|
105
|
-
> = z.object({
|
|
106
|
-
nonUsers: z.number().int().optional(),
|
|
107
|
-
dormantUsers: z.number().int().optional(),
|
|
108
|
-
regularUsers: z.number().int().optional(),
|
|
109
|
-
powerUsers: z.number().int().optional(),
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
export function engagementBreakdownFromJSON(
|
|
113
|
-
jsonString: string,
|
|
114
|
-
): SafeParseResult<EngagementBreakdown, SDKValidationError> {
|
|
115
|
-
return safeParse(
|
|
116
|
-
jsonString,
|
|
117
|
-
(x) => EngagementBreakdown$inboundSchema.parse(JSON.parse(x)),
|
|
118
|
-
`Failed to parse 'EngagementBreakdown' from JSON`,
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
80
|
/** @internal */
|
|
123
81
|
export const InsightsOverviewResponse$inboundSchema: z.ZodType<
|
|
124
82
|
InsightsOverviewResponse,
|
|
@@ -142,8 +100,6 @@ export const InsightsOverviewResponse$inboundSchema: z.ZodType<
|
|
|
142
100
|
searchDatasourceCounts: z.record(z.number().int()).optional(),
|
|
143
101
|
chatDatasourceCounts: z.record(z.number().int()).optional(),
|
|
144
102
|
perUserInsights: z.array(PerUserInsight$inboundSchema).optional(),
|
|
145
|
-
engagementBreakdown: z.lazy(() => EngagementBreakdown$inboundSchema)
|
|
146
|
-
.optional(),
|
|
147
103
|
});
|
|
148
104
|
|
|
149
105
|
export function insightsOverviewResponseFromJSON(
|
|
@@ -21,6 +21,10 @@ export type PerAgentInsight = {
|
|
|
21
21
|
* Defines how to render an icon
|
|
22
22
|
*/
|
|
23
23
|
icon?: IconConfig | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether the agent has been deleted
|
|
26
|
+
*/
|
|
27
|
+
isDeleted?: boolean | undefined;
|
|
24
28
|
/**
|
|
25
29
|
* Total number of users for this agent over the specified time period.
|
|
26
30
|
*/
|
|
@@ -48,6 +52,7 @@ export const PerAgentInsight$inboundSchema: z.ZodType<
|
|
|
48
52
|
agentId: z.string().optional(),
|
|
49
53
|
agentName: z.string().optional(),
|
|
50
54
|
icon: IconConfig$inboundSchema.optional(),
|
|
55
|
+
isDeleted: z.boolean().optional(),
|
|
51
56
|
userCount: z.number().int().optional(),
|
|
52
57
|
runCount: z.number().int().optional(),
|
|
53
58
|
upvoteCount: z.number().int().optional(),
|
|
@@ -23,11 +23,11 @@ export type PerUserAssistantInsight = {
|
|
|
23
23
|
*/
|
|
24
24
|
numAiAnswers?: number | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* Total number of Gleanbot
|
|
26
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
27
27
|
*/
|
|
28
28
|
numGleanbotInteractions?: number | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* Total number of days this user was active over the specified time period.
|
|
30
|
+
* Total number of days this user was active on the Assistant over the specified time period.
|
|
31
31
|
*/
|
|
32
32
|
numDaysActive?: number | undefined;
|
|
33
33
|
};
|
|
@@ -18,6 +18,18 @@ export type PerUserInsight = {
|
|
|
18
18
|
* Total number of chats by this user over the specified time period.
|
|
19
19
|
*/
|
|
20
20
|
numChats?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Total number of active sessions by this user in a Glean client over the specified time period.
|
|
23
|
+
*/
|
|
24
|
+
numActiveSessions?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of Gleanbot responses marked useful by this user over the specified time period.
|
|
27
|
+
*/
|
|
28
|
+
numGleanbotUsefulResponses?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Total number of days this user was an Active User over the specified time period.
|
|
31
|
+
*/
|
|
32
|
+
numDaysActive?: number | undefined;
|
|
21
33
|
};
|
|
22
34
|
|
|
23
35
|
/** @internal */
|
|
@@ -29,6 +41,9 @@ export const PerUserInsight$inboundSchema: z.ZodType<
|
|
|
29
41
|
person: Person$inboundSchema.optional(),
|
|
30
42
|
numSearches: z.number().int().optional(),
|
|
31
43
|
numChats: z.number().int().optional(),
|
|
44
|
+
numActiveSessions: z.number().int().optional(),
|
|
45
|
+
numGleanbotUsefulResponses: z.number().int().optional(),
|
|
46
|
+
numDaysActive: z.number().int().optional(),
|
|
32
47
|
});
|
|
33
48
|
|
|
34
49
|
export function perUserInsightFromJSON(
|
package/src/types/enums.ts
CHANGED
|
@@ -3,34 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { Unrecognized, unrecognized } from "./unrecognized.js";
|
|
6
7
|
|
|
7
|
-
declare const __brand: unique symbol;
|
|
8
|
-
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
9
8
|
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> =
|
|
10
9
|
T[keyof T];
|
|
11
10
|
export type OpenEnum<T extends Readonly<Record<string, string | number>>> =
|
|
12
11
|
| T[keyof T]
|
|
13
12
|
| Unrecognized<T[keyof T] extends number ? number : string>;
|
|
14
13
|
|
|
15
|
-
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
16
|
-
unrecognizedCount++;
|
|
17
|
-
return value as Unrecognized<T>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let unrecognizedCount = 0;
|
|
21
|
-
let refCount = 0;
|
|
22
|
-
export function unrecognizedCounter() {
|
|
23
|
-
refCount++;
|
|
24
|
-
const start = unrecognizedCount;
|
|
25
|
-
return {
|
|
26
|
-
count: () => {
|
|
27
|
-
const count = unrecognizedCount - start;
|
|
28
|
-
if (--refCount === 0) unrecognizedCount = 0;
|
|
29
|
-
return count;
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
14
|
export function inboundSchema<T extends Record<string, string>>(
|
|
35
15
|
enumObj: T,
|
|
36
16
|
): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown> {
|
package/src/types/index.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
6
|
-
export type { ClosedEnum, OpenEnum
|
|
6
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
7
7
|
export type { Result } from "./fp.js";
|
|
8
8
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
9
9
|
export { createPageIterator } from "./operations.js";
|
|
10
10
|
export { RFCDate } from "./rfcdate.js";
|
|
11
|
+
export * from "./unrecognized.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare const __brand: unique symbol;
|
|
6
|
+
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
7
|
+
|
|
8
|
+
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value as Unrecognized<T>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let globalCount = 0;
|
|
14
|
+
let refCount = 0;
|
|
15
|
+
export function startCountingUnrecognized() {
|
|
16
|
+
refCount++;
|
|
17
|
+
const start = globalCount;
|
|
18
|
+
return {
|
|
19
|
+
end: () => {
|
|
20
|
+
const count = globalCount - start;
|
|
21
|
+
if (--refCount === 0) globalCount = 0;
|
|
22
|
+
return count;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { unrecognized };
|