@botpress/client 0.48.0 → 0.48.1

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
  */
@@ -11790,6 +11903,105 @@ interface ListFileTagValuesResponse {
11790
11903
  };
11791
11904
  }
11792
11905
 
11906
+ interface CreateKnowledgeBaseRequestHeaders {
11907
+ }
11908
+ interface CreateKnowledgeBaseRequestQuery {
11909
+ }
11910
+ interface CreateKnowledgeBaseRequestParams {
11911
+ }
11912
+ interface CreateKnowledgeBaseRequestBody {
11913
+ /**
11914
+ * Name of the knowledge base.
11915
+ */
11916
+ name: string;
11917
+ }
11918
+ type CreateKnowledgeBaseInput = CreateKnowledgeBaseRequestBody & CreateKnowledgeBaseRequestHeaders & CreateKnowledgeBaseRequestQuery & CreateKnowledgeBaseRequestParams;
11919
+ interface CreateKnowledgeBaseResponse {
11920
+ knowledgeBase: {
11921
+ /**
11922
+ * Knowledge base ID
11923
+ */
11924
+ id: string;
11925
+ /**
11926
+ * Name of the knowledge base.
11927
+ */
11928
+ name: string;
11929
+ };
11930
+ }
11931
+
11932
+ interface DeleteKnowledgeBaseRequestHeaders {
11933
+ }
11934
+ interface DeleteKnowledgeBaseRequestQuery {
11935
+ }
11936
+ interface DeleteKnowledgeBaseRequestParams {
11937
+ id: string;
11938
+ }
11939
+ interface DeleteKnowledgeBaseRequestBody {
11940
+ }
11941
+ type DeleteKnowledgeBaseInput = DeleteKnowledgeBaseRequestBody & DeleteKnowledgeBaseRequestHeaders & DeleteKnowledgeBaseRequestQuery & DeleteKnowledgeBaseRequestParams;
11942
+ interface DeleteKnowledgeBaseResponse {
11943
+ }
11944
+
11945
+ interface UpdateKnowledgeBaseRequestHeaders {
11946
+ }
11947
+ interface UpdateKnowledgeBaseRequestQuery {
11948
+ }
11949
+ interface UpdateKnowledgeBaseRequestParams {
11950
+ id: string;
11951
+ }
11952
+ interface UpdateKnowledgeBaseRequestBody {
11953
+ /**
11954
+ * New name of the knowledge base.
11955
+ */
11956
+ name: string;
11957
+ }
11958
+ type UpdateKnowledgeBaseInput = UpdateKnowledgeBaseRequestBody & UpdateKnowledgeBaseRequestHeaders & UpdateKnowledgeBaseRequestQuery & UpdateKnowledgeBaseRequestParams;
11959
+ interface UpdateKnowledgeBaseResponse {
11960
+ knowledgeBase: {
11961
+ /**
11962
+ * Knowledge base ID
11963
+ */
11964
+ id: string;
11965
+ /**
11966
+ * Name of the knowledge base.
11967
+ */
11968
+ name: string;
11969
+ };
11970
+ }
11971
+
11972
+ interface ListKnowledgeBasesRequestHeaders {
11973
+ }
11974
+ interface ListKnowledgeBasesRequestQuery {
11975
+ nextToken?: string;
11976
+ }
11977
+ interface ListKnowledgeBasesRequestParams {
11978
+ }
11979
+ interface ListKnowledgeBasesRequestBody {
11980
+ }
11981
+ type ListKnowledgeBasesInput = ListKnowledgeBasesRequestBody & ListKnowledgeBasesRequestHeaders & ListKnowledgeBasesRequestQuery & ListKnowledgeBasesRequestParams;
11982
+ interface ListKnowledgeBasesResponse {
11983
+ knowledgeBases: {
11984
+ /**
11985
+ * Knowledge base ID
11986
+ */
11987
+ id: string;
11988
+ /**
11989
+ * Name of the knowledge base.
11990
+ */
11991
+ name: string;
11992
+ /**
11993
+ * Knowledge base creation timestamp in ISO 8601 format
11994
+ */
11995
+ createdAt: string;
11996
+ }[];
11997
+ meta: {
11998
+ /**
11999
+ * 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.
12000
+ */
12001
+ nextToken?: string;
12002
+ };
12003
+ }
12004
+
11793
12005
  interface ListTablesRequestHeaders {
11794
12006
  }
11795
12007
  interface ListTablesRequestQuery {
@@ -13742,6 +13954,16 @@ interface Integration {
13742
13954
  */
13743
13955
  extractScript?: string;
13744
13956
  };
13957
+ sandbox?: {
13958
+ /**
13959
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox
13960
+ */
13961
+ identifierExtractScript?: string;
13962
+ /**
13963
+ * VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox
13964
+ */
13965
+ messageExtractScript?: string;
13966
+ };
13745
13967
  /**
13746
13968
  * URL of the [Integration](#schema_integration)
13747
13969
  */
@@ -15141,6 +15363,10 @@ declare class Client$1 {
15141
15363
  readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
15142
15364
  readonly listFileTags: (input: ListFileTagsInput) => Promise<ListFileTagsResponse>;
15143
15365
  readonly listFileTagValues: (input: ListFileTagValuesInput) => Promise<ListFileTagValuesResponse>;
15366
+ readonly createKnowledgeBase: (input: CreateKnowledgeBaseInput) => Promise<CreateKnowledgeBaseResponse>;
15367
+ readonly deleteKnowledgeBase: (input: DeleteKnowledgeBaseInput) => Promise<DeleteKnowledgeBaseResponse>;
15368
+ readonly updateKnowledgeBase: (input: UpdateKnowledgeBaseInput) => Promise<UpdateKnowledgeBaseResponse>;
15369
+ readonly listKnowledgeBases: (input: ListKnowledgeBasesInput) => Promise<ListKnowledgeBasesResponse>;
15144
15370
  readonly listTables: (input: ListTablesInput) => Promise<ListTablesResponse>;
15145
15371
  readonly getTable: (input: GetTableInput) => Promise<GetTableResponse>;
15146
15372
  readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
@@ -15604,6 +15830,18 @@ declare class Lister {
15604
15830
  iconUrl: string;
15605
15831
  public: boolean;
15606
15832
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
15833
+ matchedOn?: {
15834
+ name?: boolean;
15835
+ title?: boolean;
15836
+ description?: boolean;
15837
+ actions?: string[];
15838
+ interfaces?: string[];
15839
+ };
15840
+ ownerWorkspace?: {
15841
+ id: string;
15842
+ handle: string | null;
15843
+ name: string;
15844
+ };
15607
15845
  }>;
15608
15846
  readonly interfaces: (props: ListInputs["listInterfaces"]) => AsyncCollection<{
15609
15847
  id: string;