@teemill/chat
v1.3.0
Published
OpenAPI client for @teemill/chat
Readme
@teemill/[email protected]
This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:
Environment
- Node.js
- Webpack
- Browserify
Language level
- ES5 - you must have a Promises/A+ library installed
- ES6
Module system
- CommonJS
- ES6 module system
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)
Building
To build and compile the typescript sources to javascript use:
npm install
npm run buildPublishing
First build the package then run npm publish
Consuming
navigate to the folder of your consuming project and run one of the following commands.
published:
npm install @teemill/[email protected] --saveunPublished (not recommended):
npm install PATH_TO_GENERATED_PACKAGE --saveDocumentation for API Endpoints
All URIs are relative to https://api.localhost:8080
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- ChannelsApi | createChannel | POST /v1/chat/channels | Create channel ChannelsApi | deleteChannel | DELETE /v1/chat/channels/{channel} | Delete channel ChannelsApi | getChannel | GET /v1/chat/channels/{channel} | Get channel ChannelsApi | getChannelUser | GET /v1/chat/channels/{channel}/users/{user} | Get channel user ChannelsApi | getChannelUsers | GET /v1/chat/channels/{channel}/users | List channel users ChannelsApi | getChannels | GET /v1/chat/channels | List channels ChannelsApi | subscribeUsersToChannel | POST /v1/chat/channels/{channel}/users | Subscribe users to channel ChannelsApi | unsubscribeUsersFromChannel | DELETE /v1/chat/channels/{channel}/users | Unsubscribe users from channel ChannelsApi | updateChannel | PATCH /v1/chat/channels/{channel} | Update channel ChannelsApi | updateChannelUserSubscription | PATCH /v1/chat/channels/{channel}/users/{user} | Update channel user subscription MessagesApi | createMessage | POST /v1/chat/channels/{channel}/messages | Post message MessagesApi | createMessageReaction | POST /v1/chat/channels/{channel}/messages/{message}/reactions | React to a message MessagesApi | deleteMessage | DELETE /v1/chat/channels/{channel}/messages/{message} | Delete message MessagesApi | deleteMessageReaction | DELETE /v1/chat/channels/{channel}/messages/{message}/reactions | Remove reaction to a message MessagesApi | getMessage | GET /v1/chat/channels/{channel}/messages/{message} | Get message MessagesApi | getMessages | GET /v1/chat/channels/{channel}/messages | List messages MessagesApi | searchMessages | GET /v1/chat/channels/{channel}/messages/search | Search messages MessagesApi | updateMessage | PATCH /v1/chat/channels/{channel}/messages/{message} | Update message UsersApi | getUser | GET /v1/chat/users/{user} | Get user UsersApi | getUserMessagesMetadata | POST /v1/chat/users/{user}/messages/metadata | Get messages metadata UsersApi | readMessages | POST /v1/chat/users/{user}/messages/read | Mark messages as read UsersApi | updateSubscription | PATCH /v1/chat/users/{user}/subscriptions/{subscription} | Update subscription
Documentation For Models
- ApiError
- Channel
- ChannelEncryption
- ChannelMeta
- ChannelUser
- ChannelUsersResponse
- ChannelsResponse
- CreateChannelRequest
- CreateChannelRequestUsers
- CreateMessageReactionRequest
- CreateMessageRequest
- GetUserMessagesMetadata200Response
- GetUserMessagesMetadata200ResponseMessagesInner
- GetUserMessagesMetadataRequest
- LikeReaction
- Message
- MessageFile
- MessageFileMetadata
- MessageReference
- MessageUser
- MessagesResponse
- Reactions
- ReadMessages200Response
- ReadMessagesRequest
- ReadMessagesRequestMessages
- SearchMessages200Response
- SubscribeUsersToChannelRequest
- Subscription
- Subscription1
- SubscriptionData
- UpdateChannelRequest
- UpdateChannelUserSubscriptionRequest
- UpdateSubscriptionRequest
- UpdateSubscriptionRequestData
- User
Documentation For Authorization
Authentication schemes defined for the API:
api-key
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
session-oauth
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
