vellum-ai 1.2.0 → 1.2.2

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 (126) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +54 -49
  3. package/api/errors/TooManyRequestsError.d.ts +9 -0
  4. package/api/errors/TooManyRequestsError.js +52 -0
  5. package/api/errors/UnauthorizedError.d.ts +9 -0
  6. package/api/errors/UnauthorizedError.js +52 -0
  7. package/api/errors/index.d.ts +2 -0
  8. package/api/errors/index.js +2 -0
  9. package/api/resources/adHoc/client/Client.js +2 -2
  10. package/api/resources/containerImages/client/Client.js +4 -4
  11. package/api/resources/deployments/client/Client.js +8 -8
  12. package/api/resources/documentIndexes/client/Client.js +8 -8
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/events/client/Client.d.ts +69 -0
  15. package/api/resources/events/client/Client.js +179 -0
  16. package/api/resources/events/client/index.d.ts +1 -0
  17. package/api/resources/events/client/index.js +2 -0
  18. package/api/resources/events/index.d.ts +1 -0
  19. package/api/resources/events/index.js +17 -0
  20. package/api/resources/folderEntities/client/Client.js +2 -2
  21. package/api/resources/index.d.ts +1 -0
  22. package/api/resources/index.js +2 -1
  23. package/api/resources/metricDefinitions/client/Client.js +2 -2
  24. package/api/resources/mlModels/client/Client.js +1 -1
  25. package/api/resources/organizations/client/Client.js +1 -1
  26. package/api/resources/prompts/client/Client.js +2 -2
  27. package/api/resources/sandboxes/client/Client.js +3 -3
  28. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  29. package/api/resources/testSuites/client/Client.js +4 -4
  30. package/api/resources/workflowDeployments/client/Client.js +9 -9
  31. package/api/resources/workflowExecutions/client/Client.js +1 -1
  32. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  33. package/api/resources/workflows/client/Client.js +2 -2
  34. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  35. package/api/resources/workspaces/client/Client.js +1 -1
  36. package/api/types/ErrorDetailResponse.d.ts +7 -0
  37. package/api/types/ErrorDetailResponse.js +5 -0
  38. package/api/types/EventCreateResponse.d.ts +10 -0
  39. package/api/types/EventCreateResponse.js +5 -0
  40. package/api/types/ExecutionThinkingVellumValue.d.ts +1 -1
  41. package/api/types/ThinkingVellumValue.d.ts +1 -1
  42. package/api/types/ThinkingVellumValueRequest.d.ts +1 -1
  43. package/api/types/WorkflowEvent.d.ts +5 -0
  44. package/api/types/WorkflowEvent.js +5 -0
  45. package/api/types/index.d.ts +3 -0
  46. package/api/types/index.js +3 -0
  47. package/dist/Client.d.ts +3 -0
  48. package/dist/Client.js +54 -49
  49. package/dist/api/errors/TooManyRequestsError.d.ts +9 -0
  50. package/dist/api/errors/TooManyRequestsError.js +52 -0
  51. package/dist/api/errors/UnauthorizedError.d.ts +9 -0
  52. package/dist/api/errors/UnauthorizedError.js +52 -0
  53. package/dist/api/errors/index.d.ts +2 -0
  54. package/dist/api/errors/index.js +2 -0
  55. package/dist/api/resources/adHoc/client/Client.js +2 -2
  56. package/dist/api/resources/containerImages/client/Client.js +4 -4
  57. package/dist/api/resources/deployments/client/Client.js +8 -8
  58. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  59. package/dist/api/resources/documents/client/Client.js +5 -5
  60. package/dist/api/resources/events/client/Client.d.ts +69 -0
  61. package/dist/api/resources/events/client/Client.js +179 -0
  62. package/dist/api/resources/events/client/index.d.ts +1 -0
  63. package/dist/api/resources/events/client/index.js +2 -0
  64. package/dist/api/resources/events/index.d.ts +1 -0
  65. package/dist/api/resources/events/index.js +17 -0
  66. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  67. package/dist/api/resources/index.d.ts +1 -0
  68. package/dist/api/resources/index.js +2 -1
  69. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  70. package/dist/api/resources/mlModels/client/Client.js +1 -1
  71. package/dist/api/resources/organizations/client/Client.js +1 -1
  72. package/dist/api/resources/prompts/client/Client.js +2 -2
  73. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  74. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  75. package/dist/api/resources/testSuites/client/Client.js +4 -4
  76. package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
  77. package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
  78. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  79. package/dist/api/resources/workflows/client/Client.js +2 -2
  80. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  81. package/dist/api/resources/workspaces/client/Client.js +1 -1
  82. package/dist/api/types/ErrorDetailResponse.d.ts +7 -0
  83. package/dist/api/types/ErrorDetailResponse.js +5 -0
  84. package/dist/api/types/EventCreateResponse.d.ts +10 -0
  85. package/dist/api/types/EventCreateResponse.js +5 -0
  86. package/dist/api/types/ExecutionThinkingVellumValue.d.ts +1 -1
  87. package/dist/api/types/ThinkingVellumValue.d.ts +1 -1
  88. package/dist/api/types/ThinkingVellumValueRequest.d.ts +1 -1
  89. package/dist/api/types/WorkflowEvent.d.ts +5 -0
  90. package/dist/api/types/WorkflowEvent.js +5 -0
  91. package/dist/api/types/index.d.ts +3 -0
  92. package/dist/api/types/index.js +3 -0
  93. package/dist/serialization/types/ErrorDetailResponse.d.ts +12 -0
  94. package/dist/serialization/types/ErrorDetailResponse.js +43 -0
  95. package/dist/serialization/types/EventCreateResponse.d.ts +12 -0
  96. package/dist/serialization/types/EventCreateResponse.js +43 -0
  97. package/dist/serialization/types/ExecutionThinkingVellumValue.d.ts +1 -1
  98. package/dist/serialization/types/ExecutionThinkingVellumValue.js +1 -1
  99. package/dist/serialization/types/ThinkingVellumValue.d.ts +1 -1
  100. package/dist/serialization/types/ThinkingVellumValue.js +1 -1
  101. package/dist/serialization/types/ThinkingVellumValueRequest.d.ts +1 -1
  102. package/dist/serialization/types/ThinkingVellumValueRequest.js +1 -1
  103. package/dist/serialization/types/WorkflowEvent.d.ts +23 -0
  104. package/dist/serialization/types/WorkflowEvent.js +68 -0
  105. package/dist/serialization/types/index.d.ts +3 -0
  106. package/dist/serialization/types/index.js +3 -0
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +83 -0
  111. package/serialization/types/ErrorDetailResponse.d.ts +12 -0
  112. package/serialization/types/ErrorDetailResponse.js +43 -0
  113. package/serialization/types/EventCreateResponse.d.ts +12 -0
  114. package/serialization/types/EventCreateResponse.js +43 -0
  115. package/serialization/types/ExecutionThinkingVellumValue.d.ts +1 -1
  116. package/serialization/types/ExecutionThinkingVellumValue.js +1 -1
  117. package/serialization/types/ThinkingVellumValue.d.ts +1 -1
  118. package/serialization/types/ThinkingVellumValue.js +1 -1
  119. package/serialization/types/ThinkingVellumValueRequest.d.ts +1 -1
  120. package/serialization/types/ThinkingVellumValueRequest.js +1 -1
  121. package/serialization/types/WorkflowEvent.d.ts +23 -0
  122. package/serialization/types/WorkflowEvent.js +68 -0
  123. package/serialization/types/index.d.ts +3 -0
  124. package/serialization/types/index.js +3 -0
  125. package/version.d.ts +1 -1
  126. package/version.js +1 -1
@@ -100,7 +100,7 @@ class DocumentIndexes {
100
100
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
101
101
  unrecognizedObjectKeys: "strip",
102
102
  })
103
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -175,7 +175,7 @@ class DocumentIndexes {
175
175
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
176
176
  unrecognizedObjectKeys: "strip",
177
177
  })
178
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
179
  contentType: "application/json",
180
180
  requestType: "json",
181
181
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -241,7 +241,7 @@ class DocumentIndexes {
241
241
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
242
242
  unrecognizedObjectKeys: "strip",
243
243
  })
244
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
245
  contentType: "application/json",
246
246
  requestType: "json",
247
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -309,7 +309,7 @@ class DocumentIndexes {
309
309
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
310
310
  unrecognizedObjectKeys: "strip",
311
311
  })
312
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -375,7 +375,7 @@ class DocumentIndexes {
375
375
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
376
376
  unrecognizedObjectKeys: "strip",
377
377
  })
378
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
379
  contentType: "application/json",
380
380
  requestType: "json",
381
381
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -433,7 +433,7 @@ class DocumentIndexes {
433
433
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
434
434
  unrecognizedObjectKeys: "strip",
435
435
  })
436
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
437
437
  contentType: "application/json",
438
438
  requestType: "json",
439
439
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -502,7 +502,7 @@ class DocumentIndexes {
502
502
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
503
503
  unrecognizedObjectKeys: "strip",
504
504
  })
505
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
505
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
506
506
  contentType: "application/json",
507
507
  requestType: "json",
508
508
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -560,7 +560,7 @@ class DocumentIndexes {
560
560
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
561
561
  unrecognizedObjectKeys: "strip",
562
562
  })
563
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
563
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
564
564
  contentType: "application/json",
565
565
  requestType: "json",
566
566
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -99,7 +99,7 @@ class Documents {
99
99
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
100
100
  unrecognizedObjectKeys: "strip",
101
101
  })
102
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -165,7 +165,7 @@ class Documents {
165
165
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
166
166
  unrecognizedObjectKeys: "strip",
167
167
  })
168
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -230,7 +230,7 @@ class Documents {
230
230
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
231
231
  unrecognizedObjectKeys: "strip",
232
232
  })
233
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
234
234
  contentType: "application/json",
235
235
  requestType: "json",
236
236
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -288,7 +288,7 @@ class Documents {
288
288
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
289
289
  unrecognizedObjectKeys: "strip",
290
290
  })
291
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -378,7 +378,7 @@ class Documents {
378
378
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
379
379
  unrecognizedObjectKeys: "strip",
380
380
  })
381
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
381
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
382
382
  requestType: "file",
383
383
  duplex: _maybeEncodedRequest.duplex,
384
384
  body: _maybeEncodedRequest.body,
@@ -0,0 +1,69 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../../index";
7
+ export declare namespace Events {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string>;
27
+ }
28
+ }
29
+ export declare class Events {
30
+ protected readonly _options: Events.Options;
31
+ constructor(_options: Events.Options);
32
+ /**
33
+ * Accept an event and publish it to ClickHouse for analytics processing.
34
+ *
35
+ * @param {Vellum.WorkflowEvent} request
36
+ * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link Vellum.BadRequestError}
39
+ * @throws {@link Vellum.UnauthorizedError}
40
+ * @throws {@link Vellum.ForbiddenError}
41
+ * @throws {@link Vellum.TooManyRequestsError}
42
+ *
43
+ * @example
44
+ * await client.events.create({
45
+ * name: "node.execution.initiated",
46
+ * body: {
47
+ * nodeDefinition: {
48
+ * name: "name",
49
+ * module: ["module", "module"],
50
+ * id: "id"
51
+ * },
52
+ * inputs: {
53
+ * "inputs": {
54
+ * "key": "value"
55
+ * }
56
+ * }
57
+ * },
58
+ * id: "id",
59
+ * timestamp: "2024-01-15T09:30:00Z",
60
+ * traceId: "trace_id",
61
+ * spanId: "span_id"
62
+ * })
63
+ */
64
+ create(request: Vellum.WorkflowEvent, requestOptions?: Events.RequestOptions): core.HttpResponsePromise<Vellum.EventCreateResponse>;
65
+ private __create;
66
+ protected _getCustomAuthorizationHeaders(): Promise<{
67
+ "X-API-KEY": string;
68
+ }>;
69
+ }
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Events = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const Vellum = __importStar(require("../../../index"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Events {
59
+ constructor(_options) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Accept an event and publish it to ClickHouse for analytics processing.
64
+ *
65
+ * @param {Vellum.WorkflowEvent} request
66
+ * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Vellum.BadRequestError}
69
+ * @throws {@link Vellum.UnauthorizedError}
70
+ * @throws {@link Vellum.ForbiddenError}
71
+ * @throws {@link Vellum.TooManyRequestsError}
72
+ *
73
+ * @example
74
+ * await client.events.create({
75
+ * name: "node.execution.initiated",
76
+ * body: {
77
+ * nodeDefinition: {
78
+ * name: "name",
79
+ * module: ["module", "module"],
80
+ * id: "id"
81
+ * },
82
+ * inputs: {
83
+ * "inputs": {
84
+ * "key": "value"
85
+ * }
86
+ * }
87
+ * },
88
+ * id: "id",
89
+ * timestamp: "2024-01-15T09:30:00Z",
90
+ * traceId: "trace_id",
91
+ * spanId: "span_id"
92
+ * })
93
+ */
94
+ create(request, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
96
+ }
97
+ __create(request, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b;
100
+ const _response = yield core.fetcher({
101
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
102
+ .default, "monitoring/v1/events"),
103
+ method: "POST",
104
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
105
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
106
+ unrecognizedObjectKeys: "strip",
107
+ })
108
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ contentType: "application/json",
110
+ requestType: "json",
111
+ body: serializers.WorkflowEvent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
112
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
113
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
114
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
115
+ });
116
+ if (_response.ok) {
117
+ return {
118
+ data: serializers.EventCreateResponse.parseOrThrow(_response.body, {
119
+ unrecognizedObjectKeys: "passthrough",
120
+ allowUnrecognizedUnionMembers: true,
121
+ allowUnrecognizedEnumValues: true,
122
+ breadcrumbsPrefix: ["response"],
123
+ }),
124
+ rawResponse: _response.rawResponse,
125
+ };
126
+ }
127
+ if (_response.error.reason === "status-code") {
128
+ switch (_response.error.statusCode) {
129
+ case 400:
130
+ throw new Vellum.BadRequestError(_response.error.body, _response.rawResponse);
131
+ case 401:
132
+ throw new Vellum.UnauthorizedError(serializers.ErrorDetailResponse.parseOrThrow(_response.error.body, {
133
+ unrecognizedObjectKeys: "passthrough",
134
+ allowUnrecognizedUnionMembers: true,
135
+ allowUnrecognizedEnumValues: true,
136
+ breadcrumbsPrefix: ["response"],
137
+ }), _response.rawResponse);
138
+ case 403:
139
+ throw new Vellum.ForbiddenError(_response.error.body, _response.rawResponse);
140
+ case 429:
141
+ throw new Vellum.TooManyRequestsError(serializers.ErrorDetailResponse.parseOrThrow(_response.error.body, {
142
+ unrecognizedObjectKeys: "passthrough",
143
+ allowUnrecognizedUnionMembers: true,
144
+ allowUnrecognizedEnumValues: true,
145
+ breadcrumbsPrefix: ["response"],
146
+ }), _response.rawResponse);
147
+ default:
148
+ throw new errors.VellumError({
149
+ statusCode: _response.error.statusCode,
150
+ body: _response.error.body,
151
+ rawResponse: _response.rawResponse,
152
+ });
153
+ }
154
+ }
155
+ switch (_response.error.reason) {
156
+ case "non-json":
157
+ throw new errors.VellumError({
158
+ statusCode: _response.error.statusCode,
159
+ body: _response.error.rawBody,
160
+ rawResponse: _response.rawResponse,
161
+ });
162
+ case "timeout":
163
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /monitoring/v1/events.");
164
+ case "unknown":
165
+ throw new errors.VellumError({
166
+ message: _response.error.errorMessage,
167
+ rawResponse: _response.rawResponse,
168
+ });
169
+ }
170
+ });
171
+ }
172
+ _getCustomAuthorizationHeaders() {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
175
+ return { "X-API-KEY": apiKeyValue };
176
+ });
177
+ }
178
+ }
179
+ exports.Events = Events;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -98,7 +98,7 @@ class FolderEntities {
98
98
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
99
99
  unrecognizedObjectKeys: "strip",
100
100
  })
101
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -174,7 +174,7 @@ class FolderEntities {
174
174
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
175
175
  unrecognizedObjectKeys: "strip",
176
176
  })
177
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -8,6 +8,7 @@ export * as workflowDeployments from "./workflowDeployments";
8
8
  export * from "./workflowDeployments/types";
9
9
  export * as workflowSandboxes from "./workflowSandboxes";
10
10
  export * from "./workflowSandboxes/types";
11
+ export * as events from "./events";
11
12
  export * as adHoc from "./adHoc";
12
13
  export * as containerImages from "./containerImages";
13
14
  export * as documents from "./documents";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
39
+ exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.events = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
40
40
  exports.deployments = __importStar(require("./deployments"));
41
41
  __exportStar(require("./deployments/types"), exports);
42
42
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -47,6 +47,7 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
47
47
  __exportStar(require("./workflowDeployments/types"), exports);
48
48
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
49
49
  __exportStar(require("./workflowSandboxes/types"), exports);
50
+ exports.events = __importStar(require("./events"));
50
51
  exports.adHoc = __importStar(require("./adHoc"));
51
52
  exports.containerImages = __importStar(require("./containerImages"));
52
53
  exports.documents = __importStar(require("./documents"));
@@ -90,7 +90,7 @@ class MetricDefinitions {
90
90
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
91
91
  unrecognizedObjectKeys: "strip",
92
92
  })
93
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -155,7 +155,7 @@ class MetricDefinitions {
155
155
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
156
156
  unrecognizedObjectKeys: "strip",
157
157
  })
158
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -81,7 +81,7 @@ class MlModels {
81
81
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
82
82
  unrecognizedObjectKeys: "strip",
83
83
  })
84
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -80,7 +80,7 @@ class Organizations {
80
80
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
81
81
  unrecognizedObjectKeys: "strip",
82
82
  })
83
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -91,7 +91,7 @@ class Prompts {
91
91
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
92
92
  unrecognizedObjectKeys: "strip",
93
93
  })
94
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -188,7 +188,7 @@ class Prompts {
188
188
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
189
189
  unrecognizedObjectKeys: "strip",
190
190
  })
191
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
192
  contentType: "application/json",
193
193
  requestType: "json",
194
194
  body: serializers.PromptPush.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Sandboxes {
81
81
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
82
82
  unrecognizedObjectKeys: "strip",
83
83
  })
84
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -162,7 +162,7 @@ class Sandboxes {
162
162
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
163
163
  unrecognizedObjectKeys: "strip",
164
164
  })
165
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
168
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -229,7 +229,7 @@ class Sandboxes {
229
229
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
230
230
  unrecognizedObjectKeys: "strip",
231
231
  })
232
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
232
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
233
  contentType: "application/json",
234
234
  requestType: "json",
235
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -88,7 +88,7 @@ class TestSuiteRuns {
88
88
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
89
89
  unrecognizedObjectKeys: "strip",
90
90
  })
91
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: "application/json",
93
93
  requestType: "json",
94
94
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -154,7 +154,7 @@ class TestSuiteRuns {
154
154
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
155
155
  unrecognizedObjectKeys: "strip",
156
156
  })
157
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -234,7 +234,7 @@ class TestSuiteRuns {
234
234
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
235
235
  unrecognizedObjectKeys: "strip",
236
236
  })
237
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "vellum-ai/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.2.2", "User-Agent": "vellum-ai/1.2.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
238
  contentType: "application/json",
239
239
  queryParameters: _queryParams,
240
240
  requestType: "json",