@botpress/client 0.36.1 → 0.36.2

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
@@ -12830,6 +12830,134 @@ interface Interface {
12830
12830
  language: string;
12831
12831
  };
12832
12832
  }
12833
+ /**
12834
+ * Plugin definition
12835
+ */
12836
+ interface Plugin {
12837
+ /**
12838
+ * ID of the [Plugin](#schema_plugin)
12839
+ */
12840
+ id: string;
12841
+ /**
12842
+ * Name of the [Plugin](#schema_plugin)
12843
+ */
12844
+ name: string;
12845
+ /**
12846
+ * Version of the [Plugin](#schema_plugin)
12847
+ */
12848
+ version: string;
12849
+ /**
12850
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
12851
+ */
12852
+ createdAt: string;
12853
+ /**
12854
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
12855
+ */
12856
+ updatedAt: string;
12857
+ /**
12858
+ * Configuration definition
12859
+ */
12860
+ configuration: {
12861
+ /**
12862
+ * Title of the configuration
12863
+ */
12864
+ title?: string;
12865
+ /**
12866
+ * Description of the configuration
12867
+ */
12868
+ description?: string;
12869
+ /**
12870
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
12871
+ */
12872
+ schema: {
12873
+ [k: string]: any;
12874
+ };
12875
+ };
12876
+ states: {
12877
+ [k: string]: {
12878
+ /**
12879
+ * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
12880
+ */
12881
+ type: "conversation" | "user" | "bot" | "task";
12882
+ /**
12883
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
12884
+ */
12885
+ schema: {
12886
+ [k: string]: any;
12887
+ };
12888
+ /**
12889
+ * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
12890
+ */
12891
+ expiry?: number;
12892
+ };
12893
+ };
12894
+ events: {
12895
+ /**
12896
+ * Event Definition
12897
+ */
12898
+ [k: string]: {
12899
+ /**
12900
+ * Title of the event
12901
+ */
12902
+ title?: string;
12903
+ /**
12904
+ * Description of the event
12905
+ */
12906
+ description?: string;
12907
+ schema: {
12908
+ [k: string]: any;
12909
+ };
12910
+ };
12911
+ };
12912
+ actions: {
12913
+ /**
12914
+ * Action definition
12915
+ */
12916
+ [k: string]: {
12917
+ /**
12918
+ * Title of the action
12919
+ */
12920
+ title?: string;
12921
+ /**
12922
+ * Description of the action
12923
+ */
12924
+ description?: string;
12925
+ billable?: boolean;
12926
+ cacheable?: boolean;
12927
+ input: {
12928
+ schema: {
12929
+ [k: string]: any;
12930
+ };
12931
+ };
12932
+ output: {
12933
+ schema: {
12934
+ [k: string]: any;
12935
+ };
12936
+ };
12937
+ };
12938
+ };
12939
+ /**
12940
+ * User object configuration
12941
+ */
12942
+ user: {
12943
+ tags: {
12944
+ /**
12945
+ * Definition of a tag that can be provided on the object
12946
+ */
12947
+ [k: string]: {
12948
+ /**
12949
+ * Title of the tag
12950
+ */
12951
+ title?: string;
12952
+ /**
12953
+ * Description of the tag
12954
+ */
12955
+ description?: string;
12956
+ };
12957
+ };
12958
+ };
12959
+ code: string;
12960
+ }
12833
12961
  interface Workspace {
12834
12962
  id: string;
12835
12963
  name: string;
@@ -14159,7 +14287,7 @@ declare class Client extends Client$1 implements IClient {
14159
14287
  /**
14160
14288
  * Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
14161
14289
  */
14162
- readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs['uploadFile']) => Promise<ClientOutputs['uploadFile']>;
14290
+ readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs['uploadFile']) => Promise<ClientOutputs['uploadFile']>;
14163
14291
  }
14164
14292
 
14165
- 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 };
14293
+ 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 };