honeyhive 1.0.10 → 1.0.11
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 +52 -6
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/sessionpropertiesbatch.d.ts +106 -0
- package/models/components/sessionpropertiesbatch.d.ts.map +1 -0
- package/models/components/sessionpropertiesbatch.js +83 -0
- package/models/components/sessionpropertiesbatch.js.map +1 -0
- package/models/operations/createeventbatch.d.ts +25 -0
- package/models/operations/createeventbatch.d.ts.map +1 -1
- package/models/operations/createeventbatch.js +32 -1
- package/models/operations/createeventbatch.js.map +1 -1
- package/models/operations/createmodeleventbatch.d.ts +30 -0
- package/models/operations/createmodeleventbatch.d.ts.map +1 -1
- package/models/operations/createmodeleventbatch.js +36 -1
- package/models/operations/createmodeleventbatch.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/sessionpropertiesbatch.ts +131 -0
- package/src/models/operations/createeventbatch.ts +54 -0
- package/src/models/operations/createmodeleventbatch.ts +71 -0
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.
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
|
207
|
-
|
|
|
204
|
+
If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
|
|
205
|
+
|
|
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 |
|
|
208
213
|
|
|
209
|
-
|
|
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:
|
|
210
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,41 @@ async function run() {
|
|
|
309
318
|
},
|
|
310
319
|
},
|
|
311
320
|
],
|
|
321
|
+
sessionProperties: {
|
|
322
|
+
modelEvent: {
|
|
323
|
+
sessionName: "Playground Session",
|
|
324
|
+
source: "playground",
|
|
325
|
+
sessionId: "caf77ace-3417-4da4-944d-f4a0688f3c23",
|
|
326
|
+
inputs: {
|
|
327
|
+
"context": "Hello world",
|
|
328
|
+
"question": "What is in the context?",
|
|
329
|
+
"chat_history": [
|
|
330
|
+
{
|
|
331
|
+
"role": "system",
|
|
332
|
+
"content":
|
|
333
|
+
"Answer the user's question only using provided context.\n"
|
|
334
|
+
+ "\n"
|
|
335
|
+
+ "Context: Hello world",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"role": "user",
|
|
339
|
+
"content": "What is in the context?",
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
outputs: {
|
|
344
|
+
"role": "assistant",
|
|
345
|
+
"content": "Hello world",
|
|
346
|
+
},
|
|
347
|
+
error: "<value>",
|
|
348
|
+
userProperties: {
|
|
349
|
+
"user": "google-oauth2|111840237613341303366",
|
|
350
|
+
},
|
|
351
|
+
metrics: {},
|
|
352
|
+
feedback: {},
|
|
353
|
+
metadata: {},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
312
356
|
});
|
|
313
357
|
|
|
314
358
|
// Handle the result
|
|
@@ -337,6 +381,8 @@ async function run() {
|
|
|
337
381
|
run();
|
|
338
382
|
|
|
339
383
|
```
|
|
384
|
+
|
|
385
|
+
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
386
|
<!-- End Error Handling [errors] -->
|
|
341
387
|
|
|
342
388
|
<!-- Start Server Selection [server] -->
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.3";
|
|
30
|
-
readonly sdkVersion: "1.0
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0
|
|
30
|
+
readonly sdkVersion: "1.1.0";
|
|
31
|
+
readonly genVersion: "2.428.1";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.0 2.428.1 1.0.3 honeyhive";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.3",
|
|
32
|
-
sdkVersion: "1.0
|
|
33
|
-
genVersion: "2.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.0
|
|
32
|
+
sdkVersion: "1.1.0",
|
|
33
|
+
genVersion: "2.428.1",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.1.0 2.428.1 1.0.3 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,
|
|
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,CA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C,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;;OAE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|
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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AM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,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"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import * as components from "../components/index.js";
|
|
3
|
+
export type SessionProperties = {
|
|
4
|
+
modelEvent?: components.SessionPropertiesBatch | undefined;
|
|
5
|
+
};
|
|
3
6
|
export type CreateEventBatchRequestBody = {
|
|
4
7
|
events: Array<components.CreateEventRequest>;
|
|
5
8
|
/**
|
|
6
9
|
* Default is false. If true, all events will be associated with the same session
|
|
7
10
|
*/
|
|
8
11
|
isSingleSession?: boolean | undefined;
|
|
12
|
+
sessionProperties?: SessionProperties | undefined;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
15
|
* Events created
|
|
@@ -16,11 +20,32 @@ export type CreateEventBatchResponseBody = {
|
|
|
16
20
|
success?: boolean | undefined;
|
|
17
21
|
};
|
|
18
22
|
/** @internal */
|
|
23
|
+
export declare const SessionProperties$inboundSchema: z.ZodType<SessionProperties, z.ZodTypeDef, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type SessionProperties$Outbound = {
|
|
26
|
+
model_event?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const SessionProperties$outboundSchema: z.ZodType<SessionProperties$Outbound, z.ZodTypeDef, SessionProperties>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace SessionProperties$ {
|
|
35
|
+
/** @deprecated use `SessionProperties$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodType<SessionProperties, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @deprecated use `SessionProperties$outboundSchema` instead. */
|
|
38
|
+
const outboundSchema: z.ZodType<SessionProperties$Outbound, z.ZodTypeDef, SessionProperties>;
|
|
39
|
+
/** @deprecated use `SessionProperties$Outbound` instead. */
|
|
40
|
+
type Outbound = SessionProperties$Outbound;
|
|
41
|
+
}
|
|
42
|
+
/** @internal */
|
|
19
43
|
export declare const CreateEventBatchRequestBody$inboundSchema: z.ZodType<CreateEventBatchRequestBody, z.ZodTypeDef, unknown>;
|
|
20
44
|
/** @internal */
|
|
21
45
|
export type CreateEventBatchRequestBody$Outbound = {
|
|
22
46
|
events: Array<components.CreateEventRequest$Outbound>;
|
|
23
47
|
is_single_session?: boolean | undefined;
|
|
48
|
+
session_properties?: SessionProperties$Outbound | undefined;
|
|
24
49
|
};
|
|
25
50
|
/** @internal */
|
|
26
51
|
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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E,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAU5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D"}
|
|
@@ -26,26 +26,57 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.CreateEventBatchResponseBody$ = exports.CreateEventBatchResponseBody$outboundSchema = exports.CreateEventBatchResponseBody$inboundSchema = exports.CreateEventBatchRequestBody$ = exports.CreateEventBatchRequestBody$outboundSchema = exports.CreateEventBatchRequestBody$inboundSchema = void 0;
|
|
29
|
+
exports.CreateEventBatchResponseBody$ = exports.CreateEventBatchResponseBody$outboundSchema = exports.CreateEventBatchResponseBody$inboundSchema = exports.CreateEventBatchRequestBody$ = exports.CreateEventBatchRequestBody$outboundSchema = exports.CreateEventBatchRequestBody$inboundSchema = exports.SessionProperties$ = exports.SessionProperties$outboundSchema = exports.SessionProperties$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const components = __importStar(require("../components/index.js"));
|
|
33
33
|
/** @internal */
|
|
34
|
+
exports.SessionProperties$inboundSchema = z.object({
|
|
35
|
+
model_event: components.SessionPropertiesBatch$inboundSchema.optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return (0, primitives_js_1.remap)(v, {
|
|
38
|
+
"model_event": "modelEvent",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.SessionProperties$outboundSchema = z.object({
|
|
43
|
+
modelEvent: components.SessionPropertiesBatch$outboundSchema.optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
modelEvent: "model_event",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
var SessionProperties$;
|
|
54
|
+
(function (SessionProperties$) {
|
|
55
|
+
/** @deprecated use `SessionProperties$inboundSchema` instead. */
|
|
56
|
+
SessionProperties$.inboundSchema = exports.SessionProperties$inboundSchema;
|
|
57
|
+
/** @deprecated use `SessionProperties$outboundSchema` instead. */
|
|
58
|
+
SessionProperties$.outboundSchema = exports.SessionProperties$outboundSchema;
|
|
59
|
+
})(SessionProperties$ || (exports.SessionProperties$ = SessionProperties$ = {}));
|
|
60
|
+
/** @internal */
|
|
34
61
|
exports.CreateEventBatchRequestBody$inboundSchema = z.object({
|
|
35
62
|
events: z.array(components.CreateEventRequest$inboundSchema),
|
|
36
63
|
is_single_session: z.boolean().optional(),
|
|
64
|
+
session_properties: z.lazy(() => exports.SessionProperties$inboundSchema).optional(),
|
|
37
65
|
}).transform((v) => {
|
|
38
66
|
return (0, primitives_js_1.remap)(v, {
|
|
39
67
|
"is_single_session": "isSingleSession",
|
|
68
|
+
"session_properties": "sessionProperties",
|
|
40
69
|
});
|
|
41
70
|
});
|
|
42
71
|
/** @internal */
|
|
43
72
|
exports.CreateEventBatchRequestBody$outboundSchema = z.object({
|
|
44
73
|
events: z.array(components.CreateEventRequest$outboundSchema),
|
|
45
74
|
isSingleSession: z.boolean().optional(),
|
|
75
|
+
sessionProperties: z.lazy(() => exports.SessionProperties$outboundSchema).optional(),
|
|
46
76
|
}).transform((v) => {
|
|
47
77
|
return (0, primitives_js_1.remap)(v, {
|
|
48
78
|
isSingleSession: "is_single_session",
|
|
79
|
+
sessionProperties: "session_properties",
|
|
49
80
|
});
|
|
50
81
|
});
|
|
51
82
|
/**
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"createeventbatch.js","sourceRoot":"","sources":["../../src/models/operations/createeventbatch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAwBrD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,UAAU,CAAC,oCAAoC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,CAAC,qCAAqC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,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;AA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
|
3
|
+
export type CreateModelEventBatchSessionProperties = {
|
|
4
|
+
modelEvent?: components.SessionPropertiesBatch | undefined;
|
|
5
|
+
};
|
|
3
6
|
export type CreateModelEventBatchRequestBody = {
|
|
4
7
|
modelEvents?: Array<components.CreateModelEvent> | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Default is false. If true, all events will be associated with the same session
|
|
10
|
+
*/
|
|
11
|
+
isSingleSession?: boolean | undefined;
|
|
12
|
+
sessionProperties?: CreateModelEventBatchSessionProperties | undefined;
|
|
5
13
|
};
|
|
6
14
|
/**
|
|
7
15
|
* Model events created
|
|
@@ -11,10 +19,32 @@ export type CreateModelEventBatchResponseBody = {
|
|
|
11
19
|
success?: boolean | undefined;
|
|
12
20
|
};
|
|
13
21
|
/** @internal */
|
|
22
|
+
export declare const CreateModelEventBatchSessionProperties$inboundSchema: z.ZodType<CreateModelEventBatchSessionProperties, z.ZodTypeDef, unknown>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type CreateModelEventBatchSessionProperties$Outbound = {
|
|
25
|
+
model_event?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const CreateModelEventBatchSessionProperties$outboundSchema: z.ZodType<CreateModelEventBatchSessionProperties$Outbound, z.ZodTypeDef, CreateModelEventBatchSessionProperties>;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace CreateModelEventBatchSessionProperties$ {
|
|
34
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$inboundSchema` instead. */
|
|
35
|
+
const inboundSchema: z.ZodType<CreateModelEventBatchSessionProperties, z.ZodTypeDef, unknown>;
|
|
36
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$outboundSchema` instead. */
|
|
37
|
+
const outboundSchema: z.ZodType<CreateModelEventBatchSessionProperties$Outbound, z.ZodTypeDef, CreateModelEventBatchSessionProperties>;
|
|
38
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$Outbound` instead. */
|
|
39
|
+
type Outbound = CreateModelEventBatchSessionProperties$Outbound;
|
|
40
|
+
}
|
|
41
|
+
/** @internal */
|
|
14
42
|
export declare const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<CreateModelEventBatchRequestBody, z.ZodTypeDef, unknown>;
|
|
15
43
|
/** @internal */
|
|
16
44
|
export type CreateModelEventBatchRequestBody$Outbound = {
|
|
17
45
|
model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
|
|
46
|
+
is_single_session?: boolean | undefined;
|
|
47
|
+
session_properties?: CreateModelEventBatchSessionProperties$Outbound | undefined;
|
|
18
48
|
};
|
|
19
49
|
/** @internal */
|
|
20
50
|
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,CAAC;
|
|
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,sCAAsC,GAAG;IACnD,UAAU,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF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G,SAAS,CAAC;IACvE,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,kBAAkB,CAAC,EACf,+CAA+C,GAC/C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAahC,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"}
|
|
@@ -26,24 +26,59 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.CreateModelEventBatchResponseBody$ = exports.CreateModelEventBatchResponseBody$outboundSchema = exports.CreateModelEventBatchResponseBody$inboundSchema = exports.CreateModelEventBatchRequestBody$ = exports.CreateModelEventBatchRequestBody$outboundSchema = exports.CreateModelEventBatchRequestBody$inboundSchema = void 0;
|
|
29
|
+
exports.CreateModelEventBatchResponseBody$ = exports.CreateModelEventBatchResponseBody$outboundSchema = exports.CreateModelEventBatchResponseBody$inboundSchema = exports.CreateModelEventBatchRequestBody$ = exports.CreateModelEventBatchRequestBody$outboundSchema = exports.CreateModelEventBatchRequestBody$inboundSchema = exports.CreateModelEventBatchSessionProperties$ = exports.CreateModelEventBatchSessionProperties$outboundSchema = exports.CreateModelEventBatchSessionProperties$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const components = __importStar(require("../components/index.js"));
|
|
33
33
|
/** @internal */
|
|
34
|
+
exports.CreateModelEventBatchSessionProperties$inboundSchema = z.object({
|
|
35
|
+
model_event: components.SessionPropertiesBatch$inboundSchema.optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return (0, primitives_js_1.remap)(v, {
|
|
38
|
+
"model_event": "modelEvent",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.CreateModelEventBatchSessionProperties$outboundSchema = z.object({
|
|
43
|
+
modelEvent: components.SessionPropertiesBatch$outboundSchema.optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
modelEvent: "model_event",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
var CreateModelEventBatchSessionProperties$;
|
|
54
|
+
(function (CreateModelEventBatchSessionProperties$) {
|
|
55
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$inboundSchema` instead. */
|
|
56
|
+
CreateModelEventBatchSessionProperties$.inboundSchema = exports.CreateModelEventBatchSessionProperties$inboundSchema;
|
|
57
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$outboundSchema` instead. */
|
|
58
|
+
CreateModelEventBatchSessionProperties$.outboundSchema = exports.CreateModelEventBatchSessionProperties$outboundSchema;
|
|
59
|
+
})(CreateModelEventBatchSessionProperties$ || (exports.CreateModelEventBatchSessionProperties$ = CreateModelEventBatchSessionProperties$ = {}));
|
|
60
|
+
/** @internal */
|
|
34
61
|
exports.CreateModelEventBatchRequestBody$inboundSchema = z.object({
|
|
35
62
|
model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
|
|
63
|
+
is_single_session: z.boolean().optional(),
|
|
64
|
+
session_properties: z.lazy(() => exports.CreateModelEventBatchSessionProperties$inboundSchema).optional(),
|
|
36
65
|
}).transform((v) => {
|
|
37
66
|
return (0, primitives_js_1.remap)(v, {
|
|
38
67
|
"model_events": "modelEvents",
|
|
68
|
+
"is_single_session": "isSingleSession",
|
|
69
|
+
"session_properties": "sessionProperties",
|
|
39
70
|
});
|
|
40
71
|
});
|
|
41
72
|
/** @internal */
|
|
42
73
|
exports.CreateModelEventBatchRequestBody$outboundSchema = z.object({
|
|
43
74
|
modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
|
|
75
|
+
isSingleSession: z.boolean().optional(),
|
|
76
|
+
sessionProperties: z.lazy(() => exports.CreateModelEventBatchSessionProperties$outboundSchema).optional(),
|
|
44
77
|
}).transform((v) => {
|
|
45
78
|
return (0, primitives_js_1.remap)(v, {
|
|
46
79
|
modelEvents: "model_events",
|
|
80
|
+
isSingleSession: "is_single_session",
|
|
81
|
+
sessionProperties: "session_properties",
|
|
47
82
|
});
|
|
48
83
|
});
|
|
49
84
|
/**
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"createmodeleventbatch.js","sourceRoot":"","sources":["../../src/models/operations/createmodeleventbatch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAuBrD,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,UAAU,CAAC,oCAAoC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,CAAC,qCAAqC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uCAAuC,CASvD;AATD,WAAiB,uCAAuC;IACtD,sFAAsF;IACzE,qDAAa,GACxB,4DAAoD,CAAC;IACvD,uFAAuF;IAC1E,sDAAc,GACzB,6DAAqD,CAAC;AAG1D,CAAC,EATgB,uCAAuC,uDAAvC,uCAAuC,QASvD;AAED,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8BAA8B,CAA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,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
package/src/lib/config.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "1.0.3",
|
|
57
|
-
sdkVersion: "1.0
|
|
58
|
-
genVersion: "2.
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 1.0
|
|
57
|
+
sdkVersion: "1.1.0",
|
|
58
|
+
genVersion: "2.428.1",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 1.1.0 2.428.1 1.0.3 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
|
+
}
|
|
@@ -6,12 +6,17 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
|
|
9
|
+
export type SessionProperties = {
|
|
10
|
+
modelEvent?: components.SessionPropertiesBatch | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
9
13
|
export type CreateEventBatchRequestBody = {
|
|
10
14
|
events: Array<components.CreateEventRequest>;
|
|
11
15
|
/**
|
|
12
16
|
* Default is false. If true, all events will be associated with the same session
|
|
13
17
|
*/
|
|
14
18
|
isSingleSession?: boolean | undefined;
|
|
19
|
+
sessionProperties?: SessionProperties | undefined;
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
/**
|
|
@@ -23,6 +28,50 @@ export type CreateEventBatchResponseBody = {
|
|
|
23
28
|
success?: boolean | undefined;
|
|
24
29
|
};
|
|
25
30
|
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const SessionProperties$inboundSchema: z.ZodType<
|
|
33
|
+
SessionProperties,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
model_event: components.SessionPropertiesBatch$inboundSchema.optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"model_event": "modelEvent",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type SessionProperties$Outbound = {
|
|
46
|
+
model_event?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const SessionProperties$outboundSchema: z.ZodType<
|
|
51
|
+
SessionProperties$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
SessionProperties
|
|
54
|
+
> = z.object({
|
|
55
|
+
modelEvent: components.SessionPropertiesBatch$outboundSchema.optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
modelEvent: "model_event",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
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
|
+
export namespace SessionProperties$ {
|
|
67
|
+
/** @deprecated use `SessionProperties$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = SessionProperties$inboundSchema;
|
|
69
|
+
/** @deprecated use `SessionProperties$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = SessionProperties$outboundSchema;
|
|
71
|
+
/** @deprecated use `SessionProperties$Outbound` instead. */
|
|
72
|
+
export type Outbound = SessionProperties$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
26
75
|
/** @internal */
|
|
27
76
|
export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
28
77
|
CreateEventBatchRequestBody,
|
|
@@ -31,9 +80,11 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
31
80
|
> = z.object({
|
|
32
81
|
events: z.array(components.CreateEventRequest$inboundSchema),
|
|
33
82
|
is_single_session: z.boolean().optional(),
|
|
83
|
+
session_properties: z.lazy(() => SessionProperties$inboundSchema).optional(),
|
|
34
84
|
}).transform((v) => {
|
|
35
85
|
return remap$(v, {
|
|
36
86
|
"is_single_session": "isSingleSession",
|
|
87
|
+
"session_properties": "sessionProperties",
|
|
37
88
|
});
|
|
38
89
|
});
|
|
39
90
|
|
|
@@ -41,6 +92,7 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
41
92
|
export type CreateEventBatchRequestBody$Outbound = {
|
|
42
93
|
events: Array<components.CreateEventRequest$Outbound>;
|
|
43
94
|
is_single_session?: boolean | undefined;
|
|
95
|
+
session_properties?: SessionProperties$Outbound | undefined;
|
|
44
96
|
};
|
|
45
97
|
|
|
46
98
|
/** @internal */
|
|
@@ -51,9 +103,11 @@ export const CreateEventBatchRequestBody$outboundSchema: z.ZodType<
|
|
|
51
103
|
> = z.object({
|
|
52
104
|
events: z.array(components.CreateEventRequest$outboundSchema),
|
|
53
105
|
isSingleSession: z.boolean().optional(),
|
|
106
|
+
sessionProperties: z.lazy(() => SessionProperties$outboundSchema).optional(),
|
|
54
107
|
}).transform((v) => {
|
|
55
108
|
return remap$(v, {
|
|
56
109
|
isSingleSession: "is_single_session",
|
|
110
|
+
sessionProperties: "session_properties",
|
|
57
111
|
});
|
|
58
112
|
});
|
|
59
113
|
|
|
@@ -6,8 +6,17 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
|
|
9
|
+
export type CreateModelEventBatchSessionProperties = {
|
|
10
|
+
modelEvent?: components.SessionPropertiesBatch | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
9
13
|
export type CreateModelEventBatchRequestBody = {
|
|
10
14
|
modelEvents?: Array<components.CreateModelEvent> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Default is false. If true, all events will be associated with the same session
|
|
17
|
+
*/
|
|
18
|
+
isSingleSession?: boolean | undefined;
|
|
19
|
+
sessionProperties?: CreateModelEventBatchSessionProperties | undefined;
|
|
11
20
|
};
|
|
12
21
|
|
|
13
22
|
/**
|
|
@@ -18,6 +27,52 @@ export type CreateModelEventBatchResponseBody = {
|
|
|
18
27
|
success?: boolean | undefined;
|
|
19
28
|
};
|
|
20
29
|
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CreateModelEventBatchSessionProperties$inboundSchema: z.ZodType<
|
|
32
|
+
CreateModelEventBatchSessionProperties,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
model_event: components.SessionPropertiesBatch$inboundSchema.optional(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"model_event": "modelEvent",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type CreateModelEventBatchSessionProperties$Outbound = {
|
|
45
|
+
model_event?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const CreateModelEventBatchSessionProperties$outboundSchema: z.ZodType<
|
|
50
|
+
CreateModelEventBatchSessionProperties$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
CreateModelEventBatchSessionProperties
|
|
53
|
+
> = z.object({
|
|
54
|
+
modelEvent: components.SessionPropertiesBatch$outboundSchema.optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
modelEvent: "model_event",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace CreateModelEventBatchSessionProperties$ {
|
|
66
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema =
|
|
68
|
+
CreateModelEventBatchSessionProperties$inboundSchema;
|
|
69
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema =
|
|
71
|
+
CreateModelEventBatchSessionProperties$outboundSchema;
|
|
72
|
+
/** @deprecated use `CreateModelEventBatchSessionProperties$Outbound` instead. */
|
|
73
|
+
export type Outbound = CreateModelEventBatchSessionProperties$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
21
76
|
/** @internal */
|
|
22
77
|
export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
23
78
|
CreateModelEventBatchRequestBody,
|
|
@@ -25,15 +80,25 @@ export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
25
80
|
unknown
|
|
26
81
|
> = z.object({
|
|
27
82
|
model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
|
|
83
|
+
is_single_session: z.boolean().optional(),
|
|
84
|
+
session_properties: z.lazy(() =>
|
|
85
|
+
CreateModelEventBatchSessionProperties$inboundSchema
|
|
86
|
+
).optional(),
|
|
28
87
|
}).transform((v) => {
|
|
29
88
|
return remap$(v, {
|
|
30
89
|
"model_events": "modelEvents",
|
|
90
|
+
"is_single_session": "isSingleSession",
|
|
91
|
+
"session_properties": "sessionProperties",
|
|
31
92
|
});
|
|
32
93
|
});
|
|
33
94
|
|
|
34
95
|
/** @internal */
|
|
35
96
|
export type CreateModelEventBatchRequestBody$Outbound = {
|
|
36
97
|
model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
|
|
98
|
+
is_single_session?: boolean | undefined;
|
|
99
|
+
session_properties?:
|
|
100
|
+
| CreateModelEventBatchSessionProperties$Outbound
|
|
101
|
+
| undefined;
|
|
37
102
|
};
|
|
38
103
|
|
|
39
104
|
/** @internal */
|
|
@@ -43,9 +108,15 @@ export const CreateModelEventBatchRequestBody$outboundSchema: z.ZodType<
|
|
|
43
108
|
CreateModelEventBatchRequestBody
|
|
44
109
|
> = z.object({
|
|
45
110
|
modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
|
|
111
|
+
isSingleSession: z.boolean().optional(),
|
|
112
|
+
sessionProperties: z.lazy(() =>
|
|
113
|
+
CreateModelEventBatchSessionProperties$outboundSchema
|
|
114
|
+
).optional(),
|
|
46
115
|
}).transform((v) => {
|
|
47
116
|
return remap$(v, {
|
|
48
117
|
modelEvents: "model_events",
|
|
118
|
+
isSingleSession: "is_single_session",
|
|
119
|
+
sessionProperties: "session_properties",
|
|
49
120
|
});
|
|
50
121
|
});
|
|
51
122
|
|