honeyhive 1.0.11 → 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 +30 -32
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/createeventbatch.d.ts +2 -25
- package/models/operations/createeventbatch.d.ts.map +1 -1
- package/models/operations/createeventbatch.js +5 -30
- package/models/operations/createeventbatch.js.map +1 -1
- package/models/operations/createmodeleventbatch.d.ts +2 -25
- package/models/operations/createmodeleventbatch.d.ts.map +1 -1
- package/models/operations/createmodeleventbatch.js +5 -30
- package/models/operations/createmodeleventbatch.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/createeventbatch.ts +6 -52
- package/src/models/operations/createmodeleventbatch.ts +6 -60
package/README.md
CHANGED
|
@@ -319,39 +319,37 @@ async function run() {
|
|
|
319
319
|
},
|
|
320
320
|
],
|
|
321
321
|
sessionProperties: {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
"user": "google-oauth2|111840237613341303366",
|
|
350
|
-
},
|
|
351
|
-
metrics: {},
|
|
352
|
-
feedback: {},
|
|
353
|
-
metadata: {},
|
|
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",
|
|
354
349
|
},
|
|
350
|
+
metrics: {},
|
|
351
|
+
feedback: {},
|
|
352
|
+
metadata: {},
|
|
355
353
|
},
|
|
356
354
|
});
|
|
357
355
|
|
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.
|
|
30
|
-
readonly sdkVersion: "1.1.
|
|
29
|
+
readonly openapiDocVersion: "1.0.2";
|
|
30
|
+
readonly sdkVersion: "1.1.1";
|
|
31
31
|
readonly genVersion: "2.428.1";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.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.
|
|
32
|
-
sdkVersion: "1.1.
|
|
31
|
+
openapiDocVersion: "1.0.2",
|
|
32
|
+
sdkVersion: "1.1.1",
|
|
33
33
|
genVersion: "2.428.1",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.1.1 2.428.1 1.0.2 honeyhive",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,15 +1,12 @@
|
|
|
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
|
-
};
|
|
6
3
|
export type CreateEventBatchRequestBody = {
|
|
7
4
|
events: Array<components.CreateEventRequest>;
|
|
8
5
|
/**
|
|
9
6
|
* Default is false. If true, all events will be associated with the same session
|
|
10
7
|
*/
|
|
11
8
|
isSingleSession?: boolean | undefined;
|
|
12
|
-
sessionProperties?:
|
|
9
|
+
sessionProperties?: components.SessionPropertiesBatch | undefined;
|
|
13
10
|
};
|
|
14
11
|
/**
|
|
15
12
|
* Events created
|
|
@@ -20,32 +17,12 @@ export type CreateEventBatchResponseBody = {
|
|
|
20
17
|
success?: boolean | undefined;
|
|
21
18
|
};
|
|
22
19
|
/** @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 */
|
|
43
20
|
export declare const CreateEventBatchRequestBody$inboundSchema: z.ZodType<CreateEventBatchRequestBody, z.ZodTypeDef, unknown>;
|
|
44
21
|
/** @internal */
|
|
45
22
|
export type CreateEventBatchRequestBody$Outbound = {
|
|
46
23
|
events: Array<components.CreateEventRequest$Outbound>;
|
|
47
24
|
is_single_session?: boolean | undefined;
|
|
48
|
-
session_properties?:
|
|
25
|
+
session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
49
26
|
};
|
|
50
27
|
/** @internal */
|
|
51
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,
|
|
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,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC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ClD,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,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,42 +26,16 @@ 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 =
|
|
29
|
+
exports.CreateEventBatchResponseBody$ = exports.CreateEventBatchResponseBody$outboundSchema = exports.CreateEventBatchResponseBody$inboundSchema = exports.CreateEventBatchRequestBody$ = exports.CreateEventBatchRequestBody$outboundSchema = exports.CreateEventBatchRequestBody$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 */
|
|
61
34
|
exports.CreateEventBatchRequestBody$inboundSchema = z.object({
|
|
62
35
|
events: z.array(components.CreateEventRequest$inboundSchema),
|
|
63
36
|
is_single_session: z.boolean().optional(),
|
|
64
|
-
session_properties:
|
|
37
|
+
session_properties: components.SessionPropertiesBatch$inboundSchema
|
|
38
|
+
.optional(),
|
|
65
39
|
}).transform((v) => {
|
|
66
40
|
return (0, primitives_js_1.remap)(v, {
|
|
67
41
|
"is_single_session": "isSingleSession",
|
|
@@ -72,7 +46,8 @@ exports.CreateEventBatchRequestBody$inboundSchema = z.object({
|
|
|
72
46
|
exports.CreateEventBatchRequestBody$outboundSchema = z.object({
|
|
73
47
|
events: z.array(components.CreateEventRequest$outboundSchema),
|
|
74
48
|
isSingleSession: z.boolean().optional(),
|
|
75
|
-
sessionProperties:
|
|
49
|
+
sessionProperties: components.SessionPropertiesBatch$outboundSchema
|
|
50
|
+
.optional(),
|
|
76
51
|
}).transform((v) => {
|
|
77
52
|
return (0, primitives_js_1.remap)(v, {
|
|
78
53
|
isSingleSession: "is_single_session",
|
|
@@ -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;AAoBrD,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;IACzC,kBAAkB,EAAE,UAAU,CAAC,oCAAoC;SAChE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,iBAAiB;QACtC,oBAAoB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAC7D,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,iBAAiB,EAAE,UAAU,CAAC,qCAAqC;SAChE,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,qBAAM,EAAC,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"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import * as components from "../components/index.js";
|
|
3
|
-
export type CreateModelEventBatchSessionProperties = {
|
|
4
|
-
modelEvent?: components.SessionPropertiesBatch | undefined;
|
|
5
|
-
};
|
|
6
3
|
export type CreateModelEventBatchRequestBody = {
|
|
7
4
|
modelEvents?: Array<components.CreateModelEvent> | undefined;
|
|
8
5
|
/**
|
|
9
6
|
* Default is false. If true, all events will be associated with the same session
|
|
10
7
|
*/
|
|
11
8
|
isSingleSession?: boolean | undefined;
|
|
12
|
-
sessionProperties?:
|
|
9
|
+
sessionProperties?: components.SessionPropertiesBatch | undefined;
|
|
13
10
|
};
|
|
14
11
|
/**
|
|
15
12
|
* Model events created
|
|
@@ -19,32 +16,12 @@ export type CreateModelEventBatchResponseBody = {
|
|
|
19
16
|
success?: boolean | undefined;
|
|
20
17
|
};
|
|
21
18
|
/** @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 */
|
|
42
19
|
export declare const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<CreateModelEventBatchRequestBody, z.ZodTypeDef, unknown>;
|
|
43
20
|
/** @internal */
|
|
44
21
|
export type CreateModelEventBatchRequestBody$Outbound = {
|
|
45
22
|
model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
|
|
46
23
|
is_single_session?: boolean | undefined;
|
|
47
|
-
session_properties?:
|
|
24
|
+
session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
48
25
|
};
|
|
49
26
|
/** @internal */
|
|
50
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,OAA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FAAgF;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,42 +26,16 @@ 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 =
|
|
29
|
+
exports.CreateModelEventBatchResponseBody$ = exports.CreateModelEventBatchResponseBody$outboundSchema = exports.CreateModelEventBatchResponseBody$inboundSchema = exports.CreateModelEventBatchRequestBody$ = exports.CreateModelEventBatchRequestBody$outboundSchema = exports.CreateModelEventBatchRequestBody$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 */
|
|
61
34
|
exports.CreateModelEventBatchRequestBody$inboundSchema = z.object({
|
|
62
35
|
model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
|
|
63
36
|
is_single_session: z.boolean().optional(),
|
|
64
|
-
session_properties:
|
|
37
|
+
session_properties: components.SessionPropertiesBatch$inboundSchema
|
|
38
|
+
.optional(),
|
|
65
39
|
}).transform((v) => {
|
|
66
40
|
return (0, primitives_js_1.remap)(v, {
|
|
67
41
|
"model_events": "modelEvents",
|
|
@@ -73,7 +47,8 @@ exports.CreateModelEventBatchRequestBody$inboundSchema = z.object({
|
|
|
73
47
|
exports.CreateModelEventBatchRequestBody$outboundSchema = z.object({
|
|
74
48
|
modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
|
|
75
49
|
isSingleSession: z.boolean().optional(),
|
|
76
|
-
sessionProperties:
|
|
50
|
+
sessionProperties: components.SessionPropertiesBatch$outboundSchema
|
|
51
|
+
.optional(),
|
|
77
52
|
}).transform((v) => {
|
|
78
53
|
return (0, primitives_js_1.remap)(v, {
|
|
79
54
|
modelEvents: "model_events",
|
|
@@ -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;AAmBrD,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;IAC3E,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAA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,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
|
@@ -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.
|
|
57
|
-
sdkVersion: "1.1.
|
|
56
|
+
openapiDocVersion: "1.0.2",
|
|
57
|
+
sdkVersion: "1.1.1",
|
|
58
58
|
genVersion: "2.428.1",
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 1.1.1 2.428.1 1.0.2 honeyhive",
|
|
60
60
|
} as const;
|
|
@@ -6,17 +6,13 @@ 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
|
-
|
|
13
9
|
export type CreateEventBatchRequestBody = {
|
|
14
10
|
events: Array<components.CreateEventRequest>;
|
|
15
11
|
/**
|
|
16
12
|
* Default is false. If true, all events will be associated with the same session
|
|
17
13
|
*/
|
|
18
14
|
isSingleSession?: boolean | undefined;
|
|
19
|
-
sessionProperties?:
|
|
15
|
+
sessionProperties?: components.SessionPropertiesBatch | undefined;
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
/**
|
|
@@ -28,50 +24,6 @@ export type CreateEventBatchResponseBody = {
|
|
|
28
24
|
success?: boolean | undefined;
|
|
29
25
|
};
|
|
30
26
|
|
|
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
|
-
|
|
75
27
|
/** @internal */
|
|
76
28
|
export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
77
29
|
CreateEventBatchRequestBody,
|
|
@@ -80,7 +32,8 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
80
32
|
> = z.object({
|
|
81
33
|
events: z.array(components.CreateEventRequest$inboundSchema),
|
|
82
34
|
is_single_session: z.boolean().optional(),
|
|
83
|
-
session_properties:
|
|
35
|
+
session_properties: components.SessionPropertiesBatch$inboundSchema
|
|
36
|
+
.optional(),
|
|
84
37
|
}).transform((v) => {
|
|
85
38
|
return remap$(v, {
|
|
86
39
|
"is_single_session": "isSingleSession",
|
|
@@ -92,7 +45,7 @@ export const CreateEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
92
45
|
export type CreateEventBatchRequestBody$Outbound = {
|
|
93
46
|
events: Array<components.CreateEventRequest$Outbound>;
|
|
94
47
|
is_single_session?: boolean | undefined;
|
|
95
|
-
session_properties?:
|
|
48
|
+
session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
96
49
|
};
|
|
97
50
|
|
|
98
51
|
/** @internal */
|
|
@@ -103,7 +56,8 @@ export const CreateEventBatchRequestBody$outboundSchema: z.ZodType<
|
|
|
103
56
|
> = z.object({
|
|
104
57
|
events: z.array(components.CreateEventRequest$outboundSchema),
|
|
105
58
|
isSingleSession: z.boolean().optional(),
|
|
106
|
-
sessionProperties:
|
|
59
|
+
sessionProperties: components.SessionPropertiesBatch$outboundSchema
|
|
60
|
+
.optional(),
|
|
107
61
|
}).transform((v) => {
|
|
108
62
|
return remap$(v, {
|
|
109
63
|
isSingleSession: "is_single_session",
|
|
@@ -6,17 +6,13 @@ 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
|
-
|
|
13
9
|
export type CreateModelEventBatchRequestBody = {
|
|
14
10
|
modelEvents?: Array<components.CreateModelEvent> | undefined;
|
|
15
11
|
/**
|
|
16
12
|
* Default is false. If true, all events will be associated with the same session
|
|
17
13
|
*/
|
|
18
14
|
isSingleSession?: boolean | undefined;
|
|
19
|
-
sessionProperties?:
|
|
15
|
+
sessionProperties?: components.SessionPropertiesBatch | undefined;
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
/**
|
|
@@ -27,52 +23,6 @@ export type CreateModelEventBatchResponseBody = {
|
|
|
27
23
|
success?: boolean | undefined;
|
|
28
24
|
};
|
|
29
25
|
|
|
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
|
-
|
|
76
26
|
/** @internal */
|
|
77
27
|
export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
78
28
|
CreateModelEventBatchRequestBody,
|
|
@@ -81,9 +31,8 @@ export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
81
31
|
> = z.object({
|
|
82
32
|
model_events: z.array(components.CreateModelEvent$inboundSchema).optional(),
|
|
83
33
|
is_single_session: z.boolean().optional(),
|
|
84
|
-
session_properties:
|
|
85
|
-
|
|
86
|
-
).optional(),
|
|
34
|
+
session_properties: components.SessionPropertiesBatch$inboundSchema
|
|
35
|
+
.optional(),
|
|
87
36
|
}).transform((v) => {
|
|
88
37
|
return remap$(v, {
|
|
89
38
|
"model_events": "modelEvents",
|
|
@@ -96,9 +45,7 @@ export const CreateModelEventBatchRequestBody$inboundSchema: z.ZodType<
|
|
|
96
45
|
export type CreateModelEventBatchRequestBody$Outbound = {
|
|
97
46
|
model_events?: Array<components.CreateModelEvent$Outbound> | undefined;
|
|
98
47
|
is_single_session?: boolean | undefined;
|
|
99
|
-
session_properties?:
|
|
100
|
-
| CreateModelEventBatchSessionProperties$Outbound
|
|
101
|
-
| undefined;
|
|
48
|
+
session_properties?: components.SessionPropertiesBatch$Outbound | undefined;
|
|
102
49
|
};
|
|
103
50
|
|
|
104
51
|
/** @internal */
|
|
@@ -109,9 +56,8 @@ export const CreateModelEventBatchRequestBody$outboundSchema: z.ZodType<
|
|
|
109
56
|
> = z.object({
|
|
110
57
|
modelEvents: z.array(components.CreateModelEvent$outboundSchema).optional(),
|
|
111
58
|
isSingleSession: z.boolean().optional(),
|
|
112
|
-
sessionProperties:
|
|
113
|
-
|
|
114
|
-
).optional(),
|
|
59
|
+
sessionProperties: components.SessionPropertiesBatch$outboundSchema
|
|
60
|
+
.optional(),
|
|
115
61
|
}).transform((v) => {
|
|
116
62
|
return remap$(v, {
|
|
117
63
|
modelEvents: "model_events",
|