@chatbotkit/sdk 1.29.1 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client.cjs +54 -44
- package/dist/cjs/space/index.cjs +2 -0
- package/dist/cjs/space/index.d.ts +2 -0
- package/dist/cjs/space/storage/index.cjs +30 -0
- package/dist/cjs/space/storage/index.d.ts +11 -0
- package/dist/cjs/space/storage/v1.cjs +52 -0
- package/dist/cjs/space/storage/v1.d.ts +20 -0
- package/dist/cjs/types/ability.d.ts +22 -0
- package/dist/cjs/types/api/v1.d.ts +508 -0
- package/dist/esm/client.js +11 -1
- package/dist/esm/space/index.d.ts +2 -0
- package/dist/esm/space/index.js +2 -0
- package/dist/esm/space/storage/index.d.ts +11 -0
- package/dist/esm/space/storage/index.js +26 -0
- package/dist/esm/space/storage/v1.d.ts +20 -0
- package/dist/esm/space/storage/v1.js +44 -0
- package/dist/esm/types/ability.d.ts +22 -0
- package/dist/esm/types/api/v1.d.ts +508 -0
- package/package.json +52 -3
|
@@ -33,10 +33,12 @@ export type CbkAbilityName = 'abort'
|
|
|
33
33
|
| 'conversation/list[bot]'
|
|
34
34
|
| 'conversation/list[contact]'
|
|
35
35
|
| 'conversation/mcp/install[url]'
|
|
36
|
+
| 'conversation/mcp/uninstall[url]'
|
|
36
37
|
| 'conversation/search'
|
|
37
38
|
| 'conversation/search[bot]'
|
|
38
39
|
| 'conversation/search[contact]'
|
|
39
40
|
| 'conversation/skillset/install[by-id]'
|
|
41
|
+
| 'conversation/skillset/uninstall[by-id]'
|
|
40
42
|
| 'dataset/create'
|
|
41
43
|
| 'dataset/file/create[url]'
|
|
42
44
|
| 'dataset/list'
|
|
@@ -348,6 +350,11 @@ export type ConversationMcpInstallUrlParameters = {
|
|
|
348
350
|
url: string
|
|
349
351
|
}
|
|
350
352
|
|
|
353
|
+
export type ConversationMcpUninstallUrlParameters = {
|
|
354
|
+
/** the remote MCP URL to uninstall */
|
|
355
|
+
url: string
|
|
356
|
+
}
|
|
357
|
+
|
|
351
358
|
export type ConversationSearchParameters = {
|
|
352
359
|
/** the search query to find conversations */
|
|
353
360
|
query: string
|
|
@@ -368,6 +375,11 @@ export type ConversationSkillsetInstallByIdParameters = {
|
|
|
368
375
|
skillsetId: string
|
|
369
376
|
}
|
|
370
377
|
|
|
378
|
+
export type ConversationSkillsetUninstallByIdParameters = {
|
|
379
|
+
/** the skillset ID to uninstall */
|
|
380
|
+
skillsetId: string
|
|
381
|
+
}
|
|
382
|
+
|
|
371
383
|
export type DatasetCreateParameters = {
|
|
372
384
|
/** the name of the dataset */
|
|
373
385
|
name: string
|
|
@@ -1530,6 +1542,11 @@ export interface CbkAbilityRegistry {
|
|
|
1530
1542
|
description: 'Bring MCP (model context protocol) functions into context'
|
|
1531
1543
|
parameters: ConversationMcpInstallUrlParameters
|
|
1532
1544
|
}
|
|
1545
|
+
'conversation/mcp/uninstall[url]': {
|
|
1546
|
+
name: 'Uninstall MCP'
|
|
1547
|
+
description: 'Remove MCP (model context protocol) functions from context'
|
|
1548
|
+
parameters: ConversationMcpUninstallUrlParameters
|
|
1549
|
+
}
|
|
1533
1550
|
'conversation/search': {
|
|
1534
1551
|
name: 'Search Conversations'
|
|
1535
1552
|
description: 'Search conversations by query'
|
|
@@ -1550,6 +1567,11 @@ export interface CbkAbilityRegistry {
|
|
|
1550
1567
|
description: 'Bring a skillset into context by its ID'
|
|
1551
1568
|
parameters: ConversationSkillsetInstallByIdParameters
|
|
1552
1569
|
}
|
|
1570
|
+
'conversation/skillset/uninstall[by-id]': {
|
|
1571
|
+
name: 'Uninstall Skillset'
|
|
1572
|
+
description: 'Remove a skillset from context by its ID'
|
|
1573
|
+
parameters: ConversationSkillsetUninstallByIdParameters
|
|
1574
|
+
}
|
|
1553
1575
|
'dataset/create': {
|
|
1554
1576
|
name: 'Create Dataset'
|
|
1555
1577
|
description: 'Create a new dataset'
|
|
@@ -4772,6 +4772,147 @@ export interface paths {
|
|
|
4772
4772
|
patch?: never;
|
|
4773
4773
|
trace?: never;
|
|
4774
4774
|
};
|
|
4775
|
+
"/space/{spaceId}/storage/copy/{path}": {
|
|
4776
|
+
parameters: {
|
|
4777
|
+
query?: never;
|
|
4778
|
+
header?: never;
|
|
4779
|
+
path?: never;
|
|
4780
|
+
cookie?: never;
|
|
4781
|
+
};
|
|
4782
|
+
get?: never;
|
|
4783
|
+
put?: never;
|
|
4784
|
+
/**
|
|
4785
|
+
* Copy a file in space storage
|
|
4786
|
+
* @description Copy a file from one location to another within space storage. The
|
|
4787
|
+
* source file path is specified in the URL after /copy/. The
|
|
4788
|
+
* destinationPath in the request body specifies where to copy the file.
|
|
4789
|
+
*
|
|
4790
|
+
*/
|
|
4791
|
+
post: operations["copySpaceStoragePath"];
|
|
4792
|
+
delete?: never;
|
|
4793
|
+
options?: never;
|
|
4794
|
+
head?: never;
|
|
4795
|
+
patch?: never;
|
|
4796
|
+
trace?: never;
|
|
4797
|
+
};
|
|
4798
|
+
"/space/{spaceId}/storage/delete/{path}": {
|
|
4799
|
+
parameters: {
|
|
4800
|
+
query?: never;
|
|
4801
|
+
header?: never;
|
|
4802
|
+
path?: never;
|
|
4803
|
+
cookie?: never;
|
|
4804
|
+
};
|
|
4805
|
+
get?: never;
|
|
4806
|
+
put?: never;
|
|
4807
|
+
/**
|
|
4808
|
+
* Delete a file or directory from space storage
|
|
4809
|
+
* @description Delete a file or directory from space storage. The path is specified
|
|
4810
|
+
* in the URL after /delete/. If recursive is true and the path is a
|
|
4811
|
+
* directory, all files within it will be deleted.
|
|
4812
|
+
*
|
|
4813
|
+
*/
|
|
4814
|
+
post: operations["deleteSpaceStoragePath"];
|
|
4815
|
+
delete?: never;
|
|
4816
|
+
options?: never;
|
|
4817
|
+
head?: never;
|
|
4818
|
+
patch?: never;
|
|
4819
|
+
trace?: never;
|
|
4820
|
+
};
|
|
4821
|
+
"/space/{spaceId}/storage/download/{path}": {
|
|
4822
|
+
parameters: {
|
|
4823
|
+
query?: never;
|
|
4824
|
+
header?: never;
|
|
4825
|
+
path?: never;
|
|
4826
|
+
cookie?: never;
|
|
4827
|
+
};
|
|
4828
|
+
/**
|
|
4829
|
+
* Download a file from space storage
|
|
4830
|
+
* @description Download a file from space storage. The file path is specified in the
|
|
4831
|
+
* URL after /download/. Can return either the direct file content
|
|
4832
|
+
* (default) or a presigned download URL (when Accept: application/json).
|
|
4833
|
+
*
|
|
4834
|
+
*/
|
|
4835
|
+
get: operations["downloadSpaceStoragePath"];
|
|
4836
|
+
put?: never;
|
|
4837
|
+
post?: never;
|
|
4838
|
+
delete?: never;
|
|
4839
|
+
options?: never;
|
|
4840
|
+
head?: never;
|
|
4841
|
+
patch?: never;
|
|
4842
|
+
trace?: never;
|
|
4843
|
+
};
|
|
4844
|
+
"/space/{spaceId}/storage/list/{path}": {
|
|
4845
|
+
parameters: {
|
|
4846
|
+
query?: never;
|
|
4847
|
+
header?: never;
|
|
4848
|
+
path?: never;
|
|
4849
|
+
cookie?: never;
|
|
4850
|
+
};
|
|
4851
|
+
/**
|
|
4852
|
+
* List files and directories in space storage
|
|
4853
|
+
* @description List files and directories in the space's storage. Supports both flat
|
|
4854
|
+
* and recursive listing. The path is specified in the URL after /list/.
|
|
4855
|
+
* Omit the path to list the root directory.
|
|
4856
|
+
*
|
|
4857
|
+
*/
|
|
4858
|
+
get: operations["listSpaceStoragePath"];
|
|
4859
|
+
put?: never;
|
|
4860
|
+
post?: never;
|
|
4861
|
+
delete?: never;
|
|
4862
|
+
options?: never;
|
|
4863
|
+
head?: never;
|
|
4864
|
+
patch?: never;
|
|
4865
|
+
trace?: never;
|
|
4866
|
+
};
|
|
4867
|
+
"/space/{spaceId}/storage/move/{path}": {
|
|
4868
|
+
parameters: {
|
|
4869
|
+
query?: never;
|
|
4870
|
+
header?: never;
|
|
4871
|
+
path?: never;
|
|
4872
|
+
cookie?: never;
|
|
4873
|
+
};
|
|
4874
|
+
get?: never;
|
|
4875
|
+
put?: never;
|
|
4876
|
+
/**
|
|
4877
|
+
* Move (rename) a file in space storage
|
|
4878
|
+
* @description Move a file from one location to another within space storage, or
|
|
4879
|
+
* rename a file by moving it to a new path. The source file path is
|
|
4880
|
+
* specified in the URL after /move/. The destinationPath in the request
|
|
4881
|
+
* body is the target location for the file.
|
|
4882
|
+
*
|
|
4883
|
+
*/
|
|
4884
|
+
post: operations["moveSpaceStoragePath"];
|
|
4885
|
+
delete?: never;
|
|
4886
|
+
options?: never;
|
|
4887
|
+
head?: never;
|
|
4888
|
+
patch?: never;
|
|
4889
|
+
trace?: never;
|
|
4890
|
+
};
|
|
4891
|
+
"/space/{spaceId}/storage/upload/{path}": {
|
|
4892
|
+
parameters: {
|
|
4893
|
+
query?: never;
|
|
4894
|
+
header?: never;
|
|
4895
|
+
path?: never;
|
|
4896
|
+
cookie?: never;
|
|
4897
|
+
};
|
|
4898
|
+
get?: never;
|
|
4899
|
+
put?: never;
|
|
4900
|
+
/**
|
|
4901
|
+
* Upload a file to space storage
|
|
4902
|
+
* @description Upload a file to space storage. The file path is specified in the URL
|
|
4903
|
+
* after /upload/. The file can be specified either as a HTTP URL, a data
|
|
4904
|
+
* URL, a multipart/form-data, or as a raw file stream. The maximum file
|
|
4905
|
+
* size for uploads is determined dynamically based on user limits and
|
|
4906
|
+
* configuration, and may vary.
|
|
4907
|
+
*
|
|
4908
|
+
*/
|
|
4909
|
+
post: operations["uploadSpaceStoragePath"];
|
|
4910
|
+
delete?: never;
|
|
4911
|
+
options?: never;
|
|
4912
|
+
head?: never;
|
|
4913
|
+
patch?: never;
|
|
4914
|
+
trace?: never;
|
|
4915
|
+
};
|
|
4775
4916
|
"/space/{spaceId}/update": {
|
|
4776
4917
|
parameters: {
|
|
4777
4918
|
query?: never;
|
|
@@ -5004,6 +5145,23 @@ export interface paths {
|
|
|
5004
5145
|
patch?: never;
|
|
5005
5146
|
trace?: never;
|
|
5006
5147
|
};
|
|
5148
|
+
"/usage/list": {
|
|
5149
|
+
parameters: {
|
|
5150
|
+
query?: never;
|
|
5151
|
+
header?: never;
|
|
5152
|
+
path?: never;
|
|
5153
|
+
cookie?: never;
|
|
5154
|
+
};
|
|
5155
|
+
/** List usage records */
|
|
5156
|
+
get: operations["listUsageRecords"];
|
|
5157
|
+
put?: never;
|
|
5158
|
+
post?: never;
|
|
5159
|
+
delete?: never;
|
|
5160
|
+
options?: never;
|
|
5161
|
+
head?: never;
|
|
5162
|
+
patch?: never;
|
|
5163
|
+
trace?: never;
|
|
5164
|
+
};
|
|
5007
5165
|
"/usage/series/fetch": {
|
|
5008
5166
|
parameters: {
|
|
5009
5167
|
query?: never;
|
|
@@ -23796,6 +23954,281 @@ export interface operations {
|
|
|
23796
23954
|
};
|
|
23797
23955
|
};
|
|
23798
23956
|
};
|
|
23957
|
+
copySpaceStoragePath: {
|
|
23958
|
+
parameters: {
|
|
23959
|
+
query?: never;
|
|
23960
|
+
header?: never;
|
|
23961
|
+
path: {
|
|
23962
|
+
spaceId: string;
|
|
23963
|
+
path: string;
|
|
23964
|
+
};
|
|
23965
|
+
cookie?: never;
|
|
23966
|
+
};
|
|
23967
|
+
requestBody: {
|
|
23968
|
+
content: {
|
|
23969
|
+
"application/json": {
|
|
23970
|
+
/** @description The destination file path */
|
|
23971
|
+
destinationPath: string;
|
|
23972
|
+
};
|
|
23973
|
+
};
|
|
23974
|
+
};
|
|
23975
|
+
responses: {
|
|
23976
|
+
/** @description The file was copied successfully */
|
|
23977
|
+
200: {
|
|
23978
|
+
headers: {
|
|
23979
|
+
[name: string]: unknown;
|
|
23980
|
+
};
|
|
23981
|
+
content: {
|
|
23982
|
+
"application/json": {
|
|
23983
|
+
/** @description The destination file path */
|
|
23984
|
+
path: string;
|
|
23985
|
+
};
|
|
23986
|
+
};
|
|
23987
|
+
};
|
|
23988
|
+
/** @description An error response */
|
|
23989
|
+
default: {
|
|
23990
|
+
headers: {
|
|
23991
|
+
[name: string]: unknown;
|
|
23992
|
+
};
|
|
23993
|
+
content?: never;
|
|
23994
|
+
};
|
|
23995
|
+
};
|
|
23996
|
+
};
|
|
23997
|
+
deleteSpaceStoragePath: {
|
|
23998
|
+
parameters: {
|
|
23999
|
+
query?: never;
|
|
24000
|
+
header?: never;
|
|
24001
|
+
path: {
|
|
24002
|
+
spaceId: string;
|
|
24003
|
+
path: string;
|
|
24004
|
+
};
|
|
24005
|
+
cookie?: never;
|
|
24006
|
+
};
|
|
24007
|
+
requestBody?: {
|
|
24008
|
+
content: {
|
|
24009
|
+
"application/json": {
|
|
24010
|
+
/**
|
|
24011
|
+
* @description Whether to delete directory contents recursively
|
|
24012
|
+
* @default false
|
|
24013
|
+
*/
|
|
24014
|
+
recursive?: boolean;
|
|
24015
|
+
};
|
|
24016
|
+
};
|
|
24017
|
+
};
|
|
24018
|
+
responses: {
|
|
24019
|
+
/** @description The file or directory was deleted successfully */
|
|
24020
|
+
200: {
|
|
24021
|
+
headers: {
|
|
24022
|
+
[name: string]: unknown;
|
|
24023
|
+
};
|
|
24024
|
+
content: {
|
|
24025
|
+
"application/json": {
|
|
24026
|
+
/** @description The deleted file or directory path */
|
|
24027
|
+
path: string;
|
|
24028
|
+
};
|
|
24029
|
+
};
|
|
24030
|
+
};
|
|
24031
|
+
/** @description An error response */
|
|
24032
|
+
default: {
|
|
24033
|
+
headers: {
|
|
24034
|
+
[name: string]: unknown;
|
|
24035
|
+
};
|
|
24036
|
+
content?: never;
|
|
24037
|
+
};
|
|
24038
|
+
};
|
|
24039
|
+
};
|
|
24040
|
+
downloadSpaceStoragePath: {
|
|
24041
|
+
parameters: {
|
|
24042
|
+
query?: never;
|
|
24043
|
+
header?: never;
|
|
24044
|
+
path: {
|
|
24045
|
+
spaceId: string;
|
|
24046
|
+
path: string;
|
|
24047
|
+
};
|
|
24048
|
+
cookie?: never;
|
|
24049
|
+
};
|
|
24050
|
+
requestBody?: never;
|
|
24051
|
+
responses: {
|
|
24052
|
+
/** @description The file was downloaded successfully */
|
|
24053
|
+
200: {
|
|
24054
|
+
headers: {
|
|
24055
|
+
[name: string]: unknown;
|
|
24056
|
+
};
|
|
24057
|
+
content: {
|
|
24058
|
+
"application/json": {
|
|
24059
|
+
/** @description The ID of the file */
|
|
24060
|
+
id: string;
|
|
24061
|
+
/** @description The presigned URL to download the file */
|
|
24062
|
+
url: string;
|
|
24063
|
+
};
|
|
24064
|
+
"application/octet-stream": string;
|
|
24065
|
+
};
|
|
24066
|
+
};
|
|
24067
|
+
/** @description An error response */
|
|
24068
|
+
default: {
|
|
24069
|
+
headers: {
|
|
24070
|
+
[name: string]: unknown;
|
|
24071
|
+
};
|
|
24072
|
+
content?: never;
|
|
24073
|
+
};
|
|
24074
|
+
};
|
|
24075
|
+
};
|
|
24076
|
+
listSpaceStoragePath: {
|
|
24077
|
+
parameters: {
|
|
24078
|
+
query?: {
|
|
24079
|
+
recursive?: boolean;
|
|
24080
|
+
};
|
|
24081
|
+
header?: never;
|
|
24082
|
+
path: {
|
|
24083
|
+
spaceId: string;
|
|
24084
|
+
path: string;
|
|
24085
|
+
};
|
|
24086
|
+
cookie?: never;
|
|
24087
|
+
};
|
|
24088
|
+
requestBody?: never;
|
|
24089
|
+
responses: {
|
|
24090
|
+
/** @description The list of files was retrieved successfully */
|
|
24091
|
+
200: {
|
|
24092
|
+
headers: {
|
|
24093
|
+
[name: string]: unknown;
|
|
24094
|
+
};
|
|
24095
|
+
content: {
|
|
24096
|
+
"application/json": {
|
|
24097
|
+
items: {
|
|
24098
|
+
/** @description The ID of the file or directory */
|
|
24099
|
+
id?: string;
|
|
24100
|
+
/** @description The relative path of the file or directory */
|
|
24101
|
+
path?: string;
|
|
24102
|
+
/** @description The size of the file in bytes (0 for directories) */
|
|
24103
|
+
size?: number;
|
|
24104
|
+
/** @description The timestamp (ms) when the file was last modified */
|
|
24105
|
+
updatedAt?: number;
|
|
24106
|
+
/** @description Whether this is a directory */
|
|
24107
|
+
isDirectory?: boolean;
|
|
24108
|
+
}[];
|
|
24109
|
+
/** @description Token to use for next page of results */
|
|
24110
|
+
nextToken?: string;
|
|
24111
|
+
};
|
|
24112
|
+
};
|
|
24113
|
+
};
|
|
24114
|
+
/** @description An error response */
|
|
24115
|
+
default: {
|
|
24116
|
+
headers: {
|
|
24117
|
+
[name: string]: unknown;
|
|
24118
|
+
};
|
|
24119
|
+
content?: never;
|
|
24120
|
+
};
|
|
24121
|
+
};
|
|
24122
|
+
};
|
|
24123
|
+
moveSpaceStoragePath: {
|
|
24124
|
+
parameters: {
|
|
24125
|
+
query?: never;
|
|
24126
|
+
header?: never;
|
|
24127
|
+
path: {
|
|
24128
|
+
spaceId: string;
|
|
24129
|
+
path: string;
|
|
24130
|
+
};
|
|
24131
|
+
cookie?: never;
|
|
24132
|
+
};
|
|
24133
|
+
requestBody: {
|
|
24134
|
+
content: {
|
|
24135
|
+
"application/json": {
|
|
24136
|
+
/** @description The destination file path */
|
|
24137
|
+
destinationPath: string;
|
|
24138
|
+
};
|
|
24139
|
+
};
|
|
24140
|
+
};
|
|
24141
|
+
responses: {
|
|
24142
|
+
/** @description The file was moved successfully */
|
|
24143
|
+
200: {
|
|
24144
|
+
headers: {
|
|
24145
|
+
[name: string]: unknown;
|
|
24146
|
+
};
|
|
24147
|
+
content: {
|
|
24148
|
+
"application/json": {
|
|
24149
|
+
/** @description The destination file path */
|
|
24150
|
+
path: string;
|
|
24151
|
+
};
|
|
24152
|
+
};
|
|
24153
|
+
};
|
|
24154
|
+
/** @description An error response */
|
|
24155
|
+
default: {
|
|
24156
|
+
headers: {
|
|
24157
|
+
[name: string]: unknown;
|
|
24158
|
+
};
|
|
24159
|
+
content?: never;
|
|
24160
|
+
};
|
|
24161
|
+
};
|
|
24162
|
+
};
|
|
24163
|
+
uploadSpaceStoragePath: {
|
|
24164
|
+
parameters: {
|
|
24165
|
+
query?: never;
|
|
24166
|
+
header?: never;
|
|
24167
|
+
path: {
|
|
24168
|
+
spaceId: string;
|
|
24169
|
+
path: string;
|
|
24170
|
+
};
|
|
24171
|
+
cookie?: never;
|
|
24172
|
+
};
|
|
24173
|
+
requestBody: {
|
|
24174
|
+
content: {
|
|
24175
|
+
"application/json": {
|
|
24176
|
+
/** @description The file to upload either as http: or data: URL */
|
|
24177
|
+
file?: string;
|
|
24178
|
+
} | {
|
|
24179
|
+
/** @description The file definition to upload */
|
|
24180
|
+
file?: {
|
|
24181
|
+
/** @description The file type */
|
|
24182
|
+
type: string;
|
|
24183
|
+
/** @description The file size */
|
|
24184
|
+
size: number;
|
|
24185
|
+
/** @description Optional metadata */
|
|
24186
|
+
meta?: Record<string, never>;
|
|
24187
|
+
};
|
|
24188
|
+
};
|
|
24189
|
+
"multipart/form-data": {
|
|
24190
|
+
/**
|
|
24191
|
+
* Format: binary
|
|
24192
|
+
* @description The file to upload
|
|
24193
|
+
*/
|
|
24194
|
+
file: string;
|
|
24195
|
+
};
|
|
24196
|
+
"*/*": string;
|
|
24197
|
+
};
|
|
24198
|
+
};
|
|
24199
|
+
responses: {
|
|
24200
|
+
/** @description The file was uploaded successfully */
|
|
24201
|
+
200: {
|
|
24202
|
+
headers: {
|
|
24203
|
+
[name: string]: unknown;
|
|
24204
|
+
};
|
|
24205
|
+
content: {
|
|
24206
|
+
"application/json": {
|
|
24207
|
+
/** @description The ID of the uploaded file */
|
|
24208
|
+
id: string;
|
|
24209
|
+
/** @description The path where the file is stored */
|
|
24210
|
+
path: string;
|
|
24211
|
+
/** @description The request required to upload the file */
|
|
24212
|
+
uploadRequest?: {
|
|
24213
|
+
/** @description The HTTP method to use */
|
|
24214
|
+
method: string;
|
|
24215
|
+
/** @description The HTTP url to use */
|
|
24216
|
+
url: string;
|
|
24217
|
+
/** @description The HTTP headers to use */
|
|
24218
|
+
headers: Record<string, never>;
|
|
24219
|
+
};
|
|
24220
|
+
};
|
|
24221
|
+
};
|
|
24222
|
+
};
|
|
24223
|
+
/** @description An error response */
|
|
24224
|
+
default: {
|
|
24225
|
+
headers: {
|
|
24226
|
+
[name: string]: unknown;
|
|
24227
|
+
};
|
|
24228
|
+
content?: never;
|
|
24229
|
+
};
|
|
24230
|
+
};
|
|
24231
|
+
};
|
|
23799
24232
|
updateSpace: {
|
|
23800
24233
|
parameters: {
|
|
23801
24234
|
query?: never;
|
|
@@ -24651,6 +25084,81 @@ export interface operations {
|
|
|
24651
25084
|
};
|
|
24652
25085
|
};
|
|
24653
25086
|
};
|
|
25087
|
+
listUsageRecords: {
|
|
25088
|
+
parameters: {
|
|
25089
|
+
query?: {
|
|
25090
|
+
cursor?: string;
|
|
25091
|
+
order?: "asc" | "desc";
|
|
25092
|
+
take?: number;
|
|
25093
|
+
meta?: {
|
|
25094
|
+
[key: string]: string;
|
|
25095
|
+
};
|
|
25096
|
+
};
|
|
25097
|
+
header?: never;
|
|
25098
|
+
path?: never;
|
|
25099
|
+
cookie?: never;
|
|
25100
|
+
};
|
|
25101
|
+
requestBody?: never;
|
|
25102
|
+
responses: {
|
|
25103
|
+
/** @description The list of usage records was retrieved successfully */
|
|
25104
|
+
200: {
|
|
25105
|
+
headers: {
|
|
25106
|
+
[name: string]: unknown;
|
|
25107
|
+
};
|
|
25108
|
+
content: {
|
|
25109
|
+
"application/json": {
|
|
25110
|
+
items: {
|
|
25111
|
+
/** @description The associated name */
|
|
25112
|
+
name?: string;
|
|
25113
|
+
/** @description The associated description */
|
|
25114
|
+
description?: string;
|
|
25115
|
+
/** @description Meta data information */
|
|
25116
|
+
meta?: {
|
|
25117
|
+
[key: string]: unknown;
|
|
25118
|
+
};
|
|
25119
|
+
/** @description The instance ID */
|
|
25120
|
+
id: string;
|
|
25121
|
+
/** @description The timestamp (ms) when the instance was created */
|
|
25122
|
+
createdAt: number;
|
|
25123
|
+
/** @description The timestamp (ms) when the instance was updated */
|
|
25124
|
+
updatedAt: number;
|
|
25125
|
+
/** @description The usage type */
|
|
25126
|
+
type: string;
|
|
25127
|
+
/** @description The usage count */
|
|
25128
|
+
count: number;
|
|
25129
|
+
/** @description Related conversation ID if applicable */
|
|
25130
|
+
conversationId?: string;
|
|
25131
|
+
/** @description Related message ID if applicable */
|
|
25132
|
+
messageId?: string;
|
|
25133
|
+
/** @description Related task ID if applicable */
|
|
25134
|
+
taskId?: string;
|
|
25135
|
+
/** @description Related contact ID if applicable */
|
|
25136
|
+
contactId?: string;
|
|
25137
|
+
/** @description Related blueprint ID if applicable */
|
|
25138
|
+
blueprintId?: string;
|
|
25139
|
+
/** @description Related bot ID if applicable */
|
|
25140
|
+
botId?: string;
|
|
25141
|
+
/** @description Related dataset ID if applicable */
|
|
25142
|
+
datasetId?: string;
|
|
25143
|
+
/** @description Related skillset ID if applicable */
|
|
25144
|
+
skillsetId?: string;
|
|
25145
|
+
/** @description Related ability ID if applicable */
|
|
25146
|
+
abilityId?: string;
|
|
25147
|
+
}[];
|
|
25148
|
+
/** @description Cursor for fetching the next page */
|
|
25149
|
+
cursor: string;
|
|
25150
|
+
};
|
|
25151
|
+
};
|
|
25152
|
+
};
|
|
25153
|
+
/** @description An error response */
|
|
25154
|
+
default: {
|
|
25155
|
+
headers: {
|
|
25156
|
+
[name: string]: unknown;
|
|
25157
|
+
};
|
|
25158
|
+
content?: never;
|
|
25159
|
+
};
|
|
25160
|
+
};
|
|
25161
|
+
};
|
|
24654
25162
|
fetchUsageSeries: {
|
|
24655
25163
|
parameters: {
|
|
24656
25164
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.1",
|
|
4
4
|
"description": "The fastest way to build advanced AI chat bots",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -3028,6 +3028,56 @@
|
|
|
3028
3028
|
"default": "./dist/cjs/space/index.cjs"
|
|
3029
3029
|
}
|
|
3030
3030
|
},
|
|
3031
|
+
"./space/storage": {
|
|
3032
|
+
"import": {
|
|
3033
|
+
"types": "./dist/esm/space/storage/index.d.ts",
|
|
3034
|
+
"default": "./dist/esm/space/storage/index.js"
|
|
3035
|
+
},
|
|
3036
|
+
"require": {
|
|
3037
|
+
"types": "./dist/cjs/space/storage/index.d.ts",
|
|
3038
|
+
"default": "./dist/cjs/space/storage/index.cjs"
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
"./space/storage/index": {
|
|
3042
|
+
"import": {
|
|
3043
|
+
"types": "./dist/esm/space/storage/index.d.ts",
|
|
3044
|
+
"default": "./dist/esm/space/storage/index.js"
|
|
3045
|
+
},
|
|
3046
|
+
"require": {
|
|
3047
|
+
"types": "./dist/cjs/space/storage/index.d.ts",
|
|
3048
|
+
"default": "./dist/cjs/space/storage/index.cjs"
|
|
3049
|
+
}
|
|
3050
|
+
},
|
|
3051
|
+
"./space/storage/index.js": {
|
|
3052
|
+
"import": {
|
|
3053
|
+
"types": "./dist/esm/space/storage/index.d.ts",
|
|
3054
|
+
"default": "./dist/esm/space/storage/index.js"
|
|
3055
|
+
},
|
|
3056
|
+
"require": {
|
|
3057
|
+
"types": "./dist/cjs/space/storage/index.d.ts",
|
|
3058
|
+
"default": "./dist/cjs/space/storage/index.cjs"
|
|
3059
|
+
}
|
|
3060
|
+
},
|
|
3061
|
+
"./space/storage/v1": {
|
|
3062
|
+
"import": {
|
|
3063
|
+
"types": "./dist/esm/space/storage/v1.d.ts",
|
|
3064
|
+
"default": "./dist/esm/space/storage/v1.js"
|
|
3065
|
+
},
|
|
3066
|
+
"require": {
|
|
3067
|
+
"types": "./dist/cjs/space/storage/v1.d.ts",
|
|
3068
|
+
"default": "./dist/cjs/space/storage/v1.cjs"
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
"./space/storage/v1.js": {
|
|
3072
|
+
"import": {
|
|
3073
|
+
"types": "./dist/esm/space/storage/v1.d.ts",
|
|
3074
|
+
"default": "./dist/esm/space/storage/v1.js"
|
|
3075
|
+
},
|
|
3076
|
+
"require": {
|
|
3077
|
+
"types": "./dist/cjs/space/storage/v1.d.ts",
|
|
3078
|
+
"default": "./dist/cjs/space/storage/v1.cjs"
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3031
3081
|
"./space/v1": {
|
|
3032
3082
|
"import": {
|
|
3033
3083
|
"types": "./dist/esm/space/v1.d.ts",
|
|
@@ -3312,8 +3362,7 @@
|
|
|
3312
3362
|
},
|
|
3313
3363
|
"types": "./dist/cjs/index.d.ts",
|
|
3314
3364
|
"dependencies": {
|
|
3315
|
-
"
|
|
3316
|
-
"@chatbotkit/fetch": "1.29.0"
|
|
3365
|
+
"@chatbotkit/fetch": "1.30.0"
|
|
3317
3366
|
},
|
|
3318
3367
|
"devDependencies": {
|
|
3319
3368
|
"npm-run-all": "^4.1.5",
|