From 3668b9f8bebb155942b7135d021444bf9227619e Mon Sep 17 00:00:00 2001 From: "vycari-contract-sync[bot]" <355595071+vycari-contract-sync[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 05:29:35 +0000 Subject: [PATCH] chore(contract): sync from Vycari/pepper @ e0659585 --- contracts/SOURCE.json | 6 +- contracts/api-v1.openapi.json | 704 +++++++++++++++++++++++++++++++--- 2 files changed, 662 insertions(+), 48 deletions(-) diff --git a/contracts/SOURCE.json b/contracts/SOURCE.json index 1b0f4cd..0d97406 100644 --- a/contracts/SOURCE.json +++ b/contracts/SOURCE.json @@ -1,6 +1,6 @@ { "repo": "Vycari/pepper", - "run_id": 43756058515, - "head_sha": "9b019309654f22a4c4b5e8836eb0ff18ce3b2f77", - "synced_at": "2026-11-15T20:11:50Z" + "run_id": 43809903400, + "head_sha": "e06595856438c85a13c08ce872979a5e3df845bb", + "synced_at": "2026-11-16T05:29:34Z" } diff --git a/contracts/api-v1.openapi.json b/contracts/api-v1.openapi.json index c639b00..93344b8 100644 --- a/contracts/api-v1.openapi.json +++ b/contracts/api-v1.openapi.json @@ -3831,6 +3831,55 @@ }, "type": "object" }, + "GenerateImageRequest": { + "properties": { + "aspect_ratio": { + "default": "1:1", + "type": "string" + }, + "prompt": { + "maxLength": 4000, + "minLength": 1, + "type": "string" + }, + "source_artifact_ids": { + "items": { + "format": "uuid", + "type": "string" + }, + "maxItems": 4, + "type": "array" + } + }, + "required": [ + "prompt" + ], + "type": "object" + }, + "GeneratedImageResponse": { + "properties": { + "byte_size": { + "type": "integer" + }, + "id": { + "format": "uuid", + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "mime_type", + "byte_size" + ], + "type": "object" + }, "GoogleAccountView": { "properties": { "access_revoked": { @@ -4230,6 +4279,206 @@ ], "type": "object" }, + "ImageDescribeRun": { + "properties": { + "run": { + "type": "integer" + }, + "status": { + "type": "string" + } + }, + "required": [ + "run", + "status" + ], + "type": "object" + }, + "ImageDetailSources": { + "properties": { + "alt_text": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "caption": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "long_description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "alt_text", + "title", + "caption", + "long_description" + ], + "type": "object" + }, + "ImageDetailsBody": { + "additionalProperties": false, + "properties": { + "alt_text": { + "anyOf": [ + { + "maxLength": 250, + "type": "string" + }, + { + "type": "null" + } + ] + }, + "caption": { + "anyOf": [ + { + "maxLength": 500, + "type": "string" + }, + { + "type": "null" + } + ] + }, + "long_description": { + "anyOf": [ + { + "maxLength": 4000, + "type": "string" + }, + { + "type": "null" + } + ] + }, + "title": { + "anyOf": [ + { + "maxLength": 120, + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, + "ImageDetailsResponse": { + "properties": { + "alt_text": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "id": { + "format": "uuid", + "type": "string" + }, + "last_run": { + "anyOf": [ + { + "$ref": "#/components/schemas/ImageDescribeRun" + }, + { + "type": "null" + } + ] + }, + "long_description": { + "type": "string" + }, + "sources": { + "$ref": "#/components/schemas/ImageDetailSources" + }, + "suggestions_enabled": { + "type": "boolean" + }, + "title": { + "type": "string" + } + }, + "required": [ + "id", + "alt_text", + "title", + "caption", + "long_description", + "sources", + "suggestions_enabled", + "last_run" + ], + "type": "object" + }, + "ImageOptionsResponse": { + "properties": { + "generate": { + "type": "boolean" + } + }, + "required": [ + "generate" + ], + "type": "object" + }, + "ImageSuggestResponse": { + "properties": { + "id": { + "format": "uuid", + "type": "string" + }, + "run": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "started": { + "type": "boolean" + } + }, + "required": [ + "id", + "started" + ], + "type": "object" + }, "ImportRequest": { "properties": { "ids": { @@ -7719,6 +7968,16 @@ }, "type": "object" }, + "SuggestDetailsBody": { + "additionalProperties": false, + "properties": { + "all": { + "default": false, + "type": "boolean" + } + }, + "type": "object" + }, "SuggestionActIn": { "properties": { "id": { @@ -12911,7 +13170,7 @@ ] } }, - "/api/v1/artifacts/new": { + "/api/v1/artifacts/generate-image": { "post": { "parameters": [ { @@ -12950,18 +13209,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArtifactCreateRequest" + "$ref": "#/components/schemas/GenerateImageRequest" } } }, "required": true }, "responses": { - "200": { + "201": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArtifactCreateResponse" + "$ref": "#/components/schemas/GeneratedImageResponse" } } }, @@ -12983,25 +13242,9 @@ ] } }, - "/api/v1/artifacts/upload": { - "post": { + "/api/v1/artifacts/image-options": { + "get": { "parameters": [ - { - "in": "query", - "name": "principal", - "required": false, - "schema": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ] - } - }, { "in": "header", "name": "authorization", @@ -13018,32 +13261,12 @@ } } ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_upload_blob_api_v1_artifacts_upload_post" - } - } - }, - "required": true - }, "responses": { "200": { "content": { "application/json": { "schema": { - "additionalProperties": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ] - }, - "type": "object" + "$ref": "#/components/schemas/ImageOptionsResponse" } } }, @@ -13065,8 +13288,162 @@ ] } }, - "/api/v1/artifacts/{artifact_id}/comments": { - "get": { + "/api/v1/artifacts/new": { + "post": { + "parameters": [ + { + "in": "query", + "name": "principal", + "required": false, + "schema": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArtifactCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArtifactCreateResponse" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-artifacts" + ] + } + }, + "/api/v1/artifacts/upload": { + "post": { + "parameters": [ + { + "in": "query", + "name": "principal", + "required": false, + "schema": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_upload_blob_api_v1_artifacts_upload_post" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "type": "object" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-artifacts" + ] + } + }, + "/api/v1/artifacts/{artifact_id}/comments": { + "get": { "parameters": [ { "in": "path", @@ -13452,6 +13829,243 @@ ] } }, + "/api/v1/artifacts/{artifact_id}/image-details": { + "get": { + "parameters": [ + { + "in": "path", + "name": "artifact_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "query", + "name": "principal", + "required": false, + "schema": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageDetailsResponse" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-artifacts" + ] + }, + "put": { + "parameters": [ + { + "in": "path", + "name": "artifact_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "query", + "name": "principal", + "required": false, + "schema": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageDetailsBody" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageDetailsResponse" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-artifacts" + ] + } + }, + "/api/v1/artifacts/{artifact_id}/image-details/suggest": { + "post": { + "parameters": [ + { + "in": "path", + "name": "artifact_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "query", + "name": "principal", + "required": false, + "schema": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SuggestDetailsBody" + }, + { + "type": "null" + } + ] + } + } + } + }, + "responses": { + "202": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageSuggestResponse" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-artifacts" + ] + } + }, "/api/v1/artifacts/{artifact_id}/raw": { "get": { "parameters": [