@orq-ai/node 4.8.1 → 4.8.3

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 (159) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/lib/config.js.map +1 -1
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createcontact.js +1 -1
  8. package/models/operations/createdataset.js +1 -1
  9. package/models/operations/createdatasetitem.js +4 -4
  10. package/models/operations/createdatasource.js +1 -1
  11. package/models/operations/createeval.js +16 -16
  12. package/models/operations/createidentity.js +1 -1
  13. package/models/operations/createtool.js +6 -6
  14. package/models/operations/getalltools.js +6 -6
  15. package/models/operations/getevals.js +16 -16
  16. package/models/operations/getv2humanevalsets.js +2 -2
  17. package/models/operations/getv2humanevalsetsid.js +2 -2
  18. package/models/operations/listdatasetdatapoints.js +4 -4
  19. package/models/operations/listdatasets.js +1 -1
  20. package/models/operations/listdatasources.js +1 -1
  21. package/models/operations/listidentities.js +1 -1
  22. package/models/operations/patchv2humanevalsetsid.js +2 -2
  23. package/models/operations/policyupdate.d.ts +5 -0
  24. package/models/operations/policyupdate.d.ts.map +1 -1
  25. package/models/operations/policyupdate.js +2 -0
  26. package/models/operations/policyupdate.js.map +1 -1
  27. package/models/operations/postv2feedbackevaluation.js +3 -3
  28. package/models/operations/postv2humanevalsets.js +2 -2
  29. package/models/operations/retrievedatapoint.js +4 -4
  30. package/models/operations/retrievedataset.js +1 -1
  31. package/models/operations/retrievedatasource.js +1 -1
  32. package/models/operations/retrieveidentity.js +1 -1
  33. package/models/operations/retrievetool.js +6 -6
  34. package/models/operations/runagent.js +1 -1
  35. package/models/operations/streamrunagent.js +1 -1
  36. package/models/operations/updatedatapoint.js +4 -4
  37. package/models/operations/updatedataset.js +1 -1
  38. package/models/operations/updatedatasource.js +1 -1
  39. package/models/operations/updateeval.js +16 -16
  40. package/models/operations/updateidentity.js +1 -1
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +6 -6
  43. package/packages/orq-rc/src/funcs/filesCreate.ts +13 -48
  44. package/packages/orq-rc/src/funcs/filesDelete.ts +8 -8
  45. package/packages/orq-rc/src/funcs/filesGet.ts +6 -5
  46. package/packages/orq-rc/src/funcs/filesGetContent.ts +9 -9
  47. package/packages/orq-rc/src/funcs/filesList.ts +6 -5
  48. package/packages/orq-rc/src/funcs/filesUpdate.ts +8 -7
  49. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  50. package/packages/orq-rc/src/funcs/skillsDelete.ts +165 -0
  51. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  52. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  53. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  54. package/packages/orq-rc/src/lib/config.ts +3 -3
  55. package/packages/orq-rc/src/models/components/createfilerequest.ts +45 -0
  56. package/packages/orq-rc/src/models/components/createfileresponse.ts +32 -0
  57. package/packages/orq-rc/src/models/components/createskillrequest.ts +55 -0
  58. package/packages/orq-rc/src/models/components/createskillresponse.ts +32 -0
  59. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  60. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  61. package/packages/orq-rc/src/models/components/file.ts +48 -0
  62. package/packages/orq-rc/src/models/components/filepart.ts +21 -16
  63. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +36 -0
  64. package/packages/orq-rc/src/models/components/getfileresponse.ts +32 -0
  65. package/packages/orq-rc/src/models/components/getskillresponse.ts +32 -0
  66. package/packages/orq-rc/src/models/components/index.ts +17 -1
  67. package/packages/orq-rc/src/models/components/listfilesresponse.ts +41 -0
  68. package/packages/orq-rc/src/models/components/listskillsresponse.ts +41 -0
  69. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  70. package/packages/orq-rc/src/models/components/skill.ts +77 -0
  71. package/packages/orq-rc/src/models/components/updatefilerequest.ts +40 -0
  72. package/packages/orq-rc/src/models/components/updatefileresponse.ts +32 -0
  73. package/packages/orq-rc/src/models/components/updateskillrequest.ts +55 -0
  74. package/packages/orq-rc/src/models/components/updateskillresponse.ts +32 -0
  75. package/packages/orq-rc/src/models/operations/createagentrequest.ts +11 -0
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  83. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -3
  84. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -3
  85. package/packages/orq-rc/src/models/operations/fileget.ts +0 -48
  86. package/packages/orq-rc/src/models/operations/filelist.ts +2 -46
  87. package/packages/orq-rc/src/models/operations/fileupdate.ts +5 -82
  88. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  89. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  90. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/index.ts +4 -1
  93. package/packages/orq-rc/src/models/operations/invokeeval.ts +5 -2
  94. package/packages/orq-rc/src/models/operations/listagents.ts +5 -0
  95. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  96. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  97. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  98. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  101. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +5 -0
  103. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  105. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  107. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  108. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/skilldelete.ts +36 -0
  110. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  111. package/packages/orq-rc/src/models/operations/skilllist.ts +49 -0
  112. package/packages/orq-rc/src/models/operations/skillupdate.ts +41 -0
  113. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  114. package/packages/orq-rc/src/models/operations/updateagent.ts +20 -31
  115. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  116. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  118. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  119. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  120. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  121. package/packages/orq-rc/src/sdk/files.ts +22 -21
  122. package/packages/orq-rc/src/sdk/sdk.ts +11 -5
  123. package/packages/orq-rc/src/sdk/skills.ts +97 -0
  124. package/src/lib/config.ts +3 -3
  125. package/src/models/components/reasoningpart.ts +1 -1
  126. package/src/models/operations/createcontact.ts +1 -1
  127. package/src/models/operations/createdataset.ts +1 -1
  128. package/src/models/operations/createdatasetitem.ts +4 -4
  129. package/src/models/operations/createdatasource.ts +1 -1
  130. package/src/models/operations/createeval.ts +16 -16
  131. package/src/models/operations/createidentity.ts +1 -1
  132. package/src/models/operations/createtool.ts +6 -6
  133. package/src/models/operations/getalltools.ts +6 -6
  134. package/src/models/operations/getevals.ts +16 -16
  135. package/src/models/operations/getv2humanevalsets.ts +2 -2
  136. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  137. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  138. package/src/models/operations/listdatasets.ts +1 -1
  139. package/src/models/operations/listdatasources.ts +1 -1
  140. package/src/models/operations/listidentities.ts +1 -1
  141. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  142. package/src/models/operations/policyupdate.ts +7 -0
  143. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  144. package/src/models/operations/postv2humanevalsets.ts +2 -2
  145. package/src/models/operations/retrievedatapoint.ts +4 -4
  146. package/src/models/operations/retrievedataset.ts +1 -1
  147. package/src/models/operations/retrievedatasource.ts +1 -1
  148. package/src/models/operations/retrieveidentity.ts +1 -1
  149. package/src/models/operations/retrievetool.ts +6 -6
  150. package/src/models/operations/runagent.ts +1 -1
  151. package/src/models/operations/streamrunagent.ts +1 -1
  152. package/src/models/operations/updatedatapoint.ts +4 -4
  153. package/src/models/operations/updatedataset.ts +1 -1
  154. package/src/models/operations/updatedatasource.ts +1 -1
  155. package/src/models/operations/updateeval.ts +16 -16
  156. package/src/models/operations/updateidentity.ts +1 -1
  157. package/src/models/operations/updatetool.ts +7 -7
  158. package/packages/orq-rc/src/models/components/filedocument.ts +0 -48
  159. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -135
@@ -0,0 +1,27 @@
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
+ export type DeleteFileResponse = {};
11
+
12
+ /** @internal */
13
+ export const DeleteFileResponse$inboundSchema: z.ZodType<
14
+ DeleteFileResponse,
15
+ z.ZodTypeDef,
16
+ unknown
17
+ > = z.object({});
18
+
19
+ export function deleteFileResponseFromJSON(
20
+ jsonString: string,
21
+ ): SafeParseResult<DeleteFileResponse, SDKValidationError> {
22
+ return safeParse(
23
+ jsonString,
24
+ (x) => DeleteFileResponse$inboundSchema.parse(JSON.parse(x)),
25
+ `Failed to parse 'DeleteFileResponse' from JSON`,
26
+ );
27
+ }
@@ -0,0 +1,27 @@
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
+ export type DeleteSkillResponse = {};
11
+
12
+ /** @internal */
13
+ export const DeleteSkillResponse$inboundSchema: z.ZodType<
14
+ DeleteSkillResponse,
15
+ z.ZodTypeDef,
16
+ unknown
17
+ > = z.object({});
18
+
19
+ export function deleteSkillResponseFromJSON(
20
+ jsonString: string,
21
+ ): SafeParseResult<DeleteSkillResponse, SDKValidationError> {
22
+ return safeParse(
23
+ jsonString,
24
+ (x) => DeleteSkillResponse$inboundSchema.parse(JSON.parse(x)),
25
+ `Failed to parse 'DeleteSkillResponse' from JSON`,
26
+ );
27
+ }
@@ -0,0 +1,48 @@
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 FileT = {
12
+ fileId?: string | undefined;
13
+ purpose?: number | undefined;
14
+ fileName?: string | undefined;
15
+ workspaceId?: string | undefined;
16
+ bytes?: string | undefined;
17
+ createdAt?: Date | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
22
+ .object({
23
+ file_id: z.string().optional(),
24
+ purpose: z.number().int().optional(),
25
+ file_name: z.string().optional(),
26
+ workspace_id: z.string().optional(),
27
+ bytes: z.string().optional(),
28
+ created_at: z.string().datetime({ offset: true }).transform(v =>
29
+ new Date(v)
30
+ ).optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "file_id": "fileId",
34
+ "file_name": "fileName",
35
+ "workspace_id": "workspaceId",
36
+ "created_at": "createdAt",
37
+ });
38
+ });
39
+
40
+ export function fileFromJSON(
41
+ jsonString: string,
42
+ ): SafeParseResult<FileT, SDKValidationError> {
43
+ return safeParse(
44
+ jsonString,
45
+ (x) => FileT$inboundSchema.parse(JSON.parse(x)),
46
+ `Failed to parse 'FileT' from JSON`,
47
+ );
48
+ }
@@ -43,7 +43,7 @@ export type BinaryFormat = {
43
43
  name?: string | undefined;
44
44
  };
45
45
 
46
- export type FileT = BinaryFormat | FileInURIFormat;
46
+ export type FilePartFile = BinaryFormat | FileInURIFormat;
47
47
 
48
48
  /**
49
49
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
@@ -139,34 +139,39 @@ export function binaryFormatFromJSON(
139
139
  }
140
140
 
141
141
  /** @internal */
142
- export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
143
- .union([
144
- z.lazy(() => BinaryFormat$inboundSchema),
145
- z.lazy(() => FileInURIFormat$inboundSchema),
146
- ]);
142
+ export const FilePartFile$inboundSchema: z.ZodType<
143
+ FilePartFile,
144
+ z.ZodTypeDef,
145
+ unknown
146
+ > = z.union([
147
+ z.lazy(() => BinaryFormat$inboundSchema),
148
+ z.lazy(() => FileInURIFormat$inboundSchema),
149
+ ]);
147
150
  /** @internal */
148
- export type FileT$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
151
+ export type FilePartFile$Outbound =
152
+ | BinaryFormat$Outbound
153
+ | FileInURIFormat$Outbound;
149
154
 
150
155
  /** @internal */
151
- export const FileT$outboundSchema: z.ZodType<
152
- FileT$Outbound,
156
+ export const FilePartFile$outboundSchema: z.ZodType<
157
+ FilePartFile$Outbound,
153
158
  z.ZodTypeDef,
154
- FileT
159
+ FilePartFile
155
160
  > = z.union([
156
161
  z.lazy(() => BinaryFormat$outboundSchema),
157
162
  z.lazy(() => FileInURIFormat$outboundSchema),
158
163
  ]);
159
164
 
160
- export function fileToJSON(fileT: FileT): string {
161
- return JSON.stringify(FileT$outboundSchema.parse(fileT));
165
+ export function filePartFileToJSON(filePartFile: FilePartFile): string {
166
+ return JSON.stringify(FilePartFile$outboundSchema.parse(filePartFile));
162
167
  }
163
- export function fileFromJSON(
168
+ export function filePartFileFromJSON(
164
169
  jsonString: string,
165
- ): SafeParseResult<FileT, SDKValidationError> {
170
+ ): SafeParseResult<FilePartFile, SDKValidationError> {
166
171
  return safeParse(
167
172
  jsonString,
168
- (x) => FileT$inboundSchema.parse(JSON.parse(x)),
169
- `Failed to parse 'FileT' from JSON`,
173
+ (x) => FilePartFile$inboundSchema.parse(JSON.parse(x)),
174
+ `Failed to parse 'FilePartFile' from JSON`,
170
175
  );
171
176
  }
172
177
 
@@ -0,0 +1,36 @@
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 GetFileContentResponse = {
12
+ downloadUrl?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const GetFileContentResponse$inboundSchema: z.ZodType<
17
+ GetFileContentResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ download_url: z.string().optional(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "download_url": "downloadUrl",
25
+ });
26
+ });
27
+
28
+ export function getFileContentResponseFromJSON(
29
+ jsonString: string,
30
+ ): SafeParseResult<GetFileContentResponse, SDKValidationError> {
31
+ return safeParse(
32
+ jsonString,
33
+ (x) => GetFileContentResponse$inboundSchema.parse(JSON.parse(x)),
34
+ `Failed to parse 'GetFileContentResponse' from JSON`,
35
+ );
36
+ }
@@ -0,0 +1,32 @@
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
+ import { FileT, FileT$inboundSchema } from "./file.js";
10
+
11
+ export type GetFileResponse = {
12
+ file?: FileT | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const GetFileResponse$inboundSchema: z.ZodType<
17
+ GetFileResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ file: FileT$inboundSchema.optional(),
22
+ });
23
+
24
+ export function getFileResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<GetFileResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => GetFileResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'GetFileResponse' from JSON`,
31
+ );
32
+ }
@@ -0,0 +1,32 @@
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
+ import { Skill, Skill$inboundSchema } from "./skill.js";
10
+
11
+ export type GetSkillResponse = {
12
+ skill?: Skill | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const GetSkillResponse$inboundSchema: z.ZodType<
17
+ GetSkillResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ skill: Skill$inboundSchema.optional(),
22
+ });
23
+
24
+ export function getSkillResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<GetSkillResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => GetSkillResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'GetSkillResponse' from JSON`,
31
+ );
32
+ }
@@ -16,7 +16,13 @@ export * from "./audiocontentpartschema.js";
16
16
  export * from "./budgetlimit.js";
17
17
  export * from "./conversationparam.js";
18
18
  export * from "./createagentresponse.js";
19
+ export * from "./createfilerequest.js";
20
+ export * from "./createfileresponse.js";
21
+ export * from "./createskillrequest.js";
22
+ export * from "./createskillresponse.js";
19
23
  export * from "./datapart.js";
24
+ export * from "./deletefileresponse.js";
25
+ export * from "./deleteskillresponse.js";
20
26
  export * from "./errorpart.js";
21
27
  export * from "./errorstreamingevent.js";
22
28
  export * from "./evaluatorref.js";
@@ -27,10 +33,13 @@ export * from "./expression.js";
27
33
  export * from "./expressioninput.js";
28
34
  export * from "./extendedmessage.js";
29
35
  export * from "./fallbackconfig.js";
36
+ export * from "./file.js";
30
37
  export * from "./filecontentpartschema.js";
31
- export * from "./filedocument.js";
32
38
  export * from "./filepart.js";
33
39
  export * from "./getagentresponse.js";
40
+ export * from "./getfilecontentresponse.js";
41
+ export * from "./getfileresponse.js";
42
+ export * from "./getskillresponse.js";
34
43
  export * from "./guardrailref.js";
35
44
  export * from "./guardrailrule.js";
36
45
  export * from "./imagecontentpartschema.js";
@@ -38,6 +47,8 @@ export * from "./incompletedetails.js";
38
47
  export * from "./inputtokensdetails.js";
39
48
  export * from "./invokedeploymentrequest.js";
40
49
  export * from "./limits.js";
50
+ export * from "./listfilesresponse.js";
51
+ export * from "./listskillsresponse.js";
41
52
  export * from "./memoryparam.js";
42
53
  export * from "./modelref.js";
43
54
  export * from "./modelsconfig.js";
@@ -72,6 +83,7 @@ export * from "./responsethread.js";
72
83
  export * from "./reviewoutcome.js";
73
84
  export * from "./routingrule.js";
74
85
  export * from "./security.js";
86
+ export * from "./skill.js";
75
87
  export * from "./streamoptions.js";
76
88
  export * from "./telemetry.js";
77
89
  export * from "./textcontentpartschema.js";
@@ -91,3 +103,7 @@ export * from "./toolresultpart.js";
91
103
  export * from "./toolreviewdoneevent.js";
92
104
  export * from "./toolreviewrequestedevent.js";
93
105
  export * from "./toolstartedevent.js";
106
+ export * from "./updatefilerequest.js";
107
+ export * from "./updatefileresponse.js";
108
+ export * from "./updateskillrequest.js";
109
+ export * from "./updateskillresponse.js";
@@ -0,0 +1,41 @@
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 { FileT, FileT$inboundSchema } from "./file.js";
11
+
12
+ export type ListFilesResponse = {
13
+ object?: string | undefined;
14
+ data?: Array<FileT> | undefined;
15
+ hasMore?: boolean | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ListFilesResponse$inboundSchema: z.ZodType<
20
+ ListFilesResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ object: z.string().optional(),
25
+ data: z.array(FileT$inboundSchema).optional(),
26
+ has_more: z.boolean().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "has_more": "hasMore",
30
+ });
31
+ });
32
+
33
+ export function listFilesResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<ListFilesResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => ListFilesResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'ListFilesResponse' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,41 @@
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 { Skill, Skill$inboundSchema } from "./skill.js";
11
+
12
+ export type ListSkillsResponse = {
13
+ object?: string | undefined;
14
+ data?: Array<Skill> | undefined;
15
+ hasMore?: boolean | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ListSkillsResponse$inboundSchema: z.ZodType<
20
+ ListSkillsResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ object: z.string().optional(),
25
+ data: z.array(Skill$inboundSchema).optional(),
26
+ has_more: z.boolean().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "has_more": "hasMore",
30
+ });
31
+ });
32
+
33
+ export function listSkillsResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<ListSkillsResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => ListSkillsResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'ListSkillsResponse' from JSON`,
40
+ );
41
+ }
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01kq95p5axfrd8y0mzs2rp2k3q"),
43
+ _id: z.string().default("reasoning_01kqffvb565qc1djz74a1ecc5n"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,77 @@
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 Skill = {
12
+ skillId?: string | undefined;
13
+ displayName?: string | undefined;
14
+ description?: string | undefined;
15
+ enabled?: boolean | undefined;
16
+ tags?: Array<string> | undefined;
17
+ projectId?: string | undefined;
18
+ path?: string | undefined;
19
+ workspaceId?: string | undefined;
20
+ createdAt?: Date | undefined;
21
+ updatedAt?: Date | undefined;
22
+ createdById?: string | undefined;
23
+ updatedById?: string | undefined;
24
+ instructions?: string | undefined;
25
+ /**
26
+ * Latest semver assigned by the activity log. Stamped on the document
27
+ *
28
+ * @remarks
29
+ * by CreateSkill / UpdateSkill so reads return it without joining
30
+ * workspaces.activities.
31
+ */
32
+ version?: string | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
37
+ .object({
38
+ skill_id: z.string().optional(),
39
+ display_name: z.string().optional(),
40
+ description: z.string().optional(),
41
+ enabled: z.boolean().optional(),
42
+ tags: z.array(z.string()).optional(),
43
+ project_id: z.string().optional(),
44
+ path: z.string().optional(),
45
+ workspace_id: z.string().optional(),
46
+ created_at: z.string().datetime({ offset: true }).transform(v =>
47
+ new Date(v)
48
+ ).optional(),
49
+ updated_at: z.string().datetime({ offset: true }).transform(v =>
50
+ new Date(v)
51
+ ).optional(),
52
+ created_by_id: z.string().optional(),
53
+ updated_by_id: z.string().optional(),
54
+ instructions: z.string().optional(),
55
+ version: z.string().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ "skill_id": "skillId",
59
+ "display_name": "displayName",
60
+ "project_id": "projectId",
61
+ "workspace_id": "workspaceId",
62
+ "created_at": "createdAt",
63
+ "updated_at": "updatedAt",
64
+ "created_by_id": "createdById",
65
+ "updated_by_id": "updatedById",
66
+ });
67
+ });
68
+
69
+ export function skillFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<Skill, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => Skill$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'Skill' from JSON`,
76
+ );
77
+ }
@@ -0,0 +1,40 @@
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
+
8
+ export type UpdateFileRequest = {
9
+ fileId?: string | undefined;
10
+ fileName?: string | undefined;
11
+ };
12
+
13
+ /** @internal */
14
+ export type UpdateFileRequest$Outbound = {
15
+ file_id?: string | undefined;
16
+ file_name?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const UpdateFileRequest$outboundSchema: z.ZodType<
21
+ UpdateFileRequest$Outbound,
22
+ z.ZodTypeDef,
23
+ UpdateFileRequest
24
+ > = z.object({
25
+ fileId: z.string().optional(),
26
+ fileName: z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ fileId: "file_id",
30
+ fileName: "file_name",
31
+ });
32
+ });
33
+
34
+ export function updateFileRequestToJSON(
35
+ updateFileRequest: UpdateFileRequest,
36
+ ): string {
37
+ return JSON.stringify(
38
+ UpdateFileRequest$outboundSchema.parse(updateFileRequest),
39
+ );
40
+ }
@@ -0,0 +1,32 @@
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
+ import { FileT, FileT$inboundSchema } from "./file.js";
10
+
11
+ export type UpdateFileResponse = {
12
+ file?: FileT | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const UpdateFileResponse$inboundSchema: z.ZodType<
17
+ UpdateFileResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ file: FileT$inboundSchema.optional(),
22
+ });
23
+
24
+ export function updateFileResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<UpdateFileResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => UpdateFileResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'UpdateFileResponse' from JSON`,
31
+ );
32
+ }
@@ -0,0 +1,55 @@
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
+
8
+ export type UpdateSkillRequest = {
9
+ skillId?: string | undefined;
10
+ displayName?: string | undefined;
11
+ description?: string | undefined;
12
+ enabled?: boolean | undefined;
13
+ tags?: Array<string> | undefined;
14
+ path?: string | undefined;
15
+ instructions?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export type UpdateSkillRequest$Outbound = {
20
+ skill_id?: string | undefined;
21
+ display_name?: string | undefined;
22
+ description?: string | undefined;
23
+ enabled?: boolean | undefined;
24
+ tags?: Array<string> | undefined;
25
+ path?: string | undefined;
26
+ instructions?: string | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const UpdateSkillRequest$outboundSchema: z.ZodType<
31
+ UpdateSkillRequest$Outbound,
32
+ z.ZodTypeDef,
33
+ UpdateSkillRequest
34
+ > = z.object({
35
+ skillId: z.string().optional(),
36
+ displayName: z.string().optional(),
37
+ description: z.string().optional(),
38
+ enabled: z.boolean().optional(),
39
+ tags: z.array(z.string()).optional(),
40
+ path: z.string().optional(),
41
+ instructions: z.string().optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ skillId: "skill_id",
45
+ displayName: "display_name",
46
+ });
47
+ });
48
+
49
+ export function updateSkillRequestToJSON(
50
+ updateSkillRequest: UpdateSkillRequest,
51
+ ): string {
52
+ return JSON.stringify(
53
+ UpdateSkillRequest$outboundSchema.parse(updateSkillRequest),
54
+ );
55
+ }
@@ -0,0 +1,32 @@
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
+ import { Skill, Skill$inboundSchema } from "./skill.js";
10
+
11
+ export type UpdateSkillResponse = {
12
+ skill?: Skill | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const UpdateSkillResponse$inboundSchema: z.ZodType<
17
+ UpdateSkillResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ skill: Skill$inboundSchema.optional(),
22
+ });
23
+
24
+ export function updateSkillResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<UpdateSkillResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => UpdateSkillResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'UpdateSkillResponse' from JSON`,
31
+ );
32
+ }