@botpress/client 0.46.0 → 0.48.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
@@ -224,6 +224,10 @@ interface GetOrCreateConversationRequestBody {
224
224
  * [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
225
225
  */
226
226
  integrationName?: string;
227
+ /**
228
+ * Optional list of tag names to use for strict matching when looking up existing conversations. If provided, all specified tags must match exactly for a conversation to be considered a match. For example, with an existing conversation whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
229
+ */
230
+ discriminateByTags?: string[];
227
231
  }
228
232
  type GetOrCreateConversationInput = GetOrCreateConversationRequestBody & GetOrCreateConversationRequestHeaders & GetOrCreateConversationRequestQuery & GetOrCreateConversationRequestParams;
229
233
  interface GetOrCreateConversationResponse {
@@ -830,6 +834,10 @@ interface GetOrCreateMessageRequestBody {
830
834
  */
831
835
  delay?: number;
832
836
  };
837
+ /**
838
+ * Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
839
+ */
840
+ discriminateByTags?: string[];
833
841
  }
834
842
  type GetOrCreateMessageInput = GetOrCreateMessageRequestBody & GetOrCreateMessageRequestHeaders & GetOrCreateMessageRequestQuery & GetOrCreateMessageRequestParams;
835
843
  interface GetOrCreateMessageResponse {
@@ -1247,6 +1255,10 @@ interface GetOrCreateUserRequestBody {
1247
1255
  * URI of the user picture
1248
1256
  */
1249
1257
  pictureUrl?: string;
1258
+ /**
1259
+ * Optional list of tag names to use for strict matching when looking up existing users. If provided, all specified tags must match exactly for a user to be considered a match. For example, with an existing user whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
1260
+ */
1261
+ discriminateByTags?: string[];
1250
1262
  }
1251
1263
  type GetOrCreateUserInput = GetOrCreateUserRequestBody & GetOrCreateUserRequestHeaders & GetOrCreateUserRequestQuery & GetOrCreateUserRequestParams;
1252
1264
  interface GetOrCreateUserResponse {
@@ -5451,6 +5463,14 @@ interface GetUpcomingInvoiceResponse {
5451
5463
  * Type of the line item.
5452
5464
  */
5453
5465
  type: "invoiceitem" | "subscription";
5466
+ /**
5467
+ * Start date of the line item period.
5468
+ */
5469
+ periodStart: string | null;
5470
+ /**
5471
+ * End date of the line item period.
5472
+ */
5473
+ periodEnd: string | null;
5454
5474
  }[];
5455
5475
  }
5456
5476
 
@@ -6305,7 +6325,7 @@ interface CreateIntegrationRequestBody {
6305
6325
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
6306
6326
  */
6307
6327
  secrets?: {
6308
- [k: string]: string;
6328
+ [k: string]: string | null;
6309
6329
  };
6310
6330
  /**
6311
6331
  * JavaScript code of the integration
@@ -6975,7 +6995,7 @@ interface ValidateIntegrationCreationRequestBody {
6975
6995
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
6976
6996
  */
6977
6997
  secrets?: {
6978
- [k: string]: string;
6998
+ [k: string]: string | null;
6979
6999
  };
6980
7000
  /**
6981
7001
  * JavaScript code of the integration
@@ -15643,7 +15663,7 @@ declare class Client extends Client$1 implements IClient {
15643
15663
  /**
15644
15664
  * Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
15645
15665
  */
15646
- readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
15666
+ readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, metadata, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
15647
15667
  }
15648
15668
 
15649
15669
  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 };