@gleanwork/api-client 0.11.1 → 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/lib/config.js.map +1 -1
- 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/lib/config.js.map +1 -1
- 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
package/README.md
CHANGED
|
@@ -279,9 +279,6 @@ For more information on obtaining the appropriate token type, please contact you
|
|
|
279
279
|
<details open>
|
|
280
280
|
<summary>Available methods</summary>
|
|
281
281
|
|
|
282
|
-
### [client](docs/sdks/client/README.md)
|
|
283
|
-
|
|
284
|
-
|
|
285
282
|
#### [client.activity](docs/sdks/activity/README.md)
|
|
286
283
|
|
|
287
284
|
* [report](docs/sdks/activity/README.md#report) - Report document activity
|
|
@@ -411,10 +408,6 @@ For more information on obtaining the appropriate token type, please contact you
|
|
|
411
408
|
* [list](docs/sdks/verification/README.md#list) - List verifications
|
|
412
409
|
* [verify](docs/sdks/verification/README.md#verify) - Update verification
|
|
413
410
|
|
|
414
|
-
|
|
415
|
-
### [indexing](docs/sdks/indexing/README.md)
|
|
416
|
-
|
|
417
|
-
|
|
418
411
|
#### [indexing.authentication](docs/sdks/indexingauthentication/README.md)
|
|
419
412
|
|
|
420
413
|
* [rotateToken](docs/sdks/indexingauthentication/README.md#rotatetoken) - Rotate token
|
|
@@ -16,12 +16,10 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
16
16
|
const result = await glean.client.documents.summarize({
|
|
17
17
|
documentSpecs: [
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
contentId: 602763,
|
|
19
|
+
url: "https://dim-glider.com/",
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
|
-
|
|
24
|
-
contentId: 602763,
|
|
22
|
+
id: "<id>",
|
|
25
23
|
},
|
|
26
24
|
],
|
|
27
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarize.test.js","sourceRoot":"","sources":["../../../src/__tests__/summarize.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAAoC;AACpC,mDAAuD;AAEvD,IAAA,aAAI,EAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;IACrC,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,WAAW,CAAC,CAAC;IAEzD,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,SAAS,CAAC,SAAS,CAAC;QACpD,aAAa,EAAE;YACb;gBACE,
|
|
1
|
+
{"version":3,"file":"summarize.test.js","sourceRoot":"","sources":["../../../src/__tests__/summarize.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAAoC;AACpC,mDAAuD;AAEvD,IAAA,aAAI,EAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;IACrC,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,WAAW,CAAC,CAAC;IAEzD,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,SAAS,CAAC,SAAS,CAAC;QACpD,aAAa,EAAE;YACb;gBACE,GAAG,EAAE,yBAAyB;aAC/B;YACD;gBACE,EAAE,EAAE,MAAM;aACX;SACF;KACF,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.
|
|
39
|
-
readonly genVersion: "2.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
38
|
+
readonly sdkVersion: "0.12.0";
|
|
39
|
+
readonly genVersion: "2.722.5";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.0 2.722.5 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.
|
|
38
|
-
genVersion: "2.
|
|
39
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
37
|
+
sdkVersion: "0.12.0",
|
|
38
|
+
genVersion: "2.722.5",
|
|
39
|
+
userAgent: "speakeasy-sdk/typescript 0.12.0 2.722.5 0.9.0 @gleanwork/api-client",
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0CH,oDAqBC;AA1DD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,iCAAiC;CACzB,CAAC;AA8BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,YAAY,GAAa;QAC7B;YACE,UAAU,EAAE,OAAO,CAAC,QAAQ,IAAI,eAAe;SAChD;KACF,CAAC;IACF,IAAI,MAAM,GAAW,EAAE,CAAC;IAExB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACzC,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0CH,oDAqBC;AA1DD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,iCAAiC;CACzB,CAAC;AA8BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,YAAY,GAAa;QAC7B;YACE,UAAU,EAAE,OAAO,CAAC,QAAQ,IAAI,eAAe;SAChD;KACF,CAAC;IACF,IAAI,MAAM,GAAW,EAAE,CAAC;IAExB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACzC,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,qEAAqE;CAC/D,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AgentsUsageByDepartmentInsight, AgentsUsageByDepartmentInsight$Outbound } from "./agentsusagebydepartmentinsight.js";
|
|
5
|
+
import { AgentUsersInsight, AgentUsersInsight$Outbound } from "./agentusersinsight.js";
|
|
6
|
+
import { LabeledCountInfo, LabeledCountInfo$Outbound } from "./labeledcountinfo.js";
|
|
7
|
+
import { PerAgentInsight, PerAgentInsight$Outbound } from "./peragentinsight.js";
|
|
8
|
+
export type AgentsInsightsV2Response = {
|
|
9
|
+
/**
|
|
10
|
+
* Number of current Monthly Active Users, in the specified departments.
|
|
11
|
+
*/
|
|
12
|
+
monthlyActiveUsers?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Number of current Weekly Active Users, in the specified departments.
|
|
15
|
+
*/
|
|
16
|
+
weeklyActiveUsers?: number | undefined;
|
|
17
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
18
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
19
|
+
dailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Total number of shared agents.
|
|
22
|
+
*/
|
|
23
|
+
sharedAgentsCount?: number | undefined;
|
|
24
|
+
topAgentsInsights?: Array<PerAgentInsight> | undefined;
|
|
25
|
+
agentsUsageByDepartmentInsights?: Array<AgentsUsageByDepartmentInsight> | undefined;
|
|
26
|
+
agentUsersInsights?: Array<AgentUsersInsight> | undefined;
|
|
27
|
+
dailyAgentRunsTimeseries?: LabeledCountInfo | undefined;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const AgentsInsightsV2Response$inboundSchema: z.ZodType<AgentsInsightsV2Response, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type AgentsInsightsV2Response$Outbound = {
|
|
33
|
+
monthlyActiveUsers?: number | undefined;
|
|
34
|
+
weeklyActiveUsers?: number | undefined;
|
|
35
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
36
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
37
|
+
dailyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
38
|
+
sharedAgentsCount?: number | undefined;
|
|
39
|
+
topAgentsInsights?: Array<PerAgentInsight$Outbound> | undefined;
|
|
40
|
+
agentsUsageByDepartmentInsights?: Array<AgentsUsageByDepartmentInsight$Outbound> | undefined;
|
|
41
|
+
agentUsersInsights?: Array<AgentUsersInsight$Outbound> | undefined;
|
|
42
|
+
dailyAgentRunsTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const AgentsInsightsV2Response$outboundSchema: z.ZodType<AgentsInsightsV2Response$Outbound, z.ZodTypeDef, AgentsInsightsV2Response>;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace AgentsInsightsV2Response$ {
|
|
51
|
+
/** @deprecated use `AgentsInsightsV2Response$inboundSchema` instead. */
|
|
52
|
+
const inboundSchema: z.ZodType<AgentsInsightsV2Response, z.ZodTypeDef, unknown>;
|
|
53
|
+
/** @deprecated use `AgentsInsightsV2Response$outboundSchema` instead. */
|
|
54
|
+
const outboundSchema: z.ZodType<AgentsInsightsV2Response$Outbound, z.ZodTypeDef, AgentsInsightsV2Response>;
|
|
55
|
+
/** @deprecated use `AgentsInsightsV2Response$Outbound` instead. */
|
|
56
|
+
type Outbound = AgentsInsightsV2Response$Outbound;
|
|
57
|
+
}
|
|
58
|
+
export declare function agentsInsightsV2ResponseToJSON(agentsInsightsV2Response: AgentsInsightsV2Response): string;
|
|
59
|
+
export declare function agentsInsightsV2ResponseFromJSON(jsonString: string): SafeParseResult<AgentsInsightsV2Response, SDKValidationError>;
|
|
60
|
+
//# sourceMappingURL=agentsinsightsv2response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsinsightsv2response.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentsinsightsv2response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,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,2BAA2B,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3D,0BAA0B,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC1D,yBAAyB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACvD,+BAA+B,CAAC,EAC5B,KAAK,CAAC,8BAA8B,CAAC,GACrC,SAAS,CAAC;IACd,kBAAkB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC1D,wBAAwB,CAA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C,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AgentsInsightsV2Response$ = exports.AgentsInsightsV2Response$outboundSchema = exports.AgentsInsightsV2Response$inboundSchema = void 0;
|
|
40
|
+
exports.agentsInsightsV2ResponseToJSON = agentsInsightsV2ResponseToJSON;
|
|
41
|
+
exports.agentsInsightsV2ResponseFromJSON = agentsInsightsV2ResponseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const agentsusagebydepartmentinsight_js_1 = require("./agentsusagebydepartmentinsight.js");
|
|
45
|
+
const agentusersinsight_js_1 = require("./agentusersinsight.js");
|
|
46
|
+
const labeledcountinfo_js_1 = require("./labeledcountinfo.js");
|
|
47
|
+
const peragentinsight_js_1 = require("./peragentinsight.js");
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.AgentsInsightsV2Response$inboundSchema = z.object({
|
|
50
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
51
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
52
|
+
monthlyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$inboundSchema.optional(),
|
|
53
|
+
weeklyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$inboundSchema.optional(),
|
|
54
|
+
dailyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$inboundSchema.optional(),
|
|
55
|
+
sharedAgentsCount: z.number().int().optional(),
|
|
56
|
+
topAgentsInsights: z.array(peragentinsight_js_1.PerAgentInsight$inboundSchema).optional(),
|
|
57
|
+
agentsUsageByDepartmentInsights: z.array(agentsusagebydepartmentinsight_js_1.AgentsUsageByDepartmentInsight$inboundSchema).optional(),
|
|
58
|
+
agentUsersInsights: z.array(agentusersinsight_js_1.AgentUsersInsight$inboundSchema).optional(),
|
|
59
|
+
dailyAgentRunsTimeseries: labeledcountinfo_js_1.LabeledCountInfo$inboundSchema.optional(),
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.AgentsInsightsV2Response$outboundSchema = z.object({
|
|
63
|
+
monthlyActiveUsers: z.number().int().optional(),
|
|
64
|
+
weeklyActiveUsers: z.number().int().optional(),
|
|
65
|
+
monthlyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$outboundSchema.optional(),
|
|
66
|
+
weeklyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$outboundSchema.optional(),
|
|
67
|
+
dailyActiveUserTimeseries: labeledcountinfo_js_1.LabeledCountInfo$outboundSchema.optional(),
|
|
68
|
+
sharedAgentsCount: z.number().int().optional(),
|
|
69
|
+
topAgentsInsights: z.array(peragentinsight_js_1.PerAgentInsight$outboundSchema).optional(),
|
|
70
|
+
agentsUsageByDepartmentInsights: z.array(agentsusagebydepartmentinsight_js_1.AgentsUsageByDepartmentInsight$outboundSchema).optional(),
|
|
71
|
+
agentUsersInsights: z.array(agentusersinsight_js_1.AgentUsersInsight$outboundSchema).optional(),
|
|
72
|
+
dailyAgentRunsTimeseries: labeledcountinfo_js_1.LabeledCountInfo$outboundSchema.optional(),
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
var AgentsInsightsV2Response$;
|
|
79
|
+
(function (AgentsInsightsV2Response$) {
|
|
80
|
+
/** @deprecated use `AgentsInsightsV2Response$inboundSchema` instead. */
|
|
81
|
+
AgentsInsightsV2Response$.inboundSchema = exports.AgentsInsightsV2Response$inboundSchema;
|
|
82
|
+
/** @deprecated use `AgentsInsightsV2Response$outboundSchema` instead. */
|
|
83
|
+
AgentsInsightsV2Response$.outboundSchema = exports.AgentsInsightsV2Response$outboundSchema;
|
|
84
|
+
})(AgentsInsightsV2Response$ || (exports.AgentsInsightsV2Response$ = AgentsInsightsV2Response$ = {}));
|
|
85
|
+
function agentsInsightsV2ResponseToJSON(agentsInsightsV2Response) {
|
|
86
|
+
return JSON.stringify(exports.AgentsInsightsV2Response$outboundSchema.parse(agentsInsightsV2Response));
|
|
87
|
+
}
|
|
88
|
+
function agentsInsightsV2ResponseFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentsInsightsV2Response$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentsInsightsV2Response' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=agentsinsightsv2response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsinsightsv2response.js","sourceRoot":"","sources":["../../../../src/models/components/agentsinsightsv2response.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HH,wEAMC;AAED,4EAQC;AA1ID,uCAAyB;AACzB,qDAAiD;AAGjD,2FAK6C;AAC7C,iEAKgC;AAChC,+DAK+B;AAC/B,6DAK8B;AA0B9B,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,2BAA2B,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACtE,0BAA0B,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACrE,yBAAyB,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACpE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC,CAAC,QAAQ,EAAE;IACpE,+BAA+B,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,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AgentsUsageByDepartmentInsight = {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the department
|
|
7
|
+
*/
|
|
8
|
+
department?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Percentage of employees in the department who have used agents at least once over the specified time period.
|
|
11
|
+
*/
|
|
12
|
+
agentAdoptionRate?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Total number of users in this department who have used any agent over the specified time period.
|
|
15
|
+
*/
|
|
16
|
+
userCount?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Total number of runs in this department over the specified time period.
|
|
19
|
+
*/
|
|
20
|
+
runCount?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* ID of the agent to be shown in the agent column in this department over the specified time period.
|
|
23
|
+
*/
|
|
24
|
+
agentId?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the agent to be shown in the agent column in this department over the specified time period.
|
|
27
|
+
*/
|
|
28
|
+
agentName?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const AgentsUsageByDepartmentInsight$inboundSchema: z.ZodType<AgentsUsageByDepartmentInsight, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AgentsUsageByDepartmentInsight$Outbound = {
|
|
34
|
+
department?: string | undefined;
|
|
35
|
+
agentAdoptionRate?: number | undefined;
|
|
36
|
+
userCount?: number | undefined;
|
|
37
|
+
runCount?: number | undefined;
|
|
38
|
+
agentId?: string | undefined;
|
|
39
|
+
agentName?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const AgentsUsageByDepartmentInsight$outboundSchema: z.ZodType<AgentsUsageByDepartmentInsight$Outbound, z.ZodTypeDef, AgentsUsageByDepartmentInsight>;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export declare namespace AgentsUsageByDepartmentInsight$ {
|
|
48
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$inboundSchema` instead. */
|
|
49
|
+
const inboundSchema: z.ZodType<AgentsUsageByDepartmentInsight, z.ZodTypeDef, unknown>;
|
|
50
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$outboundSchema` instead. */
|
|
51
|
+
const outboundSchema: z.ZodType<AgentsUsageByDepartmentInsight$Outbound, z.ZodTypeDef, AgentsUsageByDepartmentInsight>;
|
|
52
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$Outbound` instead. */
|
|
53
|
+
type Outbound = AgentsUsageByDepartmentInsight$Outbound;
|
|
54
|
+
}
|
|
55
|
+
export declare function agentsUsageByDepartmentInsightToJSON(agentsUsageByDepartmentInsight: AgentsUsageByDepartmentInsight): string;
|
|
56
|
+
export declare function agentsUsageByDepartmentInsightFromJSON(jsonString: string): SafeParseResult<AgentsUsageByDepartmentInsight, SDKValidationError>;
|
|
57
|
+
//# sourceMappingURL=agentsusagebydepartmentinsight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsusagebydepartmentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentsusagebydepartmentinsight.ts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,+BAA+B,CAAC;IAC/C,8EAA8E;IACvE,MAAM,aAAa,kEAA+C,CAAC;IAC1E,+EAA+E;IACxE,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE;AAED,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AgentsUsageByDepartmentInsight$ = exports.AgentsUsageByDepartmentInsight$outboundSchema = exports.AgentsUsageByDepartmentInsight$inboundSchema = void 0;
|
|
40
|
+
exports.agentsUsageByDepartmentInsightToJSON = agentsUsageByDepartmentInsightToJSON;
|
|
41
|
+
exports.agentsUsageByDepartmentInsightFromJSON = agentsUsageByDepartmentInsightFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.AgentsUsageByDepartmentInsight$inboundSchema = z.object({
|
|
46
|
+
department: z.string().optional(),
|
|
47
|
+
agentAdoptionRate: z.number().optional(),
|
|
48
|
+
userCount: z.number().int().optional(),
|
|
49
|
+
runCount: z.number().int().optional(),
|
|
50
|
+
agentId: z.string().optional(),
|
|
51
|
+
agentName: z.string().optional(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.AgentsUsageByDepartmentInsight$outboundSchema = z.object({
|
|
55
|
+
department: z.string().optional(),
|
|
56
|
+
agentAdoptionRate: z.number().optional(),
|
|
57
|
+
userCount: z.number().int().optional(),
|
|
58
|
+
runCount: z.number().int().optional(),
|
|
59
|
+
agentId: z.string().optional(),
|
|
60
|
+
agentName: z.string().optional(),
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var AgentsUsageByDepartmentInsight$;
|
|
67
|
+
(function (AgentsUsageByDepartmentInsight$) {
|
|
68
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$inboundSchema` instead. */
|
|
69
|
+
AgentsUsageByDepartmentInsight$.inboundSchema = exports.AgentsUsageByDepartmentInsight$inboundSchema;
|
|
70
|
+
/** @deprecated use `AgentsUsageByDepartmentInsight$outboundSchema` instead. */
|
|
71
|
+
AgentsUsageByDepartmentInsight$.outboundSchema = exports.AgentsUsageByDepartmentInsight$outboundSchema;
|
|
72
|
+
})(AgentsUsageByDepartmentInsight$ || (exports.AgentsUsageByDepartmentInsight$ = AgentsUsageByDepartmentInsight$ = {}));
|
|
73
|
+
function agentsUsageByDepartmentInsightToJSON(agentsUsageByDepartmentInsight) {
|
|
74
|
+
return JSON.stringify(exports.AgentsUsageByDepartmentInsight$outboundSchema.parse(agentsUsageByDepartmentInsight));
|
|
75
|
+
}
|
|
76
|
+
function agentsUsageByDepartmentInsightFromJSON(jsonString) {
|
|
77
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentsUsageByDepartmentInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentsUsageByDepartmentInsight' from JSON`);
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=agentsusagebydepartmentinsight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsusagebydepartmentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/agentsusagebydepartmentinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFH,oFAQC;AAED,wFAQC;AArGD,uCAAyB;AACzB,qDAAiD;AA+BjD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM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C;AAED,SAAgB,sCAAsC,CACpD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oDAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Person, Person$Outbound } from "./person.js";
|
|
5
|
+
export type AgentUsersInsight = {
|
|
6
|
+
person?: Person | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Department name
|
|
9
|
+
*/
|
|
10
|
+
departmentName?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Total number of agents used by this user over the specified time period.
|
|
13
|
+
*/
|
|
14
|
+
agentsUsedCount?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Average number of runs per day for this user over the specified time period.
|
|
17
|
+
*/
|
|
18
|
+
averageRunsPerDayCount?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of agents created by this user over the specified time period.
|
|
21
|
+
*/
|
|
22
|
+
agentsCreatedCount?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Total number of agent runs for this user over the specified time period.
|
|
25
|
+
*/
|
|
26
|
+
runCount?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const AgentUsersInsight$inboundSchema: z.ZodType<AgentUsersInsight, z.ZodTypeDef, unknown>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type AgentUsersInsight$Outbound = {
|
|
32
|
+
person?: Person$Outbound | undefined;
|
|
33
|
+
departmentName?: string | undefined;
|
|
34
|
+
agentsUsedCount?: number | undefined;
|
|
35
|
+
averageRunsPerDayCount?: number | undefined;
|
|
36
|
+
agentsCreatedCount?: number | undefined;
|
|
37
|
+
runCount?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const AgentUsersInsight$outboundSchema: z.ZodType<AgentUsersInsight$Outbound, z.ZodTypeDef, AgentUsersInsight>;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export declare namespace AgentUsersInsight$ {
|
|
46
|
+
/** @deprecated use `AgentUsersInsight$inboundSchema` instead. */
|
|
47
|
+
const inboundSchema: z.ZodType<AgentUsersInsight, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @deprecated use `AgentUsersInsight$outboundSchema` instead. */
|
|
49
|
+
const outboundSchema: z.ZodType<AgentUsersInsight$Outbound, z.ZodTypeDef, AgentUsersInsight>;
|
|
50
|
+
/** @deprecated use `AgentUsersInsight$Outbound` instead. */
|
|
51
|
+
type Outbound = AgentUsersInsight$Outbound;
|
|
52
|
+
}
|
|
53
|
+
export declare function agentUsersInsightToJSON(agentUsersInsight: AgentUsersInsight): string;
|
|
54
|
+
export declare function agentUsersInsightFromJSON(jsonString: string): SafeParseResult<AgentUsersInsight, SDKValidationError>;
|
|
55
|
+
//# sourceMappingURL=agentusersinsight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentusersinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentusersinsight.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,G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BAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AgentUsersInsight$ = exports.AgentUsersInsight$outboundSchema = exports.AgentUsersInsight$inboundSchema = void 0;
|
|
40
|
+
exports.agentUsersInsightToJSON = agentUsersInsightToJSON;
|
|
41
|
+
exports.agentUsersInsightFromJSON = agentUsersInsightFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const person_js_1 = require("./person.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.AgentUsersInsight$inboundSchema = z.object({
|
|
47
|
+
person: person_js_1.Person$inboundSchema.optional(),
|
|
48
|
+
departmentName: z.string().optional(),
|
|
49
|
+
agentsUsedCount: z.number().int().optional(),
|
|
50
|
+
averageRunsPerDayCount: z.number().optional(),
|
|
51
|
+
agentsCreatedCount: z.number().int().optional(),
|
|
52
|
+
runCount: z.number().int().optional(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.AgentUsersInsight$outboundSchema = z.object({
|
|
56
|
+
person: person_js_1.Person$outboundSchema.optional(),
|
|
57
|
+
departmentName: z.string().optional(),
|
|
58
|
+
agentsUsedCount: z.number().int().optional(),
|
|
59
|
+
averageRunsPerDayCount: z.number().optional(),
|
|
60
|
+
agentsCreatedCount: z.number().int().optional(),
|
|
61
|
+
runCount: z.number().int().optional(),
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
var AgentUsersInsight$;
|
|
68
|
+
(function (AgentUsersInsight$) {
|
|
69
|
+
/** @deprecated use `AgentUsersInsight$inboundSchema` instead. */
|
|
70
|
+
AgentUsersInsight$.inboundSchema = exports.AgentUsersInsight$inboundSchema;
|
|
71
|
+
/** @deprecated use `AgentUsersInsight$outboundSchema` instead. */
|
|
72
|
+
AgentUsersInsight$.outboundSchema = exports.AgentUsersInsight$outboundSchema;
|
|
73
|
+
})(AgentUsersInsight$ || (exports.AgentUsersInsight$ = AgentUsersInsight$ = {}));
|
|
74
|
+
function agentUsersInsightToJSON(agentUsersInsight) {
|
|
75
|
+
return JSON.stringify(exports.AgentUsersInsight$outboundSchema.parse(agentUsersInsight));
|
|
76
|
+
}
|
|
77
|
+
function agentUsersInsightFromJSON(jsonString) {
|
|
78
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentUsersInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentUsersInsight' from JSON`);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=agentusersinsight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentusersinsight.js","sourceRoot":"","sources":["../../../../src/models/components/agentusersinsight.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,0DAMC;AAED,8DAQC;AAtGD,uCAAyB;AACzB,qDAAiD;AAGjD,2CAKqB;AA0BrB,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,iCAAqB,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { LabeledCountInfo, LabeledCountInfo$Outbound } from "./labeledcountinfo.js";
|
|
5
|
+
import { PerUserAssistantInsight, PerUserAssistantInsight$Outbound } from "./peruserassistantinsight.js";
|
|
6
|
+
export type AssistantInsightsResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* Number of current Monthly Active Users, in the specified departments.
|
|
9
|
+
*/
|
|
10
|
+
monthlyActiveUsers?: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Number of current Weekly Active Users, in the specified departments.
|
|
13
|
+
*/
|
|
14
|
+
weeklyActiveUsers?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Unix timestamp of the last update for the insights data in the response.
|
|
17
|
+
*/
|
|
18
|
+
lastUpdatedTs?: number | undefined;
|
|
19
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
20
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
21
|
+
dailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Number of current signed up employees in the specified departments, according to the Org Chart.
|
|
24
|
+
*/
|
|
25
|
+
totalSignups?: number | undefined;
|
|
26
|
+
chatMessagesTimeseries?: LabeledCountInfo | undefined;
|
|
27
|
+
summarizationsTimeseries?: LabeledCountInfo | undefined;
|
|
28
|
+
aiAnswersTimeseries?: LabeledCountInfo | undefined;
|
|
29
|
+
gleanbotInteractionsTimeseries?: LabeledCountInfo | undefined;
|
|
30
|
+
perUserInsights?: Array<PerUserAssistantInsight> | undefined;
|
|
31
|
+
upvotesTimeseries?: LabeledCountInfo | undefined;
|
|
32
|
+
downvotesTimeseries?: LabeledCountInfo | undefined;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const AssistantInsightsResponse$inboundSchema: z.ZodType<AssistantInsightsResponse, z.ZodTypeDef, unknown>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type AssistantInsightsResponse$Outbound = {
|
|
38
|
+
monthlyActiveUsers?: number | undefined;
|
|
39
|
+
weeklyActiveUsers?: number | undefined;
|
|
40
|
+
lastUpdatedTs?: number | undefined;
|
|
41
|
+
monthlyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
42
|
+
weeklyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
43
|
+
dailyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
44
|
+
totalSignups?: number | undefined;
|
|
45
|
+
chatMessagesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
46
|
+
summarizationsTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
47
|
+
aiAnswersTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
48
|
+
gleanbotInteractionsTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
49
|
+
perUserInsights?: Array<PerUserAssistantInsight$Outbound> | undefined;
|
|
50
|
+
upvotesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
51
|
+
downvotesTimeseries?: LabeledCountInfo$Outbound | undefined;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const AssistantInsightsResponse$outboundSchema: z.ZodType<AssistantInsightsResponse$Outbound, z.ZodTypeDef, AssistantInsightsResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export declare namespace AssistantInsightsResponse$ {
|
|
60
|
+
/** @deprecated use `AssistantInsightsResponse$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodType<AssistantInsightsResponse, z.ZodTypeDef, unknown>;
|
|
62
|
+
/** @deprecated use `AssistantInsightsResponse$outboundSchema` instead. */
|
|
63
|
+
const outboundSchema: z.ZodType<AssistantInsightsResponse$Outbound, z.ZodTypeDef, AssistantInsightsResponse>;
|
|
64
|
+
/** @deprecated use `AssistantInsightsResponse$Outbound` instead. */
|
|
65
|
+
type Outbound = AssistantInsightsResponse$Outbound;
|
|
66
|
+
}
|
|
67
|
+
export declare function assistantInsightsResponseToJSON(assistantInsightsResponse: AssistantInsightsResponse): string;
|
|
68
|
+
export declare function assistantInsightsResponseFromJSON(jsonString: string): SafeParseResult<AssistantInsightsResponse, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=assistantinsightsresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistantinsightsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/assistantinsightsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,2BAA2B,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3D,0BAA0B,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC1D,yBAAyB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sBAAsB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACtD,wBAAwB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACxD,mBAAmB,CAAC,EAAE,gBAAg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