-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c489bc
commit 6e10d92
Showing
37 changed files
with
773 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
packages/sdk/docs/classes/bot_session.BotSessionClient.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[@chatbotkit/sdk](../README.md) / [Modules](../modules.md) / [bot/session](../modules/bot_session.md) / BotSessionClient | ||
|
||
# Class: BotSessionClient | ||
|
||
[bot/session](../modules/bot_session.md).BotSessionClient | ||
|
||
Bot session client. | ||
|
||
## Hierarchy | ||
|
||
- [`ChatBotKitClient`](client.ChatBotKitClient.md) | ||
|
||
↳ **`BotSessionClient`** | ||
|
||
## Table of contents | ||
|
||
### Constructors | ||
|
||
- [constructor](bot_session.BotSessionClient.md#constructor) | ||
|
||
### Methods | ||
|
||
- [clientFetch](bot_session.BotSessionClient.md#clientfetch) | ||
- [create](bot_session.BotSessionClient.md#create) | ||
|
||
## Constructors | ||
|
||
### constructor | ||
|
||
• **new BotSessionClient**(`options`): [`BotSessionClient`](bot_session.BotSessionClient.md) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `options` | [`ChatBotKitClientOptions`](../modules/client.md#chatbotkitclientoptions) | | ||
|
||
#### Returns | ||
|
||
[`BotSessionClient`](bot_session.BotSessionClient.md) | ||
|
||
#### Overrides | ||
|
||
[ChatBotKitClient](client.ChatBotKitClient.md).[constructor](client.ChatBotKitClient.md#constructor) | ||
|
||
#### Defined in | ||
|
||
[bot/session/index.js:11](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/bot/session/index.js#L11) | ||
|
||
## Methods | ||
|
||
### clientFetch | ||
|
||
▸ **clientFetch**\<`T`, `U`\>(`path`, `options?`): [`ResponsePromise`](client.ResponsePromise.md)\<`T`, `U`\> | ||
|
||
#### Type parameters | ||
|
||
| Name | | ||
| :------ | | ||
| `T` | | ||
| `U` | | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `path` | `string` | | ||
| `options?` | `Object` | | ||
| `options.data?` | `Record`\<`string`, `any`\> | | ||
| `options.file?` | `Object` | | ||
| `options.file.data` | `string` \| `ArrayBuffer` | | ||
| `options.file.name?` | `string` | | ||
| `options.file.type?` | `string` | | ||
| `options.query?` | `Record`\<`string`, `any`\> | | ||
|
||
#### Returns | ||
|
||
[`ResponsePromise`](client.ResponsePromise.md)\<`T`, `U`\> | ||
|
||
#### Inherited from | ||
|
||
[ChatBotKitClient](client.ChatBotKitClient.md).[clientFetch](client.ChatBotKitClient.md#clientfetch) | ||
|
||
#### Defined in | ||
|
||
[client.js:211](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/client.js#L211) | ||
|
||
___ | ||
|
||
### create | ||
|
||
▸ **create**(`botId`, `request`): `Promise`\<[`BotSessionCreateResponse`](../modules/bot_session_v1.md#botsessioncreateresponse)\> | ||
|
||
Creates a new session. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `botId` | `string` | | ||
| `request` | [`BotSessionCreateRequest`](../modules/bot_session_v1.md#botsessioncreaterequest) | | ||
|
||
#### Returns | ||
|
||
`Promise`\<[`BotSessionCreateResponse`](../modules/bot_session_v1.md#botsessioncreateresponse)\> | ||
|
||
#### Defined in | ||
|
||
[bot/session/index.js:22](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/bot/session/index.js#L22) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.