@botpress/client 0.39.0 → 0.41.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/index.d.ts CHANGED
@@ -1721,7 +1721,11 @@ interface ConfigureIntegrationRequestBody {
1721
1721
  /**
1722
1722
  * Unique identifier of the integration that was installed on the bot
1723
1723
  */
1724
- identifier: string;
1724
+ identifier?: string;
1725
+ /**
1726
+ * Recurring schedule on which `register()` will be called on the integration
1727
+ */
1728
+ scheduleRegisterCall?: "hourly" | "daily" | "weekly" | "bi-weekly" | "monthly" | "bi-monthly" | "quarterly" | "yearly";
1725
1729
  }
1726
1730
  type ConfigureIntegrationInput = ConfigureIntegrationRequestBody & ConfigureIntegrationRequestHeaders & ConfigureIntegrationRequestQuery & ConfigureIntegrationRequestParams;
1727
1731
  interface ConfigureIntegrationResponse {
@@ -2658,6 +2662,30 @@ interface GetOrCreateWorkflowResponse {
2658
2662
  };
2659
2663
  }
2660
2664
 
2665
+ interface ListTagValuesRequestHeaders {
2666
+ }
2667
+ interface ListTagValuesRequestQuery {
2668
+ nextToken?: string;
2669
+ type: "user" | "conversation" | "message";
2670
+ }
2671
+ interface ListTagValuesRequestParams {
2672
+ key: string;
2673
+ }
2674
+ interface ListTagValuesRequestBody {
2675
+ }
2676
+ type ListTagValuesInput = ListTagValuesRequestBody & ListTagValuesRequestHeaders & ListTagValuesRequestQuery & ListTagValuesRequestParams;
2677
+ interface ListTagValuesResponse {
2678
+ tags: {
2679
+ value: string;
2680
+ }[];
2681
+ meta: {
2682
+ /**
2683
+ * 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.
2684
+ */
2685
+ nextToken?: string;
2686
+ };
2687
+ }
2688
+
2661
2689
  interface TrackAnalyticsRequestHeaders {
2662
2690
  }
2663
2691
  interface TrackAnalyticsRequestQuery {
@@ -5034,6 +5062,10 @@ interface GetBotLogsRequestHeaders {
5034
5062
  interface GetBotLogsRequestQuery {
5035
5063
  timeStart: string;
5036
5064
  timeEnd: string;
5065
+ level?: string;
5066
+ userId?: string;
5067
+ workflowId?: string;
5068
+ conversationId?: string;
5037
5069
  nextToken?: string;
5038
5070
  }
5039
5071
  interface GetBotLogsRequestParams {
@@ -5047,6 +5079,9 @@ interface GetBotLogsResponse {
5047
5079
  timestamp: string;
5048
5080
  level: string;
5049
5081
  message: string;
5082
+ workflowId?: string;
5083
+ userId?: string;
5084
+ conversationId?: string;
5050
5085
  }[];
5051
5086
  nextToken?: string;
5052
5087
  }
@@ -7713,6 +7748,9 @@ interface GetIntegrationLogsRequestHeaders {
7713
7748
  interface GetIntegrationLogsRequestQuery {
7714
7749
  timeStart: string;
7715
7750
  timeEnd: string;
7751
+ level?: string;
7752
+ userId?: string;
7753
+ conversationId?: string;
7716
7754
  nextToken?: string;
7717
7755
  }
7718
7756
  interface GetIntegrationLogsRequestParams {
@@ -7726,6 +7764,9 @@ interface GetIntegrationLogsResponse {
7726
7764
  timestamp: string;
7727
7765
  level: string;
7728
7766
  message: string;
7767
+ workflowId?: string;
7768
+ userId?: string;
7769
+ conversationId?: string;
7729
7770
  }[];
7730
7771
  nextToken?: string;
7731
7772
  }
@@ -8995,6 +9036,18 @@ interface CreatePluginRequestBody {
8995
9036
  };
8996
9037
  };
8997
9038
  code: string;
9039
+ dependencies?: {
9040
+ interfaces?: {
9041
+ [k: string]: {
9042
+ id: string;
9043
+ };
9044
+ };
9045
+ integrations?: {
9046
+ [k: string]: {
9047
+ id: string;
9048
+ };
9049
+ };
9050
+ };
8998
9051
  }
8999
9052
  type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
9000
9053
  interface CreatePluginResponse {
@@ -9104,6 +9157,22 @@ interface CreatePluginResponse {
9104
9157
  };
9105
9158
  };
9106
9159
  };
9160
+ dependencies: {
9161
+ interfaces: {
9162
+ [k: string]: {
9163
+ id: string;
9164
+ name: string;
9165
+ version: string;
9166
+ };
9167
+ };
9168
+ integrations: {
9169
+ [k: string]: {
9170
+ id: string;
9171
+ name: string;
9172
+ version: string;
9173
+ };
9174
+ };
9175
+ };
9107
9176
  /**
9108
9177
  * User object configuration
9109
9178
  */
@@ -9245,6 +9314,22 @@ interface GetPluginResponse {
9245
9314
  };
9246
9315
  };
9247
9316
  };
9317
+ dependencies: {
9318
+ interfaces: {
9319
+ [k: string]: {
9320
+ id: string;
9321
+ name: string;
9322
+ version: string;
9323
+ };
9324
+ };
9325
+ integrations: {
9326
+ [k: string]: {
9327
+ id: string;
9328
+ name: string;
9329
+ version: string;
9330
+ };
9331
+ };
9332
+ };
9248
9333
  /**
9249
9334
  * User object configuration
9250
9335
  */
@@ -9387,6 +9472,22 @@ interface GetPluginByNameResponse {
9387
9472
  };
9388
9473
  };
9389
9474
  };
9475
+ dependencies: {
9476
+ interfaces: {
9477
+ [k: string]: {
9478
+ id: string;
9479
+ name: string;
9480
+ version: string;
9481
+ };
9482
+ };
9483
+ integrations: {
9484
+ [k: string]: {
9485
+ id: string;
9486
+ name: string;
9487
+ version: string;
9488
+ };
9489
+ };
9490
+ };
9390
9491
  /**
9391
9492
  * User object configuration
9392
9493
  */
@@ -9522,6 +9623,18 @@ interface UpdatePluginRequestBody {
9522
9623
  };
9523
9624
  } | null;
9524
9625
  code?: string;
9626
+ dependencies?: {
9627
+ interfaces?: {
9628
+ [k: string]: {
9629
+ id: string;
9630
+ } | null;
9631
+ };
9632
+ integrations?: {
9633
+ [k: string]: {
9634
+ id: string;
9635
+ } | null;
9636
+ };
9637
+ };
9525
9638
  }
9526
9639
  type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
9527
9640
  interface UpdatePluginResponse {
@@ -9631,6 +9744,22 @@ interface UpdatePluginResponse {
9631
9744
  };
9632
9745
  };
9633
9746
  };
9747
+ dependencies: {
9748
+ interfaces: {
9749
+ [k: string]: {
9750
+ id: string;
9751
+ name: string;
9752
+ version: string;
9753
+ };
9754
+ };
9755
+ integrations: {
9756
+ [k: string]: {
9757
+ id: string;
9758
+ name: string;
9759
+ version: string;
9760
+ };
9761
+ };
9762
+ };
9634
9763
  /**
9635
9764
  * User object configuration
9636
9765
  */
@@ -13081,6 +13210,22 @@ interface Plugin {
13081
13210
  };
13082
13211
  };
13083
13212
  };
13213
+ dependencies: {
13214
+ interfaces: {
13215
+ [k: string]: {
13216
+ id: string;
13217
+ name: string;
13218
+ version: string;
13219
+ };
13220
+ };
13221
+ integrations: {
13222
+ [k: string]: {
13223
+ id: string;
13224
+ name: string;
13225
+ version: string;
13226
+ };
13227
+ };
13228
+ };
13084
13229
  /**
13085
13230
  * User object configuration
13086
13231
  */
@@ -13790,6 +13935,7 @@ declare class Client$1 {
13790
13935
  readonly deleteWorkflow: (input: DeleteWorkflowInput) => Promise<DeleteWorkflowResponse>;
13791
13936
  readonly listWorkflows: (input: ListWorkflowsInput) => Promise<ListWorkflowsResponse>;
13792
13937
  readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput) => Promise<GetOrCreateWorkflowResponse>;
13938
+ readonly listTagValues: (input: ListTagValuesInput) => Promise<ListTagValuesResponse>;
13793
13939
  readonly trackAnalytics: (input: TrackAnalyticsInput) => Promise<TrackAnalyticsResponse>;
13794
13940
  readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
13795
13941
  readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
@@ -13972,14 +14118,16 @@ declare abstract class BaseApiError<Code extends ErrorCode, Type extends string,
13972
14118
  readonly message: string;
13973
14119
  readonly error?: Error | undefined;
13974
14120
  readonly id?: string | undefined;
14121
+ readonly metadata?: Record<string, unknown> | undefined;
13975
14122
  readonly isApiError = true;
13976
- constructor(code: Code, description: Description, type: Type, message: string, error?: Error | undefined, id?: string | undefined);
14123
+ constructor(code: Code, description: Description, type: Type, message: string, error?: Error | undefined, id?: string | undefined, metadata?: Record<string, unknown> | undefined);
13977
14124
  format(): string;
13978
14125
  toJSON(): {
13979
14126
  id: string | undefined;
13980
14127
  code: Code;
13981
14128
  type: Type;
13982
14129
  message: string;
14130
+ metadata: Record<string, unknown> | undefined;
13983
14131
  };
13984
14132
  static generateId(): string;
13985
14133
  private static getPrefix;
@@ -13990,178 +14138,171 @@ type UnknownType = 'Unknown';
13990
14138
  * An unknown error occurred
13991
14139
  */
13992
14140
  declare class UnknownError extends BaseApiError<500, UnknownType, 'An unknown error occurred'> {
13993
- constructor(message: string, error?: Error, id?: string);
14141
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
13994
14142
  }
13995
14143
  type InternalType = 'Internal';
13996
14144
  /**
13997
14145
  * An internal error occurred
13998
14146
  */
13999
14147
  declare class InternalError extends BaseApiError<500, InternalType, 'An internal error occurred'> {
14000
- constructor(message: string, error?: Error, id?: string);
14148
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14001
14149
  }
14002
14150
  type UnauthorizedType = 'Unauthorized';
14003
14151
  /**
14004
14152
  * The request requires to be authenticated.
14005
14153
  */
14006
14154
  declare class UnauthorizedError extends BaseApiError<401, UnauthorizedType, 'The request requires to be authenticated.'> {
14007
- constructor(message: string, error?: Error, id?: string);
14155
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14008
14156
  }
14009
14157
  type ForbiddenType = 'Forbidden';
14010
14158
  /**
14011
14159
  * The requested action can\'t be peform by this resource.
14012
14160
  */
14013
14161
  declare class ForbiddenError extends BaseApiError<403, ForbiddenType, 'The requested action can\'t be peform by this resource.'> {
14014
- constructor(message: string, error?: Error, id?: string);
14162
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14015
14163
  }
14016
14164
  type PayloadTooLargeType = 'PayloadTooLarge';
14017
14165
  /**
14018
14166
  * The request payload is too large.
14019
14167
  */
14020
14168
  declare class PayloadTooLargeError extends BaseApiError<413, PayloadTooLargeType, 'The request payload is too large.'> {
14021
- constructor(message: string, error?: Error, id?: string);
14169
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14022
14170
  }
14023
14171
  type InvalidPayloadType = 'InvalidPayload';
14024
14172
  /**
14025
14173
  * The request payload is invalid.
14026
14174
  */
14027
14175
  declare class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload is invalid.'> {
14028
- constructor(message: string, error?: Error, id?: string);
14176
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14029
14177
  }
14030
14178
  type UnsupportedMediaTypeType = 'UnsupportedMediaType';
14031
14179
  /**
14032
14180
  * The request is invalid because the content-type is not supported.
14033
14181
  */
14034
14182
  declare class UnsupportedMediaTypeError extends BaseApiError<415, UnsupportedMediaTypeType, 'The request is invalid because the content-type is not supported.'> {
14035
- constructor(message: string, error?: Error, id?: string);
14183
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14036
14184
  }
14037
14185
  type MethodNotFoundType = 'MethodNotFound';
14038
14186
  /**
14039
14187
  * The requested method does not exist.
14040
14188
  */
14041
14189
  declare class MethodNotFoundError extends BaseApiError<405, MethodNotFoundType, 'The requested method does not exist.'> {
14042
- constructor(message: string, error?: Error, id?: string);
14190
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14043
14191
  }
14044
14192
  type ResourceNotFoundType = 'ResourceNotFound';
14045
14193
  /**
14046
14194
  * The requested resource does not exist.
14047
14195
  */
14048
14196
  declare class ResourceNotFoundError extends BaseApiError<404, ResourceNotFoundType, 'The requested resource does not exist.'> {
14049
- constructor(message: string, error?: Error, id?: string);
14197
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14050
14198
  }
14051
14199
  type InvalidJsonSchemaType = 'InvalidJsonSchema';
14052
14200
  /**
14053
14201
  * The provided JSON schema is invalid.
14054
14202
  */
14055
14203
  declare class InvalidJsonSchemaError extends BaseApiError<400, InvalidJsonSchemaType, 'The provided JSON schema is invalid.'> {
14056
- constructor(message: string, error?: Error, id?: string);
14204
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14057
14205
  }
14058
14206
  type InvalidDataFormatType = 'InvalidDataFormat';
14059
14207
  /**
14060
14208
  * The provided data doesn\'t respect the provided JSON schema.
14061
14209
  */
14062
14210
  declare class InvalidDataFormatError extends BaseApiError<400, InvalidDataFormatType, 'The provided data doesn\'t respect the provided JSON schema.'> {
14063
- constructor(message: string, error?: Error, id?: string);
14211
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14064
14212
  }
14065
14213
  type InvalidIdentifierType = 'InvalidIdentifier';
14066
14214
  /**
14067
14215
  * The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.
14068
14216
  */
14069
14217
  declare class InvalidIdentifierError extends BaseApiError<400, InvalidIdentifierType, 'The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.'> {
14070
- constructor(message: string, error?: Error, id?: string);
14218
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14071
14219
  }
14072
14220
  type RelationConflictType = 'RelationConflict';
14073
14221
  /**
14074
14222
  * The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren\'t linked together.
14075
14223
  */
14076
14224
  declare class RelationConflictError extends BaseApiError<409, RelationConflictType, 'The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren\'t linked together.'> {
14077
- constructor(message: string, error?: Error, id?: string);
14225
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14078
14226
  }
14079
14227
  type ReferenceConstraintType = 'ReferenceConstraint';
14080
14228
  /**
14081
14229
  * The resource cannot be deleted because it\'s referenced by another resource
14082
14230
  */
14083
14231
  declare class ReferenceConstraintError extends BaseApiError<409, ReferenceConstraintType, 'The resource cannot be deleted because it\'s referenced by another resource'> {
14084
- constructor(message: string, error?: Error, id?: string);
14232
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14085
14233
  }
14086
14234
  type ResourceLockedConflictType = 'ResourceLockedConflict';
14087
14235
  /**
14088
14236
  * The resource is current locked and cannot be operated on until the lock is released.
14089
14237
  */
14090
14238
  declare class ResourceLockedConflictError extends BaseApiError<409, ResourceLockedConflictType, 'The resource is current locked and cannot be operated on until the lock is released.'> {
14091
- constructor(message: string, error?: Error, id?: string);
14239
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14092
14240
  }
14093
14241
  type ReferenceNotFoundType = 'ReferenceNotFound';
14094
14242
  /**
14095
14243
  * The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.
14096
14244
  */
14097
14245
  declare class ReferenceNotFoundError extends BaseApiError<400, ReferenceNotFoundType, 'The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.'> {
14098
- constructor(message: string, error?: Error, id?: string);
14246
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14099
14247
  }
14100
14248
  type InvalidQueryType = 'InvalidQuery';
14101
14249
  /**
14102
14250
  * The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.
14103
14251
  */
14104
14252
  declare class InvalidQueryError extends BaseApiError<400, InvalidQueryType, 'The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.'> {
14105
- constructor(message: string, error?: Error, id?: string);
14253
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14106
14254
  }
14107
14255
  type RuntimeType = 'Runtime';
14108
14256
  /**
14109
14257
  * An error happened during the execution of a runtime (bot or integration).
14110
14258
  */
14111
14259
  declare class RuntimeError extends BaseApiError<400, RuntimeType, 'An error happened during the execution of a runtime (bot or integration).'> {
14112
- constructor(message: string, error?: Error, id?: string);
14260
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14113
14261
  }
14114
14262
  type AlreadyExistsType = 'AlreadyExists';
14115
14263
  /**
14116
14264
  * The record attempted to be created already exists.
14117
14265
  */
14118
14266
  declare class AlreadyExistsError extends BaseApiError<409, AlreadyExistsType, 'The record attempted to be created already exists.'> {
14119
- constructor(message: string, error?: Error, id?: string);
14267
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14120
14268
  }
14121
14269
  type RateLimitedType = 'RateLimited';
14122
14270
  /**
14123
14271
  * The request has been rate limited.
14124
14272
  */
14125
14273
  declare class RateLimitedError extends BaseApiError<429, RateLimitedType, 'The request has been rate limited.'> {
14126
- constructor(message: string, error?: Error, id?: string);
14274
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14127
14275
  }
14128
14276
  type PaymentRequiredType = 'PaymentRequired';
14129
14277
  /**
14130
14278
  * A payment is required to perform this request.
14131
14279
  */
14132
14280
  declare class PaymentRequiredError extends BaseApiError<402, PaymentRequiredType, 'A payment is required to perform this request.'> {
14133
- constructor(message: string, error?: Error, id?: string);
14281
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14134
14282
  }
14135
14283
  type QuotaExceededType = 'QuotaExceeded';
14136
14284
  /**
14137
14285
  * The request exceeds the allowed quota. Quotas are a soft limit that can be increased.
14138
14286
  */
14139
14287
  declare class QuotaExceededError extends BaseApiError<403, QuotaExceededType, 'The request exceeds the allowed quota. Quotas are a soft limit that can be increased.'> {
14140
- constructor(message: string, error?: Error, id?: string);
14288
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14141
14289
  }
14142
14290
  type LimitExceededType = 'LimitExceeded';
14143
14291
  /**
14144
14292
  * The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.
14145
14293
  */
14146
14294
  declare class LimitExceededError extends BaseApiError<413, LimitExceededType, 'The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.'> {
14147
- constructor(message: string, error?: Error, id?: string);
14295
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14148
14296
  }
14149
14297
  type BreakingChangesType = 'BreakingChanges';
14150
14298
  /**
14151
14299
  * Request payload contains breaking changes which is not allowed for this resource without a version increment.
14152
14300
  */
14153
14301
  declare class BreakingChangesError extends BaseApiError<400, BreakingChangesType, 'Request payload contains breaking changes which is not allowed for this resource without a version increment.'> {
14154
- constructor(message: string, error?: Error, id?: string);
14155
- }
14156
- type UpstreamProviderType = 'UpstreamProvider';
14157
- /**
14158
- * The upstream provider returned an error or is currently unavailable.
14159
- */
14160
- declare class UpstreamProviderError extends BaseApiError<424, UpstreamProviderType, 'The upstream provider returned an error or is currently unavailable.'> {
14161
- constructor(message: string, error?: Error, id?: string);
14302
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
14162
14303
  }
14163
- type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges' | 'UpstreamProvider';
14164
- type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError | UpstreamProviderError;
14304
+ type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges';
14305
+ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError;
14165
14306
  declare const errorFrom: (err: unknown) => ApiError;
14166
14307
 
14167
14308
  declare class UploadFileError extends Error {
@@ -14405,4 +14546,4 @@ declare class Client extends Client$1 implements IClient {
14405
14546
  readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
14406
14547
  }
14407
14548
 
14408
- 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, type Plugin, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, UpstreamProviderError, type Usage, type User, type Workflow, type Workspace, type WorkspaceMember, errorFrom, isApiError };
14549
+ 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, type Plugin, 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 };