honeyhive 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -199,15 +199,24 @@ run();
199
199
  <!-- Start Error Handling [errors] -->
200
200
  ## Error Handling
201
201
 
202
- All SDK methods return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
202
+ All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`.
203
203
 
204
- | Error Object | Status Code | Content Type |
205
- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
206
- | errors.CreateEventBatchResponseBody | 500 | application/json |
207
- | errors.SDKError | 4xx-5xx | */* |
204
+ If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
208
205
 
209
- Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
206
+ | HTTP Client Error | Description |
207
+ | ---------------------------------------------------- | ---------------------------------------------------- |
208
+ | RequestAbortedError | HTTP request was aborted by the client |
209
+ | RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
210
+ | ConnectionError | HTTP client was unable to make a request to a server |
211
+ | InvalidRequestError | Any input used to create a request is invalid |
212
+ | UnexpectedClientError | Unrecognised or unexpected error |
210
213
 
214
+ In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `createEventBatch` method may throw the following errors:
215
+
216
+ | Error Type | Status Code | Content Type |
217
+ | ----------------------------------- | ----------------------------------- | ----------------------------------- |
218
+ | errors.CreateEventBatchResponseBody | 500 | application/json |
219
+ | errors.SDKError | 4XX, 5XX | \*/\* |
211
220
 
212
221
  ```typescript
213
222
  import { HoneyHive } from "honeyhive";
@@ -309,6 +318,39 @@ async function run() {
309
318
  },
310
319
  },
311
320
  ],
321
+ sessionProperties: {
322
+ sessionName: "Playground Session",
323
+ source: "playground",
324
+ sessionId: "caf77ace-3417-4da4-944d-f4a0688f3c23",
325
+ inputs: {
326
+ "context": "Hello world",
327
+ "question": "What is in the context?",
328
+ "chat_history": [
329
+ {
330
+ "role": "system",
331
+ "content":
332
+ "Answer the user's question only using provided context.\n"
333
+ + "\n"
334
+ + "Context: Hello world",
335
+ },
336
+ {
337
+ "role": "user",
338
+ "content": "What is in the context?",
339
+ },
340
+ ],
341
+ },
342
+ outputs: {
343
+ "role": "assistant",
344
+ "content": "Hello world",
345
+ },
346
+ error: "<value>",
347
+ userProperties: {
348
+ "user": "google-oauth2|111840237613341303366",
349
+ },
350
+ metrics: {},
351
+ feedback: {},
352
+ metadata: {},
353
+ },
312
354
  });
313
355
 
314
356
  // Handle the result
@@ -337,6 +379,8 @@ async function run() {
337
379
  run();
338
380
 
339
381
  ```
382
+
383
+ Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
340
384
  <!-- End Error Handling [errors] -->
341
385
 
342
386
  <!-- Start Server Selection [server] -->
package/lib/config.d.ts CHANGED
@@ -26,9 +26,9 @@ export type SDKOptions = {
26
26
  export declare function serverURLFromOptions(options: SDKOptions): URL | null;
27
27
  export declare const SDK_METADATA: {
28
28
  readonly language: "typescript";
29
- readonly openapiDocVersion: "1.0.3";
30
- readonly sdkVersion: "1.0.8";
31
- readonly genVersion: "2.422.22";
32
- readonly userAgent: "speakeasy-sdk/typescript 1.0.8 2.422.22 1.0.3 honeyhive";
29
+ readonly openapiDocVersion: "1.0.2";
30
+ readonly sdkVersion: "1.1.1";
31
+ readonly genVersion: "2.428.1";
32
+ readonly userAgent: "speakeasy-sdk/typescript 1.1.1 2.428.1 1.0.2 honeyhive";
33
33
  };
34
34
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,9 +28,9 @@ function serverURLFromOptions(options) {
28
28
  }
29
29
  exports.SDK_METADATA = {
30
30
  language: "typescript",
31
- openapiDocVersion: "1.0.3",
32
- sdkVersion: "1.0.8",
33
- genVersion: "2.422.22",
34
- userAgent: "speakeasy-sdk/typescript 1.0.8 2.422.22 1.0.3 honeyhive",
31
+ openapiDocVersion: "1.0.2",
32
+ sdkVersion: "1.1.1",
33
+ genVersion: "2.428.1",
34
+ userAgent: "speakeasy-sdk/typescript 1.1.1 2.428.1 1.0.2 honeyhive",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,0BAA0B;CAClB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,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;IAC1C,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,OAAO;IACnB,UAAU,EAAE,UAAU;IACtB,SAAS,EAAE,yDAAyD;CAC5D,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,0BAA0B;CAClB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,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;IAC1C,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,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,wDAAwD;CAC3D,CAAC"}
@@ -22,6 +22,7 @@ export * from "./postconfigurationrequest.js";
22
22
  export * from "./project.js";
23
23
  export * from "./putconfigurationrequest.js";
24
24
  export * from "./security.js";
25
+ export * from "./sessionpropertiesbatch.js";
25
26
  export * from "./sessionstartrequest.js";
26
27
  export * from "./tool.js";
27
28
  export * from "./updatedatapointrequest.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
@@ -41,6 +41,7 @@ __exportStar(require("./postconfigurationrequest.js"), exports);
41
41
  __exportStar(require("./project.js"), exports);
42
42
  __exportStar(require("./putconfigurationrequest.js"), exports);
43
43
  __exportStar(require("./security.js"), exports);
44
+ __exportStar(require("./sessionpropertiesbatch.js"), exports);
44
45
  __exportStar(require("./sessionstartrequest.js"), exports);
45
46
  __exportStar(require("./tool.js"), exports);
46
47
  __exportStar(require("./updatedatapointrequest.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,8DAA4C;AAC5C,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,4DAA0C;AAC1C,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC;AACvC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,6CAA2B;AAC3B,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,gEAA8C;AAC9C,+CAA6B;AAC7B,+DAA6C;AAC7C,gDAA8B;AAC9B,2DAAyC;AACzC,4CAA0B;AAC1B,8DAA4C;AAC5C,4DAA0C;AAC1C,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,8DAA4C;AAC5C,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,4DAA0C;AAC1C,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC;AACvC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,6CAA2B;AAC3B,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,gEAA8C;AAC9C,+CAA6B;AAC7B,+DAA6C;AAC7C,gDAA8B;AAC9B,8DAA4C;AAC5C,2DAAyC;AACzC,4CAA0B;AAC1B,8DAA4C;AAC5C,4DAA0C;AAC1C,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC"}
@@ -0,0 +1,106 @@
1
+ import * as z from "zod";
2
+ export type SessionPropertiesBatch = {
3
+ /**
4
+ * Name of the session
5
+ */
6
+ sessionName?: string | undefined;
7
+ /**
8
+ * Source of the session - production, staging, etc
9
+ */
10
+ source?: string | undefined;
11
+ /**
12
+ * Unique id of the session, if not set, it will be auto-generated
13
+ */
14
+ sessionId?: string | undefined;
15
+ /**
16
+ * Associated configuration for the session
17
+ */
18
+ config?: {
19
+ [k: string]: any;
20
+ } | undefined;
21
+ /**
22
+ * Input object passed to the session - user query, text blob, etc
23
+ */
24
+ inputs?: {
25
+ [k: string]: any;
26
+ } | undefined;
27
+ /**
28
+ * Final output of the session - completion, chunks, etc
29
+ */
30
+ outputs?: {
31
+ [k: string]: any;
32
+ } | undefined;
33
+ /**
34
+ * Any error description if session failed
35
+ */
36
+ error?: string | undefined;
37
+ /**
38
+ * Any user properties associated with the session
39
+ */
40
+ userProperties?: {
41
+ [k: string]: any;
42
+ } | undefined;
43
+ /**
44
+ * Any values computed over the output of the session
45
+ */
46
+ metrics?: {
47
+ [k: string]: any;
48
+ } | undefined;
49
+ /**
50
+ * Any user feedback provided for the session output
51
+ */
52
+ feedback?: {
53
+ [k: string]: any;
54
+ } | undefined;
55
+ /**
56
+ * Any system or application metadata associated with the session
57
+ */
58
+ metadata?: {
59
+ [k: string]: any;
60
+ } | undefined;
61
+ };
62
+ /** @internal */
63
+ export declare const SessionPropertiesBatch$inboundSchema: z.ZodType<SessionPropertiesBatch, z.ZodTypeDef, unknown>;
64
+ /** @internal */
65
+ export type SessionPropertiesBatch$Outbound = {
66
+ session_name?: string | undefined;
67
+ source?: string | undefined;
68
+ session_id?: string | undefined;
69
+ config?: {
70
+ [k: string]: any;
71
+ } | undefined;
72
+ inputs?: {
73
+ [k: string]: any;
74
+ } | undefined;
75
+ outputs?: {
76
+ [k: string]: any;
77
+ } | undefined;
78
+ error?: string | undefined;
79
+ user_properties?: {
80
+ [k: string]: any;
81
+ } | undefined;
82
+ metrics?: {
83
+ [k: string]: any;
84
+ } | undefined;
85
+ feedback?: {
86
+ [k: string]: any;
87
+ } | undefined;
88
+ metadata?: {
89
+ [k: string]: any;
90
+ } | undefined;
91
+ };
92
+ /** @internal */
93
+ export declare const SessionPropertiesBatch$outboundSchema: z.ZodType<SessionPropertiesBatch$Outbound, z.ZodTypeDef, SessionPropertiesBatch>;
94
+ /**
95
+ * @internal
96
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
+ */
98
+ export declare namespace SessionPropertiesBatch$ {
99
+ /** @deprecated use `SessionPropertiesBatch$inboundSchema` instead. */
100
+ const inboundSchema: z.ZodType<SessionPropertiesBatch, z.ZodTypeDef, unknown>;
101
+ /** @deprecated use `SessionPropertiesBatch$outboundSchema` instead. */
102
+ const outboundSchema: z.ZodType<SessionPropertiesBatch$Outbound, z.ZodTypeDef, SessionPropertiesBatch>;
103
+ /** @deprecated use `SessionPropertiesBatch$Outbound` instead. */
104
+ type Outbound = SessionPropertiesBatch$Outbound;
105
+ }
106
+ //# sourceMappingURL=sessionpropertiesbatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessionpropertiesbatch.d.ts","sourceRoot":"","sources":["../../src/models/components/sessionpropertiesbatch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,OAAO,CA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AAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAmBtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD"}
@@ -0,0 +1,83 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionPropertiesBatch$ = exports.SessionPropertiesBatch$outboundSchema = exports.SessionPropertiesBatch$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ /** @internal */
33
+ exports.SessionPropertiesBatch$inboundSchema = z.object({
34
+ session_name: z.string().optional(),
35
+ source: z.string().optional(),
36
+ session_id: z.string().optional(),
37
+ config: z.record(z.any()).optional(),
38
+ inputs: z.record(z.any()).optional(),
39
+ outputs: z.record(z.any()).optional(),
40
+ error: z.string().optional(),
41
+ user_properties: z.record(z.any()).optional(),
42
+ metrics: z.record(z.any()).optional(),
43
+ feedback: z.record(z.any()).optional(),
44
+ metadata: z.record(z.any()).optional(),
45
+ }).transform((v) => {
46
+ return (0, primitives_js_1.remap)(v, {
47
+ "session_name": "sessionName",
48
+ "session_id": "sessionId",
49
+ "user_properties": "userProperties",
50
+ });
51
+ });
52
+ /** @internal */
53
+ exports.SessionPropertiesBatch$outboundSchema = z.object({
54
+ sessionName: z.string().optional(),
55
+ source: z.string().optional(),
56
+ sessionId: z.string().optional(),
57
+ config: z.record(z.any()).optional(),
58
+ inputs: z.record(z.any()).optional(),
59
+ outputs: z.record(z.any()).optional(),
60
+ error: z.string().optional(),
61
+ userProperties: z.record(z.any()).optional(),
62
+ metrics: z.record(z.any()).optional(),
63
+ feedback: z.record(z.any()).optional(),
64
+ metadata: z.record(z.any()).optional(),
65
+ }).transform((v) => {
66
+ return (0, primitives_js_1.remap)(v, {
67
+ sessionName: "session_name",
68
+ sessionId: "session_id",
69
+ userProperties: "user_properties",
70
+ });
71
+ });
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ var SessionPropertiesBatch$;
77
+ (function (SessionPropertiesBatch$) {
78
+ /** @deprecated use `SessionPropertiesBatch$inboundSchema` instead. */
79
+ SessionPropertiesBatch$.inboundSchema = exports.SessionPropertiesBatch$inboundSchema;
80
+ /** @deprecated use `SessionPropertiesBatch$outboundSchema` instead. */
81
+ SessionPropertiesBatch$.outboundSchema = exports.SessionPropertiesBatch$outboundSchema;
82
+ })(SessionPropertiesBatch$ || (exports.SessionPropertiesBatch$ = SessionPropertiesBatch$ = {}));
83
+ //# sourceMappingURL=sessionpropertiesbatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessionpropertiesbatch.js","sourceRoot":"","sources":["../../src/models/components/sessionpropertiesbatch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAiD1D,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,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C,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;QACvB,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC"}
@@ -6,6 +6,7 @@ export type CreateEventBatchRequestBody = {
6
6
  * Default is false. If true, all events will be associated with the same session
7
7
  */
8
8
  isSingleSession?: boolean | undefined;
9
+ sessionProperties?: components.SessionPropertiesBatch | undefined;
9
10
  };
10
11
  /**
11
12
  * Events created
@@ -21,6 +22,7 @@ export declare const CreateEventBatchRequestBody$inboundSchema: z.ZodType<Create
21
22
  export type CreateEventBatchRequestBody$Outbound = {
22
23
  events: Array<components.CreateEventRequest$Outbound>;
23
24
  is_single_session?: boolean | undefined;
25
+ session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
24
26
  };
25
27
  /** @internal */
26
28
  export declare const CreateEventBatchRequestBody$outboundSchema: z.ZodType<CreateEventBatchRequestBody$Outbound, z.ZodTypeDef, CreateEventBatchRequestBody>;
@@ -1 +1 @@
1
- {"version":3,"file":"createeventbatch.d.ts","sourceRoot":"","sources":["../../src/models/operations/createeventbatch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,KAAK,CAAC,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34
34
  exports.CreateEventBatchRequestBody$inboundSchema = z.object({
35
35
  events: z.array(components.CreateEventRequest$inboundSchema),
36
36
  is_single_session: z.boolean().optional(),
37
+ session_properties: components.SessionPropertiesBatch$inboundSchema
38
+ .optional(),
37
39
  }).transform((v) => {
38
40
  return (0, primitives_js_1.remap)(v, {
39
41
  "is_single_session": "isSingleSession",
42
+ "session_properties": "sessionProperties",
40
43
  });
41
44
  });
42
45
  /** @internal */
43
46
  exports.CreateEventBatchRequestBody$outboundSchema = z.object({
44
47
  events: z.array(components.CreateEventRequest$outboundSchema),
45
48
  isSingleSession: z.boolean().optional(),
49
+ sessionProperties: components.SessionPropertiesBatch$outboundSchema
50
+ .optional(),
46
51
  }).transform((v) => {
47
52
  return (0, primitives_js_1.remap)(v, {
48
53
  isSingleSession: "is_single_session",
54
+ sessionProperties: "session_properties",
49
55
  });
50
56
  });
51
57
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"createeventbatch.js","sourceRoot":"","sources":["../../src/models/operations/createeventbatch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAmBrD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAC5D,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAA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C,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C"}
@@ -2,6 +2,11 @@ import * as z from "zod";
2
2
  import * as components from "../components/index.js";
3
3
  export type CreateModelEventBatchRequestBody = {
4
4
  modelEvents?: Array<components.CreateModelEvent> | undefined;
5
+ /**
6
+ * Default is false. If true, all events will be associated with the same session
7
+ */
8
+ isSingleSession?: boolean | undefined;
9
+ sessionProperties?: components.SessionPropertiesBatch | undefined;
5
10
  };
6
11
  /**
7
12
  * Model events created
@@ -15,6 +20,8 @@ export declare const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<C
15
20
  /** @internal */
16
21
  export type CreateModelEventBatchRequestBody$Outbound = {
17
22
  model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
23
+ is_single_session?: boolean | undefined;
24
+ session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
18
25
  };
19
26
  /** @internal */
20
27
  export declare const CreateModelEventBatchRequestBody$outboundSchema: z.ZodType<CreateModelEventBatchRequestBody$Outbound, z.ZodTypeDef, CreateModelEventBatchRequestBody>;
@@ -1 +1 @@
1
- {"version":3,"file":"createmodeleventbatch.d.ts","sourceRoot":"","sources":["../../src/models/operations/createmodeleventbatch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,SAAS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E,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAYhC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iCAAiC,CAAC;IACjD,gFAAgF;IACzE,MAAM,aAAa,oEAAiD,CAAC;IAC5E,iFAAiF;IAC1E,MAAM,cAAc,sGAAkD,CAAC;IAC9E,2EAA2E;IAC3E,KAAY,QAAQ,GAAG,yCAAyC,CAAC;CAClE;AAED,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAQjC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE"}
@@ -33,17 +33,27 @@ const components = __importStar(require("../components/index.js"));
33
33
  /** @internal */
34
34
  exports.CreateModelEventBatchRequestBody$inboundSchema = z.object({
35
35
  model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
36
+ is_single_session: z.boolean().optional(),
37
+ session_properties: components.SessionPropertiesBatch$inboundSchema
38
+ .optional(),
36
39
  }).transform((v) => {
37
40
  return (0, primitives_js_1.remap)(v, {
38
41
  "model_events": "modelEvents",
42
+ "is_single_session": "isSingleSession",
43
+ "session_properties": "sessionProperties",
39
44
  });
40
45
  });
41
46
  /** @internal */
42
47
  exports.CreateModelEventBatchRequestBody$outboundSchema = z.object({
43
48
  modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
49
+ isSingleSession: z.boolean().optional(),
50
+ sessionProperties: components.SessionPropertiesBatch$outboundSchema
51
+ .optional(),
44
52
  }).transform((v) => {
45
53
  return (0, primitives_js_1.remap)(v, {
46
54
  modelEvents: "model_events",
55
+ isSingleSession: "is_single_session",
56
+ sessionProperties: "session_properties",
47
57
  });
48
58
  });
49
59
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"createmodeleventbatch.js","sourceRoot":"","sources":["../../src/models/operations/createmodeleventbatch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAcrD,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC,QAAQ,EAAE;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD"}
1
+ {"version":3,"file":"createmodeleventbatch.js","sourceRoot":"","sources":["../../src/models/operations/createmodeleventbatch.ts"],"names":[],"mappings":";AAAA;;GA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hF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "honeyhive",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "author": "HoneyHive",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -53,8 +53,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
53
53
 
54
54
  export const SDK_METADATA = {
55
55
  language: "typescript",
56
- openapiDocVersion: "1.0.3",
57
- sdkVersion: "1.0.8",
58
- genVersion: "2.422.22",
59
- userAgent: "speakeasy-sdk/typescript 1.0.8 2.422.22 1.0.3 honeyhive",
56
+ openapiDocVersion: "1.0.2",
57
+ sdkVersion: "1.1.1",
58
+ genVersion: "2.428.1",
59
+ userAgent: "speakeasy-sdk/typescript 1.1.1 2.428.1 1.0.2 honeyhive",
60
60
  } as const;
@@ -26,6 +26,7 @@ export * from "./postconfigurationrequest.js";
26
26
  export * from "./project.js";
27
27
  export * from "./putconfigurationrequest.js";
28
28
  export * from "./security.js";
29
+ export * from "./sessionpropertiesbatch.js";
29
30
  export * from "./sessionstartrequest.js";
30
31
  export * from "./tool.js";
31
32
  export * from "./updatedatapointrequest.js";
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type SessionPropertiesBatch = {
9
+ /**
10
+ * Name of the session
11
+ */
12
+ sessionName?: string | undefined;
13
+ /**
14
+ * Source of the session - production, staging, etc
15
+ */
16
+ source?: string | undefined;
17
+ /**
18
+ * Unique id of the session, if not set, it will be auto-generated
19
+ */
20
+ sessionId?: string | undefined;
21
+ /**
22
+ * Associated configuration for the session
23
+ */
24
+ config?: { [k: string]: any } | undefined;
25
+ /**
26
+ * Input object passed to the session - user query, text blob, etc
27
+ */
28
+ inputs?: { [k: string]: any } | undefined;
29
+ /**
30
+ * Final output of the session - completion, chunks, etc
31
+ */
32
+ outputs?: { [k: string]: any } | undefined;
33
+ /**
34
+ * Any error description if session failed
35
+ */
36
+ error?: string | undefined;
37
+ /**
38
+ * Any user properties associated with the session
39
+ */
40
+ userProperties?: { [k: string]: any } | undefined;
41
+ /**
42
+ * Any values computed over the output of the session
43
+ */
44
+ metrics?: { [k: string]: any } | undefined;
45
+ /**
46
+ * Any user feedback provided for the session output
47
+ */
48
+ feedback?: { [k: string]: any } | undefined;
49
+ /**
50
+ * Any system or application metadata associated with the session
51
+ */
52
+ metadata?: { [k: string]: any } | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const SessionPropertiesBatch$inboundSchema: z.ZodType<
57
+ SessionPropertiesBatch,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({
61
+ session_name: z.string().optional(),
62
+ source: z.string().optional(),
63
+ session_id: z.string().optional(),
64
+ config: z.record(z.any()).optional(),
65
+ inputs: z.record(z.any()).optional(),
66
+ outputs: z.record(z.any()).optional(),
67
+ error: z.string().optional(),
68
+ user_properties: z.record(z.any()).optional(),
69
+ metrics: z.record(z.any()).optional(),
70
+ feedback: z.record(z.any()).optional(),
71
+ metadata: z.record(z.any()).optional(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ "session_name": "sessionName",
75
+ "session_id": "sessionId",
76
+ "user_properties": "userProperties",
77
+ });
78
+ });
79
+
80
+ /** @internal */
81
+ export type SessionPropertiesBatch$Outbound = {
82
+ session_name?: string | undefined;
83
+ source?: string | undefined;
84
+ session_id?: string | undefined;
85
+ config?: { [k: string]: any } | undefined;
86
+ inputs?: { [k: string]: any } | undefined;
87
+ outputs?: { [k: string]: any } | undefined;
88
+ error?: string | undefined;
89
+ user_properties?: { [k: string]: any } | undefined;
90
+ metrics?: { [k: string]: any } | undefined;
91
+ feedback?: { [k: string]: any } | undefined;
92
+ metadata?: { [k: string]: any } | undefined;
93
+ };
94
+
95
+ /** @internal */
96
+ export const SessionPropertiesBatch$outboundSchema: z.ZodType<
97
+ SessionPropertiesBatch$Outbound,
98
+ z.ZodTypeDef,
99
+ SessionPropertiesBatch
100
+ > = z.object({
101
+ sessionName: z.string().optional(),
102
+ source: z.string().optional(),
103
+ sessionId: z.string().optional(),
104
+ config: z.record(z.any()).optional(),
105
+ inputs: z.record(z.any()).optional(),
106
+ outputs: z.record(z.any()).optional(),
107
+ error: z.string().optional(),
108
+ userProperties: z.record(z.any()).optional(),
109
+ metrics: z.record(z.any()).optional(),
110
+ feedback: z.record(z.any()).optional(),
111
+ metadata: z.record(z.any()).optional(),
112
+ }).transform((v) => {
113
+ return remap$(v, {
114
+ sessionName: "session_name",
115
+ sessionId: "session_id",
116
+ userProperties: "user_properties",
117
+ });
118
+ });
119
+
120
+ /**
121
+ * @internal
122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
+ */
124
+ export namespace SessionPropertiesBatch$ {
125
+ /** @deprecated use `SessionPropertiesBatch$inboundSchema` instead. */
126
+ export const inboundSchema = SessionPropertiesBatch$inboundSchema;
127
+ /** @deprecated use `SessionPropertiesBatch$outboundSchema` instead. */
128
+ export const outboundSchema = SessionPropertiesBatch$outboundSchema;
129
+ /** @deprecated use `SessionPropertiesBatch$Outbound` instead. */
130
+ export type Outbound = SessionPropertiesBatch$Outbound;
131
+ }
@@ -12,6 +12,7 @@ export type CreateEventBatchRequestBody = {
12
12
  * Default is false. If true, all events will be associated with the same session
13
13
  */
14
14
  isSingleSession?: boolean | undefined;
15
+ sessionProperties?: components.SessionPropertiesBatch | undefined;
15
16
  };
16
17
 
17
18
  /**
@@ -31,9 +32,12 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
31
32
  > = z.object({
32
33
  events: z.array(components.CreateEventRequest$inboundSchema),
33
34
  is_single_session: z.boolean().optional(),
35
+ session_properties: components.SessionPropertiesBatch$inboundSchema
36
+ .optional(),
34
37
  }).transform((v) => {
35
38
  return remap$(v, {
36
39
  "is_single_session": "isSingleSession",
40
+ "session_properties": "sessionProperties",
37
41
  });
38
42
  });
39
43
 
@@ -41,6 +45,7 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
41
45
  export type CreateEventBatchRequestBody$Outbound = {
42
46
  events: Array<components.CreateEventRequest$Outbound>;
43
47
  is_single_session?: boolean | undefined;
48
+ session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
44
49
  };
45
50
 
46
51
  /** @internal */
@@ -51,9 +56,12 @@ export const CreateEventBatchRequestBody$outboundSchema: z.ZodType<
51
56
  > = z.object({
52
57
  events: z.array(components.CreateEventRequest$outboundSchema),
53
58
  isSingleSession: z.boolean().optional(),
59
+ sessionProperties: components.SessionPropertiesBatch$outboundSchema
60
+ .optional(),
54
61
  }).transform((v) => {
55
62
  return remap$(v, {
56
63
  isSingleSession: "is_single_session",
64
+ sessionProperties: "session_properties",
57
65
  });
58
66
  });
59
67
 
@@ -8,6 +8,11 @@ import * as components from "../components/index.js";
8
8
 
9
9
  export type CreateModelEventBatchRequestBody = {
10
10
  modelEvents?: Array<components.CreateModelEvent> | undefined;
11
+ /**
12
+ * Default is false. If true, all events will be associated with the same session
13
+ */
14
+ isSingleSession?: boolean | undefined;
15
+ sessionProperties?: components.SessionPropertiesBatch | undefined;
11
16
  };
12
17
 
13
18
  /**
@@ -25,15 +30,22 @@ export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
25
30
  unknown
26
31
  > = z.object({
27
32
  model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
33
+ is_single_session: z.boolean().optional(),
34
+ session_properties: components.SessionPropertiesBatch$inboundSchema
35
+ .optional(),
28
36
  }).transform((v) => {
29
37
  return remap$(v, {
30
38
  "model_events": "modelEvents",
39
+ "is_single_session": "isSingleSession",
40
+ "session_properties": "sessionProperties",
31
41
  });
32
42
  });
33
43
 
34
44
  /** @internal */
35
45
  export type CreateModelEventBatchRequestBody$Outbound = {
36
46
  model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
47
+ is_single_session?: boolean | undefined;
48
+ session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
37
49
  };
38
50
 
39
51
  /** @internal */
@@ -43,9 +55,14 @@ export const CreateModelEventBatchRequestBody$outboundSchema: z.ZodType<
43
55
  CreateModelEventBatchRequestBody
44
56
  > = z.object({
45
57
  modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
58
+ isSingleSession: z.boolean().optional(),
59
+ sessionProperties: components.SessionPropertiesBatch$outboundSchema
60
+ .optional(),
46
61
  }).transform((v) => {
47
62
  return remap$(v, {
48
63
  modelEvents: "model_events",
64
+ isSingleSession: "is_single_session",
65
+ sessionProperties: "session_properties",
49
66
  });
50
67
  });
51
68