@botpress/client 0.36.0 → 0.36.1
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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +936 -55
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5399,7 +5399,7 @@ interface CreateWorkspaceResponse {
|
|
|
5399
5399
|
createdAt: string;
|
|
5400
5400
|
updatedAt: string;
|
|
5401
5401
|
botCount: number;
|
|
5402
|
-
billingVersion: "v1" | "v2";
|
|
5402
|
+
billingVersion: "v1" | "v2" | "v3";
|
|
5403
5403
|
plan: "community" | "team" | "enterprise";
|
|
5404
5404
|
blocked: boolean;
|
|
5405
5405
|
spendingLimit: number;
|
|
@@ -5452,7 +5452,7 @@ interface GetWorkspaceResponse {
|
|
|
5452
5452
|
createdAt: string;
|
|
5453
5453
|
updatedAt: string;
|
|
5454
5454
|
botCount: number;
|
|
5455
|
-
billingVersion: "v1" | "v2";
|
|
5455
|
+
billingVersion: "v1" | "v2" | "v3";
|
|
5456
5456
|
plan: "community" | "team" | "enterprise";
|
|
5457
5457
|
blocked: boolean;
|
|
5458
5458
|
spendingLimit: number;
|
|
@@ -5623,7 +5623,7 @@ interface UpdateWorkspaceResponse$1 {
|
|
|
5623
5623
|
createdAt: string;
|
|
5624
5624
|
updatedAt: string;
|
|
5625
5625
|
botCount: number;
|
|
5626
|
-
billingVersion: "v1" | "v2";
|
|
5626
|
+
billingVersion: "v1" | "v2" | "v3";
|
|
5627
5627
|
plan: "community" | "team" | "enterprise";
|
|
5628
5628
|
blocked: boolean;
|
|
5629
5629
|
spendingLimit: number;
|
|
@@ -5678,7 +5678,7 @@ interface UpdateWorkspaceResponse {
|
|
|
5678
5678
|
createdAt: string;
|
|
5679
5679
|
updatedAt: string;
|
|
5680
5680
|
botCount: number;
|
|
5681
|
-
billingVersion: "v1" | "v2";
|
|
5681
|
+
billingVersion: "v1" | "v2" | "v3";
|
|
5682
5682
|
plan: "community" | "team" | "enterprise";
|
|
5683
5683
|
blocked: boolean;
|
|
5684
5684
|
spendingLimit: number;
|
|
@@ -8847,6 +8847,839 @@ interface ListInterfacesResponse {
|
|
|
8847
8847
|
};
|
|
8848
8848
|
}
|
|
8849
8849
|
|
|
8850
|
+
interface CreatePluginRequestHeaders {
|
|
8851
|
+
}
|
|
8852
|
+
interface CreatePluginRequestQuery {
|
|
8853
|
+
}
|
|
8854
|
+
interface CreatePluginRequestParams {
|
|
8855
|
+
}
|
|
8856
|
+
interface CreatePluginRequestBody {
|
|
8857
|
+
/**
|
|
8858
|
+
* Name of the [Plugin](#schema_plugin)
|
|
8859
|
+
*/
|
|
8860
|
+
name: string;
|
|
8861
|
+
/**
|
|
8862
|
+
* Version of the [Plugin](#schema_plugin)
|
|
8863
|
+
*/
|
|
8864
|
+
version: string;
|
|
8865
|
+
/**
|
|
8866
|
+
* Configuration definition
|
|
8867
|
+
*/
|
|
8868
|
+
configuration?: {
|
|
8869
|
+
/**
|
|
8870
|
+
* Title of the configuration
|
|
8871
|
+
*/
|
|
8872
|
+
title?: string;
|
|
8873
|
+
/**
|
|
8874
|
+
* Description of the configuration
|
|
8875
|
+
*/
|
|
8876
|
+
description?: string;
|
|
8877
|
+
/**
|
|
8878
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
8879
|
+
*/
|
|
8880
|
+
schema: {
|
|
8881
|
+
[k: string]: any;
|
|
8882
|
+
};
|
|
8883
|
+
};
|
|
8884
|
+
states?: {
|
|
8885
|
+
[k: string]: {
|
|
8886
|
+
/**
|
|
8887
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
8888
|
+
*/
|
|
8889
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
8890
|
+
/**
|
|
8891
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
8892
|
+
*/
|
|
8893
|
+
schema: {
|
|
8894
|
+
[k: string]: any;
|
|
8895
|
+
};
|
|
8896
|
+
/**
|
|
8897
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
8898
|
+
*/
|
|
8899
|
+
expiry?: number;
|
|
8900
|
+
};
|
|
8901
|
+
};
|
|
8902
|
+
events?: {
|
|
8903
|
+
/**
|
|
8904
|
+
* Event Definition
|
|
8905
|
+
*/
|
|
8906
|
+
[k: string]: {
|
|
8907
|
+
/**
|
|
8908
|
+
* Title of the event
|
|
8909
|
+
*/
|
|
8910
|
+
title?: string;
|
|
8911
|
+
/**
|
|
8912
|
+
* Description of the event
|
|
8913
|
+
*/
|
|
8914
|
+
description?: string;
|
|
8915
|
+
schema: {
|
|
8916
|
+
[k: string]: any;
|
|
8917
|
+
};
|
|
8918
|
+
};
|
|
8919
|
+
};
|
|
8920
|
+
actions?: {
|
|
8921
|
+
/**
|
|
8922
|
+
* Action definition
|
|
8923
|
+
*/
|
|
8924
|
+
[k: string]: {
|
|
8925
|
+
/**
|
|
8926
|
+
* Title of the action
|
|
8927
|
+
*/
|
|
8928
|
+
title?: string;
|
|
8929
|
+
/**
|
|
8930
|
+
* Description of the action
|
|
8931
|
+
*/
|
|
8932
|
+
description?: string;
|
|
8933
|
+
billable?: boolean;
|
|
8934
|
+
cacheable?: boolean;
|
|
8935
|
+
input: {
|
|
8936
|
+
schema: {
|
|
8937
|
+
[k: string]: any;
|
|
8938
|
+
};
|
|
8939
|
+
};
|
|
8940
|
+
output: {
|
|
8941
|
+
schema: {
|
|
8942
|
+
[k: string]: any;
|
|
8943
|
+
};
|
|
8944
|
+
};
|
|
8945
|
+
};
|
|
8946
|
+
};
|
|
8947
|
+
/**
|
|
8948
|
+
* User object configuration
|
|
8949
|
+
*/
|
|
8950
|
+
user?: {
|
|
8951
|
+
tags: {
|
|
8952
|
+
/**
|
|
8953
|
+
* Definition of a tag that can be provided on the object
|
|
8954
|
+
*/
|
|
8955
|
+
[k: string]: {
|
|
8956
|
+
/**
|
|
8957
|
+
* Title of the tag
|
|
8958
|
+
*/
|
|
8959
|
+
title?: string;
|
|
8960
|
+
/**
|
|
8961
|
+
* Description of the tag
|
|
8962
|
+
*/
|
|
8963
|
+
description?: string;
|
|
8964
|
+
};
|
|
8965
|
+
};
|
|
8966
|
+
};
|
|
8967
|
+
code: string;
|
|
8968
|
+
}
|
|
8969
|
+
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
8970
|
+
interface CreatePluginResponse {
|
|
8971
|
+
/**
|
|
8972
|
+
* Plugin definition
|
|
8973
|
+
*/
|
|
8974
|
+
plugin: {
|
|
8975
|
+
/**
|
|
8976
|
+
* ID of the [Plugin](#schema_plugin)
|
|
8977
|
+
*/
|
|
8978
|
+
id: string;
|
|
8979
|
+
/**
|
|
8980
|
+
* Name of the [Plugin](#schema_plugin)
|
|
8981
|
+
*/
|
|
8982
|
+
name: string;
|
|
8983
|
+
/**
|
|
8984
|
+
* Version of the [Plugin](#schema_plugin)
|
|
8985
|
+
*/
|
|
8986
|
+
version: string;
|
|
8987
|
+
/**
|
|
8988
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
8989
|
+
*/
|
|
8990
|
+
createdAt: string;
|
|
8991
|
+
/**
|
|
8992
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
8993
|
+
*/
|
|
8994
|
+
updatedAt: string;
|
|
8995
|
+
/**
|
|
8996
|
+
* Configuration definition
|
|
8997
|
+
*/
|
|
8998
|
+
configuration: {
|
|
8999
|
+
/**
|
|
9000
|
+
* Title of the configuration
|
|
9001
|
+
*/
|
|
9002
|
+
title?: string;
|
|
9003
|
+
/**
|
|
9004
|
+
* Description of the configuration
|
|
9005
|
+
*/
|
|
9006
|
+
description?: string;
|
|
9007
|
+
/**
|
|
9008
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
9009
|
+
*/
|
|
9010
|
+
schema: {
|
|
9011
|
+
[k: string]: any;
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
states: {
|
|
9015
|
+
[k: string]: {
|
|
9016
|
+
/**
|
|
9017
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
9018
|
+
*/
|
|
9019
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
9020
|
+
/**
|
|
9021
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
9022
|
+
*/
|
|
9023
|
+
schema: {
|
|
9024
|
+
[k: string]: any;
|
|
9025
|
+
};
|
|
9026
|
+
/**
|
|
9027
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
9028
|
+
*/
|
|
9029
|
+
expiry?: number;
|
|
9030
|
+
};
|
|
9031
|
+
};
|
|
9032
|
+
events: {
|
|
9033
|
+
/**
|
|
9034
|
+
* Event Definition
|
|
9035
|
+
*/
|
|
9036
|
+
[k: string]: {
|
|
9037
|
+
/**
|
|
9038
|
+
* Title of the event
|
|
9039
|
+
*/
|
|
9040
|
+
title?: string;
|
|
9041
|
+
/**
|
|
9042
|
+
* Description of the event
|
|
9043
|
+
*/
|
|
9044
|
+
description?: string;
|
|
9045
|
+
schema: {
|
|
9046
|
+
[k: string]: any;
|
|
9047
|
+
};
|
|
9048
|
+
};
|
|
9049
|
+
};
|
|
9050
|
+
actions: {
|
|
9051
|
+
/**
|
|
9052
|
+
* Action definition
|
|
9053
|
+
*/
|
|
9054
|
+
[k: string]: {
|
|
9055
|
+
/**
|
|
9056
|
+
* Title of the action
|
|
9057
|
+
*/
|
|
9058
|
+
title?: string;
|
|
9059
|
+
/**
|
|
9060
|
+
* Description of the action
|
|
9061
|
+
*/
|
|
9062
|
+
description?: string;
|
|
9063
|
+
billable?: boolean;
|
|
9064
|
+
cacheable?: boolean;
|
|
9065
|
+
input: {
|
|
9066
|
+
schema: {
|
|
9067
|
+
[k: string]: any;
|
|
9068
|
+
};
|
|
9069
|
+
};
|
|
9070
|
+
output: {
|
|
9071
|
+
schema: {
|
|
9072
|
+
[k: string]: any;
|
|
9073
|
+
};
|
|
9074
|
+
};
|
|
9075
|
+
};
|
|
9076
|
+
};
|
|
9077
|
+
/**
|
|
9078
|
+
* User object configuration
|
|
9079
|
+
*/
|
|
9080
|
+
user: {
|
|
9081
|
+
tags: {
|
|
9082
|
+
/**
|
|
9083
|
+
* Definition of a tag that can be provided on the object
|
|
9084
|
+
*/
|
|
9085
|
+
[k: string]: {
|
|
9086
|
+
/**
|
|
9087
|
+
* Title of the tag
|
|
9088
|
+
*/
|
|
9089
|
+
title?: string;
|
|
9090
|
+
/**
|
|
9091
|
+
* Description of the tag
|
|
9092
|
+
*/
|
|
9093
|
+
description?: string;
|
|
9094
|
+
};
|
|
9095
|
+
};
|
|
9096
|
+
};
|
|
9097
|
+
code: string;
|
|
9098
|
+
};
|
|
9099
|
+
}
|
|
9100
|
+
|
|
9101
|
+
interface GetPluginRequestHeaders {
|
|
9102
|
+
}
|
|
9103
|
+
interface GetPluginRequestQuery {
|
|
9104
|
+
}
|
|
9105
|
+
interface GetPluginRequestParams {
|
|
9106
|
+
id: string;
|
|
9107
|
+
}
|
|
9108
|
+
interface GetPluginRequestBody {
|
|
9109
|
+
}
|
|
9110
|
+
type GetPluginInput = GetPluginRequestBody & GetPluginRequestHeaders & GetPluginRequestQuery & GetPluginRequestParams;
|
|
9111
|
+
interface GetPluginResponse {
|
|
9112
|
+
/**
|
|
9113
|
+
* Plugin definition
|
|
9114
|
+
*/
|
|
9115
|
+
plugin: {
|
|
9116
|
+
/**
|
|
9117
|
+
* ID of the [Plugin](#schema_plugin)
|
|
9118
|
+
*/
|
|
9119
|
+
id: string;
|
|
9120
|
+
/**
|
|
9121
|
+
* Name of the [Plugin](#schema_plugin)
|
|
9122
|
+
*/
|
|
9123
|
+
name: string;
|
|
9124
|
+
/**
|
|
9125
|
+
* Version of the [Plugin](#schema_plugin)
|
|
9126
|
+
*/
|
|
9127
|
+
version: string;
|
|
9128
|
+
/**
|
|
9129
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9130
|
+
*/
|
|
9131
|
+
createdAt: string;
|
|
9132
|
+
/**
|
|
9133
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9134
|
+
*/
|
|
9135
|
+
updatedAt: string;
|
|
9136
|
+
/**
|
|
9137
|
+
* Configuration definition
|
|
9138
|
+
*/
|
|
9139
|
+
configuration: {
|
|
9140
|
+
/**
|
|
9141
|
+
* Title of the configuration
|
|
9142
|
+
*/
|
|
9143
|
+
title?: string;
|
|
9144
|
+
/**
|
|
9145
|
+
* Description of the configuration
|
|
9146
|
+
*/
|
|
9147
|
+
description?: string;
|
|
9148
|
+
/**
|
|
9149
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
9150
|
+
*/
|
|
9151
|
+
schema: {
|
|
9152
|
+
[k: string]: any;
|
|
9153
|
+
};
|
|
9154
|
+
};
|
|
9155
|
+
states: {
|
|
9156
|
+
[k: string]: {
|
|
9157
|
+
/**
|
|
9158
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
9159
|
+
*/
|
|
9160
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
9161
|
+
/**
|
|
9162
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
9163
|
+
*/
|
|
9164
|
+
schema: {
|
|
9165
|
+
[k: string]: any;
|
|
9166
|
+
};
|
|
9167
|
+
/**
|
|
9168
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
9169
|
+
*/
|
|
9170
|
+
expiry?: number;
|
|
9171
|
+
};
|
|
9172
|
+
};
|
|
9173
|
+
events: {
|
|
9174
|
+
/**
|
|
9175
|
+
* Event Definition
|
|
9176
|
+
*/
|
|
9177
|
+
[k: string]: {
|
|
9178
|
+
/**
|
|
9179
|
+
* Title of the event
|
|
9180
|
+
*/
|
|
9181
|
+
title?: string;
|
|
9182
|
+
/**
|
|
9183
|
+
* Description of the event
|
|
9184
|
+
*/
|
|
9185
|
+
description?: string;
|
|
9186
|
+
schema: {
|
|
9187
|
+
[k: string]: any;
|
|
9188
|
+
};
|
|
9189
|
+
};
|
|
9190
|
+
};
|
|
9191
|
+
actions: {
|
|
9192
|
+
/**
|
|
9193
|
+
* Action definition
|
|
9194
|
+
*/
|
|
9195
|
+
[k: string]: {
|
|
9196
|
+
/**
|
|
9197
|
+
* Title of the action
|
|
9198
|
+
*/
|
|
9199
|
+
title?: string;
|
|
9200
|
+
/**
|
|
9201
|
+
* Description of the action
|
|
9202
|
+
*/
|
|
9203
|
+
description?: string;
|
|
9204
|
+
billable?: boolean;
|
|
9205
|
+
cacheable?: boolean;
|
|
9206
|
+
input: {
|
|
9207
|
+
schema: {
|
|
9208
|
+
[k: string]: any;
|
|
9209
|
+
};
|
|
9210
|
+
};
|
|
9211
|
+
output: {
|
|
9212
|
+
schema: {
|
|
9213
|
+
[k: string]: any;
|
|
9214
|
+
};
|
|
9215
|
+
};
|
|
9216
|
+
};
|
|
9217
|
+
};
|
|
9218
|
+
/**
|
|
9219
|
+
* User object configuration
|
|
9220
|
+
*/
|
|
9221
|
+
user: {
|
|
9222
|
+
tags: {
|
|
9223
|
+
/**
|
|
9224
|
+
* Definition of a tag that can be provided on the object
|
|
9225
|
+
*/
|
|
9226
|
+
[k: string]: {
|
|
9227
|
+
/**
|
|
9228
|
+
* Title of the tag
|
|
9229
|
+
*/
|
|
9230
|
+
title?: string;
|
|
9231
|
+
/**
|
|
9232
|
+
* Description of the tag
|
|
9233
|
+
*/
|
|
9234
|
+
description?: string;
|
|
9235
|
+
};
|
|
9236
|
+
};
|
|
9237
|
+
};
|
|
9238
|
+
code: string;
|
|
9239
|
+
};
|
|
9240
|
+
}
|
|
9241
|
+
|
|
9242
|
+
interface GetPluginByNameRequestHeaders {
|
|
9243
|
+
}
|
|
9244
|
+
interface GetPluginByNameRequestQuery {
|
|
9245
|
+
}
|
|
9246
|
+
interface GetPluginByNameRequestParams {
|
|
9247
|
+
name: string;
|
|
9248
|
+
version: string;
|
|
9249
|
+
}
|
|
9250
|
+
interface GetPluginByNameRequestBody {
|
|
9251
|
+
}
|
|
9252
|
+
type GetPluginByNameInput = GetPluginByNameRequestBody & GetPluginByNameRequestHeaders & GetPluginByNameRequestQuery & GetPluginByNameRequestParams;
|
|
9253
|
+
interface GetPluginByNameResponse {
|
|
9254
|
+
/**
|
|
9255
|
+
* Plugin definition
|
|
9256
|
+
*/
|
|
9257
|
+
plugin: {
|
|
9258
|
+
/**
|
|
9259
|
+
* ID of the [Plugin](#schema_plugin)
|
|
9260
|
+
*/
|
|
9261
|
+
id: string;
|
|
9262
|
+
/**
|
|
9263
|
+
* Name of the [Plugin](#schema_plugin)
|
|
9264
|
+
*/
|
|
9265
|
+
name: string;
|
|
9266
|
+
/**
|
|
9267
|
+
* Version of the [Plugin](#schema_plugin)
|
|
9268
|
+
*/
|
|
9269
|
+
version: string;
|
|
9270
|
+
/**
|
|
9271
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9272
|
+
*/
|
|
9273
|
+
createdAt: string;
|
|
9274
|
+
/**
|
|
9275
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9276
|
+
*/
|
|
9277
|
+
updatedAt: string;
|
|
9278
|
+
/**
|
|
9279
|
+
* Configuration definition
|
|
9280
|
+
*/
|
|
9281
|
+
configuration: {
|
|
9282
|
+
/**
|
|
9283
|
+
* Title of the configuration
|
|
9284
|
+
*/
|
|
9285
|
+
title?: string;
|
|
9286
|
+
/**
|
|
9287
|
+
* Description of the configuration
|
|
9288
|
+
*/
|
|
9289
|
+
description?: string;
|
|
9290
|
+
/**
|
|
9291
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
9292
|
+
*/
|
|
9293
|
+
schema: {
|
|
9294
|
+
[k: string]: any;
|
|
9295
|
+
};
|
|
9296
|
+
};
|
|
9297
|
+
states: {
|
|
9298
|
+
[k: string]: {
|
|
9299
|
+
/**
|
|
9300
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
9301
|
+
*/
|
|
9302
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
9303
|
+
/**
|
|
9304
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
9305
|
+
*/
|
|
9306
|
+
schema: {
|
|
9307
|
+
[k: string]: any;
|
|
9308
|
+
};
|
|
9309
|
+
/**
|
|
9310
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
9311
|
+
*/
|
|
9312
|
+
expiry?: number;
|
|
9313
|
+
};
|
|
9314
|
+
};
|
|
9315
|
+
events: {
|
|
9316
|
+
/**
|
|
9317
|
+
* Event Definition
|
|
9318
|
+
*/
|
|
9319
|
+
[k: string]: {
|
|
9320
|
+
/**
|
|
9321
|
+
* Title of the event
|
|
9322
|
+
*/
|
|
9323
|
+
title?: string;
|
|
9324
|
+
/**
|
|
9325
|
+
* Description of the event
|
|
9326
|
+
*/
|
|
9327
|
+
description?: string;
|
|
9328
|
+
schema: {
|
|
9329
|
+
[k: string]: any;
|
|
9330
|
+
};
|
|
9331
|
+
};
|
|
9332
|
+
};
|
|
9333
|
+
actions: {
|
|
9334
|
+
/**
|
|
9335
|
+
* Action definition
|
|
9336
|
+
*/
|
|
9337
|
+
[k: string]: {
|
|
9338
|
+
/**
|
|
9339
|
+
* Title of the action
|
|
9340
|
+
*/
|
|
9341
|
+
title?: string;
|
|
9342
|
+
/**
|
|
9343
|
+
* Description of the action
|
|
9344
|
+
*/
|
|
9345
|
+
description?: string;
|
|
9346
|
+
billable?: boolean;
|
|
9347
|
+
cacheable?: boolean;
|
|
9348
|
+
input: {
|
|
9349
|
+
schema: {
|
|
9350
|
+
[k: string]: any;
|
|
9351
|
+
};
|
|
9352
|
+
};
|
|
9353
|
+
output: {
|
|
9354
|
+
schema: {
|
|
9355
|
+
[k: string]: any;
|
|
9356
|
+
};
|
|
9357
|
+
};
|
|
9358
|
+
};
|
|
9359
|
+
};
|
|
9360
|
+
/**
|
|
9361
|
+
* User object configuration
|
|
9362
|
+
*/
|
|
9363
|
+
user: {
|
|
9364
|
+
tags: {
|
|
9365
|
+
/**
|
|
9366
|
+
* Definition of a tag that can be provided on the object
|
|
9367
|
+
*/
|
|
9368
|
+
[k: string]: {
|
|
9369
|
+
/**
|
|
9370
|
+
* Title of the tag
|
|
9371
|
+
*/
|
|
9372
|
+
title?: string;
|
|
9373
|
+
/**
|
|
9374
|
+
* Description of the tag
|
|
9375
|
+
*/
|
|
9376
|
+
description?: string;
|
|
9377
|
+
};
|
|
9378
|
+
};
|
|
9379
|
+
};
|
|
9380
|
+
code: string;
|
|
9381
|
+
};
|
|
9382
|
+
}
|
|
9383
|
+
|
|
9384
|
+
interface UpdatePluginRequestHeaders {
|
|
9385
|
+
}
|
|
9386
|
+
interface UpdatePluginRequestQuery {
|
|
9387
|
+
}
|
|
9388
|
+
interface UpdatePluginRequestParams {
|
|
9389
|
+
id: string;
|
|
9390
|
+
}
|
|
9391
|
+
interface UpdatePluginRequestBody {
|
|
9392
|
+
/**
|
|
9393
|
+
* Configuration definition
|
|
9394
|
+
*/
|
|
9395
|
+
configuration?: {
|
|
9396
|
+
/**
|
|
9397
|
+
* Title of the configuration
|
|
9398
|
+
*/
|
|
9399
|
+
title?: string;
|
|
9400
|
+
/**
|
|
9401
|
+
* Description of the configuration
|
|
9402
|
+
*/
|
|
9403
|
+
description?: string;
|
|
9404
|
+
/**
|
|
9405
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
9406
|
+
*/
|
|
9407
|
+
schema: {
|
|
9408
|
+
[k: string]: any;
|
|
9409
|
+
};
|
|
9410
|
+
} | null;
|
|
9411
|
+
states?: {
|
|
9412
|
+
[k: string]: {
|
|
9413
|
+
/**
|
|
9414
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
9415
|
+
*/
|
|
9416
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
9417
|
+
/**
|
|
9418
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
9419
|
+
*/
|
|
9420
|
+
schema: {
|
|
9421
|
+
[k: string]: any;
|
|
9422
|
+
};
|
|
9423
|
+
/**
|
|
9424
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
9425
|
+
*/
|
|
9426
|
+
expiry?: number;
|
|
9427
|
+
} | null;
|
|
9428
|
+
};
|
|
9429
|
+
events?: {
|
|
9430
|
+
/**
|
|
9431
|
+
* Event Definition
|
|
9432
|
+
*/
|
|
9433
|
+
[k: string]: {
|
|
9434
|
+
/**
|
|
9435
|
+
* Title of the event
|
|
9436
|
+
*/
|
|
9437
|
+
title?: string;
|
|
9438
|
+
/**
|
|
9439
|
+
* Description of the event
|
|
9440
|
+
*/
|
|
9441
|
+
description?: string;
|
|
9442
|
+
schema: {
|
|
9443
|
+
[k: string]: any;
|
|
9444
|
+
};
|
|
9445
|
+
} | null;
|
|
9446
|
+
};
|
|
9447
|
+
actions?: {
|
|
9448
|
+
/**
|
|
9449
|
+
* Action definition
|
|
9450
|
+
*/
|
|
9451
|
+
[k: string]: {
|
|
9452
|
+
/**
|
|
9453
|
+
* Title of the action
|
|
9454
|
+
*/
|
|
9455
|
+
title?: string;
|
|
9456
|
+
/**
|
|
9457
|
+
* Description of the action
|
|
9458
|
+
*/
|
|
9459
|
+
description?: string;
|
|
9460
|
+
billable?: boolean;
|
|
9461
|
+
cacheable?: boolean;
|
|
9462
|
+
input: {
|
|
9463
|
+
schema: {
|
|
9464
|
+
[k: string]: any;
|
|
9465
|
+
};
|
|
9466
|
+
};
|
|
9467
|
+
output: {
|
|
9468
|
+
schema: {
|
|
9469
|
+
[k: string]: any;
|
|
9470
|
+
};
|
|
9471
|
+
};
|
|
9472
|
+
} | null;
|
|
9473
|
+
};
|
|
9474
|
+
/**
|
|
9475
|
+
* User object configuration
|
|
9476
|
+
*/
|
|
9477
|
+
user?: {
|
|
9478
|
+
tags: {
|
|
9479
|
+
/**
|
|
9480
|
+
* Definition of a tag that can be provided on the object
|
|
9481
|
+
*/
|
|
9482
|
+
[k: string]: {
|
|
9483
|
+
/**
|
|
9484
|
+
* Title of the tag
|
|
9485
|
+
*/
|
|
9486
|
+
title?: string;
|
|
9487
|
+
/**
|
|
9488
|
+
* Description of the tag
|
|
9489
|
+
*/
|
|
9490
|
+
description?: string;
|
|
9491
|
+
};
|
|
9492
|
+
};
|
|
9493
|
+
} | null;
|
|
9494
|
+
code?: string;
|
|
9495
|
+
}
|
|
9496
|
+
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
9497
|
+
interface UpdatePluginResponse {
|
|
9498
|
+
/**
|
|
9499
|
+
* Plugin definition
|
|
9500
|
+
*/
|
|
9501
|
+
plugin: {
|
|
9502
|
+
/**
|
|
9503
|
+
* ID of the [Plugin](#schema_plugin)
|
|
9504
|
+
*/
|
|
9505
|
+
id: string;
|
|
9506
|
+
/**
|
|
9507
|
+
* Name of the [Plugin](#schema_plugin)
|
|
9508
|
+
*/
|
|
9509
|
+
name: string;
|
|
9510
|
+
/**
|
|
9511
|
+
* Version of the [Plugin](#schema_plugin)
|
|
9512
|
+
*/
|
|
9513
|
+
version: string;
|
|
9514
|
+
/**
|
|
9515
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9516
|
+
*/
|
|
9517
|
+
createdAt: string;
|
|
9518
|
+
/**
|
|
9519
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9520
|
+
*/
|
|
9521
|
+
updatedAt: string;
|
|
9522
|
+
/**
|
|
9523
|
+
* Configuration definition
|
|
9524
|
+
*/
|
|
9525
|
+
configuration: {
|
|
9526
|
+
/**
|
|
9527
|
+
* Title of the configuration
|
|
9528
|
+
*/
|
|
9529
|
+
title?: string;
|
|
9530
|
+
/**
|
|
9531
|
+
* Description of the configuration
|
|
9532
|
+
*/
|
|
9533
|
+
description?: string;
|
|
9534
|
+
/**
|
|
9535
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
9536
|
+
*/
|
|
9537
|
+
schema: {
|
|
9538
|
+
[k: string]: any;
|
|
9539
|
+
};
|
|
9540
|
+
};
|
|
9541
|
+
states: {
|
|
9542
|
+
[k: string]: {
|
|
9543
|
+
/**
|
|
9544
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
9545
|
+
*/
|
|
9546
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
9547
|
+
/**
|
|
9548
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
9549
|
+
*/
|
|
9550
|
+
schema: {
|
|
9551
|
+
[k: string]: any;
|
|
9552
|
+
};
|
|
9553
|
+
/**
|
|
9554
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
9555
|
+
*/
|
|
9556
|
+
expiry?: number;
|
|
9557
|
+
};
|
|
9558
|
+
};
|
|
9559
|
+
events: {
|
|
9560
|
+
/**
|
|
9561
|
+
* Event Definition
|
|
9562
|
+
*/
|
|
9563
|
+
[k: string]: {
|
|
9564
|
+
/**
|
|
9565
|
+
* Title of the event
|
|
9566
|
+
*/
|
|
9567
|
+
title?: string;
|
|
9568
|
+
/**
|
|
9569
|
+
* Description of the event
|
|
9570
|
+
*/
|
|
9571
|
+
description?: string;
|
|
9572
|
+
schema: {
|
|
9573
|
+
[k: string]: any;
|
|
9574
|
+
};
|
|
9575
|
+
};
|
|
9576
|
+
};
|
|
9577
|
+
actions: {
|
|
9578
|
+
/**
|
|
9579
|
+
* Action definition
|
|
9580
|
+
*/
|
|
9581
|
+
[k: string]: {
|
|
9582
|
+
/**
|
|
9583
|
+
* Title of the action
|
|
9584
|
+
*/
|
|
9585
|
+
title?: string;
|
|
9586
|
+
/**
|
|
9587
|
+
* Description of the action
|
|
9588
|
+
*/
|
|
9589
|
+
description?: string;
|
|
9590
|
+
billable?: boolean;
|
|
9591
|
+
cacheable?: boolean;
|
|
9592
|
+
input: {
|
|
9593
|
+
schema: {
|
|
9594
|
+
[k: string]: any;
|
|
9595
|
+
};
|
|
9596
|
+
};
|
|
9597
|
+
output: {
|
|
9598
|
+
schema: {
|
|
9599
|
+
[k: string]: any;
|
|
9600
|
+
};
|
|
9601
|
+
};
|
|
9602
|
+
};
|
|
9603
|
+
};
|
|
9604
|
+
/**
|
|
9605
|
+
* User object configuration
|
|
9606
|
+
*/
|
|
9607
|
+
user: {
|
|
9608
|
+
tags: {
|
|
9609
|
+
/**
|
|
9610
|
+
* Definition of a tag that can be provided on the object
|
|
9611
|
+
*/
|
|
9612
|
+
[k: string]: {
|
|
9613
|
+
/**
|
|
9614
|
+
* Title of the tag
|
|
9615
|
+
*/
|
|
9616
|
+
title?: string;
|
|
9617
|
+
/**
|
|
9618
|
+
* Description of the tag
|
|
9619
|
+
*/
|
|
9620
|
+
description?: string;
|
|
9621
|
+
};
|
|
9622
|
+
};
|
|
9623
|
+
};
|
|
9624
|
+
code: string;
|
|
9625
|
+
};
|
|
9626
|
+
}
|
|
9627
|
+
|
|
9628
|
+
interface DeletePluginRequestHeaders {
|
|
9629
|
+
}
|
|
9630
|
+
interface DeletePluginRequestQuery {
|
|
9631
|
+
}
|
|
9632
|
+
interface DeletePluginRequestParams {
|
|
9633
|
+
id: string;
|
|
9634
|
+
}
|
|
9635
|
+
interface DeletePluginRequestBody {
|
|
9636
|
+
}
|
|
9637
|
+
type DeletePluginInput = DeletePluginRequestBody & DeletePluginRequestHeaders & DeletePluginRequestQuery & DeletePluginRequestParams;
|
|
9638
|
+
interface DeletePluginResponse {
|
|
9639
|
+
}
|
|
9640
|
+
|
|
9641
|
+
interface ListPluginsRequestHeaders {
|
|
9642
|
+
}
|
|
9643
|
+
interface ListPluginsRequestQuery {
|
|
9644
|
+
nextToken?: string;
|
|
9645
|
+
name?: string;
|
|
9646
|
+
}
|
|
9647
|
+
interface ListPluginsRequestParams {
|
|
9648
|
+
}
|
|
9649
|
+
interface ListPluginsRequestBody {
|
|
9650
|
+
}
|
|
9651
|
+
type ListPluginsInput = ListPluginsRequestBody & ListPluginsRequestHeaders & ListPluginsRequestQuery & ListPluginsRequestParams;
|
|
9652
|
+
interface ListPluginsResponse {
|
|
9653
|
+
plugins: {
|
|
9654
|
+
/**
|
|
9655
|
+
* ID of the [Plugin](#schema_plugin)
|
|
9656
|
+
*/
|
|
9657
|
+
id: string;
|
|
9658
|
+
/**
|
|
9659
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9660
|
+
*/
|
|
9661
|
+
createdAt: string;
|
|
9662
|
+
/**
|
|
9663
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
9664
|
+
*/
|
|
9665
|
+
updatedAt: string;
|
|
9666
|
+
/**
|
|
9667
|
+
* Name of the [Plugin](#schema_plugin)
|
|
9668
|
+
*/
|
|
9669
|
+
name: string;
|
|
9670
|
+
/**
|
|
9671
|
+
* Version of the [Plugin](#schema_plugin)
|
|
9672
|
+
*/
|
|
9673
|
+
version: string;
|
|
9674
|
+
}[];
|
|
9675
|
+
meta: {
|
|
9676
|
+
/**
|
|
9677
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
9678
|
+
*/
|
|
9679
|
+
nextToken?: string;
|
|
9680
|
+
};
|
|
9681
|
+
}
|
|
9682
|
+
|
|
8850
9683
|
interface GetUsageRequestHeaders {
|
|
8851
9684
|
}
|
|
8852
9685
|
interface GetUsageRequestQuery {
|
|
@@ -12004,7 +12837,7 @@ interface Workspace {
|
|
|
12004
12837
|
createdAt: string;
|
|
12005
12838
|
updatedAt: string;
|
|
12006
12839
|
botCount: number;
|
|
12007
|
-
billingVersion: "v1" | "v2";
|
|
12840
|
+
billingVersion: "v1" | "v2" | "v3";
|
|
12008
12841
|
plan: "community" | "team" | "enterprise";
|
|
12009
12842
|
blocked: boolean;
|
|
12010
12843
|
spendingLimit: number;
|
|
@@ -12752,6 +13585,12 @@ declare class Client$1 {
|
|
|
12752
13585
|
readonly updateInterface: (input: UpdateInterfaceInput) => Promise<UpdateInterfaceResponse>;
|
|
12753
13586
|
readonly deleteInterface: (input: DeleteInterfaceInput) => Promise<DeleteInterfaceResponse>;
|
|
12754
13587
|
readonly listInterfaces: (input: ListInterfacesInput) => Promise<ListInterfacesResponse>;
|
|
13588
|
+
readonly createPlugin: (input: CreatePluginInput) => Promise<CreatePluginResponse>;
|
|
13589
|
+
readonly getPlugin: (input: GetPluginInput) => Promise<GetPluginResponse>;
|
|
13590
|
+
readonly getPluginByName: (input: GetPluginByNameInput) => Promise<GetPluginByNameResponse>;
|
|
13591
|
+
readonly updatePlugin: (input: UpdatePluginInput) => Promise<UpdatePluginResponse>;
|
|
13592
|
+
readonly deletePlugin: (input: DeletePluginInput) => Promise<DeletePluginResponse>;
|
|
13593
|
+
readonly listPlugins: (input: ListPluginsInput) => Promise<ListPluginsResponse>;
|
|
12755
13594
|
readonly getUsage: (input: GetUsageInput) => Promise<GetUsageResponse>;
|
|
12756
13595
|
readonly getMultipleUsages: (input: GetMultipleUsagesInput) => Promise<GetMultipleUsagesResponse>;
|
|
12757
13596
|
readonly listUsageHistory: (input: ListUsageHistoryInput) => Promise<ListUsageHistoryResponse>;
|
|
@@ -13042,9 +13881,51 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
|
|
|
13042
13881
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
13043
13882
|
|
|
13044
13883
|
declare class UploadFileError extends Error {
|
|
13045
|
-
readonly innerError?: AxiosError | undefined;
|
|
13046
|
-
readonly file?:
|
|
13047
|
-
|
|
13884
|
+
readonly innerError?: AxiosError<unknown, any> | undefined;
|
|
13885
|
+
readonly file?: {
|
|
13886
|
+
id: string;
|
|
13887
|
+
botId: string;
|
|
13888
|
+
key: string;
|
|
13889
|
+
url: string;
|
|
13890
|
+
size: number | null;
|
|
13891
|
+
contentType: string;
|
|
13892
|
+
tags: {
|
|
13893
|
+
[k: string]: string;
|
|
13894
|
+
};
|
|
13895
|
+
metadata: {
|
|
13896
|
+
[k: string]: any;
|
|
13897
|
+
};
|
|
13898
|
+
createdAt: string;
|
|
13899
|
+
updatedAt: string;
|
|
13900
|
+
accessPolicies: ("integrations" | "public_content")[];
|
|
13901
|
+
index: boolean;
|
|
13902
|
+
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13903
|
+
failedStatusReason?: string | undefined;
|
|
13904
|
+
expiresAt?: string | undefined;
|
|
13905
|
+
uploadUrl: string;
|
|
13906
|
+
} | undefined;
|
|
13907
|
+
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
13908
|
+
id: string;
|
|
13909
|
+
botId: string;
|
|
13910
|
+
key: string;
|
|
13911
|
+
url: string;
|
|
13912
|
+
size: number | null;
|
|
13913
|
+
contentType: string;
|
|
13914
|
+
tags: {
|
|
13915
|
+
[k: string]: string;
|
|
13916
|
+
};
|
|
13917
|
+
metadata: {
|
|
13918
|
+
[k: string]: any;
|
|
13919
|
+
};
|
|
13920
|
+
createdAt: string;
|
|
13921
|
+
updatedAt: string;
|
|
13922
|
+
accessPolicies: ("integrations" | "public_content")[];
|
|
13923
|
+
index: boolean;
|
|
13924
|
+
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13925
|
+
failedStatusReason?: string | undefined;
|
|
13926
|
+
expiresAt?: string | undefined;
|
|
13927
|
+
uploadUrl: string;
|
|
13928
|
+
} | undefined);
|
|
13048
13929
|
}
|
|
13049
13930
|
|
|
13050
13931
|
type ListOperation = keyof {
|
|
@@ -13074,10 +13955,10 @@ declare class AsyncCollection<T> {
|
|
|
13074
13955
|
declare class Lister {
|
|
13075
13956
|
private _client;
|
|
13076
13957
|
constructor(_client: Client$1);
|
|
13077
|
-
readonly conversations: (props: ListInputs[
|
|
13958
|
+
readonly conversations: (props: ListInputs['listConversations']) => AsyncCollection<{
|
|
13078
13959
|
id: string;
|
|
13079
|
-
currentTaskId?: string;
|
|
13080
|
-
currentWorkflowId?: string;
|
|
13960
|
+
currentTaskId?: string | undefined;
|
|
13961
|
+
currentWorkflowId?: string | undefined;
|
|
13081
13962
|
createdAt: string;
|
|
13082
13963
|
updatedAt: string;
|
|
13083
13964
|
channel: string;
|
|
@@ -13086,30 +13967,30 @@ declare class Lister {
|
|
|
13086
13967
|
[k: string]: string;
|
|
13087
13968
|
};
|
|
13088
13969
|
}>;
|
|
13089
|
-
readonly participants: (props: ListInputs[
|
|
13970
|
+
readonly participants: (props: ListInputs['listParticipants']) => AsyncCollection<{
|
|
13090
13971
|
id: string;
|
|
13091
13972
|
createdAt: string;
|
|
13092
13973
|
updatedAt: string;
|
|
13093
13974
|
tags: {
|
|
13094
13975
|
[k: string]: string;
|
|
13095
13976
|
};
|
|
13096
|
-
name?: string;
|
|
13097
|
-
pictureUrl?: string;
|
|
13977
|
+
name?: string | undefined;
|
|
13978
|
+
pictureUrl?: string | undefined;
|
|
13098
13979
|
}>;
|
|
13099
|
-
readonly events: (props: ListInputs[
|
|
13980
|
+
readonly events: (props: ListInputs['listEvents']) => AsyncCollection<{
|
|
13100
13981
|
id: string;
|
|
13101
13982
|
createdAt: string;
|
|
13102
13983
|
type: string;
|
|
13103
13984
|
payload: {
|
|
13104
13985
|
[k: string]: any;
|
|
13105
13986
|
};
|
|
13106
|
-
conversationId?: string;
|
|
13107
|
-
userId?: string;
|
|
13108
|
-
messageId?: string;
|
|
13987
|
+
conversationId?: string | undefined;
|
|
13988
|
+
userId?: string | undefined;
|
|
13989
|
+
messageId?: string | undefined;
|
|
13109
13990
|
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
13110
13991
|
failureReason: string | null;
|
|
13111
13992
|
}>;
|
|
13112
|
-
readonly messages: (props: ListInputs[
|
|
13993
|
+
readonly messages: (props: ListInputs['listMessages']) => AsyncCollection<{
|
|
13113
13994
|
id: string;
|
|
13114
13995
|
createdAt: string;
|
|
13115
13996
|
type: string;
|
|
@@ -13123,17 +14004,17 @@ declare class Lister {
|
|
|
13123
14004
|
[k: string]: string;
|
|
13124
14005
|
};
|
|
13125
14006
|
}>;
|
|
13126
|
-
readonly users: (props: ListInputs[
|
|
14007
|
+
readonly users: (props: ListInputs['listUsers']) => AsyncCollection<{
|
|
13127
14008
|
id: string;
|
|
13128
14009
|
createdAt: string;
|
|
13129
14010
|
updatedAt: string;
|
|
13130
14011
|
tags: {
|
|
13131
14012
|
[k: string]: string;
|
|
13132
14013
|
};
|
|
13133
|
-
name?: string;
|
|
13134
|
-
pictureUrl?: string;
|
|
14014
|
+
name?: string | undefined;
|
|
14015
|
+
pictureUrl?: string | undefined;
|
|
13135
14016
|
}>;
|
|
13136
|
-
readonly tasks: (props: ListInputs[
|
|
14017
|
+
readonly tasks: (props: ListInputs['listTasks']) => AsyncCollection<{
|
|
13137
14018
|
id: string;
|
|
13138
14019
|
title: string;
|
|
13139
14020
|
description: string;
|
|
@@ -13141,19 +14022,19 @@ declare class Lister {
|
|
|
13141
14022
|
data: {
|
|
13142
14023
|
[k: string]: any;
|
|
13143
14024
|
};
|
|
13144
|
-
status: "pending" | "
|
|
13145
|
-
parentTaskId?: string;
|
|
13146
|
-
conversationId?: string;
|
|
13147
|
-
userId?: string;
|
|
14025
|
+
status: "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
14026
|
+
parentTaskId?: string | undefined;
|
|
14027
|
+
conversationId?: string | undefined;
|
|
14028
|
+
userId?: string | undefined;
|
|
13148
14029
|
timeoutAt: string;
|
|
13149
14030
|
createdAt: string;
|
|
13150
14031
|
updatedAt: string;
|
|
13151
|
-
failureReason?: string;
|
|
14032
|
+
failureReason?: string | undefined;
|
|
13152
14033
|
tags: {
|
|
13153
14034
|
[k: string]: string;
|
|
13154
14035
|
};
|
|
13155
14036
|
}>;
|
|
13156
|
-
readonly publicIntegrations: (props: ListInputs[
|
|
14037
|
+
readonly publicIntegrations: (props: ListInputs['listPublicIntegrations']) => AsyncCollection<{
|
|
13157
14038
|
id: string;
|
|
13158
14039
|
name: string;
|
|
13159
14040
|
version: string;
|
|
@@ -13163,7 +14044,7 @@ declare class Lister {
|
|
|
13163
14044
|
description: string;
|
|
13164
14045
|
iconUrl: string;
|
|
13165
14046
|
public: boolean;
|
|
13166
|
-
verificationStatus: "
|
|
14047
|
+
verificationStatus: "pending" | "unapproved" | "approved" | "rejected";
|
|
13167
14048
|
ownerWorkspace: {
|
|
13168
14049
|
id: string;
|
|
13169
14050
|
handle: string | null;
|
|
@@ -13174,14 +14055,14 @@ declare class Lister {
|
|
|
13174
14055
|
views: number;
|
|
13175
14056
|
};
|
|
13176
14057
|
}>;
|
|
13177
|
-
readonly bots: (props: ListInputs[
|
|
14058
|
+
readonly bots: (props: ListInputs['listBots']) => AsyncCollection<{
|
|
13178
14059
|
id: string;
|
|
13179
14060
|
createdAt: string;
|
|
13180
14061
|
updatedAt: string;
|
|
13181
14062
|
name: string;
|
|
13182
|
-
deployedAt?: string;
|
|
14063
|
+
deployedAt?: string | undefined;
|
|
13183
14064
|
}>;
|
|
13184
|
-
readonly botIssues: (props: ListInputs[
|
|
14065
|
+
readonly botIssues: (props: ListInputs['listBotIssues']) => AsyncCollection<{
|
|
13185
14066
|
id: string;
|
|
13186
14067
|
code: string;
|
|
13187
14068
|
createdAt: string;
|
|
@@ -13191,25 +14072,25 @@ declare class Lister {
|
|
|
13191
14072
|
groupedData: {
|
|
13192
14073
|
[k: string]: {
|
|
13193
14074
|
raw: string;
|
|
13194
|
-
pretty?: string;
|
|
14075
|
+
pretty?: string | undefined;
|
|
13195
14076
|
};
|
|
13196
14077
|
};
|
|
13197
14078
|
eventsCount: number;
|
|
13198
|
-
category: "
|
|
14079
|
+
category: "configuration" | "user_code" | "limits" | "other";
|
|
13199
14080
|
resolutionLink: string | null;
|
|
13200
14081
|
}>;
|
|
13201
|
-
readonly workspaces: (props: ListInputs[
|
|
13202
|
-
readonly publicWorkspaces: (props: ListInputs[
|
|
13203
|
-
readonly workspaceMembers: (props: ListInputs[
|
|
14082
|
+
readonly workspaces: (props: ListInputs['listWorkspaces']) => AsyncCollection<UpdateWorkspaceResponse>;
|
|
14083
|
+
readonly publicWorkspaces: (props: ListInputs['listPublicWorkspaces']) => AsyncCollection<GetPublicWorkspaceResponse>;
|
|
14084
|
+
readonly workspaceMembers: (props: ListInputs['listWorkspaceMembers']) => AsyncCollection<{
|
|
13204
14085
|
id: string;
|
|
13205
|
-
userId?: string;
|
|
14086
|
+
userId?: string | undefined;
|
|
13206
14087
|
email: string;
|
|
13207
14088
|
createdAt: string;
|
|
13208
14089
|
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
13209
|
-
profilePicture?: string;
|
|
13210
|
-
displayName?: string;
|
|
14090
|
+
profilePicture?: string | undefined;
|
|
14091
|
+
displayName?: string | undefined;
|
|
13211
14092
|
}>;
|
|
13212
|
-
readonly integrations: (props: ListInputs[
|
|
14093
|
+
readonly integrations: (props: ListInputs['listIntegrations']) => AsyncCollection<{
|
|
13213
14094
|
id: string;
|
|
13214
14095
|
name: string;
|
|
13215
14096
|
version: string;
|
|
@@ -13219,16 +14100,16 @@ declare class Lister {
|
|
|
13219
14100
|
description: string;
|
|
13220
14101
|
iconUrl: string;
|
|
13221
14102
|
public: boolean;
|
|
13222
|
-
verificationStatus: "
|
|
14103
|
+
verificationStatus: "pending" | "unapproved" | "approved" | "rejected";
|
|
13223
14104
|
}>;
|
|
13224
|
-
readonly interfaces: (props: ListInputs[
|
|
14105
|
+
readonly interfaces: (props: ListInputs['listInterfaces']) => AsyncCollection<{
|
|
13225
14106
|
id: string;
|
|
13226
14107
|
createdAt: string;
|
|
13227
14108
|
updatedAt: string;
|
|
13228
14109
|
name: string;
|
|
13229
14110
|
version: string;
|
|
13230
14111
|
}>;
|
|
13231
|
-
readonly activities: (props: ListInputs[
|
|
14112
|
+
readonly activities: (props: ListInputs['listActivities']) => AsyncCollection<{
|
|
13232
14113
|
id: string;
|
|
13233
14114
|
description: string;
|
|
13234
14115
|
taskId: string;
|
|
@@ -13238,7 +14119,7 @@ declare class Lister {
|
|
|
13238
14119
|
};
|
|
13239
14120
|
createdAt: string;
|
|
13240
14121
|
}>;
|
|
13241
|
-
readonly files: (props: ListInputs[
|
|
14122
|
+
readonly files: (props: ListInputs['listFiles']) => AsyncCollection<{
|
|
13242
14123
|
id: string;
|
|
13243
14124
|
botId: string;
|
|
13244
14125
|
key: string;
|
|
@@ -13249,24 +14130,24 @@ declare class Lister {
|
|
|
13249
14130
|
[k: string]: string;
|
|
13250
14131
|
};
|
|
13251
14132
|
metadata: {
|
|
13252
|
-
[k: string]: any
|
|
14133
|
+
[k: string]: any;
|
|
13253
14134
|
};
|
|
13254
14135
|
createdAt: string;
|
|
13255
14136
|
updatedAt: string;
|
|
13256
14137
|
accessPolicies: ("integrations" | "public_content")[];
|
|
13257
14138
|
index: boolean;
|
|
13258
14139
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13259
|
-
failedStatusReason?: string;
|
|
13260
|
-
expiresAt?: string;
|
|
14140
|
+
failedStatusReason?: string | undefined;
|
|
14141
|
+
expiresAt?: string | undefined;
|
|
13261
14142
|
}>;
|
|
13262
|
-
readonly filePassages: (props: ListInputs[
|
|
14143
|
+
readonly filePassages: (props: ListInputs['listFilePassages']) => AsyncCollection<{
|
|
13263
14144
|
id: string;
|
|
13264
14145
|
content: string;
|
|
13265
14146
|
meta: {
|
|
13266
|
-
type?: "chunk" | "summary" | "consolidated";
|
|
13267
|
-
subtype?: "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" |
|
|
13268
|
-
pageNumber?: number;
|
|
13269
|
-
position?: number;
|
|
14147
|
+
type?: "chunk" | "summary" | "consolidated" | undefined;
|
|
14148
|
+
subtype?: "code" | "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | undefined;
|
|
14149
|
+
pageNumber?: number | undefined;
|
|
14150
|
+
position?: number | undefined;
|
|
13270
14151
|
};
|
|
13271
14152
|
}>;
|
|
13272
14153
|
}
|
|
@@ -13278,7 +14159,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
13278
14159
|
/**
|
|
13279
14160
|
* Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
|
|
13280
14161
|
*/
|
|
13281
|
-
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs[
|
|
14162
|
+
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs['uploadFile']) => Promise<ClientOutputs['uploadFile']>;
|
|
13282
14163
|
}
|
|
13283
14164
|
|
|
13284
14165
|
export { type Account, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientParams, type ClientProps, type ClientReturn, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type IClient, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Workflow, type Workspace, type WorkspaceMember, errorFrom, isApiError };
|