|
451 | 451 | "schema": { |
452 | 452 | "anyOf": [ |
453 | 453 | { |
454 | | - "$ref": "#/components/schemas/ClientFileToProgramJob" |
| 454 | + "$ref": "#/components/schemas/UserFileToProgramJob" |
455 | 455 | }, |
456 | 456 | { |
457 | | - "$ref": "#/components/schemas/ClientFile" |
| 457 | + "$ref": "#/components/schemas/UserFile" |
458 | 458 | } |
459 | 459 | ], |
460 | | - "title": "User File" |
| 460 | + "title": "Client File" |
461 | 461 | } |
462 | 462 | } |
463 | 463 | } |
|
6045 | 6045 | "schemas": { |
6046 | 6046 | "Body_abort_multipart_upload_v0_files__file_id__abort_post": { |
6047 | 6047 | "properties": { |
6048 | | - "user_file": { |
| 6048 | + "client_file": { |
6049 | 6049 | "anyOf": [ |
6050 | 6050 | { |
6051 | | - "$ref": "#/components/schemas/ClientFileToProgramJob" |
| 6051 | + "$ref": "#/components/schemas/UserFileToProgramJob" |
6052 | 6052 | }, |
6053 | 6053 | { |
6054 | | - "$ref": "#/components/schemas/ClientFile" |
| 6054 | + "$ref": "#/components/schemas/UserFile" |
6055 | 6055 | } |
6056 | 6056 | ], |
6057 | | - "title": "User File" |
| 6057 | + "title": "Client File" |
6058 | 6058 | } |
6059 | 6059 | }, |
6060 | 6060 | "type": "object", |
6061 | 6061 | "required": [ |
6062 | | - "user_file" |
| 6062 | + "client_file" |
6063 | 6063 | ], |
6064 | 6064 | "title": "Body_abort_multipart_upload_v0_files__file_id__abort_post" |
6065 | 6065 | }, |
6066 | 6066 | "Body_complete_multipart_upload_v0_files__file_id__complete_post": { |
6067 | 6067 | "properties": { |
6068 | | - "user_file": { |
| 6068 | + "client_file": { |
6069 | 6069 | "anyOf": [ |
6070 | 6070 | { |
6071 | | - "$ref": "#/components/schemas/ClientFileToProgramJob" |
| 6071 | + "$ref": "#/components/schemas/UserFileToProgramJob" |
6072 | 6072 | }, |
6073 | 6073 | { |
6074 | | - "$ref": "#/components/schemas/ClientFile" |
| 6074 | + "$ref": "#/components/schemas/UserFile" |
6075 | 6075 | } |
6076 | 6076 | ], |
6077 | | - "title": "User File" |
| 6077 | + "title": "Client File" |
6078 | 6078 | }, |
6079 | 6079 | "uploaded_parts": { |
6080 | 6080 | "$ref": "#/components/schemas/FileUploadCompletionBody" |
6081 | 6081 | } |
6082 | 6082 | }, |
6083 | 6083 | "type": "object", |
6084 | 6084 | "required": [ |
6085 | | - "user_file", |
| 6085 | + "client_file", |
6086 | 6086 | "uploaded_parts" |
6087 | 6087 | ], |
6088 | 6088 | "title": "Body_complete_multipart_upload_v0_files__file_id__complete_post" |
|
6101 | 6101 | ], |
6102 | 6102 | "title": "Body_upload_file_v0_files_content_put" |
6103 | 6103 | }, |
6104 | | - "ClientFile": { |
6105 | | - "properties": { |
6106 | | - "filename": { |
6107 | | - "type": "string", |
6108 | | - "title": "Filename", |
6109 | | - "description": "File name" |
6110 | | - }, |
6111 | | - "filesize": { |
6112 | | - "type": "integer", |
6113 | | - "minimum": 0, |
6114 | | - "title": "Filesize", |
6115 | | - "description": "File size in bytes" |
6116 | | - }, |
6117 | | - "sha256_checksum": { |
6118 | | - "type": "string", |
6119 | | - "pattern": "^[a-fA-F0-9]{64}$", |
6120 | | - "title": "Sha256 Checksum", |
6121 | | - "description": "SHA256 checksum" |
6122 | | - } |
6123 | | - }, |
6124 | | - "type": "object", |
6125 | | - "required": [ |
6126 | | - "filename", |
6127 | | - "filesize", |
6128 | | - "sha256_checksum" |
6129 | | - ], |
6130 | | - "title": "ClientFile", |
6131 | | - "description": "Represents a file stored on the client side" |
6132 | | - }, |
6133 | | - "ClientFileToProgramJob": { |
6134 | | - "properties": { |
6135 | | - "filename": { |
6136 | | - "type": "string", |
6137 | | - "pattern": ".+", |
6138 | | - "title": "Filename", |
6139 | | - "description": "File name" |
6140 | | - }, |
6141 | | - "filesize": { |
6142 | | - "type": "integer", |
6143 | | - "minimum": 0, |
6144 | | - "title": "Filesize", |
6145 | | - "description": "File size in bytes" |
6146 | | - }, |
6147 | | - "sha256_checksum": { |
6148 | | - "type": "string", |
6149 | | - "pattern": "^[a-fA-F0-9]{64}$", |
6150 | | - "title": "Sha256 Checksum", |
6151 | | - "description": "SHA256 checksum" |
6152 | | - }, |
6153 | | - "program_key": { |
6154 | | - "type": "string", |
6155 | | - "pattern": "^simcore/services/dynamic/([a-z0-9][a-z0-9_.-]*/)*([a-z0-9-_]+[a-z0-9])$", |
6156 | | - "title": "Program Key", |
6157 | | - "description": "Program identifier" |
6158 | | - }, |
6159 | | - "program_version": { |
6160 | | - "type": "string", |
6161 | | - "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){2}(-(0|[1-9]\\d*|\\d*[-a-zA-Z][-\\da-zA-Z]*)(\\.(0|[1-9]\\d*|\\d*[-a-zA-Z][-\\da-zA-Z]*))*)?(\\+[-\\da-zA-Z]+(\\.[-\\da-zA-Z-]+)*)?$", |
6162 | | - "title": "Program Version", |
6163 | | - "description": "Program version" |
6164 | | - }, |
6165 | | - "job_id": { |
6166 | | - "type": "string", |
6167 | | - "format": "uuid", |
6168 | | - "title": "Job Id", |
6169 | | - "description": "Job identifier" |
6170 | | - }, |
6171 | | - "workspace_path": { |
6172 | | - "type": "string", |
6173 | | - "pattern": "^workspace/.*", |
6174 | | - "format": "path", |
6175 | | - "title": "Workspace Path", |
6176 | | - "description": "The file's relative path within the job's workspace directory. E.g. 'workspace/myfile.txt'" |
6177 | | - } |
6178 | | - }, |
6179 | | - "type": "object", |
6180 | | - "required": [ |
6181 | | - "filename", |
6182 | | - "filesize", |
6183 | | - "sha256_checksum", |
6184 | | - "program_key", |
6185 | | - "program_version", |
6186 | | - "job_id", |
6187 | | - "workspace_path" |
6188 | | - ], |
6189 | | - "title": "ClientFileToProgramJob" |
6190 | | - }, |
6191 | 6104 | "ClientFileUploadData": { |
6192 | 6105 | "properties": { |
6193 | 6106 | "file_id": { |
|
8186 | 8099 | ], |
8187 | 8100 | "title": "UploadedPart" |
8188 | 8101 | }, |
| 8102 | + "UserFile": { |
| 8103 | + "properties": { |
| 8104 | + "filename": { |
| 8105 | + "type": "string", |
| 8106 | + "title": "Filename", |
| 8107 | + "description": "File name" |
| 8108 | + }, |
| 8109 | + "filesize": { |
| 8110 | + "type": "integer", |
| 8111 | + "minimum": 0, |
| 8112 | + "title": "Filesize", |
| 8113 | + "description": "File size in bytes" |
| 8114 | + }, |
| 8115 | + "sha256_checksum": { |
| 8116 | + "type": "string", |
| 8117 | + "pattern": "^[a-fA-F0-9]{64}$", |
| 8118 | + "title": "Sha256 Checksum", |
| 8119 | + "description": "SHA256 checksum" |
| 8120 | + } |
| 8121 | + }, |
| 8122 | + "type": "object", |
| 8123 | + "required": [ |
| 8124 | + "filename", |
| 8125 | + "filesize", |
| 8126 | + "sha256_checksum" |
| 8127 | + ], |
| 8128 | + "title": "UserFile", |
| 8129 | + "description": "Represents a file stored on the client side" |
| 8130 | + }, |
| 8131 | + "UserFileToProgramJob": { |
| 8132 | + "properties": { |
| 8133 | + "filename": { |
| 8134 | + "type": "string", |
| 8135 | + "pattern": ".+", |
| 8136 | + "title": "Filename", |
| 8137 | + "description": "File name" |
| 8138 | + }, |
| 8139 | + "filesize": { |
| 8140 | + "type": "integer", |
| 8141 | + "minimum": 0, |
| 8142 | + "title": "Filesize", |
| 8143 | + "description": "File size in bytes" |
| 8144 | + }, |
| 8145 | + "sha256_checksum": { |
| 8146 | + "type": "string", |
| 8147 | + "pattern": "^[a-fA-F0-9]{64}$", |
| 8148 | + "title": "Sha256 Checksum", |
| 8149 | + "description": "SHA256 checksum" |
| 8150 | + }, |
| 8151 | + "program_key": { |
| 8152 | + "type": "string", |
| 8153 | + "pattern": "^simcore/services/dynamic/([a-z0-9][a-z0-9_.-]*/)*([a-z0-9-_]+[a-z0-9])$", |
| 8154 | + "title": "Program Key", |
| 8155 | + "description": "Program identifier" |
| 8156 | + }, |
| 8157 | + "program_version": { |
| 8158 | + "type": "string", |
| 8159 | + "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){2}(-(0|[1-9]\\d*|\\d*[-a-zA-Z][-\\da-zA-Z]*)(\\.(0|[1-9]\\d*|\\d*[-a-zA-Z][-\\da-zA-Z]*))*)?(\\+[-\\da-zA-Z]+(\\.[-\\da-zA-Z-]+)*)?$", |
| 8160 | + "title": "Program Version", |
| 8161 | + "description": "Program version" |
| 8162 | + }, |
| 8163 | + "job_id": { |
| 8164 | + "type": "string", |
| 8165 | + "format": "uuid", |
| 8166 | + "title": "Job Id", |
| 8167 | + "description": "Job identifier" |
| 8168 | + }, |
| 8169 | + "workspace_path": { |
| 8170 | + "type": "string", |
| 8171 | + "pattern": "^workspace/.*", |
| 8172 | + "format": "path", |
| 8173 | + "title": "Workspace Path", |
| 8174 | + "description": "The file's relative path within the job's workspace directory. E.g. 'workspace/myfile.txt'" |
| 8175 | + } |
| 8176 | + }, |
| 8177 | + "type": "object", |
| 8178 | + "required": [ |
| 8179 | + "filename", |
| 8180 | + "filesize", |
| 8181 | + "sha256_checksum", |
| 8182 | + "program_key", |
| 8183 | + "program_version", |
| 8184 | + "job_id", |
| 8185 | + "workspace_path" |
| 8186 | + ], |
| 8187 | + "title": "UserFileToProgramJob" |
| 8188 | + }, |
8189 | 8189 | "UserRoleEnum": { |
8190 | 8190 | "type": "string", |
8191 | 8191 | "enum": [ |
|
0 commit comments