vellum-ai 0.13.21 → 0.13.22

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 (134) hide show
  1. package/Client.d.ts +10 -0
  2. package/Client.js +63 -10
  3. package/api/client/requests/ExecuteApiRequest.d.ts +17 -0
  4. package/api/client/requests/ExecuteApiRequest.js +5 -0
  5. package/api/client/requests/index.d.ts +1 -0
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/containerImages/client/Client.js +4 -4
  8. package/api/resources/deployments/client/Client.js +7 -7
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.js +5 -5
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/metricDefinitions/client/Client.js +2 -2
  13. package/api/resources/mlModels/client/Client.js +1 -1
  14. package/api/resources/organizations/client/Client.js +1 -1
  15. package/api/resources/sandboxes/client/Client.js +3 -3
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +4 -4
  18. package/api/resources/workflowDeployments/client/Client.js +6 -6
  19. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  20. package/api/resources/workflows/client/Client.js +2 -2
  21. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  22. package/api/resources/workspaces/client/Client.js +1 -1
  23. package/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
  24. package/api/types/ExecuteApiRequestBearerToken.js +5 -0
  25. package/api/types/ExecuteApiRequestBody.d.ts +4 -0
  26. package/api/types/ExecuteApiRequestBody.js +5 -0
  27. package/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
  28. package/api/types/ExecuteApiRequestHeadersValue.js +5 -0
  29. package/api/types/ExecuteApiResponse.d.ts +9 -0
  30. package/api/types/ExecuteApiResponse.js +5 -0
  31. package/api/types/MethodEnum.d.ts +18 -0
  32. package/api/types/MethodEnum.js +13 -0
  33. package/api/types/VellumSecret.d.ts +6 -0
  34. package/api/types/VellumSecret.js +5 -0
  35. package/api/types/index.d.ts +6 -0
  36. package/api/types/index.js +6 -0
  37. package/dist/Client.d.ts +10 -0
  38. package/dist/Client.js +63 -10
  39. package/dist/api/client/requests/ExecuteApiRequest.d.ts +17 -0
  40. package/dist/api/client/requests/ExecuteApiRequest.js +5 -0
  41. package/dist/api/client/requests/index.d.ts +1 -0
  42. package/dist/api/resources/adHoc/client/Client.js +1 -1
  43. package/dist/api/resources/containerImages/client/Client.js +4 -4
  44. package/dist/api/resources/deployments/client/Client.js +7 -7
  45. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  46. package/dist/api/resources/documents/client/Client.js +5 -5
  47. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  48. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  49. package/dist/api/resources/mlModels/client/Client.js +1 -1
  50. package/dist/api/resources/organizations/client/Client.js +1 -1
  51. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  52. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  53. package/dist/api/resources/testSuites/client/Client.js +4 -4
  54. package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
  55. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  56. package/dist/api/resources/workflows/client/Client.js +2 -2
  57. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  58. package/dist/api/resources/workspaces/client/Client.js +1 -1
  59. package/dist/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
  60. package/dist/api/types/ExecuteApiRequestBearerToken.js +5 -0
  61. package/dist/api/types/ExecuteApiRequestBody.d.ts +4 -0
  62. package/dist/api/types/ExecuteApiRequestBody.js +5 -0
  63. package/dist/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
  64. package/dist/api/types/ExecuteApiRequestHeadersValue.js +5 -0
  65. package/dist/api/types/ExecuteApiResponse.d.ts +9 -0
  66. package/dist/api/types/ExecuteApiResponse.js +5 -0
  67. package/dist/api/types/MethodEnum.d.ts +18 -0
  68. package/dist/api/types/MethodEnum.js +13 -0
  69. package/dist/api/types/VellumSecret.d.ts +6 -0
  70. package/dist/api/types/VellumSecret.js +5 -0
  71. package/dist/api/types/index.d.ts +6 -0
  72. package/dist/api/types/index.js +6 -0
  73. package/dist/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
  74. package/dist/serialization/client/requests/ExecuteApiRequest.js +51 -0
  75. package/dist/serialization/client/requests/index.d.ts +1 -0
  76. package/dist/serialization/client/requests/index.js +3 -1
  77. package/dist/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
  78. package/dist/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
  79. package/dist/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
  80. package/dist/serialization/types/ExecuteApiRequestBody.js +44 -0
  81. package/dist/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
  82. package/dist/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
  83. package/dist/serialization/types/ExecuteApiResponse.d.ts +15 -0
  84. package/dist/serialization/types/ExecuteApiResponse.js +46 -0
  85. package/dist/serialization/types/MethodEnum.d.ts +10 -0
  86. package/dist/serialization/types/MethodEnum.js +41 -0
  87. package/dist/serialization/types/VellumSecret.d.ts +12 -0
  88. package/dist/serialization/types/VellumSecret.js +43 -0
  89. package/dist/serialization/types/index.d.ts +6 -0
  90. package/dist/serialization/types/index.js +6 -0
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/package.json +1 -1
  94. package/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
  95. package/serialization/client/requests/ExecuteApiRequest.js +51 -0
  96. package/serialization/client/requests/index.d.ts +1 -0
  97. package/serialization/client/requests/index.js +3 -1
  98. package/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
  99. package/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
  100. package/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
  101. package/serialization/types/ExecuteApiRequestBody.js +44 -0
  102. package/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
  103. package/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
  104. package/serialization/types/ExecuteApiResponse.d.ts +15 -0
  105. package/serialization/types/ExecuteApiResponse.js +46 -0
  106. package/serialization/types/MethodEnum.d.ts +10 -0
  107. package/serialization/types/MethodEnum.js +41 -0
  108. package/serialization/types/VellumSecret.d.ts +12 -0
  109. package/serialization/types/VellumSecret.js +43 -0
  110. package/serialization/types/index.d.ts +6 -0
  111. package/serialization/types/index.js +6 -0
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/.mock/definition/__package__.yml +0 -6819
  115. package/.mock/definition/adHoc.yml +0 -64
  116. package/.mock/definition/api.yml +0 -17
  117. package/.mock/definition/containerImages.yml +0 -148
  118. package/.mock/definition/deployments.yml +0 -372
  119. package/.mock/definition/documentIndexes.yml +0 -448
  120. package/.mock/definition/documents.yml +0 -281
  121. package/.mock/definition/folderEntities.yml +0 -135
  122. package/.mock/definition/metricDefinitions.yml +0 -96
  123. package/.mock/definition/mlModels.yml +0 -36
  124. package/.mock/definition/organizations.yml +0 -29
  125. package/.mock/definition/sandboxes.yml +0 -205
  126. package/.mock/definition/testSuiteRuns.yml +0 -163
  127. package/.mock/definition/testSuites.yml +0 -192
  128. package/.mock/definition/workflowDeployments.yml +0 -299
  129. package/.mock/definition/workflowSandboxes.yml +0 -94
  130. package/.mock/definition/workflows.yml +0 -80
  131. package/.mock/definition/workspaceSecrets.yml +0 -78
  132. package/.mock/definition/workspaces.yml +0 -29
  133. package/.mock/fern.config.json +0 -4
  134. package/.mock/openapi/openapi.yml +0 -12271
@@ -1,448 +0,0 @@
1
- types:
2
- DocumentIndexesListRequestStatus:
3
- enum:
4
- - ACTIVE
5
- - ARCHIVED
6
- source:
7
- openapi: openapi/openapi.yml
8
- imports:
9
- root: __package__.yml
10
- service:
11
- auth: false
12
- base-path: ''
13
- endpoints:
14
- list:
15
- path: /v1/document-indexes
16
- method: GET
17
- auth: true
18
- docs: Used to retrieve a list of Document Indexes.
19
- source:
20
- openapi: openapi/openapi.yml
21
- request:
22
- name: DocumentIndexesListRequest
23
- query-parameters:
24
- limit:
25
- type: optional<integer>
26
- docs: Number of results to return per page.
27
- offset:
28
- type: optional<integer>
29
- docs: The initial index from which to return the results.
30
- ordering:
31
- type: optional<string>
32
- docs: Which field to use when ordering the results.
33
- search:
34
- type: optional<string>
35
- docs: Search for document indices by name or label
36
- status:
37
- type: optional<DocumentIndexesListRequestStatus>
38
- docs: >-
39
- Filter down to only document indices that have a status matching
40
- the status specified
41
-
42
-
43
- * `ACTIVE` - Active
44
-
45
- * `ARCHIVED` - Archived
46
- response:
47
- docs: ''
48
- type: root.PaginatedDocumentIndexReadList
49
- url: Default
50
- availability: pre-release
51
- examples:
52
- - response:
53
- body:
54
- count: 123
55
- next: http://api.example.org/accounts/?offset=400&limit=100
56
- previous: http://api.example.org/accounts/?offset=200&limit=100
57
- results:
58
- - id: id
59
- created: '2024-01-15T09:30:00Z'
60
- label: label
61
- name: name
62
- status: ACTIVE
63
- environment: DEVELOPMENT
64
- indexing_config:
65
- vectorizer:
66
- config: {}
67
- model_name: text-embedding-3-small
68
- audiences:
69
- - customers
70
- create:
71
- path: /v1/document-indexes
72
- method: POST
73
- auth: true
74
- docs: Creates a new document index.
75
- source:
76
- openapi: openapi/openapi.yml
77
- request:
78
- name: DocumentIndexCreateRequest
79
- body:
80
- properties:
81
- label:
82
- type: string
83
- docs: A human-readable label for the document index
84
- validation:
85
- minLength: 1
86
- maxLength: 150
87
- name:
88
- type: string
89
- docs: A name that uniquely identifies this index within its workspace
90
- validation:
91
- minLength: 1
92
- maxLength: 150
93
- status:
94
- type: optional<root.EntityStatus>
95
- docs: |-
96
- The current status of the document index
97
-
98
- * `ACTIVE` - Active
99
- * `ARCHIVED` - Archived
100
- environment:
101
- type: optional<root.EnvironmentEnum>
102
- docs: |-
103
- The environment this document index is used in
104
-
105
- * `DEVELOPMENT` - Development
106
- * `STAGING` - Staging
107
- * `PRODUCTION` - Production
108
- indexing_config: root.DocumentIndexIndexingConfigRequest
109
- copy_documents_from_index_id:
110
- type: optional<string>
111
- docs: >-
112
- Optionally specify the id of a document index from which you'd
113
- like to copy and re-index its documents into this newly created
114
- index
115
- validation:
116
- format: uuid
117
- content-type: application/json
118
- response:
119
- docs: ''
120
- type: root.DocumentIndexRead
121
- url: Default
122
- availability: pre-release
123
- examples:
124
- - name: Index Using Instructor Model
125
- request:
126
- label: My Document Index
127
- name: my-document-index
128
- indexing_config:
129
- vectorizer:
130
- model_name: hkunlp/instructor-xl
131
- config:
132
- instruction_domain: ''
133
- instruction_query_text_type: plain_text
134
- instruction_document_text_type: plain_text
135
- chunking:
136
- chunker_name: sentence-chunker
137
- chunker_config:
138
- character_limit: 1000
139
- min_overlap_ratio: 0.5
140
- response:
141
- body:
142
- id: id
143
- created: '2024-01-15T09:30:00Z'
144
- label: label
145
- name: name
146
- status: ACTIVE
147
- environment: DEVELOPMENT
148
- indexing_config:
149
- vectorizer:
150
- config: {}
151
- model_name: text-embedding-3-small
152
- chunking:
153
- chunker_name: reducto-chunker
154
- - name: Index Using a Sentence Transformers Model
155
- request:
156
- label: My Document Index
157
- name: my-document-index
158
- indexing_config:
159
- vectorizer:
160
- model_name: sentence-transformers/multi-qa-mpnet-base-dot-v1
161
- config:
162
- key: value
163
- chunking:
164
- chunker_name: sentence-chunker
165
- chunker_config:
166
- character_limit: 1000
167
- min_overlap_ratio: 0.5
168
- response:
169
- body:
170
- id: id
171
- created: '2024-01-15T09:30:00Z'
172
- label: label
173
- name: name
174
- status: ACTIVE
175
- environment: DEVELOPMENT
176
- indexing_config:
177
- vectorizer:
178
- config: {}
179
- model_name: text-embedding-3-small
180
- chunking:
181
- chunker_name: reducto-chunker
182
- - name: Index Using OpenAI Model
183
- request:
184
- label: My Document Index
185
- name: my-document-index
186
- indexing_config:
187
- vectorizer:
188
- config:
189
- add_openai_api_key: true
190
- model_name: text-embedding-ada-002
191
- chunking:
192
- chunker_name: sentence-chunker
193
- chunker_config:
194
- character_limit: 1000
195
- min_overlap_ratio: 0.5
196
- response:
197
- body:
198
- id: id
199
- created: '2024-01-15T09:30:00Z'
200
- label: label
201
- name: name
202
- status: ACTIVE
203
- environment: DEVELOPMENT
204
- indexing_config:
205
- vectorizer:
206
- config: {}
207
- model_name: text-embedding-3-small
208
- chunking:
209
- chunker_name: reducto-chunker
210
- audiences:
211
- - customers
212
- retrieve:
213
- path: /v1/document-indexes/{id}
214
- method: GET
215
- auth: true
216
- docs: Used to retrieve a Document Index given its ID or name.
217
- source:
218
- openapi: openapi/openapi.yml
219
- path-parameters:
220
- id:
221
- type: string
222
- docs: Either the Document Index's ID or its unique name
223
- response:
224
- docs: ''
225
- type: root.DocumentIndexRead
226
- url: Default
227
- availability: pre-release
228
- examples:
229
- - path-parameters:
230
- id: id
231
- response:
232
- body:
233
- id: id
234
- created: '2024-01-15T09:30:00Z'
235
- label: label
236
- name: name
237
- status: ACTIVE
238
- environment: DEVELOPMENT
239
- indexing_config:
240
- vectorizer:
241
- config: {}
242
- model_name: text-embedding-3-small
243
- chunking:
244
- chunker_name: reducto-chunker
245
- audiences:
246
- - customers
247
- update:
248
- path: /v1/document-indexes/{id}
249
- method: PUT
250
- auth: true
251
- docs: Used to fully update a Document Index given its ID or name.
252
- source:
253
- openapi: openapi/openapi.yml
254
- path-parameters:
255
- id:
256
- type: string
257
- docs: Either the Document Index's ID or its unique name
258
- request:
259
- name: DocumentIndexUpdateRequest
260
- body:
261
- properties:
262
- label:
263
- type: string
264
- docs: A human-readable label for the document index
265
- validation:
266
- minLength: 1
267
- maxLength: 150
268
- status:
269
- type: optional<root.EntityStatus>
270
- docs: |-
271
- The current status of the document index
272
-
273
- * `ACTIVE` - Active
274
- * `ARCHIVED` - Archived
275
- environment:
276
- type: optional<root.EnvironmentEnum>
277
- docs: |-
278
- The environment this document index is used in
279
-
280
- * `DEVELOPMENT` - Development
281
- * `STAGING` - Staging
282
- * `PRODUCTION` - Production
283
- content-type: application/json
284
- response:
285
- docs: ''
286
- type: root.DocumentIndexRead
287
- url: Default
288
- availability: pre-release
289
- examples:
290
- - path-parameters:
291
- id: id
292
- request:
293
- label: label
294
- response:
295
- body:
296
- id: id
297
- created: '2024-01-15T09:30:00Z'
298
- label: label
299
- name: name
300
- status: ACTIVE
301
- environment: DEVELOPMENT
302
- indexing_config:
303
- vectorizer:
304
- config: {}
305
- model_name: text-embedding-3-small
306
- chunking:
307
- chunker_name: reducto-chunker
308
- audiences:
309
- - customers
310
- destroy:
311
- path: /v1/document-indexes/{id}
312
- method: DELETE
313
- auth: true
314
- docs: Used to delete a Document Index given its ID or name.
315
- source:
316
- openapi: openapi/openapi.yml
317
- path-parameters:
318
- id:
319
- type: string
320
- docs: Either the Document Index's ID or its unique name
321
- url: Documents
322
- availability: pre-release
323
- examples:
324
- - path-parameters:
325
- id: id
326
- audiences:
327
- - customers
328
- partialUpdate:
329
- path: /v1/document-indexes/{id}
330
- method: PATCH
331
- auth: true
332
- docs: Used to partial update a Document Index given its ID or name.
333
- source:
334
- openapi: openapi/openapi.yml
335
- path-parameters:
336
- id:
337
- type: string
338
- docs: Either the Document Index's ID or its unique name
339
- request:
340
- name: PatchedDocumentIndexUpdateRequest
341
- body:
342
- properties:
343
- label:
344
- type: optional<string>
345
- docs: A human-readable label for the document index
346
- validation:
347
- minLength: 1
348
- maxLength: 150
349
- status:
350
- type: optional<root.EntityStatus>
351
- docs: |-
352
- The current status of the document index
353
-
354
- * `ACTIVE` - Active
355
- * `ARCHIVED` - Archived
356
- environment:
357
- type: optional<root.EnvironmentEnum>
358
- docs: |-
359
- The environment this document index is used in
360
-
361
- * `DEVELOPMENT` - Development
362
- * `STAGING` - Staging
363
- * `PRODUCTION` - Production
364
- content-type: application/json
365
- response:
366
- docs: ''
367
- type: root.DocumentIndexRead
368
- url: Default
369
- availability: pre-release
370
- examples:
371
- - path-parameters:
372
- id: id
373
- request: {}
374
- response:
375
- body:
376
- id: id
377
- created: '2024-01-15T09:30:00Z'
378
- label: label
379
- name: name
380
- status: ACTIVE
381
- environment: DEVELOPMENT
382
- indexing_config:
383
- vectorizer:
384
- config: {}
385
- model_name: text-embedding-3-small
386
- chunking:
387
- chunker_name: reducto-chunker
388
- audiences:
389
- - customers
390
- add_document:
391
- path: /v1/document-indexes/{id}/documents/{document_id}
392
- method: POST
393
- auth: true
394
- docs: Adds a previously uploaded Document to the specified Document Index.
395
- source:
396
- openapi: openapi/openapi.yml
397
- path-parameters:
398
- document_id:
399
- type: string
400
- docs: >-
401
- Either the Vellum-generated ID or the originally supplied
402
- external_id that uniquely identifies the Document you'd like to add.
403
- id:
404
- type: string
405
- docs: >-
406
- Either the Vellum-generated ID or the originally specified name that
407
- uniquely identifies the Document Index to which you'd like to add
408
- the Document.
409
- url: Default
410
- availability: pre-release
411
- examples:
412
- - path-parameters:
413
- document_id: document_id
414
- id: id
415
- audiences:
416
- - customers
417
- remove_document:
418
- path: /v1/document-indexes/{id}/documents/{document_id}
419
- method: DELETE
420
- auth: true
421
- docs: >-
422
- Removes a Document from a Document Index without deleting the Document
423
- itself.
424
- source:
425
- openapi: openapi/openapi.yml
426
- path-parameters:
427
- document_id:
428
- type: string
429
- docs: >-
430
- Either the Vellum-generated ID or the originally supplied
431
- external_id that uniquely identifies the Document you'd like to
432
- remove.
433
- id:
434
- type: string
435
- docs: >-
436
- Either the Vellum-generated ID or the originally specified name that
437
- uniquely identifies the Document Index from which you'd like to
438
- remove a Document.
439
- url: Documents
440
- availability: pre-release
441
- examples:
442
- - path-parameters:
443
- document_id: document_id
444
- id: id
445
- audiences:
446
- - customers
447
- source:
448
- openapi: openapi/openapi.yml