Skip to content

Commit

Permalink
update API schema, bump to v2 after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenhoang committed Jul 25, 2024
1 parent dd7f4b1 commit e9aa947
Show file tree
Hide file tree
Showing 14 changed files with 507 additions and 538 deletions.
64 changes: 32 additions & 32 deletions typesense/api/client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 14 additions & 34 deletions typesense/api/generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,6 @@ components:
- api_key
- max_bytes
type: object
ConversationModelDeleteSchema:
properties:
id:
type: string
required:
- id
type: object
ConversationModelSchema:
allOf:
- $ref: '#/components/schemas/ConversationModelCreateAndUpdateSchema'
Expand All @@ -311,7 +304,7 @@ components:
type: object
type: array
id:
type: integer
type: string
last_updated:
type: integer
ttl:
Expand All @@ -330,16 +323,6 @@ components:
type: integer
required:
- ttl
ConversationsRetrieveSchema:
properties:
conversations:
items:
$ref: '#/components/schemas/ConversationSchema'
type: array
x-go-type: '[]*ConversationSchema'
required:
- conversations
type: object
ErrorResponse:
properties:
message:
Expand Down Expand Up @@ -2513,8 +2496,11 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationsRetrieveSchema'
description: List of all past conversations
items:
$ref: '#/components/schemas/ConversationSchema'
type: array
x-go-type: '[]*ConversationSchema'
description: A list of all past conversations
summary: List all past conversations
tags:
- conversations
Expand All @@ -2528,14 +2514,13 @@ paths:
name: conversationId
required: true
schema:
format: int64
type: integer
type: string
responses:
200:
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationDeleteSchema'
$ref: '#/components/schemas/ConversationSchema'
description: The conversation was successfully deleted
summary: Delete a past conversation
tags:
Expand All @@ -2549,17 +2534,13 @@ paths:
name: conversationId
required: true
schema:
format: int64
type: integer
type: string
responses:
200:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/ConversationSchema'
type: array
x-go-type: '[]*ConversationSchema'
$ref: '#/components/schemas/ConversationSchema'
description: A past conversation
summary: Retrieve a past conversation
tags:
Expand All @@ -2573,8 +2554,7 @@ paths:
name: conversationId
required: true
schema:
format: int64
type: integer
type: string
requestBody:
content:
application/json:
Expand All @@ -2586,7 +2566,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationUpdateSchema'
$ref: '#/components/schemas/ConversationSchema'
description: The conversation was successfully updated
summary: Update the TTL for a past conversation
tags:
Expand Down Expand Up @@ -2622,7 +2602,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationModelCreateAndUpdateSchema'
$ref: '#/components/schemas/ConversationModelSchema'
description: Created Conversation Model
400:
content:
Expand All @@ -2648,7 +2628,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationModelDeleteSchema'
$ref: '#/components/schemas/ConversationModelSchema'
description: The conversation model was successfully deleted
summary: Delete a conversation model
tags:
Expand Down
Loading

0 comments on commit e9aa947

Please sign in to comment.