Skip to content

Commit

Permalink
Updated docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdparchitect committed Jan 8, 2025
1 parent ea156db commit dbd3603
Show file tree
Hide file tree
Showing 17 changed files with 1,488 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[@chatbotkit/sdk](../README.md) / [Modules](../modules.md) / [index](../modules/index.md) / BlueprintClient
[@chatbotkit/sdk](../README.md) / [Modules](../modules.md) / [blueprint](../modules/blueprint.md) / BlueprintClient

# Class: BlueprintClient

[index](../modules/index.md).BlueprintClient
[blueprint](../modules/blueprint.md).BlueprintClient

Blueprint client.

Expand All @@ -16,23 +16,23 @@ Blueprint client.

### Constructors

- [constructor](index.BlueprintClient.md#constructor)
- [constructor](blueprint.BlueprintClient.md#constructor)

### Methods

- [clientFetch](index.BlueprintClient.md#clientfetch)
- [clone](index.BlueprintClient.md#clone)
- [create](index.BlueprintClient.md#create)
- [delete](index.BlueprintClient.md#delete)
- [fetch](index.BlueprintClient.md#fetch)
- [list](index.BlueprintClient.md#list)
- [update](index.BlueprintClient.md#update)
- [clientFetch](blueprint.BlueprintClient.md#clientfetch)
- [clone](blueprint.BlueprintClient.md#clone)
- [create](blueprint.BlueprintClient.md#create)
- [delete](blueprint.BlueprintClient.md#delete)
- [fetch](blueprint.BlueprintClient.md#fetch)
- [list](blueprint.BlueprintClient.md#list)
- [update](blueprint.BlueprintClient.md#update)

## Constructors

### constructor

**new BlueprintClient**(`options`): [`BlueprintClient`](index.BlueprintClient.md)
**new BlueprintClient**(`options`): [`BlueprintClient`](blueprint.BlueprintClient.md)

#### Parameters

Expand All @@ -42,7 +42,7 @@ Blueprint client.

#### Returns

[`BlueprintClient`](index.BlueprintClient.md)
[`BlueprintClient`](blueprint.BlueprintClient.md)

#### Overrides

Expand Down Expand Up @@ -99,7 +99,7 @@ ___

### clone

**clone**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintCloneResponse`\>
**clone**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintCloneResponse`](../modules/blueprint_v1.md#blueprintcloneresponse)\>

Clones a blueprint.

Expand All @@ -111,7 +111,7 @@ Clones a blueprint.

#### Returns

[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintCloneResponse`\>
[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintCloneResponse`](../modules/blueprint_v1.md#blueprintcloneresponse)\>

#### Defined in

Expand All @@ -121,19 +121,19 @@ ___

### create

**create**(`request`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintCreateResponse`\>
**create**(`request`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintCreateResponse`](../modules/blueprint_v1.md#blueprintcreateresponse)\>

Creates a new blueprint.

#### Parameters

| Name | Type |
| :------ | :------ |
| `request` | `BlueprintCreateRequest` |
| `request` | [`BlueprintCreateRequest`](../modules/blueprint_v1.md#blueprintcreaterequest) |

#### Returns

[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintCreateResponse`\>
[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintCreateResponse`](../modules/blueprint_v1.md#blueprintcreateresponse)\>

#### Defined in

Expand All @@ -143,7 +143,7 @@ ___

### delete

**delete**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintDeleteResponse`\>
**delete**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintDeleteResponse`](../modules/blueprint_v1.md#blueprintdeleteresponse)\>

Deletes the blueprint.

Expand All @@ -155,7 +155,7 @@ Deletes the blueprint.

#### Returns

[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintDeleteResponse`\>
[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintDeleteResponse`](../modules/blueprint_v1.md#blueprintdeleteresponse)\>

#### Defined in

Expand All @@ -165,7 +165,7 @@ ___

### fetch

**fetch**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintFetchResponse`\>
**fetch**(`blueprintId`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintFetchResponse`](../modules/blueprint_v1.md#blueprintfetchresponse)\>

Fetches a blueprint.

Expand All @@ -177,7 +177,7 @@ Fetches a blueprint.

#### Returns

[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintFetchResponse`\>
[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintFetchResponse`](../modules/blueprint_v1.md#blueprintfetchresponse)\>

#### Defined in

Expand All @@ -187,19 +187,19 @@ ___

### list

**list**(`request?`): [`ResponsePromise`](client.ResponsePromise.md)\<`BlueprintListResponse`, `BlueprintListStreamItemType`\>
**list**(`request?`): [`ResponsePromise`](client.ResponsePromise.md)\<[`BlueprintListResponse`](../modules/blueprint_v1.md#blueprintlistresponse), [`BlueprintListStreamItemType`](../modules/blueprint_v1.md#blueprintliststreamitemtype)\>

Retrieves a list of all blueprints.

#### Parameters

| Name | Type |
| :------ | :------ |
| `request?` | `BlueprintListRequest` |
| `request?` | [`BlueprintListRequest`](../modules/blueprint_v1.md#blueprintlistrequest) |

#### Returns

[`ResponsePromise`](client.ResponsePromise.md)\<`BlueprintListResponse`, `BlueprintListStreamItemType`\>
[`ResponsePromise`](client.ResponsePromise.md)\<[`BlueprintListResponse`](../modules/blueprint_v1.md#blueprintlistresponse), [`BlueprintListStreamItemType`](../modules/blueprint_v1.md#blueprintliststreamitemtype)\>

#### Defined in

Expand All @@ -209,7 +209,7 @@ ___

### update

**update**(`blueprintId`, `request`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintUpdateResponse`\>
**update**(`blueprintId`, `request`): [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintUpdateResponse`](../modules/blueprint_v1.md#blueprintupdateresponse)\>

Updates a blueprint.

Expand All @@ -218,11 +218,11 @@ Updates a blueprint.
| Name | Type |
| :------ | :------ |
| `blueprintId` | `string` |
| `request` | `BlueprintOptions` |
| `request` | [`BlueprintOptions`](../modules/blueprint_v1.md#blueprintoptions) |

#### Returns

[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<`BlueprintUpdateResponse`\>
[`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`BlueprintUpdateResponse`](../modules/blueprint_v1.md#blueprintupdateresponse)\>

#### Defined in

Expand Down
12 changes: 10 additions & 2 deletions packages/sdk/docs/classes/client.ChatBotKitClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

- **`ChatBotKitClient`**

[`BlueprintClient`](blueprint.BlueprintClient.md)

[`BotClient`](bot.BotClient.md)

[`BotSessionClient`](bot_session.BotSessionClient.md)
Expand Down Expand Up @@ -62,14 +64,20 @@

[`PartnerUserTokenClient`](partner_user_token.PartnerUserTokenClient.md)

[`PlatformAbilityClient`](platform_ability.PlatformAbilityClient.md)

[`PlatformClient`](platform.PlatformClient.md)

[`PlatformModelClient`](platform_model.PlatformModelClient.md)

[`PlatformSecretClient`](platform_secret.PlatformSecretClient.md)

[`SecretClient`](secret.SecretClient.md)

[`SkillsetAbilityClient`](skillset_ability.SkillsetAbilityClient.md)

[`SkillsetClient`](skillset.SkillsetClient.md)

[`BlueprintClient`](index.BlueprintClient.md)

## Table of contents

### Constructors
Expand Down
130 changes: 130 additions & 0 deletions packages/sdk/docs/classes/platform.PlatformClient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[@chatbotkit/sdk](../README.md) / [Modules](../modules.md) / [platform](../modules/platform.md) / PlatformClient

# Class: PlatformClient

[platform](../modules/platform.md).PlatformClient

Platform client.

## Hierarchy

- [`ChatBotKitClient`](client.ChatBotKitClient.md)

**`PlatformClient`**

## Table of contents

### Constructors

- [constructor](platform.PlatformClient.md#constructor)

### Properties

- [ability](platform.PlatformClient.md#ability)
- [secrets](platform.PlatformClient.md#secrets)
- [user](platform.PlatformClient.md#user)

### Methods

- [clientFetch](platform.PlatformClient.md#clientfetch)

## Constructors

### constructor

**new PlatformClient**(`options`): [`PlatformClient`](platform.PlatformClient.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `options` | [`ChatBotKitClientOptions`](../interfaces/client.ChatBotKitClientOptions.md) |

#### Returns

[`PlatformClient`](platform.PlatformClient.md)

#### Overrides

[ChatBotKitClient](client.ChatBotKitClient.md).[constructor](client.ChatBotKitClient.md#constructor)

#### Defined in

[platform/index.js:13](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/platform/index.js#L13)

## Properties

### ability

**ability**: [`PlatformAbilityClient`](platform_ability.PlatformAbilityClient.md)

#### Defined in

[platform/index.js:24](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/platform/index.js#L24)

___

### secrets

**secrets**: [`PlatformSecretClient`](platform_secret.PlatformSecretClient.md)

**`Note`**

overlapping name with the `secret` property

#### Defined in

[platform/index.js:30](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/platform/index.js#L30)

___

### user

**user**: [`PlatformModelClient`](platform_model.PlatformModelClient.md)

#### Defined in

[platform/index.js:19](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/platform/index.js#L19)

## 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.buffer?` | [`ArrayBuffer`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer ) |
| `options.endpoint?` | `string` |
| `options.external?` | `boolean` |
| `options.file?` | `Object` |
| `options.file.data` | `string` \| [`ArrayBuffer`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer ) |
| `options.file.name?` | `string` |
| `options.file.type?` | `string` |
| `options.headers?` | [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `any`\> |
| `options.method?` | `string` |
| `options.query?` | [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `any`\> |
| `options.record?` | [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `any`\> |

#### Returns

[`ResponsePromise`](client.ResponsePromise.md)\<`T`, `U`\>

#### Inherited from

[ChatBotKitClient](client.ChatBotKitClient.md).[clientFetch](client.ChatBotKitClient.md#clientfetch)

#### Defined in

[client.js:222](https://github.com/chatbotkit/node-sdk/blob/main/packages/sdk/src/client.js#L222)
Loading

0 comments on commit dbd3603

Please sign in to comment.