@botpress/client 1.29.0 → 1.31.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
@@ -31,14 +31,14 @@ type SimplifyObject<T extends object> = T extends infer O ? {
31
31
  [K in keyof O]: Simplify<O[K]>;
32
32
  } : never;
33
33
  type Simplify<T> = T extends (...args: infer A) => infer R ? (...args: SimplifyTuple<A>) => Simplify<R> : T extends Array<infer E> ? Array<Simplify<E>> : T extends ReadonlyArray<infer E> ? ReadonlyArray<Simplify<E>> : T extends Promise<infer R> ? Promise<Simplify<R>> : T extends Buffer ? Buffer : T extends object ? SimplifyObject<T> : T;
34
- type Operation$5<C extends Record<string, AsyncFunc>> = Simplify<keyof {
34
+ type Operation$6<C extends Record<string, AsyncFunc>> = Simplify<keyof {
35
35
  [K in keyof C as C[K] extends AsyncFunc ? K : never]: C[K];
36
36
  }>;
37
37
  type Inputs<C extends Record<string, AsyncFunc>> = Simplify<{
38
- [T in Operation$5<C>]: Parameters<C[Cast<T, keyof C>]>[0];
38
+ [T in Operation$6<C>]: Parameters<C[Cast<T, keyof C>]>[0];
39
39
  }>;
40
40
  type Outputs<C extends Record<string, AsyncFunc>> = Simplify<{
41
- [T in Operation$5<C>]: Awaited<ReturnType<C[Cast<T, keyof C>]>>;
41
+ [T in Operation$6<C>]: Awaited<ReturnType<C[Cast<T, keyof C>]>>;
42
42
  }>;
43
43
 
44
44
  type PageLister<R> = (t: {
@@ -58,21 +58,21 @@ declare class AsyncCollection<T> {
58
58
  }): Promise<T[]>;
59
59
  }
60
60
 
61
- type Primitive$4 = string | number | boolean;
62
- type Value$4<P extends Primitive$4> = P | P[] | Record<string, P>;
63
- type QueryValue$4 = Value$4<string> | Value$4<boolean> | Value$4<number> | undefined;
64
- type AnyQueryParams$4 = Record<string, QueryValue$4>;
65
- type HeaderValue$4 = string | undefined;
66
- type AnyHeaderParams$4 = Record<string, HeaderValue$4>;
67
- type AnyBodyParams$4 = Record<string, any>;
68
- type ParsedRequest$4 = {
61
+ type Primitive$5 = string | number | boolean;
62
+ type Value$5<P extends Primitive$5> = P | P[] | Record<string, P>;
63
+ type QueryValue$5 = Value$5<string> | Value$5<boolean> | Value$5<number> | undefined;
64
+ type AnyQueryParams$5 = Record<string, QueryValue$5>;
65
+ type HeaderValue$5 = string | undefined;
66
+ type AnyHeaderParams$5 = Record<string, HeaderValue$5>;
67
+ type AnyBodyParams$5 = Record<string, any>;
68
+ type ParsedRequest$5 = {
69
69
  method: string;
70
70
  path: string;
71
- query: AnyQueryParams$4;
72
- headers: AnyHeaderParams$4;
73
- body: AnyBodyParams$4;
71
+ query: AnyQueryParams$5;
72
+ headers: AnyHeaderParams$5;
73
+ body: AnyBodyParams$5;
74
74
  };
75
- declare const toAxiosRequest$4: (req: ParsedRequest$4) => AxiosRequestConfig;
75
+ declare const toAxiosRequest$5: (req: ParsedRequest$5) => AxiosRequestConfig;
76
76
 
77
77
  interface CreateConversationRequestHeaders$1 {
78
78
  }
@@ -3149,14 +3149,14 @@ type TrackAnalyticsInput$1 = TrackAnalyticsRequestBody$1 & TrackAnalyticsRequest
3149
3149
  interface TrackAnalyticsResponse$1 {
3150
3150
  }
3151
3151
 
3152
- type ClientProps$9 = {
3153
- toAxiosRequest: typeof toAxiosRequest$4;
3154
- toApiError: typeof toApiError$4;
3152
+ type ClientProps$b = {
3153
+ toAxiosRequest: typeof toAxiosRequest$5;
3154
+ toApiError: typeof toApiError$5;
3155
3155
  };
3156
- declare class Client$9 {
3156
+ declare class Client$b {
3157
3157
  private axiosInstance;
3158
3158
  private props;
3159
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$9>);
3159
+ constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$b>);
3160
3160
  readonly createConversation: (input: CreateConversationInput$1) => Promise<CreateConversationResponse$1>;
3161
3161
  readonly getConversation: (input: GetConversationInput$1) => Promise<GetConversationResponse$1>;
3162
3162
  readonly listConversations: (input: ListConversationsInput$1) => Promise<ListConversationsResponse$1>;
@@ -3206,21 +3206,21 @@ declare class Client$9 {
3206
3206
  readonly listTagValues: (input: ListTagValuesInput$1) => Promise<ListTagValuesResponse$1>;
3207
3207
  readonly trackAnalytics: (input: TrackAnalyticsInput$1) => Promise<TrackAnalyticsResponse$1>;
3208
3208
  }
3209
- declare function toApiError$4(err: unknown): Error;
3209
+ declare function toApiError$5(err: unknown): Error;
3210
3210
 
3211
- type IClient$4 = Simplify<Client$9>;
3212
- type Operation$4 = Operation$5<IClient$4>;
3213
- type ClientInputs$4 = Inputs<IClient$4>;
3214
- type ClientOutputs$4 = Outputs<IClient$4>;
3215
- type ClientProps$8 = CommonClientProps & {
3211
+ type IClient$5 = Simplify<Client$b>;
3212
+ type Operation$5 = Operation$6<IClient$5>;
3213
+ type ClientInputs$5 = Inputs<IClient$5>;
3214
+ type ClientOutputs$5 = Outputs<IClient$5>;
3215
+ type ClientProps$a = CommonClientProps & {
3216
3216
  token: string;
3217
3217
  botId: string;
3218
3218
  integrationId?: string;
3219
3219
  integrationAlias?: string;
3220
3220
  };
3221
- declare class Client$8 extends Client$9 {
3221
+ declare class Client$a extends Client$b {
3222
3222
  readonly config: Readonly<ClientConfig>;
3223
- constructor(clientProps: ClientProps$8);
3223
+ constructor(clientProps: ClientProps$a);
3224
3224
  get list(): {
3225
3225
  conversations: (props: {
3226
3226
  tags?: {
@@ -3352,25 +3352,25 @@ declare class Client$8 extends Client$9 {
3352
3352
  };
3353
3353
  }
3354
3354
 
3355
- declare namespace index$3 {
3356
- export { Client$8 as Client, type ClientInputs$4 as ClientInputs, type ClientOutputs$4 as ClientOutputs, type ClientProps$8 as ClientProps, type Operation$4 as Operation };
3355
+ declare namespace index$4 {
3356
+ export { Client$a as Client, type ClientInputs$5 as ClientInputs, type ClientOutputs$5 as ClientOutputs, type ClientProps$a as ClientProps, type Operation$5 as Operation };
3357
3357
  }
3358
3358
 
3359
- type Primitive$3 = string | number | boolean;
3360
- type Value$3<P extends Primitive$3> = P | P[] | Record<string, P>;
3361
- type QueryValue$3 = Value$3<string> | Value$3<boolean> | Value$3<number> | undefined;
3362
- type AnyQueryParams$3 = Record<string, QueryValue$3>;
3363
- type HeaderValue$3 = string | undefined;
3364
- type AnyHeaderParams$3 = Record<string, HeaderValue$3>;
3365
- type AnyBodyParams$3 = Record<string, any>;
3366
- type ParsedRequest$3 = {
3359
+ type Primitive$4 = string | number | boolean;
3360
+ type Value$4<P extends Primitive$4> = P | P[] | Record<string, P>;
3361
+ type QueryValue$4 = Value$4<string> | Value$4<boolean> | Value$4<number> | undefined;
3362
+ type AnyQueryParams$4 = Record<string, QueryValue$4>;
3363
+ type HeaderValue$4 = string | undefined;
3364
+ type AnyHeaderParams$4 = Record<string, HeaderValue$4>;
3365
+ type AnyBodyParams$4 = Record<string, any>;
3366
+ type ParsedRequest$4 = {
3367
3367
  method: string;
3368
3368
  path: string;
3369
- query: AnyQueryParams$3;
3370
- headers: AnyHeaderParams$3;
3371
- body: AnyBodyParams$3;
3369
+ query: AnyQueryParams$4;
3370
+ headers: AnyHeaderParams$4;
3371
+ body: AnyBodyParams$4;
3372
3372
  };
3373
- declare const toAxiosRequest$3: (req: ParsedRequest$3) => AxiosRequestConfig;
3373
+ declare const toAxiosRequest$4: (req: ParsedRequest$4) => AxiosRequestConfig;
3374
3374
 
3375
3375
  interface RunVrlRequestHeaders$1 {
3376
3376
  }
@@ -5836,7 +5836,7 @@ interface CreateBotRequestBody$1 {
5836
5836
  name: string;
5837
5837
  }[];
5838
5838
  /**
5839
- * URL of the [Bot](#schema_bot); Only available for dev bots
5839
+ * URL of the [Bot](#schema_bot)
5840
5840
  */
5841
5841
  url?: string;
5842
5842
  /**
@@ -6270,9 +6270,9 @@ interface UpdateBotRequestParams$1 {
6270
6270
  }
6271
6271
  interface UpdateBotRequestBody$1 {
6272
6272
  /**
6273
- * URL of the [Bot](#schema_bot); Only available for dev bots
6273
+ * URL of the [Bot](#schema_bot)
6274
6274
  */
6275
- url?: string;
6275
+ url?: string | null;
6276
6276
  /**
6277
6277
  * Type of the [Bot](#schema_bot) authentication (`iam`)
6278
6278
  */
@@ -7585,6 +7585,9 @@ interface ListActionRunsResponse$1 {
7585
7585
  * ISO 8601 timestamp of the action run
7586
7586
  */
7587
7587
  timestamp: string;
7588
+ /**
7589
+ * Alias of the integration instance used for this action run
7590
+ */
7588
7591
  integrationName?: string;
7589
7592
  actionType: string;
7590
7593
  /**
@@ -7593,12 +7596,20 @@ interface ListActionRunsResponse$1 {
7593
7596
  input: {
7594
7597
  [k: string]: any;
7595
7598
  };
7599
+ /**
7600
+ * Present if the length of the action's input exceeds 190 KB.
7601
+ */
7602
+ inputTruncated?: boolean;
7596
7603
  /**
7597
7604
  * Output of the action
7598
7605
  */
7599
7606
  output: {
7600
7607
  [k: string]: any;
7601
7608
  } | null;
7609
+ /**
7610
+ * Present if the length of the action's output exceeds 190 KB.
7611
+ */
7612
+ outputTruncated?: boolean;
7602
7613
  status: "SUCCESS" | "FAILURE";
7603
7614
  durationMs: number;
7604
7615
  cached: boolean;
@@ -8124,7 +8135,7 @@ interface CreateWorkspaceResponse$1 {
8124
8135
  createdAt: string;
8125
8136
  updatedAt: string;
8126
8137
  botCount: number;
8127
- billingVersion: "v1" | "v2" | "v3";
8138
+ billingVersion: "v1" | "v2" | "v3" | "v4";
8128
8139
  plan: "community" | "team" | "enterprise" | "plus";
8129
8140
  blocked: boolean;
8130
8141
  spendingLimit: number;
@@ -8178,7 +8189,7 @@ interface GetWorkspaceResponse$1 {
8178
8189
  createdAt: string;
8179
8190
  updatedAt: string;
8180
8191
  botCount: number;
8181
- billingVersion: "v1" | "v2" | "v3";
8192
+ billingVersion: "v1" | "v2" | "v3" | "v4";
8182
8193
  plan: "community" | "team" | "enterprise" | "plus";
8183
8194
  blocked: boolean;
8184
8195
  spendingLimit: number;
@@ -8350,7 +8361,7 @@ interface UpdateWorkspaceResponse$3 {
8350
8361
  createdAt: string;
8351
8362
  updatedAt: string;
8352
8363
  botCount: number;
8353
- billingVersion: "v1" | "v2" | "v3";
8364
+ billingVersion: "v1" | "v2" | "v3" | "v4";
8354
8365
  plan: "community" | "team" | "enterprise" | "plus";
8355
8366
  blocked: boolean;
8356
8367
  spendingLimit: number;
@@ -8407,7 +8418,7 @@ interface UpdateWorkspaceResponse$2 {
8407
8418
  createdAt: string;
8408
8419
  updatedAt: string;
8409
8420
  botCount: number;
8410
- billingVersion: "v1" | "v2" | "v3";
8421
+ billingVersion: "v1" | "v2" | "v3" | "v4";
8411
8422
  plan: "community" | "team" | "enterprise" | "plus";
8412
8423
  blocked: boolean;
8413
8424
  spendingLimit: number;
@@ -14689,14 +14700,14 @@ interface IntrospectResponse$1 {
14689
14700
  userId: string;
14690
14701
  }
14691
14702
 
14692
- type ClientProps$7 = {
14693
- toAxiosRequest: typeof toAxiosRequest$3;
14694
- toApiError: typeof toApiError$3;
14703
+ type ClientProps$9 = {
14704
+ toAxiosRequest: typeof toAxiosRequest$4;
14705
+ toApiError: typeof toApiError$4;
14695
14706
  };
14696
- declare class Client$7 {
14707
+ declare class Client$9 {
14697
14708
  private axiosInstance;
14698
14709
  private props;
14699
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$7>);
14710
+ constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$9>);
14700
14711
  readonly runVrl: (input: RunVrlInput$1) => Promise<RunVrlResponse$1>;
14701
14712
  readonly getAccount: (input: GetAccountInput$1) => Promise<GetAccountResponse$1>;
14702
14713
  readonly updateAccount: (input: UpdateAccountInput$1) => Promise<UpdateAccountResponse$1>;
@@ -14806,19 +14817,19 @@ declare class Client$7 {
14806
14817
  readonly listActivities: (input: ListActivitiesInput$1) => Promise<ListActivitiesResponse$1>;
14807
14818
  readonly introspect: (input: IntrospectInput$1) => Promise<IntrospectResponse$1>;
14808
14819
  }
14809
- declare function toApiError$3(err: unknown): Error;
14820
+ declare function toApiError$4(err: unknown): Error;
14810
14821
 
14811
- type IClient$3 = Simplify<Client$7>;
14812
- type Operation$3 = Operation$5<IClient$3>;
14813
- type ClientInputs$3 = Inputs<IClient$3>;
14814
- type ClientOutputs$3 = Outputs<IClient$3>;
14815
- type ClientProps$6 = CommonClientProps & {
14822
+ type IClient$4 = Simplify<Client$9>;
14823
+ type Operation$4 = Operation$6<IClient$4>;
14824
+ type ClientInputs$4 = Inputs<IClient$4>;
14825
+ type ClientOutputs$4 = Outputs<IClient$4>;
14826
+ type ClientProps$8 = CommonClientProps & {
14816
14827
  workspaceId?: string;
14817
14828
  token: string;
14818
14829
  };
14819
- declare class Client$6 extends Client$7 {
14830
+ declare class Client$8 extends Client$9 {
14820
14831
  readonly config: Readonly<ClientConfig>;
14821
- constructor(clientProps: ClientProps$6);
14832
+ constructor(clientProps: ClientProps$8);
14822
14833
  get list(): {
14823
14834
  publicIntegrations: (props: {
14824
14835
  search?: string | undefined;
@@ -15012,6 +15023,333 @@ declare class Client$6 extends Client$7 {
15012
15023
  };
15013
15024
  }
15014
15025
 
15026
+ declare namespace index$3 {
15027
+ export { Client$8 as Client, type ClientInputs$4 as ClientInputs, type ClientOutputs$4 as ClientOutputs, type ClientProps$8 as ClientProps, type Operation$4 as Operation };
15028
+ }
15029
+
15030
+ type Primitive$3 = string | number | boolean;
15031
+ type Value$3<P extends Primitive$3> = P | P[] | Record<string, P>;
15032
+ type QueryValue$3 = Value$3<string> | Value$3<boolean> | Value$3<number> | undefined;
15033
+ type AnyQueryParams$3 = Record<string, QueryValue$3>;
15034
+ type HeaderValue$3 = string | undefined;
15035
+ type AnyHeaderParams$3 = Record<string, HeaderValue$3>;
15036
+ type AnyBodyParams$3 = Record<string, any>;
15037
+ type ParsedRequest$3 = {
15038
+ method: string;
15039
+ path: string;
15040
+ query: AnyQueryParams$3;
15041
+ headers: AnyHeaderParams$3;
15042
+ body: AnyBodyParams$3;
15043
+ };
15044
+ declare const toAxiosRequest$3: (req: ParsedRequest$3) => AxiosRequestConfig;
15045
+
15046
+ interface GetBillingReadonlyRequestHeaders {
15047
+ }
15048
+ interface GetBillingReadonlyRequestQuery {
15049
+ }
15050
+ interface GetBillingReadonlyRequestParams {
15051
+ }
15052
+ interface GetBillingReadonlyRequestBody {
15053
+ }
15054
+ type GetBillingReadonlyInput = GetBillingReadonlyRequestBody & GetBillingReadonlyRequestHeaders & GetBillingReadonlyRequestQuery & GetBillingReadonlyRequestParams;
15055
+ interface GetBillingReadonlyResponse {
15056
+ billingReadonly: boolean;
15057
+ }
15058
+
15059
+ interface GetPlanRequestHeaders {
15060
+ }
15061
+ interface GetPlanRequestQuery {
15062
+ }
15063
+ interface GetPlanRequestParams {
15064
+ planId: string;
15065
+ }
15066
+ interface GetPlanRequestBody {
15067
+ }
15068
+ type GetPlanInput = GetPlanRequestBody & GetPlanRequestHeaders & GetPlanRequestQuery & GetPlanRequestParams;
15069
+ interface GetPlanResponse {
15070
+ id: string;
15071
+ name: string;
15072
+ description: string;
15073
+ providerProductId: string;
15074
+ prices: {
15075
+ [k: string]: {
15076
+ providerPriceId: string;
15077
+ amount: number;
15078
+ currency: "usd";
15079
+ interval: "month" | "year";
15080
+ metadata?: {
15081
+ [k: string]: string;
15082
+ };
15083
+ };
15084
+ };
15085
+ features: {
15086
+ [k: string]: any;
15087
+ };
15088
+ metadata?: {
15089
+ [k: string]: string;
15090
+ };
15091
+ }
15092
+
15093
+ interface ListPlansRequestHeaders {
15094
+ }
15095
+ interface ListPlansRequestQuery {
15096
+ }
15097
+ interface ListPlansRequestParams {
15098
+ }
15099
+ interface ListPlansRequestBody {
15100
+ }
15101
+ type ListPlansInput = ListPlansRequestBody & ListPlansRequestHeaders & ListPlansRequestQuery & ListPlansRequestParams;
15102
+ type ListPlansResponse = {
15103
+ id: string;
15104
+ name: string;
15105
+ description: string;
15106
+ providerProductId: string;
15107
+ prices: {
15108
+ [k: string]: {
15109
+ providerPriceId: string;
15110
+ amount: number;
15111
+ currency: "usd";
15112
+ interval: "month" | "year";
15113
+ metadata?: {
15114
+ [k: string]: string;
15115
+ };
15116
+ };
15117
+ };
15118
+ features: {
15119
+ [k: string]: any | null;
15120
+ };
15121
+ metadata?: {
15122
+ [k: string]: string;
15123
+ };
15124
+ }[];
15125
+
15126
+ interface GetAddonRequestHeaders {
15127
+ }
15128
+ interface GetAddonRequestQuery {
15129
+ }
15130
+ interface GetAddonRequestParams {
15131
+ addonId: string;
15132
+ }
15133
+ interface GetAddonRequestBody {
15134
+ }
15135
+ type GetAddonInput = GetAddonRequestBody & GetAddonRequestHeaders & GetAddonRequestQuery & GetAddonRequestParams;
15136
+ interface GetAddonResponse {
15137
+ id: string;
15138
+ name: string;
15139
+ description: string;
15140
+ providerProductId: string;
15141
+ prices: {
15142
+ [k: string]: {
15143
+ providerPriceId: string;
15144
+ amount: number;
15145
+ currency: "usd";
15146
+ interval: "month" | "year";
15147
+ metadata?: {
15148
+ [k: string]: string;
15149
+ };
15150
+ };
15151
+ };
15152
+ feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
15153
+ increment: number;
15154
+ metadata?: {
15155
+ [k: string]: string;
15156
+ };
15157
+ }
15158
+
15159
+ interface ListAddonsRequestHeaders {
15160
+ }
15161
+ interface ListAddonsRequestQuery {
15162
+ }
15163
+ interface ListAddonsRequestParams {
15164
+ }
15165
+ interface ListAddonsRequestBody {
15166
+ }
15167
+ type ListAddonsInput = ListAddonsRequestBody & ListAddonsRequestHeaders & ListAddonsRequestQuery & ListAddonsRequestParams;
15168
+ type ListAddonsResponse = {
15169
+ id: string;
15170
+ name: string;
15171
+ description: string;
15172
+ providerProductId: string;
15173
+ prices: {
15174
+ [k: string]: {
15175
+ providerPriceId: string;
15176
+ amount: number;
15177
+ currency: "usd";
15178
+ interval: "month" | "year";
15179
+ metadata?: {
15180
+ [k: string]: string;
15181
+ };
15182
+ };
15183
+ };
15184
+ feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
15185
+ increment: number;
15186
+ metadata?: {
15187
+ [k: string]: string;
15188
+ };
15189
+ }[];
15190
+
15191
+ interface ListInvoicesRequestHeaders {
15192
+ }
15193
+ interface ListInvoicesRequestQuery {
15194
+ nextToken?: string;
15195
+ }
15196
+ interface ListInvoicesRequestParams {
15197
+ }
15198
+ interface ListInvoicesRequestBody {
15199
+ }
15200
+ type ListInvoicesInput = ListInvoicesRequestBody & ListInvoicesRequestHeaders & ListInvoicesRequestQuery & ListInvoicesRequestParams;
15201
+ /**
15202
+ * List of invoices with pagination.
15203
+ */
15204
+ interface ListInvoicesResponse {
15205
+ invoices: {
15206
+ id: string;
15207
+ amount: number;
15208
+ currency: string;
15209
+ status: "draft" | "open" | "paid" | "uncollectible" | "void";
15210
+ createdAt: string;
15211
+ periodStart: string | null;
15212
+ periodEnd: string | null;
15213
+ dueDate: string | null;
15214
+ pdfUrl: string | null;
15215
+ }[];
15216
+ meta: {
15217
+ /**
15218
+ * 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.
15219
+ */
15220
+ nextToken?: string;
15221
+ };
15222
+ }
15223
+
15224
+ interface PayInvoiceRequestHeaders {
15225
+ }
15226
+ interface PayInvoiceRequestQuery {
15227
+ }
15228
+ interface PayInvoiceRequestParams {
15229
+ invoiceId: string;
15230
+ }
15231
+ interface PayInvoiceRequestBody {
15232
+ idempotencyKey?: string;
15233
+ }
15234
+ type PayInvoiceInput = PayInvoiceRequestBody & PayInvoiceRequestHeaders & PayInvoiceRequestQuery & PayInvoiceRequestParams;
15235
+ interface PayInvoiceResponse {
15236
+ id: string;
15237
+ amount: number;
15238
+ currency: string;
15239
+ status: "draft" | "open" | "paid" | "uncollectible" | "void";
15240
+ createdAt: string;
15241
+ periodStart: string | null;
15242
+ periodEnd: string | null;
15243
+ dueDate: string | null;
15244
+ pdfUrl: string | null;
15245
+ }
15246
+
15247
+ interface GetPaymentMethodRequestHeaders {
15248
+ }
15249
+ interface GetPaymentMethodRequestQuery {
15250
+ }
15251
+ interface GetPaymentMethodRequestParams {
15252
+ }
15253
+ interface GetPaymentMethodRequestBody {
15254
+ }
15255
+ type GetPaymentMethodInput = GetPaymentMethodRequestBody & GetPaymentMethodRequestHeaders & GetPaymentMethodRequestQuery & GetPaymentMethodRequestParams;
15256
+ interface GetPaymentMethodResponse {
15257
+ paymentMethod: {
15258
+ id: string;
15259
+ type: string;
15260
+ card: {
15261
+ brand: string;
15262
+ lastFour: string;
15263
+ expMonth: number;
15264
+ expYear: number;
15265
+ } | null;
15266
+ } | null;
15267
+ }
15268
+
15269
+ interface SetPaymentMethodRequestHeaders {
15270
+ }
15271
+ interface SetPaymentMethodRequestQuery {
15272
+ }
15273
+ interface SetPaymentMethodRequestParams {
15274
+ }
15275
+ interface SetPaymentMethodRequestBody {
15276
+ /**
15277
+ * Stripe payment method ID
15278
+ */
15279
+ paymentMethodId: string;
15280
+ }
15281
+ type SetPaymentMethodInput = SetPaymentMethodRequestBody & SetPaymentMethodRequestHeaders & SetPaymentMethodRequestQuery & SetPaymentMethodRequestParams;
15282
+ interface SetPaymentMethodResponse {
15283
+ id: string;
15284
+ type: string;
15285
+ card: {
15286
+ brand: string;
15287
+ lastFour: string;
15288
+ expMonth: number;
15289
+ expYear: number;
15290
+ } | null;
15291
+ }
15292
+
15293
+ interface CreatePaymentMethodIntentRequestHeaders {
15294
+ }
15295
+ interface CreatePaymentMethodIntentRequestQuery {
15296
+ }
15297
+ interface CreatePaymentMethodIntentRequestParams {
15298
+ }
15299
+ interface CreatePaymentMethodIntentRequestBody {
15300
+ }
15301
+ type CreatePaymentMethodIntentInput = CreatePaymentMethodIntentRequestBody & CreatePaymentMethodIntentRequestHeaders & CreatePaymentMethodIntentRequestQuery & CreatePaymentMethodIntentRequestParams;
15302
+ interface CreatePaymentMethodIntentResponse {
15303
+ clientSecret: string;
15304
+ }
15305
+
15306
+ type ClientProps$7 = {
15307
+ toAxiosRequest: typeof toAxiosRequest$3;
15308
+ toApiError: typeof toApiError$3;
15309
+ };
15310
+ declare class Client$7 {
15311
+ private axiosInstance;
15312
+ private props;
15313
+ constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$7>);
15314
+ readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
15315
+ readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse>;
15316
+ readonly listPlans: (input: ListPlansInput) => Promise<ListPlansResponse>;
15317
+ readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse>;
15318
+ readonly listAddons: (input: ListAddonsInput) => Promise<ListAddonsResponse>;
15319
+ readonly listInvoices: (input: ListInvoicesInput) => Promise<ListInvoicesResponse>;
15320
+ readonly payInvoice: (input: PayInvoiceInput) => Promise<PayInvoiceResponse>;
15321
+ readonly getPaymentMethod: (input: GetPaymentMethodInput) => Promise<GetPaymentMethodResponse>;
15322
+ readonly setPaymentMethod: (input: SetPaymentMethodInput) => Promise<SetPaymentMethodResponse>;
15323
+ readonly createPaymentMethodIntent: (input: CreatePaymentMethodIntentInput) => Promise<CreatePaymentMethodIntentResponse>;
15324
+ }
15325
+ declare function toApiError$3(err: unknown): Error;
15326
+
15327
+ type IClient$3 = Simplify<Client$7>;
15328
+ type Operation$3 = Operation$6<IClient$3>;
15329
+ type ClientInputs$3 = Inputs<IClient$3>;
15330
+ type ClientOutputs$3 = Outputs<IClient$3>;
15331
+ type ClientProps$6 = CommonClientProps & {
15332
+ workspaceId: string;
15333
+ token: string;
15334
+ };
15335
+ declare class Client$6 extends Client$7 {
15336
+ readonly config: Readonly<ClientConfig>;
15337
+ constructor(clientProps: ClientProps$6);
15338
+ get list(): {
15339
+ listInvoices: (props: {}) => AsyncCollection<{
15340
+ id: string;
15341
+ amount: number;
15342
+ currency: string;
15343
+ status: "draft" | "open" | "paid" | "uncollectible" | "void";
15344
+ createdAt: string;
15345
+ periodStart: string | null;
15346
+ periodEnd: string | null;
15347
+ dueDate: string | null;
15348
+ pdfUrl: string | null;
15349
+ }>;
15350
+ };
15351
+ }
15352
+
15015
15353
  declare namespace index$2 {
15016
15354
  export { Client$6 as Client, type ClientInputs$3 as ClientInputs, type ClientOutputs$3 as ClientOutputs, type ClientProps$6 as ClientProps, type Operation$3 as Operation };
15017
15355
  }
@@ -16153,7 +16491,7 @@ type UploadFileOutput = UpsertFileResponse$1;
16153
16491
  type IClient$2 = Simplify<Client$5 & {
16154
16492
  uploadFile: (input: UploadFileInput) => Promise<UploadFileOutput>;
16155
16493
  }>;
16156
- type Operation$2 = Operation$5<IClient$2>;
16494
+ type Operation$2 = Operation$6<IClient$2>;
16157
16495
  type ClientInputs$2 = Inputs<IClient$2>;
16158
16496
  type ClientOutputs$2 = Outputs<IClient$2>;
16159
16497
  type ClientProps$4 = CommonClientProps & {
@@ -17958,7 +18296,7 @@ declare class Client$3 {
17958
18296
  declare function toApiError$1(err: unknown): Error;
17959
18297
 
17960
18298
  type IClient$1 = Simplify<Client$3>;
17961
- type Operation$1 = Operation$5<IClient$1>;
18299
+ type Operation$1 = Operation$6<IClient$1>;
17962
18300
  type ClientInputs$1 = Inputs<IClient$1>;
17963
18301
  type ClientOutputs$1 = Outputs<IClient$1>;
17964
18302
  type ClientProps$2 = CommonClientProps & {
@@ -23531,7 +23869,7 @@ interface CreateBotRequestBody {
23531
23869
  name: string;
23532
23870
  }[];
23533
23871
  /**
23534
- * URL of the [Bot](#schema_bot); Only available for dev bots
23872
+ * URL of the [Bot](#schema_bot)
23535
23873
  */
23536
23874
  url?: string;
23537
23875
  /**
@@ -23965,9 +24303,9 @@ interface UpdateBotRequestParams {
23965
24303
  }
23966
24304
  interface UpdateBotRequestBody {
23967
24305
  /**
23968
- * URL of the [Bot](#schema_bot); Only available for dev bots
24306
+ * URL of the [Bot](#schema_bot)
23969
24307
  */
23970
- url?: string;
24308
+ url?: string | null;
23971
24309
  /**
23972
24310
  * Type of the [Bot](#schema_bot) authentication (`iam`)
23973
24311
  */
@@ -25280,6 +25618,9 @@ interface ListActionRunsResponse {
25280
25618
  * ISO 8601 timestamp of the action run
25281
25619
  */
25282
25620
  timestamp: string;
25621
+ /**
25622
+ * Alias of the integration instance used for this action run
25623
+ */
25283
25624
  integrationName?: string;
25284
25625
  actionType: string;
25285
25626
  /**
@@ -25288,12 +25629,20 @@ interface ListActionRunsResponse {
25288
25629
  input: {
25289
25630
  [k: string]: any;
25290
25631
  };
25632
+ /**
25633
+ * Present if the length of the action's input exceeds 190 KB.
25634
+ */
25635
+ inputTruncated?: boolean;
25291
25636
  /**
25292
25637
  * Output of the action
25293
25638
  */
25294
25639
  output: {
25295
25640
  [k: string]: any;
25296
25641
  } | null;
25642
+ /**
25643
+ * Present if the length of the action's output exceeds 190 KB.
25644
+ */
25645
+ outputTruncated?: boolean;
25297
25646
  status: "SUCCESS" | "FAILURE";
25298
25647
  durationMs: number;
25299
25648
  cached: boolean;
@@ -25819,7 +26168,7 @@ interface CreateWorkspaceResponse {
25819
26168
  createdAt: string;
25820
26169
  updatedAt: string;
25821
26170
  botCount: number;
25822
- billingVersion: "v1" | "v2" | "v3";
26171
+ billingVersion: "v1" | "v2" | "v3" | "v4";
25823
26172
  plan: "community" | "team" | "enterprise" | "plus";
25824
26173
  blocked: boolean;
25825
26174
  spendingLimit: number;
@@ -25873,7 +26222,7 @@ interface GetWorkspaceResponse {
25873
26222
  createdAt: string;
25874
26223
  updatedAt: string;
25875
26224
  botCount: number;
25876
- billingVersion: "v1" | "v2" | "v3";
26225
+ billingVersion: "v1" | "v2" | "v3" | "v4";
25877
26226
  plan: "community" | "team" | "enterprise" | "plus";
25878
26227
  blocked: boolean;
25879
26228
  spendingLimit: number;
@@ -26045,7 +26394,7 @@ interface UpdateWorkspaceResponse$1 {
26045
26394
  createdAt: string;
26046
26395
  updatedAt: string;
26047
26396
  botCount: number;
26048
- billingVersion: "v1" | "v2" | "v3";
26397
+ billingVersion: "v1" | "v2" | "v3" | "v4";
26049
26398
  plan: "community" | "team" | "enterprise" | "plus";
26050
26399
  blocked: boolean;
26051
26400
  spendingLimit: number;
@@ -26102,7 +26451,7 @@ interface UpdateWorkspaceResponse {
26102
26451
  createdAt: string;
26103
26452
  updatedAt: string;
26104
26453
  botCount: number;
26105
- billingVersion: "v1" | "v2" | "v3";
26454
+ billingVersion: "v1" | "v2" | "v3" | "v4";
26106
26455
  plan: "community" | "team" | "enterprise" | "plus";
26107
26456
  blocked: boolean;
26108
26457
  spendingLimit: number;
@@ -36317,7 +36666,7 @@ interface Workspace {
36317
36666
  createdAt: string;
36318
36667
  updatedAt: string;
36319
36668
  botCount: number;
36320
- billingVersion: "v1" | "v2" | "v3";
36669
+ billingVersion: "v1" | "v2" | "v3" | "v4";
36321
36670
  plan: "community" | "team" | "enterprise" | "plus";
36322
36671
  blocked: boolean;
36323
36672
  spendingLimit: number;
@@ -37264,7 +37613,7 @@ declare function toApiError(err: unknown): Error;
37264
37613
  type IClient = Simplify<Client$1 & {
37265
37614
  uploadFile: (input: UploadFileInput) => Promise<UploadFileOutput>;
37266
37615
  }>;
37267
- type Operation = Operation$5<IClient>;
37616
+ type Operation = Operation$6<IClient>;
37268
37617
  type ClientInputs = Inputs<IClient>;
37269
37618
  type ClientOutputs = Outputs<IClient>;
37270
37619
  type ClientProps = CommonClientProps & {
@@ -37953,8 +38302,15 @@ type BreakingChangesType = 'BreakingChanges';
37953
38302
  declare class BreakingChangesError extends BaseApiError<400, BreakingChangesType, 'Request payload contains breaking changes which is not allowed for this resource without a version increment.'> {
37954
38303
  constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
37955
38304
  }
37956
- type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ResourceGone' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges';
37957
- type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ResourceGoneError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError;
38305
+ type OperationTimeoutType = 'OperationTimeout';
38306
+ /**
38307
+ * The operation timed out.
38308
+ */
38309
+ declare class OperationTimeoutError extends BaseApiError<504, OperationTimeoutType, 'The operation timed out.'> {
38310
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
38311
+ }
38312
+ type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ResourceGone' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges' | 'OperationTimeout';
38313
+ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ResourceGoneError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError | OperationTimeoutError;
37958
38314
  declare const errorFrom: (err: unknown) => ApiError;
37959
38315
 
37960
38316
  declare class UploadFileError extends Error {
@@ -37963,4 +38319,4 @@ declare class UploadFileError extends Error {
37963
38319
  constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
37964
38320
  }
37965
38321
 
37966
- export { type Account, type Activity, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientProps, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type Headers, 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, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, type Task, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Version, type Workflow, type Workspace, type WorkspaceMember, index$2 as admin, errorFrom, index$1 as files, isApiError, index$3 as runtime, index as tables };
38322
+ export { type Account, type Activity, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientProps, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type Headers, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, OperationTimeoutError, PayloadTooLargeError, PaymentRequiredError, type Plugin, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, type Task, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Version, type Workflow, type Workspace, type WorkspaceMember, index$3 as admin, index$2 as billing, errorFrom, index$1 as files, isApiError, index$4 as runtime, index as tables };