@deepraxis/sdk 0.1.0-dev.5e0f28e → 0.1.0-dev.6898104
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.
- package/METHODS.md +15 -1
- package/dist/core/client.d.ts +5 -1
- package/dist/core/client.js +3 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +28 -4
- package/dist/generated/sdk.gen.js +72 -3
- package/dist/generated/types.gen.d.ts +280 -19
- package/dist/helpers/file-upload.d.ts +24 -0
- package/dist/helpers/file-upload.js +113 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +122 -4
- package/dist/operations.generated.js +150 -4
- package/dist/resources.generated.d.ts +8 -0
- package/dist/resources.generated.js +8 -0
- package/package.json +1 -1
|
@@ -6149,7 +6149,7 @@ export declare const operations: readonly [{
|
|
|
6149
6149
|
readonly resource: "file.files";
|
|
6150
6150
|
readonly method: "create";
|
|
6151
6151
|
readonly summary: "Upload file";
|
|
6152
|
-
readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most
|
|
6152
|
+
readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.";
|
|
6153
6153
|
readonly http: "POST";
|
|
6154
6154
|
readonly path: "/file/v1/files";
|
|
6155
6155
|
readonly streaming: "no";
|
|
@@ -6163,7 +6163,7 @@ export declare const operations: readonly [{
|
|
|
6163
6163
|
readonly name: "file";
|
|
6164
6164
|
readonly type: "string";
|
|
6165
6165
|
readonly required: true;
|
|
6166
|
-
readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most
|
|
6166
|
+
readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.";
|
|
6167
6167
|
}, {
|
|
6168
6168
|
readonly name: "purpose";
|
|
6169
6169
|
readonly type: "string";
|
|
@@ -6200,7 +6200,7 @@ export declare const operations: readonly [{
|
|
|
6200
6200
|
readonly resource: "file.files";
|
|
6201
6201
|
readonly method: "retrieve";
|
|
6202
6202
|
readonly summary: "Retrieve file";
|
|
6203
|
-
readonly description: "Retrieve metadata for a live file owned by your tenant. Use its
|
|
6203
|
+
readonly description: "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.";
|
|
6204
6204
|
readonly http: "GET";
|
|
6205
6205
|
readonly path: "/file/v1/files/{file_id}";
|
|
6206
6206
|
readonly streaming: "no";
|
|
@@ -6214,7 +6214,7 @@ export declare const operations: readonly [{
|
|
|
6214
6214
|
readonly resource: "file.files";
|
|
6215
6215
|
readonly method: "retrieveContent";
|
|
6216
6216
|
readonly summary: "Retrieve file content";
|
|
6217
|
-
readonly description: "Download the original bytes of a live file owned by your tenant. Supply its
|
|
6217
|
+
readonly description: "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.";
|
|
6218
6218
|
readonly http: "GET";
|
|
6219
6219
|
readonly path: "/file/v1/files/{file_id}/content";
|
|
6220
6220
|
readonly streaming: "no";
|
|
@@ -6224,6 +6224,124 @@ export declare const operations: readonly [{
|
|
|
6224
6224
|
readonly sdkName: "file_id";
|
|
6225
6225
|
}];
|
|
6226
6226
|
readonly query: readonly [];
|
|
6227
|
+
}, {
|
|
6228
|
+
readonly resource: "file.uploads";
|
|
6229
|
+
readonly method: "create";
|
|
6230
|
+
readonly summary: "Create an upload";
|
|
6231
|
+
readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, only user_data, assistants and vision are accepted. The API accepts up to 8000000000 bytes; the Console and SDK uploadFile helper cap files at 2 GiB. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.";
|
|
6232
|
+
readonly http: "POST";
|
|
6233
|
+
readonly path: "/file/v1/uploads";
|
|
6234
|
+
readonly streaming: "no";
|
|
6235
|
+
readonly pagination: false;
|
|
6236
|
+
readonly pathParams: readonly [];
|
|
6237
|
+
readonly query: readonly [];
|
|
6238
|
+
readonly body: {
|
|
6239
|
+
readonly required: true;
|
|
6240
|
+
readonly fields: readonly [{
|
|
6241
|
+
readonly name: "bytes";
|
|
6242
|
+
readonly type: "integer";
|
|
6243
|
+
readonly required: true;
|
|
6244
|
+
readonly description: "Exact complete file length in bytes, from 1 through 8000000000; the sum of completed parts must match.";
|
|
6245
|
+
}, {
|
|
6246
|
+
readonly name: "filename";
|
|
6247
|
+
readonly type: "string";
|
|
6248
|
+
readonly required: true;
|
|
6249
|
+
readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
|
|
6250
|
+
}, {
|
|
6251
|
+
readonly name: "mime_type";
|
|
6252
|
+
readonly type: "string";
|
|
6253
|
+
readonly required: true;
|
|
6254
|
+
readonly description: "Declared MIME type; validated against the assembled content.";
|
|
6255
|
+
}, {
|
|
6256
|
+
readonly name: "purpose";
|
|
6257
|
+
readonly type: "string";
|
|
6258
|
+
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
6259
|
+
readonly required: true;
|
|
6260
|
+
readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
|
|
6261
|
+
}, {
|
|
6262
|
+
readonly name: "expires_after";
|
|
6263
|
+
readonly type: "object";
|
|
6264
|
+
readonly required: false;
|
|
6265
|
+
readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
|
|
6266
|
+
}, {
|
|
6267
|
+
readonly name: "part_size";
|
|
6268
|
+
readonly type: "integer";
|
|
6269
|
+
readonly required: false;
|
|
6270
|
+
readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
|
|
6271
|
+
}];
|
|
6272
|
+
};
|
|
6273
|
+
}, {
|
|
6274
|
+
readonly resource: "file.uploads";
|
|
6275
|
+
readonly method: "cancel";
|
|
6276
|
+
readonly summary: "Cancel an upload";
|
|
6277
|
+
readonly description: "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.";
|
|
6278
|
+
readonly http: "POST";
|
|
6279
|
+
readonly path: "/file/v1/uploads/{upload_id}/cancel";
|
|
6280
|
+
readonly streaming: "no";
|
|
6281
|
+
readonly pagination: false;
|
|
6282
|
+
readonly pathParams: readonly [{
|
|
6283
|
+
readonly name: "upload_id";
|
|
6284
|
+
readonly sdkName: "upload_id";
|
|
6285
|
+
}];
|
|
6286
|
+
readonly query: readonly [];
|
|
6287
|
+
}, {
|
|
6288
|
+
readonly resource: "file.uploads";
|
|
6289
|
+
readonly method: "complete";
|
|
6290
|
+
readonly summary: "Complete an upload";
|
|
6291
|
+
readonly description: "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.";
|
|
6292
|
+
readonly http: "POST";
|
|
6293
|
+
readonly path: "/file/v1/uploads/{upload_id}/complete";
|
|
6294
|
+
readonly streaming: "no";
|
|
6295
|
+
readonly pagination: false;
|
|
6296
|
+
readonly pathParams: readonly [{
|
|
6297
|
+
readonly name: "upload_id";
|
|
6298
|
+
readonly sdkName: "upload_id";
|
|
6299
|
+
}];
|
|
6300
|
+
readonly query: readonly [];
|
|
6301
|
+
readonly body: {
|
|
6302
|
+
readonly required: true;
|
|
6303
|
+
readonly fields: readonly [{
|
|
6304
|
+
readonly name: "part_ids";
|
|
6305
|
+
readonly type: "array";
|
|
6306
|
+
readonly itemType: "string";
|
|
6307
|
+
readonly required: true;
|
|
6308
|
+
readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
|
|
6309
|
+
}, {
|
|
6310
|
+
readonly name: "md5";
|
|
6311
|
+
readonly type: "string";
|
|
6312
|
+
readonly required: false;
|
|
6313
|
+
readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
|
|
6314
|
+
}];
|
|
6315
|
+
};
|
|
6316
|
+
}, {
|
|
6317
|
+
readonly resource: "file.uploads.parts";
|
|
6318
|
+
readonly method: "create";
|
|
6319
|
+
readonly summary: "Add an upload part";
|
|
6320
|
+
readonly description: "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.";
|
|
6321
|
+
readonly http: "POST";
|
|
6322
|
+
readonly path: "/file/v1/uploads/{upload_id}/parts";
|
|
6323
|
+
readonly streaming: "no";
|
|
6324
|
+
readonly pagination: false;
|
|
6325
|
+
readonly multipart: true;
|
|
6326
|
+
readonly pathParams: readonly [{
|
|
6327
|
+
readonly name: "upload_id";
|
|
6328
|
+
readonly sdkName: "upload_id";
|
|
6329
|
+
}];
|
|
6330
|
+
readonly query: readonly [{
|
|
6331
|
+
readonly name: "part_number";
|
|
6332
|
+
readonly type: "integer";
|
|
6333
|
+
readonly required: false;
|
|
6334
|
+
readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
|
|
6335
|
+
}];
|
|
6336
|
+
readonly body: {
|
|
6337
|
+
readonly required: true;
|
|
6338
|
+
readonly fields: readonly [{
|
|
6339
|
+
readonly name: "data";
|
|
6340
|
+
readonly type: "string";
|
|
6341
|
+
readonly required: true;
|
|
6342
|
+
readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
|
|
6343
|
+
}];
|
|
6344
|
+
};
|
|
6227
6345
|
}, {
|
|
6228
6346
|
readonly resource: "knowledge.vectorStores";
|
|
6229
6347
|
readonly method: "list";
|
|
@@ -7629,7 +7629,7 @@ export const operations = [
|
|
|
7629
7629
|
"resource": "file.files",
|
|
7630
7630
|
"method": "create",
|
|
7631
7631
|
"summary": "Upload file",
|
|
7632
|
-
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most
|
|
7632
|
+
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.",
|
|
7633
7633
|
"http": "POST",
|
|
7634
7634
|
"path": "/file/v1/files",
|
|
7635
7635
|
"streaming": "no",
|
|
@@ -7644,7 +7644,7 @@ export const operations = [
|
|
|
7644
7644
|
"name": "file",
|
|
7645
7645
|
"type": "string",
|
|
7646
7646
|
"required": true,
|
|
7647
|
-
"description": "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most
|
|
7647
|
+
"description": "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type."
|
|
7648
7648
|
},
|
|
7649
7649
|
{
|
|
7650
7650
|
"name": "purpose",
|
|
@@ -7693,7 +7693,7 @@ export const operations = [
|
|
|
7693
7693
|
"resource": "file.files",
|
|
7694
7694
|
"method": "retrieve",
|
|
7695
7695
|
"summary": "Retrieve file",
|
|
7696
|
-
"description": "Retrieve metadata for a live file owned by your tenant. Use its
|
|
7696
|
+
"description": "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.",
|
|
7697
7697
|
"http": "GET",
|
|
7698
7698
|
"path": "/file/v1/files/{file_id}",
|
|
7699
7699
|
"streaming": "no",
|
|
@@ -7710,7 +7710,7 @@ export const operations = [
|
|
|
7710
7710
|
"resource": "file.files",
|
|
7711
7711
|
"method": "retrieveContent",
|
|
7712
7712
|
"summary": "Retrieve file content",
|
|
7713
|
-
"description": "Download the original bytes of a live file owned by your tenant. Supply its
|
|
7713
|
+
"description": "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.",
|
|
7714
7714
|
"http": "GET",
|
|
7715
7715
|
"path": "/file/v1/files/{file_id}/content",
|
|
7716
7716
|
"streaming": "no",
|
|
@@ -7723,6 +7723,152 @@ export const operations = [
|
|
|
7723
7723
|
],
|
|
7724
7724
|
"query": []
|
|
7725
7725
|
},
|
|
7726
|
+
{
|
|
7727
|
+
"resource": "file.uploads",
|
|
7728
|
+
"method": "create",
|
|
7729
|
+
"summary": "Create an upload",
|
|
7730
|
+
"description": "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, only user_data, assistants and vision are accepted. The API accepts up to 8000000000 bytes; the Console and SDK uploadFile helper cap files at 2 GiB. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
|
|
7731
|
+
"http": "POST",
|
|
7732
|
+
"path": "/file/v1/uploads",
|
|
7733
|
+
"streaming": "no",
|
|
7734
|
+
"pagination": false,
|
|
7735
|
+
"pathParams": [],
|
|
7736
|
+
"query": [],
|
|
7737
|
+
"body": {
|
|
7738
|
+
"required": true,
|
|
7739
|
+
"fields": [
|
|
7740
|
+
{
|
|
7741
|
+
"name": "bytes",
|
|
7742
|
+
"type": "integer",
|
|
7743
|
+
"required": true,
|
|
7744
|
+
"description": "Exact complete file length in bytes, from 1 through 8000000000; the sum of completed parts must match."
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
"name": "filename",
|
|
7748
|
+
"type": "string",
|
|
7749
|
+
"required": true,
|
|
7750
|
+
"description": "Filename for the resulting file, at most 255 UTF-8 bytes."
|
|
7751
|
+
},
|
|
7752
|
+
{
|
|
7753
|
+
"name": "mime_type",
|
|
7754
|
+
"type": "string",
|
|
7755
|
+
"required": true,
|
|
7756
|
+
"description": "Declared MIME type; validated against the assembled content."
|
|
7757
|
+
},
|
|
7758
|
+
{
|
|
7759
|
+
"name": "purpose",
|
|
7760
|
+
"type": "string",
|
|
7761
|
+
"enum": [
|
|
7762
|
+
"user_data",
|
|
7763
|
+
"assistants",
|
|
7764
|
+
"vision"
|
|
7765
|
+
],
|
|
7766
|
+
"required": true,
|
|
7767
|
+
"description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
"name": "expires_after",
|
|
7771
|
+
"type": "object",
|
|
7772
|
+
"required": false,
|
|
7773
|
+
"description": "Optional expiry policy for the resulting file; omission retains the file until deletion."
|
|
7774
|
+
},
|
|
7775
|
+
{
|
|
7776
|
+
"name": "part_size",
|
|
7777
|
+
"type": "integer",
|
|
7778
|
+
"required": false,
|
|
7779
|
+
"description": "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts."
|
|
7780
|
+
}
|
|
7781
|
+
]
|
|
7782
|
+
}
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
"resource": "file.uploads",
|
|
7786
|
+
"method": "cancel",
|
|
7787
|
+
"summary": "Cancel an upload",
|
|
7788
|
+
"description": "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.",
|
|
7789
|
+
"http": "POST",
|
|
7790
|
+
"path": "/file/v1/uploads/{upload_id}/cancel",
|
|
7791
|
+
"streaming": "no",
|
|
7792
|
+
"pagination": false,
|
|
7793
|
+
"pathParams": [
|
|
7794
|
+
{
|
|
7795
|
+
"name": "upload_id",
|
|
7796
|
+
"sdkName": "upload_id"
|
|
7797
|
+
}
|
|
7798
|
+
],
|
|
7799
|
+
"query": []
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
"resource": "file.uploads",
|
|
7803
|
+
"method": "complete",
|
|
7804
|
+
"summary": "Complete an upload",
|
|
7805
|
+
"description": "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.",
|
|
7806
|
+
"http": "POST",
|
|
7807
|
+
"path": "/file/v1/uploads/{upload_id}/complete",
|
|
7808
|
+
"streaming": "no",
|
|
7809
|
+
"pagination": false,
|
|
7810
|
+
"pathParams": [
|
|
7811
|
+
{
|
|
7812
|
+
"name": "upload_id",
|
|
7813
|
+
"sdkName": "upload_id"
|
|
7814
|
+
}
|
|
7815
|
+
],
|
|
7816
|
+
"query": [],
|
|
7817
|
+
"body": {
|
|
7818
|
+
"required": true,
|
|
7819
|
+
"fields": [
|
|
7820
|
+
{
|
|
7821
|
+
"name": "part_ids",
|
|
7822
|
+
"type": "array",
|
|
7823
|
+
"itemType": "string",
|
|
7824
|
+
"required": true,
|
|
7825
|
+
"description": "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order."
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
"name": "md5",
|
|
7829
|
+
"type": "string",
|
|
7830
|
+
"required": false,
|
|
7831
|
+
"description": "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly."
|
|
7832
|
+
}
|
|
7833
|
+
]
|
|
7834
|
+
}
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
"resource": "file.uploads.parts",
|
|
7838
|
+
"method": "create",
|
|
7839
|
+
"summary": "Add an upload part",
|
|
7840
|
+
"description": "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.",
|
|
7841
|
+
"http": "POST",
|
|
7842
|
+
"path": "/file/v1/uploads/{upload_id}/parts",
|
|
7843
|
+
"streaming": "no",
|
|
7844
|
+
"pagination": false,
|
|
7845
|
+
"multipart": true,
|
|
7846
|
+
"pathParams": [
|
|
7847
|
+
{
|
|
7848
|
+
"name": "upload_id",
|
|
7849
|
+
"sdkName": "upload_id"
|
|
7850
|
+
}
|
|
7851
|
+
],
|
|
7852
|
+
"query": [
|
|
7853
|
+
{
|
|
7854
|
+
"name": "part_number",
|
|
7855
|
+
"type": "integer",
|
|
7856
|
+
"required": false,
|
|
7857
|
+
"description": "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads."
|
|
7858
|
+
}
|
|
7859
|
+
],
|
|
7860
|
+
"body": {
|
|
7861
|
+
"required": true,
|
|
7862
|
+
"fields": [
|
|
7863
|
+
{
|
|
7864
|
+
"name": "data",
|
|
7865
|
+
"type": "string",
|
|
7866
|
+
"required": true,
|
|
7867
|
+
"description": "Raw bytes of this part, nonempty and at most 64000000 bytes."
|
|
7868
|
+
}
|
|
7869
|
+
]
|
|
7870
|
+
}
|
|
7871
|
+
},
|
|
7726
7872
|
{
|
|
7727
7873
|
"resource": "knowledge.vectorStores",
|
|
7728
7874
|
"method": "list",
|
|
@@ -3581,6 +3581,14 @@ export declare function createFile(transport: Transport): {
|
|
|
3581
3581
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileData>) => Promise<Types.OwnFileOpenAiFile>;
|
|
3582
3582
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileContentData>) => Promise<Blob | File>;
|
|
3583
3583
|
};
|
|
3584
|
+
uploads: {
|
|
3585
|
+
cancel: (options: import("./core/transport.js").CallOptions<Types.FileCancelUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3586
|
+
complete: (options: import("./core/transport.js").CallOptions<Types.FileCompleteUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3587
|
+
create: (options: import("./core/transport.js").CallOptions<Types.FileCreateUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3588
|
+
parts: {
|
|
3589
|
+
create: (options: import("./core/transport.js").CallOptions<Types.FileAddUploadPartData>) => Promise<Types.OwnFilePraxisUploadPart>;
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3584
3592
|
};
|
|
3585
3593
|
export declare function createKnowledge(transport: Transport): {
|
|
3586
3594
|
vectorStores: {
|
|
@@ -400,6 +400,14 @@ export function createFile(transport) {
|
|
|
400
400
|
retrieve: bind(transport, sdk.fileRetrieveFile),
|
|
401
401
|
retrieveContent: bind(transport, sdk.fileRetrieveFileContent),
|
|
402
402
|
},
|
|
403
|
+
uploads: {
|
|
404
|
+
cancel: bind(transport, sdk.fileCancelUpload),
|
|
405
|
+
complete: bind(transport, sdk.fileCompleteUpload),
|
|
406
|
+
create: bind(transport, sdk.fileCreateUpload),
|
|
407
|
+
parts: {
|
|
408
|
+
create: bind(transport, options => sdk.fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
409
|
+
},
|
|
410
|
+
},
|
|
403
411
|
};
|
|
404
412
|
}
|
|
405
413
|
export function createKnowledge(transport) {
|