vellum-ai 0.10.6 → 0.10.7

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 (84) hide show
  1. package/.mock/definition/__package__.yml +123 -0
  2. package/.mock/definition/adHoc.yml +25 -0
  3. package/.mock/definition/containerImages.yml +9 -0
  4. package/.mock/definition/deployments.yml +16 -0
  5. package/.mock/definition/documentIndexes.yml +19 -0
  6. package/.mock/definition/documents.yml +16 -1
  7. package/.mock/definition/folderEntities.yml +5 -0
  8. package/.mock/definition/metricDefinitions.yml +8 -0
  9. package/.mock/definition/mlModels.yml +2 -0
  10. package/.mock/definition/sandboxes.yml +8 -0
  11. package/.mock/definition/testSuiteRuns.yml +7 -0
  12. package/.mock/definition/testSuites.yml +29 -0
  13. package/.mock/definition/workflowDeployments.yml +13 -0
  14. package/.mock/definition/workflowSandboxes.yml +3 -0
  15. package/.mock/definition/workflows.yml +4 -0
  16. package/.mock/definition/workspaceSecrets.yml +5 -0
  17. package/.mock/fern.config.json +1 -1
  18. package/.mock/openapi/openapi.yml +3 -0
  19. package/Client.js +10 -10
  20. package/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -35
  21. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +3 -16
  22. package/api/client/requests/GenerateStreamBodyRequest.d.ts +3 -20
  23. package/api/resources/adHoc/client/Client.js +1 -1
  24. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +9 -65
  25. package/api/resources/containerImages/client/Client.js +4 -4
  26. package/api/resources/deployments/client/Client.js +7 -7
  27. package/api/resources/documentIndexes/client/Client.js +8 -8
  28. package/api/resources/documents/client/Client.js +5 -5
  29. package/api/resources/folderEntities/client/Client.js +2 -2
  30. package/api/resources/metricDefinitions/client/Client.d.ts +9 -0
  31. package/api/resources/metricDefinitions/client/Client.js +52 -1
  32. package/api/resources/mlModels/client/Client.js +1 -1
  33. package/api/resources/sandboxes/client/Client.js +3 -3
  34. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  35. package/api/resources/testSuites/client/Client.js +5 -5
  36. package/api/resources/workflowDeployments/client/Client.js +6 -6
  37. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  38. package/api/resources/workflows/client/Client.js +2 -2
  39. package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -6
  40. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  41. package/api/types/MetricDefinitionHistoryItem.d.ts +14 -0
  42. package/api/types/MetricDefinitionHistoryItem.js +5 -0
  43. package/api/types/index.d.ts +1 -0
  44. package/api/types/index.js +1 -0
  45. package/dist/Client.js +10 -10
  46. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -35
  47. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +3 -16
  48. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +3 -20
  49. package/dist/api/resources/adHoc/client/Client.js +1 -1
  50. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +9 -65
  51. package/dist/api/resources/containerImages/client/Client.js +4 -4
  52. package/dist/api/resources/deployments/client/Client.js +7 -7
  53. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  54. package/dist/api/resources/documents/client/Client.js +5 -5
  55. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  56. package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -0
  57. package/dist/api/resources/metricDefinitions/client/Client.js +52 -1
  58. package/dist/api/resources/mlModels/client/Client.js +1 -1
  59. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  60. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  61. package/dist/api/resources/testSuites/client/Client.js +5 -5
  62. package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
  63. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  64. package/dist/api/resources/workflows/client/Client.js +2 -2
  65. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -6
  66. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  67. package/dist/api/types/MetricDefinitionHistoryItem.d.ts +14 -0
  68. package/dist/api/types/MetricDefinitionHistoryItem.js +5 -0
  69. package/dist/api/types/index.d.ts +1 -0
  70. package/dist/api/types/index.js +1 -0
  71. package/dist/serialization/types/MetricDefinitionHistoryItem.d.ts +18 -0
  72. package/dist/serialization/types/MetricDefinitionHistoryItem.js +39 -0
  73. package/dist/serialization/types/index.d.ts +1 -0
  74. package/dist/serialization/types/index.js +1 -0
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.js +1 -1
  77. package/package.json +1 -1
  78. package/reference.md +67 -146
  79. package/serialization/types/MetricDefinitionHistoryItem.d.ts +18 -0
  80. package/serialization/types/MetricDefinitionHistoryItem.js +39 -0
  81. package/serialization/types/index.d.ts +1 -0
  82. package/serialization/types/index.js +1 -0
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
@@ -2,15 +2,38 @@ errors:
2
2
  BadRequestError:
3
3
  status-code: 400
4
4
  type: unknown
5
+ docs: ''
6
+ examples:
7
+ - value:
8
+ detail: detail
9
+ - value:
10
+ message: message
11
+ log: log
12
+ - value:
13
+ key: value
5
14
  ForbiddenError:
6
15
  status-code: 403
7
16
  type: unknown
17
+ docs: ''
18
+ examples:
19
+ - value:
20
+ detail: detail
8
21
  InternalServerError:
9
22
  status-code: 500
10
23
  type: unknown
24
+ docs: ''
25
+ examples:
26
+ - value:
27
+ detail: detail
11
28
  NotFoundError:
12
29
  status-code: 404
13
30
  type: unknown
31
+ docs: ''
32
+ examples:
33
+ - value:
34
+ detail: detail
35
+ - value:
36
+ key: value
14
37
  service:
15
38
  auth: false
16
39
  base-path: ''
@@ -22,6 +45,8 @@ service:
22
45
  docs: >-
23
46
  An internal-only endpoint that's subject to breaking changes without
24
47
  notice. Not intended for public use.
48
+ source:
49
+ openapi: openapi/openapi.yml
25
50
  request:
26
51
  name: CodeExecutor
27
52
  body:
@@ -34,6 +59,7 @@ service:
34
59
  input_values: list<CodeExecutorInput>
35
60
  packages: list<CodeExecutionPackage>
36
61
  output_type: VellumVariableType
62
+ content-type: application/json
37
63
  response:
38
64
  docs: ''
39
65
  type: CodeExecutorResponse
@@ -66,6 +92,8 @@ service:
66
92
  method: POST
67
93
  auth: true
68
94
  docs: Executes a deployed Prompt and returns the result.
95
+ source:
96
+ openapi: openapi/openapi.yml
69
97
  request:
70
98
  name: ExecutePromptRequest
71
99
  body:
@@ -130,6 +158,7 @@ service:
130
158
  Arbitrary JSON metadata associated with this request. Can be
131
159
  used to capture additional monitoring data such as user id,
132
160
  session id, etc. for future analysis.
161
+ content-type: application/json
133
162
  response:
134
163
  docs: ''
135
164
  type: ExecutePromptResponse
@@ -179,6 +208,8 @@ service:
179
208
  method: POST
180
209
  auth: true
181
210
  docs: Executes a deployed Prompt and streams back the results.
211
+ source:
212
+ openapi: openapi/openapi.yml
182
213
  request:
183
214
  name: ExecutePromptStreamRequest
184
215
  body:
@@ -243,6 +274,7 @@ service:
243
274
  Arbitrary JSON metadata associated with this request. Can be
244
275
  used to capture additional monitoring data such as user id,
245
276
  session id, etc. for future analysis.
277
+ content-type: application/json
246
278
  response-stream:
247
279
  docs: ''
248
280
  type: ExecutePromptEvent
@@ -254,6 +286,21 @@ service:
254
286
  - ForbiddenError
255
287
  - NotFoundError
256
288
  - InternalServerError
289
+ examples:
290
+ - request:
291
+ inputs:
292
+ - name: name
293
+ type: STRING
294
+ value: value
295
+ response:
296
+ stream:
297
+ - state: INITIATED
298
+ meta:
299
+ model_name: model_name
300
+ latency: 1
301
+ deployment_release_tag: deployment_release_tag
302
+ prompt_version_id: prompt_version_id
303
+ execution_id: execution_id
257
304
  audiences:
258
305
  - customers
259
306
  execute-workflow:
@@ -261,6 +308,8 @@ service:
261
308
  method: POST
262
309
  auth: true
263
310
  docs: Executes a deployed Workflow and returns its outputs.
311
+ source:
312
+ openapi: openapi/openapi.yml
264
313
  request:
265
314
  name: ExecuteWorkflowRequest
266
315
  body:
@@ -312,6 +361,7 @@ service:
312
361
  Arbitrary JSON metadata associated with this request. Can be
313
362
  used to capture additional monitoring data such as user id,
314
363
  session id, etc. for future analysis.
364
+ content-type: application/json
315
365
  response:
316
366
  docs: ''
317
367
  type: ExecuteWorkflowResponse
@@ -347,6 +397,8 @@ service:
347
397
  method: POST
348
398
  auth: true
349
399
  docs: Executes a deployed Workflow and streams back its results.
400
+ source:
401
+ openapi: openapi/openapi.yml
350
402
  request:
351
403
  name: ExecuteWorkflowStreamRequest
352
404
  body:
@@ -404,6 +456,7 @@ service:
404
456
  Arbitrary JSON metadata associated with this request. Can be
405
457
  used to capture additional monitoring data such as user id,
406
458
  session id, etc. for future analysis.
459
+ content-type: application/json
407
460
  response-stream:
408
461
  docs: ''
409
462
  type: WorkflowStreamEvent
@@ -414,6 +467,41 @@ service:
414
467
  - BadRequestError
415
468
  - NotFoundError
416
469
  - InternalServerError
470
+ examples:
471
+ - request:
472
+ inputs:
473
+ - name: name
474
+ type: STRING
475
+ value: value
476
+ response:
477
+ stream:
478
+ - execution_id: execution_id
479
+ run_id: run_id
480
+ external_id: external_id
481
+ type: WORKFLOW
482
+ data:
483
+ id: id
484
+ state: INITIATED
485
+ ts: '2024-01-15T09:30:00Z'
486
+ output:
487
+ id: id
488
+ name: name
489
+ state: INITIATED
490
+ node_id: node_id
491
+ delta: delta
492
+ type: STRING
493
+ value: value
494
+ error:
495
+ message: message
496
+ code: WORKFLOW_INITIALIZATION
497
+ outputs:
498
+ - id: id
499
+ name: name
500
+ type: STRING
501
+ inputs:
502
+ - id: id
503
+ name: name
504
+ type: STRING
417
505
  audiences:
418
506
  - customers
419
507
  generate:
@@ -425,6 +513,8 @@ service:
425
513
 
426
514
  Important: This endpoint is DEPRECATED and has been superseded by
427
515
  [execute-prompt](/api-reference/api-reference/execute-prompt).
516
+ source:
517
+ openapi: openapi/openapi.yml
428
518
  request:
429
519
  name: GenerateBodyRequest
430
520
  body:
@@ -453,6 +543,7 @@ service:
453
543
  docs: >-
454
544
  Additional configuration that can be used to control what's
455
545
  included in the response.
546
+ content-type: application/json
456
547
  response:
457
548
  docs: ''
458
549
  type: GenerateResponse
@@ -493,6 +584,8 @@ service:
493
584
  Important: This endpoint is DEPRECATED and has been superseded by
494
585
 
495
586
  [execute-prompt-stream](/api-reference/api-reference/execute-prompt-stream).
587
+ source:
588
+ openapi: openapi/openapi.yml
496
589
  request:
497
590
  name: GenerateStreamBodyRequest
498
591
  body:
@@ -521,6 +614,7 @@ service:
521
614
  docs: >-
522
615
  Additional configuration that can be used to control what's
523
616
  included in the response.
617
+ content-type: application/json
524
618
  response-stream:
525
619
  docs: ''
526
620
  type: GenerateStreamResponse
@@ -532,6 +626,25 @@ service:
532
626
  - ForbiddenError
533
627
  - NotFoundError
534
628
  - InternalServerError
629
+ examples:
630
+ - request:
631
+ requests:
632
+ - input_values:
633
+ key: value
634
+ response:
635
+ stream:
636
+ - delta:
637
+ request_index: 1
638
+ data:
639
+ completion_index: 1
640
+ completion:
641
+ id: id
642
+ text: text
643
+ prompt_version_id: prompt_version_id
644
+ deployment_release_tag: deployment_release_tag
645
+ model_name: model_name
646
+ error:
647
+ message: message
535
648
  audiences:
536
649
  - deprecated
537
650
  search:
@@ -539,6 +652,8 @@ service:
539
652
  method: POST
540
653
  auth: true
541
654
  docs: Perform a search against a document index.
655
+ source:
656
+ openapi: openapi/openapi.yml
542
657
  request:
543
658
  name: SearchRequestBodyRequest
544
659
  body:
@@ -565,6 +680,7 @@ service:
565
680
  options:
566
681
  type: optional<SearchRequestOptionsRequest>
567
682
  docs: Configuration options for the search.
683
+ content-type: application/json
568
684
  response:
569
685
  docs: ''
570
686
  type: SearchResponse
@@ -595,6 +711,8 @@ service:
595
711
  docs: >-
596
712
  Used to submit feedback regarding the quality of previously generated
597
713
  completions.
714
+ source:
715
+ openapi: openapi/openapi.yml
598
716
  request:
599
717
  name: SubmitCompletionActualsRequest
600
718
  body:
@@ -618,6 +736,7 @@ service:
618
736
  Feedback regarding the quality of previously generated
619
737
  completions
620
738
  type: list<SubmitCompletionActualRequest>
739
+ content-type: application/json
621
740
  url: Predict
622
741
  availability: generally-available
623
742
  errors:
@@ -638,6 +757,8 @@ service:
638
757
  Used to submit feedback regarding the quality of previous workflow execution and its outputs.
639
758
 
640
759
  **Note:** Uses a base url of `https://predict.vellum.ai`.
760
+ source:
761
+ openapi: openapi/openapi.yml
641
762
  request:
642
763
  name: SubmitWorkflowExecutionActualsRequest
643
764
  body:
@@ -662,6 +783,7 @@ service:
662
783
  actuals for. Must provide either this or execution_id.
663
784
  validation:
664
785
  minLength: 1
786
+ content-type: application/json
665
787
  url: Predict
666
788
  availability: generally-available
667
789
  examples:
@@ -1318,6 +1440,7 @@ types:
1318
1440
  - string
1319
1441
  source:
1320
1442
  openapi: openapi/openapi.yml
1443
+ inline: true
1321
1444
  DeploymentProviderPayloadResponse:
1322
1445
  properties:
1323
1446
  payload: DeploymentProviderPayloadResponsePayload
@@ -11,6 +11,8 @@ service:
11
11
  docs: >-
12
12
  An internal-only endpoint that's subject to breaking changes without
13
13
  notice. Not intended for public use.
14
+ source:
15
+ openapi: openapi/openapi.yml
14
16
  request:
15
17
  name: AdHocExecutePromptStream
16
18
  body:
@@ -26,6 +28,7 @@ service:
26
28
  blocks: list<root.PromptBlock>
27
29
  functions: optional<list<root.FunctionDefinition>>
28
30
  expand_meta: optional<root.AdHocExpandMeta>
31
+ content-type: application/json
29
32
  response-stream:
30
33
  docs: ''
31
34
  type: root.AdHocExecutePromptEvent
@@ -36,6 +39,28 @@ service:
36
39
  - root.BadRequestError
37
40
  - root.ForbiddenError
38
41
  - root.InternalServerError
42
+ examples:
43
+ - request:
44
+ ml_model: ml_model
45
+ input_values:
46
+ - key: key
47
+ type: STRING
48
+ value: value
49
+ input_variables:
50
+ - id: id
51
+ key: key
52
+ type: STRING
53
+ parameters: {}
54
+ blocks:
55
+ - block_type: JINJA
56
+ template: template
57
+ response:
58
+ stream:
59
+ - state: INITIATED
60
+ meta:
61
+ model_name: model_name
62
+ latency: 1
63
+ execution_id: execution_id
39
64
  audiences:
40
65
  - internal
41
66
  source:
@@ -9,6 +9,8 @@ service:
9
9
  method: GET
10
10
  auth: true
11
11
  docs: Retrieve a list of container images for the organization.
12
+ source:
13
+ openapi: openapi/openapi.yml
12
14
  request:
13
15
  name: ContainerImagesListRequest
14
16
  query-parameters:
@@ -49,6 +51,8 @@ service:
49
51
  method: GET
50
52
  auth: true
51
53
  docs: Retrieve a Container Image by its ID or name.
54
+ source:
55
+ openapi: openapi/openapi.yml
52
56
  path-parameters:
53
57
  id:
54
58
  type: string
@@ -81,6 +85,8 @@ service:
81
85
  docs: >-
82
86
  An internal-only endpoint that's subject to breaking changes without
83
87
  notice. Not intended for public use.
88
+ source:
89
+ openapi: openapi/openapi.yml
84
90
  response:
85
91
  docs: ''
86
92
  type: root.DockerServiceToken
@@ -101,6 +107,8 @@ service:
101
107
  docs: >-
102
108
  An internal-only endpoint that's subject to breaking changes without
103
109
  notice. Not intended for public use.
110
+ source:
111
+ openapi: openapi/openapi.yml
104
112
  request:
105
113
  name: PushContainerImageRequest
106
114
  body:
@@ -114,6 +122,7 @@ service:
114
122
  validation:
115
123
  minLength: 1
116
124
  tags: list<string>
125
+ content-type: application/json
117
126
  response:
118
127
  docs: ''
119
128
  type: root.ContainerImageRead
@@ -22,6 +22,8 @@ service:
22
22
  method: GET
23
23
  auth: true
24
24
  docs: Used to list all Prompt Deployments.
25
+ source:
26
+ openapi: openapi/openapi.yml
25
27
  request:
26
28
  name: DeploymentsListRequest
27
29
  query-parameters:
@@ -68,6 +70,8 @@ service:
68
70
  method: GET
69
71
  auth: true
70
72
  docs: Used to retrieve a Prompt Deployment given its ID or name.
73
+ source:
74
+ openapi: openapi/openapi.yml
71
75
  path-parameters:
72
76
  id:
73
77
  type: string
@@ -109,6 +113,8 @@ service:
109
113
  docs: >-
110
114
  Retrieve a specific Deployment History Item by either its UUID or the
111
115
  name of a Release Tag that points to it.
116
+ source:
117
+ openapi: openapi/openapi.yml
112
118
  path-parameters:
113
119
  history_id_or_release_tag:
114
120
  type: string
@@ -150,6 +156,8 @@ service:
150
156
  method: GET
151
157
  auth: true
152
158
  docs: List Release Tags associated with the specified Prompt Deployment
159
+ source:
160
+ openapi: openapi/openapi.yml
153
161
  path-parameters:
154
162
  id:
155
163
  type: string
@@ -195,6 +203,8 @@ service:
195
203
  docs: >-
196
204
  Retrieve a Deployment Release Tag by tag name, associated with a
197
205
  specified Deployment.
206
+ source:
207
+ openapi: openapi/openapi.yml
198
208
  path-parameters:
199
209
  id:
200
210
  type: string
@@ -229,6 +239,8 @@ service:
229
239
  docs: >-
230
240
  Updates an existing Release Tag associated with the specified Prompt
231
241
  Deployment.
242
+ source:
243
+ openapi: openapi/openapi.yml
232
244
  path-parameters:
233
245
  id:
234
246
  type: string
@@ -247,6 +259,7 @@ service:
247
259
  docs: The ID of the Deployment History Item to tag
248
260
  validation:
249
261
  format: uuid
262
+ content-type: application/json
250
263
  response:
251
264
  docs: ''
252
265
  type: root.DeploymentReleaseTagRead
@@ -295,6 +308,8 @@ service:
295
308
 
296
309
  We encourage you to seek advise from Vellum Support before integrating
297
310
  with this API for production use.
311
+ source:
312
+ openapi: openapi/openapi.yml
298
313
  request:
299
314
  name: DeploymentProviderPayloadRequest
300
315
  body:
@@ -326,6 +341,7 @@ service:
326
341
  validation:
327
342
  minLength: 1
328
343
  expand_meta: optional<root.CompilePromptDeploymentExpandMetaRequest>
344
+ content-type: application/json
329
345
  response:
330
346
  docs: ''
331
347
  type: root.DeploymentProviderPayloadResponse
@@ -16,6 +16,8 @@ service:
16
16
  method: GET
17
17
  auth: true
18
18
  docs: Used to retrieve a list of Document Indexes.
19
+ source:
20
+ openapi: openapi/openapi.yml
19
21
  request:
20
22
  name: DocumentIndexesListRequest
21
23
  query-parameters:
@@ -70,6 +72,8 @@ service:
70
72
  method: POST
71
73
  auth: true
72
74
  docs: Creates a new document index.
75
+ source:
76
+ openapi: openapi/openapi.yml
73
77
  request:
74
78
  name: DocumentIndexCreateRequest
75
79
  body:
@@ -110,6 +114,7 @@ service:
110
114
  index
111
115
  validation:
112
116
  format: uuid
117
+ content-type: application/json
113
118
  response:
114
119
  docs: ''
115
120
  type: root.DocumentIndexRead
@@ -209,6 +214,8 @@ service:
209
214
  method: GET
210
215
  auth: true
211
216
  docs: Used to retrieve a Document Index given its ID or name.
217
+ source:
218
+ openapi: openapi/openapi.yml
212
219
  path-parameters:
213
220
  id:
214
221
  type: string
@@ -242,6 +249,8 @@ service:
242
249
  method: PUT
243
250
  auth: true
244
251
  docs: Used to fully update a Document Index given its ID or name.
252
+ source:
253
+ openapi: openapi/openapi.yml
245
254
  path-parameters:
246
255
  id:
247
256
  type: string
@@ -271,6 +280,7 @@ service:
271
280
  * `DEVELOPMENT` - Development
272
281
  * `STAGING` - Staging
273
282
  * `PRODUCTION` - Production
283
+ content-type: application/json
274
284
  response:
275
285
  docs: ''
276
286
  type: root.DocumentIndexRead
@@ -302,6 +312,8 @@ service:
302
312
  method: DELETE
303
313
  auth: true
304
314
  docs: Used to delete a Document Index given its ID or name.
315
+ source:
316
+ openapi: openapi/openapi.yml
305
317
  path-parameters:
306
318
  id:
307
319
  type: string
@@ -318,6 +330,8 @@ service:
318
330
  method: PATCH
319
331
  auth: true
320
332
  docs: Used to partial update a Document Index given its ID or name.
333
+ source:
334
+ openapi: openapi/openapi.yml
321
335
  path-parameters:
322
336
  id:
323
337
  type: string
@@ -347,6 +361,7 @@ service:
347
361
  * `DEVELOPMENT` - Development
348
362
  * `STAGING` - Staging
349
363
  * `PRODUCTION` - Production
364
+ content-type: application/json
350
365
  response:
351
366
  docs: ''
352
367
  type: root.DocumentIndexRead
@@ -377,6 +392,8 @@ service:
377
392
  method: POST
378
393
  auth: true
379
394
  docs: Adds a previously uploaded Document to the specified Document Index.
395
+ source:
396
+ openapi: openapi/openapi.yml
380
397
  path-parameters:
381
398
  document_id:
382
399
  type: string
@@ -404,6 +421,8 @@ service:
404
421
  docs: >-
405
422
  Removes a Document from a Document Index without deleting the Document
406
423
  itself.
424
+ source:
425
+ openapi: openapi/openapi.yml
407
426
  path-parameters:
408
427
  document_id:
409
428
  type: string
@@ -9,6 +9,8 @@ service:
9
9
  method: GET
10
10
  auth: true
11
11
  docs: Used to list documents. Optionally filter on supported fields.
12
+ source:
13
+ openapi: openapi/openapi.yml
12
14
  request:
13
15
  name: DocumentsListRequest
14
16
  query-parameters:
@@ -18,6 +20,8 @@ service:
18
20
  Filter down to only those documents that are included in the
19
21
  specified index. You may provide either the Vellum-generated ID or
20
22
  the unique name of the index specified upon initial creation.
23
+ validation:
24
+ format: uuid
21
25
  limit:
22
26
  type: optional<integer>
23
27
  docs: Number of results to return per page.
@@ -62,6 +66,8 @@ service:
62
66
  docs: >-
63
67
  Retrieve a Document, keying off of either its Vellum-generated ID or its
64
68
  external ID.
69
+ source:
70
+ openapi: openapi/openapi.yml
65
71
  path-parameters:
66
72
  id:
67
73
  type: string
@@ -99,6 +105,8 @@ service:
99
105
  docs: >-
100
106
  Delete a Document, keying off of either its Vellum-generated ID or its
101
107
  external ID.
108
+ source:
109
+ openapi: openapi/openapi.yml
102
110
  path-parameters:
103
111
  id:
104
112
  type: string
@@ -117,6 +125,8 @@ service:
117
125
  docs: >-
118
126
  Update a Document, keying off of either its Vellum-generated ID or its
119
127
  external ID. Particularly useful for updating its metadata.
128
+ source:
129
+ openapi: openapi/openapi.yml
120
130
  path-parameters:
121
131
  id:
122
132
  type: string
@@ -144,6 +154,7 @@ service:
144
154
  docs: >-
145
155
  A JSON object containing any metadata associated with the
146
156
  document that you'd like to filter upon later.
157
+ content-type: application/json
147
158
  response:
148
159
  docs: ''
149
160
  type: root.DocumentRead
@@ -202,6 +213,8 @@ service:
202
213
  - `metadata: dict[str, Any]` - A stringified JSON object containing any
203
214
  metadata associated with the document that you'd like to filter upon
204
215
  later.
216
+ source:
217
+ openapi: openapi/openapi.yml
205
218
  request:
206
219
  name: UploadDocumentBodyRequest
207
220
  body:
@@ -226,7 +239,9 @@ service:
226
239
  validation:
227
240
  minLength: 1
228
241
  maxLength: 1000
229
- contents: file
242
+ contents:
243
+ type: file
244
+ docs: The file contents of the document.
230
245
  keywords:
231
246
  type: optional<list<string>>
232
247
  docs: >-
@@ -16,6 +16,8 @@ service:
16
16
  method: GET
17
17
  auth: false
18
18
  docs: List all folder entities within a specified folder.
19
+ source:
20
+ openapi: openapi/openapi.yml
19
21
  request:
20
22
  name: FolderEntitiesListRequest
21
23
  query-parameters:
@@ -92,6 +94,8 @@ service:
92
94
 
93
95
  Adding an entity to a folder will remove it from any other folders it
94
96
  might have been a member of.
97
+ source:
98
+ openapi: openapi/openapi.yml
95
99
  path-parameters:
96
100
  folder_id:
97
101
  type: string
@@ -117,6 +121,7 @@ service:
117
121
  docs: The ID of the entity you would like to move.
118
122
  validation:
119
123
  format: uuid
124
+ content-type: application/json
120
125
  url: Default
121
126
  availability: pre-release
122
127
  examples:
@@ -11,6 +11,8 @@ service:
11
11
  docs: >-
12
12
  An internal-only endpoint that's subject to breaking changes without
13
13
  notice. Not intended for public use.
14
+ source:
15
+ openapi: openapi/openapi.yml
14
16
  path-parameters:
15
17
  id:
16
18
  type: string
@@ -24,6 +26,7 @@ service:
24
26
  type: optional<string>
25
27
  validation:
26
28
  minLength: 1
29
+ content-type: application/json
27
30
  response:
28
31
  docs: ''
29
32
  type: root.MetricDefinitionExecution
@@ -49,6 +52,8 @@ service:
49
52
  path: /v1/metric-definitions/{id}/history/{history_id_or_release_tag}
50
53
  method: GET
51
54
  auth: true
55
+ source:
56
+ openapi: openapi/openapi.yml
52
57
  path-parameters:
53
58
  history_id_or_release_tag:
54
59
  type: string
@@ -63,6 +68,7 @@ service:
63
68
  docs: ''
64
69
  type: root.MetricDefinitionHistoryItem
65
70
  url: Default
71
+ availability: pre-release
66
72
  examples:
67
73
  - path-parameters:
68
74
  history_id_or_release_tag: history_id_or_release_tag
@@ -87,5 +93,7 @@ service:
87
93
  required: true
88
94
  default:
89
95
  type: STRING
96
+ audiences:
97
+ - internal
90
98
  source:
91
99
  openapi: openapi/openapi.yml
@@ -10,6 +10,8 @@ service:
10
10
  auth: true
11
11
  docs: |
12
12
  Retrieve details about an ML Model
13
+ source:
14
+ openapi: openapi/openapi.yml
13
15
  path-parameters:
14
16
  id:
15
17
  type: string