@meetkai/mka1 0.54.80 → 0.54.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/bin/mcp-server.js +123 -31
  2. package/bin/mcp-server.js.map +19 -15
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/computerusetooldefinition.d.ts +1 -1
  8. package/dist/commonjs/models/components/generation.d.ts +8 -13
  9. package/dist/commonjs/models/components/generation.d.ts.map +1 -1
  10. package/dist/commonjs/models/components/generation.js +9 -6
  11. package/dist/commonjs/models/components/generation.js.map +1 -1
  12. package/dist/commonjs/models/components/generationcreated.d.ts +8 -13
  13. package/dist/commonjs/models/components/generationcreated.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/generationcreated.js +9 -6
  15. package/dist/commonjs/models/components/generationcreated.js.map +1 -1
  16. package/dist/commonjs/models/components/generationmodelusage.d.ts +21 -0
  17. package/dist/commonjs/models/components/generationmodelusage.d.ts.map +1 -0
  18. package/dist/commonjs/models/components/generationmodelusage.js +73 -0
  19. package/dist/commonjs/models/components/generationmodelusage.js.map +1 -0
  20. package/dist/commonjs/models/components/generationreason.d.ts +28 -0
  21. package/dist/commonjs/models/components/generationreason.d.ts.map +1 -0
  22. package/dist/commonjs/models/components/generationreason.js +62 -0
  23. package/dist/commonjs/models/components/generationreason.js.map +1 -0
  24. package/dist/commonjs/models/components/generationstate.d.ts +17 -0
  25. package/dist/commonjs/models/components/generationstate.d.ts.map +1 -0
  26. package/dist/commonjs/models/components/generationstate.js +54 -0
  27. package/dist/commonjs/models/components/generationstate.js.map +1 -0
  28. package/dist/commonjs/models/components/generationusage.d.ts +31 -0
  29. package/dist/commonjs/models/components/generationusage.d.ts.map +1 -0
  30. package/dist/commonjs/models/components/generationusage.js +78 -0
  31. package/dist/commonjs/models/components/generationusage.js.map +1 -0
  32. package/dist/commonjs/models/components/hostedtoolchoice.d.ts +1 -1
  33. package/dist/commonjs/models/components/hostedtooldefinition.d.ts +1 -1
  34. package/dist/commonjs/models/components/index.d.ts +4 -0
  35. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/index.js +4 -0
  37. package/dist/commonjs/models/components/index.js.map +1 -1
  38. package/dist/commonjs/models/components/livekittokenrequest.d.ts +1 -1
  39. package/dist/commonjs/models/components/responsescreaterequest.d.ts +1 -1
  40. package/dist/commonjs/models/operations/listgenerationsapiv1datasetsgenerationsget.d.ts +2 -15
  41. package/dist/commonjs/models/operations/listgenerationsapiv1datasetsgenerationsget.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/listgenerationsapiv1datasetsgenerationsget.js +4 -16
  43. package/dist/commonjs/models/operations/listgenerationsapiv1datasetsgenerationsget.js.map +1 -1
  44. package/dist/commonjs/react-query/datasetsListGenerations.core.d.ts +1 -1
  45. package/dist/commonjs/react-query/datasetsListGenerations.core.d.ts.map +1 -1
  46. package/dist/commonjs/react-query/datasetsListGenerations.d.ts +3 -2
  47. package/dist/commonjs/react-query/datasetsListGenerations.d.ts.map +1 -1
  48. package/dist/commonjs/react-query/datasetsListGenerations.js.map +1 -1
  49. package/dist/esm/lib/config.d.ts +2 -2
  50. package/dist/esm/lib/config.js +2 -2
  51. package/dist/esm/mcp-server/mcp-server.js +1 -1
  52. package/dist/esm/mcp-server/server.js +1 -1
  53. package/dist/esm/models/components/computerusetooldefinition.d.ts +1 -1
  54. package/dist/esm/models/components/generation.d.ts +8 -13
  55. package/dist/esm/models/components/generation.d.ts.map +1 -1
  56. package/dist/esm/models/components/generation.js +9 -6
  57. package/dist/esm/models/components/generation.js.map +1 -1
  58. package/dist/esm/models/components/generationcreated.d.ts +8 -13
  59. package/dist/esm/models/components/generationcreated.d.ts.map +1 -1
  60. package/dist/esm/models/components/generationcreated.js +9 -6
  61. package/dist/esm/models/components/generationcreated.js.map +1 -1
  62. package/dist/esm/models/components/generationmodelusage.d.ts +21 -0
  63. package/dist/esm/models/components/generationmodelusage.d.ts.map +1 -0
  64. package/dist/esm/models/components/generationmodelusage.js +35 -0
  65. package/dist/esm/models/components/generationmodelusage.js.map +1 -0
  66. package/dist/esm/models/components/generationreason.d.ts +28 -0
  67. package/dist/esm/models/components/generationreason.d.ts.map +1 -0
  68. package/dist/esm/models/components/generationreason.js +24 -0
  69. package/dist/esm/models/components/generationreason.js.map +1 -0
  70. package/dist/esm/models/components/generationstate.d.ts +17 -0
  71. package/dist/esm/models/components/generationstate.d.ts.map +1 -0
  72. package/dist/esm/models/components/generationstate.js +18 -0
  73. package/dist/esm/models/components/generationstate.js.map +1 -0
  74. package/dist/esm/models/components/generationusage.d.ts +31 -0
  75. package/dist/esm/models/components/generationusage.d.ts.map +1 -0
  76. package/dist/esm/models/components/generationusage.js +40 -0
  77. package/dist/esm/models/components/generationusage.js.map +1 -0
  78. package/dist/esm/models/components/hostedtoolchoice.d.ts +1 -1
  79. package/dist/esm/models/components/hostedtooldefinition.d.ts +1 -1
  80. package/dist/esm/models/components/index.d.ts +4 -0
  81. package/dist/esm/models/components/index.d.ts.map +1 -1
  82. package/dist/esm/models/components/index.js +4 -0
  83. package/dist/esm/models/components/index.js.map +1 -1
  84. package/dist/esm/models/components/livekittokenrequest.d.ts +1 -1
  85. package/dist/esm/models/components/responsescreaterequest.d.ts +1 -1
  86. package/dist/esm/models/operations/listgenerationsapiv1datasetsgenerationsget.d.ts +2 -15
  87. package/dist/esm/models/operations/listgenerationsapiv1datasetsgenerationsget.d.ts.map +1 -1
  88. package/dist/esm/models/operations/listgenerationsapiv1datasetsgenerationsget.js +3 -15
  89. package/dist/esm/models/operations/listgenerationsapiv1datasetsgenerationsget.js.map +1 -1
  90. package/dist/esm/react-query/datasetsListGenerations.core.d.ts +1 -1
  91. package/dist/esm/react-query/datasetsListGenerations.core.d.ts.map +1 -1
  92. package/dist/esm/react-query/datasetsListGenerations.d.ts +3 -2
  93. package/dist/esm/react-query/datasetsListGenerations.d.ts.map +1 -1
  94. package/dist/esm/react-query/datasetsListGenerations.js.map +1 -1
  95. package/jsr.json +1 -1
  96. package/package.json +1 -1
  97. package/src/lib/config.ts +2 -2
  98. package/src/mcp-server/mcp-server.ts +1 -1
  99. package/src/mcp-server/server.ts +1 -1
  100. package/src/models/components/computerusetooldefinition.ts +1 -1
  101. package/src/models/components/generation.ts +28 -11
  102. package/src/models/components/generationcreated.ts +28 -11
  103. package/src/models/components/generationmodelusage.ts +70 -0
  104. package/src/models/components/generationreason.ts +62 -0
  105. package/src/models/components/generationstate.ts +26 -0
  106. package/src/models/components/generationusage.ts +83 -0
  107. package/src/models/components/hostedtoolchoice.ts +1 -1
  108. package/src/models/components/hostedtooldefinition.ts +1 -1
  109. package/src/models/components/index.ts +4 -0
  110. package/src/models/components/livekittokenrequest.ts +1 -1
  111. package/src/models/components/responsescreaterequest.ts +1 -1
  112. package/src/models/operations/listgenerationsapiv1datasetsgenerationsget.ts +4 -22
  113. package/src/react-query/datasetsListGenerations.core.ts +1 -1
  114. package/src/react-query/datasetsListGenerations.ts +3 -2
@@ -13,6 +13,23 @@ import {
13
13
  CreatedBy$Outbound,
14
14
  CreatedBy$outboundSchema,
15
15
  } from "./createdby.js";
16
+ import {
17
+ GenerationReason,
18
+ GenerationReason$inboundSchema,
19
+ GenerationReason$Outbound,
20
+ GenerationReason$outboundSchema,
21
+ } from "./generationreason.js";
22
+ import {
23
+ GenerationState,
24
+ GenerationState$inboundSchema,
25
+ GenerationState$outboundSchema,
26
+ } from "./generationstate.js";
27
+ import {
28
+ GenerationUsage,
29
+ GenerationUsage$inboundSchema,
30
+ GenerationUsage$Outbound,
31
+ GenerationUsage$outboundSchema,
32
+ } from "./generationusage.js";
16
33
  import {
17
34
  GeneratorRef,
18
35
  GeneratorRef$inboundSchema,
@@ -46,8 +63,8 @@ import {
46
63
 
47
64
  export type GenerationCreated = {
48
65
  id: string;
49
- state: string;
50
- reason: { [k: string]: any } | null;
66
+ state: GenerationState;
67
+ reason: GenerationReason | null;
51
68
  generator: GeneratorRef;
52
69
  params: { [k: string]: any };
53
70
  paramsHash: string;
@@ -63,7 +80,7 @@ export type GenerationCreated = {
63
80
  * number (MK1-722, step 1 of MK1-719). The two must otherwise agree field for field.
64
81
  */
65
82
  limits: Limits;
66
- usage: { [k: string]: any } | null;
83
+ usage: GenerationUsage | null;
67
84
  job: JobRef | null;
68
85
  name: string | null;
69
86
  derivedFrom: Array<string>;
@@ -81,8 +98,8 @@ export const GenerationCreated$inboundSchema: z.ZodType<
81
98
  unknown
82
99
  > = z.object({
83
100
  id: z.string(),
84
- state: z.string(),
85
- reason: z.nullable(z.record(z.any())),
101
+ state: GenerationState$inboundSchema,
102
+ reason: z.nullable(GenerationReason$inboundSchema),
86
103
  generator: GeneratorRef$inboundSchema,
87
104
  params: z.record(z.any()),
88
105
  params_hash: z.string(),
@@ -91,7 +108,7 @@ export const GenerationCreated$inboundSchema: z.ZodType<
91
108
  counts: z.nullable(z.record(z.number().int())),
92
109
  llm: LlmRef$inboundSchema,
93
110
  limits: Limits$inboundSchema,
94
- usage: z.nullable(z.record(z.any())),
111
+ usage: z.nullable(GenerationUsage$inboundSchema),
95
112
  job: z.nullable(JobRef$inboundSchema),
96
113
  name: z.nullable(z.string()),
97
114
  derived_from: z.array(z.string()),
@@ -119,7 +136,7 @@ export const GenerationCreated$inboundSchema: z.ZodType<
119
136
  export type GenerationCreated$Outbound = {
120
137
  id: string;
121
138
  state: string;
122
- reason: { [k: string]: any } | null;
139
+ reason: GenerationReason$Outbound | null;
123
140
  generator: GeneratorRef$Outbound;
124
141
  params: { [k: string]: any };
125
142
  params_hash: string;
@@ -128,7 +145,7 @@ export type GenerationCreated$Outbound = {
128
145
  counts: { [k: string]: number } | null;
129
146
  llm: LlmRef$Outbound;
130
147
  limits: Limits$Outbound;
131
- usage: { [k: string]: any } | null;
148
+ usage: GenerationUsage$Outbound | null;
132
149
  job: JobRef$Outbound | null;
133
150
  name: string | null;
134
151
  derived_from: Array<string>;
@@ -146,8 +163,8 @@ export const GenerationCreated$outboundSchema: z.ZodType<
146
163
  GenerationCreated
147
164
  > = z.object({
148
165
  id: z.string(),
149
- state: z.string(),
150
- reason: z.nullable(z.record(z.any())),
166
+ state: GenerationState$outboundSchema,
167
+ reason: z.nullable(GenerationReason$outboundSchema),
151
168
  generator: GeneratorRef$outboundSchema,
152
169
  params: z.record(z.any()),
153
170
  paramsHash: z.string(),
@@ -156,7 +173,7 @@ export const GenerationCreated$outboundSchema: z.ZodType<
156
173
  counts: z.nullable(z.record(z.number().int())),
157
174
  llm: LlmRef$outboundSchema,
158
175
  limits: Limits$outboundSchema,
159
- usage: z.nullable(z.record(z.any())),
176
+ usage: z.nullable(GenerationUsage$outboundSchema),
160
177
  job: z.nullable(JobRef$outboundSchema),
161
178
  name: z.nullable(z.string()),
162
179
  derivedFrom: z.array(z.string()),
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GenerationModelUsage = {
12
+ calls?: number | undefined;
13
+ inputTokens?: number | undefined;
14
+ outputTokens?: number | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const GenerationModelUsage$inboundSchema: z.ZodType<
19
+ GenerationModelUsage,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ calls: z.number().int().default(0),
24
+ input_tokens: z.number().int().default(0),
25
+ output_tokens: z.number().int().default(0),
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "input_tokens": "inputTokens",
29
+ "output_tokens": "outputTokens",
30
+ });
31
+ });
32
+ /** @internal */
33
+ export type GenerationModelUsage$Outbound = {
34
+ calls: number;
35
+ input_tokens: number;
36
+ output_tokens: number;
37
+ };
38
+
39
+ /** @internal */
40
+ export const GenerationModelUsage$outboundSchema: z.ZodType<
41
+ GenerationModelUsage$Outbound,
42
+ z.ZodTypeDef,
43
+ GenerationModelUsage
44
+ > = z.object({
45
+ calls: z.number().int().default(0),
46
+ inputTokens: z.number().int().default(0),
47
+ outputTokens: z.number().int().default(0),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ inputTokens: "input_tokens",
51
+ outputTokens: "output_tokens",
52
+ });
53
+ });
54
+
55
+ export function generationModelUsageToJSON(
56
+ generationModelUsage: GenerationModelUsage,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GenerationModelUsage$outboundSchema.parse(generationModelUsage),
60
+ );
61
+ }
62
+ export function generationModelUsageFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<GenerationModelUsage, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => GenerationModelUsage$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'GenerationModelUsage' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * api.md §3 `reason`.
12
+ */
13
+ export type GenerationReason = {
14
+ code: string;
15
+ message: string;
16
+ details?: { [k: string]: any } | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const GenerationReason$inboundSchema: z.ZodType<
21
+ GenerationReason,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ code: z.string(),
26
+ message: z.string(),
27
+ details: z.record(z.any()).optional(),
28
+ });
29
+ /** @internal */
30
+ export type GenerationReason$Outbound = {
31
+ code: string;
32
+ message: string;
33
+ details?: { [k: string]: any } | undefined;
34
+ };
35
+
36
+ /** @internal */
37
+ export const GenerationReason$outboundSchema: z.ZodType<
38
+ GenerationReason$Outbound,
39
+ z.ZodTypeDef,
40
+ GenerationReason
41
+ > = z.object({
42
+ code: z.string(),
43
+ message: z.string(),
44
+ details: z.record(z.any()).optional(),
45
+ });
46
+
47
+ export function generationReasonToJSON(
48
+ generationReason: GenerationReason,
49
+ ): string {
50
+ return JSON.stringify(
51
+ GenerationReason$outboundSchema.parse(generationReason),
52
+ );
53
+ }
54
+ export function generationReasonFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<GenerationReason, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => GenerationReason$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'GenerationReason' from JSON`,
61
+ );
62
+ }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const GenerationState = {
9
+ Pending: "pending",
10
+ Running: "running",
11
+ Publishing: "publishing",
12
+ Succeeded: "succeeded",
13
+ Failed: "failed",
14
+ Cancelling: "cancelling",
15
+ Cancelled: "cancelled",
16
+ } as const;
17
+ export type GenerationState = ClosedEnum<typeof GenerationState>;
18
+
19
+ /** @internal */
20
+ export const GenerationState$inboundSchema: z.ZodNativeEnum<
21
+ typeof GenerationState
22
+ > = z.nativeEnum(GenerationState);
23
+ /** @internal */
24
+ export const GenerationState$outboundSchema: z.ZodNativeEnum<
25
+ typeof GenerationState
26
+ > = GenerationState$inboundSchema;
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ GenerationModelUsage,
12
+ GenerationModelUsage$inboundSchema,
13
+ GenerationModelUsage$Outbound,
14
+ GenerationModelUsage$outboundSchema,
15
+ } from "./generationmodelusage.js";
16
+
17
+ /**
18
+ * api.md §3 `usage`, the shape of the runtime's `llm.Usage`.
19
+ */
20
+ export type GenerationUsage = {
21
+ calls?: number | undefined;
22
+ inputTokens?: number | undefined;
23
+ outputTokens?: number | undefined;
24
+ byModel?: { [k: string]: GenerationModelUsage } | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const GenerationUsage$inboundSchema: z.ZodType<
29
+ GenerationUsage,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ calls: z.number().int().default(0),
34
+ input_tokens: z.number().int().default(0),
35
+ output_tokens: z.number().int().default(0),
36
+ by_model: z.record(GenerationModelUsage$inboundSchema).optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "input_tokens": "inputTokens",
40
+ "output_tokens": "outputTokens",
41
+ "by_model": "byModel",
42
+ });
43
+ });
44
+ /** @internal */
45
+ export type GenerationUsage$Outbound = {
46
+ calls: number;
47
+ input_tokens: number;
48
+ output_tokens: number;
49
+ by_model?: { [k: string]: GenerationModelUsage$Outbound } | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const GenerationUsage$outboundSchema: z.ZodType<
54
+ GenerationUsage$Outbound,
55
+ z.ZodTypeDef,
56
+ GenerationUsage
57
+ > = z.object({
58
+ calls: z.number().int().default(0),
59
+ inputTokens: z.number().int().default(0),
60
+ outputTokens: z.number().int().default(0),
61
+ byModel: z.record(GenerationModelUsage$outboundSchema).optional(),
62
+ }).transform((v) => {
63
+ return remap$(v, {
64
+ inputTokens: "input_tokens",
65
+ outputTokens: "output_tokens",
66
+ byModel: "by_model",
67
+ });
68
+ });
69
+
70
+ export function generationUsageToJSON(
71
+ generationUsage: GenerationUsage,
72
+ ): string {
73
+ return JSON.stringify(GenerationUsage$outboundSchema.parse(generationUsage));
74
+ }
75
+ export function generationUsageFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<GenerationUsage, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => GenerationUsage$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'GenerationUsage' from JSON`,
82
+ );
83
+ }
@@ -18,7 +18,7 @@ export const HostedToolChoiceType = {
18
18
  export type HostedToolChoiceType = ClosedEnum<typeof HostedToolChoiceType>;
19
19
 
20
20
  /**
21
- * Hosted tool choice: Forces a specific built-in hosted tool type.
21
+ * Hosted tool choice: Forces a specific built-in hosted tool type. computer_use_preview is not supported and is rejected with a 400.
22
22
  */
23
23
  export type HostedToolChoice = {
24
24
  type: HostedToolChoiceType;
@@ -20,7 +20,7 @@ export type HostedToolDefinitionType = ClosedEnum<
20
20
  >;
21
21
 
22
22
  /**
23
- * Hosted tool definition: Shorthand hosted-tool selector for built-in tool types. This is a compatibility form that overlaps with the detailed per-tool schemas.
23
+ * Hosted tool definition: Shorthand hosted-tool selector for built-in tool types. This is a compatibility form that overlaps with the detailed per-tool schemas. computer_use_preview is not supported and is rejected with a 400.
24
24
  */
25
25
  export type HostedToolDefinition = {
26
26
  type: HostedToolDefinitionType;
@@ -355,6 +355,10 @@ export * from "./functiontoolchoice.js";
355
355
  export * from "./functiontooldefinition.js";
356
356
  export * from "./generation.js";
357
357
  export * from "./generationcreated.js";
358
+ export * from "./generationmodelusage.js";
359
+ export * from "./generationreason.js";
360
+ export * from "./generationstate.js";
361
+ export * from "./generationusage.js";
358
362
  export * from "./generatordetail.js";
359
363
  export * from "./generatorlist.js";
360
364
  export * from "./generatorref.js";
@@ -205,7 +205,7 @@ export type Llm = {
205
205
  previousResponseId?: string | undefined;
206
206
  prompt?: PromptTemplate | undefined;
207
207
  /**
208
- * Array of tool definitions that the agent can use during response generation. Supports built-in tools (web search, file search, code interpreter, computer use, image generation) and custom tools (functions, MCP, local shell). Caller shell network_policy and non-null code interpreter memory_limit are unsupported and return a validation error.
208
+ * Array of tool definitions that the agent can use during response generation. Supports built-in tools (web search, file search, code interpreter, image generation) and custom tools (functions, MCP, local shell). Caller shell network_policy and non-null code interpreter memory_limit are unsupported and return a validation error. computer_use_preview is not supported: requests that include it are rejected with a 400 invalid_request_error.
209
209
  */
210
210
  tools?:
211
211
  | Array<
@@ -316,7 +316,7 @@ export type ResponsesCreateRequest = {
316
316
  */
317
317
  webhookSecret?: string | undefined;
318
318
  /**
319
- * Array of tool definitions that the agent can use during response generation. Supports built-in tools (web search, file search, code interpreter, computer use, image generation) and custom tools (functions, MCP, local shell). Caller shell network_policy and non-null code interpreter memory_limit are unsupported and return a validation error.
319
+ * Array of tool definitions that the agent can use during response generation. Supports built-in tools (web search, file search, code interpreter, image generation) and custom tools (functions, MCP, local shell). Caller shell network_policy and non-null code interpreter memory_limit are unsupported and return a validation error. computer_use_preview is not supported: requests that include it are rejected with a 400 invalid_request_error.
320
320
  */
321
321
  tools?:
322
322
  | Array<
@@ -7,19 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
- export const State = {
13
- Pending: "pending",
14
- Running: "running",
15
- Publishing: "publishing",
16
- Succeeded: "succeeded",
17
- Failed: "failed",
18
- Cancelling: "cancelling",
19
- Cancelled: "cancelled",
20
- } as const;
21
- export type State = ClosedEnum<typeof State>;
22
-
23
13
  export const ListGenerationsApiV1DatasetsGenerationsGetQueryParamOrder = {
24
14
  Asc: "asc",
25
15
  Desc: "desc",
@@ -28,7 +18,7 @@ export type ListGenerationsApiV1DatasetsGenerationsGetQueryParamOrder =
28
18
  ClosedEnum<typeof ListGenerationsApiV1DatasetsGenerationsGetQueryParamOrder>;
29
19
 
30
20
  export type ListGenerationsApiV1DatasetsGenerationsGetRequest = {
31
- state?: State | null | undefined;
21
+ state?: components.GenerationState | null | undefined;
32
22
  generatorId?: string | null | undefined;
33
23
  outputRepo?: string | null | undefined;
34
24
  createdAfter?: Date | null | undefined;
@@ -42,14 +32,6 @@ export type ListGenerationsApiV1DatasetsGenerationsGetRequest = {
42
32
  xOnBehalfOf?: string | undefined;
43
33
  };
44
34
 
45
- /** @internal */
46
- export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
47
- State,
48
- );
49
- /** @internal */
50
- export const State$outboundSchema: z.ZodNativeEnum<typeof State> =
51
- State$inboundSchema;
52
-
53
35
  /** @internal */
54
36
  export const ListGenerationsApiV1DatasetsGenerationsGetQueryParamOrder$inboundSchema:
55
37
  z.ZodNativeEnum<
@@ -68,7 +50,7 @@ export const ListGenerationsApiV1DatasetsGenerationsGetRequest$inboundSchema:
68
50
  z.ZodTypeDef,
69
51
  unknown
70
52
  > = z.object({
71
- state: z.nullable(State$inboundSchema).optional(),
53
+ state: z.nullable(components.GenerationState$inboundSchema).optional(),
72
54
  generator_id: z.nullable(z.string()).optional(),
73
55
  output_repo: z.nullable(z.string()).optional(),
74
56
  created_after: z.nullable(
@@ -112,7 +94,7 @@ export const ListGenerationsApiV1DatasetsGenerationsGetRequest$outboundSchema:
112
94
  z.ZodTypeDef,
113
95
  ListGenerationsApiV1DatasetsGenerationsGetRequest
114
96
  > = z.object({
115
- state: z.nullable(State$outboundSchema).optional(),
97
+ state: z.nullable(components.GenerationState$outboundSchema).optional(),
116
98
  generatorId: z.nullable(z.string()).optional(),
117
99
  outputRepo: z.nullable(z.string()).optional(),
118
100
  createdAfter: z.nullable(z.date().transform(v => v.toISOString()))
@@ -78,7 +78,7 @@ export function buildDatasetsListGenerationsQuery(
78
78
 
79
79
  export function queryKeyDatasetsListGenerations(
80
80
  parameters: {
81
- state?: operations.State | null | undefined;
81
+ state?: components.GenerationState | null | undefined;
82
82
  generatorId?: string | null | undefined;
83
83
  outputRepo?: string | null | undefined;
84
84
  createdAfter?: Date | null | undefined;
@@ -10,6 +10,7 @@ import {
10
10
  useSuspenseQuery,
11
11
  UseSuspenseQueryResult,
12
12
  } from "@tanstack/react-query";
13
+ import * as components from "../models/components/index.js";
13
14
  import {
14
15
  ConnectionError,
15
16
  InvalidRequestError,
@@ -104,7 +105,7 @@ export function setDatasetsListGenerationsData(
104
105
  client: QueryClient,
105
106
  queryKeyBase: [
106
107
  parameters: {
107
- state?: operations.State | null | undefined;
108
+ state?: components.GenerationState | null | undefined;
108
109
  generatorId?: string | null | undefined;
109
110
  outputRepo?: string | null | undefined;
110
111
  createdAfter?: Date | null | undefined;
@@ -128,7 +129,7 @@ export function invalidateDatasetsListGenerations(
128
129
  client: QueryClient,
129
130
  queryKeyBase: TupleToPrefixes<
130
131
  [parameters: {
131
- state?: operations.State | null | undefined;
132
+ state?: components.GenerationState | null | undefined;
132
133
  generatorId?: string | null | undefined;
133
134
  outputRepo?: string | null | undefined;
134
135
  createdAfter?: Date | null | undefined;