@botpress/api 1.73.2 → 1.73.4

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.
@@ -1,5 +1,5 @@
1
1
  import * as opapi from '@bpinternal/opapi';
2
- export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
2
+ export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
3
3
  export declare const state: {
4
4
  operations: {
5
5
  createConversation: {
@@ -255,6 +255,8 @@ export declare const state: {
255
255
  properties: {
256
256
  currentTaskId: {
257
257
  type: "string";
258
+ deprecated: true;
259
+ description: string;
258
260
  };
259
261
  tags: {
260
262
  type: "object";
@@ -2027,282 +2029,6 @@ export declare const state: {
2027
2029
  tags: string[];
2028
2030
  parameters: {};
2029
2031
  };
2030
- getTask: {
2031
- name: string;
2032
- description: string;
2033
- method: "get";
2034
- path: string;
2035
- parameters: {
2036
- id: {
2037
- in: "path";
2038
- type: "string";
2039
- description: string;
2040
- };
2041
- };
2042
- section: "task";
2043
- response: {
2044
- description: string;
2045
- schema: {
2046
- type: "object";
2047
- properties: {
2048
- task: {
2049
- $ref: string;
2050
- };
2051
- };
2052
- required: string[];
2053
- title: string;
2054
- additionalProperties: false;
2055
- };
2056
- };
2057
- };
2058
- createTask: {
2059
- name: string;
2060
- description: string;
2061
- method: "post";
2062
- path: string;
2063
- requestBody: {
2064
- description: string;
2065
- schema: {
2066
- type: "object";
2067
- properties: {
2068
- title: {
2069
- type: "string";
2070
- maxLength: number;
2071
- description: string;
2072
- };
2073
- description: {
2074
- type: "string";
2075
- maxLength: number;
2076
- description: string;
2077
- };
2078
- type: {
2079
- type: "string";
2080
- maxLength: number;
2081
- description: string;
2082
- };
2083
- data: {
2084
- type: "object";
2085
- additionalProperties: true;
2086
- description: string;
2087
- };
2088
- parentTaskId: {
2089
- type: "string";
2090
- description: string;
2091
- };
2092
- conversationId: {
2093
- type: "string";
2094
- description: string;
2095
- };
2096
- userId: {
2097
- type: "string";
2098
- description: string;
2099
- };
2100
- timeoutAt: {
2101
- type: "string";
2102
- format: string;
2103
- description: string;
2104
- };
2105
- tags: {
2106
- type: "object";
2107
- additionalProperties: {
2108
- type: "string";
2109
- maxLength: number;
2110
- };
2111
- description: string;
2112
- };
2113
- };
2114
- required: string[];
2115
- title: string;
2116
- additionalProperties: false;
2117
- };
2118
- };
2119
- section: "task";
2120
- response: {
2121
- description: string;
2122
- status: 201;
2123
- schema: {
2124
- type: "object";
2125
- properties: {
2126
- task: {
2127
- $ref: string;
2128
- };
2129
- };
2130
- required: string[];
2131
- title: string;
2132
- additionalProperties: false;
2133
- };
2134
- };
2135
- parameters: {};
2136
- };
2137
- updateTask: {
2138
- name: string;
2139
- description: string;
2140
- method: "put";
2141
- path: string;
2142
- parameters: {
2143
- id: {
2144
- in: "path";
2145
- type: "string";
2146
- description: string;
2147
- };
2148
- };
2149
- requestBody: {
2150
- description: string;
2151
- schema: {
2152
- type: "object";
2153
- properties: {
2154
- title: {
2155
- type: "string";
2156
- description: string;
2157
- };
2158
- description: {
2159
- type: "string";
2160
- description: string;
2161
- };
2162
- data: {
2163
- type: "object";
2164
- additionalProperties: true;
2165
- description: string;
2166
- };
2167
- timeoutAt: {
2168
- type: "string";
2169
- format: string;
2170
- description: string;
2171
- };
2172
- status: {
2173
- type: "string";
2174
- enum: string[];
2175
- description: string;
2176
- };
2177
- tags: {
2178
- type: "object";
2179
- additionalProperties: {
2180
- type: "string";
2181
- maxLength: number;
2182
- };
2183
- description: string;
2184
- };
2185
- };
2186
- title: string;
2187
- additionalProperties: false;
2188
- };
2189
- };
2190
- section: "task";
2191
- response: {
2192
- description: string;
2193
- schema: {
2194
- type: "object";
2195
- properties: {
2196
- task: {
2197
- $ref: string;
2198
- };
2199
- };
2200
- required: string[];
2201
- title: string;
2202
- additionalProperties: false;
2203
- };
2204
- };
2205
- };
2206
- deleteTask: {
2207
- name: string;
2208
- description: string;
2209
- method: "delete";
2210
- path: string;
2211
- parameters: {
2212
- id: {
2213
- in: "path";
2214
- type: "string";
2215
- description: string;
2216
- };
2217
- };
2218
- section: "task";
2219
- response: {
2220
- description: string;
2221
- schema: {
2222
- type: "object";
2223
- title: string;
2224
- additionalProperties: false;
2225
- };
2226
- };
2227
- };
2228
- listTasks: {
2229
- name: string;
2230
- description: string;
2231
- method: "get";
2232
- path: string;
2233
- parameters: {
2234
- nextToken: {
2235
- in: "query";
2236
- description: string;
2237
- type: "string";
2238
- };
2239
- tags: {
2240
- in: "query";
2241
- type: "object";
2242
- schema: {
2243
- type: "object";
2244
- additionalProperties: {
2245
- type: "string";
2246
- };
2247
- };
2248
- description: string;
2249
- };
2250
- conversationId: {
2251
- in: "query";
2252
- type: "string";
2253
- description: string;
2254
- };
2255
- userId: {
2256
- in: "query";
2257
- type: "string";
2258
- description: string;
2259
- };
2260
- parentTaskId: {
2261
- in: "query";
2262
- type: "string";
2263
- description: string;
2264
- };
2265
- status: {
2266
- in: "query";
2267
- type: "string[]";
2268
- description: string;
2269
- enum: string[];
2270
- };
2271
- type: {
2272
- in: "query";
2273
- type: "string";
2274
- description: string;
2275
- };
2276
- };
2277
- section: "task";
2278
- response: {
2279
- description: string;
2280
- schema: {
2281
- type: "object";
2282
- properties: {
2283
- tasks: {
2284
- type: "array";
2285
- items: {
2286
- $ref: string;
2287
- };
2288
- };
2289
- meta: {
2290
- type: "object";
2291
- properties: {
2292
- nextToken: {
2293
- type: "string";
2294
- description: string;
2295
- };
2296
- };
2297
- additionalProperties: false;
2298
- };
2299
- };
2300
- required: string[];
2301
- title: string;
2302
- additionalProperties: false;
2303
- };
2304
- };
2305
- };
2306
2032
  createWorkflow: {
2307
2033
  name: string;
2308
2034
  description: string;
@@ -2775,6 +2501,10 @@ export declare const state: {
2775
2501
  schema: {
2776
2502
  type: "object";
2777
2503
  properties: {
2504
+ id: {
2505
+ type: "string";
2506
+ description: string;
2507
+ };
2778
2508
  name: {
2779
2509
  type: "string";
2780
2510
  description: string;
@@ -3410,6 +3140,13 @@ export declare const state: {
3410
3140
  };
3411
3141
  description: string;
3412
3142
  };
3143
+ attributes: {
3144
+ type: "object";
3145
+ additionalProperties: {
3146
+ type: "string";
3147
+ };
3148
+ description: string;
3149
+ };
3413
3150
  };
3414
3151
  required: string[];
3415
3152
  };
@@ -13183,6 +12920,13 @@ export declare const state: {
13183
12920
  };
13184
12921
  required: string[];
13185
12922
  };
12923
+ attributes: {
12924
+ type: "object";
12925
+ additionalProperties: {
12926
+ type: "string";
12927
+ };
12928
+ description: string;
12929
+ };
13186
12930
  };
13187
12931
  required: string[];
13188
12932
  };
@@ -18286,8 +18030,6 @@ export declare const state: {
18286
18030
  patchStateBody: true;
18287
18031
  callActionBody: true;
18288
18032
  configureIntegrationBody: true;
18289
- createTaskBody: true;
18290
- updateTaskBody: true;
18291
18033
  createWorkflowBody: true;
18292
18034
  updateWorkflowBody: true;
18293
18035
  getOrCreateWorkflowBody: true;
@@ -18382,11 +18124,6 @@ export declare const state: {
18382
18124
  patchStateResponse: true;
18383
18125
  callActionResponse: true;
18384
18126
  configureIntegrationResponse: true;
18385
- getTaskResponse: true;
18386
- createTaskResponse: true;
18387
- updateTaskResponse: true;
18388
- deleteTaskResponse: true;
18389
- listTasksResponse: true;
18390
18127
  createWorkflowResponse: true;
18391
18128
  getWorkflowResponse: true;
18392
18129
  updateWorkflowResponse: true;
@@ -18557,7 +18294,6 @@ export declare const state: {
18557
18294
  Event: true;
18558
18295
  Message: true;
18559
18296
  State: true;
18560
- Task: true;
18561
18297
  Workflow: true;
18562
18298
  Table: true;
18563
18299
  Column: true;
@@ -20708,6 +20444,7 @@ export declare const state: {
20708
20444
  type: "string";
20709
20445
  minLength: number;
20710
20446
  maxLength: number;
20447
+ deprecated: true;
20711
20448
  description: string;
20712
20449
  };
20713
20450
  currentWorkflowId: {
@@ -20933,92 +20670,6 @@ export declare const state: {
20933
20670
  additionalProperties: false;
20934
20671
  };
20935
20672
  };
20936
- Task: {
20937
- section: "task";
20938
- schema: {
20939
- type: "object";
20940
- properties: {
20941
- id: {
20942
- type: "string";
20943
- minLength: number;
20944
- maxLength: number;
20945
- description: string;
20946
- };
20947
- title: {
20948
- type: "string";
20949
- maxLength: number;
20950
- description: string;
20951
- };
20952
- description: {
20953
- type: "string";
20954
- maxLength: number;
20955
- description: string;
20956
- };
20957
- type: {
20958
- type: "string";
20959
- description: string;
20960
- };
20961
- data: {
20962
- type: "object";
20963
- additionalProperties: true;
20964
- description: string;
20965
- };
20966
- status: {
20967
- type: "string";
20968
- enum: string[];
20969
- description: string;
20970
- };
20971
- parentTaskId: {
20972
- type: "string";
20973
- minLength: number;
20974
- maxLength: number;
20975
- description: string;
20976
- };
20977
- conversationId: {
20978
- type: "string";
20979
- minLength: number;
20980
- maxLength: number;
20981
- description: string;
20982
- };
20983
- userId: {
20984
- type: "string";
20985
- minLength: number;
20986
- maxLength: number;
20987
- description: string;
20988
- };
20989
- timeoutAt: {
20990
- type: "string";
20991
- format: string;
20992
- description: string;
20993
- };
20994
- createdAt: {
20995
- type: "string";
20996
- format: string;
20997
- description: string;
20998
- };
20999
- updatedAt: {
21000
- type: "string";
21001
- format: string;
21002
- description: string;
21003
- };
21004
- failureReason: {
21005
- type: "string";
21006
- maxLength: number;
21007
- description: string;
21008
- };
21009
- tags: {
21010
- type: "object";
21011
- additionalProperties: {
21012
- type: "string";
21013
- };
21014
- description: string;
21015
- };
21016
- };
21017
- required: string[];
21018
- description: string;
21019
- additionalProperties: false;
21020
- };
21021
- };
21022
20673
  Workflow: {
21023
20674
  section: "workflow";
21024
20675
  schema: {
@@ -21621,12 +21272,6 @@ export declare const state: {
21621
21272
  name: "action";
21622
21273
  operations: string[];
21623
21274
  schema?: undefined;
21624
- } | {
21625
- description: string;
21626
- title: string;
21627
- name: "task";
21628
- operations: string[];
21629
- schema: string;
21630
21275
  } | {
21631
21276
  description: string;
21632
21277
  title: string;
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.73.2",
3
+ "version": "1.73.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
+ "dependencies": {
7
+ "@bpinternal/opapi": "1.0.0"
8
+ },
6
9
  "devDependencies": {
7
10
  "@bpinternal/es-node": "0.0.3",
8
11
  "esbuild": "0.27.1",
9
- "zod": "^3.24.4",
10
12
  "typescript": "5.9.3",
13
+ "zod": "^3.24.4",
11
14
  "@botpress/bridge": "1.8.1",
12
- "@botpress/common": "0.5.0",
13
15
  "@botpress/cloud-manager": "0.2.0",
16
+ "@botpress/common": "0.5.0",
14
17
  "@botpress/files-api": "0.18.0",
15
- "@bpinternal/const": "0.4.2",
16
18
  "@botpress/smaug": "1.0.1",
17
- "@bpinternal/tables-api": "0.17.2"
18
- },
19
- "dependencies": {
20
- "@bpinternal/opapi": "1.0.0"
19
+ "@bpinternal/tables-api": "0.17.2",
20
+ "@bpinternal/const": "0.4.2"
21
21
  },
22
22
  "scripts": {
23
23
  "openapi": "es-node openapi/generator.ts && pnpm run build",