@botpress/client 0.48.0 → 0.48.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
@@ -1738,6 +1738,12 @@ interface ConfigureIntegrationRequestBody {
1738
1738
  * Recurring schedule on which `register()` will be called on the integration
1739
1739
  */
1740
1740
  scheduleRegisterCall?: "hourly" | "daily" | "weekly" | "bi-weekly" | "monthly" | "bi-monthly" | "quarterly" | "yearly";
1741
+ /**
1742
+ * Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual sandbox identifier to null will remove that sandbox identifier. This is an experimental feature meant to be used by specific integrations.
1743
+ */
1744
+ sandboxIdentifiers?: {
1745
+ [k: string]: {} | null;
1746
+ } | null;
1741
1747
  }
1742
1748
  type ConfigureIntegrationInput = ConfigureIntegrationRequestBody & ConfigureIntegrationRequestHeaders & ConfigureIntegrationRequestQuery & ConfigureIntegrationRequestParams;
1743
1749
  interface ConfigureIntegrationResponse {
@@ -2973,6 +2979,16 @@ interface GetPublicIntegrationByIdResponse {
2973
2979
  */
2974
2980
  extractScript?: string;
2975
2981
  };
2982
+ sandbox?: {
2983
+ /**
2984
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
2985
+ */
2986
+ identifierExtractScript?: string;
2987
+ /**
2988
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
2989
+ */
2990
+ messageExtractScript?: string;
2991
+ };
2976
2992
  /**
2977
2993
  * URL of the [Integration](#schema_integration)
2978
2994
  */
@@ -3348,6 +3364,16 @@ interface GetPublicIntegrationResponse {
3348
3364
  */
3349
3365
  extractScript?: string;
3350
3366
  };
3367
+ sandbox?: {
3368
+ /**
3369
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
3370
+ */
3371
+ identifierExtractScript?: string;
3372
+ /**
3373
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
3374
+ */
3375
+ messageExtractScript?: string;
3376
+ };
3351
3377
  /**
3352
3378
  * URL of the [Integration](#schema_integration)
3353
3379
  */
@@ -6389,6 +6415,16 @@ interface CreateIntegrationResponse {
6389
6415
  */
6390
6416
  extractScript?: string;
6391
6417
  };
6418
+ sandbox?: {
6419
+ /**
6420
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
6421
+ */
6422
+ identifierExtractScript?: string;
6423
+ /**
6424
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
6425
+ */
6426
+ messageExtractScript?: string;
6427
+ };
6392
6428
  /**
6393
6429
  * URL of the [Integration](#schema_integration)
6394
6430
  */
@@ -7302,6 +7338,10 @@ interface UpdateIntegrationRequestBody {
7302
7338
  };
7303
7339
  } | null;
7304
7340
  };
7341
+ sandbox?: {
7342
+ identifierExtractScript?: string | null;
7343
+ messageExtractScript?: string | null;
7344
+ };
7305
7345
  /**
7306
7346
  * 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.
7307
7347
  */
@@ -7366,6 +7406,16 @@ interface UpdateIntegrationResponse {
7366
7406
  */
7367
7407
  extractScript?: string;
7368
7408
  };
7409
+ sandbox?: {
7410
+ /**
7411
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
7412
+ */
7413
+ identifierExtractScript?: string;
7414
+ /**
7415
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
7416
+ */
7417
+ messageExtractScript?: string;
7418
+ };
7369
7419
  /**
7370
7420
  * URL of the [Integration](#schema_integration)
7371
7421
  */
@@ -7961,6 +8011,10 @@ interface ValidateIntegrationUpdateRequestBody {
7961
8011
  };
7962
8012
  } | null;
7963
8013
  };
8014
+ sandbox?: {
8015
+ identifierExtractScript?: string | null;
8016
+ messageExtractScript?: string | null;
8017
+ };
7964
8018
  /**
7965
8019
  * 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.
7966
8020
  */
@@ -8005,8 +8059,17 @@ interface ListIntegrationsRequestHeaders {
8005
8059
  }
8006
8060
  interface ListIntegrationsRequestQuery {
8007
8061
  nextToken?: string;
8062
+ limit?: number;
8008
8063
  name?: string;
8009
8064
  version?: string;
8065
+ interfaceId?: string;
8066
+ interfaceName?: string;
8067
+ visibility?: "public" | "private";
8068
+ installedByBotId?: string;
8069
+ verificationStatus?: "unapproved" | "pending" | "approved" | "rejected";
8070
+ search?: string;
8071
+ sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount";
8072
+ direction?: "asc" | "desc";
8010
8073
  dev?: boolean;
8011
8074
  }
8012
8075
  interface ListIntegrationsRequestParams {
@@ -8056,6 +8119,36 @@ interface ListIntegrationsResponse {
8056
8119
  * Status of the integration version verification
8057
8120
  */
8058
8121
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
8122
+ /**
8123
+ * Metadata about which fields matched the search criteria
8124
+ */
8125
+ matchedOn?: {
8126
+ /**
8127
+ * Whether the integration name matched the search term
8128
+ */
8129
+ name?: boolean;
8130
+ /**
8131
+ * Whether the integration title matched the search term
8132
+ */
8133
+ title?: boolean;
8134
+ /**
8135
+ * Whether the integration description matched the search term
8136
+ */
8137
+ description?: boolean;
8138
+ /**
8139
+ * Action names that matched the search term
8140
+ */
8141
+ actions?: string[];
8142
+ /**
8143
+ * Interface names that matched the search term
8144
+ */
8145
+ interfaces?: string[];
8146
+ };
8147
+ ownerWorkspace?: {
8148
+ id: string;
8149
+ handle: string | null;
8150
+ name: string;
8151
+ };
8059
8152
  }[];
8060
8153
  meta: {
8061
8154
  /**
@@ -8102,6 +8195,16 @@ interface GetIntegrationResponse {
8102
8195
  */
8103
8196
  extractScript?: string;
8104
8197
  };
8198
+ sandbox?: {
8199
+ /**
8200
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
8201
+ */
8202
+ identifierExtractScript?: string;
8203
+ /**
8204
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
8205
+ */
8206
+ messageExtractScript?: string;
8207
+ };
8105
8208
  /**
8106
8209
  * URL of the [Integration](#schema_integration)
8107
8210
  */
@@ -8496,6 +8599,16 @@ interface GetIntegrationByNameResponse {
8496
8599
  */
8497
8600
  extractScript?: string;
8498
8601
  };
8602
+ sandbox?: {
8603
+ /**
8604
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
8605
+ */
8606
+ identifierExtractScript?: string;
8607
+ /**
8608
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
8609
+ */
8610
+ messageExtractScript?: string;
8611
+ };
8499
8612
  /**
8500
8613
  * URL of the [Integration](#schema_integration)
8501
8614
  */
@@ -10729,6 +10842,22 @@ interface ListPluginsResponse {
10729
10842
  * Version of the [Plugin](#schema_plugin)
10730
10843
  */
10731
10844
  version: string;
10845
+ /**
10846
+ * Title of the plugin. This is the name that will be displayed in the UI
10847
+ */
10848
+ title: string;
10849
+ /**
10850
+ * Description of the plugin. This is the description that will be displayed in the UI
10851
+ */
10852
+ description: string;
10853
+ /**
10854
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
10855
+ */
10856
+ iconUrl: string;
10857
+ /**
10858
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
10859
+ */
10860
+ readmeUrl: string;
10732
10861
  }[];
10733
10862
  meta: {
10734
10863
  /**
@@ -11790,6 +11919,105 @@ interface ListFileTagValuesResponse {
11790
11919
  };
11791
11920
  }
11792
11921
 
11922
+ interface CreateKnowledgeBaseRequestHeaders {
11923
+ }
11924
+ interface CreateKnowledgeBaseRequestQuery {
11925
+ }
11926
+ interface CreateKnowledgeBaseRequestParams {
11927
+ }
11928
+ interface CreateKnowledgeBaseRequestBody {
11929
+ /**
11930
+ * Name of the knowledge base.
11931
+ */
11932
+ name: string;
11933
+ }
11934
+ type CreateKnowledgeBaseInput = CreateKnowledgeBaseRequestBody & CreateKnowledgeBaseRequestHeaders & CreateKnowledgeBaseRequestQuery & CreateKnowledgeBaseRequestParams;
11935
+ interface CreateKnowledgeBaseResponse {
11936
+ knowledgeBase: {
11937
+ /**
11938
+ * Knowledge base ID
11939
+ */
11940
+ id: string;
11941
+ /**
11942
+ * Name of the knowledge base.
11943
+ */
11944
+ name: string;
11945
+ };
11946
+ }
11947
+
11948
+ interface DeleteKnowledgeBaseRequestHeaders {
11949
+ }
11950
+ interface DeleteKnowledgeBaseRequestQuery {
11951
+ }
11952
+ interface DeleteKnowledgeBaseRequestParams {
11953
+ id: string;
11954
+ }
11955
+ interface DeleteKnowledgeBaseRequestBody {
11956
+ }
11957
+ type DeleteKnowledgeBaseInput = DeleteKnowledgeBaseRequestBody & DeleteKnowledgeBaseRequestHeaders & DeleteKnowledgeBaseRequestQuery & DeleteKnowledgeBaseRequestParams;
11958
+ interface DeleteKnowledgeBaseResponse {
11959
+ }
11960
+
11961
+ interface UpdateKnowledgeBaseRequestHeaders {
11962
+ }
11963
+ interface UpdateKnowledgeBaseRequestQuery {
11964
+ }
11965
+ interface UpdateKnowledgeBaseRequestParams {
11966
+ id: string;
11967
+ }
11968
+ interface UpdateKnowledgeBaseRequestBody {
11969
+ /**
11970
+ * New name of the knowledge base.
11971
+ */
11972
+ name: string;
11973
+ }
11974
+ type UpdateKnowledgeBaseInput = UpdateKnowledgeBaseRequestBody & UpdateKnowledgeBaseRequestHeaders & UpdateKnowledgeBaseRequestQuery & UpdateKnowledgeBaseRequestParams;
11975
+ interface UpdateKnowledgeBaseResponse {
11976
+ knowledgeBase: {
11977
+ /**
11978
+ * Knowledge base ID
11979
+ */
11980
+ id: string;
11981
+ /**
11982
+ * Name of the knowledge base.
11983
+ */
11984
+ name: string;
11985
+ };
11986
+ }
11987
+
11988
+ interface ListKnowledgeBasesRequestHeaders {
11989
+ }
11990
+ interface ListKnowledgeBasesRequestQuery {
11991
+ nextToken?: string;
11992
+ }
11993
+ interface ListKnowledgeBasesRequestParams {
11994
+ }
11995
+ interface ListKnowledgeBasesRequestBody {
11996
+ }
11997
+ type ListKnowledgeBasesInput = ListKnowledgeBasesRequestBody & ListKnowledgeBasesRequestHeaders & ListKnowledgeBasesRequestQuery & ListKnowledgeBasesRequestParams;
11998
+ interface ListKnowledgeBasesResponse {
11999
+ knowledgeBases: {
12000
+ /**
12001
+ * Knowledge base ID
12002
+ */
12003
+ id: string;
12004
+ /**
12005
+ * Name of the knowledge base.
12006
+ */
12007
+ name: string;
12008
+ /**
12009
+ * Knowledge base creation timestamp in ISO 8601 format
12010
+ */
12011
+ createdAt: string;
12012
+ }[];
12013
+ meta: {
12014
+ /**
12015
+ * 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.
12016
+ */
12017
+ nextToken?: string;
12018
+ };
12019
+ }
12020
+
11793
12021
  interface ListTablesRequestHeaders {
11794
12022
  }
11795
12023
  interface ListTablesRequestQuery {
@@ -13742,6 +13970,16 @@ interface Integration {
13742
13970
  */
13743
13971
  extractScript?: string;
13744
13972
  };
13973
+ sandbox?: {
13974
+ /**
13975
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
13976
+ */
13977
+ identifierExtractScript?: string;
13978
+ /**
13979
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
13980
+ */
13981
+ messageExtractScript?: string;
13982
+ };
13745
13983
  /**
13746
13984
  * URL of the [Integration](#schema_integration)
13747
13985
  */
@@ -15141,6 +15379,10 @@ declare class Client$1 {
15141
15379
  readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
15142
15380
  readonly listFileTags: (input: ListFileTagsInput) => Promise<ListFileTagsResponse>;
15143
15381
  readonly listFileTagValues: (input: ListFileTagValuesInput) => Promise<ListFileTagValuesResponse>;
15382
+ readonly createKnowledgeBase: (input: CreateKnowledgeBaseInput) => Promise<CreateKnowledgeBaseResponse>;
15383
+ readonly deleteKnowledgeBase: (input: DeleteKnowledgeBaseInput) => Promise<DeleteKnowledgeBaseResponse>;
15384
+ readonly updateKnowledgeBase: (input: UpdateKnowledgeBaseInput) => Promise<UpdateKnowledgeBaseResponse>;
15385
+ readonly listKnowledgeBases: (input: ListKnowledgeBasesInput) => Promise<ListKnowledgeBasesResponse>;
15144
15386
  readonly listTables: (input: ListTablesInput) => Promise<ListTablesResponse>;
15145
15387
  readonly getTable: (input: GetTableInput) => Promise<GetTableResponse>;
15146
15388
  readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
@@ -15604,6 +15846,18 @@ declare class Lister {
15604
15846
  iconUrl: string;
15605
15847
  public: boolean;
15606
15848
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
15849
+ matchedOn?: {
15850
+ name?: boolean;
15851
+ title?: boolean;
15852
+ description?: boolean;
15853
+ actions?: string[];
15854
+ interfaces?: string[];
15855
+ };
15856
+ ownerWorkspace?: {
15857
+ id: string;
15858
+ handle: string | null;
15859
+ name: string;
15860
+ };
15607
15861
  }>;
15608
15862
  readonly interfaces: (props: ListInputs["listInterfaces"]) => AsyncCollection<{
15609
15863
  id: string;