@gleanwork/api-client 0.11.2 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +0 -7
  2. package/dist/commonjs/__tests__/summarize.test.js +2 -4
  3. package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/models/components/agentsinsightsv2response.d.ts +60 -0
  7. package/dist/commonjs/models/components/agentsinsightsv2response.d.ts.map +1 -0
  8. package/dist/commonjs/models/components/agentsinsightsv2response.js +91 -0
  9. package/dist/commonjs/models/components/agentsinsightsv2response.js.map +1 -0
  10. package/dist/commonjs/models/components/agentsusagebydepartmentinsight.d.ts +57 -0
  11. package/dist/commonjs/models/components/agentsusagebydepartmentinsight.d.ts.map +1 -0
  12. package/dist/commonjs/models/components/agentsusagebydepartmentinsight.js +79 -0
  13. package/dist/commonjs/models/components/agentsusagebydepartmentinsight.js.map +1 -0
  14. package/dist/commonjs/models/components/agentusersinsight.d.ts +55 -0
  15. package/dist/commonjs/models/components/agentusersinsight.d.ts.map +1 -0
  16. package/dist/commonjs/models/components/agentusersinsight.js +80 -0
  17. package/dist/commonjs/models/components/agentusersinsight.js.map +1 -0
  18. package/dist/commonjs/models/components/assistantinsightsresponse.d.ts +69 -0
  19. package/dist/commonjs/models/components/assistantinsightsresponse.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/assistantinsightsresponse.js +97 -0
  21. package/dist/commonjs/models/components/assistantinsightsresponse.js.map +1 -0
  22. package/dist/commonjs/models/components/currentactiveusers.d.ts +37 -0
  23. package/dist/commonjs/models/components/currentactiveusers.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/currentactiveusers.js +71 -0
  25. package/dist/commonjs/models/components/currentactiveusers.js.map +1 -0
  26. package/dist/commonjs/models/components/feedrequest.d.ts +3 -0
  27. package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/feedrequest.js +1 -0
  29. package/dist/commonjs/models/components/feedrequest.js.map +1 -1
  30. package/dist/commonjs/models/components/feedresult.d.ts +3 -0
  31. package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/feedresult.js +1 -0
  33. package/dist/commonjs/models/components/feedresult.js.map +1 -1
  34. package/dist/commonjs/models/components/index.d.ts +11 -0
  35. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/index.js +11 -0
  37. package/dist/commonjs/models/components/index.js.map +1 -1
  38. package/dist/commonjs/models/components/insightschatsummary.d.ts +47 -0
  39. package/dist/commonjs/models/components/insightschatsummary.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/insightschatsummary.js +75 -0
  41. package/dist/commonjs/models/components/insightschatsummary.js.map +1 -0
  42. package/dist/commonjs/models/components/insightsoverviewresponse.d.ts +149 -0
  43. package/dist/commonjs/models/components/insightsoverviewresponse.d.ts.map +1 -0
  44. package/dist/commonjs/models/components/insightsoverviewresponse.js +143 -0
  45. package/dist/commonjs/models/components/insightsoverviewresponse.js.map +1 -0
  46. package/dist/commonjs/models/components/insightsresponse.d.ts +13 -0
  47. package/dist/commonjs/models/components/insightsresponse.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/insightsresponse.js +9 -0
  49. package/dist/commonjs/models/components/insightsresponse.js.map +1 -1
  50. package/dist/commonjs/models/components/insightssearchsummary.d.ts +47 -0
  51. package/dist/commonjs/models/components/insightssearchsummary.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/insightssearchsummary.js +75 -0
  53. package/dist/commonjs/models/components/insightssearchsummary.js.map +1 -0
  54. package/dist/commonjs/models/components/peragentinsight.d.ts +47 -0
  55. package/dist/commonjs/models/components/peragentinsight.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/peragentinsight.js +75 -0
  57. package/dist/commonjs/models/components/peragentinsight.js.map +1 -0
  58. package/dist/commonjs/models/components/peruserassistantinsight.d.ts +55 -0
  59. package/dist/commonjs/models/components/peruserassistantinsight.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/peruserassistantinsight.js +80 -0
  61. package/dist/commonjs/models/components/peruserassistantinsight.js.map +1 -0
  62. package/dist/commonjs/models/components/peruserinsight.d.ts +40 -0
  63. package/dist/commonjs/models/components/peruserinsight.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/peruserinsight.js +74 -0
  65. package/dist/commonjs/models/components/peruserinsight.js.map +1 -0
  66. package/dist/esm/__tests__/summarize.test.js +2 -4
  67. package/dist/esm/__tests__/summarize.test.js.map +1 -1
  68. package/dist/esm/lib/config.d.ts +3 -3
  69. package/dist/esm/lib/config.js +3 -3
  70. package/dist/esm/models/components/agentsinsightsv2response.d.ts +60 -0
  71. package/dist/esm/models/components/agentsinsightsv2response.d.ts.map +1 -0
  72. package/dist/esm/models/components/agentsinsightsv2response.js +53 -0
  73. package/dist/esm/models/components/agentsinsightsv2response.js.map +1 -0
  74. package/dist/esm/models/components/agentsusagebydepartmentinsight.d.ts +57 -0
  75. package/dist/esm/models/components/agentsusagebydepartmentinsight.d.ts.map +1 -0
  76. package/dist/esm/models/components/agentsusagebydepartmentinsight.js +41 -0
  77. package/dist/esm/models/components/agentsusagebydepartmentinsight.js.map +1 -0
  78. package/dist/esm/models/components/agentusersinsight.d.ts +55 -0
  79. package/dist/esm/models/components/agentusersinsight.d.ts.map +1 -0
  80. package/dist/esm/models/components/agentusersinsight.js +42 -0
  81. package/dist/esm/models/components/agentusersinsight.js.map +1 -0
  82. package/dist/esm/models/components/assistantinsightsresponse.d.ts +69 -0
  83. package/dist/esm/models/components/assistantinsightsresponse.d.ts.map +1 -0
  84. package/dist/esm/models/components/assistantinsightsresponse.js +59 -0
  85. package/dist/esm/models/components/assistantinsightsresponse.js.map +1 -0
  86. package/dist/esm/models/components/currentactiveusers.d.ts +37 -0
  87. package/dist/esm/models/components/currentactiveusers.d.ts.map +1 -0
  88. package/dist/esm/models/components/currentactiveusers.js +33 -0
  89. package/dist/esm/models/components/currentactiveusers.js.map +1 -0
  90. package/dist/esm/models/components/feedrequest.d.ts +3 -0
  91. package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
  92. package/dist/esm/models/components/feedrequest.js +1 -0
  93. package/dist/esm/models/components/feedrequest.js.map +1 -1
  94. package/dist/esm/models/components/feedresult.d.ts +3 -0
  95. package/dist/esm/models/components/feedresult.d.ts.map +1 -1
  96. package/dist/esm/models/components/feedresult.js +1 -0
  97. package/dist/esm/models/components/feedresult.js.map +1 -1
  98. package/dist/esm/models/components/index.d.ts +11 -0
  99. package/dist/esm/models/components/index.d.ts.map +1 -1
  100. package/dist/esm/models/components/index.js +11 -0
  101. package/dist/esm/models/components/index.js.map +1 -1
  102. package/dist/esm/models/components/insightschatsummary.d.ts +47 -0
  103. package/dist/esm/models/components/insightschatsummary.d.ts.map +1 -0
  104. package/dist/esm/models/components/insightschatsummary.js +37 -0
  105. package/dist/esm/models/components/insightschatsummary.js.map +1 -0
  106. package/dist/esm/models/components/insightsoverviewresponse.d.ts +149 -0
  107. package/dist/esm/models/components/insightsoverviewresponse.d.ts.map +1 -0
  108. package/dist/esm/models/components/insightsoverviewresponse.js +103 -0
  109. package/dist/esm/models/components/insightsoverviewresponse.js.map +1 -0
  110. package/dist/esm/models/components/insightsresponse.d.ts +13 -0
  111. package/dist/esm/models/components/insightsresponse.d.ts.map +1 -1
  112. package/dist/esm/models/components/insightsresponse.js +9 -0
  113. package/dist/esm/models/components/insightsresponse.js.map +1 -1
  114. package/dist/esm/models/components/insightssearchsummary.d.ts +47 -0
  115. package/dist/esm/models/components/insightssearchsummary.d.ts.map +1 -0
  116. package/dist/esm/models/components/insightssearchsummary.js +37 -0
  117. package/dist/esm/models/components/insightssearchsummary.js.map +1 -0
  118. package/dist/esm/models/components/peragentinsight.d.ts +47 -0
  119. package/dist/esm/models/components/peragentinsight.d.ts.map +1 -0
  120. package/dist/esm/models/components/peragentinsight.js +37 -0
  121. package/dist/esm/models/components/peragentinsight.js.map +1 -0
  122. package/dist/esm/models/components/peruserassistantinsight.d.ts +55 -0
  123. package/dist/esm/models/components/peruserassistantinsight.d.ts.map +1 -0
  124. package/dist/esm/models/components/peruserassistantinsight.js +42 -0
  125. package/dist/esm/models/components/peruserassistantinsight.js.map +1 -0
  126. package/dist/esm/models/components/peruserinsight.d.ts +40 -0
  127. package/dist/esm/models/components/peruserinsight.d.ts.map +1 -0
  128. package/dist/esm/models/components/peruserinsight.js +36 -0
  129. package/dist/esm/models/components/peruserinsight.js.map +1 -0
  130. package/examples/package-lock.json +1 -1
  131. package/jsr.json +1 -1
  132. package/package.json +1 -1
  133. package/src/__tests__/summarize.test.ts +2 -4
  134. package/src/lib/config.ts +3 -3
  135. package/src/models/components/agentsinsightsv2response.ts +143 -0
  136. package/src/models/components/agentsusagebydepartmentinsight.ts +106 -0
  137. package/src/models/components/agentusersinsight.ts +107 -0
  138. package/src/models/components/assistantinsightsresponse.ts +142 -0
  139. package/src/models/components/currentactiveusers.ts +76 -0
  140. package/src/models/components/feedrequest.ts +1 -0
  141. package/src/models/components/feedresult.ts +1 -0
  142. package/src/models/components/index.ts +11 -0
  143. package/src/models/components/insightschatsummary.ts +90 -0
  144. package/src/models/components/insightsoverviewresponse.ts +278 -0
  145. package/src/models/components/insightsresponse.ts +34 -0
  146. package/src/models/components/insightssearchsummary.ts +90 -0
  147. package/src/models/components/peragentinsight.ts +88 -0
  148. package/src/models/components/peruserassistantinsight.ts +107 -0
  149. package/src/models/components/peruserinsight.ts +82 -0
  150. package/docs/sdks/client/README.md +0 -6
  151. package/docs/sdks/glean/README.md +0 -23
  152. package/docs/sdks/indexing/README.md +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"insightsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EA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,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"insightsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/insightsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,gCAAgC,EAEhC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,uCAAuC,EAEvC,wCAAwC,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,mCAAmC,EAEnC,oCAAoC,GACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AA+BnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8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alidationerror.js";
4
+ export type InsightsSearchSummary = {
5
+ /**
6
+ * Number of current Monthly Active Users, in the specified departments.
7
+ */
8
+ monthlyActiveUsers?: number | undefined;
9
+ /**
10
+ * Number of current Weekly Active Users, in the specified departments.
11
+ */
12
+ weeklyActiveUsers?: number | undefined;
13
+ /**
14
+ * Total number of searches by users over the specified time period.
15
+ */
16
+ numSearches?: number | undefined;
17
+ /**
18
+ * Total number of distinct users who searched over the specified time period.
19
+ */
20
+ numSearchUsers?: number | undefined;
21
+ };
22
+ /** @internal */
23
+ export declare const InsightsSearchSummary$inboundSchema: z.ZodType<InsightsSearchSummary, z.ZodTypeDef, unknown>;
24
+ /** @internal */
25
+ export type InsightsSearchSummary$Outbound = {
26
+ monthlyActiveUsers?: number | undefined;
27
+ weeklyActiveUsers?: number | undefined;
28
+ numSearches?: number | undefined;
29
+ numSearchUsers?: number | undefined;
30
+ };
31
+ /** @internal */
32
+ export declare const InsightsSearchSummary$outboundSchema: z.ZodType<InsightsSearchSummary$Outbound, z.ZodTypeDef, InsightsSearchSummary>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace InsightsSearchSummary$ {
38
+ /** @deprecated use `InsightsSearchSummary$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodType<InsightsSearchSummary, z.ZodTypeDef, unknown>;
40
+ /** @deprecated use `InsightsSearchSummary$outboundSchema` instead. */
41
+ const outboundSchema: z.ZodType<InsightsSearchSummary$Outbound, z.ZodTypeDef, InsightsSearchSummary>;
42
+ /** @deprecated use `InsightsSearchSummary$Outbound` instead. */
43
+ type Outbound = InsightsSearchSummary$Outbound;
44
+ }
45
+ export declare function insightsSearchSummaryToJSON(insightsSearchSummary: InsightsSearchSummary): string;
46
+ export declare function insightsSearchSummaryFromJSON(jsonString: string): SafeParseResult<InsightsSearchSummary, SDKValidationError>;
47
+ //# sourceMappingURL=insightssearchsummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightssearchsummary.d.ts","sourceRoot":"","sources":["../../../../src/models/components/insightssearchsummary.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;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;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,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAMrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ /** @internal */
7
+ export const InsightsSearchSummary$inboundSchema = z.object({
8
+ monthlyActiveUsers: z.number().int().optional(),
9
+ weeklyActiveUsers: z.number().int().optional(),
10
+ numSearches: z.number().int().optional(),
11
+ numSearchUsers: z.number().int().optional(),
12
+ });
13
+ /** @internal */
14
+ export const InsightsSearchSummary$outboundSchema = z.object({
15
+ monthlyActiveUsers: z.number().int().optional(),
16
+ weeklyActiveUsers: z.number().int().optional(),
17
+ numSearches: z.number().int().optional(),
18
+ numSearchUsers: z.number().int().optional(),
19
+ });
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export var InsightsSearchSummary$;
25
+ (function (InsightsSearchSummary$) {
26
+ /** @deprecated use `InsightsSearchSummary$inboundSchema` instead. */
27
+ InsightsSearchSummary$.inboundSchema = InsightsSearchSummary$inboundSchema;
28
+ /** @deprecated use `InsightsSearchSummary$outboundSchema` instead. */
29
+ InsightsSearchSummary$.outboundSchema = InsightsSearchSummary$outboundSchema;
30
+ })(InsightsSearchSummary$ || (InsightsSearchSummary$ = {}));
31
+ export function insightsSearchSummaryToJSON(insightsSearchSummary) {
32
+ return JSON.stringify(InsightsSearchSummary$outboundSchema.parse(insightsSearchSummary));
33
+ }
34
+ export function insightsSearchSummaryFromJSON(jsonString) {
35
+ return safeParse(jsonString, (x) => InsightsSearchSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InsightsSearchSummary' from JSON`);
36
+ }
37
+ //# sourceMappingURL=insightssearchsummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightssearchsummary.js","sourceRoot":"","sources":["../../../../src/models/components/insightssearchsummary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAuBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,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,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,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,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,47 @@
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 PerAgentInsight = {
5
+ /**
6
+ * Agent ID
7
+ */
8
+ agentId?: string | undefined;
9
+ /**
10
+ * Agent name
11
+ */
12
+ agentName?: string | undefined;
13
+ /**
14
+ * Total number of users for this agent over the specified time period.
15
+ */
16
+ userCount?: number | undefined;
17
+ /**
18
+ * Total number of runs for this agent over the specified time period.
19
+ */
20
+ runCount?: number | undefined;
21
+ };
22
+ /** @internal */
23
+ export declare const PerAgentInsight$inboundSchema: z.ZodType<PerAgentInsight, z.ZodTypeDef, unknown>;
24
+ /** @internal */
25
+ export type PerAgentInsight$Outbound = {
26
+ agentId?: string | undefined;
27
+ agentName?: string | undefined;
28
+ userCount?: number | undefined;
29
+ runCount?: number | undefined;
30
+ };
31
+ /** @internal */
32
+ export declare const PerAgentInsight$outboundSchema: z.ZodType<PerAgentInsight$Outbound, z.ZodTypeDef, PerAgentInsight>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace PerAgentInsight$ {
38
+ /** @deprecated use `PerAgentInsight$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodType<PerAgentInsight, z.ZodTypeDef, unknown>;
40
+ /** @deprecated use `PerAgentInsight$outboundSchema` instead. */
41
+ const outboundSchema: z.ZodType<PerAgentInsight$Outbound, z.ZodTypeDef, PerAgentInsight>;
42
+ /** @deprecated use `PerAgentInsight$Outbound` instead. */
43
+ type Outbound = PerAgentInsight$Outbound;
44
+ }
45
+ export declare function perAgentInsightToJSON(perAgentInsight: PerAgentInsight): string;
46
+ export declare function perAgentInsightFromJSON(jsonString: string): SafeParseResult<PerAgentInsight, SDKValidationError>;
47
+ //# sourceMappingURL=peragentinsight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peragentinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.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;AAErE,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,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAMf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ /** @internal */
7
+ export const PerAgentInsight$inboundSchema = z.object({
8
+ agentId: z.string().optional(),
9
+ agentName: z.string().optional(),
10
+ userCount: z.number().int().optional(),
11
+ runCount: z.number().int().optional(),
12
+ });
13
+ /** @internal */
14
+ export const PerAgentInsight$outboundSchema = z.object({
15
+ agentId: z.string().optional(),
16
+ agentName: z.string().optional(),
17
+ userCount: z.number().int().optional(),
18
+ runCount: z.number().int().optional(),
19
+ });
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export var PerAgentInsight$;
25
+ (function (PerAgentInsight$) {
26
+ /** @deprecated use `PerAgentInsight$inboundSchema` instead. */
27
+ PerAgentInsight$.inboundSchema = PerAgentInsight$inboundSchema;
28
+ /** @deprecated use `PerAgentInsight$outboundSchema` instead. */
29
+ PerAgentInsight$.outboundSchema = PerAgentInsight$outboundSchema;
30
+ })(PerAgentInsight$ || (PerAgentInsight$ = {}));
31
+ export function perAgentInsightToJSON(perAgentInsight) {
32
+ return JSON.stringify(PerAgentInsight$outboundSchema.parse(perAgentInsight));
33
+ }
34
+ export function perAgentInsightFromJSON(jsonString) {
35
+ return safeParse(jsonString, (x) => PerAgentInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerAgentInsight' from JSON`);
36
+ }
37
+ //# sourceMappingURL=peragentinsight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peragentinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peragentinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAuBjD,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,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;CACtC,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,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,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;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,6BAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,8BAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,KAAhB,gBAAgB,QAOhC;AAED,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -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 PerUserAssistantInsight = {
6
+ person?: Person | undefined;
7
+ /**
8
+ * Total number of chat messages sent by this user over the specified time period.
9
+ */
10
+ numChatMessages?: number | undefined;
11
+ /**
12
+ * Total number of summarized items by this user over the specified time period.
13
+ */
14
+ numSummarizations?: number | undefined;
15
+ /**
16
+ * Total number of AI Answers interacted with by this user over the specified time period.
17
+ */
18
+ numAiAnswers?: number | undefined;
19
+ /**
20
+ * Total number of Gleanbot interacted with by this user over the specified time period.
21
+ */
22
+ numGleanbotInteractions?: number | undefined;
23
+ /**
24
+ * Total number of days this user was active over the specified time period.
25
+ */
26
+ numDaysActive?: number | undefined;
27
+ };
28
+ /** @internal */
29
+ export declare const PerUserAssistantInsight$inboundSchema: z.ZodType<PerUserAssistantInsight, z.ZodTypeDef, unknown>;
30
+ /** @internal */
31
+ export type PerUserAssistantInsight$Outbound = {
32
+ person?: Person$Outbound | undefined;
33
+ numChatMessages?: number | undefined;
34
+ numSummarizations?: number | undefined;
35
+ numAiAnswers?: number | undefined;
36
+ numGleanbotInteractions?: number | undefined;
37
+ numDaysActive?: number | undefined;
38
+ };
39
+ /** @internal */
40
+ export declare const PerUserAssistantInsight$outboundSchema: z.ZodType<PerUserAssistantInsight$Outbound, z.ZodTypeDef, PerUserAssistantInsight>;
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 PerUserAssistantInsight$ {
46
+ /** @deprecated use `PerUserAssistantInsight$inboundSchema` instead. */
47
+ const inboundSchema: z.ZodType<PerUserAssistantInsight, z.ZodTypeDef, unknown>;
48
+ /** @deprecated use `PerUserAssistantInsight$outboundSchema` instead. */
49
+ const outboundSchema: z.ZodType<PerUserAssistantInsight$Outbound, z.ZodTypeDef, PerUserAssistantInsight>;
50
+ /** @deprecated use `PerUserAssistantInsight$Outbound` instead. */
51
+ type Outbound = PerUserAssistantInsight$Outbound;
52
+ }
53
+ export declare function perUserAssistantInsightToJSON(perUserAssistantInsight: PerUserAssistantInsight): string;
54
+ export declare function perUserAssistantInsightFromJSON(jsonString: string): SafeParseResult<PerUserAssistantInsight, SDKValidationError>;
55
+ //# sourceMappingURL=peruserassistantinsight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peruserassistantinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peruserassistantinsight.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,EAC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GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import { Person$inboundSchema, Person$outboundSchema, } from "./person.js";
7
+ /** @internal */
8
+ export const PerUserAssistantInsight$inboundSchema = z.object({
9
+ person: Person$inboundSchema.optional(),
10
+ numChatMessages: z.number().int().optional(),
11
+ numSummarizations: z.number().int().optional(),
12
+ numAiAnswers: z.number().int().optional(),
13
+ numGleanbotInteractions: z.number().int().optional(),
14
+ numDaysActive: z.number().int().optional(),
15
+ });
16
+ /** @internal */
17
+ export const PerUserAssistantInsight$outboundSchema = z.object({
18
+ person: Person$outboundSchema.optional(),
19
+ numChatMessages: z.number().int().optional(),
20
+ numSummarizations: z.number().int().optional(),
21
+ numAiAnswers: z.number().int().optional(),
22
+ numGleanbotInteractions: z.number().int().optional(),
23
+ numDaysActive: z.number().int().optional(),
24
+ });
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export var PerUserAssistantInsight$;
30
+ (function (PerUserAssistantInsight$) {
31
+ /** @deprecated use `PerUserAssistantInsight$inboundSchema` instead. */
32
+ PerUserAssistantInsight$.inboundSchema = PerUserAssistantInsight$inboundSchema;
33
+ /** @deprecated use `PerUserAssistantInsight$outboundSchema` instead. */
34
+ PerUserAssistantInsight$.outboundSchema = PerUserAssistantInsight$outboundSchema;
35
+ })(PerUserAssistantInsight$ || (PerUserAssistantInsight$ = {}));
36
+ export function perUserAssistantInsightToJSON(perUserAssistantInsight) {
37
+ return JSON.stringify(PerUserAssistantInsight$outboundSchema.parse(perUserAssistantInsight));
38
+ }
39
+ export function perUserAssistantInsightFromJSON(jsonString) {
40
+ return safeParse(jsonString, (x) => PerUserAssistantInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerUserAssistantInsight' from JSON`);
41
+ }
42
+ //# sourceMappingURL=peruserassistantinsight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peruserassistantinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserassistantinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AA0BrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAYH,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,qCAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,sCAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC;AAED,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,40 @@
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 PerUserInsight = {
6
+ person?: Person | undefined;
7
+ /**
8
+ * Total number of searches by this user over the specified time period.
9
+ */
10
+ numSearches?: number | undefined;
11
+ /**
12
+ * Total number of chats by this user over the specified time period.
13
+ */
14
+ numChats?: number | undefined;
15
+ };
16
+ /** @internal */
17
+ export declare const PerUserInsight$inboundSchema: z.ZodType<PerUserInsight, z.ZodTypeDef, unknown>;
18
+ /** @internal */
19
+ export type PerUserInsight$Outbound = {
20
+ person?: Person$Outbound | undefined;
21
+ numSearches?: number | undefined;
22
+ numChats?: number | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const PerUserInsight$outboundSchema: z.ZodType<PerUserInsight$Outbound, z.ZodTypeDef, PerUserInsight>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace PerUserInsight$ {
31
+ /** @deprecated use `PerUserInsight$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<PerUserInsight, z.ZodTypeDef, unknown>;
33
+ /** @deprecated use `PerUserInsight$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<PerUserInsight$Outbound, z.ZodTypeDef, PerUserInsight>;
35
+ /** @deprecated use `PerUserInsight$Outbound` instead. */
36
+ type Outbound = PerUserInsight$Outbound;
37
+ }
38
+ export declare function perUserInsightToJSON(perUserInsight: PerUserInsight): string;
39
+ export declare function perUserInsightFromJSON(jsonString: string): SafeParseResult<PerUserInsight, SDKValidationError>;
40
+ //# sourceMappingURL=peruserinsight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peruserinsight.d.ts","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.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,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;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAKd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import { Person$inboundSchema, Person$outboundSchema, } from "./person.js";
7
+ /** @internal */
8
+ export const PerUserInsight$inboundSchema = z.object({
9
+ person: Person$inboundSchema.optional(),
10
+ numSearches: z.number().int().optional(),
11
+ numChats: z.number().int().optional(),
12
+ });
13
+ /** @internal */
14
+ export const PerUserInsight$outboundSchema = z.object({
15
+ person: Person$outboundSchema.optional(),
16
+ numSearches: z.number().int().optional(),
17
+ numChats: z.number().int().optional(),
18
+ });
19
+ /**
20
+ * @internal
21
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
+ */
23
+ export var PerUserInsight$;
24
+ (function (PerUserInsight$) {
25
+ /** @deprecated use `PerUserInsight$inboundSchema` instead. */
26
+ PerUserInsight$.inboundSchema = PerUserInsight$inboundSchema;
27
+ /** @deprecated use `PerUserInsight$outboundSchema` instead. */
28
+ PerUserInsight$.outboundSchema = PerUserInsight$outboundSchema;
29
+ })(PerUserInsight$ || (PerUserInsight$ = {}));
30
+ export function perUserInsightToJSON(perUserInsight) {
31
+ return JSON.stringify(PerUserInsight$outboundSchema.parse(perUserInsight));
32
+ }
33
+ export function perUserInsightFromJSON(jsonString) {
34
+ return safeParse(jsonString, (x) => PerUserInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerUserInsight' from JSON`);
35
+ }
36
+ //# sourceMappingURL=peruserinsight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peruserinsight.js","sourceRoot":"","sources":["../../../../src/models/components/peruserinsight.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAcrB,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;CACtC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACxC,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;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,4BAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,6BAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,KAAf,eAAe,QAO/B;AAED,MAAM,UAAU,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,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"}
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@gleanwork/api-client",
21
- "version": "0.11.2",
21
+ "version": "0.12.0",
22
22
  "dependencies": {
23
23
  "zod": "^3.20.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@gleanwork/api-client",
5
- "version": "0.11.2",
5
+ "version": "0.12.0",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gleanwork/api-client",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -18,12 +18,10 @@ test("Summarize Summarize", async () => {
18
18
  const result = await glean.client.documents.summarize({
19
19
  documentSpecs: [
20
20
  {
21
- ugcType: "SHORTCUTS",
22
- contentId: 602763,
21
+ url: "https://dim-glider.com/",
23
22
  },
24
23
  {
25
- ugcType: "SHORTCUTS",
26
- contentId: 602763,
24
+ id: "<id>",
27
25
  },
28
26
  ],
29
27
  });
package/src/lib/config.ts CHANGED
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "0.9.0",
71
- sdkVersion: "0.11.2",
72
- genVersion: "2.720.1",
71
+ sdkVersion: "0.12.0",
72
+ genVersion: "2.722.5",
73
73
  userAgent:
74
- "speakeasy-sdk/typescript 0.11.2 2.720.1 0.9.0 @gleanwork/api-client",
74
+ "speakeasy-sdk/typescript 0.12.0 2.722.5 0.9.0 @gleanwork/api-client",
75
75
  } as const;
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AgentsUsageByDepartmentInsight,
11
+ AgentsUsageByDepartmentInsight$inboundSchema,
12
+ AgentsUsageByDepartmentInsight$Outbound,
13
+ AgentsUsageByDepartmentInsight$outboundSchema,
14
+ } from "./agentsusagebydepartmentinsight.js";
15
+ import {
16
+ AgentUsersInsight,
17
+ AgentUsersInsight$inboundSchema,
18
+ AgentUsersInsight$Outbound,
19
+ AgentUsersInsight$outboundSchema,
20
+ } from "./agentusersinsight.js";
21
+ import {
22
+ LabeledCountInfo,
23
+ LabeledCountInfo$inboundSchema,
24
+ LabeledCountInfo$Outbound,
25
+ LabeledCountInfo$outboundSchema,
26
+ } from "./labeledcountinfo.js";
27
+ import {
28
+ PerAgentInsight,
29
+ PerAgentInsight$inboundSchema,
30
+ PerAgentInsight$Outbound,
31
+ PerAgentInsight$outboundSchema,
32
+ } from "./peragentinsight.js";
33
+
34
+ export type AgentsInsightsV2Response = {
35
+ /**
36
+ * Number of current Monthly Active Users, in the specified departments.
37
+ */
38
+ monthlyActiveUsers?: number | undefined;
39
+ /**
40
+ * Number of current Weekly Active Users, in the specified departments.
41
+ */
42
+ weeklyActiveUsers?: number | undefined;
43
+ monthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
44
+ weeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
45
+ dailyActiveUserTimeseries?: LabeledCountInfo | undefined;
46
+ /**
47
+ * Total number of shared agents.
48
+ */
49
+ sharedAgentsCount?: number | undefined;
50
+ topAgentsInsights?: Array<PerAgentInsight> | undefined;
51
+ agentsUsageByDepartmentInsights?:
52
+ | Array<AgentsUsageByDepartmentInsight>
53
+ | undefined;
54
+ agentUsersInsights?: Array<AgentUsersInsight> | undefined;
55
+ dailyAgentRunsTimeseries?: LabeledCountInfo | undefined;
56
+ };
57
+
58
+ /** @internal */
59
+ export const AgentsInsightsV2Response$inboundSchema: z.ZodType<
60
+ AgentsInsightsV2Response,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.object({
64
+ monthlyActiveUsers: z.number().int().optional(),
65
+ weeklyActiveUsers: z.number().int().optional(),
66
+ monthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
67
+ weeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
68
+ dailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
69
+ sharedAgentsCount: z.number().int().optional(),
70
+ topAgentsInsights: z.array(PerAgentInsight$inboundSchema).optional(),
71
+ agentsUsageByDepartmentInsights: z.array(
72
+ AgentsUsageByDepartmentInsight$inboundSchema,
73
+ ).optional(),
74
+ agentUsersInsights: z.array(AgentUsersInsight$inboundSchema).optional(),
75
+ dailyAgentRunsTimeseries: LabeledCountInfo$inboundSchema.optional(),
76
+ });
77
+
78
+ /** @internal */
79
+ export type AgentsInsightsV2Response$Outbound = {
80
+ monthlyActiveUsers?: number | undefined;
81
+ weeklyActiveUsers?: number | undefined;
82
+ monthlyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
83
+ weeklyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
84
+ dailyActiveUserTimeseries?: LabeledCountInfo$Outbound | undefined;
85
+ sharedAgentsCount?: number | undefined;
86
+ topAgentsInsights?: Array<PerAgentInsight$Outbound> | undefined;
87
+ agentsUsageByDepartmentInsights?:
88
+ | Array<AgentsUsageByDepartmentInsight$Outbound>
89
+ | undefined;
90
+ agentUsersInsights?: Array<AgentUsersInsight$Outbound> | undefined;
91
+ dailyAgentRunsTimeseries?: LabeledCountInfo$Outbound | undefined;
92
+ };
93
+
94
+ /** @internal */
95
+ export const AgentsInsightsV2Response$outboundSchema: z.ZodType<
96
+ AgentsInsightsV2Response$Outbound,
97
+ z.ZodTypeDef,
98
+ AgentsInsightsV2Response
99
+ > = z.object({
100
+ monthlyActiveUsers: z.number().int().optional(),
101
+ weeklyActiveUsers: z.number().int().optional(),
102
+ monthlyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
103
+ weeklyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
104
+ dailyActiveUserTimeseries: LabeledCountInfo$outboundSchema.optional(),
105
+ sharedAgentsCount: z.number().int().optional(),
106
+ topAgentsInsights: z.array(PerAgentInsight$outboundSchema).optional(),
107
+ agentsUsageByDepartmentInsights: z.array(
108
+ AgentsUsageByDepartmentInsight$outboundSchema,
109
+ ).optional(),
110
+ agentUsersInsights: z.array(AgentUsersInsight$outboundSchema).optional(),
111
+ dailyAgentRunsTimeseries: LabeledCountInfo$outboundSchema.optional(),
112
+ });
113
+
114
+ /**
115
+ * @internal
116
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
+ */
118
+ export namespace AgentsInsightsV2Response$ {
119
+ /** @deprecated use `AgentsInsightsV2Response$inboundSchema` instead. */
120
+ export const inboundSchema = AgentsInsightsV2Response$inboundSchema;
121
+ /** @deprecated use `AgentsInsightsV2Response$outboundSchema` instead. */
122
+ export const outboundSchema = AgentsInsightsV2Response$outboundSchema;
123
+ /** @deprecated use `AgentsInsightsV2Response$Outbound` instead. */
124
+ export type Outbound = AgentsInsightsV2Response$Outbound;
125
+ }
126
+
127
+ export function agentsInsightsV2ResponseToJSON(
128
+ agentsInsightsV2Response: AgentsInsightsV2Response,
129
+ ): string {
130
+ return JSON.stringify(
131
+ AgentsInsightsV2Response$outboundSchema.parse(agentsInsightsV2Response),
132
+ );
133
+ }
134
+
135
+ export function agentsInsightsV2ResponseFromJSON(
136
+ jsonString: string,
137
+ ): SafeParseResult<AgentsInsightsV2Response, SDKValidationError> {
138
+ return safeParse(
139
+ jsonString,
140
+ (x) => AgentsInsightsV2Response$inboundSchema.parse(JSON.parse(x)),
141
+ `Failed to parse 'AgentsInsightsV2Response' from JSON`,
142
+ );
143
+ }