Skip to content

Commit

Permalink
update polling endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelvukoje committed Feb 6, 2025
1 parent 93ea4cf commit 63521e8
Show file tree
Hide file tree
Showing 7 changed files with 430 additions and 414 deletions.
2 changes: 1 addition & 1 deletion docs/index-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
},
"info": {
"title": "index API",
"version": "v0.17.7"
"version": "v0.17.8"
},
"openapi": "3.0.0",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion docs/repository-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@
},
"info": {
"title": "repository API",
"version": "v0.17.7"
"version": "v0.17.8"
},
"openapi": "3.0.0",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion docs/spell-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
},
"info": {
"title": "spell API",
"version": "v0.17.7"
"version": "v0.17.8"
},
"openapi": "3.0.0",
"paths": {
Expand Down
82 changes: 44 additions & 38 deletions docs/user-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"elephant.user.ListInboxMessagesRequest": {
"properties": {
"before_id": {
"description": "Fetch messages with IDs before the given `before_id`. This is used for pagination to retrieve older messages.",
"description": "ID of the message before which to list messages.",
"type": "integer"
},
"size": {
"description": "The number of messages to include in the results (defaults to 10).",
"description": "Number of messages to include in the results (defaults to 10).",
"type": "integer"
}
},
Expand All @@ -65,41 +65,7 @@
},
"type": "object"
},
"elephant.user.PollInboxMessagesRequest": {
"type": "object"
},
"elephant.user.PollInboxMessagesResponse": {
"properties": {
"created": {
"description": "Created timestamp is the RFC3339 timestamp for when the message was created.",
"type": "string"
},
"created_by": {
"description": "Creator of the message (application sub).",
"type": "string"
},
"id": {
"description": "ID of the message.",
"type": "integer"
},
"payload": {
"$ref": "#/components/schemas/newsdoc.Document"
},
"recipient": {
"description": "Recipient of the message (user sub).",
"type": "string"
},
"updated": {
"description": "Updated timestamp is the RFC3339 timestamp for when the message was last updated.",
"type": "string"
}
},
"type": "object"
},
"elephant.user.PollMessagesRequest": {
"type": "object"
},
"elephant.user.PollMessagesResponse": {
"elephant.user.Message": {
"properties": {
"created": {
"description": "Created timestamp is the RFC3339 timestamp for when the message was created.",
Expand Down Expand Up @@ -139,6 +105,46 @@
},
"type": "object"
},
"elephant.user.PollInboxMessagesRequest": {
"properties": {
"after_id": {
"description": "ID of the message after which to start returning messages.",
"type": "integer"
}
},
"type": "object"
},
"elephant.user.PollInboxMessagesResponse": {
"properties": {
"messages": {
"items": {
"$ref": "#/components/schemas/elephant.user.InboxMessage"
},
"type": "array"
}
},
"type": "object"
},
"elephant.user.PollMessagesRequest": {
"properties": {
"after_id": {
"description": "ID of the message after which to start returning messages.",
"type": "integer"
}
},
"type": "object"
},
"elephant.user.PollMessagesResponse": {
"properties": {
"messages": {
"items": {
"$ref": "#/components/schemas/elephant.user.Message"
},
"type": "array"
}
},
"type": "object"
},
"elephant.user.PushInboxMessageRequest": {
"properties": {
"payload": {
Expand Down Expand Up @@ -345,7 +351,7 @@
},
"info": {
"title": "user API",
"version": "v0.17.7"
"version": "v0.17.8"
},
"openapi": "3.0.0",
"paths": {
Expand Down
Loading

0 comments on commit 63521e8

Please sign in to comment.