@botpress/client 0.47.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 {
@@ -6313,7 +6325,7 @@ interface CreateIntegrationRequestBody {
6313
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.
6314
6326
  */
6315
6327
  secrets?: {
6316
- [k: string]: string;
6328
+ [k: string]: string | null;
6317
6329
  };
6318
6330
  /**
6319
6331
  * JavaScript code of the integration
@@ -6983,7 +6995,7 @@ interface ValidateIntegrationCreationRequestBody {
6983
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.
6984
6996
  */
6985
6997
  secrets?: {
6986
- [k: string]: string;
6998
+ [k: string]: string | null;
6987
6999
  };
6988
7000
  /**
6989
7001
  * JavaScript code of the integration
@@ -15651,7 +15663,7 @@ declare class Client extends Client$1 implements IClient {
15651
15663
  /**
15652
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.
15653
15665
  */
15654
- 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"]>;
15655
15667
  }
15656
15668
 
15657
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 };