From ae0d450050dc898ab8fffe002b1447197de32c9a Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Tue, 22 Oct 2024 16:53:43 +1100 Subject: [PATCH] updated openai --- .../v00.00.00000/services/assistants.yaml | 87 +++++++++++-------- .../openai/v00.00.00000/services/audio.yaml | 3 + .../v00.00.00000/services/audit_logs.yaml | 3 + .../openai/v00.00.00000/services/batch.yaml | 6 ++ .../openai/v00.00.00000/services/chat.yaml | 12 +-- .../v00.00.00000/services/completions.yaml | 2 + .../v00.00.00000/services/embeddings.yaml | 2 + .../openai/v00.00.00000/services/files.yaml | 6 ++ .../v00.00.00000/services/fine_tuning.yaml | 68 ++++++++------- .../openai/v00.00.00000/services/images.yaml | 6 ++ .../openai/v00.00.00000/services/invites.yaml | 7 ++ .../openai/v00.00.00000/services/models.yaml | 10 +-- .../v00.00.00000/services/moderations.yaml | 2 + .../v00.00.00000/services/projects.yaml | 31 ++++++- .../openai/v00.00.00000/services/uploads.yaml | 9 +- .../openai/v00.00.00000/services/users.yaml | 9 +- .../v00.00.00000/services/vector_stores.yaml | 20 ++++- 17 files changed, 197 insertions(+), 86 deletions(-) diff --git a/providers/src/openai/v00.00.00000/services/assistants.yaml b/providers/src/openai/v00.00.00000/services/assistants.yaml index feb247dc..188dcda6 100644 --- a/providers/src/openai/v00.00.00000/services/assistants.yaml +++ b/providers/src/openai/v00.00.00000/services/assistants.yaml @@ -2494,37 +2494,45 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListAssistantsResponse' + objectKey: $.data create_assistant: operation: $ref: '#/paths/~1assistants/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/AssistantObject' get_assistant: operation: $ref: '#/paths/~1assistants~1{assistant_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/AssistantObject' modify_assistant: operation: $ref: '#/paths/~1assistants~1{assistant_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/AssistantObject' delete_assistant: operation: $ref: '#/paths/~1assistants~1{assistant_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteAssistantResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/assistants/methods/get_assistant' - $ref: '#/components/x-stackQL-resources/assistants/methods/list_assistants' insert: - $ref: '#/components/x-stackQL-resources/assistants/methods/create_assistant' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/assistants/methods/modify_assistant' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/assistants/methods/delete_assistant' threads: @@ -2538,49 +2546,45 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ThreadObject' + create_thread_and_run: + operation: + $ref: '#/paths/~1threads~1runs/post' + response: + mediaType: application/json + openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' get_thread: operation: $ref: '#/paths/~1threads~1{thread_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ThreadObject' modify_thread: operation: $ref: '#/paths/~1threads~1{thread_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ThreadObject' delete_thread: operation: $ref: '#/paths/~1threads~1{thread_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteThreadResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/threads/methods/get_thread' insert: - $ref: '#/components/x-stackQL-resources/threads/methods/create_thread' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/threads/methods/modify_thread' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/threads/methods/delete_thread' - thread_and_runs: - id: openai.assistants.thread_and_runs - name: thread_and_runs - title: Thread And Runs - methods: - create_thread_and_run: - operation: - $ref: '#/paths/~1threads~1runs/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/thread_and_runs/methods/create_thread_and_run' - update: [] - delete: [] messages: id: openai.assistants.messages name: messages @@ -2592,37 +2596,44 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListMessagesResponse' create_message: operation: $ref: '#/paths/~1threads~1{thread_id}~1messages/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/MessageObject' get_message: operation: $ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/MessageObject' modify_message: operation: $ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/MessageObject' delete_message: operation: $ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteMessageResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/messages/methods/get_message' - $ref: '#/components/x-stackQL-resources/messages/methods/list_messages' insert: - $ref: '#/components/x-stackQL-resources/messages/methods/create_message' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/messages/methods/modify_message' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/messages/methods/delete_message' runs: @@ -2636,37 +2647,52 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListRunsResponse' + objectKey: $.data create_run: operation: $ref: '#/paths/~1threads~1{thread_id}~1runs/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' get_run: operation: $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' modify_run: operation: $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' cancel_run: operation: $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1cancel/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' + submit_tool_ouputs_to_run: + operation: + $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1submit_tool_outputs/post' + response: + mediaType: application/json + openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunObject' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/runs/methods/get_run' - $ref: '#/components/x-stackQL-resources/runs/methods/list_runs' insert: - $ref: '#/components/x-stackQL-resources/runs/methods/create_run' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/runs/methods/modify_run' + replace: [] delete: [] run_steps: id: openai.assistants.run_steps @@ -2679,34 +2705,21 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListRunStepsResponse' get_run_step: operation: $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1steps~1{step_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/RunStepObject' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/run_steps/methods/get_run_step' - $ref: '#/components/x-stackQL-resources/run_steps/methods/list_run_steps' insert: [] update: [] - delete: [] - tool_ouputs_to_runs: - id: openai.assistants.tool_ouputs_to_runs - name: tool_ouputs_to_runs - title: Tool Ouputs To Runs - methods: - submit_tool_ouputs_to_run: - operation: - $ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1submit_tool_outputs/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] + replace: [] delete: [] paths: /assistants: diff --git a/providers/src/openai/v00.00.00000/services/audio.yaml b/providers/src/openai/v00.00.00000/services/audio.yaml index 17da84a3..d1baafbe 100644 --- a/providers/src/openai/v00.00.00000/services/audio.yaml +++ b/providers/src/openai/v00.00.00000/services/audio.yaml @@ -376,6 +376,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/speeches/methods/create_speech' update: [] + replace: [] delete: [] transcriptions: id: openai.audio.transcriptions @@ -393,6 +394,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/transcriptions/methods/create_transcription' update: [] + replace: [] delete: [] translations: id: openai.audio.translations @@ -410,6 +412,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/translations/methods/create_translation' update: [] + replace: [] delete: [] paths: /audio/speech: diff --git a/providers/src/openai/v00.00.00000/services/audit_logs.yaml b/providers/src/openai/v00.00.00000/services/audit_logs.yaml index 9e976b22..a0db372d 100644 --- a/providers/src/openai/v00.00.00000/services/audit_logs.yaml +++ b/providers/src/openai/v00.00.00000/services/audit_logs.yaml @@ -450,11 +450,14 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListAuditLogsResponse' + objectKey: $.data sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/audit_logs/methods/list_audit_logs' insert: [] update: [] + replace: [] delete: [] paths: /organization/audit_logs: diff --git a/providers/src/openai/v00.00.00000/services/batch.yaml b/providers/src/openai/v00.00.00000/services/batch.yaml index 48094e70..b196e4a0 100644 --- a/providers/src/openai/v00.00.00000/services/batch.yaml +++ b/providers/src/openai/v00.00.00000/services/batch.yaml @@ -235,24 +235,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Batch' list_batches: operation: $ref: '#/paths/~1batches/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListBatchesResponse' + objectKey: $.data retrieve_batch: operation: $ref: '#/paths/~1batches~1{batch_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Batch' cancel_batch: operation: $ref: '#/paths/~1batches~1{batch_id}~1cancel/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Batch' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/batches/methods/retrieve_batch' @@ -260,6 +265,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/batches/methods/create_batch' update: [] + replace: [] delete: [] paths: /batches: diff --git a/providers/src/openai/v00.00.00000/services/chat.yaml b/providers/src/openai/v00.00.00000/services/chat.yaml index 878869dd..50cb13ad 100644 --- a/providers/src/openai/v00.00.00000/services/chat.yaml +++ b/providers/src/openai/v00.00.00000/services/chat.yaml @@ -1129,10 +1129,10 @@ components: type: http scheme: bearer x-stackQL-resources: - chat_completions: - id: openai.chat.chat_completions - name: chat_completions - title: Chat Completions + completions: + id: openai.chat.completions + name: completions + title: Completions methods: create_chat_completion: operation: @@ -1140,11 +1140,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/CreateChatCompletionResponse' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/chat_completions/methods/create_chat_completion' + - $ref: '#/components/x-stackQL-resources/completions/methods/create_chat_completion' insert: [] update: [] + replace: [] delete: [] paths: /chat/completions: diff --git a/providers/src/openai/v00.00.00000/services/completions.yaml b/providers/src/openai/v00.00.00000/services/completions.yaml index f6adc2f8..a849cfd4 100644 --- a/providers/src/openai/v00.00.00000/services/completions.yaml +++ b/providers/src/openai/v00.00.00000/services/completions.yaml @@ -409,11 +409,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/CreateCompletionResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/completions/methods/create_completion' update: [] + replace: [] delete: [] paths: /completions: diff --git a/providers/src/openai/v00.00.00000/services/embeddings.yaml b/providers/src/openai/v00.00.00000/services/embeddings.yaml index ff0e6a58..b65104d9 100644 --- a/providers/src/openai/v00.00.00000/services/embeddings.yaml +++ b/providers/src/openai/v00.00.00000/services/embeddings.yaml @@ -206,11 +206,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/CreateEmbeddingResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/embeddings/methods/create_embedding' update: [] + replace: [] delete: [] paths: /embeddings: diff --git a/providers/src/openai/v00.00.00000/services/files.yaml b/providers/src/openai/v00.00.00000/services/files.yaml index 4ac4edd4..1f552737 100644 --- a/providers/src/openai/v00.00.00000/services/files.yaml +++ b/providers/src/openai/v00.00.00000/services/files.yaml @@ -175,24 +175,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListFilesResponse' + objectKey: $.data create_file: operation: $ref: '#/paths/~1files/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/OpenAIFile' delete_file: operation: $ref: '#/paths/~1files~1{file_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteFileResponse' retrieve_file: operation: $ref: '#/paths/~1files~1{file_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/OpenAIFile' download_file: operation: $ref: '#/paths/~1files~1{file_id}~1content/get' @@ -206,6 +211,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/files/methods/create_file' update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/files/methods/delete_file' paths: diff --git a/providers/src/openai/v00.00.00000/services/fine_tuning.yaml b/providers/src/openai/v00.00.00000/services/fine_tuning.yaml index a662f691..3c772fac 100644 --- a/providers/src/openai/v00.00.00000/services/fine_tuning.yaml +++ b/providers/src/openai/v00.00.00000/services/fine_tuning.yaml @@ -567,10 +567,10 @@ components: type: http scheme: bearer x-stackQL-resources: - fine_tuning_jobs: - id: openai.fine_tuning.fine_tuning_jobs - name: fine_tuning_jobs - title: Fine Tuning Jobs + jobs: + id: openai.fine_tuning.jobs + name: jobs + title: Jobs methods: create_fine_tuning_job: operation: @@ -578,46 +578,42 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/FineTuningJob' + list_paginated_fine_tuning_jobs: + operation: + $ref: '#/paths/~1fine_tuning~1jobs/get' + response: + mediaType: application/json + openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListPaginatedFineTuningJobsResponse' + objectKey: $.data retrieve_fine_tuning_job: operation: $ref: '#/paths/~1fine_tuning~1jobs~1{fine_tuning_job_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/FineTuningJob' cancel_fine_tuning_job: operation: $ref: '#/paths/~1fine_tuning~1jobs~1{fine_tuning_job_id}~1cancel/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/FineTuningJob' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/fine_tuning_jobs/methods/retrieve_fine_tuning_job' + - $ref: '#/components/x-stackQL-resources/jobs/methods/retrieve_fine_tuning_job' + - $ref: '#/components/x-stackQL-resources/jobs/methods/list_paginated_fine_tuning_jobs' insert: - - $ref: '#/components/x-stackQL-resources/fine_tuning_jobs/methods/create_fine_tuning_job' - update: [] - delete: [] - paginated_fine_tuning_jobs: - id: openai.fine_tuning.paginated_fine_tuning_jobs - name: paginated_fine_tuning_jobs - title: Paginated Fine Tuning Jobs - methods: - list_paginated_fine_tuning_jobs: - operation: - $ref: '#/paths/~1fine_tuning~1jobs/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/paginated_fine_tuning_jobs/methods/list_paginated_fine_tuning_jobs' - insert: [] + - $ref: '#/components/x-stackQL-resources/jobs/methods/create_fine_tuning_job' update: [] + replace: [] delete: [] - fine_tuning_job_checkpoints: - id: openai.fine_tuning.fine_tuning_job_checkpoints - name: fine_tuning_job_checkpoints - title: Fine Tuning Job Checkpoints + job_checkpoints: + id: openai.fine_tuning.job_checkpoints + name: job_checkpoints + title: Job Checkpoints methods: list_fine_tuning_job_checkpoints: operation: @@ -625,16 +621,19 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListFineTuningJobCheckpointsResponse' + objectKey: $.data sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/fine_tuning_job_checkpoints/methods/list_fine_tuning_job_checkpoints' + - $ref: '#/components/x-stackQL-resources/job_checkpoints/methods/list_fine_tuning_job_checkpoints' insert: [] update: [] + replace: [] delete: [] - fine_tuning_events: - id: openai.fine_tuning.fine_tuning_events - name: fine_tuning_events - title: Fine Tuning Events + events: + id: openai.fine_tuning.events + name: events + title: Events methods: list_fine_tuning_events: operation: @@ -642,11 +641,14 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListFineTuningJobEventsResponse' + objectKey: $.data sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/fine_tuning_events/methods/list_fine_tuning_events' + - $ref: '#/components/x-stackQL-resources/events/methods/list_fine_tuning_events' insert: [] update: [] + replace: [] delete: [] paths: /fine_tuning/jobs: diff --git a/providers/src/openai/v00.00.00000/services/images.yaml b/providers/src/openai/v00.00.00000/services/images.yaml index 58451cc9..eed63a8c 100644 --- a/providers/src/openai/v00.00.00000/services/images.yaml +++ b/providers/src/openai/v00.00.00000/services/images.yaml @@ -276,11 +276,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ImagesResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/image_edits/methods/create_image_edit' update: [] + replace: [] delete: [] images: id: openai.images.images @@ -293,11 +295,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ImagesResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/images/methods/create_image' update: [] + replace: [] delete: [] image_variations: id: openai.images.image_variations @@ -310,11 +314,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ImagesResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/image_variations/methods/create_image_variation' update: [] + replace: [] delete: [] paths: /images/edits: diff --git a/providers/src/openai/v00.00.00000/services/invites.yaml b/providers/src/openai/v00.00.00000/services/invites.yaml index 115468dc..a36d3575 100644 --- a/providers/src/openai/v00.00.00000/services/invites.yaml +++ b/providers/src/openai/v00.00.00000/services/invites.yaml @@ -173,24 +173,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/InviteListResponse' + objectKey: $.data retrieve_invite: operation: $ref: '#/paths/~1organization~1invites~1{invite_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Invite' delete_invite: operation: $ref: '#/paths/~1organization~1invites~1{invite_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/InviteDeleteResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/invites/methods/retrieve_invite' - $ref: '#/components/x-stackQL-resources/invites/methods/list_invites' insert: [] update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/invites/methods/delete_invite' users: @@ -204,10 +209,12 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Invite' sqlVerbs: select: [] insert: [] update: [] + replace: [] delete: [] paths: /organization/invites: diff --git a/providers/src/openai/v00.00.00000/services/models.yaml b/providers/src/openai/v00.00.00000/services/models.yaml index 82d41149..ff4b9af3 100644 --- a/providers/src/openai/v00.00.00000/services/models.yaml +++ b/providers/src/openai/v00.00.00000/services/models.yaml @@ -119,31 +119,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListModelsResponse' objectKey: $.data - _list_models: - operation: - $ref: '#/paths/~1models/get' - response: - mediaType: application/json - openAPIDocKey: '200' retrieve_model: operation: $ref: '#/paths/~1models~1{model}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Model' delete_model: operation: $ref: '#/paths/~1models~1{model}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteModelResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/models/methods/retrieve_model' - $ref: '#/components/x-stackQL-resources/models/methods/list_models' insert: [] update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/models/methods/delete_model' paths: diff --git a/providers/src/openai/v00.00.00000/services/moderations.yaml b/providers/src/openai/v00.00.00000/services/moderations.yaml index e41e6738..1ef184cb 100644 --- a/providers/src/openai/v00.00.00000/services/moderations.yaml +++ b/providers/src/openai/v00.00.00000/services/moderations.yaml @@ -486,11 +486,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/CreateModerationResponse' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/moderations/methods/create_moderation' update: [] + replace: [] delete: [] paths: /moderations: diff --git a/providers/src/openai/v00.00.00000/services/projects.yaml b/providers/src/openai/v00.00.00000/services/projects.yaml index 658079a4..973c6522 100644 --- a/providers/src/openai/v00.00.00000/services/projects.yaml +++ b/providers/src/openai/v00.00.00000/services/projects.yaml @@ -513,37 +513,45 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectListResponse' + objectKey: $.data create_project: operation: $ref: '#/paths/~1organization~1projects/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Project' retrieve_project: operation: $ref: '#/paths/~1organization~1projects~1{project_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Project' modify_project: operation: $ref: '#/paths/~1organization~1projects~1{project_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Project' archive_project: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1archive/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Project' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/projects/methods/retrieve_project' - $ref: '#/components/x-stackQL-resources/projects/methods/list_projects' insert: - $ref: '#/components/x-stackQL-resources/projects/methods/create_project' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/projects/methods/modify_project' + replace: [] delete: [] project_api_keys: id: openai.projects.project_api_keys @@ -556,24 +564,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectApiKeyListResponse' + objectKey: $.data retrieve_project_api_key: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1api_keys~1{key_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectApiKey' delete_project_api_key: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1api_keys~1{key_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectApiKeyDeleteResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/project_api_keys/methods/retrieve_project_api_key' - $ref: '#/components/x-stackQL-resources/project_api_keys/methods/list_project_api_keys' insert: [] update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/project_api_keys/methods/delete_project_api_key' project_service_accounts: @@ -587,24 +600,29 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectServiceAccountListResponse' + objectKey: $.data create_project_service_account: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1service_accounts/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectServiceAccountCreateResponse' retrieve_project_service_account: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1service_accounts~1{service_account_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectServiceAccount' delete_project_service_account: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1service_accounts~1{service_account_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectServiceAccountDeleteResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/project_service_accounts/methods/retrieve_project_service_account' @@ -612,6 +630,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/project_service_accounts/methods/create_project_service_account' update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/project_service_accounts/methods/delete_project_service_account' project_users: @@ -625,37 +644,45 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectUserListResponse' + objectKey: $.data create_project_user: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1users/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectUser' retrieve_project_user: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1users~1{user_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectUser' modify_project_user: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1users~1{user_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectUser' delete_project_user: operation: $ref: '#/paths/~1organization~1projects~1{project_id}~1users~1{user_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ProjectUserDeleteResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/project_users/methods/retrieve_project_user' - $ref: '#/components/x-stackQL-resources/project_users/methods/list_project_users' insert: - $ref: '#/components/x-stackQL-resources/project_users/methods/create_project_user' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/project_users/methods/modify_project_user' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/project_users/methods/delete_project_user' paths: diff --git a/providers/src/openai/v00.00.00000/services/uploads.yaml b/providers/src/openai/v00.00.00000/services/uploads.yaml index 4bf1efee..07fe9435 100644 --- a/providers/src/openai/v00.00.00000/services/uploads.yaml +++ b/providers/src/openai/v00.00.00000/services/uploads.yaml @@ -288,23 +288,27 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Upload' cancel_upload: operation: $ref: '#/paths/~1uploads~1{upload_id}~1cancel/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Upload' complete_upload: operation: $ref: '#/paths/~1uploads~1{upload_id}~1complete/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/Upload' sqlVerbs: select: [] insert: - $ref: '#/components/x-stackQL-resources/uploads/methods/create_upload' update: [] + replace: [] delete: [] upload_parts: id: openai.uploads.upload_parts @@ -317,10 +321,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/UploadPart' sqlVerbs: select: [] - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/upload_parts/methods/add_upload_part' update: [] + replace: [] delete: [] paths: /uploads: diff --git a/providers/src/openai/v00.00.00000/services/users.yaml b/providers/src/openai/v00.00.00000/services/users.yaml index d7064f38..57d845c8 100644 --- a/providers/src/openai/v00.00.00000/services/users.yaml +++ b/providers/src/openai/v00.00.00000/services/users.yaml @@ -154,30 +154,37 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/UserListResponse' + objectKey: $.data retrieve_user: operation: $ref: '#/paths/~1organization~1users~1{user_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/User' modify_user: operation: $ref: '#/paths/~1organization~1users~1{user_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/User' delete_user: operation: $ref: '#/paths/~1organization~1users~1{user_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/UserDeleteResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/users/methods/retrieve_user' - $ref: '#/components/x-stackQL-resources/users/methods/list_users' insert: [] - update: [] + update: + - $ref: '#/components/x-stackQL-resources/users/methods/modify_user' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/users/methods/delete_user' paths: diff --git a/providers/src/openai/v00.00.00000/services/vector_stores.yaml b/providers/src/openai/v00.00.00000/services/vector_stores.yaml index a5132a32..39f9038c 100644 --- a/providers/src/openai/v00.00.00000/services/vector_stores.yaml +++ b/providers/src/openai/v00.00.00000/services/vector_stores.yaml @@ -568,37 +568,44 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListVectorStoresResponse' create_vector_store: operation: $ref: '#/paths/~1vector_stores/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreObject' get_vector_store: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreObject' modify_vector_store: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreObject' delete_vector_store: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteVectorStoreResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/vector_stores/methods/get_vector_store' - $ref: '#/components/x-stackQL-resources/vector_stores/methods/list_vector_stores' insert: - $ref: '#/components/x-stackQL-resources/vector_stores/methods/create_vector_store' - update: [] + update: + - $ref: '#/components/x-stackQL-resources/vector_stores/methods/modify_vector_store' + replace: [] delete: - $ref: '#/components/x-stackQL-resources/vector_stores/methods/delete_vector_store' vector_store_file_batches: @@ -612,24 +619,28 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreFileBatchObject' get_vector_store_file_batch: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}~1file_batches~1{batch_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreFileBatchObject' cancel_vector_store_file_batch: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}~1file_batches~1{batch_id}~1cancel/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreFileBatchObject' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/vector_store_file_batches/methods/get_vector_store_file_batch' insert: - $ref: '#/components/x-stackQL-resources/vector_store_file_batches/methods/create_vector_store_file_batch' update: [] + replace: [] delete: [] files_in_vector_store_batches: id: openai.vector_stores.files_in_vector_store_batches @@ -642,11 +653,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListVectorStoreFilesResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/files_in_vector_store_batches/methods/list_files_in_vector_store_batch' insert: [] update: [] + replace: [] delete: [] vector_store_files: id: openai.vector_stores.vector_store_files @@ -659,24 +672,28 @@ components: response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/ListVectorStoreFilesResponse' create_vector_store_file: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}~1files/post' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreFileObject' get_vector_store_file: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}~1files~1{file_id}/get' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/VectorStoreFileObject' delete_vector_store_file: operation: $ref: '#/paths/~1vector_stores~1{vector_store_id}~1files~1{file_id}/delete' response: mediaType: application/json openAPIDocKey: '200' + schemaRef: '#/components/schemas/DeleteVectorStoreFileResponse' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/vector_store_files/methods/get_vector_store_file' @@ -684,6 +701,7 @@ components: insert: - $ref: '#/components/x-stackQL-resources/vector_store_files/methods/create_vector_store_file' update: [] + replace: [] delete: - $ref: '#/components/x-stackQL-resources/vector_store_files/methods/delete_vector_store_file' paths: