vellum-ai 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/Client.d.ts +5 -22
  2. package/Client.js +14 -31
  3. package/api/client/requests/GenerateBodyRequest.d.ts +3 -4
  4. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -11
  5. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  6. package/api/resources/deployments/client/Client.d.ts +1 -1
  7. package/api/resources/deployments/client/Client.js +4 -4
  8. package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -3
  9. package/api/resources/documentIndexes/client/Client.d.ts +1 -3
  10. package/api/resources/documentIndexes/client/Client.js +3 -5
  11. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +0 -2
  12. package/api/resources/documents/client/Client.d.ts +1 -3
  13. package/api/resources/documents/client/Client.js +5 -7
  14. package/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -3
  15. package/api/resources/modelVersions/client/Client.d.ts +1 -1
  16. package/api/resources/modelVersions/client/Client.js +2 -2
  17. package/api/resources/registeredPrompts/client/Client.d.ts +11 -6
  18. package/api/resources/registeredPrompts/client/Client.js +12 -7
  19. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -6
  20. package/api/resources/sandboxes/client/Client.d.ts +4 -2
  21. package/api/resources/sandboxes/client/Client.js +6 -4
  22. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -0
  23. package/api/resources/testSuites/client/Client.d.ts +2 -2
  24. package/api/resources/testSuites/client/Client.js +4 -4
  25. package/api/resources/workflowDeployments/client/Client.js +1 -1
  26. package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -3
  27. package/dist/Client.d.ts +5 -22
  28. package/dist/Client.js +14 -31
  29. package/dist/api/client/requests/GenerateBodyRequest.d.ts +3 -4
  30. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -11
  31. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  32. package/dist/api/resources/deployments/client/Client.d.ts +1 -1
  33. package/dist/api/resources/deployments/client/Client.js +4 -4
  34. package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -3
  35. package/dist/api/resources/documentIndexes/client/Client.d.ts +1 -3
  36. package/dist/api/resources/documentIndexes/client/Client.js +3 -5
  37. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +0 -2
  38. package/dist/api/resources/documents/client/Client.d.ts +1 -3
  39. package/dist/api/resources/documents/client/Client.js +5 -7
  40. package/dist/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -3
  41. package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
  42. package/dist/api/resources/modelVersions/client/Client.js +2 -2
  43. package/dist/api/resources/registeredPrompts/client/Client.d.ts +11 -6
  44. package/dist/api/resources/registeredPrompts/client/Client.js +12 -7
  45. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -6
  46. package/dist/api/resources/sandboxes/client/Client.d.ts +4 -2
  47. package/dist/api/resources/sandboxes/client/Client.js +6 -4
  48. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -0
  49. package/dist/api/resources/testSuites/client/Client.d.ts +2 -2
  50. package/dist/api/resources/testSuites/client/Client.js +4 -4
  51. package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
  52. package/dist/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -3
  53. package/package.json +1 -1
@@ -27,7 +27,7 @@ export declare class TestSuites {
27
27
  * or overwritten with default values.
28
28
  *
29
29
  * @example
30
- * await vellum.testSuites.upsertTestSuiteTestCase("string", {
30
+ * await vellum.testSuites.upsertTestSuiteTestCase("id", {
31
31
  * inputValues: [],
32
32
  * evaluationValues: []
33
33
  * })
@@ -37,7 +37,7 @@ export declare class TestSuites {
37
37
  * Deletes an existing test case for a test suite, keying off of the test case id.
38
38
  *
39
39
  * @example
40
- * await vellum.testSuites.deleteTestSuiteTestCase("string", "string")
40
+ * await vellum.testSuites.deleteTestSuiteTestCase("id", "test_case_id")
41
41
  */
42
42
  deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
43
43
  }
@@ -58,7 +58,7 @@ class TestSuites {
58
58
  * or overwritten with default values.
59
59
  *
60
60
  * @example
61
- * await vellum.testSuites.upsertTestSuiteTestCase("string", {
61
+ * await vellum.testSuites.upsertTestSuiteTestCase("id", {
62
62
  * inputValues: [],
63
63
  * evaluationValues: []
64
64
  * })
@@ -74,7 +74,7 @@ class TestSuites {
74
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "0.3.3",
77
+ "X-Fern-SDK-Version": "0.3.5",
78
78
  },
79
79
  contentType: "application/json",
80
80
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
@@ -116,7 +116,7 @@ class TestSuites {
116
116
  * Deletes an existing test case for a test suite, keying off of the test case id.
117
117
  *
118
118
  * @example
119
- * await vellum.testSuites.deleteTestSuiteTestCase("string", "string")
119
+ * await vellum.testSuites.deleteTestSuiteTestCase("id", "test_case_id")
120
120
  */
121
121
  deleteTestSuiteTestCase(id, testCaseId, requestOptions) {
122
122
  var _a;
@@ -129,7 +129,7 @@ class TestSuites {
129
129
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
130
130
  "X-Fern-Language": "JavaScript",
131
131
  "X-Fern-SDK-Name": "vellum-ai",
132
- "X-Fern-SDK-Version": "0.3.3",
132
+ "X-Fern-SDK-Version": "0.3.5",
133
133
  },
134
134
  contentType: "application/json",
135
135
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -73,7 +73,7 @@ class WorkflowDeployments {
73
73
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "vellum-ai",
76
- "X-Fern-SDK-Version": "0.3.3",
76
+ "X-Fern-SDK-Version": "0.3.5",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -4,9 +4,7 @@
4
4
  import * as Vellum from "../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * status: Vellum.WorkflowDeploymentsListRequestStatus.Active
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface WorkflowDeploymentsListRequest {
12
10
  /**
package/dist/Client.d.ts CHANGED
@@ -27,9 +27,6 @@ export declare class VellumClient {
27
27
  constructor(_options: VellumClient.Options);
28
28
  /**
29
29
  * Executes a deployed Prompt and returns the result.
30
- *
31
- * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
32
- * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
33
30
  * @throws {@link Vellum.BadRequestError}
34
31
  * @throws {@link Vellum.ForbiddenError}
35
32
  * @throws {@link Vellum.NotFoundError}
@@ -38,9 +35,6 @@ export declare class VellumClient {
38
35
  executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
39
36
  /**
40
37
  * Executes a deployed Prompt and streams back the results.
41
- *
42
- * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
43
- * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
44
38
  */
45
39
  executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
46
40
  /**
@@ -65,10 +59,9 @@ export declare class VellumClient {
65
59
  *
66
60
  * @example
67
61
  * await vellum.generate({
68
- * requests: [],
69
- * options: {
70
- * logprobs: Vellum.LogprobsEnum.All
71
- * }
62
+ * requests: [{
63
+ * inputValues: {}
64
+ * }]
72
65
  * })
73
66
  */
74
67
  generate(request: Vellum.GenerateBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.GenerateResponse>;
@@ -88,17 +81,7 @@ export declare class VellumClient {
88
81
  *
89
82
  * @example
90
83
  * await vellum.search({
91
- * query: "string",
92
- * options: {
93
- * weights: {},
94
- * resultMerging: {},
95
- * filters: {
96
- * metadata: {
97
- * combinator: Vellum.MetadataFilterRuleCombinator.And,
98
- * operator: Vellum.LogicalOperator.Equals
99
- * }
100
- * }
101
- * }
84
+ * query: "query"
102
85
  * })
103
86
  */
104
87
  search(request: Vellum.SearchRequestBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.SearchResponse>;
@@ -112,7 +95,7 @@ export declare class VellumClient {
112
95
  *
113
96
  * @example
114
97
  * await vellum.submitCompletionActuals({
115
- * actuals: []
98
+ * actuals: [{}]
116
99
  * })
117
100
  */
118
101
  submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
package/dist/Client.js CHANGED
@@ -59,9 +59,6 @@ class VellumClient {
59
59
  }
60
60
  /**
61
61
  * Executes a deployed Prompt and returns the result.
62
- *
63
- * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
64
- * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
65
62
  * @throws {@link Vellum.BadRequestError}
66
63
  * @throws {@link Vellum.ForbiddenError}
67
64
  * @throws {@link Vellum.NotFoundError}
@@ -78,7 +75,7 @@ class VellumClient {
78
75
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
79
76
  "X-Fern-Language": "JavaScript",
80
77
  "X-Fern-SDK-Name": "vellum-ai",
81
- "X-Fern-SDK-Version": "0.3.3",
78
+ "X-Fern-SDK-Version": "0.3.5",
82
79
  },
83
80
  contentType: "application/json",
84
81
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -127,9 +124,6 @@ class VellumClient {
127
124
  }
128
125
  /**
129
126
  * Executes a deployed Prompt and streams back the results.
130
- *
131
- * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
132
- * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
133
127
  */
134
128
  executePromptStream(request, requestOptions) {
135
129
  var _a;
@@ -142,7 +136,7 @@ class VellumClient {
142
136
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
143
137
  "X-Fern-Language": "JavaScript",
144
138
  "X-Fern-SDK-Name": "vellum-ai",
145
- "X-Fern-SDK-Version": "0.3.3",
139
+ "X-Fern-SDK-Version": "0.3.5",
146
140
  },
147
141
  contentType: "application/json",
148
142
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -215,7 +209,7 @@ class VellumClient {
215
209
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
216
210
  "X-Fern-Language": "JavaScript",
217
211
  "X-Fern-SDK-Name": "vellum-ai",
218
- "X-Fern-SDK-Version": "0.3.3",
212
+ "X-Fern-SDK-Version": "0.3.5",
219
213
  },
220
214
  contentType: "application/json",
221
215
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -274,7 +268,7 @@ class VellumClient {
274
268
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
275
269
  "X-Fern-Language": "JavaScript",
276
270
  "X-Fern-SDK-Name": "vellum-ai",
277
- "X-Fern-SDK-Version": "0.3.3",
271
+ "X-Fern-SDK-Version": "0.3.5",
278
272
  },
279
273
  contentType: "application/json",
280
274
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -339,10 +333,9 @@ class VellumClient {
339
333
  *
340
334
  * @example
341
335
  * await vellum.generate({
342
- * requests: [],
343
- * options: {
344
- * logprobs: Vellum.LogprobsEnum.All
345
- * }
336
+ * requests: [{
337
+ * inputValues: {}
338
+ * }]
346
339
  * })
347
340
  */
348
341
  generate(request, requestOptions) {
@@ -356,7 +349,7 @@ class VellumClient {
356
349
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
357
350
  "X-Fern-Language": "JavaScript",
358
351
  "X-Fern-SDK-Name": "vellum-ai",
359
- "X-Fern-SDK-Version": "0.3.3",
352
+ "X-Fern-SDK-Version": "0.3.5",
360
353
  },
361
354
  contentType: "application/json",
362
355
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -419,7 +412,7 @@ class VellumClient {
419
412
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
420
413
  "X-Fern-Language": "JavaScript",
421
414
  "X-Fern-SDK-Name": "vellum-ai",
422
- "X-Fern-SDK-Version": "0.3.3",
415
+ "X-Fern-SDK-Version": "0.3.5",
423
416
  },
424
417
  contentType: "application/json",
425
418
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -483,17 +476,7 @@ class VellumClient {
483
476
  *
484
477
  * @example
485
478
  * await vellum.search({
486
- * query: "string",
487
- * options: {
488
- * weights: {},
489
- * resultMerging: {},
490
- * filters: {
491
- * metadata: {
492
- * combinator: Vellum.MetadataFilterRuleCombinator.And,
493
- * operator: Vellum.LogicalOperator.Equals
494
- * }
495
- * }
496
- * }
479
+ * query: "query"
497
480
  * })
498
481
  */
499
482
  search(request, requestOptions) {
@@ -507,7 +490,7 @@ class VellumClient {
507
490
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
508
491
  "X-Fern-Language": "JavaScript",
509
492
  "X-Fern-SDK-Name": "vellum-ai",
510
- "X-Fern-SDK-Version": "0.3.3",
493
+ "X-Fern-SDK-Version": "0.3.5",
511
494
  },
512
495
  contentType: "application/json",
513
496
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -562,7 +545,7 @@ class VellumClient {
562
545
  *
563
546
  * @example
564
547
  * await vellum.submitCompletionActuals({
565
- * actuals: []
548
+ * actuals: [{}]
566
549
  * })
567
550
  */
568
551
  submitCompletionActuals(request, requestOptions) {
@@ -576,7 +559,7 @@ class VellumClient {
576
559
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
577
560
  "X-Fern-Language": "JavaScript",
578
561
  "X-Fern-SDK-Name": "vellum-ai",
579
- "X-Fern-SDK-Version": "0.3.3",
562
+ "X-Fern-SDK-Version": "0.3.5",
580
563
  },
581
564
  contentType: "application/json",
582
565
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -639,7 +622,7 @@ class VellumClient {
639
622
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
640
623
  "X-Fern-Language": "JavaScript",
641
624
  "X-Fern-SDK-Name": "vellum-ai",
642
- "X-Fern-SDK-Version": "0.3.3",
625
+ "X-Fern-SDK-Version": "0.3.5",
643
626
  },
644
627
  contentType: "application/json",
645
628
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -5,10 +5,9 @@ import * as Vellum from "../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * requests: [],
9
- * options: {
10
- * logprobs: Vellum.LogprobsEnum.All
11
- * }
8
+ * requests: [{
9
+ * inputValues: {}
10
+ * }]
12
11
  * }
13
12
  */
14
13
  export interface GenerateBodyRequest {
@@ -5,17 +5,7 @@ import * as Vellum from "../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * query: "string",
9
- * options: {
10
- * weights: {},
11
- * resultMerging: {},
12
- * filters: {
13
- * metadata: {
14
- * combinator: Vellum.MetadataFilterRuleCombinator.And,
15
- * operator: Vellum.LogicalOperator.Equals
16
- * }
17
- * }
18
- * }
8
+ * query: "query"
19
9
  * }
20
10
  */
21
11
  export interface SearchRequestBodyRequest {
@@ -5,7 +5,7 @@ import * as Vellum from "../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * actuals: []
8
+ * actuals: [{}]
9
9
  * }
10
10
  */
11
11
  export interface SubmitCompletionActualsRequest {
@@ -22,7 +22,7 @@ export declare class Deployments {
22
22
  * Used to retrieve a deployment given its ID or name.
23
23
  *
24
24
  * @example
25
- * await vellum.deployments.retrieve("string")
25
+ * await vellum.deployments.retrieve("id")
26
26
  */
27
27
  retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
28
28
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
@@ -73,7 +73,7 @@ class Deployments {
73
73
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "vellum-ai",
76
- "X-Fern-SDK-Version": "0.3.3",
76
+ "X-Fern-SDK-Version": "0.3.5",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -113,7 +113,7 @@ class Deployments {
113
113
  * Used to retrieve a deployment given its ID or name.
114
114
  *
115
115
  * @example
116
- * await vellum.deployments.retrieve("string")
116
+ * await vellum.deployments.retrieve("id")
117
117
  */
118
118
  retrieve(id, requestOptions) {
119
119
  var _a;
@@ -126,7 +126,7 @@ class Deployments {
126
126
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "vellum-ai",
129
- "X-Fern-SDK-Version": "0.3.3",
129
+ "X-Fern-SDK-Version": "0.3.5",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -172,7 +172,7 @@ class Deployments {
172
172
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
173
173
  "X-Fern-Language": "JavaScript",
174
174
  "X-Fern-SDK-Name": "vellum-ai",
175
- "X-Fern-SDK-Version": "0.3.3",
175
+ "X-Fern-SDK-Version": "0.3.5",
176
176
  },
177
177
  contentType: "application/json",
178
178
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -4,9 +4,7 @@
4
4
  import * as Vellum from "../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * status: Vellum.DeploymentsListRequestStatus.Active
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface DeploymentsListRequest {
12
10
  /**
@@ -24,8 +24,6 @@ export declare class DocumentIndexes {
24
24
  * await vellum.documentIndexes.create({
25
25
  * label: "My Document Index",
26
26
  * name: "my-document-index",
27
- * status: Vellum.EntityStatus.Active,
28
- * environment: Vellum.EnvironmentEnum.Development,
29
27
  * indexingConfig: {
30
28
  * "chunking": {
31
29
  * "chunker_name": "sentence-chunker",
@@ -50,7 +48,7 @@ export declare class DocumentIndexes {
50
48
  * Used to retrieve a Document Index given its ID or name.
51
49
  *
52
50
  * @example
53
- * await vellum.documentIndexes.retrieve("string")
51
+ * await vellum.documentIndexes.retrieve("id")
54
52
  */
55
53
  retrieve(id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
56
54
  }
@@ -55,8 +55,6 @@ class DocumentIndexes {
55
55
  * await vellum.documentIndexes.create({
56
56
  * label: "My Document Index",
57
57
  * name: "my-document-index",
58
- * status: Vellum.EntityStatus.Active,
59
- * environment: Vellum.EnvironmentEnum.Development,
60
58
  * indexingConfig: {
61
59
  * "chunking": {
62
60
  * "chunker_name": "sentence-chunker",
@@ -87,7 +85,7 @@ class DocumentIndexes {
87
85
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
88
86
  "X-Fern-Language": "JavaScript",
89
87
  "X-Fern-SDK-Name": "vellum-ai",
90
- "X-Fern-SDK-Version": "0.3.3",
88
+ "X-Fern-SDK-Version": "0.3.5",
91
89
  },
92
90
  contentType: "application/json",
93
91
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
@@ -129,7 +127,7 @@ class DocumentIndexes {
129
127
  * Used to retrieve a Document Index given its ID or name.
130
128
  *
131
129
  * @example
132
- * await vellum.documentIndexes.retrieve("string")
130
+ * await vellum.documentIndexes.retrieve("id")
133
131
  */
134
132
  retrieve(id, requestOptions) {
135
133
  var _a;
@@ -142,7 +140,7 @@ class DocumentIndexes {
142
140
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
143
141
  "X-Fern-Language": "JavaScript",
144
142
  "X-Fern-SDK-Name": "vellum-ai",
145
- "X-Fern-SDK-Version": "0.3.3",
143
+ "X-Fern-SDK-Version": "0.3.5",
146
144
  },
147
145
  contentType: "application/json",
148
146
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,8 +7,6 @@ import * as Vellum from "../../../..";
7
7
  * {
8
8
  * label: "My Document Index",
9
9
  * name: "my-document-index",
10
- * status: Vellum.EntityStatus.Active,
11
- * environment: Vellum.EnvironmentEnum.Development,
12
10
  * indexingConfig: {
13
11
  * "chunking": {
14
12
  * "chunker_name": "sentence-chunker",
@@ -31,9 +31,7 @@ export declare class Documents {
31
31
  * Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
32
32
  *
33
33
  * @example
34
- * await vellum.documents.partialUpdate("string", {
35
- * status: "ACTIVE"
36
- * })
34
+ * await vellum.documents.partialUpdate("id", {})
37
35
  */
38
36
  partialUpdate(id: string, request?: Vellum.PatchedDocumentUpdateRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.DocumentRead>;
39
37
  /**
@@ -81,7 +81,7 @@ class Documents {
81
81
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "vellum-ai",
84
- "X-Fern-SDK-Version": "0.3.3",
84
+ "X-Fern-SDK-Version": "0.3.5",
85
85
  },
86
86
  contentType: "application/json",
87
87
  queryParameters: _queryParams,
@@ -128,7 +128,7 @@ class Documents {
128
128
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "0.3.3",
131
+ "X-Fern-SDK-Version": "0.3.5",
132
132
  },
133
133
  contentType: "application/json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -162,9 +162,7 @@ class Documents {
162
162
  * Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
163
163
  *
164
164
  * @example
165
- * await vellum.documents.partialUpdate("string", {
166
- * status: "ACTIVE"
167
- * })
165
+ * await vellum.documents.partialUpdate("id", {})
168
166
  */
169
167
  partialUpdate(id, request = {}, requestOptions) {
170
168
  var _a;
@@ -177,7 +175,7 @@ class Documents {
177
175
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
178
176
  "X-Fern-Language": "JavaScript",
179
177
  "X-Fern-SDK-Name": "vellum-ai",
180
- "X-Fern-SDK-Version": "0.3.3",
178
+ "X-Fern-SDK-Version": "0.3.5",
181
179
  },
182
180
  contentType: "application/json",
183
181
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
@@ -261,7 +259,7 @@ class Documents {
261
259
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
262
260
  "X-Fern-Language": "JavaScript",
263
261
  "X-Fern-SDK-Name": "vellum-ai",
264
- "X-Fern-SDK-Version": "0.3.3",
262
+ "X-Fern-SDK-Version": "0.3.5",
265
263
  },
266
264
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
267
265
  body: _request,
@@ -4,9 +4,7 @@
4
4
  import * as Vellum from "../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * status: "ACTIVE"
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface PatchedDocumentUpdateRequest {
12
10
  /** A human-readable label for the document. Defaults to the originally uploaded file's file name. */
@@ -21,7 +21,7 @@ export declare class ModelVersions {
21
21
  * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
22
22
  *
23
23
  * @example
24
- * await vellum.modelVersions.retrieve("string")
24
+ * await vellum.modelVersions.retrieve("id")
25
25
  */
26
26
  retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
27
27
  }
@@ -52,7 +52,7 @@ class ModelVersions {
52
52
  * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
53
53
  *
54
54
  * @example
55
- * await vellum.modelVersions.retrieve("string")
55
+ * await vellum.modelVersions.retrieve("id")
56
56
  */
57
57
  retrieve(id, requestOptions) {
58
58
  var _a;
@@ -65,7 +65,7 @@ class ModelVersions {
65
65
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "vellum-ai",
68
- "X-Fern-SDK-Version": "0.3.3",
68
+ "X-Fern-SDK-Version": "0.3.5",
69
69
  },
70
70
  contentType: "application/json",
71
71
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -28,17 +28,22 @@ export declare class RegisteredPrompts {
28
28
  *
29
29
  * @example
30
30
  * await vellum.registeredPrompts.registerPrompt({
31
- * label: "string",
32
- * name: "string",
31
+ * label: "label",
32
+ * name: "name",
33
33
  * prompt: {
34
34
  * promptBlockData: {
35
35
  * version: 1,
36
- * blocks: []
36
+ * blocks: [{
37
+ * id: "id",
38
+ * blockType: Vellum.BlockTypeEnum.ChatMessage,
39
+ * properties: {}
40
+ * }]
37
41
  * },
38
- * inputVariables: []
42
+ * inputVariables: [{
43
+ * key: "key"
44
+ * }]
39
45
  * },
40
- * provider: Vellum.ProviderEnum.Anthropic,
41
- * model: "string",
46
+ * model: "model",
42
47
  * parameters: {
43
48
  * temperature: 1.1,
44
49
  * maxTokens: 1,
@@ -60,17 +60,22 @@ class RegisteredPrompts {
60
60
  *
61
61
  * @example
62
62
  * await vellum.registeredPrompts.registerPrompt({
63
- * label: "string",
64
- * name: "string",
63
+ * label: "label",
64
+ * name: "name",
65
65
  * prompt: {
66
66
  * promptBlockData: {
67
67
  * version: 1,
68
- * blocks: []
68
+ * blocks: [{
69
+ * id: "id",
70
+ * blockType: Vellum.BlockTypeEnum.ChatMessage,
71
+ * properties: {}
72
+ * }]
69
73
  * },
70
- * inputVariables: []
74
+ * inputVariables: [{
75
+ * key: "key"
76
+ * }]
71
77
  * },
72
- * provider: Vellum.ProviderEnum.Anthropic,
73
- * model: "string",
78
+ * model: "model",
74
79
  * parameters: {
75
80
  * temperature: 1.1,
76
81
  * maxTokens: 1,
@@ -91,7 +96,7 @@ class RegisteredPrompts {
91
96
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
92
97
  "X-Fern-Language": "JavaScript",
93
98
  "X-Fern-SDK-Name": "vellum-ai",
94
- "X-Fern-SDK-Version": "0.3.3",
99
+ "X-Fern-SDK-Version": "0.3.5",
95
100
  },
96
101
  contentType: "application/json",
97
102
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
@@ -5,17 +5,22 @@ import * as Vellum from "../../../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * label: "string",
9
- * name: "string",
8
+ * label: "label",
9
+ * name: "name",
10
10
  * prompt: {
11
11
  * promptBlockData: {
12
12
  * version: 1,
13
- * blocks: []
13
+ * blocks: [{
14
+ * id: "id",
15
+ * blockType: Vellum.BlockTypeEnum.ChatMessage,
16
+ * properties: {}
17
+ * }]
14
18
  * },
15
- * inputVariables: []
19
+ * inputVariables: [{
20
+ * key: "key"
21
+ * }]
16
22
  * },
17
- * provider: Vellum.ProviderEnum.Anthropic,
18
- * model: "string",
23
+ * model: "model",
19
24
  * parameters: {
20
25
  * temperature: 1.1,
21
26
  * maxTokens: 1,