diff --git a/specs/openapi.json b/specs/openapi.json index 5f236a8..3525bf2 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -3711,6 +3711,15 @@ ], "post": { "operationId": "create_interaction_response", + "parameters": [ + { + "name": "with_response", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], "requestBody": { "content": { "application/json": { @@ -3783,6 +3792,16 @@ "required": true }, "responses": { + "200": { + "description": "200 response for create_interaction_response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InteractionCallbackResponse" + } + } + } + }, "204": { "description": "204 response for create_interaction_response" }, @@ -15339,6 +15358,30 @@ "type" ] }, + "CreateMessageInteractionCallbackResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + }, + "message": { + "$ref": "#/components/schemas/MessageResponse" + } + }, + "required": [ + "type", + "message" + ] + }, "CreateOrUpdateThreadTagRequest": { "type": "object", "properties": { @@ -20923,6 +20966,30 @@ } } }, + "InteractionCallbackResponse": { + "type": "object", + "properties": { + "interaction": { + "$ref": "#/components/schemas/InteractionResponse" + }, + "resource": { + "oneOf": [ + { + "$ref": "#/components/schemas/CreateMessageInteractionCallbackResponse" + }, + { + "$ref": "#/components/schemas/UpdateMessageInteractionCallbackResponse" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "interaction" + ] + }, "InteractionCallbackTypes": { "type": "integer", "oneOf": [ @@ -20962,6 +21029,43 @@ "oneOf": [], "format": "int32" }, + "InteractionResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "type": { + "$ref": "#/components/schemas/InteractionTypes" + }, + "response_message_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "response_message_loading": { + "type": [ + "boolean", + "null" + ] + }, + "response_message_ephemeral": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "type" + ] + }, "InteractionTypes": { "type": "integer", "oneOf": [ @@ -28810,6 +28914,30 @@ "type" ] }, + "UpdateMessageInteractionCallbackResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 7 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + }, + "message": { + "$ref": "#/components/schemas/MessageResponse" + } + }, + "required": [ + "type", + "message" + ] + }, "UpdateOnboardingPromptRequest": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index bd0dcf3..114caa9 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -3711,6 +3711,15 @@ ], "post": { "operationId": "create_interaction_response", + "parameters": [ + { + "name": "with_response", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], "requestBody": { "content": { "application/json": { @@ -3783,6 +3792,16 @@ "required": true }, "responses": { + "200": { + "description": "200 response for create_interaction_response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InteractionCallbackResponse" + } + } + } + }, "204": { "description": "204 response for create_interaction_response" }, @@ -15390,6 +15409,30 @@ "type" ] }, + "CreateMessageInteractionCallbackResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + }, + "message": { + "$ref": "#/components/schemas/MessageResponse" + } + }, + "required": [ + "type", + "message" + ] + }, "CreateOrUpdateThreadTagRequest": { "type": "object", "properties": { @@ -21019,6 +21062,30 @@ } } }, + "InteractionCallbackResponse": { + "type": "object", + "properties": { + "interaction": { + "$ref": "#/components/schemas/InteractionResponse" + }, + "resource": { + "oneOf": [ + { + "$ref": "#/components/schemas/CreateMessageInteractionCallbackResponse" + }, + { + "$ref": "#/components/schemas/UpdateMessageInteractionCallbackResponse" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "interaction" + ] + }, "InteractionCallbackTypes": { "type": "integer", "oneOf": [ @@ -21074,6 +21141,43 @@ ], "format": "int32" }, + "InteractionResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "type": { + "$ref": "#/components/schemas/InteractionTypes" + }, + "response_message_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "response_message_loading": { + "type": [ + "boolean", + "null" + ] + }, + "response_message_ephemeral": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "type" + ] + }, "InteractionTypes": { "type": "integer", "oneOf": [ @@ -29270,6 +29374,30 @@ "type" ] }, + "UpdateMessageInteractionCallbackResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 7 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + }, + "message": { + "$ref": "#/components/schemas/MessageResponse" + } + }, + "required": [ + "type", + "message" + ] + }, "UpdateOnboardingPromptRequest": { "type": "object", "properties": {