@botpress/api 0.11.0 → 0.12.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.
- package/dist/gen/state.d.ts +93 -4
- package/dist/index.js +105 -9
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +108 -9
package/dist/gen/state.d.ts
CHANGED
|
@@ -2863,6 +2863,10 @@ export declare const state: {
|
|
|
2863
2863
|
type: "string";
|
|
2864
2864
|
enum: string[];
|
|
2865
2865
|
};
|
|
2866
|
+
plan: {
|
|
2867
|
+
type: "string";
|
|
2868
|
+
enum: string[];
|
|
2869
|
+
};
|
|
2866
2870
|
blocked: {
|
|
2867
2871
|
type: "boolean";
|
|
2868
2872
|
};
|
|
@@ -2920,6 +2924,10 @@ export declare const state: {
|
|
|
2920
2924
|
type: "string";
|
|
2921
2925
|
enum: string[];
|
|
2922
2926
|
};
|
|
2927
|
+
plan: {
|
|
2928
|
+
type: "string";
|
|
2929
|
+
enum: string[];
|
|
2930
|
+
};
|
|
2923
2931
|
blocked: {
|
|
2924
2932
|
type: "boolean";
|
|
2925
2933
|
};
|
|
@@ -3160,6 +3168,10 @@ export declare const state: {
|
|
|
3160
3168
|
type: "string";
|
|
3161
3169
|
enum: string[];
|
|
3162
3170
|
};
|
|
3171
|
+
plan: {
|
|
3172
|
+
type: "string";
|
|
3173
|
+
enum: string[];
|
|
3174
|
+
};
|
|
3163
3175
|
blocked: {
|
|
3164
3176
|
type: "boolean";
|
|
3165
3177
|
};
|
|
@@ -3221,6 +3233,10 @@ export declare const state: {
|
|
|
3221
3233
|
type: "string";
|
|
3222
3234
|
enum: string[];
|
|
3223
3235
|
};
|
|
3236
|
+
plan: {
|
|
3237
|
+
type: "string";
|
|
3238
|
+
enum: string[];
|
|
3239
|
+
};
|
|
3224
3240
|
blocked: {
|
|
3225
3241
|
type: "boolean";
|
|
3226
3242
|
};
|
|
@@ -3307,6 +3323,10 @@ export declare const state: {
|
|
|
3307
3323
|
type: "string";
|
|
3308
3324
|
enum: string[];
|
|
3309
3325
|
};
|
|
3326
|
+
plan: {
|
|
3327
|
+
type: "string";
|
|
3328
|
+
enum: string[];
|
|
3329
|
+
};
|
|
3310
3330
|
blocked: {
|
|
3311
3331
|
type: "boolean";
|
|
3312
3332
|
};
|
|
@@ -3637,9 +3657,19 @@ export declare const state: {
|
|
|
3637
3657
|
additionalProperties: true;
|
|
3638
3658
|
description: string;
|
|
3639
3659
|
};
|
|
3660
|
+
identifier: {
|
|
3661
|
+
type: "object";
|
|
3662
|
+
properties: {
|
|
3663
|
+
required: {
|
|
3664
|
+
type: "boolean";
|
|
3665
|
+
};
|
|
3666
|
+
linkTemplateScript: {
|
|
3667
|
+
type: "string";
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
additionalProperties: false;
|
|
3671
|
+
};
|
|
3640
3672
|
};
|
|
3641
|
-
required: string[];
|
|
3642
|
-
description: string;
|
|
3643
3673
|
additionalProperties: false;
|
|
3644
3674
|
};
|
|
3645
3675
|
states: {
|
|
@@ -3731,6 +3761,15 @@ export declare const state: {
|
|
|
3731
3761
|
additionalProperties: false;
|
|
3732
3762
|
};
|
|
3733
3763
|
};
|
|
3764
|
+
identifier: {
|
|
3765
|
+
type: "object";
|
|
3766
|
+
properties: {
|
|
3767
|
+
extractScript: {
|
|
3768
|
+
type: "string";
|
|
3769
|
+
};
|
|
3770
|
+
};
|
|
3771
|
+
additionalProperties: false;
|
|
3772
|
+
};
|
|
3734
3773
|
channels: {
|
|
3735
3774
|
type: "object";
|
|
3736
3775
|
additionalProperties: {
|
|
@@ -3961,9 +4000,20 @@ export declare const state: {
|
|
|
3961
4000
|
additionalProperties: true;
|
|
3962
4001
|
description: string;
|
|
3963
4002
|
};
|
|
4003
|
+
identifier: {
|
|
4004
|
+
type: "object";
|
|
4005
|
+
properties: {
|
|
4006
|
+
linkTemplateScript: {
|
|
4007
|
+
type: "string";
|
|
4008
|
+
nullable: true;
|
|
4009
|
+
};
|
|
4010
|
+
required: {
|
|
4011
|
+
type: "boolean";
|
|
4012
|
+
};
|
|
4013
|
+
};
|
|
4014
|
+
additionalProperties: false;
|
|
4015
|
+
};
|
|
3964
4016
|
};
|
|
3965
|
-
required: string[];
|
|
3966
|
-
description: string;
|
|
3967
4017
|
additionalProperties: false;
|
|
3968
4018
|
};
|
|
3969
4019
|
channels: {
|
|
@@ -4075,6 +4125,16 @@ export declare const state: {
|
|
|
4075
4125
|
additionalProperties: false;
|
|
4076
4126
|
};
|
|
4077
4127
|
};
|
|
4128
|
+
identifier: {
|
|
4129
|
+
type: "object";
|
|
4130
|
+
properties: {
|
|
4131
|
+
extractScript: {
|
|
4132
|
+
type: "string";
|
|
4133
|
+
nullable: true;
|
|
4134
|
+
};
|
|
4135
|
+
};
|
|
4136
|
+
additionalProperties: false;
|
|
4137
|
+
};
|
|
4078
4138
|
actions: {
|
|
4079
4139
|
type: "object";
|
|
4080
4140
|
additionalProperties: {
|
|
@@ -5307,6 +5367,17 @@ export declare const state: {
|
|
|
5307
5367
|
format: string;
|
|
5308
5368
|
description: string;
|
|
5309
5369
|
};
|
|
5370
|
+
identifier: {
|
|
5371
|
+
type: "object";
|
|
5372
|
+
properties: {
|
|
5373
|
+
extractScript: {
|
|
5374
|
+
type: "string";
|
|
5375
|
+
description: string;
|
|
5376
|
+
};
|
|
5377
|
+
};
|
|
5378
|
+
description: string;
|
|
5379
|
+
additionalProperties: false;
|
|
5380
|
+
};
|
|
5310
5381
|
name: {
|
|
5311
5382
|
type: "string";
|
|
5312
5383
|
description: string;
|
|
@@ -5318,6 +5389,20 @@ export declare const state: {
|
|
|
5318
5389
|
configuration: {
|
|
5319
5390
|
type: "object";
|
|
5320
5391
|
properties: {
|
|
5392
|
+
identifier: {
|
|
5393
|
+
type: "object";
|
|
5394
|
+
properties: {
|
|
5395
|
+
linkTemplateScript: {
|
|
5396
|
+
type: "string";
|
|
5397
|
+
};
|
|
5398
|
+
required: {
|
|
5399
|
+
type: "boolean";
|
|
5400
|
+
};
|
|
5401
|
+
};
|
|
5402
|
+
required: string[];
|
|
5403
|
+
description: string;
|
|
5404
|
+
additionalProperties: false;
|
|
5405
|
+
};
|
|
5321
5406
|
schema: {
|
|
5322
5407
|
type: "object";
|
|
5323
5408
|
additionalProperties: true;
|
|
@@ -5630,6 +5715,10 @@ export declare const state: {
|
|
|
5630
5715
|
type: "string";
|
|
5631
5716
|
enum: string[];
|
|
5632
5717
|
};
|
|
5718
|
+
plan: {
|
|
5719
|
+
type: "string";
|
|
5720
|
+
enum: string[];
|
|
5721
|
+
};
|
|
5633
5722
|
blocked: {
|
|
5634
5723
|
type: "boolean";
|
|
5635
5724
|
};
|
package/dist/index.js
CHANGED
|
@@ -428801,6 +428801,10 @@ var state = {
|
|
|
428801
428801
|
type: "string",
|
|
428802
428802
|
enum: ["free", "premium"]
|
|
428803
428803
|
},
|
|
428804
|
+
plan: {
|
|
428805
|
+
type: "string",
|
|
428806
|
+
enum: ["community", "team", "enterprise"]
|
|
428807
|
+
},
|
|
428804
428808
|
blocked: {
|
|
428805
428809
|
type: "boolean"
|
|
428806
428810
|
},
|
|
@@ -428816,6 +428820,7 @@ var state = {
|
|
|
428816
428820
|
"updatedAt",
|
|
428817
428821
|
"botCount",
|
|
428818
428822
|
"accountType",
|
|
428823
|
+
"plan",
|
|
428819
428824
|
"blocked",
|
|
428820
428825
|
"spendingLimit"
|
|
428821
428826
|
],
|
|
@@ -428868,6 +428873,10 @@ var state = {
|
|
|
428868
428873
|
type: "string",
|
|
428869
428874
|
enum: ["free", "premium"]
|
|
428870
428875
|
},
|
|
428876
|
+
plan: {
|
|
428877
|
+
type: "string",
|
|
428878
|
+
enum: ["community", "team", "enterprise"]
|
|
428879
|
+
},
|
|
428871
428880
|
blocked: {
|
|
428872
428881
|
type: "boolean"
|
|
428873
428882
|
},
|
|
@@ -428883,6 +428892,7 @@ var state = {
|
|
|
428883
428892
|
"updatedAt",
|
|
428884
428893
|
"botCount",
|
|
428885
428894
|
"accountType",
|
|
428895
|
+
"plan",
|
|
428886
428896
|
"blocked",
|
|
428887
428897
|
"spendingLimit"
|
|
428888
428898
|
],
|
|
@@ -429166,6 +429176,10 @@ var state = {
|
|
|
429166
429176
|
type: "string",
|
|
429167
429177
|
enum: ["free", "premium"]
|
|
429168
429178
|
},
|
|
429179
|
+
plan: {
|
|
429180
|
+
type: "string",
|
|
429181
|
+
enum: ["community", "team", "enterprise"]
|
|
429182
|
+
},
|
|
429169
429183
|
blocked: {
|
|
429170
429184
|
type: "boolean"
|
|
429171
429185
|
},
|
|
@@ -429181,6 +429195,7 @@ var state = {
|
|
|
429181
429195
|
"updatedAt",
|
|
429182
429196
|
"botCount",
|
|
429183
429197
|
"accountType",
|
|
429198
|
+
"plan",
|
|
429184
429199
|
"blocked",
|
|
429185
429200
|
"spendingLimit"
|
|
429186
429201
|
],
|
|
@@ -429237,6 +429252,10 @@ var state = {
|
|
|
429237
429252
|
type: "string",
|
|
429238
429253
|
enum: ["free", "premium"]
|
|
429239
429254
|
},
|
|
429255
|
+
plan: {
|
|
429256
|
+
type: "string",
|
|
429257
|
+
enum: ["community", "team", "enterprise"]
|
|
429258
|
+
},
|
|
429240
429259
|
blocked: {
|
|
429241
429260
|
type: "boolean"
|
|
429242
429261
|
},
|
|
@@ -429252,6 +429271,7 @@ var state = {
|
|
|
429252
429271
|
"updatedAt",
|
|
429253
429272
|
"botCount",
|
|
429254
429273
|
"accountType",
|
|
429274
|
+
"plan",
|
|
429255
429275
|
"blocked",
|
|
429256
429276
|
"spendingLimit"
|
|
429257
429277
|
],
|
|
@@ -429333,6 +429353,10 @@ var state = {
|
|
|
429333
429353
|
type: "string",
|
|
429334
429354
|
enum: ["free", "premium"]
|
|
429335
429355
|
},
|
|
429356
|
+
plan: {
|
|
429357
|
+
type: "string",
|
|
429358
|
+
enum: ["community", "team", "enterprise"]
|
|
429359
|
+
},
|
|
429336
429360
|
blocked: {
|
|
429337
429361
|
type: "boolean"
|
|
429338
429362
|
},
|
|
@@ -429348,6 +429372,7 @@ var state = {
|
|
|
429348
429372
|
"updatedAt",
|
|
429349
429373
|
"botCount",
|
|
429350
429374
|
"accountType",
|
|
429375
|
+
"plan",
|
|
429351
429376
|
"blocked",
|
|
429352
429377
|
"spendingLimit"
|
|
429353
429378
|
],
|
|
@@ -429733,10 +429758,20 @@ var state = {
|
|
|
429733
429758
|
type: "object",
|
|
429734
429759
|
additionalProperties: true,
|
|
429735
429760
|
description: "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
429761
|
+
},
|
|
429762
|
+
identifier: {
|
|
429763
|
+
type: "object",
|
|
429764
|
+
properties: {
|
|
429765
|
+
required: {
|
|
429766
|
+
type: "boolean"
|
|
429767
|
+
},
|
|
429768
|
+
linkTemplateScript: {
|
|
429769
|
+
type: "string"
|
|
429770
|
+
}
|
|
429771
|
+
},
|
|
429772
|
+
additionalProperties: false
|
|
429736
429773
|
}
|
|
429737
429774
|
},
|
|
429738
|
-
required: ["schema"],
|
|
429739
|
-
description: "Configuration definition",
|
|
429740
429775
|
additionalProperties: false
|
|
429741
429776
|
},
|
|
429742
429777
|
states: {
|
|
@@ -429828,6 +429863,15 @@ var state = {
|
|
|
429828
429863
|
additionalProperties: false
|
|
429829
429864
|
}
|
|
429830
429865
|
},
|
|
429866
|
+
identifier: {
|
|
429867
|
+
type: "object",
|
|
429868
|
+
properties: {
|
|
429869
|
+
extractScript: {
|
|
429870
|
+
type: "string"
|
|
429871
|
+
}
|
|
429872
|
+
},
|
|
429873
|
+
additionalProperties: false
|
|
429874
|
+
},
|
|
429831
429875
|
channels: {
|
|
429832
429876
|
type: "object",
|
|
429833
429877
|
additionalProperties: {
|
|
@@ -430057,10 +430101,21 @@ var state = {
|
|
|
430057
430101
|
type: "object",
|
|
430058
430102
|
additionalProperties: true,
|
|
430059
430103
|
description: "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
430104
|
+
},
|
|
430105
|
+
identifier: {
|
|
430106
|
+
type: "object",
|
|
430107
|
+
properties: {
|
|
430108
|
+
linkTemplateScript: {
|
|
430109
|
+
type: "string",
|
|
430110
|
+
nullable: true
|
|
430111
|
+
},
|
|
430112
|
+
required: {
|
|
430113
|
+
type: "boolean"
|
|
430114
|
+
}
|
|
430115
|
+
},
|
|
430116
|
+
additionalProperties: false
|
|
430060
430117
|
}
|
|
430061
430118
|
},
|
|
430062
|
-
required: ["schema"],
|
|
430063
|
-
description: "Configuration definition",
|
|
430064
430119
|
additionalProperties: false
|
|
430065
430120
|
},
|
|
430066
430121
|
channels: {
|
|
@@ -430172,6 +430227,16 @@ var state = {
|
|
|
430172
430227
|
additionalProperties: false
|
|
430173
430228
|
}
|
|
430174
430229
|
},
|
|
430230
|
+
identifier: {
|
|
430231
|
+
type: "object",
|
|
430232
|
+
properties: {
|
|
430233
|
+
extractScript: {
|
|
430234
|
+
type: "string",
|
|
430235
|
+
nullable: true
|
|
430236
|
+
}
|
|
430237
|
+
},
|
|
430238
|
+
additionalProperties: false
|
|
430239
|
+
},
|
|
430175
430240
|
actions: {
|
|
430176
430241
|
type: "object",
|
|
430177
430242
|
additionalProperties: {
|
|
@@ -430924,7 +430989,7 @@ var state = {
|
|
|
430924
430989
|
title: "Botpress API",
|
|
430925
430990
|
description: "API for Botpress Cloud",
|
|
430926
430991
|
server: "https://api.botpress.cloud",
|
|
430927
|
-
version: "0.
|
|
430992
|
+
version: "0.12.0",
|
|
430928
430993
|
prefix: "v1"
|
|
430929
430994
|
},
|
|
430930
430995
|
errors: [
|
|
@@ -431537,6 +431602,17 @@ var state = {
|
|
|
431537
431602
|
format: "date-time",
|
|
431538
431603
|
description: "Updating date of the [Integration](#schema_integration) in ISO 8601 format"
|
|
431539
431604
|
},
|
|
431605
|
+
identifier: {
|
|
431606
|
+
type: "object",
|
|
431607
|
+
properties: {
|
|
431608
|
+
extractScript: {
|
|
431609
|
+
type: "string",
|
|
431610
|
+
description: "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth"
|
|
431611
|
+
}
|
|
431612
|
+
},
|
|
431613
|
+
description: "Global identifier configuration of the [Integration](#schema_integration)",
|
|
431614
|
+
additionalProperties: false
|
|
431615
|
+
},
|
|
431540
431616
|
name: {
|
|
431541
431617
|
type: "string",
|
|
431542
431618
|
description: "Name of the [Integration](#schema_integration)"
|
|
@@ -431548,13 +431624,27 @@ var state = {
|
|
|
431548
431624
|
configuration: {
|
|
431549
431625
|
type: "object",
|
|
431550
431626
|
properties: {
|
|
431627
|
+
identifier: {
|
|
431628
|
+
type: "object",
|
|
431629
|
+
properties: {
|
|
431630
|
+
linkTemplateScript: {
|
|
431631
|
+
type: "string"
|
|
431632
|
+
},
|
|
431633
|
+
required: {
|
|
431634
|
+
type: "boolean"
|
|
431635
|
+
}
|
|
431636
|
+
},
|
|
431637
|
+
required: ["required"],
|
|
431638
|
+
description: "Identifier configuration of the [Integration](#schema_integration)",
|
|
431639
|
+
additionalProperties: false
|
|
431640
|
+
},
|
|
431551
431641
|
schema: {
|
|
431552
431642
|
type: "object",
|
|
431553
431643
|
additionalProperties: true,
|
|
431554
431644
|
description: "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
431555
431645
|
}
|
|
431556
431646
|
},
|
|
431557
|
-
required: ["
|
|
431647
|
+
required: ["identifier"],
|
|
431558
431648
|
description: "Configuration definition",
|
|
431559
431649
|
additionalProperties: false
|
|
431560
431650
|
},
|
|
@@ -431833,6 +431923,7 @@ var state = {
|
|
|
431833
431923
|
"id",
|
|
431834
431924
|
"createdAt",
|
|
431835
431925
|
"updatedAt",
|
|
431926
|
+
"identifier",
|
|
431836
431927
|
"name",
|
|
431837
431928
|
"version",
|
|
431838
431929
|
"configuration",
|
|
@@ -431877,6 +431968,10 @@ var state = {
|
|
|
431877
431968
|
type: "string",
|
|
431878
431969
|
enum: ["free", "premium"]
|
|
431879
431970
|
},
|
|
431971
|
+
plan: {
|
|
431972
|
+
type: "string",
|
|
431973
|
+
enum: ["community", "team", "enterprise"]
|
|
431974
|
+
},
|
|
431880
431975
|
blocked: {
|
|
431881
431976
|
type: "boolean"
|
|
431882
431977
|
},
|
|
@@ -431892,6 +431987,7 @@ var state = {
|
|
|
431892
431987
|
"updatedAt",
|
|
431893
431988
|
"botCount",
|
|
431894
431989
|
"accountType",
|
|
431990
|
+
"plan",
|
|
431895
431991
|
"blocked",
|
|
431896
431992
|
"spendingLimit"
|
|
431897
431993
|
],
|
|
@@ -432094,7 +432190,7 @@ var state = {
|
|
|
432094
432190
|
additionalProperties: {
|
|
432095
432191
|
type: "string"
|
|
432096
432192
|
},
|
|
432097
|
-
description: "Set of [Tags](
|
|
432193
|
+
description: "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
432098
432194
|
}
|
|
432099
432195
|
},
|
|
432100
432196
|
required: ["id", "createdAt", "updatedAt", "tags"],
|
|
@@ -432134,7 +432230,7 @@ var state = {
|
|
|
432134
432230
|
additionalProperties: {
|
|
432135
432231
|
type: "string"
|
|
432136
432232
|
},
|
|
432137
|
-
description: "Set of [Tags](
|
|
432233
|
+
description: "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
432138
432234
|
}
|
|
432139
432235
|
},
|
|
432140
432236
|
required: [
|
|
@@ -432219,7 +432315,7 @@ var state = {
|
|
|
432219
432315
|
additionalProperties: {
|
|
432220
432316
|
type: "string"
|
|
432221
432317
|
},
|
|
432222
|
-
description: "Set of [Tags](
|
|
432318
|
+
description: "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
432223
432319
|
}
|
|
432224
432320
|
},
|
|
432225
432321
|
required: [
|