@botpress/client 0.6.2 → 0.6.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.
- package/dist/bundle.cjs +4 -4
- package/dist/bundle.cjs.map +3 -3
- package/dist/gen/api.d.ts +192 -14
- package/dist/gen/base.d.ts +1 -1
- package/dist/gen/common.d.ts +1 -1
- package/dist/gen/configuration.d.ts +1 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/gen/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Botpress API
|
|
3
3
|
* API for Botpress Cloud
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.12.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -229,6 +229,12 @@ export interface BotIntegrationsValue {
|
|
|
229
229
|
* @memberof BotIntegrationsValue
|
|
230
230
|
*/
|
|
231
231
|
'webhookId': string;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof BotIntegrationsValue
|
|
236
|
+
*/
|
|
237
|
+
'identifier'?: string;
|
|
232
238
|
/**
|
|
233
239
|
*
|
|
234
240
|
* @type {{ [key: string]: any; }}
|
|
@@ -250,7 +256,7 @@ export interface BotIntegrationsValue {
|
|
|
250
256
|
*/
|
|
251
257
|
'statusReason': string | null;
|
|
252
258
|
/**
|
|
253
|
-
*
|
|
259
|
+
* ID of the [Integration](#schema_integration)
|
|
254
260
|
* @type {string}
|
|
255
261
|
* @memberof BotIntegrationsValue
|
|
256
262
|
*/
|
|
@@ -950,6 +956,24 @@ export interface CreateEventBody {
|
|
|
950
956
|
* @memberof CreateEventBody
|
|
951
957
|
*/
|
|
952
958
|
'schedule'?: CreateEventBodySchedule;
|
|
959
|
+
/**
|
|
960
|
+
* ID of the [Conversation](#schema_conversation) to link the event to.
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof CreateEventBody
|
|
963
|
+
*/
|
|
964
|
+
'conversationId'?: string;
|
|
965
|
+
/**
|
|
966
|
+
* ID of the [User](#schema_user) to link the event to.
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof CreateEventBody
|
|
969
|
+
*/
|
|
970
|
+
'userId'?: string;
|
|
971
|
+
/**
|
|
972
|
+
* ID of the [Message](#schema_message) to link the event to.
|
|
973
|
+
* @type {string}
|
|
974
|
+
* @memberof CreateEventBody
|
|
975
|
+
*/
|
|
976
|
+
'messageId'?: string;
|
|
953
977
|
}
|
|
954
978
|
/**
|
|
955
979
|
* Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.
|
|
@@ -1329,6 +1353,12 @@ export interface CreateIntegrationBodyConfigurationIdentifier {
|
|
|
1329
1353
|
* @interface CreateIntegrationBodyIdentifier
|
|
1330
1354
|
*/
|
|
1331
1355
|
export interface CreateIntegrationBodyIdentifier {
|
|
1356
|
+
/**
|
|
1357
|
+
*
|
|
1358
|
+
* @type {string}
|
|
1359
|
+
* @memberof CreateIntegrationBodyIdentifier
|
|
1360
|
+
*/
|
|
1361
|
+
'fallbackHandlerScript'?: string;
|
|
1332
1362
|
/**
|
|
1333
1363
|
*
|
|
1334
1364
|
* @type {string}
|
|
@@ -1572,6 +1602,18 @@ export interface CreateUserBody {
|
|
|
1572
1602
|
* @memberof CreateUserBody
|
|
1573
1603
|
*/
|
|
1574
1604
|
'integrationName'?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Name of the user
|
|
1607
|
+
* @type {string}
|
|
1608
|
+
* @memberof CreateUserBody
|
|
1609
|
+
*/
|
|
1610
|
+
'name'?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* URL of the user picture
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof CreateUserBody
|
|
1615
|
+
*/
|
|
1616
|
+
'pictureUrl'?: string;
|
|
1575
1617
|
}
|
|
1576
1618
|
/**
|
|
1577
1619
|
*
|
|
@@ -1777,6 +1819,24 @@ export interface Event {
|
|
|
1777
1819
|
'payload': {
|
|
1778
1820
|
[key: string]: any;
|
|
1779
1821
|
};
|
|
1822
|
+
/**
|
|
1823
|
+
* ID of the [Conversation](#schema_conversation) to link the event to.
|
|
1824
|
+
* @type {string}
|
|
1825
|
+
* @memberof Event
|
|
1826
|
+
*/
|
|
1827
|
+
'conversationId'?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* ID of the [User](#schema_user) to link the event to.
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof Event
|
|
1832
|
+
*/
|
|
1833
|
+
'userId'?: string;
|
|
1834
|
+
/**
|
|
1835
|
+
* ID of the [Message](#schema_message) to link the event to.
|
|
1836
|
+
* @type {string}
|
|
1837
|
+
* @memberof Event
|
|
1838
|
+
*/
|
|
1839
|
+
'messageId'?: string;
|
|
1780
1840
|
}
|
|
1781
1841
|
/**
|
|
1782
1842
|
*
|
|
@@ -2275,6 +2335,18 @@ export interface GetOrCreateUserBody {
|
|
|
2275
2335
|
* @memberof GetOrCreateUserBody
|
|
2276
2336
|
*/
|
|
2277
2337
|
'integrationName'?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Name of the user
|
|
2340
|
+
* @type {string}
|
|
2341
|
+
* @memberof GetOrCreateUserBody
|
|
2342
|
+
*/
|
|
2343
|
+
'name'?: string;
|
|
2344
|
+
/**
|
|
2345
|
+
* URL of the user picture
|
|
2346
|
+
* @type {string}
|
|
2347
|
+
* @memberof GetOrCreateUserBody
|
|
2348
|
+
*/
|
|
2349
|
+
'pictureUrl'?: string;
|
|
2278
2350
|
}
|
|
2279
2351
|
/**
|
|
2280
2352
|
*
|
|
@@ -2610,7 +2682,7 @@ export type GetWorkspaceResponsePlanEnum = typeof GetWorkspaceResponsePlanEnum[k
|
|
|
2610
2682
|
*/
|
|
2611
2683
|
export interface Integration {
|
|
2612
2684
|
/**
|
|
2613
|
-
*
|
|
2685
|
+
* ID of the [Integration](#schema_integration)
|
|
2614
2686
|
* @type {string}
|
|
2615
2687
|
* @memberof Integration
|
|
2616
2688
|
*/
|
|
@@ -2826,6 +2898,12 @@ export interface IntegrationConfigurationIdentifier {
|
|
|
2826
2898
|
* @interface IntegrationIdentifier
|
|
2827
2899
|
*/
|
|
2828
2900
|
export interface IntegrationIdentifier {
|
|
2901
|
+
/**
|
|
2902
|
+
* VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn\'t have an identifier
|
|
2903
|
+
* @type {string}
|
|
2904
|
+
* @memberof IntegrationIdentifier
|
|
2905
|
+
*/
|
|
2906
|
+
'fallbackHandlerScript'?: string;
|
|
2829
2907
|
/**
|
|
2830
2908
|
* VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
|
|
2831
2909
|
* @type {string}
|
|
@@ -2936,10 +3014,12 @@ export interface Issue {
|
|
|
2936
3014
|
'description': string;
|
|
2937
3015
|
/**
|
|
2938
3016
|
*
|
|
2939
|
-
* @type {
|
|
3017
|
+
* @type {{ [key: string]: IssueGroupedDataValue; }}
|
|
2940
3018
|
* @memberof Issue
|
|
2941
3019
|
*/
|
|
2942
|
-
'groupedData':
|
|
3020
|
+
'groupedData': {
|
|
3021
|
+
[key: string]: IssueGroupedDataValue;
|
|
3022
|
+
};
|
|
2943
3023
|
/**
|
|
2944
3024
|
*
|
|
2945
3025
|
* @type {number}
|
|
@@ -2986,10 +3066,31 @@ export interface IssueEvent {
|
|
|
2986
3066
|
'createdAt': string;
|
|
2987
3067
|
/**
|
|
2988
3068
|
*
|
|
2989
|
-
* @type {
|
|
3069
|
+
* @type {{ [key: string]: IssueGroupedDataValue; }}
|
|
2990
3070
|
* @memberof IssueEvent
|
|
2991
3071
|
*/
|
|
2992
|
-
'data':
|
|
3072
|
+
'data': {
|
|
3073
|
+
[key: string]: IssueGroupedDataValue;
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
/**
|
|
3077
|
+
*
|
|
3078
|
+
* @export
|
|
3079
|
+
* @interface IssueGroupedDataValue
|
|
3080
|
+
*/
|
|
3081
|
+
export interface IssueGroupedDataValue {
|
|
3082
|
+
/**
|
|
3083
|
+
*
|
|
3084
|
+
* @type {string}
|
|
3085
|
+
* @memberof IssueGroupedDataValue
|
|
3086
|
+
*/
|
|
3087
|
+
'raw': string;
|
|
3088
|
+
/**
|
|
3089
|
+
*
|
|
3090
|
+
* @type {string}
|
|
3091
|
+
* @memberof IssueGroupedDataValue
|
|
3092
|
+
*/
|
|
3093
|
+
'pretty'?: string;
|
|
2993
3094
|
}
|
|
2994
3095
|
/**
|
|
2995
3096
|
*
|
|
@@ -3024,10 +3125,12 @@ export interface ListBotIssueEventsResponseIssueEventsInner {
|
|
|
3024
3125
|
'createdAt': string;
|
|
3025
3126
|
/**
|
|
3026
3127
|
*
|
|
3027
|
-
* @type {
|
|
3128
|
+
* @type {{ [key: string]: ListBotIssuesResponseIssuesInnerGroupedDataValue; }}
|
|
3028
3129
|
* @memberof ListBotIssueEventsResponseIssueEventsInner
|
|
3029
3130
|
*/
|
|
3030
|
-
'data':
|
|
3131
|
+
'data': {
|
|
3132
|
+
[key: string]: ListBotIssuesResponseIssuesInnerGroupedDataValue;
|
|
3133
|
+
};
|
|
3031
3134
|
}
|
|
3032
3135
|
/**
|
|
3033
3136
|
*
|
|
@@ -3092,10 +3195,12 @@ export interface ListBotIssuesResponseIssuesInner {
|
|
|
3092
3195
|
'description': string;
|
|
3093
3196
|
/**
|
|
3094
3197
|
*
|
|
3095
|
-
* @type {
|
|
3198
|
+
* @type {{ [key: string]: ListBotIssuesResponseIssuesInnerGroupedDataValue; }}
|
|
3096
3199
|
* @memberof ListBotIssuesResponseIssuesInner
|
|
3097
3200
|
*/
|
|
3098
|
-
'groupedData':
|
|
3201
|
+
'groupedData': {
|
|
3202
|
+
[key: string]: ListBotIssuesResponseIssuesInnerGroupedDataValue;
|
|
3203
|
+
};
|
|
3099
3204
|
/**
|
|
3100
3205
|
*
|
|
3101
3206
|
* @type {number}
|
|
@@ -3122,6 +3227,25 @@ export declare const ListBotIssuesResponseIssuesInnerCategoryEnum: {
|
|
|
3122
3227
|
readonly Other: "other";
|
|
3123
3228
|
};
|
|
3124
3229
|
export type ListBotIssuesResponseIssuesInnerCategoryEnum = typeof ListBotIssuesResponseIssuesInnerCategoryEnum[keyof typeof ListBotIssuesResponseIssuesInnerCategoryEnum];
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @export
|
|
3233
|
+
* @interface ListBotIssuesResponseIssuesInnerGroupedDataValue
|
|
3234
|
+
*/
|
|
3235
|
+
export interface ListBotIssuesResponseIssuesInnerGroupedDataValue {
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @type {string}
|
|
3239
|
+
* @memberof ListBotIssuesResponseIssuesInnerGroupedDataValue
|
|
3240
|
+
*/
|
|
3241
|
+
'raw': string;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @type {string}
|
|
3245
|
+
* @memberof ListBotIssuesResponseIssuesInnerGroupedDataValue
|
|
3246
|
+
*/
|
|
3247
|
+
'pretty'?: string;
|
|
3248
|
+
}
|
|
3125
3249
|
/**
|
|
3126
3250
|
*
|
|
3127
3251
|
* @export
|
|
@@ -3350,7 +3474,7 @@ export interface ListPublicIntegrationsResponse {
|
|
|
3350
3474
|
*/
|
|
3351
3475
|
export interface ListPublicIntegrationsResponseIntegrationsInner {
|
|
3352
3476
|
/**
|
|
3353
|
-
*
|
|
3477
|
+
* ID of the [Integration](#schema_integration)
|
|
3354
3478
|
* @type {string}
|
|
3355
3479
|
* @memberof ListPublicIntegrationsResponseIntegrationsInner
|
|
3356
3480
|
*/
|
|
@@ -4537,6 +4661,12 @@ export interface UpdateIntegrationBodyIdentifier {
|
|
|
4537
4661
|
* @memberof UpdateIntegrationBodyIdentifier
|
|
4538
4662
|
*/
|
|
4539
4663
|
'extractScript'?: string | null;
|
|
4664
|
+
/**
|
|
4665
|
+
*
|
|
4666
|
+
* @type {string}
|
|
4667
|
+
* @memberof UpdateIntegrationBodyIdentifier
|
|
4668
|
+
*/
|
|
4669
|
+
'fallbackHandlerScript'?: string | null;
|
|
4540
4670
|
}
|
|
4541
4671
|
/**
|
|
4542
4672
|
* State definition
|
|
@@ -4641,6 +4771,18 @@ export interface UpdateUserBody {
|
|
|
4641
4771
|
'tags': {
|
|
4642
4772
|
[key: string]: string;
|
|
4643
4773
|
};
|
|
4774
|
+
/**
|
|
4775
|
+
* Name of the user
|
|
4776
|
+
* @type {string}
|
|
4777
|
+
* @memberof UpdateUserBody
|
|
4778
|
+
*/
|
|
4779
|
+
'name'?: string | null;
|
|
4780
|
+
/**
|
|
4781
|
+
* URL of the user picture
|
|
4782
|
+
* @type {string}
|
|
4783
|
+
* @memberof UpdateUserBody
|
|
4784
|
+
*/
|
|
4785
|
+
'pictureUrl'?: string | null;
|
|
4644
4786
|
}
|
|
4645
4787
|
/**
|
|
4646
4788
|
*
|
|
@@ -4975,6 +5117,18 @@ export interface User {
|
|
|
4975
5117
|
'tags': {
|
|
4976
5118
|
[key: string]: string;
|
|
4977
5119
|
};
|
|
5120
|
+
/**
|
|
5121
|
+
* Name of the [User](#schema_user)
|
|
5122
|
+
* @type {string}
|
|
5123
|
+
* @memberof User
|
|
5124
|
+
*/
|
|
5125
|
+
'name'?: string;
|
|
5126
|
+
/**
|
|
5127
|
+
* Picture URL of the [User](#schema_user)
|
|
5128
|
+
* @type {string}
|
|
5129
|
+
* @memberof User
|
|
5130
|
+
*/
|
|
5131
|
+
'pictureUrl'?: string;
|
|
4978
5132
|
}
|
|
4979
5133
|
/**
|
|
4980
5134
|
*
|
|
@@ -5507,10 +5661,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5507
5661
|
* Retreives a list of [Event](#schema_event) you’ve previously created. The events are returned in sorted order, with the most recent appearing first.
|
|
5508
5662
|
* @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results
|
|
5509
5663
|
* @param {string} [type] Filter by event type
|
|
5664
|
+
* @param {string} [conversationId] Filter by conversation id
|
|
5665
|
+
* @param {string} [userId] Filter by user id
|
|
5666
|
+
* @param {string} [messageId] Filter by message id
|
|
5510
5667
|
* @param {*} [options] Override http request option.
|
|
5511
5668
|
* @throws {RequiredError}
|
|
5512
5669
|
*/
|
|
5513
|
-
listEvents: (nextToken?: string, type?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5670
|
+
listEvents: (nextToken?: string, type?: string, conversationId?: string, userId?: string, messageId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5514
5671
|
/**
|
|
5515
5672
|
* List Files
|
|
5516
5673
|
* @param {string} botId Bot ID
|
|
@@ -6117,10 +6274,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6117
6274
|
* Retreives a list of [Event](#schema_event) you’ve previously created. The events are returned in sorted order, with the most recent appearing first.
|
|
6118
6275
|
* @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results
|
|
6119
6276
|
* @param {string} [type] Filter by event type
|
|
6277
|
+
* @param {string} [conversationId] Filter by conversation id
|
|
6278
|
+
* @param {string} [userId] Filter by user id
|
|
6279
|
+
* @param {string} [messageId] Filter by message id
|
|
6120
6280
|
* @param {*} [options] Override http request option.
|
|
6121
6281
|
* @throws {RequiredError}
|
|
6122
6282
|
*/
|
|
6123
|
-
listEvents(nextToken?: string, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEventsResponse>>;
|
|
6283
|
+
listEvents(nextToken?: string, type?: string, conversationId?: string, userId?: string, messageId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEventsResponse>>;
|
|
6124
6284
|
/**
|
|
6125
6285
|
* List Files
|
|
6126
6286
|
* @param {string} botId Bot ID
|
|
@@ -7723,6 +7883,24 @@ export interface DefaultApiListEventsRequest {
|
|
|
7723
7883
|
* @memberof DefaultApiListEvents
|
|
7724
7884
|
*/
|
|
7725
7885
|
readonly type?: string;
|
|
7886
|
+
/**
|
|
7887
|
+
* Filter by conversation id
|
|
7888
|
+
* @type {string}
|
|
7889
|
+
* @memberof DefaultApiListEvents
|
|
7890
|
+
*/
|
|
7891
|
+
readonly conversationId?: string;
|
|
7892
|
+
/**
|
|
7893
|
+
* Filter by user id
|
|
7894
|
+
* @type {string}
|
|
7895
|
+
* @memberof DefaultApiListEvents
|
|
7896
|
+
*/
|
|
7897
|
+
readonly userId?: string;
|
|
7898
|
+
/**
|
|
7899
|
+
* Filter by message id
|
|
7900
|
+
* @type {string}
|
|
7901
|
+
* @memberof DefaultApiListEvents
|
|
7902
|
+
*/
|
|
7903
|
+
readonly messageId?: string;
|
|
7726
7904
|
}
|
|
7727
7905
|
/**
|
|
7728
7906
|
* Request parameters for listFiles operation in DefaultApi.
|
package/dist/gen/base.d.ts
CHANGED
package/dist/gen/common.d.ts
CHANGED
package/dist/gen/index.d.ts
CHANGED