@botpress/client 0.33.1 → 0.34.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
@@ -150,6 +150,7 @@ interface ListConversationsRequestQuery {
150
150
  };
151
151
  participantIds?: string[];
152
152
  integrationName?: string;
153
+ channel?: string;
153
154
  }
154
155
  interface ListConversationsRequestParams {
155
156
  }
@@ -2882,6 +2883,10 @@ interface ListPublicIntegrationsResponse {
2882
2883
  handle: string | null;
2883
2884
  name: string;
2884
2885
  };
2886
+ meta: {
2887
+ installs: number;
2888
+ views: number;
2889
+ };
2885
2890
  }[];
2886
2891
  meta: {
2887
2892
  /**
@@ -2994,7 +2999,7 @@ interface GetPublicIntegrationByIdResponse {
2994
2999
  /**
2995
3000
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
2996
3001
  */
2997
- schema?: {
3002
+ schema: {
2998
3003
  [k: string]: any;
2999
3004
  };
3000
3005
  };
@@ -3021,7 +3026,7 @@ interface GetPublicIntegrationByIdResponse {
3021
3026
  /**
3022
3027
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
3023
3028
  */
3024
- schema?: {
3029
+ schema: {
3025
3030
  [k: string]: any;
3026
3031
  };
3027
3032
  };
@@ -3254,6 +3259,10 @@ interface GetPublicIntegrationByIdResponse {
3254
3259
  handle: string | null;
3255
3260
  name: string;
3256
3261
  };
3262
+ meta: {
3263
+ installs: number;
3264
+ views: number;
3265
+ };
3257
3266
  };
3258
3267
  }
3259
3268
 
@@ -3361,7 +3370,7 @@ interface GetPublicIntegrationResponse {
3361
3370
  /**
3362
3371
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
3363
3372
  */
3364
- schema?: {
3373
+ schema: {
3365
3374
  [k: string]: any;
3366
3375
  };
3367
3376
  };
@@ -3388,7 +3397,7 @@ interface GetPublicIntegrationResponse {
3388
3397
  /**
3389
3398
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
3390
3399
  */
3391
- schema?: {
3400
+ schema: {
3392
3401
  [k: string]: any;
3393
3402
  };
3394
3403
  };
@@ -3621,6 +3630,10 @@ interface GetPublicIntegrationResponse {
3621
3630
  handle: string | null;
3622
3631
  name: string;
3623
3632
  };
3633
+ meta: {
3634
+ installs: number;
3635
+ views: number;
3636
+ };
3624
3637
  };
3625
3638
  }
3626
3639
 
@@ -5263,35 +5276,6 @@ type DeployBotVersionInput = DeployBotVersionRequestBody & DeployBotVersionReque
5263
5276
  interface DeployBotVersionResponse {
5264
5277
  }
5265
5278
 
5266
- interface SetWorkspacePaymentMethodRequestHeaders {
5267
- }
5268
- interface SetWorkspacePaymentMethodRequestQuery {
5269
- }
5270
- interface SetWorkspacePaymentMethodRequestParams {
5271
- id: string;
5272
- }
5273
- interface SetWorkspacePaymentMethodRequestBody {
5274
- /**
5275
- * ID of the Stripe PaymentMethod to attach to the workspace.
5276
- */
5277
- stripePaymentMethodId: string;
5278
- }
5279
- type SetWorkspacePaymentMethodInput = SetWorkspacePaymentMethodRequestBody & SetWorkspacePaymentMethodRequestHeaders & SetWorkspacePaymentMethodRequestQuery & SetWorkspacePaymentMethodRequestParams;
5280
- interface SetWorkspacePaymentMethodResponse {
5281
- stripePaymentMethodId: string;
5282
- paymentMethod: {
5283
- type: string;
5284
- lastDigits: string;
5285
- } | null;
5286
- status: "succeeded" | "processing" | "canceled" | "requires_confirmation" | "requires_action" | "requires_payment_method";
5287
- /**
5288
- * If the payment needs to be confirmed, this will contain a URL to redirect the user to so they can complete the verification process to confirm it.
5289
- */
5290
- nextAction?: {
5291
- redirectToUrl: string;
5292
- };
5293
- }
5294
-
5295
5279
  interface ListWorkspaceInvoicesRequestHeaders {
5296
5280
  }
5297
5281
  interface ListWorkspaceInvoicesRequestQuery {
@@ -6337,7 +6321,7 @@ interface CreateIntegrationResponse {
6337
6321
  /**
6338
6322
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
6339
6323
  */
6340
- schema?: {
6324
+ schema: {
6341
6325
  [k: string]: any;
6342
6326
  };
6343
6327
  };
@@ -6364,7 +6348,7 @@ interface CreateIntegrationResponse {
6364
6348
  /**
6365
6349
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
6366
6350
  */
6367
- schema?: {
6351
+ schema: {
6368
6352
  [k: string]: any;
6369
6353
  };
6370
6354
  };
@@ -6991,7 +6975,7 @@ interface UpdateIntegrationResponse {
6991
6975
  /**
6992
6976
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
6993
6977
  */
6994
- schema?: {
6978
+ schema: {
6995
6979
  [k: string]: any;
6996
6980
  };
6997
6981
  };
@@ -7018,7 +7002,7 @@ interface UpdateIntegrationResponse {
7018
7002
  /**
7019
7003
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
7020
7004
  */
7021
- schema?: {
7005
+ schema: {
7022
7006
  [k: string]: any;
7023
7007
  };
7024
7008
  };
@@ -7416,7 +7400,7 @@ interface GetIntegrationResponse {
7416
7400
  /**
7417
7401
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
7418
7402
  */
7419
- schema?: {
7403
+ schema: {
7420
7404
  [k: string]: any;
7421
7405
  };
7422
7406
  };
@@ -7443,7 +7427,7 @@ interface GetIntegrationResponse {
7443
7427
  /**
7444
7428
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
7445
7429
  */
7446
- schema?: {
7430
+ schema: {
7447
7431
  [k: string]: any;
7448
7432
  };
7449
7433
  };
@@ -7800,7 +7784,7 @@ interface GetIntegrationByNameResponse {
7800
7784
  /**
7801
7785
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
7802
7786
  */
7803
- schema?: {
7787
+ schema: {
7804
7788
  [k: string]: any;
7805
7789
  };
7806
7790
  };
@@ -7827,7 +7811,7 @@ interface GetIntegrationByNameResponse {
7827
7811
  /**
7828
7812
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
7829
7813
  */
7830
- schema?: {
7814
+ schema: {
7831
7815
  [k: string]: any;
7832
7816
  };
7833
7817
  };
@@ -11498,7 +11482,7 @@ interface Integration {
11498
11482
  /**
11499
11483
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
11500
11484
  */
11501
- schema?: {
11485
+ schema: {
11502
11486
  [k: string]: any;
11503
11487
  };
11504
11488
  };
@@ -11525,7 +11509,7 @@ interface Integration {
11525
11509
  /**
11526
11510
  * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
11527
11511
  */
11528
- schema?: {
11512
+ schema: {
11529
11513
  [k: string]: any;
11530
11514
  };
11531
11515
  };
@@ -12150,6 +12134,73 @@ interface State {
12150
12134
  [k: string]: any;
12151
12135
  };
12152
12136
  }
12137
+ /**
12138
+ * Workflow definition
12139
+ */
12140
+ interface Workflow {
12141
+ /**
12142
+ * Id of the [Workflow](#schema_workflow)
12143
+ */
12144
+ id: string;
12145
+ /**
12146
+ * Name of the workflow
12147
+ */
12148
+ name: string;
12149
+ /**
12150
+ * Status of the [Workflow](#schema_workflow)
12151
+ */
12152
+ status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
12153
+ /**
12154
+ * Input provided to the [Workflow](#schema_workflow)
12155
+ */
12156
+ input: {
12157
+ [k: string]: any;
12158
+ };
12159
+ /**
12160
+ * Data returned by the [Workflow](#schema_workflow) output
12161
+ */
12162
+ output: {
12163
+ [k: string]: any;
12164
+ };
12165
+ /**
12166
+ * Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
12167
+ */
12168
+ parentWorkflowId?: string;
12169
+ /**
12170
+ * Conversation id related to this [Workflow](#schema_workflow)
12171
+ */
12172
+ conversationId?: string;
12173
+ /**
12174
+ * User id related to this [Workflow](#schema_workflow)
12175
+ */
12176
+ userId?: string;
12177
+ /**
12178
+ * Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
12179
+ */
12180
+ createdAt: string;
12181
+ /**
12182
+ * Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
12183
+ */
12184
+ updatedAt: string;
12185
+ /**
12186
+ * The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
12187
+ */
12188
+ completedAt?: string;
12189
+ /**
12190
+ * If the [Workflow](#schema_workflow) fails this is the reason behind it
12191
+ */
12192
+ failureReason?: string;
12193
+ /**
12194
+ * The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
12195
+ */
12196
+ timeoutAt: string;
12197
+ /**
12198
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
12199
+ */
12200
+ tags: {
12201
+ [k: string]: string;
12202
+ };
12203
+ }
12153
12204
  interface Table {
12154
12205
  /**
12155
12206
  * Unique identifier for the table
@@ -12511,7 +12562,6 @@ declare class Client$1 {
12511
12562
  readonly getBotVersion: (input: GetBotVersionInput) => Promise<GetBotVersionResponse>;
12512
12563
  readonly createBotVersion: (input: CreateBotVersionInput) => Promise<CreateBotVersionResponse>;
12513
12564
  readonly deployBotVersion: (input: DeployBotVersionInput) => Promise<DeployBotVersionResponse>;
12514
- readonly setWorkspacePaymentMethod: (input: SetWorkspacePaymentMethodInput) => Promise<SetWorkspacePaymentMethodResponse>;
12515
12565
  readonly listWorkspaceInvoices: (input: ListWorkspaceInvoicesInput) => Promise<ListWorkspaceInvoicesResponse>;
12516
12566
  readonly getUpcomingInvoice: (input: GetUpcomingInvoiceInput) => Promise<GetUpcomingInvoiceResponse>;
12517
12567
  readonly chargeWorkspaceUnpaidInvoices: (input: ChargeWorkspaceUnpaidInvoicesInput) => Promise<ChargeWorkspaceUnpaidInvoicesResponse>;
@@ -13004,6 +13054,10 @@ declare class Lister {
13004
13054
  handle: string | null;
13005
13055
  name: string;
13006
13056
  };
13057
+ meta: {
13058
+ installs: number;
13059
+ views: number;
13060
+ };
13007
13061
  }>;
13008
13062
  readonly bots: (props: ListInputs['listBots']) => AsyncCollection<{
13009
13063
  id: string;
@@ -13109,4 +13163,4 @@ declare class Client extends Client$1 implements IClient {
13109
13163
  readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs['uploadFile']) => Promise<ClientOutputs['uploadFile']>;
13110
13164
  }
13111
13165
 
13112
- 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 Workspace, type WorkspaceMember, errorFrom, isApiError };
13166
+ 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 };