@chatbotkit/sdk 1.30.0 → 1.31.0

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.
@@ -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;
@@ -8105,8 +8246,8 @@ export interface operations {
8105
8246
  requestBody: {
8106
8247
  content: {
8107
8248
  "application/json": {
8108
- /** @description The text of the message to send */
8109
- text: string;
8249
+ /** @description The text of the message to send. Omit to continue receiving from the existing conversation state without sending a new user message. */
8250
+ text?: string;
8110
8251
  /** @description Known entities */
8111
8252
  entities?: {
8112
8253
  /** @description The entity type */
@@ -8495,8 +8636,8 @@ export interface operations {
8495
8636
  requestBody: {
8496
8637
  content: {
8497
8638
  "application/json": {
8498
- /** @description The text of the message to send */
8499
- text: string;
8639
+ /** @description The text of the message to send. Omit to continue receiving from the existing conversation state without sending a new user message. */
8640
+ text?: string;
8500
8641
  /** @description Known entities */
8501
8642
  entities?: {
8502
8643
  /** @description The entity type */
@@ -23813,6 +23954,281 @@ export interface operations {
23813
23954
  };
23814
23955
  };
23815
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
+ };
23816
24232
  updateSpace: {
23817
24233
  parameters: {
23818
24234
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbotkit/sdk",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
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",