@orq-ai/node 4.0.2 → 4.0.5

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 (170) hide show
  1. package/bin/mcp-server.js +213 -213
  2. package/bin/mcp-server.js.map +36 -36
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +12 -12
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getalltools.js +12 -12
  20. package/models/operations/getbudget.js +2 -2
  21. package/models/operations/getevals.js +28 -28
  22. package/models/operations/listbudgets.js +2 -2
  23. package/models/operations/listcontacts.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +8 -8
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/listdatasources.js +2 -2
  27. package/models/operations/retrievecontact.js +2 -2
  28. package/models/operations/retrievedatapoint.js +8 -8
  29. package/models/operations/retrievedataset.js +2 -2
  30. package/models/operations/retrievedatasource.js +2 -2
  31. package/models/operations/retrievetool.js +12 -12
  32. package/models/operations/runagent.js +2 -2
  33. package/models/operations/streamrunagent.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +8 -8
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +28 -28
  40. package/models/operations/updatetool.js +14 -14
  41. package/package.json +1 -1
  42. package/packages/orq-rc/README.md +38 -47
  43. package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
  44. package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsCreate.ts +16 -14
  50. package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
  51. package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
  52. package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
  53. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
  54. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
  55. package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
  56. package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
  57. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
  58. package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
  59. package/packages/orq-rc/src/lib/config.ts +2 -2
  60. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  61. package/packages/orq-rc/src/mcp-server/server.ts +1 -9
  62. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
  63. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
  64. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
  65. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
  66. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
  67. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
  68. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
  69. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
  70. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
  71. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
  72. package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
  73. package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
  74. package/packages/orq-rc/src/models/errors/index.ts +2 -3
  75. package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
  76. package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
  78. package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
  79. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  83. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  87. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  91. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  93. package/packages/orq-rc/src/models/operations/index.ts +3 -7
  94. package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
  95. package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
  96. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  99. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3741 -0
  102. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  104. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  107. package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
  108. package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
  110. package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
  111. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  114. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  117. package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
  118. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  119. package/packages/orq-rc/src/sdk/agents.ts +51 -99
  120. package/packages/orq-rc/src/sdk/responses.ts +7 -5
  121. package/src/lib/config.ts +2 -2
  122. package/src/mcp-server/mcp-server.ts +1 -1
  123. package/src/mcp-server/server.ts +1 -1
  124. package/src/models/operations/createbudget.ts +2 -2
  125. package/src/models/operations/createcontact.ts +2 -2
  126. package/src/models/operations/createdataset.ts +2 -2
  127. package/src/models/operations/createdatasetitem.ts +8 -8
  128. package/src/models/operations/createdatasource.ts +2 -2
  129. package/src/models/operations/createeval.ts +28 -28
  130. package/src/models/operations/createtool.ts +12 -12
  131. package/src/models/operations/fileget.ts +2 -2
  132. package/src/models/operations/filelist.ts +2 -2
  133. package/src/models/operations/fileupload.ts +2 -2
  134. package/src/models/operations/getalltools.ts +12 -12
  135. package/src/models/operations/getbudget.ts +2 -2
  136. package/src/models/operations/getevals.ts +28 -28
  137. package/src/models/operations/listbudgets.ts +2 -2
  138. package/src/models/operations/listcontacts.ts +2 -2
  139. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  140. package/src/models/operations/listdatasets.ts +2 -2
  141. package/src/models/operations/listdatasources.ts +2 -2
  142. package/src/models/operations/retrievecontact.ts +2 -2
  143. package/src/models/operations/retrievedatapoint.ts +8 -8
  144. package/src/models/operations/retrievedataset.ts +2 -2
  145. package/src/models/operations/retrievedatasource.ts +2 -2
  146. package/src/models/operations/retrievetool.ts +12 -12
  147. package/src/models/operations/runagent.ts +2 -2
  148. package/src/models/operations/streamrunagent.ts +2 -2
  149. package/src/models/operations/updatebudget.ts +2 -2
  150. package/src/models/operations/updatecontact.ts +2 -2
  151. package/src/models/operations/updatedatapoint.ts +8 -8
  152. package/src/models/operations/updatedataset.ts +2 -2
  153. package/src/models/operations/updatedatasource.ts +2 -2
  154. package/src/models/operations/updateeval.ts +28 -28
  155. package/src/models/operations/updatetool.ts +14 -14
  156. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  157. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  158. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  159. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  160. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  161. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  162. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  163. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  164. package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
  165. package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
  166. package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
  167. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
  168. package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
  169. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
  170. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
@@ -2990,8 +2990,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
2990
2990
  > = z.object({
2991
2991
  _id: z.string(),
2992
2992
  description: z.string(),
2993
- created: z.string().default("2025-11-22T21:11:50.311Z"),
2994
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
2993
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
2994
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
2995
2995
  guardrail_config: z.union([
2996
2996
  z.lazy(() =>
2997
2997
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
@@ -3033,8 +3033,8 @@ export const ResponseBodyTypescript$outboundSchema: z.ZodType<
3033
3033
  > = z.object({
3034
3034
  id: z.string(),
3035
3035
  description: z.string(),
3036
- created: z.string().default("2025-11-22T21:11:50.311Z"),
3037
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
3036
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
3037
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
3038
3038
  guardrailConfig: z.union([
3039
3039
  z.lazy(() =>
3040
3040
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
@@ -3324,8 +3324,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
3324
3324
  > = z.object({
3325
3325
  _id: z.string(),
3326
3326
  description: z.string(),
3327
- created: z.string().default("2025-11-22T21:11:50.311Z"),
3328
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
3327
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
3328
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
3329
3329
  guardrail_config: z.union([
3330
3330
  z.lazy(() =>
3331
3331
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
@@ -3370,8 +3370,8 @@ export const ResponseBodyRagas$outboundSchema: z.ZodType<
3370
3370
  > = z.object({
3371
3371
  id: z.string(),
3372
3372
  description: z.string(),
3373
- created: z.string().default("2025-11-22T21:11:50.311Z"),
3374
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
3373
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
3374
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
3375
3375
  guardrailConfig: z.union([
3376
3376
  z.lazy(() =>
3377
3377
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
@@ -5709,8 +5709,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
5709
5709
  > = z.object({
5710
5710
  _id: z.string(),
5711
5711
  description: z.string(),
5712
- created: z.string().default("2025-11-22T21:11:50.311Z"),
5713
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
5712
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
5713
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
5714
5714
  guardrail_config: z.union([
5715
5715
  z.lazy(() =>
5716
5716
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
@@ -5823,8 +5823,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
5823
5823
  > = z.object({
5824
5824
  id: z.string(),
5825
5825
  description: z.string(),
5826
- created: z.string().default("2025-11-22T21:11:50.311Z"),
5827
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
5826
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
5827
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
5828
5828
  guardrailConfig: z.union([
5829
5829
  z.lazy(() =>
5830
5830
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
@@ -6140,8 +6140,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
6140
6140
  > = z.object({
6141
6141
  _id: z.string(),
6142
6142
  description: z.string(),
6143
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6144
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6143
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6144
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6145
6145
  guardrail_config: z.union([
6146
6146
  z.lazy(() =>
6147
6147
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -6182,8 +6182,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
6182
6182
  > = z.object({
6183
6183
  id: z.string(),
6184
6184
  description: z.string(),
6185
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6186
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6185
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6186
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6187
6187
  guardrailConfig: z.union([
6188
6188
  z.lazy(() =>
6189
6189
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -6468,8 +6468,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
6468
6468
  > = z.object({
6469
6469
  _id: z.string(),
6470
6470
  description: z.string(),
6471
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6472
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6471
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6472
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6473
6473
  guardrail_config: z.union([
6474
6474
  z.lazy(() =>
6475
6475
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -6516,8 +6516,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
6516
6516
  > = z.object({
6517
6517
  id: z.string(),
6518
6518
  description: z.string(),
6519
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6520
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6519
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6520
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6521
6521
  guardrailConfig: z.union([
6522
6522
  z.lazy(() =>
6523
6523
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -6786,8 +6786,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
6786
6786
  > = z.object({
6787
6787
  _id: z.string(),
6788
6788
  description: z.string(),
6789
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6790
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6789
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6790
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6791
6791
  guardrail_config: z.union([
6792
6792
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
6793
6793
  z.lazy(() =>
@@ -6826,8 +6826,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
6826
6826
  > = z.object({
6827
6827
  id: z.string(),
6828
6828
  description: z.string(),
6829
- created: z.string().default("2025-11-22T21:11:50.311Z"),
6830
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
6829
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
6830
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
6831
6831
  guardrailConfig: z.union([
6832
6832
  z.lazy(() =>
6833
6833
  UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
@@ -7066,8 +7066,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
7066
7066
  > = z.object({
7067
7067
  _id: z.string(),
7068
7068
  description: z.string(),
7069
- created: z.string().default("2025-11-22T21:11:50.311Z"),
7070
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
7069
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
7070
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
7071
7071
  guardrail_config: z.union([
7072
7072
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
7073
7073
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -7106,8 +7106,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
7106
7106
  > = z.object({
7107
7107
  id: z.string(),
7108
7108
  description: z.string(),
7109
- created: z.string().default("2025-11-22T21:11:50.311Z"),
7110
- updated: z.string().default("2025-11-22T21:11:50.311Z"),
7109
+ created: z.string().default("2025-11-24T07:11:00.197Z"),
7110
+ updated: z.string().default("2025-11-24T07:11:00.197Z"),
7111
7111
  guardrailConfig: z.union([
7112
7112
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
7113
7113
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -1030,7 +1030,7 @@ export type UpdatePromptResponseFormatPromptsRequestJsonSchema = {
1030
1030
  /**
1031
1031
  * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
1032
1032
  */
1033
- strict?: boolean | null | undefined;
1033
+ strict?: boolean | undefined;
1034
1034
  };
1035
1035
 
1036
1036
  /**
@@ -4536,14 +4536,14 @@ export const UpdatePromptResponseFormatPromptsRequestJsonSchema$inboundSchema:
4536
4536
  description: z.string().optional(),
4537
4537
  name: z.string(),
4538
4538
  schema: z.any().optional(),
4539
- strict: z.nullable(z.boolean()).optional(),
4539
+ strict: z.boolean().default(false),
4540
4540
  });
4541
4541
  /** @internal */
4542
4542
  export type UpdatePromptResponseFormatPromptsRequestJsonSchema$Outbound = {
4543
4543
  description?: string | undefined;
4544
4544
  name: string;
4545
4545
  schema?: any | undefined;
4546
- strict?: boolean | null | undefined;
4546
+ strict: boolean;
4547
4547
  };
4548
4548
 
4549
4549
  /** @internal */
@@ -4556,7 +4556,7 @@ export const UpdatePromptResponseFormatPromptsRequestJsonSchema$outboundSchema:
4556
4556
  description: z.string().optional(),
4557
4557
  name: z.string(),
4558
4558
  schema: z.any().optional(),
4559
- strict: z.nullable(z.boolean()).optional(),
4559
+ strict: z.boolean().default(false),
4560
4560
  });
4561
4561
 
4562
4562
  export function updatePromptResponseFormatPromptsRequestJsonSchemaToJSON(
@@ -1617,7 +1617,7 @@ export const RequestBodyTools$inboundSchema: z.ZodType<
1617
1617
  z.ZodTypeDef,
1618
1618
  unknown
1619
1619
  > = z.object({
1620
- id: z.string().default("01KAPPHKHHNHDSM1TZ97JWXGEN"),
1620
+ id: z.string().default("01KATB7F1G6H0SFJ6MNE5CK46P"),
1621
1621
  name: z.string(),
1622
1622
  description: z.string().optional(),
1623
1623
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$inboundSchema),
@@ -1636,7 +1636,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1636
1636
  z.ZodTypeDef,
1637
1637
  RequestBodyTools
1638
1638
  > = z.object({
1639
- id: z.string().default("01KAPPHKHHNHDSM1TZ97JWXGEN"),
1639
+ id: z.string().default("01KATB7F1G6H0SFJ6MNE5CK46P"),
1640
1640
  name: z.string(),
1641
1641
  description: z.string().optional(),
1642
1642
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2857,7 +2857,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2857
2857
  z.ZodTypeDef,
2858
2858
  unknown
2859
2859
  > = z.object({
2860
- _id: z.string().default("tool_01KAPPHKHCK92NTQ5HR0ZSXZ21"),
2860
+ _id: z.string().default("tool_01KATB7F1703AY0N0SM1QRA4KG"),
2861
2861
  path: z.string(),
2862
2862
  key: z.string(),
2863
2863
  display_name: z.string().optional(),
@@ -2911,7 +2911,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
2911
2911
  z.ZodTypeDef,
2912
2912
  UpdateToolResponseBodyCodeExecutionTool
2913
2913
  > = z.object({
2914
- id: z.string().default("tool_01KAPPHKHCK92NTQ5HR0ZSXZ21"),
2914
+ id: z.string().default("tool_01KATB7F1703AY0N0SM1QRA4KG"),
2915
2915
  path: z.string(),
2916
2916
  key: z.string(),
2917
2917
  displayName: z.string().optional(),
@@ -3096,7 +3096,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
3096
3096
  z.ZodTypeDef,
3097
3097
  unknown
3098
3098
  > = z.object({
3099
- id: z.string().default("01KAPPHKHBA37YRGWRKDY24Z4V"),
3099
+ id: z.string().default("01KATB7F15F0TT7T4PMKZW4W45"),
3100
3100
  name: z.string(),
3101
3101
  description: z.string().optional(),
3102
3102
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -3115,7 +3115,7 @@ export const UpdateToolResponseBodyTools$outboundSchema: z.ZodType<
3115
3115
  z.ZodTypeDef,
3116
3116
  UpdateToolResponseBodyTools
3117
3117
  > = z.object({
3118
- id: z.string().default("01KAPPHKHBA37YRGWRKDY24Z4V"),
3118
+ id: z.string().default("01KATB7F15F0TT7T4PMKZW4W45"),
3119
3119
  name: z.string(),
3120
3120
  description: z.string().optional(),
3121
3121
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$outboundSchema),
@@ -3216,7 +3216,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
3216
3216
  z.ZodTypeDef,
3217
3217
  unknown
3218
3218
  > = z.object({
3219
- _id: z.string().default("tool_01KAPPHKH46CQ4F6D8GFE2M1R5"),
3219
+ _id: z.string().default("tool_01KATB7F14F19SH4BM7HBQ01VN"),
3220
3220
  path: z.string(),
3221
3221
  key: z.string(),
3222
3222
  display_name: z.string().optional(),
@@ -3269,7 +3269,7 @@ export const UpdateToolResponseBodyMCPTool$outboundSchema: z.ZodType<
3269
3269
  z.ZodTypeDef,
3270
3270
  UpdateToolResponseBodyMCPTool
3271
3271
  > = z.object({
3272
- id: z.string().default("tool_01KAPPHKH46CQ4F6D8GFE2M1R5"),
3272
+ id: z.string().default("tool_01KATB7F14F19SH4BM7HBQ01VN"),
3273
3273
  path: z.string(),
3274
3274
  key: z.string(),
3275
3275
  displayName: z.string().optional(),
@@ -3646,7 +3646,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
3646
3646
  z.ZodTypeDef,
3647
3647
  unknown
3648
3648
  > = z.object({
3649
- _id: z.string().default("tool_01KAPPHKH3C4N7CZVQ3475ZX3K"),
3649
+ _id: z.string().default("tool_01KATB7F1227821RTZEB6DTAJK"),
3650
3650
  path: z.string(),
3651
3651
  key: z.string(),
3652
3652
  display_name: z.string().optional(),
@@ -3699,7 +3699,7 @@ export const UpdateToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
3699
3699
  z.ZodTypeDef,
3700
3700
  UpdateToolResponseBodyHTTPTool
3701
3701
  > = z.object({
3702
- id: z.string().default("tool_01KAPPHKH3C4N7CZVQ3475ZX3K"),
3702
+ id: z.string().default("tool_01KATB7F1227821RTZEB6DTAJK"),
3703
3703
  path: z.string(),
3704
3704
  key: z.string(),
3705
3705
  displayName: z.string().optional(),
@@ -3881,7 +3881,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
3881
3881
  z.ZodTypeDef,
3882
3882
  unknown
3883
3883
  > = z.object({
3884
- _id: z.string().default("tool_01KAPPHKH1T37YYN56NNQJDGDH"),
3884
+ _id: z.string().default("tool_01KATB7F10SEHSSBCC2CFBGWAF"),
3885
3885
  path: z.string(),
3886
3886
  key: z.string(),
3887
3887
  display_name: z.string().optional(),
@@ -3933,7 +3933,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
3933
3933
  z.ZodTypeDef,
3934
3934
  UpdateToolResponseBodyJSONSchemaTool
3935
3935
  > = z.object({
3936
- id: z.string().default("tool_01KAPPHKH1T37YYN56NNQJDGDH"),
3936
+ id: z.string().default("tool_01KATB7F10SEHSSBCC2CFBGWAF"),
3937
3937
  path: z.string(),
3938
3938
  key: z.string(),
3939
3939
  displayName: z.string().optional(),
@@ -4130,7 +4130,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
4130
4130
  z.ZodTypeDef,
4131
4131
  unknown
4132
4132
  > = z.object({
4133
- _id: z.string().default("tool_01KAPPHKH0D3M48GMD51B0GJ20"),
4133
+ _id: z.string().default("tool_01KATB7F0ZCJNE3EXV80EPAKHT"),
4134
4134
  path: z.string(),
4135
4135
  key: z.string(),
4136
4136
  display_name: z.string().optional(),
@@ -4181,7 +4181,7 @@ export const UpdateToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
4181
4181
  z.ZodTypeDef,
4182
4182
  UpdateToolResponseBodyFunctionTool
4183
4183
  > = z.object({
4184
- id: z.string().default("tool_01KAPPHKH0D3M48GMD51B0GJ20"),
4184
+ id: z.string().default("tool_01KATB7F0ZCJNE3EXV80EPAKHT"),
4185
4185
  path: z.string(),
4186
4186
  key: z.string(),
4187
4187
  displayName: z.string().optional(),
@@ -6,11 +6,7 @@ import { agentsCreate } from "../funcs/agentsCreate.js";
6
6
  import { agentsDelete } from "../funcs/agentsDelete.js";
7
7
  import { agentsInvoke } from "../funcs/agentsInvoke.js";
8
8
  import { agentsList } from "../funcs/agentsList.js";
9
- import { agentsListActions } from "../funcs/agentsListActions.js";
10
- import { agentsListTasks } from "../funcs/agentsListTasks.js";
11
9
  import { agentsRetrieve } from "../funcs/agentsRetrieve.js";
12
- import { agentsRetrieveAction } from "../funcs/agentsRetrieveAction.js";
13
- import { agentsRetrieveTask } from "../funcs/agentsRetrieveTask.js";
14
10
  import { agentsRun } from "../funcs/agentsRun.js";
15
11
  import { agentsStream } from "../funcs/agentsStream.js";
16
12
  import { agentsStreamRun } from "../funcs/agentsStreamRun.js";
@@ -28,15 +24,15 @@ export class Agents extends ClientSDK {
28
24
  }
29
25
 
30
26
  /**
31
- * Create a new agent
27
+ * Create agent
32
28
  *
33
29
  * @remarks
34
- * Creates a new AI agent with specified configuration. Agents can be configured with a primary model and an optional fallback model that will be used automatically if the primary model fails.
30
+ * Creates a new agent with the specified configuration, including model selection, instructions, tools, and knowledge bases. Agents are intelligent assistants that can execute tasks, interact with tools, and maintain context through memory stores. The agent can be configured with a primary model and optional fallback models for automatic failover, custom instructions for behavior control, and various settings to control execution limits and tool usage.
35
31
  */
36
32
  async create(
37
- request?: operations.CreateAgentRequestBody | undefined,
33
+ request?: operations.CreateAgentRequestRequestBody | undefined,
38
34
  options?: RequestOptions,
39
- ): Promise<operations.CreateAgentResponseBody> {
35
+ ): Promise<operations.CreateAgentRequestResponseBody> {
40
36
  return unwrapAsync(agentsCreate(
41
37
  this,
42
38
  request,
@@ -45,129 +41,107 @@ export class Agents extends ClientSDK {
45
41
  }
46
42
 
47
43
  /**
48
- * Delete an agent
44
+ * Delete agent
49
45
  *
50
46
  * @remarks
51
- * Permanently deletes an agent and all its configuration, including primary and fallback model settings.
47
+ * Permanently removes an agent from the workspace. This operation is irreversible and will delete all associated configuration including model assignments, tools, knowledge bases, memory stores, and cached data. Active agent sessions will be terminated, and the agent key will become available for reuse.
52
48
  */
53
49
  async delete(
54
- request: operations.DeleteAgentRequest,
50
+ agentKey: string,
55
51
  options?: RequestOptions,
56
52
  ): Promise<void> {
57
53
  return unwrapAsync(agentsDelete(
58
54
  this,
59
- request,
55
+ agentKey,
60
56
  options,
61
57
  ));
62
58
  }
63
59
 
64
60
  /**
65
- * Get an agent
61
+ * Retrieve agent
66
62
  *
67
63
  * @remarks
68
- * Retrieves a single agent by its unique key, including its full configuration with primary and fallback model settings.
64
+ * Retrieves detailed information about a specific agent identified by its unique key or identifier. Returns the complete agent manifest including configuration settings, model assignments (primary and fallback), tools, knowledge bases, memory stores, instructions, and execution parameters. Use this endpoint to fetch the current state and configuration of an individual agent.
69
65
  */
70
66
  async retrieve(
71
- request: operations.GetAgentRequest,
67
+ agentKey: string,
72
68
  options?: RequestOptions,
73
- ): Promise<operations.GetAgentResponseBody> {
69
+ ): Promise<operations.RetrieveAgentRequestResponseBody> {
74
70
  return unwrapAsync(agentsRetrieve(
75
71
  this,
76
- request,
72
+ agentKey,
77
73
  options,
78
74
  ));
79
75
  }
80
76
 
81
77
  /**
82
- * Update an agent
78
+ * Update agent
83
79
  *
84
80
  * @remarks
85
- * Updates an existing agent's configuration. You can update various fields including the model configuration and fallback model settings.
81
+ * Modifies an existing agent's configuration with partial updates. Supports updating any aspect of the agent including model assignments (primary and fallback), instructions, tools, knowledge bases, memory stores, and execution parameters. Only the fields provided in the request body will be updated; all other fields remain unchanged. Changes take effect immediately for new agent invocations.
86
82
  */
87
83
  async update(
88
- request: operations.UpdateAgentRequest,
84
+ agentKey: string,
85
+ requestBody?: operations.UpdateAgentUpdateAgentRequest | undefined,
89
86
  options?: RequestOptions,
90
87
  ): Promise<operations.UpdateAgentResponseBody> {
91
88
  return unwrapAsync(agentsUpdate(
92
89
  this,
93
- request,
90
+ agentKey,
91
+ requestBody,
94
92
  options,
95
93
  ));
96
94
  }
97
95
 
98
96
  /**
99
- * Invoke an agent
97
+ * Execute an agent task
100
98
  *
101
99
  * @remarks
102
- * Executes an existing agent with the provided input. The agent uses its pre-configured primary model and will automatically fall back to its configured fallback model if the primary model fails. Fallback models are configured at the agent level, not during execution.
100
+ * Invokes an agent to perform a task with the provided input message. The agent will process the request using its configured model and tools, maintaining context through memory stores if configured. Supports automatic model fallback on primary model failure, tool execution, knowledge base retrieval, and continuation of previous conversations. Returns a task response that can be used to track execution status and retrieve results.
101
+ *
102
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
103
103
  */
104
104
  async invoke(
105
- request: operations.InvokeAgentRequest,
105
+ key: string,
106
+ requestBody?: operations.InvokeAgentRequestBody | undefined,
106
107
  options?: RequestOptions,
107
108
  ): Promise<operations.InvokeAgentA2ATaskResponse> {
108
109
  return unwrapAsync(agentsInvoke(
109
110
  this,
110
- request,
111
- options,
112
- ));
113
- }
114
-
115
- /**
116
- * List all tasks for an agent
117
- *
118
- * @remarks
119
- * Retrieves a paginated list of all tasks associated with a specific agent, optionally filtered by status.
120
- */
121
- async listTasks(
122
- request: operations.ListAgentTasksRequest,
123
- options?: RequestOptions,
124
- ): Promise<operations.ListAgentTasksAgentTasksListResponse> {
125
- return unwrapAsync(agentsListTasks(
126
- this,
127
- request,
128
- options,
129
- ));
130
- }
131
-
132
- /**
133
- * Retrieve a specific agent task
134
- *
135
- * @remarks
136
- * Retrieves detailed information about a specific task for a given agent, including execution status and results.
137
- */
138
- async retrieveTask(
139
- request: operations.GetAgentTaskRequest,
140
- options?: RequestOptions,
141
- ): Promise<operations.GetAgentTaskExtendedTaskResponse> {
142
- return unwrapAsync(agentsRetrieveTask(
143
- this,
144
- request,
111
+ key,
112
+ requestBody,
145
113
  options,
146
114
  ));
147
115
  }
148
116
 
149
117
  /**
150
- * List all agents
118
+ * List agents
151
119
  *
152
120
  * @remarks
153
- * Retrieves a list of all agents in your workspace. When no limit is provided, returns all agents without pagination. When a limit is specified, returns a paginated list. Each agent includes its configuration, primary model, and optional fallback model settings.
121
+ * Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
154
122
  */
155
123
  async list(
156
- request?: operations.ListAgentsRequest | undefined,
124
+ limit?: number | undefined,
125
+ startingAfter?: string | undefined,
126
+ endingBefore?: string | undefined,
157
127
  options?: RequestOptions,
158
128
  ): Promise<operations.ListAgentsResponseBody> {
159
129
  return unwrapAsync(agentsList(
160
130
  this,
161
- request,
131
+ limit,
132
+ startingAfter,
133
+ endingBefore,
162
134
  options,
163
135
  ));
164
136
  }
165
137
 
166
138
  /**
167
- * Run an agent
139
+ * Run an agent with configuration
168
140
  *
169
141
  * @remarks
170
- * Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
142
+ * Executes an agent using inline configuration or references an existing agent. Supports dynamic agent creation where the system automatically manages agent versioning - reusing existing agents with matching configurations or creating new versions when configurations differ. Ideal for programmatic agent execution with flexible configuration management. The agent processes messages in A2A format with support for memory context, tool execution, and automatic model fallback on failure.
143
+ *
144
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
171
145
  */
172
146
  async run(
173
147
  request?: operations.RunAgentRequestBody | undefined,
@@ -181,10 +155,12 @@ export class Agents extends ClientSDK {
181
155
  }
182
156
 
183
157
  /**
184
- * Run and stream agent execution
158
+ * Run agent with streaming response
185
159
  *
186
160
  * @remarks
187
- * Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.
161
+ * Dynamically configures and executes an agent while streaming the interaction in real-time via Server-Sent Events (SSE). Intelligently manages agent versioning by reusing existing agents with matching configurations or creating new versions when configurations differ. Combines the flexibility of inline configuration with real-time streaming, making it ideal for dynamic agent interactions with live feedback. The stream provides continuous updates including message chunks, tool executions, and status changes until completion or timeout.
162
+ *
163
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
188
164
  */
189
165
  async streamRun(
190
166
  request?: operations.StreamRunAgentRequestBody | undefined,
@@ -198,46 +174,22 @@ export class Agents extends ClientSDK {
198
174
  }
199
175
 
200
176
  /**
201
- * Stream agent execution events
177
+ * Stream agent execution in real-time
202
178
  *
203
179
  * @remarks
204
- * Executes an agent and streams events via Server-Sent Events (SSE). The stream will continue until the agent completes, errors, or reaches the configured timeout.
180
+ * Executes an agent and streams the interaction in real-time using Server-Sent Events (SSE). Provides live updates as the agent processes the request, including message chunks, tool calls, and execution status. Perfect for building responsive chat interfaces and monitoring agent progress. The stream continues until the agent completes its task, encounters an error, or reaches the configured timeout (default 30 minutes, configurable 1-3600 seconds).
181
+ *
182
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
205
183
  */
206
184
  async stream(
207
- request: operations.StreamAgentRequest,
185
+ key: string,
186
+ requestBody?: operations.StreamAgentRequestBody | undefined,
208
187
  options?: RequestOptions,
209
188
  ): Promise<EventStream<operations.StreamAgentResponseBody>> {
210
189
  return unwrapAsync(agentsStream(
211
190
  this,
212
- request,
213
- options,
214
- ));
215
- }
216
-
217
- /**
218
- * List all actions
219
- */
220
- async listActions(
221
- request: operations.ListActionsRequest,
222
- options?: RequestOptions,
223
- ): Promise<operations.ListActionsResponseBody> {
224
- return unwrapAsync(agentsListActions(
225
- this,
226
- request,
227
- options,
228
- ));
229
- }
230
-
231
- /**
232
- * Retrieve an action executed by an agent task.
233
- */
234
- async retrieveAction(
235
- request: operations.RetrieveActionRequest,
236
- options?: RequestOptions,
237
- ): Promise<operations.RetrieveActionResponseBody> {
238
- return unwrapAsync(agentsRetrieveAction(
239
- this,
240
- request,
191
+ key,
192
+ requestBody,
241
193
  options,
242
194
  ));
243
195
  }
@@ -9,18 +9,20 @@ import { unwrapAsync } from "../types/fp.js";
9
9
 
10
10
  export class Responses extends ClientSDK {
11
11
  /**
12
- * Create an agent response
12
+ * Create response
13
13
  *
14
14
  * @remarks
15
- * Creates a new response representing an agent interaction. A response tracks the conversation from the initial message until the agent becomes inactive or errors. Supports both synchronous (waiting) and asynchronous (background) execution modes.
15
+ * Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
16
16
  */
17
17
  async create(
18
- request: operations.CreateAgentResponseRequest,
18
+ agentKey: string,
19
+ requestBody?: operations.CreateAgentResponseRequestRequestBody | undefined,
19
20
  options?: RequestOptions,
20
- ): Promise<operations.CreateAgentResponseResponseBody> {
21
+ ): Promise<operations.CreateAgentResponseRequestResponseBody> {
21
22
  return unwrapAsync(agentsResponsesCreate(
22
23
  this,
23
- request,
24
+ agentKey,
25
+ requestBody,
24
26
  options,
25
27
  ));
26
28
  }
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.0.2",
71
+ sdkVersion: "4.0.5",
72
72
  genVersion: "2.760.2",
73
- userAgent: "speakeasy-sdk/typescript 4.0.2 2.760.2 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.0.5 2.760.2 2.0 @orq-ai/node",
74
74
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "4.0.2",
22
+ currentVersion: "4.0.5",
23
23
  },
24
24
  });
25
25
 
@@ -120,7 +120,7 @@ export function createMCPServer(deps: {
120
120
  }) {
121
121
  const server = new McpServer({
122
122
  name: "Orq",
123
- version: "4.0.2",
123
+ version: "4.0.5",
124
124
  });
125
125
 
126
126
  const client = new OrqCore({
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
516
516
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
517
517
  .optional(),
518
518
  updated: z.string().datetime({ offset: true }).default(
519
- "2025-11-23T18:45:48.500Z",
519
+ "2025-11-24T12:57:33.395Z",
520
520
  ).transform(v => new Date(v)),
521
521
  }).transform((v) => {
522
522
  return remap$(v, {
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
553
553
  isActive: z.boolean(),
554
554
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
555
555
  created: z.date().transform(v => v.toISOString()).optional(),
556
- updated: z.date().default(() => new Date("2025-11-23T18:45:48.500Z"))
556
+ updated: z.date().default(() => new Date("2025-11-24T12:57:33.395Z"))
557
557
  .transform(v => v.toISOString()),
558
558
  }).transform((v) => {
559
559
  return remap$(v, {