vellum-ai 0.8.27 → 0.8.28

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 (88) hide show
  1. package/.mock/definition/__package__.yml +7 -7
  2. package/.mock/definition/workspaceSecrets.yml +37 -1
  3. package/.mock/openapi/openapi.yml +76 -38
  4. package/Client.js +10 -10
  5. package/api/resources/adHoc/client/Client.js +1 -1
  6. package/api/resources/deployments/client/Client.js +5 -5
  7. package/api/resources/documentIndexes/client/Client.js +8 -8
  8. package/api/resources/documents/client/Client.js +5 -5
  9. package/api/resources/folderEntities/client/Client.js +2 -2
  10. package/api/resources/metricDefinitions/client/Client.js +1 -1
  11. package/api/resources/sandboxes/client/Client.js +3 -3
  12. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  13. package/api/resources/testSuites/client/Client.js +4 -4
  14. package/api/resources/workflowDeployments/client/Client.js +4 -4
  15. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  16. package/api/resources/workflows/client/Client.js +1 -1
  17. package/api/resources/workspaceSecrets/client/Client.js +1 -1
  18. package/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  19. package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  20. package/api/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +1 -1
  21. package/api/types/NodeInputVariableCompiledValue.d.ts +1 -1
  22. package/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  23. package/api/types/TerminalNodeArrayResult.d.ts +1 -1
  24. package/api/types/TerminalNodeResultOutput.d.ts +1 -1
  25. package/api/types/index.d.ts +1 -1
  26. package/api/types/index.js +1 -1
  27. package/dist/Client.js +10 -10
  28. package/dist/api/resources/adHoc/client/Client.js +1 -1
  29. package/dist/api/resources/deployments/client/Client.js +5 -5
  30. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  31. package/dist/api/resources/documents/client/Client.js +5 -5
  32. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  33. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  34. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  35. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  36. package/dist/api/resources/testSuites/client/Client.js +4 -4
  37. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  38. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  39. package/dist/api/resources/workflows/client/Client.js +1 -1
  40. package/dist/api/resources/workspaceSecrets/client/Client.js +1 -1
  41. package/dist/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  42. package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  43. package/dist/api/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +1 -1
  44. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +1 -1
  45. package/dist/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  46. package/dist/api/types/TerminalNodeArrayResult.d.ts +1 -1
  47. package/dist/api/types/TerminalNodeResultOutput.d.ts +1 -1
  48. package/dist/api/types/index.d.ts +1 -1
  49. package/dist/api/types/index.js +1 -1
  50. package/dist/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  51. package/dist/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  52. package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  53. package/dist/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  54. package/dist/serialization/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +2 -2
  55. package/dist/serialization/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +2 -2
  56. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +2 -2
  57. package/dist/serialization/types/NodeInputVariableCompiledValue.js +2 -2
  58. package/dist/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  59. package/dist/serialization/types/TemplatingNodeArrayResult.js +1 -1
  60. package/dist/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  61. package/dist/serialization/types/TerminalNodeArrayResult.js +1 -1
  62. package/dist/serialization/types/TerminalNodeResultOutput.d.ts +2 -2
  63. package/dist/serialization/types/TerminalNodeResultOutput.js +2 -2
  64. package/dist/serialization/types/index.d.ts +1 -1
  65. package/dist/serialization/types/index.js +1 -1
  66. package/dist/version.d.ts +1 -1
  67. package/dist/version.js +1 -1
  68. package/package.json +1 -1
  69. package/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  70. package/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  71. package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  72. package/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  73. package/serialization/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +2 -2
  74. package/serialization/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +2 -2
  75. package/serialization/types/NodeInputVariableCompiledValue.d.ts +2 -2
  76. package/serialization/types/NodeInputVariableCompiledValue.js +2 -2
  77. package/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  78. package/serialization/types/TemplatingNodeArrayResult.js +1 -1
  79. package/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  80. package/serialization/types/TerminalNodeArrayResult.js +1 -1
  81. package/serialization/types/TerminalNodeResultOutput.d.ts +2 -2
  82. package/serialization/types/TerminalNodeResultOutput.js +2 -2
  83. package/serialization/types/index.d.ts +1 -1
  84. package/serialization/types/index.js +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. /package/api/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +0 -0
  88. /package/dist/api/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +0 -0
@@ -1030,7 +1030,7 @@ types:
1030
1030
  properties:
1031
1031
  id: string
1032
1032
  type: literal<"ARRAY">
1033
- value: optional<list<ArrayVariableValueItem>>
1033
+ value: optional<list<ArrayVellumValueItem>>
1034
1034
  source:
1035
1035
  openapi: openapi/openapi.yml
1036
1036
  CodeExecutionNodeChatHistoryResult:
@@ -2871,7 +2871,7 @@ types:
2871
2871
  node_input_id: string
2872
2872
  key: string
2873
2873
  type: literal<"ARRAY">
2874
- value: optional<list<ArrayVariableValueItem>>
2874
+ value: optional<list<ArrayVellumValueItem>>
2875
2875
  source:
2876
2876
  openapi: openapi/openapi.yml
2877
2877
  NodeInputCompiledChatHistoryValue:
@@ -2890,7 +2890,7 @@ types:
2890
2890
  value: optional<VellumError>
2891
2891
  source:
2892
2892
  openapi: openapi/openapi.yml
2893
- NodeInputCompiledFunctionCall:
2893
+ NodeInputCompiledFunctionCallValue:
2894
2894
  properties:
2895
2895
  node_input_id: string
2896
2896
  key: string
@@ -2940,7 +2940,7 @@ types:
2940
2940
  - NodeInputCompiledSearchResultsValue
2941
2941
  - NodeInputCompiledErrorValue
2942
2942
  - NodeInputCompiledArrayValue
2943
- - NodeInputCompiledFunctionCall
2943
+ - NodeInputCompiledFunctionCallValue
2944
2944
  source:
2945
2945
  openapi: openapi/openapi.yml
2946
2946
  NodeOutputCompiledArrayValue:
@@ -4307,7 +4307,7 @@ types:
4307
4307
  properties:
4308
4308
  id: string
4309
4309
  type: literal<"ARRAY">
4310
- value: optional<list<ArrayVariableValueItem>>
4310
+ value: optional<list<ArrayVellumValueItem>>
4311
4311
  source:
4312
4312
  openapi: openapi/openapi.yml
4313
4313
  TemplatingNodeChatHistoryResult:
@@ -4394,7 +4394,7 @@ types:
4394
4394
  type: string
4395
4395
  docs: The unique name given to the terminal node that produced this output.
4396
4396
  type: literal<"ARRAY">
4397
- value: optional<list<ArrayVariableValueItem>>
4397
+ value: optional<list<ArrayVellumValueItem>>
4398
4398
  source:
4399
4399
  openapi: openapi/openapi.yml
4400
4400
  TerminalNodeChatHistoryResult:
@@ -4482,9 +4482,9 @@ types:
4482
4482
  - TerminalNodeJsonResult
4483
4483
  - TerminalNodeChatHistoryResult
4484
4484
  - TerminalNodeSearchResultsResult
4485
+ - TerminalNodeErrorResult
4485
4486
  - TerminalNodeArrayResult
4486
4487
  - TerminalNodeFunctionCallResult
4487
- - TerminalNodeErrorResult
4488
4488
  source:
4489
4489
  openapi: openapi/openapi.yml
4490
4490
  TerminalNodeSearchResultsResult:
@@ -7,7 +7,7 @@ service:
7
7
  retrieve:
8
8
  path: /v1/workspace-secrets/{id}
9
9
  method: GET
10
- auth: false
10
+ auth: true
11
11
  docs: Used to retrieve a Workspace Secret given its ID or name.
12
12
  path-parameters:
13
13
  id:
@@ -30,5 +30,41 @@ service:
30
30
  secret_type: USER_DEFINED
31
31
  audiences:
32
32
  - internal
33
+ partialUpdate:
34
+ path: /v1/workspace-secrets/{id}
35
+ method: PATCH
36
+ auth: true
37
+ docs: Used to update a Workspace Secret given its ID or name.
38
+ path-parameters:
39
+ id:
40
+ type: string
41
+ docs: Either the Workspace Secret's ID or its unique name
42
+ request:
43
+ name: PatchedWorkspaceSecretUpdateRequest
44
+ body:
45
+ properties:
46
+ label:
47
+ type: optional<string>
48
+ validation:
49
+ minLength: 1
50
+ value:
51
+ type: optional<string>
52
+ validation:
53
+ minLength: 1
54
+ response:
55
+ docs: ''
56
+ type: root.WorkspaceSecretRead
57
+ url: Default
58
+ examples:
59
+ - path-parameters:
60
+ id: id
61
+ request: {}
62
+ response:
63
+ body:
64
+ id: id
65
+ modified: '2024-01-15T09:30:00Z'
66
+ name: name
67
+ label: label
68
+ secret_type: USER_DEFINED
33
69
  source:
34
70
  openapi: openapi/openapi.yml
@@ -1965,6 +1965,8 @@ paths:
1965
1965
  required: true
1966
1966
  tags:
1967
1967
  - workspace-secrets
1968
+ security:
1969
+ - apiKeyAuth: []
1968
1970
  responses:
1969
1971
  '200':
1970
1972
  content:
@@ -1975,6 +1977,32 @@ paths:
1975
1977
  x-fern-availability: beta
1976
1978
  x-fern-audiences:
1977
1979
  - internal
1980
+ patch:
1981
+ operationId: workspace_secrets_partial_update
1982
+ description: Used to update a Workspace Secret given its ID or name.
1983
+ parameters:
1984
+ - in: path
1985
+ name: id
1986
+ schema:
1987
+ type: string
1988
+ description: Either the Workspace Secret's ID or its unique name
1989
+ required: true
1990
+ tags:
1991
+ - workspace-secrets
1992
+ requestBody:
1993
+ content:
1994
+ application/json:
1995
+ schema:
1996
+ $ref: '#/components/schemas/PatchedWorkspaceSecretUpdateRequest'
1997
+ security:
1998
+ - apiKeyAuth: []
1999
+ responses:
2000
+ '200':
2001
+ content:
2002
+ application/json:
2003
+ schema:
2004
+ $ref: '#/components/schemas/WorkspaceSecretRead'
2005
+ description: ''
1978
2006
  components:
1979
2007
  schemas:
1980
2008
  AdHocExecutePromptEvent:
@@ -2583,11 +2611,11 @@ components:
2583
2611
  id:
2584
2612
  type: string
2585
2613
  type:
2586
- type: string
2614
+ $ref: '#/components/schemas/ArrayEnum'
2587
2615
  value:
2588
2616
  type: array
2589
2617
  items:
2590
- $ref: '#/components/schemas/ArrayVariableValueItem'
2618
+ $ref: '#/components/schemas/ArrayVellumValueItem'
2591
2619
  nullable: true
2592
2620
  required:
2593
2621
  - id
@@ -2599,7 +2627,7 @@ components:
2599
2627
  id:
2600
2628
  type: string
2601
2629
  type:
2602
- type: string
2630
+ $ref: '#/components/schemas/ChatHistoryEnum'
2603
2631
  value:
2604
2632
  type: array
2605
2633
  items:
@@ -2615,7 +2643,7 @@ components:
2615
2643
  id:
2616
2644
  type: string
2617
2645
  type:
2618
- type: string
2646
+ $ref: '#/components/schemas/ErrorEnum'
2619
2647
  value:
2620
2648
  allOf:
2621
2649
  - $ref: '#/components/schemas/VellumError'
@@ -2645,7 +2673,7 @@ components:
2645
2673
  id:
2646
2674
  type: string
2647
2675
  type:
2648
- type: string
2676
+ $ref: '#/components/schemas/JsonEnum'
2649
2677
  value:
2650
2678
  nullable: true
2651
2679
  required:
@@ -2658,7 +2686,7 @@ components:
2658
2686
  id:
2659
2687
  type: string
2660
2688
  type:
2661
- type: string
2689
+ $ref: '#/components/schemas/NumberEnum'
2662
2690
  value:
2663
2691
  type: number
2664
2692
  format: double
@@ -2715,7 +2743,7 @@ components:
2715
2743
  id:
2716
2744
  type: string
2717
2745
  type:
2718
- type: string
2746
+ $ref: '#/components/schemas/SearchResultsEnum'
2719
2747
  value:
2720
2748
  type: array
2721
2749
  items:
@@ -2731,7 +2759,7 @@ components:
2731
2759
  id:
2732
2760
  type: string
2733
2761
  type:
2734
- type: string
2762
+ $ref: '#/components/schemas/StringEnum'
2735
2763
  value:
2736
2764
  type: string
2737
2765
  nullable: true
@@ -5887,11 +5915,11 @@ components:
5887
5915
  key:
5888
5916
  type: string
5889
5917
  type:
5890
- type: string
5918
+ $ref: '#/components/schemas/ArrayEnum'
5891
5919
  value:
5892
5920
  type: array
5893
5921
  items:
5894
- $ref: '#/components/schemas/ArrayVariableValueItem'
5922
+ $ref: '#/components/schemas/ArrayVellumValueItem'
5895
5923
  nullable: true
5896
5924
  required:
5897
5925
  - key
@@ -5906,7 +5934,7 @@ components:
5906
5934
  key:
5907
5935
  type: string
5908
5936
  type:
5909
- type: string
5937
+ $ref: '#/components/schemas/ChatHistoryEnum'
5910
5938
  value:
5911
5939
  type: array
5912
5940
  items:
@@ -5925,7 +5953,7 @@ components:
5925
5953
  key:
5926
5954
  type: string
5927
5955
  type:
5928
- type: string
5956
+ $ref: '#/components/schemas/ErrorEnum'
5929
5957
  value:
5930
5958
  allOf:
5931
5959
  - $ref: '#/components/schemas/VellumError'
@@ -5935,7 +5963,7 @@ components:
5935
5963
  - node_input_id
5936
5964
  - type
5937
5965
  - value
5938
- NodeInputCompiledFunctionCall:
5966
+ NodeInputCompiledFunctionCallValue:
5939
5967
  type: object
5940
5968
  properties:
5941
5969
  node_input_id:
@@ -5943,7 +5971,7 @@ components:
5943
5971
  key:
5944
5972
  type: string
5945
5973
  type:
5946
- type: string
5974
+ $ref: '#/components/schemas/FunctionCallEnum'
5947
5975
  value:
5948
5976
  allOf:
5949
5977
  - $ref: '#/components/schemas/FunctionCall'
@@ -5961,7 +5989,7 @@ components:
5961
5989
  key:
5962
5990
  type: string
5963
5991
  type:
5964
- type: string
5992
+ $ref: '#/components/schemas/JsonEnum'
5965
5993
  value:
5966
5994
  nullable: true
5967
5995
  required:
@@ -5977,7 +6005,7 @@ components:
5977
6005
  key:
5978
6006
  type: string
5979
6007
  type:
5980
- type: string
6008
+ $ref: '#/components/schemas/NumberEnum'
5981
6009
  value:
5982
6010
  type: number
5983
6011
  format: double
@@ -5995,7 +6023,7 @@ components:
5995
6023
  key:
5996
6024
  type: string
5997
6025
  type:
5998
- type: string
6026
+ $ref: '#/components/schemas/SearchResultsEnum'
5999
6027
  value:
6000
6028
  type: array
6001
6029
  items:
@@ -6014,7 +6042,7 @@ components:
6014
6042
  key:
6015
6043
  type: string
6016
6044
  type:
6017
- type: string
6045
+ $ref: '#/components/schemas/StringEnum'
6018
6046
  value:
6019
6047
  type: string
6020
6048
  nullable: true
@@ -6032,7 +6060,7 @@ components:
6032
6060
  - $ref: '#/components/schemas/NodeInputCompiledSearchResultsValue'
6033
6061
  - $ref: '#/components/schemas/NodeInputCompiledErrorValue'
6034
6062
  - $ref: '#/components/schemas/NodeInputCompiledArrayValue'
6035
- - $ref: '#/components/schemas/NodeInputCompiledFunctionCall'
6063
+ - $ref: '#/components/schemas/NodeInputCompiledFunctionCallValue'
6036
6064
  discriminator:
6037
6065
  propertyName: type
6038
6066
  mapping:
@@ -6043,7 +6071,7 @@ components:
6043
6071
  SEARCH_RESULTS: '#/components/schemas/NodeInputCompiledSearchResultsValue'
6044
6072
  ERROR: '#/components/schemas/NodeInputCompiledErrorValue'
6045
6073
  ARRAY: '#/components/schemas/NodeInputCompiledArrayValue'
6046
- FUNCTION_CALL: '#/components/schemas/NodeInputCompiledFunctionCall'
6074
+ FUNCTION_CALL: '#/components/schemas/NodeInputCompiledFunctionCallValue'
6047
6075
  NodeOutputCompiledArrayValue:
6048
6076
  type: object
6049
6077
  description: An output returned by a node that is of type ARRAY.
@@ -6597,6 +6625,16 @@ components:
6597
6625
  type: string
6598
6626
  format: uuid
6599
6627
  description: The ID of the Workflow Deployment History Item to tag
6628
+ PatchedWorkspaceSecretUpdateRequest:
6629
+ type: object
6630
+ properties:
6631
+ label:
6632
+ type: string
6633
+ minLength: 1
6634
+ value:
6635
+ type: string
6636
+ writeOnly: true
6637
+ minLength: 1
6600
6638
  PdfEnum:
6601
6639
  type: string
6602
6640
  enum:
@@ -8210,11 +8248,11 @@ components:
8210
8248
  id:
8211
8249
  type: string
8212
8250
  type:
8213
- type: string
8251
+ $ref: '#/components/schemas/ArrayEnum'
8214
8252
  value:
8215
8253
  type: array
8216
8254
  items:
8217
- $ref: '#/components/schemas/ArrayVariableValueItem'
8255
+ $ref: '#/components/schemas/ArrayVellumValueItem'
8218
8256
  nullable: true
8219
8257
  required:
8220
8258
  - id
@@ -8226,7 +8264,7 @@ components:
8226
8264
  id:
8227
8265
  type: string
8228
8266
  type:
8229
- type: string
8267
+ $ref: '#/components/schemas/ChatHistoryEnum'
8230
8268
  value:
8231
8269
  type: array
8232
8270
  items:
@@ -8242,7 +8280,7 @@ components:
8242
8280
  id:
8243
8281
  type: string
8244
8282
  type:
8245
- type: string
8283
+ $ref: '#/components/schemas/ErrorEnum'
8246
8284
  value:
8247
8285
  allOf:
8248
8286
  - $ref: '#/components/schemas/VellumError'
@@ -8272,7 +8310,7 @@ components:
8272
8310
  id:
8273
8311
  type: string
8274
8312
  type:
8275
- type: string
8313
+ $ref: '#/components/schemas/JsonEnum'
8276
8314
  value:
8277
8315
  nullable: true
8278
8316
  required:
@@ -8285,7 +8323,7 @@ components:
8285
8323
  id:
8286
8324
  type: string
8287
8325
  type:
8288
- type: string
8326
+ $ref: '#/components/schemas/NumberEnum'
8289
8327
  value:
8290
8328
  type: number
8291
8329
  format: double
@@ -8339,7 +8377,7 @@ components:
8339
8377
  id:
8340
8378
  type: string
8341
8379
  type:
8342
- type: string
8380
+ $ref: '#/components/schemas/SearchResultsEnum'
8343
8381
  value:
8344
8382
  type: array
8345
8383
  items:
@@ -8355,7 +8393,7 @@ components:
8355
8393
  id:
8356
8394
  type: string
8357
8395
  type:
8358
- type: string
8396
+ $ref: '#/components/schemas/StringEnum'
8359
8397
  value:
8360
8398
  type: string
8361
8399
  nullable: true
@@ -8375,11 +8413,11 @@ components:
8375
8413
  description: The unique name given to the terminal node that produced this
8376
8414
  output.
8377
8415
  type:
8378
- type: string
8416
+ $ref: '#/components/schemas/ArrayEnum'
8379
8417
  value:
8380
8418
  type: array
8381
8419
  items:
8382
- $ref: '#/components/schemas/ArrayVariableValueItem'
8420
+ $ref: '#/components/schemas/ArrayVellumValueItem'
8383
8421
  nullable: true
8384
8422
  required:
8385
8423
  - name
@@ -8397,7 +8435,7 @@ components:
8397
8435
  description: The unique name given to the terminal node that produced this
8398
8436
  output.
8399
8437
  type:
8400
- type: string
8438
+ $ref: '#/components/schemas/ChatHistoryEnum'
8401
8439
  value:
8402
8440
  type: array
8403
8441
  items:
@@ -8419,7 +8457,7 @@ components:
8419
8457
  description: The unique name given to the terminal node that produced this
8420
8458
  output.
8421
8459
  type:
8422
- type: string
8460
+ $ref: '#/components/schemas/ErrorEnum'
8423
8461
  value:
8424
8462
  allOf:
8425
8463
  - $ref: '#/components/schemas/VellumError'
@@ -8461,7 +8499,7 @@ components:
8461
8499
  description: The unique name given to the terminal node that produced this
8462
8500
  output.
8463
8501
  type:
8464
- type: string
8502
+ $ref: '#/components/schemas/JsonEnum'
8465
8503
  value:
8466
8504
  nullable: true
8467
8505
  required:
@@ -8480,7 +8518,7 @@ components:
8480
8518
  description: The unique name given to the terminal node that produced this
8481
8519
  output.
8482
8520
  type:
8483
- type: string
8521
+ $ref: '#/components/schemas/NumberEnum'
8484
8522
  value:
8485
8523
  type: number
8486
8524
  format: double
@@ -8514,9 +8552,9 @@ components:
8514
8552
  - $ref: '#/components/schemas/TerminalNodeJsonResult'
8515
8553
  - $ref: '#/components/schemas/TerminalNodeChatHistoryResult'
8516
8554
  - $ref: '#/components/schemas/TerminalNodeSearchResultsResult'
8555
+ - $ref: '#/components/schemas/TerminalNodeErrorResult'
8517
8556
  - $ref: '#/components/schemas/TerminalNodeArrayResult'
8518
8557
  - $ref: '#/components/schemas/TerminalNodeFunctionCallResult'
8519
- - $ref: '#/components/schemas/TerminalNodeErrorResult'
8520
8558
  discriminator:
8521
8559
  propertyName: type
8522
8560
  mapping:
@@ -8525,9 +8563,9 @@ components:
8525
8563
  JSON: '#/components/schemas/TerminalNodeJsonResult'
8526
8564
  CHAT_HISTORY: '#/components/schemas/TerminalNodeChatHistoryResult'
8527
8565
  SEARCH_RESULTS: '#/components/schemas/TerminalNodeSearchResultsResult'
8566
+ ERROR: '#/components/schemas/TerminalNodeErrorResult'
8528
8567
  ARRAY: '#/components/schemas/TerminalNodeArrayResult'
8529
8568
  FUNCTION_CALL: '#/components/schemas/TerminalNodeFunctionCallResult'
8530
- ERROR: '#/components/schemas/TerminalNodeErrorResult'
8531
8569
  TerminalNodeSearchResultsResult:
8532
8570
  type: object
8533
8571
  properties:
@@ -8540,7 +8578,7 @@ components:
8540
8578
  description: The unique name given to the terminal node that produced this
8541
8579
  output.
8542
8580
  type:
8543
- type: string
8581
+ $ref: '#/components/schemas/SearchResultsEnum'
8544
8582
  value:
8545
8583
  type: array
8546
8584
  items:
@@ -8562,7 +8600,7 @@ components:
8562
8600
  description: The unique name given to the terminal node that produced this
8563
8601
  output.
8564
8602
  type:
8565
- type: string
8603
+ $ref: '#/components/schemas/StringEnum'
8566
8604
  value:
8567
8605
  type: string
8568
8606
  nullable: true
package/Client.js CHANGED
@@ -93,7 +93,7 @@ class VellumClient {
93
93
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
94
94
  .default, "v1/execute-code"),
95
95
  method: "POST",
96
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
96
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
97
  contentType: "application/json",
98
98
  requestType: "json",
99
99
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -162,7 +162,7 @@ class VellumClient {
162
162
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
163
163
  .predict, "v1/execute-prompt"),
164
164
  method: "POST",
165
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
165
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
168
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -220,7 +220,7 @@ class VellumClient {
220
220
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
221
221
  .predict, "v1/execute-prompt-stream"),
222
222
  method: "POST",
223
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
223
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
224
  contentType: "application/json",
225
225
  requestType: "json",
226
226
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -305,7 +305,7 @@ class VellumClient {
305
305
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
306
306
  .predict, "v1/execute-workflow"),
307
307
  method: "POST",
308
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
309
  contentType: "application/json",
310
310
  requestType: "json",
311
311
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +361,7 @@ class VellumClient {
361
361
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
362
362
  .predict, "v1/execute-workflow-stream"),
363
363
  method: "POST",
364
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
364
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
365
  contentType: "application/json",
366
366
  requestType: "json",
367
367
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -448,7 +448,7 @@ class VellumClient {
448
448
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
449
449
  .predict, "v1/generate"),
450
450
  method: "POST",
451
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
451
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
452
  contentType: "application/json",
453
453
  requestType: "json",
454
454
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -509,7 +509,7 @@ class VellumClient {
509
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
510
  .predict, "v1/generate-stream"),
511
511
  method: "POST",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -590,7 +590,7 @@ class VellumClient {
590
590
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
591
591
  .predict, "v1/search"),
592
592
  method: "POST",
593
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
593
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
594
  contentType: "application/json",
595
595
  requestType: "json",
596
596
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -658,7 +658,7 @@ class VellumClient {
658
658
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
659
659
  .predict, "v1/submit-completion-actuals"),
660
660
  method: "POST",
661
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
661
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
662
  contentType: "application/json",
663
663
  requestType: "json",
664
664
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -721,7 +721,7 @@ class VellumClient {
721
721
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
722
722
  .predict, "v1/submit-workflow-execution-actuals"),
723
723
  method: "POST",
724
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
724
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
725
  contentType: "application/json",
726
726
  requestType: "json",
727
727
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -185,7 +185,7 @@ class Deployments {
185
185
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
186
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -239,7 +239,7 @@ class Deployments {
239
239
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
240
240
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
241
241
  method: "PATCH",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -314,7 +314,7 @@ class Deployments {
314
314
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
315
315
  .default, "v1/deployments/provider-payload"),
316
316
  method: "POST",
317
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
317
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {