|
2994 | 2994 | "folder_id": null, |
2995 | 2995 | "include_content": false, |
2996 | 2996 | "include_name": false, |
2997 | | - "item_id": null, |
2998 | | - "max_fragment_size": null, |
2999 | | - "max_fragments": null, |
3000 | 2997 | "max_pages": null, |
3001 | 2998 | "mime": null, |
3002 | | - "modified": null, |
3003 | 2999 | "neural": false, |
3004 | 3000 | "offset": null, |
3005 | 3001 | "pages_offset": null, |
|
3072 | 3068 | "name": { |
3073 | 3069 | "type": "string", |
3074 | 3070 | "description": "Name for the folder", |
| 3071 | + "maxLength": 255, |
3075 | 3072 | "minLength": 1 |
3076 | 3073 | } |
3077 | 3074 | } |
|
3093 | 3090 | "name": { |
3094 | 3091 | "type": "string", |
3095 | 3092 | "description": "Name for the link", |
| 3093 | + "maxLength": 255, |
3096 | 3094 | "minLength": 1 |
3097 | 3095 | }, |
3098 | 3096 | "value": { |
|
3112 | 3110 | "mime" |
3113 | 3111 | ], |
3114 | 3112 | "properties": { |
| 3113 | + "disable_mime_sniffing": { |
| 3114 | + "type": [ |
| 3115 | + "boolean", |
| 3116 | + "null" |
| 3117 | + ], |
| 3118 | + "description": "Whether to disable mime sniffing for the file. When false/not specified\nif a application/octet-stream mime type is provided the file name\nwill be used to attempt to determine the real mime type" |
| 3119 | + }, |
3115 | 3120 | "folder_id": { |
3116 | 3121 | "type": "string", |
3117 | 3122 | "format": "uuid", |
|
3124 | 3129 | "name": { |
3125 | 3130 | "type": "string", |
3126 | 3131 | "description": "Name of the file being uploaded", |
| 3132 | + "maxLength": 255, |
3127 | 3133 | "minLength": 1 |
3128 | 3134 | }, |
3129 | 3135 | "parent_id": { |
|
3175 | 3181 | "type": "object", |
3176 | 3182 | "description": "Response to an options request", |
3177 | 3183 | "required": [ |
3178 | | - "allowed_mime_types", |
3179 | 3184 | "max_file_size" |
3180 | 3185 | ], |
3181 | 3186 | "properties": { |
3182 | | - "allowed_mime_types": { |
3183 | | - "type": "array", |
3184 | | - "items": { |
3185 | | - "type": "string" |
3186 | | - }, |
3187 | | - "description": "List of allowed mime types for uploading" |
3188 | | - }, |
3189 | 3187 | "max_file_size": { |
3190 | 3188 | "type": "integer", |
3191 | 3189 | "description": "Max allowed upload file size in bytes", |
|
3785 | 3783 | "created_at": { |
3786 | 3784 | "type": "string", |
3787 | 3785 | "format": "date-time", |
3788 | | - "description": "When the file was created" |
| 3786 | + "description": "When the link was created" |
3789 | 3787 | }, |
3790 | 3788 | "created_by": { |
3791 | 3789 | "oneOf": [ |
|
3794 | 3792 | }, |
3795 | 3793 | { |
3796 | 3794 | "$ref": "#/components/schemas/User", |
3797 | | - "description": "User who created the file" |
| 3795 | + "description": "User who created the link" |
3798 | 3796 | } |
3799 | 3797 | ] |
3800 | 3798 | }, |
|
3806 | 3804 | "id": { |
3807 | 3805 | "type": "string", |
3808 | 3806 | "format": "uuid", |
3809 | | - "description": "Unique identifier for the file" |
| 3807 | + "description": "Unique identifier for the link" |
3810 | 3808 | }, |
3811 | 3809 | "last_modified_at": { |
3812 | 3810 | "type": [ |
3813 | 3811 | "string", |
3814 | 3812 | "null" |
3815 | 3813 | ], |
3816 | 3814 | "format": "date-time", |
3817 | | - "description": "Last time the file was modified" |
| 3815 | + "description": "Last time the link was modified" |
3818 | 3816 | }, |
3819 | 3817 | "last_modified_by": { |
3820 | 3818 | "oneOf": [ |
|
3823 | 3821 | }, |
3824 | 3822 | { |
3825 | 3823 | "$ref": "#/components/schemas/User", |
3826 | | - "description": "User who last modified the file" |
| 3824 | + "description": "User who last modified the link" |
3827 | 3825 | } |
3828 | 3826 | ] |
3829 | 3827 | }, |
|
4071 | 4069 | "description": "Whether to include document names", |
4072 | 4070 | "default": false |
4073 | 4071 | }, |
4074 | | - "item_id": { |
4075 | | - "type": [ |
4076 | | - "string", |
4077 | | - "null" |
4078 | | - ], |
4079 | | - "format": "uuid", |
4080 | | - "description": "Enforce search to a specific file,link,folder\n\nDeprecated: use the /search endpoint on the file itself instead", |
4081 | | - "default": null, |
4082 | | - "deprecated": true |
4083 | | - }, |
4084 | | - "max_fragment_size": { |
4085 | | - "type": [ |
4086 | | - "integer", |
4087 | | - "null" |
4088 | | - ], |
4089 | | - "format": "int32", |
4090 | | - "description": "Maximum size of text fragments to extract when highlighting\ncontent (only works when \"include_content\" is true)", |
4091 | | - "default": null, |
4092 | | - "maximum": 150, |
4093 | | - "minimum": 0 |
4094 | | - }, |
4095 | | - "max_fragments": { |
4096 | | - "type": [ |
4097 | | - "integer", |
4098 | | - "null" |
4099 | | - ], |
4100 | | - "format": "int32", |
4101 | | - "description": "Max number of highlighted fragments to extract per page", |
4102 | | - "default": null, |
4103 | | - "maximum": 100, |
4104 | | - "minimum": 0 |
4105 | | - }, |
4106 | 4072 | "max_pages": { |
4107 | 4073 | "type": [ |
4108 | 4074 | "integer", |
4109 | 4075 | "null" |
4110 | 4076 | ], |
4111 | 4077 | "format": "int32", |
4112 | | - "description": "Maximum number of pages too return\n\nDeprecated: use the /search endpoint on the file itself with an offset instead", |
| 4078 | + "description": "Maximum number of pages too return per file", |
4113 | 4079 | "default": null, |
4114 | | - "deprecated": true, |
4115 | 4080 | "maximum": 100, |
4116 | 4081 | "minimum": 0 |
4117 | 4082 | }, |
|
4123 | 4088 | "description": "Search only include a specific mime type", |
4124 | 4089 | "default": null |
4125 | 4090 | }, |
4126 | | - "modified": { |
4127 | | - "oneOf": [ |
4128 | | - { |
4129 | | - "type": "null" |
4130 | | - }, |
4131 | | - { |
4132 | | - "$ref": "#/components/schemas/SearchRange", |
4133 | | - "description": "Modified date range search" |
4134 | | - } |
4135 | | - ], |
4136 | | - "default": null |
4137 | | - }, |
4138 | 4091 | "neural": { |
4139 | 4092 | "type": "boolean", |
4140 | 4093 | "description": "Enable searching with AI", |
|
4400 | 4353 | "null" |
4401 | 4354 | ], |
4402 | 4355 | "description": "Name for the folder", |
| 4356 | + "maxLength": 255, |
4403 | 4357 | "minLength": 1 |
4404 | 4358 | } |
4405 | 4359 | } |
|
4422 | 4376 | "null" |
4423 | 4377 | ], |
4424 | 4378 | "description": "Name for the folder", |
| 4379 | + "maxLength": 255, |
4425 | 4380 | "minLength": 1 |
4426 | 4381 | } |
4427 | 4382 | } |
|
4444 | 4399 | "null" |
4445 | 4400 | ], |
4446 | 4401 | "description": "Name for the link", |
| 4402 | + "maxLength": 255, |
4447 | 4403 | "minLength": 1 |
4448 | 4404 | }, |
4449 | 4405 | "value": { |
|
4471 | 4427 | ], |
4472 | 4428 | "description": "Whether to process the file asynchronously returning a task\nresponse instead of waiting for the upload" |
4473 | 4429 | }, |
| 4430 | + "disable_mime_sniffing": { |
| 4431 | + "type": [ |
| 4432 | + "boolean", |
| 4433 | + "null" |
| 4434 | + ], |
| 4435 | + "description": "Whether to disable mime sniffing for the file. When false/not specified\nif a application/octet-stream mime type is provided the file name\nwill be used to attempt to determine the real mime type" |
| 4436 | + }, |
4474 | 4437 | "file": { |
4475 | 4438 | "type": "array", |
4476 | 4439 | "items": { |
|
4502 | 4465 | }, |
4503 | 4466 | "name": { |
4504 | 4467 | "type": "string", |
| 4468 | + "maxLength": 255, |
4505 | 4469 | "minLength": 1 |
4506 | 4470 | }, |
4507 | 4471 | "parent_id": { |
|
0 commit comments