vellum-ai 0.12.16 → 0.13.0

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 (218) hide show
  1. package/.mock/definition/__package__.yml +44 -78
  2. package/.mock/definition/organizations.yml +29 -0
  3. package/.mock/definition/workspaces.yml +29 -0
  4. package/.mock/openapi/openapi.yml +84 -148
  5. package/Client.d.ts +9 -3
  6. package/Client.js +35 -25
  7. package/api/resources/adHoc/client/Client.d.ts +3 -3
  8. package/api/resources/adHoc/client/Client.js +2 -2
  9. package/api/resources/containerImages/client/Client.d.ts +3 -3
  10. package/api/resources/containerImages/client/Client.js +5 -5
  11. package/api/resources/deployments/client/Client.d.ts +3 -3
  12. package/api/resources/deployments/client/Client.js +8 -8
  13. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  14. package/api/resources/documentIndexes/client/Client.js +9 -9
  15. package/api/resources/documents/client/Client.d.ts +3 -3
  16. package/api/resources/documents/client/Client.js +6 -6
  17. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  18. package/api/resources/folderEntities/client/Client.js +3 -3
  19. package/api/resources/index.d.ts +2 -0
  20. package/api/resources/index.js +3 -1
  21. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  22. package/api/resources/metricDefinitions/client/Client.js +3 -3
  23. package/api/resources/mlModels/client/Client.d.ts +3 -3
  24. package/api/resources/mlModels/client/Client.js +2 -2
  25. package/api/resources/organizations/client/Client.d.ts +36 -0
  26. package/api/resources/organizations/client/Client.js +109 -0
  27. package/api/resources/organizations/client/index.d.ts +1 -0
  28. package/api/resources/organizations/client/index.js +2 -0
  29. package/api/resources/organizations/index.d.ts +1 -0
  30. package/api/resources/organizations/index.js +17 -0
  31. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  32. package/api/resources/sandboxes/client/Client.js +4 -4
  33. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  34. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  35. package/api/resources/testSuites/client/Client.d.ts +3 -3
  36. package/api/resources/testSuites/client/Client.js +5 -5
  37. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  38. package/api/resources/workflowDeployments/client/Client.js +7 -7
  39. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  40. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  41. package/api/resources/workflows/client/Client.d.ts +3 -3
  42. package/api/resources/workflows/client/Client.js +3 -3
  43. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  44. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  45. package/api/resources/workspaces/client/Client.d.ts +36 -0
  46. package/api/resources/workspaces/client/Client.js +109 -0
  47. package/api/resources/workspaces/client/index.d.ts +1 -0
  48. package/api/resources/workspaces/client/index.js +2 -0
  49. package/api/resources/workspaces/index.d.ts +1 -0
  50. package/api/resources/workspaces/index.js +17 -0
  51. package/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
  52. package/api/types/NewMemberJoinBehaviorEnum.js +11 -0
  53. package/api/types/OrganizationRead.d.ts +10 -0
  54. package/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  55. package/api/types/WorkspaceRead.d.ts +10 -0
  56. package/api/types/index.d.ts +3 -11
  57. package/api/types/index.js +3 -11
  58. package/dist/Client.d.ts +9 -3
  59. package/dist/Client.js +35 -25
  60. package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
  61. package/dist/api/resources/adHoc/client/Client.js +2 -2
  62. package/dist/api/resources/containerImages/client/Client.d.ts +3 -3
  63. package/dist/api/resources/containerImages/client/Client.js +5 -5
  64. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  65. package/dist/api/resources/deployments/client/Client.js +8 -8
  66. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  67. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  68. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  69. package/dist/api/resources/documents/client/Client.js +6 -6
  70. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  71. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  72. package/dist/api/resources/index.d.ts +2 -0
  73. package/dist/api/resources/index.js +3 -1
  74. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  75. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  76. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  77. package/dist/api/resources/mlModels/client/Client.js +2 -2
  78. package/dist/api/resources/organizations/client/Client.d.ts +36 -0
  79. package/dist/api/resources/organizations/client/Client.js +109 -0
  80. package/dist/api/resources/organizations/client/index.d.ts +1 -0
  81. package/dist/api/resources/organizations/client/index.js +2 -0
  82. package/dist/api/resources/organizations/index.d.ts +1 -0
  83. package/dist/api/resources/organizations/index.js +17 -0
  84. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  85. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  86. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  87. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  88. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  89. package/dist/api/resources/testSuites/client/Client.js +5 -5
  90. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  91. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  92. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  93. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  94. package/dist/api/resources/workflows/client/Client.d.ts +3 -3
  95. package/dist/api/resources/workflows/client/Client.js +3 -3
  96. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  97. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  98. package/dist/api/resources/workspaces/client/Client.d.ts +36 -0
  99. package/dist/api/resources/workspaces/client/Client.js +109 -0
  100. package/dist/api/resources/workspaces/client/index.d.ts +1 -0
  101. package/dist/api/resources/workspaces/client/index.js +2 -0
  102. package/dist/api/resources/workspaces/index.d.ts +1 -0
  103. package/dist/api/resources/workspaces/index.js +17 -0
  104. package/dist/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
  105. package/dist/api/types/NewMemberJoinBehaviorEnum.js +11 -0
  106. package/dist/api/types/OrganizationRead.d.ts +10 -0
  107. package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  108. package/dist/api/types/WorkspaceRead.d.ts +10 -0
  109. package/dist/api/types/index.d.ts +3 -11
  110. package/dist/api/types/index.js +3 -11
  111. package/dist/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
  112. package/dist/serialization/types/{JsonVariableValue.js → NewMemberJoinBehaviorEnum.js} +6 -5
  113. package/dist/serialization/types/OrganizationRead.d.ts +16 -0
  114. package/dist/serialization/types/{ArrayVariableValue.js → OrganizationRead.js} +7 -5
  115. package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  116. package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
  117. package/dist/serialization/types/WorkspaceRead.d.ts +15 -0
  118. package/dist/serialization/types/{StringVariableValue.js → WorkspaceRead.js} +6 -4
  119. package/dist/serialization/types/index.d.ts +3 -11
  120. package/dist/serialization/types/index.js +3 -11
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/package.json +1 -1
  124. package/reference.md +114 -0
  125. package/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
  126. package/{dist/serialization/types/NumberVariableValue.js → serialization/types/NewMemberJoinBehaviorEnum.js} +6 -5
  127. package/serialization/types/OrganizationRead.d.ts +16 -0
  128. package/{dist/serialization/types/ChatHistoryVariableValue.js → serialization/types/OrganizationRead.js} +7 -5
  129. package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  130. package/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
  131. package/serialization/types/WorkspaceRead.d.ts +15 -0
  132. package/serialization/types/{JsonVariableValue.js → WorkspaceRead.js} +6 -4
  133. package/serialization/types/index.d.ts +3 -11
  134. package/serialization/types/index.js +3 -11
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
  137. package/api/types/ArrayVariableValue.d.ts +0 -8
  138. package/api/types/ArrayVariableValueItem.d.ts +0 -5
  139. package/api/types/AudioVariableValue.d.ts +0 -11
  140. package/api/types/ChatHistoryVariableValue.d.ts +0 -8
  141. package/api/types/ErrorVariableValue.d.ts +0 -8
  142. package/api/types/ErrorVariableValue.js +0 -5
  143. package/api/types/FunctionCallVariableValue.d.ts +0 -8
  144. package/api/types/FunctionCallVariableValue.js +0 -5
  145. package/api/types/ImageVariableValue.d.ts +0 -11
  146. package/api/types/ImageVariableValue.js +0 -5
  147. package/api/types/JsonVariableValue.d.ts +0 -7
  148. package/api/types/JsonVariableValue.js +0 -5
  149. package/api/types/NumberVariableValue.d.ts +0 -7
  150. package/api/types/NumberVariableValue.js +0 -5
  151. package/api/types/SearchResultsVariableValue.d.ts +0 -8
  152. package/api/types/SearchResultsVariableValue.js +0 -5
  153. package/api/types/StringVariableValue.d.ts +0 -7
  154. package/api/types/StringVariableValue.js +0 -5
  155. package/dist/api/types/ArrayVariableValue.d.ts +0 -8
  156. package/dist/api/types/ArrayVariableValue.js +0 -5
  157. package/dist/api/types/ArrayVariableValueItem.d.ts +0 -5
  158. package/dist/api/types/ArrayVariableValueItem.js +0 -5
  159. package/dist/api/types/AudioVariableValue.d.ts +0 -11
  160. package/dist/api/types/AudioVariableValue.js +0 -5
  161. package/dist/api/types/ChatHistoryVariableValue.d.ts +0 -8
  162. package/dist/api/types/ChatHistoryVariableValue.js +0 -5
  163. package/dist/api/types/ErrorVariableValue.d.ts +0 -8
  164. package/dist/api/types/ErrorVariableValue.js +0 -5
  165. package/dist/api/types/FunctionCallVariableValue.d.ts +0 -8
  166. package/dist/api/types/FunctionCallVariableValue.js +0 -5
  167. package/dist/api/types/ImageVariableValue.d.ts +0 -11
  168. package/dist/api/types/ImageVariableValue.js +0 -5
  169. package/dist/api/types/JsonVariableValue.d.ts +0 -7
  170. package/dist/api/types/JsonVariableValue.js +0 -5
  171. package/dist/api/types/NumberVariableValue.d.ts +0 -7
  172. package/dist/api/types/NumberVariableValue.js +0 -5
  173. package/dist/api/types/SearchResultsVariableValue.d.ts +0 -8
  174. package/dist/api/types/SearchResultsVariableValue.js +0 -5
  175. package/dist/api/types/StringVariableValue.d.ts +0 -7
  176. package/dist/api/types/StringVariableValue.js +0 -5
  177. package/dist/serialization/types/ArrayVariableValue.d.ts +0 -13
  178. package/dist/serialization/types/ArrayVariableValueItem.d.ts +0 -19
  179. package/dist/serialization/types/ArrayVariableValueItem.js +0 -52
  180. package/dist/serialization/types/AudioVariableValue.d.ts +0 -14
  181. package/dist/serialization/types/AudioVariableValue.js +0 -35
  182. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
  183. package/dist/serialization/types/ErrorVariableValue.d.ts +0 -14
  184. package/dist/serialization/types/ErrorVariableValue.js +0 -35
  185. package/dist/serialization/types/FunctionCallVariableValue.d.ts +0 -14
  186. package/dist/serialization/types/FunctionCallVariableValue.js +0 -35
  187. package/dist/serialization/types/ImageVariableValue.d.ts +0 -14
  188. package/dist/serialization/types/ImageVariableValue.js +0 -35
  189. package/dist/serialization/types/JsonVariableValue.d.ts +0 -13
  190. package/dist/serialization/types/NumberVariableValue.d.ts +0 -13
  191. package/dist/serialization/types/SearchResultsVariableValue.d.ts +0 -14
  192. package/dist/serialization/types/SearchResultsVariableValue.js +0 -35
  193. package/dist/serialization/types/StringVariableValue.d.ts +0 -13
  194. package/serialization/types/ArrayVariableValue.d.ts +0 -13
  195. package/serialization/types/ArrayVariableValue.js +0 -35
  196. package/serialization/types/ArrayVariableValueItem.d.ts +0 -19
  197. package/serialization/types/ArrayVariableValueItem.js +0 -52
  198. package/serialization/types/AudioVariableValue.d.ts +0 -14
  199. package/serialization/types/AudioVariableValue.js +0 -35
  200. package/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
  201. package/serialization/types/ChatHistoryVariableValue.js +0 -35
  202. package/serialization/types/ErrorVariableValue.d.ts +0 -14
  203. package/serialization/types/ErrorVariableValue.js +0 -35
  204. package/serialization/types/FunctionCallVariableValue.d.ts +0 -14
  205. package/serialization/types/FunctionCallVariableValue.js +0 -35
  206. package/serialization/types/ImageVariableValue.d.ts +0 -14
  207. package/serialization/types/ImageVariableValue.js +0 -35
  208. package/serialization/types/JsonVariableValue.d.ts +0 -13
  209. package/serialization/types/NumberVariableValue.d.ts +0 -13
  210. package/serialization/types/NumberVariableValue.js +0 -34
  211. package/serialization/types/SearchResultsVariableValue.d.ts +0 -14
  212. package/serialization/types/SearchResultsVariableValue.js +0 -35
  213. package/serialization/types/StringVariableValue.d.ts +0 -13
  214. package/serialization/types/StringVariableValue.js +0 -34
  215. /package/api/types/{ArrayVariableValue.js → OrganizationRead.js} +0 -0
  216. /package/api/types/{ArrayVariableValueItem.js → WorkspaceRead.js} +0 -0
  217. /package/{api/types/AudioVariableValue.js → dist/api/types/OrganizationRead.js} +0 -0
  218. /package/{api/types/ChatHistoryVariableValue.js → dist/api/types/WorkspaceRead.js} +0 -0
@@ -933,27 +933,6 @@ types:
933
933
  value: list<VellumValue>
934
934
  source:
935
935
  openapi: openapi/openapi.yml
936
- ArrayVariableValue:
937
- properties:
938
- type: literal<"ARRAY">
939
- value: optional<list<ArrayVariableValueItem>>
940
- source:
941
- openapi: openapi/openapi.yml
942
- ArrayVariableValueItem:
943
- discriminated: false
944
- union:
945
- - StringVariableValue
946
- - NumberVariableValue
947
- - JsonVariableValue
948
- - ErrorVariableValue
949
- - FunctionCallVariableValue
950
- - ImageVariableValue
951
- - AudioVariableValue
952
- - ChatHistoryVariableValue
953
- - SearchResultsVariableValue
954
- - ArrayVariableValue
955
- source:
956
- openapi: openapi/openapi.yml
957
936
  ArrayVellumValue:
958
937
  docs: A value representing an array of Vellum variable values.
959
938
  properties:
@@ -996,13 +975,6 @@ types:
996
975
  metadata: optional<map<string, unknown>>
997
976
  source:
998
977
  openapi: openapi/openapi.yml
999
- AudioVariableValue:
1000
- docs: A base Vellum primitive value representing audio.
1001
- properties:
1002
- type: literal<"AUDIO">
1003
- value: optional<VellumAudio>
1004
- source:
1005
- openapi: openapi/openapi.yml
1006
978
  AudioVellumValue:
1007
979
  docs: A base Vellum primitive value representing audio.
1008
980
  properties:
@@ -1084,12 +1056,6 @@ types:
1084
1056
  value: list<ChatMessageRequest>
1085
1057
  source:
1086
1058
  openapi: openapi/openapi.yml
1087
- ChatHistoryVariableValue:
1088
- properties:
1089
- type: literal<"CHAT_HISTORY">
1090
- value: optional<list<ChatMessage>>
1091
- source:
1092
- openapi: openapi/openapi.yml
1093
1059
  ChatHistoryVellumValue:
1094
1060
  docs: A value representing Chat History.
1095
1061
  properties:
@@ -1794,12 +1760,6 @@ types:
1794
1760
  value: VellumError
1795
1761
  source:
1796
1762
  openapi: openapi/openapi.yml
1797
- ErrorVariableValue:
1798
- properties:
1799
- type: literal<"ERROR">
1800
- value: optional<VellumError>
1801
- source:
1802
- openapi: openapi/openapi.yml
1803
1763
  ErrorVellumValue:
1804
1764
  docs: A value representing an Error.
1805
1765
  properties:
@@ -2306,12 +2266,6 @@ types:
2306
2266
  minLength: 1
2307
2267
  source:
2308
2268
  openapi: openapi/openapi.yml
2309
- FunctionCallVariableValue:
2310
- properties:
2311
- type: literal<"FUNCTION_CALL">
2312
- value: optional<FunctionCall>
2313
- source:
2314
- openapi: openapi/openapi.yml
2315
2269
  FunctionCallVellumValue:
2316
2270
  docs: A value representing a Function Call.
2317
2271
  properties:
@@ -2535,13 +2489,6 @@ types:
2535
2489
  metadata: optional<map<string, unknown>>
2536
2490
  source:
2537
2491
  openapi: openapi/openapi.yml
2538
- ImageVariableValue:
2539
- docs: A base Vellum primitive value representing an image.
2540
- properties:
2541
- type: literal<"IMAGE">
2542
- value: optional<VellumImage>
2543
- source:
2544
- openapi: openapi/openapi.yml
2545
2492
  ImageVellumValue:
2546
2493
  docs: A base Vellum primitive value representing an image.
2547
2494
  properties:
@@ -2715,12 +2662,6 @@ types:
2715
2662
  source:
2716
2663
  openapi: openapi/openapi.yml
2717
2664
  JsonEnum: literal<"JSON">
2718
- JsonVariableValue:
2719
- properties:
2720
- type: literal<"JSON">
2721
- value: unknown
2722
- source:
2723
- openapi: openapi/openapi.yml
2724
2665
  JsonVellumValue:
2725
2666
  docs: A value representing a JSON object.
2726
2667
  properties:
@@ -3193,6 +3134,20 @@ types:
3193
3134
  - NamedTestCaseArrayVariableValueRequest
3194
3135
  source:
3195
3136
  openapi: openapi/openapi.yml
3137
+ NewMemberJoinBehaviorEnum:
3138
+ enum:
3139
+ - AUTO_ACCEPT_FROM_SHARED_DOMAIN
3140
+ - ALLOW_REQUESTS_FROM_SHARED_DOMAIN
3141
+ - REQUIRE_EXPLICIT_INVITE
3142
+ docs: >-
3143
+ * `AUTO_ACCEPT_FROM_SHARED_DOMAIN` - Auto-Accept from Shared Domain
3144
+
3145
+ * `ALLOW_REQUESTS_FROM_SHARED_DOMAIN` - Allows Requests from Shared
3146
+ Domains
3147
+
3148
+ * `REQUIRE_EXPLICIT_INVITE` - Require Explicit Invite
3149
+ source:
3150
+ openapi: openapi/openapi.yml
3196
3151
  NodeInputCompiledArrayValue:
3197
3152
  properties:
3198
3153
  node_input_id: string
@@ -3382,12 +3337,6 @@ types:
3382
3337
  value: double
3383
3338
  source:
3384
3339
  openapi: openapi/openapi.yml
3385
- NumberVariableValue:
3386
- properties:
3387
- type: literal<"NUMBER">
3388
- value: optional<double>
3389
- source:
3390
- openapi: openapi/openapi.yml
3391
3340
  NumberVellumValue:
3392
3341
  docs: A value representing a number.
3393
3342
  properties:
@@ -3456,6 +3405,20 @@ types:
3456
3405
  model_name: literal<"text-embedding-ada-002">
3457
3406
  source:
3458
3407
  openapi: openapi/openapi.yml
3408
+ OrganizationRead:
3409
+ properties:
3410
+ id:
3411
+ type: string
3412
+ validation:
3413
+ format: uuid
3414
+ name:
3415
+ type: string
3416
+ validation:
3417
+ maxLength: 150
3418
+ allow_staff_access: optional<boolean>
3419
+ new_member_join_behavior: NewMemberJoinBehaviorEnum
3420
+ source:
3421
+ openapi: openapi/openapi.yml
3459
3422
  PaginatedContainerImageReadList:
3460
3423
  properties:
3461
3424
  count: optional<integer>
@@ -4237,12 +4200,6 @@ types:
4237
4200
  value: list<SearchResult>
4238
4201
  source:
4239
4202
  openapi: openapi/openapi.yml
4240
- SearchResultsVariableValue:
4241
- properties:
4242
- type: literal<"SEARCH_RESULTS">
4243
- value: optional<list<SearchResult>>
4244
- source:
4245
- openapi: openapi/openapi.yml
4246
4203
  SearchResultsVellumValue:
4247
4204
  docs: A value representing Search Results.
4248
4205
  properties:
@@ -4603,12 +4560,6 @@ types:
4603
4560
  value: string
4604
4561
  source:
4605
4562
  openapi: openapi/openapi.yml
4606
- StringVariableValue:
4607
- properties:
4608
- type: literal<"STRING">
4609
- value: optional<string>
4610
- source:
4611
- openapi: openapi/openapi.yml
4612
4563
  StringVellumValue:
4613
4564
  docs: A value representing a string.
4614
4565
  properties:
@@ -6652,7 +6603,7 @@ types:
6652
6603
  The newly output string value. Only relevant for string outputs with a
6653
6604
  state of STREAMING.
6654
6605
  type: literal<"ARRAY">
6655
- value: optional<list<ArrayVariableValueItem>>
6606
+ value: optional<list<VellumValue>>
6656
6607
  source:
6657
6608
  openapi: openapi/openapi.yml
6658
6609
  WorkflowResultEventOutputDataChatHistory:
@@ -6799,6 +6750,21 @@ types:
6799
6750
  - WorkflowExecutionNodeResultEvent
6800
6751
  source:
6801
6752
  openapi: openapi/openapi.yml
6753
+ WorkspaceRead:
6754
+ properties:
6755
+ id:
6756
+ type: string
6757
+ validation:
6758
+ format: uuid
6759
+ name:
6760
+ type: string
6761
+ docs: The name of the Workspace.
6762
+ validation:
6763
+ maxLength: 150
6764
+ label: string
6765
+ created: datetime
6766
+ source:
6767
+ openapi: openapi/openapi.yml
6802
6768
  WorkspaceSecretRead:
6803
6769
  properties:
6804
6770
  id:
@@ -0,0 +1,29 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ organization_identity:
8
+ path: /v1/organizations/identity
9
+ method: GET
10
+ auth: false
11
+ docs: Retrieves information about the active Organization
12
+ source:
13
+ openapi: openapi/openapi.yml
14
+ response:
15
+ docs: ''
16
+ type: root.OrganizationRead
17
+ url: Default
18
+ availability: pre-release
19
+ examples:
20
+ - response:
21
+ body:
22
+ id: id
23
+ name: name
24
+ allow_staff_access: true
25
+ new_member_join_behavior: AUTO_ACCEPT_FROM_SHARED_DOMAIN
26
+ audiences:
27
+ - internal
28
+ source:
29
+ openapi: openapi/openapi.yml
@@ -0,0 +1,29 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ workspace_identity:
8
+ path: /v1/workspaces/identity
9
+ method: GET
10
+ auth: false
11
+ docs: Retrieves information about the active Workspace
12
+ source:
13
+ openapi: openapi/openapi.yml
14
+ response:
15
+ docs: ''
16
+ type: root.WorkspaceRead
17
+ url: Default
18
+ availability: pre-release
19
+ examples:
20
+ - response:
21
+ body:
22
+ id: id
23
+ name: name
24
+ label: label
25
+ created: '2024-01-15T09:30:00Z'
26
+ audiences:
27
+ - internal
28
+ source:
29
+ openapi: openapi/openapi.yml
@@ -1447,6 +1447,22 @@ paths:
1447
1447
  x-fern-availability: beta
1448
1448
  x-fern-audiences:
1449
1449
  - internal
1450
+ /v1/organizations/identity:
1451
+ get:
1452
+ operationId: organization_identity
1453
+ description: Retrieves information about the active Organization
1454
+ tags:
1455
+ - organizations
1456
+ responses:
1457
+ '200':
1458
+ content:
1459
+ application/json:
1460
+ schema:
1461
+ $ref: '#/components/schemas/OrganizationRead'
1462
+ description: ''
1463
+ x-fern-availability: beta
1464
+ x-fern-audiences:
1465
+ - internal
1450
1466
  /v1/sandboxes/{id}/prompts/{prompt_variant_id}/deploy:
1451
1467
  post:
1452
1468
  operationId: deploy_prompt
@@ -2406,6 +2422,22 @@ paths:
2406
2422
  x-fern-availability: beta
2407
2423
  x-fern-audiences:
2408
2424
  - customers
2425
+ /v1/workspaces/identity:
2426
+ get:
2427
+ operationId: workspace_identity
2428
+ description: Retrieves information about the active Workspace
2429
+ tags:
2430
+ - workspaces
2431
+ responses:
2432
+ '200':
2433
+ content:
2434
+ application/json:
2435
+ schema:
2436
+ $ref: '#/components/schemas/WorkspaceRead'
2437
+ description: ''
2438
+ x-fern-availability: beta
2439
+ x-fern-audiences:
2440
+ - internal
2409
2441
  components:
2410
2442
  schemas:
2411
2443
  AdHocExecutePromptEvent:
@@ -2652,44 +2684,6 @@ components:
2652
2684
  - name
2653
2685
  - type
2654
2686
  - value
2655
- ArrayVariableValue:
2656
- type: object
2657
- properties:
2658
- type:
2659
- type: string
2660
- value:
2661
- type: array
2662
- items:
2663
- $ref: '#/components/schemas/ArrayVariableValueItem'
2664
- nullable: true
2665
- required:
2666
- - type
2667
- - value
2668
- ArrayVariableValueItem:
2669
- oneOf:
2670
- - $ref: '#/components/schemas/StringVariableValue'
2671
- - $ref: '#/components/schemas/NumberVariableValue'
2672
- - $ref: '#/components/schemas/JsonVariableValue'
2673
- - $ref: '#/components/schemas/ErrorVariableValue'
2674
- - $ref: '#/components/schemas/FunctionCallVariableValue'
2675
- - $ref: '#/components/schemas/ImageVariableValue'
2676
- - $ref: '#/components/schemas/AudioVariableValue'
2677
- - $ref: '#/components/schemas/ChatHistoryVariableValue'
2678
- - $ref: '#/components/schemas/SearchResultsVariableValue'
2679
- - $ref: '#/components/schemas/ArrayVariableValue'
2680
- discriminator:
2681
- propertyName: type
2682
- mapping:
2683
- STRING: '#/components/schemas/StringVariableValue'
2684
- NUMBER: '#/components/schemas/NumberVariableValue'
2685
- JSON: '#/components/schemas/JsonVariableValue'
2686
- ERROR: '#/components/schemas/ErrorVariableValue'
2687
- FUNCTION_CALL: '#/components/schemas/FunctionCallVariableValue'
2688
- IMAGE: '#/components/schemas/ImageVariableValue'
2689
- AUDIO: '#/components/schemas/AudioVariableValue'
2690
- CHAT_HISTORY: '#/components/schemas/ChatHistoryVariableValue'
2691
- SEARCH_RESULTS: '#/components/schemas/SearchResultsVariableValue'
2692
- ARRAY: '#/components/schemas/ArrayVariableValue'
2693
2687
  ArrayVellumValue:
2694
2688
  type: object
2695
2689
  description: A value representing an array of Vellum variable values.
@@ -2768,19 +2762,6 @@ components:
2768
2762
  required:
2769
2763
  - block_type
2770
2764
  - src
2771
- AudioVariableValue:
2772
- type: object
2773
- description: A base Vellum primitive value representing audio.
2774
- properties:
2775
- type:
2776
- $ref: '#/components/schemas/AudioEnum'
2777
- value:
2778
- allOf:
2779
- - $ref: '#/components/schemas/VellumAudio'
2780
- nullable: true
2781
- required:
2782
- - type
2783
- - value
2784
2765
  AudioVellumValue:
2785
2766
  type: object
2786
2767
  description: A base Vellum primitive value representing audio.
@@ -2919,19 +2900,6 @@ components:
2919
2900
  - name
2920
2901
  - type
2921
2902
  - value
2922
- ChatHistoryVariableValue:
2923
- type: object
2924
- properties:
2925
- type:
2926
- type: string
2927
- value:
2928
- type: array
2929
- items:
2930
- $ref: '#/components/schemas/ChatMessage'
2931
- nullable: true
2932
- required:
2933
- - type
2934
- - value
2935
2903
  ChatHistoryVellumValue:
2936
2904
  type: object
2937
2905
  description: A value representing Chat History.
@@ -4134,18 +4102,6 @@ components:
4134
4102
  - name
4135
4103
  - type
4136
4104
  - value
4137
- ErrorVariableValue:
4138
- type: object
4139
- properties:
4140
- type:
4141
- type: string
4142
- value:
4143
- allOf:
4144
- - $ref: '#/components/schemas/VellumError'
4145
- nullable: true
4146
- required:
4147
- - type
4148
- - value
4149
4105
  ErrorVellumValue:
4150
4106
  type: object
4151
4107
  description: A value representing an Error.
@@ -5203,18 +5159,6 @@ components:
5203
5159
  required:
5204
5160
  - arguments
5205
5161
  - name
5206
- FunctionCallVariableValue:
5207
- type: object
5208
- properties:
5209
- type:
5210
- type: string
5211
- value:
5212
- allOf:
5213
- - $ref: '#/components/schemas/FunctionCall'
5214
- nullable: true
5215
- required:
5216
- - type
5217
- - value
5218
5162
  FunctionCallVellumValue:
5219
5163
  type: object
5220
5164
  description: A value representing a Function Call.
@@ -5582,19 +5526,6 @@ components:
5582
5526
  required:
5583
5527
  - block_type
5584
5528
  - src
5585
- ImageVariableValue:
5586
- type: object
5587
- description: A base Vellum primitive value representing an image.
5588
- properties:
5589
- type:
5590
- $ref: '#/components/schemas/ImageEnum'
5591
- value:
5592
- allOf:
5593
- - $ref: '#/components/schemas/VellumImage'
5594
- nullable: true
5595
- required:
5596
- - type
5597
- - value
5598
5529
  ImageVellumValue:
5599
5530
  type: object
5600
5531
  description: A base Vellum primitive value representing an image.
@@ -5862,16 +5793,6 @@ components:
5862
5793
  type: string
5863
5794
  enum:
5864
5795
  - JSON
5865
- JsonVariableValue:
5866
- type: object
5867
- properties:
5868
- type:
5869
- type: string
5870
- value:
5871
- nullable: true
5872
- required:
5873
- - type
5874
- - value
5875
5796
  JsonVellumValue:
5876
5797
  type: object
5877
5798
  description: A value representing a JSON object.
@@ -6602,6 +6523,16 @@ components:
6602
6523
  ERROR: '#/components/schemas/NamedTestCaseErrorVariableValueRequest'
6603
6524
  FUNCTION_CALL: '#/components/schemas/NamedTestCaseFunctionCallVariableValueRequest'
6604
6525
  ARRAY: '#/components/schemas/NamedTestCaseArrayVariableValueRequest'
6526
+ NewMemberJoinBehaviorEnum:
6527
+ enum:
6528
+ - AUTO_ACCEPT_FROM_SHARED_DOMAIN
6529
+ - ALLOW_REQUESTS_FROM_SHARED_DOMAIN
6530
+ - REQUIRE_EXPLICIT_INVITE
6531
+ type: string
6532
+ description: |-
6533
+ * `AUTO_ACCEPT_FROM_SHARED_DOMAIN` - Auto-Accept from Shared Domain
6534
+ * `ALLOW_REQUESTS_FROM_SHARED_DOMAIN` - Allows Requests from Shared Domains
6535
+ * `REQUIRE_EXPLICIT_INVITE` - Require Explicit Invite
6605
6536
  NodeInputCompiledArrayValue:
6606
6537
  type: object
6607
6538
  properties:
@@ -6989,18 +6920,6 @@ components:
6989
6920
  - name
6990
6921
  - type
6991
6922
  - value
6992
- NumberVariableValue:
6993
- type: object
6994
- properties:
6995
- type:
6996
- type: string
6997
- value:
6998
- type: number
6999
- format: double
7000
- nullable: true
7001
- required:
7002
- - type
7003
- - value
7004
6923
  NumberVellumValue:
7005
6924
  type: object
7006
6925
  description: A value representing a number.
@@ -7109,6 +7028,24 @@ components:
7109
7028
  required:
7110
7029
  - config
7111
7030
  - model_name
7031
+ OrganizationRead:
7032
+ type: object
7033
+ properties:
7034
+ id:
7035
+ type: string
7036
+ format: uuid
7037
+ readOnly: true
7038
+ name:
7039
+ type: string
7040
+ maxLength: 150
7041
+ allow_staff_access:
7042
+ type: boolean
7043
+ new_member_join_behavior:
7044
+ $ref: '#/components/schemas/NewMemberJoinBehaviorEnum'
7045
+ required:
7046
+ - id
7047
+ - name
7048
+ - new_member_join_behavior
7112
7049
  PaginatedContainerImageReadList:
7113
7050
  type: object
7114
7051
  properties:
@@ -8402,19 +8339,6 @@ components:
8402
8339
  - name
8403
8340
  - type
8404
8341
  - value
8405
- SearchResultsVariableValue:
8406
- type: object
8407
- properties:
8408
- type:
8409
- type: string
8410
- value:
8411
- type: array
8412
- items:
8413
- $ref: '#/components/schemas/SearchResult'
8414
- nullable: true
8415
- required:
8416
- - type
8417
- - value
8418
8342
  SearchResultsVellumValue:
8419
8343
  type: object
8420
8344
  description: A value representing Search Results.
@@ -8896,17 +8820,6 @@ components:
8896
8820
  - name
8897
8821
  - type
8898
8822
  - value
8899
- StringVariableValue:
8900
- type: object
8901
- properties:
8902
- type:
8903
- type: string
8904
- value:
8905
- type: string
8906
- nullable: true
8907
- required:
8908
- - type
8909
- - value
8910
8823
  StringVellumValue:
8911
8824
  type: object
8912
8825
  description: A value representing a string.
@@ -11941,7 +11854,7 @@ components:
11941
11854
  value:
11942
11855
  type: array
11943
11856
  items:
11944
- $ref: '#/components/schemas/ArrayVariableValueItem'
11857
+ $ref: '#/components/schemas/VellumValue'
11945
11858
  nullable: true
11946
11859
  required:
11947
11860
  - delta
@@ -12190,6 +12103,29 @@ components:
12190
12103
  mapping:
12191
12104
  WORKFLOW: '#/components/schemas/WorkflowExecutionWorkflowResultEvent'
12192
12105
  NODE: '#/components/schemas/WorkflowExecutionNodeResultEvent'
12106
+ WorkspaceRead:
12107
+ type: object
12108
+ properties:
12109
+ id:
12110
+ type: string
12111
+ format: uuid
12112
+ readOnly: true
12113
+ name:
12114
+ type: string
12115
+ description: The name of the Workspace.
12116
+ maxLength: 150
12117
+ label:
12118
+ type: string
12119
+ readOnly: true
12120
+ created:
12121
+ type: string
12122
+ format: date-time
12123
+ readOnly: true
12124
+ required:
12125
+ - created
12126
+ - id
12127
+ - label
12128
+ - name
12193
12129
  WorkspaceSecretRead:
12194
12130
  type: object
12195
12131
  properties:
package/Client.d.ts CHANGED
@@ -12,6 +12,7 @@ import { Documents } from "./api/resources/documents/client/Client";
12
12
  import { FolderEntities } from "./api/resources/folderEntities/client/Client";
13
13
  import { MetricDefinitions } from "./api/resources/metricDefinitions/client/Client";
14
14
  import { MlModels } from "./api/resources/mlModels/client/Client";
15
+ import { Organizations } from "./api/resources/organizations/client/Client";
15
16
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
16
17
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
17
18
  import { TestSuites } from "./api/resources/testSuites/client/Client";
@@ -19,10 +20,11 @@ import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/
19
20
  import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
20
21
  import { Workflows } from "./api/resources/workflows/client/Client";
21
22
  import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
23
+ import { Workspaces } from "./api/resources/workspaces/client/Client";
22
24
  export declare namespace VellumClient {
23
25
  interface Options {
24
26
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
25
- apiKey: core.Supplier<string>;
27
+ apiKey?: core.Supplier<string | undefined>;
26
28
  }
27
29
  interface RequestOptions {
28
30
  /** The maximum time to wait for a response in seconds. */
@@ -35,7 +37,7 @@ export declare namespace VellumClient {
35
37
  }
36
38
  export declare class VellumClient {
37
39
  protected readonly _options: VellumClient.Options;
38
- constructor(_options: VellumClient.Options);
40
+ constructor(_options?: VellumClient.Options);
39
41
  /**
40
42
  * @param {Vellum.CodeExecutor} request
41
43
  * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -203,6 +205,8 @@ export declare class VellumClient {
203
205
  get metricDefinitions(): MetricDefinitions;
204
206
  protected _mlModels: MlModels | undefined;
205
207
  get mlModels(): MlModels;
208
+ protected _organizations: Organizations | undefined;
209
+ get organizations(): Organizations;
206
210
  protected _sandboxes: Sandboxes | undefined;
207
211
  get sandboxes(): Sandboxes;
208
212
  protected _testSuiteRuns: TestSuiteRuns | undefined;
@@ -217,7 +221,9 @@ export declare class VellumClient {
217
221
  get workflows(): Workflows;
218
222
  protected _workspaceSecrets: WorkspaceSecrets | undefined;
219
223
  get workspaceSecrets(): WorkspaceSecrets;
224
+ protected _workspaces: Workspaces | undefined;
225
+ get workspaces(): Workspaces;
220
226
  protected _getCustomAuthorizationHeaders(): Promise<{
221
- X_API_KEY: string;
227
+ X_API_KEY: string | undefined;
222
228
  }>;
223
229
  }