@botpress/api 1.58.0 → 1.60.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.
@@ -594,6 +594,11 @@ export declare const state: {
594
594
  enum: string[];
595
595
  description: string;
596
596
  };
597
+ lifecycleStatus: {
598
+ type: "string";
599
+ enum: string[];
600
+ description: string;
601
+ };
597
602
  ownerWorkspace: {
598
603
  type: "object";
599
604
  properties: {
@@ -1275,6 +1280,11 @@ export declare const state: {
1275
1280
  enum: string[];
1276
1281
  description: string;
1277
1282
  };
1283
+ lifecycleStatus: {
1284
+ type: "string";
1285
+ enum: string[];
1286
+ description: string;
1287
+ };
1278
1288
  secrets: {
1279
1289
  type: "array";
1280
1290
  items: {
@@ -1928,6 +1938,11 @@ export declare const state: {
1928
1938
  enum: string[];
1929
1939
  description: string;
1930
1940
  };
1941
+ lifecycleStatus: {
1942
+ type: "string";
1943
+ enum: string[];
1944
+ description: string;
1945
+ };
1931
1946
  secrets: {
1932
1947
  type: "array";
1933
1948
  items: {
@@ -2074,6 +2089,11 @@ export declare const state: {
2074
2089
  enum: string[];
2075
2090
  description: string;
2076
2091
  };
2092
+ lifecycleStatus: {
2093
+ type: "string";
2094
+ enum: string[];
2095
+ description: string;
2096
+ };
2077
2097
  };
2078
2098
  required: string[];
2079
2099
  };
@@ -2435,6 +2455,11 @@ export declare const state: {
2435
2455
  enum: string[];
2436
2456
  description: string;
2437
2457
  };
2458
+ lifecycleStatus: {
2459
+ type: "string";
2460
+ enum: string[];
2461
+ description: string;
2462
+ };
2438
2463
  };
2439
2464
  required: string[];
2440
2465
  additionalProperties: false;
@@ -2800,6 +2825,11 @@ export declare const state: {
2800
2825
  enum: string[];
2801
2826
  description: string;
2802
2827
  };
2828
+ lifecycleStatus: {
2829
+ type: "string";
2830
+ enum: string[];
2831
+ description: string;
2832
+ };
2803
2833
  };
2804
2834
  required: string[];
2805
2835
  additionalProperties: false;
@@ -3156,6 +3186,11 @@ export declare const state: {
3156
3186
  enum: string[];
3157
3187
  description: string;
3158
3188
  };
3189
+ lifecycleStatus: {
3190
+ type: "string";
3191
+ enum: string[];
3192
+ description: string;
3193
+ };
3159
3194
  };
3160
3195
  required: string[];
3161
3196
  additionalProperties: false;
@@ -4141,6 +4176,11 @@ export declare const state: {
4141
4176
  minLength: number;
4142
4177
  description: string;
4143
4178
  };
4179
+ description: {
4180
+ type: "string";
4181
+ maxLength: number;
4182
+ description: string;
4183
+ };
4144
4184
  medias: {
4145
4185
  type: "array";
4146
4186
  items: {
@@ -4623,6 +4663,11 @@ export declare const state: {
4623
4663
  minLength: number;
4624
4664
  description: string;
4625
4665
  };
4666
+ description: {
4667
+ type: "string";
4668
+ maxLength: number;
4669
+ description: string;
4670
+ };
4626
4671
  medias: {
4627
4672
  type: "array";
4628
4673
  items: {
@@ -10925,6 +10970,11 @@ export declare const state: {
10925
10970
  enum: string[];
10926
10971
  description: string;
10927
10972
  };
10973
+ lifecycleStatus: {
10974
+ type: "string";
10975
+ enum: string[];
10976
+ description: string;
10977
+ };
10928
10978
  matchedOn: {
10929
10979
  type: "object";
10930
10980
  properties: {
@@ -13003,6 +13053,11 @@ export declare const state: {
13003
13053
  enum: string[];
13004
13054
  description: string;
13005
13055
  };
13056
+ lifecycleStatus: {
13057
+ type: "string";
13058
+ enum: string[];
13059
+ description: string;
13060
+ };
13006
13061
  };
13007
13062
  required: string[];
13008
13063
  };
@@ -13939,6 +13994,11 @@ export declare const state: {
13939
13994
  enum: string[];
13940
13995
  description: string;
13941
13996
  };
13997
+ lifecycleStatus: {
13998
+ type: "string";
13999
+ enum: string[];
14000
+ description: string;
14001
+ };
13942
14002
  };
13943
14003
  required: string[];
13944
14004
  additionalProperties: false;
@@ -14061,6 +14121,11 @@ export declare const state: {
14061
14121
  enum: string[];
14062
14122
  description: string;
14063
14123
  };
14124
+ lifecycleStatus: {
14125
+ type: "string";
14126
+ enum: string[];
14127
+ description: string;
14128
+ };
14064
14129
  };
14065
14130
  required: string[];
14066
14131
  additionalProperties: false;
@@ -14359,6 +14424,10 @@ export declare const state: {
14359
14424
  type: "string";
14360
14425
  description: string;
14361
14426
  };
14427
+ description: {
14428
+ type: "string";
14429
+ description: string;
14430
+ };
14362
14431
  deployedAt: {
14363
14432
  type: "string";
14364
14433
  format: string;
@@ -14978,6 +15047,11 @@ export declare const state: {
14978
15047
  enum: string[];
14979
15048
  description: string;
14980
15049
  };
15050
+ lifecycleStatus: {
15051
+ type: "string";
15052
+ enum: string[];
15053
+ description: string;
15054
+ };
14981
15055
  secrets: {
14982
15056
  type: "array";
14983
15057
  items: {
@@ -15538,6 +15612,11 @@ export declare const state: {
15538
15612
  enum: string[];
15539
15613
  description: string;
15540
15614
  };
15615
+ lifecycleStatus: {
15616
+ type: "string";
15617
+ enum: string[];
15618
+ description: string;
15619
+ };
15541
15620
  };
15542
15621
  required: string[];
15543
15622
  additionalProperties: false;
@@ -1,5 +1,5 @@
1
1
  import * as opapi from '@bpinternal/opapi';
2
- export type State = opapi.State<'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow', 'x-bot-id' | 'x-integration-id' | 'x-integration-alias', 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag'>;
2
+ export type State = opapi.State<'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow', 'x-bot-id' | 'x-integration-id' | 'x-integration-alias', 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'ratelimit'>;
3
3
  export declare const state: {
4
4
  operations: {
5
5
  createConversation: {
@@ -3979,6 +3979,12 @@ export declare const state: {
3979
3979
  name: "tag";
3980
3980
  operations: string[];
3981
3981
  schema?: undefined;
3982
+ } | {
3983
+ description: string;
3984
+ title: string;
3985
+ name: "ratelimit";
3986
+ operations: never[];
3987
+ schema?: undefined;
3982
3988
  })[];
3983
3989
  options: {
3984
3990
  allowUnions: false;
@@ -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' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'ratelimit' | '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: {
@@ -2977,6 +2977,11 @@ export declare const state: {
2977
2977
  enum: string[];
2978
2978
  description: string;
2979
2979
  };
2980
+ lifecycleStatus: {
2981
+ type: "string";
2982
+ enum: string[];
2983
+ description: string;
2984
+ };
2980
2985
  ownerWorkspace: {
2981
2986
  type: "object";
2982
2987
  properties: {
@@ -3652,6 +3657,11 @@ export declare const state: {
3652
3657
  enum: string[];
3653
3658
  description: string;
3654
3659
  };
3660
+ lifecycleStatus: {
3661
+ type: "string";
3662
+ enum: string[];
3663
+ description: string;
3664
+ };
3655
3665
  secrets: {
3656
3666
  type: "array";
3657
3667
  items: {
@@ -4299,6 +4309,11 @@ export declare const state: {
4299
4309
  enum: string[];
4300
4310
  description: string;
4301
4311
  };
4312
+ lifecycleStatus: {
4313
+ type: "string";
4314
+ enum: string[];
4315
+ description: string;
4316
+ };
4302
4317
  secrets: {
4303
4318
  type: "array";
4304
4319
  items: {
@@ -4439,6 +4454,11 @@ export declare const state: {
4439
4454
  enum: string[];
4440
4455
  description: string;
4441
4456
  };
4457
+ lifecycleStatus: {
4458
+ type: "string";
4459
+ enum: string[];
4460
+ description: string;
4461
+ };
4442
4462
  };
4443
4463
  required: string[];
4444
4464
  };
@@ -4794,6 +4814,11 @@ export declare const state: {
4794
4814
  enum: string[];
4795
4815
  description: string;
4796
4816
  };
4817
+ lifecycleStatus: {
4818
+ type: "string";
4819
+ enum: string[];
4820
+ description: string;
4821
+ };
4797
4822
  };
4798
4823
  required: string[];
4799
4824
  additionalProperties: false;
@@ -5153,6 +5178,11 @@ export declare const state: {
5153
5178
  enum: string[];
5154
5179
  description: string;
5155
5180
  };
5181
+ lifecycleStatus: {
5182
+ type: "string";
5183
+ enum: string[];
5184
+ description: string;
5185
+ };
5156
5186
  };
5157
5187
  required: string[];
5158
5188
  additionalProperties: false;
@@ -5503,6 +5533,11 @@ export declare const state: {
5503
5533
  enum: string[];
5504
5534
  description: string;
5505
5535
  };
5536
+ lifecycleStatus: {
5537
+ type: "string";
5538
+ enum: string[];
5539
+ description: string;
5540
+ };
5506
5541
  };
5507
5542
  required: string[];
5508
5543
  additionalProperties: false;
@@ -6464,6 +6499,11 @@ export declare const state: {
6464
6499
  minLength: number;
6465
6500
  description: string;
6466
6501
  };
6502
+ description: {
6503
+ type: "string";
6504
+ maxLength: number;
6505
+ description: string;
6506
+ };
6467
6507
  medias: {
6468
6508
  type: "array";
6469
6509
  items: {
@@ -6921,6 +6961,11 @@ export declare const state: {
6921
6961
  minLength: number;
6922
6962
  description: string;
6923
6963
  };
6964
+ description: {
6965
+ type: "string";
6966
+ maxLength: number;
6967
+ description: string;
6968
+ };
6924
6969
  medias: {
6925
6970
  type: "array";
6926
6971
  items: {
@@ -12621,6 +12666,11 @@ export declare const state: {
12621
12666
  enum: string[];
12622
12667
  description: string;
12623
12668
  };
12669
+ lifecycleStatus: {
12670
+ type: "string";
12671
+ enum: string[];
12672
+ description: string;
12673
+ };
12624
12674
  matchedOn: {
12625
12675
  type: "object";
12626
12676
  properties: {
@@ -14480,6 +14530,11 @@ export declare const state: {
14480
14530
  enum: string[];
14481
14531
  description: string;
14482
14532
  };
14533
+ lifecycleStatus: {
14534
+ type: "string";
14535
+ enum: string[];
14536
+ description: string;
14537
+ };
14483
14538
  };
14484
14539
  required: string[];
14485
14540
  };
@@ -18156,6 +18211,11 @@ export declare const state: {
18156
18211
  enum: string[];
18157
18212
  description: string;
18158
18213
  };
18214
+ lifecycleStatus: {
18215
+ type: "string";
18216
+ enum: string[];
18217
+ description: string;
18218
+ };
18159
18219
  };
18160
18220
  required: string[];
18161
18221
  additionalProperties: false;
@@ -18278,6 +18338,11 @@ export declare const state: {
18278
18338
  enum: string[];
18279
18339
  description: string;
18280
18340
  };
18341
+ lifecycleStatus: {
18342
+ type: "string";
18343
+ enum: string[];
18344
+ description: string;
18345
+ };
18281
18346
  };
18282
18347
  required: string[];
18283
18348
  additionalProperties: false;
@@ -18576,6 +18641,10 @@ export declare const state: {
18576
18641
  type: "string";
18577
18642
  description: string;
18578
18643
  };
18644
+ description: {
18645
+ type: "string";
18646
+ description: string;
18647
+ };
18579
18648
  deployedAt: {
18580
18649
  type: "string";
18581
18650
  format: string;
@@ -19195,6 +19264,11 @@ export declare const state: {
19195
19264
  enum: string[];
19196
19265
  description: string;
19197
19266
  };
19267
+ lifecycleStatus: {
19268
+ type: "string";
19269
+ enum: string[];
19270
+ description: string;
19271
+ };
19198
19272
  secrets: {
19199
19273
  type: "array";
19200
19274
  items: {
@@ -19755,6 +19829,11 @@ export declare const state: {
19755
19829
  enum: string[];
19756
19830
  description: string;
19757
19831
  };
19832
+ lifecycleStatus: {
19833
+ type: "string";
19834
+ enum: string[];
19835
+ description: string;
19836
+ };
19758
19837
  };
19759
19838
  required: string[];
19760
19839
  additionalProperties: false;
@@ -21064,6 +21143,12 @@ export declare const state: {
21064
21143
  name: "tag";
21065
21144
  operations: string[];
21066
21145
  schema?: undefined;
21146
+ } | {
21147
+ description: string;
21148
+ title: string;
21149
+ name: "ratelimit";
21150
+ operations: never[];
21151
+ schema?: undefined;
21067
21152
  } | {
21068
21153
  title: string;
21069
21154
  description: string;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.58.0",
3
+ "version": "1.60.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "devDependencies": {
7
7
  "@bpinternal/es-node": "0.0.3",
8
- "esbuild": "^0.16.10",
8
+ "esbuild": "0.27.1",
9
9
  "zod": "^3.24.4",
10
- "typescript": "5.5.4",
10
+ "typescript": "5.9.3",
11
11
  "@botpress/bridge": "1.8.0",
12
12
  "@botpress/cloud-manager": "0.2.0",
13
13
  "@botpress/common": "0.5.0",
14
- "@bpinternal/const": "0.3.9",
15
14
  "@botpress/files-api": "0.18.0",
15
+ "@bpinternal/const": "0.4.1",
16
16
  "@bpinternal/tables-api": "0.17.2"
17
17
  },
18
18
  "dependencies": {
@@ -25,7 +25,7 @@
25
25
  "build:type": "tsc -p tsconfig.package.json --emitDeclarationOnly",
26
26
  "build:impl": "esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts",
27
27
  "build": "pnpm run build:type && pnpm run build:impl",
28
- "check:lint": "eslint --max-warnings 0 --cache --ext .ts,.tsx .",
28
+ "check:lint": "eslint --cache --ext .ts,.tsx .",
29
29
  "fix:lint": "eslint --fix --cache --ext .ts,.tsx ."
30
30
  }
31
31
  }