@mutagent/sdk 0.2.26 → 0.2.29

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 (212) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/models/index.d.ts +4 -6
  4. package/dist/commonjs/models/index.d.ts.map +1 -1
  5. package/dist/commonjs/models/index.js +4 -6
  6. package/dist/commonjs/models/index.js.map +1 -1
  7. package/dist/commonjs/models/name-description-is-latest.d.ts +55 -0
  8. package/dist/commonjs/models/name-description-is-latest.d.ts.map +1 -0
  9. package/dist/commonjs/models/{schemadefaul18.js → name-description-is-latest.js} +17 -13
  10. package/dist/commonjs/models/name-description-is-latest.js.map +1 -0
  11. package/dist/commonjs/models/name-description-version.d.ts +6 -33
  12. package/dist/commonjs/models/name-description-version.d.ts.map +1 -1
  13. package/dist/commonjs/models/name-description-version.js +4 -22
  14. package/dist/commonjs/models/name-description-version.js.map +1 -1
  15. package/dist/commonjs/models/name-provider-api-key.d.ts +3 -2
  16. package/dist/commonjs/models/name-provider-api-key.d.ts.map +1 -1
  17. package/dist/commonjs/models/name-provider-api-key.js +2 -1
  18. package/dist/commonjs/models/name-provider-api-key.js.map +1 -1
  19. package/dist/commonjs/models/new-version-changes.d.ts +3 -3
  20. package/dist/commonjs/models/new-version-changes.d.ts.map +1 -1
  21. package/dist/commonjs/models/new-version-changes.js +2 -2
  22. package/dist/commonjs/models/new-version-changes.js.map +1 -1
  23. package/dist/commonjs/models/operations/delete-agent-dataset.d.ts +1 -1
  24. package/dist/commonjs/models/operations/delete-agent-dataset.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/delete-agent-dataset.js +1 -1
  26. package/dist/commonjs/models/operations/delete-agent-dataset.js.map +1 -1
  27. package/dist/commonjs/models/operations/delete-prompt-dataset.d.ts +1 -1
  28. package/dist/commonjs/models/operations/delete-prompt-dataset.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/delete-prompt-dataset.js +1 -1
  30. package/dist/commonjs/models/operations/delete-prompt-dataset.js.map +1 -1
  31. package/dist/commonjs/models/operations/list-agents.d.ts +1 -1
  32. package/dist/commonjs/models/operations/list-agents.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/list-agents.js +1 -1
  34. package/dist/commonjs/models/operations/list-agents.js.map +1 -1
  35. package/dist/commonjs/models/operations/list-optimizations.d.ts +1 -1
  36. package/dist/commonjs/models/operations/list-optimizations.js +1 -1
  37. package/dist/commonjs/models/operations/list-organizations.d.ts +1 -1
  38. package/dist/commonjs/models/operations/list-organizations.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/list-organizations.js +1 -1
  40. package/dist/commonjs/models/operations/list-organizations.js.map +1 -1
  41. package/dist/commonjs/models/operations/list-prompts.d.ts +1 -1
  42. package/dist/commonjs/models/operations/list-prompts.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/list-prompts.js +1 -1
  44. package/dist/commonjs/models/operations/list-prompts.js.map +1 -1
  45. package/dist/commonjs/models/operations/list-providers.d.ts +1 -1
  46. package/dist/commonjs/models/operations/list-providers.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/list-providers.js +1 -1
  48. package/dist/commonjs/models/operations/list-providers.js.map +1 -1
  49. package/dist/commonjs/models/operations/list-traces.d.ts +4 -4
  50. package/dist/commonjs/models/operations/list-traces.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/list-traces.js +2 -2
  52. package/dist/commonjs/models/operations/list-traces.js.map +1 -1
  53. package/dist/commonjs/models/operations/list-workspaces.d.ts +1 -1
  54. package/dist/commonjs/models/operations/list-workspaces.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/list-workspaces.js +1 -1
  56. package/dist/commonjs/models/operations/list-workspaces.js.map +1 -1
  57. package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
  58. package/dist/commonjs/models/operations/update-organization-member.js +1 -1
  59. package/dist/commonjs/models/operations/update-prompt.d.ts +2 -2
  60. package/dist/commonjs/models/operations/update-prompt.d.ts.map +1 -1
  61. package/dist/commonjs/models/operations/update-prompt.js +1 -1
  62. package/dist/commonjs/models/operations/update-prompt.js.map +1 -1
  63. package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
  64. package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
  65. package/dist/commonjs/models/schemadefaul12.d.ts +10 -0
  66. package/dist/commonjs/models/{schemadefaul13.d.ts.map → schemadefaul12.d.ts.map} +1 -1
  67. package/dist/commonjs/models/{schemadefaul13.js → schemadefaul12.js} +10 -10
  68. package/dist/commonjs/models/{schemadefaul13.js.map → schemadefaul12.js.map} +1 -1
  69. package/dist/commonjs/models/schemadefaul14.d.ts +9 -0
  70. package/dist/commonjs/models/{schemadefaul15.d.ts.map → schemadefaul14.d.ts.map} +1 -1
  71. package/dist/commonjs/models/{schemadefaul15.js → schemadefaul14.js} +9 -9
  72. package/dist/commonjs/models/{schemadefaul15.js.map → schemadefaul14.js.map} +1 -1
  73. package/dist/commonjs/models/schemadefaul8.d.ts +10 -0
  74. package/dist/commonjs/models/{schemadefaul9.d.ts.map → schemadefaul8.d.ts.map} +1 -1
  75. package/dist/commonjs/models/{schemadefaul9.js → schemadefaul8.js} +8 -8
  76. package/dist/commonjs/models/{schemadefaul9.js.map → schemadefaul8.js.map} +1 -1
  77. package/dist/esm/lib/config.d.ts +3 -3
  78. package/dist/esm/lib/config.js +3 -3
  79. package/dist/esm/models/index.d.ts +4 -6
  80. package/dist/esm/models/index.d.ts.map +1 -1
  81. package/dist/esm/models/index.js +4 -6
  82. package/dist/esm/models/index.js.map +1 -1
  83. package/dist/esm/models/name-description-is-latest.d.ts +55 -0
  84. package/dist/esm/models/name-description-is-latest.d.ts.map +1 -0
  85. package/dist/esm/models/name-description-is-latest.js +20 -0
  86. package/dist/esm/models/name-description-is-latest.js.map +1 -0
  87. package/dist/esm/models/name-description-version.d.ts +6 -33
  88. package/dist/esm/models/name-description-version.d.ts.map +1 -1
  89. package/dist/esm/models/name-description-version.js +3 -18
  90. package/dist/esm/models/name-description-version.js.map +1 -1
  91. package/dist/esm/models/name-provider-api-key.d.ts +3 -2
  92. package/dist/esm/models/name-provider-api-key.d.ts.map +1 -1
  93. package/dist/esm/models/name-provider-api-key.js +2 -1
  94. package/dist/esm/models/name-provider-api-key.js.map +1 -1
  95. package/dist/esm/models/new-version-changes.d.ts +3 -3
  96. package/dist/esm/models/new-version-changes.d.ts.map +1 -1
  97. package/dist/esm/models/new-version-changes.js +2 -2
  98. package/dist/esm/models/new-version-changes.js.map +1 -1
  99. package/dist/esm/models/operations/delete-agent-dataset.d.ts +1 -1
  100. package/dist/esm/models/operations/delete-agent-dataset.d.ts.map +1 -1
  101. package/dist/esm/models/operations/delete-agent-dataset.js +1 -1
  102. package/dist/esm/models/operations/delete-agent-dataset.js.map +1 -1
  103. package/dist/esm/models/operations/delete-prompt-dataset.d.ts +1 -1
  104. package/dist/esm/models/operations/delete-prompt-dataset.d.ts.map +1 -1
  105. package/dist/esm/models/operations/delete-prompt-dataset.js +1 -1
  106. package/dist/esm/models/operations/delete-prompt-dataset.js.map +1 -1
  107. package/dist/esm/models/operations/list-agents.d.ts +1 -1
  108. package/dist/esm/models/operations/list-agents.d.ts.map +1 -1
  109. package/dist/esm/models/operations/list-agents.js +1 -1
  110. package/dist/esm/models/operations/list-agents.js.map +1 -1
  111. package/dist/esm/models/operations/list-optimizations.d.ts +1 -1
  112. package/dist/esm/models/operations/list-optimizations.js +1 -1
  113. package/dist/esm/models/operations/list-organizations.d.ts +1 -1
  114. package/dist/esm/models/operations/list-organizations.d.ts.map +1 -1
  115. package/dist/esm/models/operations/list-organizations.js +1 -1
  116. package/dist/esm/models/operations/list-organizations.js.map +1 -1
  117. package/dist/esm/models/operations/list-prompts.d.ts +1 -1
  118. package/dist/esm/models/operations/list-prompts.d.ts.map +1 -1
  119. package/dist/esm/models/operations/list-prompts.js +1 -1
  120. package/dist/esm/models/operations/list-prompts.js.map +1 -1
  121. package/dist/esm/models/operations/list-providers.d.ts +1 -1
  122. package/dist/esm/models/operations/list-providers.d.ts.map +1 -1
  123. package/dist/esm/models/operations/list-providers.js +1 -1
  124. package/dist/esm/models/operations/list-providers.js.map +1 -1
  125. package/dist/esm/models/operations/list-traces.d.ts +4 -4
  126. package/dist/esm/models/operations/list-traces.d.ts.map +1 -1
  127. package/dist/esm/models/operations/list-traces.js +2 -2
  128. package/dist/esm/models/operations/list-traces.js.map +1 -1
  129. package/dist/esm/models/operations/list-workspaces.d.ts +1 -1
  130. package/dist/esm/models/operations/list-workspaces.d.ts.map +1 -1
  131. package/dist/esm/models/operations/list-workspaces.js +1 -1
  132. package/dist/esm/models/operations/list-workspaces.js.map +1 -1
  133. package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
  134. package/dist/esm/models/operations/update-organization-member.js +1 -1
  135. package/dist/esm/models/operations/update-prompt.d.ts +2 -2
  136. package/dist/esm/models/operations/update-prompt.d.ts.map +1 -1
  137. package/dist/esm/models/operations/update-prompt.js +1 -1
  138. package/dist/esm/models/operations/update-prompt.js.map +1 -1
  139. package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
  140. package/dist/esm/models/operations/update-workspace-member.js +1 -1
  141. package/dist/esm/models/schemadefaul12.d.ts +10 -0
  142. package/dist/esm/models/{schemadefaul13.d.ts.map → schemadefaul12.d.ts.map} +1 -1
  143. package/dist/esm/models/schemadefaul12.js +14 -0
  144. package/dist/esm/models/{schemadefaul13.js.map → schemadefaul12.js.map} +1 -1
  145. package/dist/esm/models/schemadefaul14.d.ts +9 -0
  146. package/dist/esm/models/{schemadefaul15.d.ts.map → schemadefaul14.d.ts.map} +1 -1
  147. package/dist/esm/models/schemadefaul14.js +13 -0
  148. package/dist/esm/models/{schemadefaul15.js.map → schemadefaul14.js.map} +1 -1
  149. package/dist/esm/models/schemadefaul8.d.ts +10 -0
  150. package/dist/esm/models/{schemadefaul9.d.ts.map → schemadefaul8.d.ts.map} +1 -1
  151. package/dist/esm/models/schemadefaul8.js +12 -0
  152. package/dist/esm/models/{schemadefaul9.js.map → schemadefaul8.js.map} +1 -1
  153. package/jsr.json +1 -1
  154. package/openapi.json +61 -79
  155. package/package.json +1 -1
  156. package/scripts/fix-openapi.ts +105 -3
  157. package/src/lib/config.ts +3 -3
  158. package/src/models/index.ts +4 -6
  159. package/src/models/name-description-is-latest.ts +81 -0
  160. package/src/models/name-description-version.ts +9 -79
  161. package/src/models/name-provider-api-key.ts +3 -2
  162. package/src/models/new-version-changes.ts +7 -7
  163. package/src/models/operations/delete-agent-dataset.ts +2 -2
  164. package/src/models/operations/delete-prompt-dataset.ts +2 -2
  165. package/src/models/operations/list-agents.ts +2 -2
  166. package/src/models/operations/list-optimizations.ts +3 -3
  167. package/src/models/operations/list-organizations.ts +2 -2
  168. package/src/models/operations/list-prompts.ts +2 -2
  169. package/src/models/operations/list-providers.ts +2 -2
  170. package/src/models/operations/list-traces.ts +6 -12
  171. package/src/models/operations/list-workspaces.ts +2 -2
  172. package/src/models/operations/update-organization-member.ts +3 -3
  173. package/src/models/operations/update-prompt.ts +3 -3
  174. package/src/models/operations/update-workspace-member.ts +3 -3
  175. package/src/models/{schemadefaul13.ts → schemadefaul12.ts} +4 -4
  176. package/src/models/{schemadefaul15.ts → schemadefaul14.ts} +4 -4
  177. package/src/models/{schemadefaul9.ts → schemadefaul8.ts} +5 -5
  178. package/dist/commonjs/models/description-is-latest-system-prompt.d.ts +0 -68
  179. package/dist/commonjs/models/description-is-latest-system-prompt.d.ts.map +0 -1
  180. package/dist/commonjs/models/description-is-latest-system-prompt.js +0 -68
  181. package/dist/commonjs/models/description-is-latest-system-prompt.js.map +0 -1
  182. package/dist/commonjs/models/schemadefaul13.d.ts +0 -10
  183. package/dist/commonjs/models/schemadefaul15.d.ts +0 -9
  184. package/dist/commonjs/models/schemadefaul18.d.ts +0 -13
  185. package/dist/commonjs/models/schemadefaul18.d.ts.map +0 -1
  186. package/dist/commonjs/models/schemadefaul18.js.map +0 -1
  187. package/dist/commonjs/models/schemadefaul19.d.ts +0 -9
  188. package/dist/commonjs/models/schemadefaul19.d.ts.map +0 -1
  189. package/dist/commonjs/models/schemadefaul19.js +0 -49
  190. package/dist/commonjs/models/schemadefaul19.js.map +0 -1
  191. package/dist/commonjs/models/schemadefaul9.d.ts +0 -10
  192. package/dist/esm/models/description-is-latest-system-prompt.d.ts +0 -68
  193. package/dist/esm/models/description-is-latest-system-prompt.d.ts.map +0 -1
  194. package/dist/esm/models/description-is-latest-system-prompt.js +0 -29
  195. package/dist/esm/models/description-is-latest-system-prompt.js.map +0 -1
  196. package/dist/esm/models/schemadefaul13.d.ts +0 -10
  197. package/dist/esm/models/schemadefaul13.js +0 -14
  198. package/dist/esm/models/schemadefaul15.d.ts +0 -9
  199. package/dist/esm/models/schemadefaul15.js +0 -13
  200. package/dist/esm/models/schemadefaul18.d.ts +0 -13
  201. package/dist/esm/models/schemadefaul18.d.ts.map +0 -1
  202. package/dist/esm/models/schemadefaul18.js +0 -17
  203. package/dist/esm/models/schemadefaul18.js.map +0 -1
  204. package/dist/esm/models/schemadefaul19.d.ts +0 -9
  205. package/dist/esm/models/schemadefaul19.d.ts.map +0 -1
  206. package/dist/esm/models/schemadefaul19.js +0 -13
  207. package/dist/esm/models/schemadefaul19.js.map +0 -1
  208. package/dist/esm/models/schemadefaul9.d.ts +0 -10
  209. package/dist/esm/models/schemadefaul9.js +0 -12
  210. package/src/models/description-is-latest-system-prompt.ts +0 -135
  211. package/src/models/schemadefaul18.ts +0 -20
  212. package/src/models/schemadefaul19.ts +0 -16
@@ -459,6 +459,104 @@ function collapseNumericAnyOfInQueryParams(spec: OpenAPISpec): number {
459
459
  return collapsedCount;
460
460
  }
461
461
 
462
+ // =============================================================================
463
+ // STRIP default FROM OPTIONAL BOOLEAN QUERY PARAMETERS
464
+ // =============================================================================
465
+
466
+ function stripDefaultFromOptionalBooleanQueryParams(spec: OpenAPISpec): number {
467
+ /**
468
+ * Remove `default` values from optional boolean query parameters.
469
+ *
470
+ * Problem: Elysia's t.BooleanString() generates schemas with "default": false.
471
+ * When Speakeasy sees this, it generates SDK code like:
472
+ * isLatest: z._default(z.boolean(), false)
473
+ * This means even when the user does NOT specify isLatest, the SDK sends
474
+ * isLatest=false as a query parameter, causing the backend to filter
475
+ * WHERE is_latest = false — silently hiding results.
476
+ *
477
+ * This bug caused CLI-created prompts to be invisible in the dashboard because:
478
+ * 1. CLI creates prompts with isLatest=true (auto-set by service)
479
+ * 2. SDK list call sends isLatest=false (Speakeasy default)
480
+ * 3. Backend filters to only non-latest prompts → empty results
481
+ *
482
+ * Solution: Strip `default` from all optional boolean query parameters.
483
+ * These parameters are filters — when omitted, the backend should return
484
+ * ALL results, not filter by the default value.
485
+ *
486
+ * Also resolves $ref schemas that point to shared boolean components with
487
+ * defaults (e.g., Schemadefaul4: { type: "boolean", default: false }).
488
+ * These refs are inlined without the default to prevent Speakeasy from
489
+ * generating default values.
490
+ */
491
+ let strippedCount = 0;
492
+
493
+ if (!spec.paths) return strippedCount;
494
+
495
+ for (const [_path, methods] of Object.entries(spec.paths)) {
496
+ for (const [method, operation] of Object.entries(methods)) {
497
+ if (!['get', 'post', 'put', 'patch', 'delete'].includes(method)) continue;
498
+ if (!operation.parameters || !Array.isArray(operation.parameters)) continue;
499
+
500
+ for (const param of operation.parameters) {
501
+ if (param.in !== 'query') continue;
502
+ if (param.required === true) continue; // Skip required params
503
+ if (!param.schema) continue;
504
+
505
+ const schema = param.schema;
506
+
507
+ // Case 1: Direct boolean schema with default
508
+ if (schema.type === 'boolean' && 'default' in schema) {
509
+ delete schema.default;
510
+ strippedCount++;
511
+ continue;
512
+ }
513
+
514
+ // Case 2: $ref to a shared boolean schema (e.g., Schemadefaul4)
515
+ // Inline the schema without the default
516
+ if (schema.$ref && typeof schema.$ref === 'string') {
517
+ const refName = schema.$ref.replace('#/components/schemas/', '');
518
+ const refSchema = spec.components?.schemas?.[refName];
519
+ if (refSchema && refSchema.type === 'boolean' && 'default' in refSchema) {
520
+ // Inline the schema without the default
521
+ delete param.schema.$ref;
522
+ param.schema.type = 'boolean';
523
+ // Copy other properties except default
524
+ for (const [k, v] of Object.entries(refSchema)) {
525
+ if (k !== 'default' && k !== 'type') {
526
+ param.schema[k] = v;
527
+ }
528
+ }
529
+ strippedCount++;
530
+ continue;
531
+ }
532
+ }
533
+
534
+ // Case 3: allOf with $ref to boolean schema (from deduplication)
535
+ if (Array.isArray(schema.allOf) && schema.allOf.length >= 1) {
536
+ const refItem = schema.allOf.find((item: AnyValue) => item.$ref);
537
+ if (refItem) {
538
+ const refName = refItem.$ref.replace('#/components/schemas/', '');
539
+ const refSchema = spec.components?.schemas?.[refName];
540
+ if (refSchema && refSchema.type === 'boolean' && 'default' in refSchema) {
541
+ // Inline the schema without the default, preserve description
542
+ const description = schema.description;
543
+ delete param.schema.allOf;
544
+ param.schema.type = 'boolean';
545
+ if (description) {
546
+ param.schema.description = description;
547
+ }
548
+ strippedCount++;
549
+ continue;
550
+ }
551
+ }
552
+ }
553
+ }
554
+ }
555
+ }
556
+
557
+ return strippedCount;
558
+ }
559
+
462
560
  // =============================================================================
463
561
  // INJECT x-speakeasy-pagination FOR OFFSET/LIMIT ENDPOINTS
464
562
  // =============================================================================
@@ -866,16 +964,20 @@ async function main() {
866
964
  const collapsedCount = collapseNumericAnyOfInQueryParams(spec);
867
965
  console.log(` Collapsed ${collapsedCount} anyOf query parameters`);
868
966
 
869
- console.log("11. Injecting x-speakeasy-pagination for offset/limit endpoints...");
967
+ console.log("11. Stripping default from optional boolean query parameters...");
968
+ const strippedBoolCount = stripDefaultFromOptionalBooleanQueryParams(spec);
969
+ console.log(` Stripped default from ${strippedBoolCount} optional boolean query parameters`);
970
+
971
+ console.log("12. Injecting x-speakeasy-pagination for offset/limit endpoints...");
870
972
  const paginatedCount = injectSpeakeasyPagination(spec);
871
973
  console.log(` Added pagination to ${paginatedCount} operations`);
872
974
 
873
- console.log("12. Converting const to enum...");
975
+ console.log("13. Converting const to enum...");
874
976
  const constResult = convertConstToEnum(spec);
875
977
  spec = constResult.result;
876
978
  console.log(` Converted ${constResult.count} const to enum`);
877
979
 
878
- console.log("13. Deduplicating inline schemas...");
980
+ console.log("14. Deduplicating inline schemas...");
879
981
  const dedupResult = deduplicateSchemas(spec);
880
982
  console.log(` Deduplicated ${dedupResult.replacedCount} schemas into ${dedupResult.extractedCount} components`);
881
983
 
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.2.26",
69
- genVersion: "2.812.2",
70
- userAgent: "speakeasy-sdk/typescript 0.2.26 2.812.2 2.0.0 @mutagent/sdk",
68
+ sdkVersion: "0.2.29",
69
+ genVersion: "2.814.0",
70
+ userAgent: "speakeasy-sdk/typescript 0.2.29 2.814.0 2.0.0 @mutagent/sdk",
71
71
  } as const;
@@ -21,7 +21,6 @@ export * from "./conversation-list.js";
21
21
  export * from "./conversation.js";
22
22
  export * from "./current-password-new-password.js";
23
23
  export * from "./dataset-id-config-execution-mode.js";
24
- export * from "./description-is-latest-system-prompt.js";
25
24
  export * from "./email-role-expires-in-days.js";
26
25
  export * from "./evaluation-list.js";
27
26
  export * from "./evaluation-result.js";
@@ -39,6 +38,7 @@ export * from "./input-llm-config.js";
39
38
  export * from "./mcp-server.js";
40
39
  export * from "./model-temperature-max-tokens.js";
41
40
  export * from "./name-api-key-base-url.js";
41
+ export * from "./name-description-is-latest.js";
42
42
  export * from "./name-description-metadata.js";
43
43
  export * from "./name-description-metadata2.js";
44
44
  export * from "./name-description-system-prompt.js";
@@ -72,11 +72,9 @@ export * from "./prompt.js";
72
72
  export * from "./provider-config.js";
73
73
  export * from "./provider-configs-list.js";
74
74
  export * from "./provider-success.js";
75
- export * from "./schemadefaul13.js";
76
- export * from "./schemadefaul15.js";
77
- export * from "./schemadefaul18.js";
78
- export * from "./schemadefaul19.js";
79
- export * from "./schemadefaul9.js";
75
+ export * from "./schemadefaul12.js";
76
+ export * from "./schemadefaul14.js";
77
+ export * from "./schemadefaul8.js";
80
78
  export * from "./schemaitems4.js";
81
79
  export * from "./schemanullab3.js";
82
80
  export * from "./security.js";
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type NameDescriptionIsLatest = {
8
+ /**
9
+ * Updated prompt name
10
+ */
11
+ name?: string | undefined;
12
+ /**
13
+ * Updated description
14
+ */
15
+ description?: string | undefined;
16
+ /**
17
+ * Update latest version flag
18
+ */
19
+ isLatest?: boolean | undefined;
20
+ /**
21
+ * Updated system prompt
22
+ */
23
+ systemPrompt?: string | undefined;
24
+ /**
25
+ * Updated human prompt template
26
+ */
27
+ humanPrompt?: string | undefined;
28
+ /**
29
+ * Updated raw prompt
30
+ */
31
+ rawPrompt?: string | undefined;
32
+ /**
33
+ * Updated output schema
34
+ */
35
+ outputSchema?: any | undefined;
36
+ /**
37
+ * Updated metadata
38
+ */
39
+ metadata?: any | undefined;
40
+ /**
41
+ * Updated tags
42
+ */
43
+ tags?: Array<string> | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export type NameDescriptionIsLatest$Outbound = {
48
+ name?: string | undefined;
49
+ description?: string | undefined;
50
+ isLatest?: boolean | undefined;
51
+ systemPrompt?: string | undefined;
52
+ humanPrompt?: string | undefined;
53
+ rawPrompt?: string | undefined;
54
+ outputSchema?: any | undefined;
55
+ metadata?: any | undefined;
56
+ tags?: Array<string> | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const NameDescriptionIsLatest$outboundSchema: z.ZodMiniType<
61
+ NameDescriptionIsLatest$Outbound,
62
+ NameDescriptionIsLatest
63
+ > = z.object({
64
+ name: z.optional(z.string()),
65
+ description: z.optional(z.string()),
66
+ isLatest: z.optional(z.boolean()),
67
+ systemPrompt: z.optional(z.string()),
68
+ humanPrompt: z.optional(z.string()),
69
+ rawPrompt: z.optional(z.string()),
70
+ outputSchema: z.optional(z.any()),
71
+ metadata: z.optional(z.any()),
72
+ tags: z.optional(z.array(z.string())),
73
+ });
74
+
75
+ export function nameDescriptionIsLatestToJSON(
76
+ nameDescriptionIsLatest: NameDescriptionIsLatest,
77
+ ): string {
78
+ return JSON.stringify(
79
+ NameDescriptionIsLatest$outboundSchema.parse(nameDescriptionIsLatest),
80
+ );
81
+ }
@@ -4,21 +4,6 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
 
7
- /**
8
- * JSON Schema defining expected input variables (e.g., {"name": {"type": "string"}})
9
- */
10
- export type InputSchema = {};
11
-
12
- /**
13
- * JSON Schema defining expected LLM output structure
14
- */
15
- export type NameDescriptionVersionOutputSchema = {};
16
-
17
- /**
18
- * Arbitrary metadata for categorization or tracking (e.g., {"department": "sales"})
19
- */
20
- export type NameDescriptionVersionMetadata = {};
21
-
22
7
  export type NameDescriptionVersion = {
23
8
  /**
24
9
  * Unique name for the prompt (e.g., "customer-greeting")
@@ -51,15 +36,15 @@ export type NameDescriptionVersion = {
51
36
  /**
52
37
  * JSON Schema defining expected input variables (e.g., {"name": {"type": "string"}})
53
38
  */
54
- inputSchema: InputSchema;
39
+ inputSchema: any;
55
40
  /**
56
41
  * JSON Schema defining expected LLM output structure
57
42
  */
58
- outputSchema?: NameDescriptionVersionOutputSchema | undefined;
43
+ outputSchema?: any | undefined;
59
44
  /**
60
45
  * Arbitrary metadata for categorization or tracking (e.g., {"department": "sales"})
61
46
  */
62
- metadata?: NameDescriptionVersionMetadata | undefined;
47
+ metadata?: any | undefined;
63
48
  /**
64
49
  * Email of the creator (e.g., "user@example.com")
65
50
  */
@@ -70,57 +55,6 @@ export type NameDescriptionVersion = {
70
55
  tags?: Array<string> | undefined;
71
56
  };
72
57
 
73
- /** @internal */
74
- export type InputSchema$Outbound = {};
75
-
76
- /** @internal */
77
- export const InputSchema$outboundSchema: z.ZodMiniType<
78
- InputSchema$Outbound,
79
- InputSchema
80
- > = z.object({});
81
-
82
- export function inputSchemaToJSON(inputSchema: InputSchema): string {
83
- return JSON.stringify(InputSchema$outboundSchema.parse(inputSchema));
84
- }
85
-
86
- /** @internal */
87
- export type NameDescriptionVersionOutputSchema$Outbound = {};
88
-
89
- /** @internal */
90
- export const NameDescriptionVersionOutputSchema$outboundSchema: z.ZodMiniType<
91
- NameDescriptionVersionOutputSchema$Outbound,
92
- NameDescriptionVersionOutputSchema
93
- > = z.object({});
94
-
95
- export function nameDescriptionVersionOutputSchemaToJSON(
96
- nameDescriptionVersionOutputSchema: NameDescriptionVersionOutputSchema,
97
- ): string {
98
- return JSON.stringify(
99
- NameDescriptionVersionOutputSchema$outboundSchema.parse(
100
- nameDescriptionVersionOutputSchema,
101
- ),
102
- );
103
- }
104
-
105
- /** @internal */
106
- export type NameDescriptionVersionMetadata$Outbound = {};
107
-
108
- /** @internal */
109
- export const NameDescriptionVersionMetadata$outboundSchema: z.ZodMiniType<
110
- NameDescriptionVersionMetadata$Outbound,
111
- NameDescriptionVersionMetadata
112
- > = z.object({});
113
-
114
- export function nameDescriptionVersionMetadataToJSON(
115
- nameDescriptionVersionMetadata: NameDescriptionVersionMetadata,
116
- ): string {
117
- return JSON.stringify(
118
- NameDescriptionVersionMetadata$outboundSchema.parse(
119
- nameDescriptionVersionMetadata,
120
- ),
121
- );
122
- }
123
-
124
58
  /** @internal */
125
59
  export type NameDescriptionVersion$Outbound = {
126
60
  name: string;
@@ -130,9 +64,9 @@ export type NameDescriptionVersion$Outbound = {
130
64
  systemPrompt?: string | undefined;
131
65
  humanPrompt?: string | undefined;
132
66
  rawPrompt?: string | undefined;
133
- inputSchema: InputSchema$Outbound;
134
- outputSchema?: NameDescriptionVersionOutputSchema$Outbound | undefined;
135
- metadata?: NameDescriptionVersionMetadata$Outbound | undefined;
67
+ inputSchema: any;
68
+ outputSchema?: any | undefined;
69
+ metadata?: any | undefined;
136
70
  createdBy?: string | undefined;
137
71
  tags?: Array<string> | undefined;
138
72
  };
@@ -149,13 +83,9 @@ export const NameDescriptionVersion$outboundSchema: z.ZodMiniType<
149
83
  systemPrompt: z.optional(z.string()),
150
84
  humanPrompt: z.optional(z.string()),
151
85
  rawPrompt: z.optional(z.string()),
152
- inputSchema: z.lazy(() => InputSchema$outboundSchema),
153
- outputSchema: z.optional(
154
- z.lazy(() => NameDescriptionVersionOutputSchema$outboundSchema),
155
- ),
156
- metadata: z.optional(
157
- z.lazy(() => NameDescriptionVersionMetadata$outboundSchema),
158
- ),
86
+ inputSchema: z.any(),
87
+ outputSchema: z.optional(z.any()),
88
+ metadata: z.optional(z.any()),
159
89
  createdBy: z.optional(z.string()),
160
90
  tags: z.optional(z.array(z.string())),
161
91
  });
@@ -5,13 +5,14 @@
5
5
  import * as z from "zod/v4-mini";
6
6
 
7
7
  /**
8
- * Provider type (openai, anthropic, google, azure, groq, custom)
8
+ * Provider type (openai, anthropic, google, azure, bedrock, groq, glm, moonshot, custom)
9
9
  */
10
10
  export enum Provider {
11
11
  Openai = "openai",
12
12
  Anthropic = "anthropic",
13
13
  Google = "google",
14
14
  Azure = "azure",
15
+ Bedrock = "bedrock",
15
16
  Groq = "groq",
16
17
  Glm = "glm",
17
18
  Moonshot = "moonshot",
@@ -52,7 +53,7 @@ export type NameProviderApiKey = {
52
53
  */
53
54
  name: string;
54
55
  /**
55
- * Provider type (openai, anthropic, google, azure, groq, custom)
56
+ * Provider type (openai, anthropic, google, azure, bedrock, groq, glm, moonshot, custom)
56
57
  */
57
58
  provider?: Provider | undefined;
58
59
  /**
@@ -4,10 +4,10 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
  import {
7
- DescriptionIsLatestSystemPrompt,
8
- DescriptionIsLatestSystemPrompt$Outbound,
9
- DescriptionIsLatestSystemPrompt$outboundSchema,
10
- } from "./description-is-latest-system-prompt.js";
7
+ NameDescriptionIsLatest,
8
+ NameDescriptionIsLatest$Outbound,
9
+ NameDescriptionIsLatest$outboundSchema,
10
+ } from "./name-description-is-latest.js";
11
11
 
12
12
  export type NewVersionChanges = {
13
13
  /**
@@ -17,13 +17,13 @@ export type NewVersionChanges = {
17
17
  /**
18
18
  * Fields to update on an existing prompt (all fields optional)
19
19
  */
20
- changes?: DescriptionIsLatestSystemPrompt | undefined;
20
+ changes?: NameDescriptionIsLatest | undefined;
21
21
  };
22
22
 
23
23
  /** @internal */
24
24
  export type NewVersionChanges$Outbound = {
25
25
  newVersion: string;
26
- changes?: DescriptionIsLatestSystemPrompt$Outbound | undefined;
26
+ changes?: NameDescriptionIsLatest$Outbound | undefined;
27
27
  };
28
28
 
29
29
  /** @internal */
@@ -32,7 +32,7 @@ export const NewVersionChanges$outboundSchema: z.ZodMiniType<
32
32
  NewVersionChanges
33
33
  > = z.object({
34
34
  newVersion: z.string(),
35
- changes: z.optional(DescriptionIsLatestSystemPrompt$outboundSchema),
35
+ changes: z.optional(NameDescriptionIsLatest$outboundSchema),
36
36
  });
37
37
 
38
38
  export function newVersionChangesToJSON(
@@ -12,7 +12,7 @@ export type DeleteAgentDatasetRequest = {
12
12
  /** @internal */
13
13
  export type DeleteAgentDatasetRequest$Outbound = {
14
14
  id: number;
15
- force: boolean;
15
+ force?: boolean | undefined;
16
16
  };
17
17
 
18
18
  /** @internal */
@@ -21,7 +21,7 @@ export const DeleteAgentDatasetRequest$outboundSchema: z.ZodMiniType<
21
21
  DeleteAgentDatasetRequest
22
22
  > = z.object({
23
23
  id: z.number(),
24
- force: z._default(z.boolean(), false),
24
+ force: z.optional(z.boolean()),
25
25
  });
26
26
 
27
27
  export function deleteAgentDatasetRequestToJSON(
@@ -12,7 +12,7 @@ export type DeletePromptDatasetRequest = {
12
12
  /** @internal */
13
13
  export type DeletePromptDatasetRequest$Outbound = {
14
14
  id: number;
15
- force: boolean;
15
+ force?: boolean | undefined;
16
16
  };
17
17
 
18
18
  /** @internal */
@@ -21,7 +21,7 @@ export const DeletePromptDatasetRequest$outboundSchema: z.ZodMiniType<
21
21
  DeletePromptDatasetRequest
22
22
  > = z.object({
23
23
  id: z.number(),
24
- force: z._default(z.boolean(), false),
24
+ force: z.optional(z.boolean()),
25
25
  });
26
26
 
27
27
  export function deletePromptDatasetRequestToJSON(
@@ -29,7 +29,7 @@ export type ListAgentsRequest$Outbound = {
29
29
  name?: string | undefined;
30
30
  status?: string | undefined;
31
31
  createdBy?: string | undefined;
32
- isPublic: boolean;
32
+ isPublic?: boolean | undefined;
33
33
  };
34
34
 
35
35
  /** @internal */
@@ -42,7 +42,7 @@ export const ListAgentsRequest$outboundSchema: z.ZodMiniType<
42
42
  name: z.optional(z.string()),
43
43
  status: z.optional(z.string()),
44
44
  createdBy: z.optional(z.string()),
45
- isPublic: z._default(z.boolean(), false),
45
+ isPublic: z.optional(z.boolean()),
46
46
  });
47
47
 
48
48
  export function listAgentsRequestToJSON(
@@ -34,7 +34,7 @@ export type Data = {
34
34
  promptGroupId: string;
35
35
  datasetId: number;
36
36
  status: string;
37
- executionMode: models.Schemadefaul9Open;
37
+ executionMode: models.Schemadefaul8Open;
38
38
  config: Config;
39
39
  progress: number;
40
40
  currentIteration: number;
@@ -120,8 +120,8 @@ export const Data$inboundSchema: z.ZodMiniType<Data, unknown> = z.object({
120
120
  datasetId: types.number(),
121
121
  status: types.string(),
122
122
  executionMode: z._default(
123
- models.Schemadefaul9$inboundSchema,
124
- models.Schemadefaul9.WorkerLoop,
123
+ models.Schemadefaul8$inboundSchema,
124
+ models.Schemadefaul8.WorkerLoop,
125
125
  ),
126
126
  config: z.lazy(() => Config$inboundSchema),
127
127
  progress: types.number(),
@@ -27,7 +27,7 @@ export type ListOrganizationsRequest$Outbound = {
27
27
  offset: number;
28
28
  name?: string | undefined;
29
29
  billingPlan?: string | undefined;
30
- isActive: boolean;
30
+ isActive?: boolean | undefined;
31
31
  };
32
32
 
33
33
  /** @internal */
@@ -39,7 +39,7 @@ export const ListOrganizationsRequest$outboundSchema: z.ZodMiniType<
39
39
  offset: z._default(z.number(), 0),
40
40
  name: z.optional(z.string()),
41
41
  billingPlan: z.optional(z.string()),
42
- isActive: z._default(z.boolean(), false),
42
+ isActive: z.optional(z.boolean()),
43
43
  });
44
44
 
45
45
  export function listOrganizationsRequestToJSON(
@@ -27,7 +27,7 @@ export type ListPromptsRequest$Outbound = {
27
27
  limit: number;
28
28
  offset: number;
29
29
  name?: string | undefined;
30
- isLatest: boolean;
30
+ isLatest?: boolean | undefined;
31
31
  version?: string | undefined;
32
32
  createdBy?: string | undefined;
33
33
  };
@@ -40,7 +40,7 @@ export const ListPromptsRequest$outboundSchema: z.ZodMiniType<
40
40
  limit: z._default(z.number(), 0),
41
41
  offset: z._default(z.number(), 0),
42
42
  name: z.optional(z.string()),
43
- isLatest: z._default(z.boolean(), false),
43
+ isLatest: z.optional(z.boolean()),
44
44
  version: z.optional(z.string()),
45
45
  createdBy: z.optional(z.string()),
46
46
  });
@@ -18,7 +18,7 @@ export type ListProvidersRequest$Outbound = {
18
18
  workspaceId?: string | undefined;
19
19
  userId?: string | undefined;
20
20
  provider?: string | undefined;
21
- includeInactive: boolean;
21
+ includeInactive?: boolean | undefined;
22
22
  };
23
23
 
24
24
  /** @internal */
@@ -30,7 +30,7 @@ export const ListProvidersRequest$outboundSchema: z.ZodMiniType<
30
30
  workspaceId: z.optional(z.string()),
31
31
  userId: z.optional(z.string()),
32
32
  provider: z.optional(z.string()),
33
- includeInactive: z._default(z.boolean(), false),
33
+ includeInactive: z.optional(z.boolean()),
34
34
  });
35
35
 
36
36
  export function listProvidersRequestToJSON(
@@ -12,8 +12,8 @@ import * as models from "../index.js";
12
12
  export type ListTracesRequest = {
13
13
  sessionId?: string | undefined;
14
14
  status?: string | undefined;
15
- source?: models.Schemadefaul18 | undefined;
16
- environment?: models.Schemadefaul19 | undefined;
15
+ source?: string | undefined;
16
+ environment?: string | undefined;
17
17
  startAfter?: Date | undefined;
18
18
  startBefore?: Date | undefined;
19
19
  limit?: number | undefined;
@@ -28,8 +28,8 @@ export type ListTracesResponse = {
28
28
  export type ListTracesRequest$Outbound = {
29
29
  sessionId?: string | undefined;
30
30
  status?: string | undefined;
31
- source: string;
32
- environment: string;
31
+ source?: string | undefined;
32
+ environment?: string | undefined;
33
33
  startAfter?: string | undefined;
34
34
  startBefore?: string | undefined;
35
35
  limit: number;
@@ -43,14 +43,8 @@ export const ListTracesRequest$outboundSchema: z.ZodMiniType<
43
43
  > = z.object({
44
44
  sessionId: z.optional(z.string()),
45
45
  status: z.optional(z.string()),
46
- source: z._default(
47
- models.Schemadefaul18$outboundSchema,
48
- models.Schemadefaul18.SDK,
49
- ),
50
- environment: z._default(
51
- models.Schemadefaul19$outboundSchema,
52
- models.Schemadefaul19.Production,
53
- ),
46
+ source: z.optional(z.string()),
47
+ environment: z.optional(z.string()),
54
48
  startAfter: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
55
49
  startBefore: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
56
50
  limit: z._default(z.number(), 0),
@@ -10,7 +10,7 @@ export type ListWorkspacesRequest = {
10
10
 
11
11
  /** @internal */
12
12
  export type ListWorkspacesRequest$Outbound = {
13
- includeInactive: boolean;
13
+ includeInactive?: boolean | undefined;
14
14
  };
15
15
 
16
16
  /** @internal */
@@ -18,7 +18,7 @@ export const ListWorkspacesRequest$outboundSchema: z.ZodMiniType<
18
18
  ListWorkspacesRequest$Outbound,
19
19
  ListWorkspacesRequest
20
20
  > = z.object({
21
- includeInactive: z._default(z.boolean(), false),
21
+ includeInactive: z.optional(z.boolean()),
22
22
  });
23
23
 
24
24
  export function listWorkspacesRequestToJSON(
@@ -9,7 +9,7 @@ export type UpdateOrganizationMemberRequestBody = {
9
9
  /**
10
10
  * The new role for the member
11
11
  */
12
- role?: models.Schemadefaul13 | undefined;
12
+ role?: models.Schemadefaul12 | undefined;
13
13
  };
14
14
 
15
15
  export type UpdateOrganizationMemberRequest = {
@@ -29,8 +29,8 @@ export const UpdateOrganizationMemberRequestBody$outboundSchema: z.ZodMiniType<
29
29
  UpdateOrganizationMemberRequestBody
30
30
  > = z.object({
31
31
  role: z._default(
32
- models.Schemadefaul13$outboundSchema,
33
- models.Schemadefaul13.Owner,
32
+ models.Schemadefaul12$outboundSchema,
33
+ models.Schemadefaul12.Owner,
34
34
  ),
35
35
  });
36
36