diff --git a/contracts/SOURCE.json b/contracts/SOURCE.json index f47b426..c952ad0 100644 --- a/contracts/SOURCE.json +++ b/contracts/SOURCE.json @@ -1,6 +1,6 @@ { "repo": "Vycari/pepper", - "run_id": 44846080938, - "head_sha": "d252e4967df920184be6b17ae5c80757dd0af366", - "synced_at": "2026-11-21T00:54:16Z" + "run_id": 44851439106, + "head_sha": "628af2d402bb05279a959b3aad82bd168d69fe77", + "synced_at": "2026-11-21T01:46:57Z" } diff --git a/contracts/api-v1.openapi.json b/contracts/api-v1.openapi.json index 1a57e41..be555aa 100644 --- a/contracts/api-v1.openapi.json +++ b/contracts/api-v1.openapi.json @@ -6086,6 +6086,106 @@ ], "type": "object" }, + "PublishIn": { + "properties": { + "acknowledge": { + "default": false, + "type": "boolean" + }, + "published_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "slug": { + "anyOf": [ + { + "maxLength": 200, + "type": "string" + }, + { + "type": "null" + } + ] + }, + "source": { + "maxLength": 194, + "minLength": 1, + "type": "string" + }, + "summary": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "source" + ], + "type": "object" + }, + "PublishedOut": { + "properties": { + "card": { + "enum": [ + "posted", + "edited", + "none", + "off", + "unavailable" + ], + "type": "string" + }, + "copy": { + "anyOf": [ + { + "enum": [ + "written", + "removed", + "unavailable", + "links_unavailable" + ], + "type": "string" + }, + { + "type": "null" + } + ] + }, + "post_id": { + "format": "uuid", + "type": "string" + }, + "republished": { + "type": "boolean" + }, + "slug": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "post_id", + "slug", + "url", + "republished", + "card" + ], + "type": "object" + }, "ReadMarkRequest": { "properties": { "read_through": { @@ -10790,6 +10890,49 @@ ], "type": "object" }, + "WithdrawnOut": { + "properties": { + "already": { + "type": "boolean" + }, + "card": { + "enum": [ + "posted", + "edited", + "none", + "off", + "unavailable" + ], + "type": "string" + }, + "copy": { + "anyOf": [ + { + "enum": [ + "written", + "removed", + "unavailable", + "links_unavailable" + ], + "type": "string" + }, + { + "type": "null" + } + ] + }, + "post_id": { + "format": "uuid", + "type": "string" + } + }, + "required": [ + "post_id", + "already", + "card" + ], + "type": "object" + }, "_Connect": { "properties": { "installation_id": { @@ -22031,6 +22174,275 @@ ] } }, + "/api/v1/groups/{group_id}/blog/notes/{note_id}/check": { + "get": { + "parameters": [ + { + "in": "path", + "name": "group_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "path", + "name": "note_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "query", + "name": "published_at", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-blog" + ] + } + }, + "/api/v1/groups/{group_id}/blog/notes/{note_id}/publish": { + "post": { + "parameters": [ + { + "in": "path", + "name": "group_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "path", + "name": "note_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublishIn" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublishedOut" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-blog" + ] + } + }, + "/api/v1/groups/{group_id}/blog/posts": { + "get": { + "parameters": [ + { + "in": "path", + "name": "group_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-blog" + ] + } + }, + "/api/v1/groups/{group_id}/blog/posts/{post_id}/withdraw": { + "post": { + "parameters": [ + { + "in": "path", + "name": "group_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "path", + "name": "post_id", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WithdrawnOut" + } + } + }, + "description": "" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "" + } + }, + "tags": [ + "client-api-blog" + ] + } + }, "/api/v1/groups/{group_id}/default-notifications": { "post": { "parameters": [