@botpress/client 0.17.0 → 0.18.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/.turbo/turbo-build.log +23 -0
- package/.turbo/turbo-generate.log +9 -0
- package/dist/bundle.cjs +13 -10
- package/dist/bundle.cjs.map +4 -4
- package/dist/gen/index.d.ts +365 -13
- package/dist/gen/models.d.ts +1159 -0
- package/dist/gen/operations/addParticipant.d.ts +56 -0
- package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +27 -0
- package/dist/gen/operations/callAction.d.ts +36 -0
- package/dist/gen/operations/changeAISpendQuota.d.ts +21 -0
- package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +40 -0
- package/dist/gen/operations/checkHandleAvailability.d.ts +24 -0
- package/dist/gen/operations/configureIntegration.d.ts +24 -0
- package/dist/gen/operations/createBot.d.ts +487 -0
- package/dist/gen/operations/createConversation.d.ts +70 -0
- package/dist/gen/operations/createEvent.d.ts +95 -0
- package/dist/gen/operations/createFile.d.ts +108 -0
- package/dist/gen/operations/createIntegration.d.ts +533 -0
- package/dist/gen/operations/createIntegrationApiKey.d.ts +29 -0
- package/dist/gen/operations/createMessage.d.ts +98 -0
- package/dist/gen/operations/createPersonalAccessToken.d.ts +33 -0
- package/dist/gen/operations/createTable.d.ts +151 -0
- package/dist/gen/operations/createTableRows.d.ts +71 -0
- package/dist/gen/operations/createTask.d.ts +125 -0
- package/dist/gen/operations/createUser.d.ts +70 -0
- package/dist/gen/operations/createWorkspace.d.ts +38 -0
- package/dist/gen/operations/createWorkspaceMember.d.ts +27 -0
- package/dist/gen/operations/deleteBot.d.ts +21 -0
- package/dist/gen/operations/deleteBotIssue.d.ts +22 -0
- package/dist/gen/operations/deleteConversation.d.ts +21 -0
- package/dist/gen/operations/deleteFile.d.ts +21 -0
- package/dist/gen/operations/deleteIntegration.d.ts +21 -0
- package/dist/gen/operations/deleteIntegrationApiKey.d.ts +21 -0
- package/dist/gen/operations/deleteMessage.d.ts +21 -0
- package/dist/gen/operations/deletePersonalAccessToken.d.ts +21 -0
- package/dist/gen/operations/deleteTable.d.ts +21 -0
- package/dist/gen/operations/deleteTableRows.d.ts +36 -0
- package/dist/gen/operations/deleteTask.d.ts +21 -0
- package/dist/gen/operations/deleteUser.d.ts +21 -0
- package/dist/gen/operations/deleteWorkspace.d.ts +21 -0
- package/dist/gen/operations/deleteWorkspaceMember.d.ts +21 -0
- package/dist/gen/operations/duplicateTable.d.ts +137 -0
- package/dist/gen/operations/findTableRows.d.ts +94 -0
- package/dist/gen/operations/getAccount.d.ts +31 -0
- package/dist/gen/operations/getAccountPreference.d.ts +22 -0
- package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +24 -0
- package/dist/gen/operations/getAuditRecords.d.ts +38 -0
- package/dist/gen/operations/getBot.d.ts +308 -0
- package/dist/gen/operations/getBotAnalytics.d.ts +49 -0
- package/dist/gen/operations/getBotIssue.d.ts +39 -0
- package/dist/gen/operations/getBotLogs.d.ts +30 -0
- package/dist/gen/operations/getBotWebchat.d.ts +23 -0
- package/dist/gen/operations/getConversation.d.ts +56 -0
- package/dist/gen/operations/getEvent.d.ts +61 -0
- package/dist/gen/operations/getFile.d.ts +85 -0
- package/dist/gen/operations/getIntegration.d.ts +295 -0
- package/dist/gen/operations/getIntegrationByName.d.ts +296 -0
- package/dist/gen/operations/getIntegrationLogs.d.ts +30 -0
- package/dist/gen/operations/getMessage.d.ts +62 -0
- package/dist/gen/operations/getOrCreateConversation.d.ts +70 -0
- package/dist/gen/operations/getOrCreateMessage.d.ts +98 -0
- package/dist/gen/operations/getOrCreateTable.d.ts +164 -0
- package/dist/gen/operations/getOrCreateUser.d.ts +70 -0
- package/dist/gen/operations/getOrSetState.d.ts +76 -0
- package/dist/gen/operations/getParticipant.d.ts +53 -0
- package/dist/gen/operations/getPublicIntegration.d.ts +301 -0
- package/dist/gen/operations/getPublicIntegrationById.d.ts +300 -0
- package/dist/gen/operations/getPublicWorkspace.d.ts +31 -0
- package/dist/gen/operations/getState.d.ts +66 -0
- package/dist/gen/operations/getTable.d.ts +136 -0
- package/dist/gen/operations/getTableRow.d.ts +53 -0
- package/dist/gen/operations/getTask.d.ts +86 -0
- package/dist/gen/operations/getUpcomingInvoice.d.ts +29 -0
- package/dist/gen/operations/getUsage.d.ts +45 -0
- package/dist/gen/operations/getUser.d.ts +52 -0
- package/dist/gen/operations/getWorkspace.d.ts +38 -0
- package/dist/gen/operations/getWorkspaceMember.d.ts +25 -0
- package/dist/gen/operations/getWorkspaceQuota.d.ts +37 -0
- package/dist/gen/operations/introspect.d.ts +24 -0
- package/dist/gen/operations/listActivities.d.ts +42 -0
- package/dist/gen/operations/listBotIssueEvents.d.ts +32 -0
- package/dist/gen/operations/listBotIssues.d.ts +45 -0
- package/dist/gen/operations/listBots.d.ts +44 -0
- package/dist/gen/operations/listConversations.d.ts +64 -0
- package/dist/gen/operations/listEvents.d.ts +69 -0
- package/dist/gen/operations/listFiles.d.ts +94 -0
- package/dist/gen/operations/listIntegrationApiKeys.d.ts +26 -0
- package/dist/gen/operations/listIntegrations.d.ts +68 -0
- package/dist/gen/operations/listMessages.d.ts +69 -0
- package/dist/gen/operations/listParticipants.d.ts +56 -0
- package/dist/gen/operations/listPersonalAccessTokens.d.ts +25 -0
- package/dist/gen/operations/listPublicIntegrations.d.ts +72 -0
- package/dist/gen/operations/listTables.d.ts +126 -0
- package/dist/gen/operations/listTasks.d.ts +97 -0
- package/dist/gen/operations/listUsageHistory.d.ts +44 -0
- package/dist/gen/operations/listUsers.d.ts +59 -0
- package/dist/gen/operations/listWorkspaceInvoices.d.ts +53 -0
- package/dist/gen/operations/listWorkspaceMembers.d.ts +34 -0
- package/dist/gen/operations/listWorkspaceQuotas.d.ts +36 -0
- package/dist/gen/operations/listWorkspaceUsages.d.ts +45 -0
- package/dist/gen/operations/listWorkspaces.d.ts +47 -0
- package/dist/gen/operations/patchState.d.ts +72 -0
- package/dist/gen/operations/removeParticipant.d.ts +22 -0
- package/dist/gen/operations/renameTableColumn.d.ts +132 -0
- package/dist/gen/operations/runVrl.d.ts +28 -0
- package/dist/gen/operations/searchFiles.d.ts +60 -0
- package/dist/gen/operations/setAccountPreference.d.ts +22 -0
- package/dist/gen/operations/setState.d.ts +76 -0
- package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +37 -0
- package/dist/gen/operations/trackAnalytics.d.ts +22 -0
- package/dist/gen/operations/transferBot.d.ts +25 -0
- package/dist/gen/operations/updateAccount.d.ts +34 -0
- package/dist/gen/operations/updateBot.d.ts +486 -0
- package/dist/gen/operations/updateConversation.d.ts +63 -0
- package/dist/gen/operations/updateFile.d.ts +95 -0
- package/dist/gen/operations/updateIntegration.d.ts +522 -0
- package/dist/gen/operations/updateMessage.d.ts +68 -0
- package/dist/gen/operations/updateTable.d.ts +152 -0
- package/dist/gen/operations/updateTableRows.d.ts +74 -0
- package/dist/gen/operations/updateTask.d.ts +114 -0
- package/dist/gen/operations/updateUser.d.ts +66 -0
- package/dist/gen/operations/updateWorkspace.d.ts +50 -0
- package/dist/gen/operations/updateWorkspaceMember.d.ts +27 -0
- package/dist/gen/operations/upsertTableRows.d.ts +107 -0
- package/dist/gen/to-axios.d.ts +16 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +5 -14
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +4 -4
- package/openapi.ts +3 -3
- package/package.json +4 -2
- package/readme.md +2 -3
- package/dist/gen/api.d.ts +0 -14260
- package/dist/gen/base.d.ts +0 -54
- package/dist/gen/client.d.ts +0 -255
- package/dist/gen/common.d.ts +0 -65
- package/dist/gen/configuration.d.ts +0 -83
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteFileRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteFileRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteFileRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteFileRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteFileInput = DeleteFileRequestBody & DeleteFileRequestHeaders & DeleteFileRequestQuery & DeleteFileRequestParams;
|
|
11
|
+
export type DeleteFileRequest = {
|
|
12
|
+
headers: DeleteFileRequestHeaders;
|
|
13
|
+
query: DeleteFileRequestQuery;
|
|
14
|
+
params: DeleteFileRequestParams;
|
|
15
|
+
body: DeleteFileRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteFileInput) => DeleteFileRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteFileResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteIntegrationRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteIntegrationRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteIntegrationRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteIntegrationRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteIntegrationInput = DeleteIntegrationRequestBody & DeleteIntegrationRequestHeaders & DeleteIntegrationRequestQuery & DeleteIntegrationRequestParams;
|
|
11
|
+
export type DeleteIntegrationRequest = {
|
|
12
|
+
headers: DeleteIntegrationRequestHeaders;
|
|
13
|
+
query: DeleteIntegrationRequestQuery;
|
|
14
|
+
params: DeleteIntegrationRequestParams;
|
|
15
|
+
body: DeleteIntegrationRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteIntegrationInput) => DeleteIntegrationRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteIntegrationResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteIntegrationApiKeyRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteIntegrationApiKeyRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteIntegrationApiKeyRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteIntegrationApiKeyRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteIntegrationApiKeyInput = DeleteIntegrationApiKeyRequestBody & DeleteIntegrationApiKeyRequestHeaders & DeleteIntegrationApiKeyRequestQuery & DeleteIntegrationApiKeyRequestParams;
|
|
11
|
+
export type DeleteIntegrationApiKeyRequest = {
|
|
12
|
+
headers: DeleteIntegrationApiKeyRequestHeaders;
|
|
13
|
+
query: DeleteIntegrationApiKeyRequestQuery;
|
|
14
|
+
params: DeleteIntegrationApiKeyRequestParams;
|
|
15
|
+
body: DeleteIntegrationApiKeyRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteIntegrationApiKeyInput) => DeleteIntegrationApiKeyRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteIntegrationApiKeyResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteMessageRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteMessageRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteMessageRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteMessageRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteMessageInput = DeleteMessageRequestBody & DeleteMessageRequestHeaders & DeleteMessageRequestQuery & DeleteMessageRequestParams;
|
|
11
|
+
export type DeleteMessageRequest = {
|
|
12
|
+
headers: DeleteMessageRequestHeaders;
|
|
13
|
+
query: DeleteMessageRequestQuery;
|
|
14
|
+
params: DeleteMessageRequestParams;
|
|
15
|
+
body: DeleteMessageRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteMessageInput) => DeleteMessageRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteMessageResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeletePersonalAccessTokenRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeletePersonalAccessTokenRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeletePersonalAccessTokenRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeletePersonalAccessTokenRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeletePersonalAccessTokenInput = DeletePersonalAccessTokenRequestBody & DeletePersonalAccessTokenRequestHeaders & DeletePersonalAccessTokenRequestQuery & DeletePersonalAccessTokenRequestParams;
|
|
11
|
+
export type DeletePersonalAccessTokenRequest = {
|
|
12
|
+
headers: DeletePersonalAccessTokenRequestHeaders;
|
|
13
|
+
query: DeletePersonalAccessTokenRequestQuery;
|
|
14
|
+
params: DeletePersonalAccessTokenRequestParams;
|
|
15
|
+
body: DeletePersonalAccessTokenRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeletePersonalAccessTokenInput) => DeletePersonalAccessTokenRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeletePersonalAccessTokenResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteTableRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteTableRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteTableRequestParams {
|
|
6
|
+
table: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteTableRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteTableInput = DeleteTableRequestBody & DeleteTableRequestHeaders & DeleteTableRequestQuery & DeleteTableRequestParams;
|
|
11
|
+
export type DeleteTableRequest = {
|
|
12
|
+
headers: DeleteTableRequestHeaders;
|
|
13
|
+
query: DeleteTableRequestQuery;
|
|
14
|
+
params: DeleteTableRequestParams;
|
|
15
|
+
body: DeleteTableRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteTableInput) => DeleteTableRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteTableResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface DeleteTableRowsRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteTableRowsRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteTableRowsRequestParams {
|
|
6
|
+
table: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteTableRowsRequestBody {
|
|
9
|
+
/**
|
|
10
|
+
* @maxItems 1000
|
|
11
|
+
*/
|
|
12
|
+
ids?: number[];
|
|
13
|
+
/**
|
|
14
|
+
* Filter to apply when deleting rows. Example: \{ "name": \{ "$eq": "John" \} \}
|
|
15
|
+
*/
|
|
16
|
+
filter?: {
|
|
17
|
+
[k: string]: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Flag to delete all rows. Use with caution as this action is irreversible.
|
|
21
|
+
*/
|
|
22
|
+
deleteAllRows?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type DeleteTableRowsInput = DeleteTableRowsRequestBody & DeleteTableRowsRequestHeaders & DeleteTableRowsRequestQuery & DeleteTableRowsRequestParams;
|
|
25
|
+
export type DeleteTableRowsRequest = {
|
|
26
|
+
headers: DeleteTableRowsRequestHeaders;
|
|
27
|
+
query: DeleteTableRowsRequestQuery;
|
|
28
|
+
params: DeleteTableRowsRequestParams;
|
|
29
|
+
body: DeleteTableRowsRequestBody;
|
|
30
|
+
};
|
|
31
|
+
export declare const parseReq: (input: DeleteTableRowsInput) => DeleteTableRowsRequest & {
|
|
32
|
+
path: string;
|
|
33
|
+
};
|
|
34
|
+
export interface DeleteTableRowsResponse {
|
|
35
|
+
deletedRows: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteTaskRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteTaskRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteTaskRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteTaskRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteTaskInput = DeleteTaskRequestBody & DeleteTaskRequestHeaders & DeleteTaskRequestQuery & DeleteTaskRequestParams;
|
|
11
|
+
export type DeleteTaskRequest = {
|
|
12
|
+
headers: DeleteTaskRequestHeaders;
|
|
13
|
+
query: DeleteTaskRequestQuery;
|
|
14
|
+
params: DeleteTaskRequestParams;
|
|
15
|
+
body: DeleteTaskRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteTaskInput) => DeleteTaskRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteTaskResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteUserRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteUserRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteUserRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteUserRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteUserInput = DeleteUserRequestBody & DeleteUserRequestHeaders & DeleteUserRequestQuery & DeleteUserRequestParams;
|
|
11
|
+
export type DeleteUserRequest = {
|
|
12
|
+
headers: DeleteUserRequestHeaders;
|
|
13
|
+
query: DeleteUserRequestQuery;
|
|
14
|
+
params: DeleteUserRequestParams;
|
|
15
|
+
body: DeleteUserRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteUserInput) => DeleteUserRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteUserResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteWorkspaceRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteWorkspaceRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteWorkspaceRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteWorkspaceRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteWorkspaceInput = DeleteWorkspaceRequestBody & DeleteWorkspaceRequestHeaders & DeleteWorkspaceRequestQuery & DeleteWorkspaceRequestParams;
|
|
11
|
+
export type DeleteWorkspaceRequest = {
|
|
12
|
+
headers: DeleteWorkspaceRequestHeaders;
|
|
13
|
+
query: DeleteWorkspaceRequestQuery;
|
|
14
|
+
params: DeleteWorkspaceRequestParams;
|
|
15
|
+
body: DeleteWorkspaceRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteWorkspaceInput) => DeleteWorkspaceRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteWorkspaceResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DeleteWorkspaceMemberRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DeleteWorkspaceMemberRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DeleteWorkspaceMemberRequestParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteWorkspaceMemberRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type DeleteWorkspaceMemberInput = DeleteWorkspaceMemberRequestBody & DeleteWorkspaceMemberRequestHeaders & DeleteWorkspaceMemberRequestQuery & DeleteWorkspaceMemberRequestParams;
|
|
11
|
+
export type DeleteWorkspaceMemberRequest = {
|
|
12
|
+
headers: DeleteWorkspaceMemberRequestHeaders;
|
|
13
|
+
query: DeleteWorkspaceMemberRequestQuery;
|
|
14
|
+
params: DeleteWorkspaceMemberRequestParams;
|
|
15
|
+
body: DeleteWorkspaceMemberRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: DeleteWorkspaceMemberInput) => DeleteWorkspaceMemberRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface DeleteWorkspaceMemberResponse {
|
|
21
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export interface DuplicateTableRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface DuplicateTableRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface DuplicateTableRequestParams {
|
|
6
|
+
sourceTableId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DuplicateTableRequestBody {
|
|
9
|
+
tableName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Only duplicate the schema, not the content
|
|
12
|
+
*/
|
|
13
|
+
schemaOnly?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Use a different factor for the table. Leave empty to use the same as the duplicated table.
|
|
16
|
+
*/
|
|
17
|
+
factor?: number;
|
|
18
|
+
}
|
|
19
|
+
export type DuplicateTableInput = DuplicateTableRequestBody & DuplicateTableRequestHeaders & DuplicateTableRequestQuery & DuplicateTableRequestParams;
|
|
20
|
+
export type DuplicateTableRequest = {
|
|
21
|
+
headers: DuplicateTableRequestHeaders;
|
|
22
|
+
query: DuplicateTableRequestQuery;
|
|
23
|
+
params: DuplicateTableRequestParams;
|
|
24
|
+
body: DuplicateTableRequestBody;
|
|
25
|
+
};
|
|
26
|
+
export declare const parseReq: (input: DuplicateTableInput) => DuplicateTableRequest & {
|
|
27
|
+
path: string;
|
|
28
|
+
};
|
|
29
|
+
export interface DuplicateTableResponse {
|
|
30
|
+
table: {
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier for the table
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Required. This name is used to identify your table.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1.
|
|
41
|
+
*/
|
|
42
|
+
factor?: number;
|
|
43
|
+
/**
|
|
44
|
+
* A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
|
|
45
|
+
*/
|
|
46
|
+
frozen?: boolean;
|
|
47
|
+
schema: {
|
|
48
|
+
$schema: string;
|
|
49
|
+
/**
|
|
50
|
+
* List of keys/columns in the table.
|
|
51
|
+
*/
|
|
52
|
+
properties: {
|
|
53
|
+
[k: string]: {
|
|
54
|
+
type: "string" | "number" | "boolean" | "object" | "null";
|
|
55
|
+
format?: "date-time";
|
|
56
|
+
description?: string;
|
|
57
|
+
nullable?: boolean;
|
|
58
|
+
"x-zui": {
|
|
59
|
+
index: number;
|
|
60
|
+
/**
|
|
61
|
+
* [deprecated] ID of the column.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Indicates if the column is vectorized and searchable.
|
|
66
|
+
*/
|
|
67
|
+
searchable?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Indicates if the field is hidden in the UI
|
|
70
|
+
*/
|
|
71
|
+
hidden?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Order of the column in the UI
|
|
74
|
+
*/
|
|
75
|
+
order?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Width of the column in the UI
|
|
78
|
+
*/
|
|
79
|
+
width?: number;
|
|
80
|
+
computed?: {
|
|
81
|
+
action: "ai" | "code";
|
|
82
|
+
dependencies?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* Prompt when action is "ai"
|
|
85
|
+
*/
|
|
86
|
+
prompt?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Model to use when action is "ai"
|
|
89
|
+
*/
|
|
90
|
+
model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4-0125-preview" | "gpt-4-1106-preview";
|
|
91
|
+
/**
|
|
92
|
+
* Code to execute when action is "code"
|
|
93
|
+
*/
|
|
94
|
+
code?: string;
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
99
|
+
*/
|
|
100
|
+
typings?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
106
|
+
*/
|
|
107
|
+
additionalProperties: true;
|
|
108
|
+
/**
|
|
109
|
+
* Array of required properties.
|
|
110
|
+
*/
|
|
111
|
+
required?: string[];
|
|
112
|
+
type: "object";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
116
|
+
*/
|
|
117
|
+
tags?: {
|
|
118
|
+
[k: string]: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if the table is enabled for computation.
|
|
122
|
+
*/
|
|
123
|
+
isComputeEnabled?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Timestamp of table creation.
|
|
126
|
+
*/
|
|
127
|
+
createdAt?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Timestamp of the last table update.
|
|
130
|
+
*/
|
|
131
|
+
updatedAt?: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* The total number of rows present in the table.
|
|
135
|
+
*/
|
|
136
|
+
rows: number;
|
|
137
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export interface FindTableRowsRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface FindTableRowsRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface FindTableRowsRequestParams {
|
|
6
|
+
table: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FindTableRowsRequestBody {
|
|
9
|
+
/**
|
|
10
|
+
* Limit for pagination, specifying the maximum number of rows to return.
|
|
11
|
+
*/
|
|
12
|
+
limit?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Offset for pagination, specifying where to start returning rows from.
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Provide a mongodb-like filter to apply to the query. Example: \{ "name": \{ "$eq": "John" \} \}
|
|
19
|
+
*/
|
|
20
|
+
filter?: {
|
|
21
|
+
[k: string]: any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Group the rows by a specific column and apply aggregations to them. Allowed values: key, avg, max, min, sum, count. Example: \{ "someId": "key", "orders": ["sum", "avg"] \}
|
|
25
|
+
*/
|
|
26
|
+
group?: {
|
|
27
|
+
[k: string]: any;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term.
|
|
31
|
+
*/
|
|
32
|
+
search?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
|
|
35
|
+
*/
|
|
36
|
+
orderBy?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the direction of sorting, either ascending or descending.
|
|
39
|
+
*/
|
|
40
|
+
orderDirection?: "asc" | "desc";
|
|
41
|
+
}
|
|
42
|
+
export type FindTableRowsInput = FindTableRowsRequestBody & FindTableRowsRequestHeaders & FindTableRowsRequestQuery & FindTableRowsRequestParams;
|
|
43
|
+
export type FindTableRowsRequest = {
|
|
44
|
+
headers: FindTableRowsRequestHeaders;
|
|
45
|
+
query: FindTableRowsRequestQuery;
|
|
46
|
+
params: FindTableRowsRequestParams;
|
|
47
|
+
body: FindTableRowsRequestBody;
|
|
48
|
+
};
|
|
49
|
+
export declare const parseReq: (input: FindTableRowsInput) => FindTableRowsRequest & {
|
|
50
|
+
path: string;
|
|
51
|
+
};
|
|
52
|
+
export interface FindTableRowsResponse {
|
|
53
|
+
rows: {
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier for the row.
|
|
56
|
+
*/
|
|
57
|
+
id: number;
|
|
58
|
+
/**
|
|
59
|
+
* Timestamp of row creation.
|
|
60
|
+
*/
|
|
61
|
+
createdAt?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Timestamp of the last row update.
|
|
64
|
+
*/
|
|
65
|
+
updatedAt?: string;
|
|
66
|
+
computed: {
|
|
67
|
+
[k: string]: {
|
|
68
|
+
status: string;
|
|
69
|
+
error?: string;
|
|
70
|
+
updatedBy?: string;
|
|
71
|
+
updatedAt?: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* [Read-only] List of stale values that are waiting to be recomputed.
|
|
76
|
+
*/
|
|
77
|
+
stale?: string[];
|
|
78
|
+
/**
|
|
79
|
+
* Optional numeric value indicating similarity, when using findTableRows.
|
|
80
|
+
*/
|
|
81
|
+
similarity?: number;
|
|
82
|
+
[k: string]: any;
|
|
83
|
+
}[];
|
|
84
|
+
/**
|
|
85
|
+
* Flag indicating if there are more rows to fetch.
|
|
86
|
+
*/
|
|
87
|
+
hasMore: boolean;
|
|
88
|
+
offset: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
/**
|
|
91
|
+
* Alerts for minor issues that don't block the operation but suggest possible improvements.
|
|
92
|
+
*/
|
|
93
|
+
warnings?: string[];
|
|
94
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface GetAccountRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface GetAccountRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface GetAccountRequestParams {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAccountRequestBody {
|
|
8
|
+
}
|
|
9
|
+
export type GetAccountInput = GetAccountRequestBody & GetAccountRequestHeaders & GetAccountRequestQuery & GetAccountRequestParams;
|
|
10
|
+
export type GetAccountRequest = {
|
|
11
|
+
headers: GetAccountRequestHeaders;
|
|
12
|
+
query: GetAccountRequestQuery;
|
|
13
|
+
params: GetAccountRequestParams;
|
|
14
|
+
body: GetAccountRequestBody;
|
|
15
|
+
};
|
|
16
|
+
export declare const parseReq: (_: GetAccountInput) => GetAccountRequest & {
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
export interface GetAccountResponse {
|
|
20
|
+
account: {
|
|
21
|
+
id: string;
|
|
22
|
+
email: string;
|
|
23
|
+
displayName?: string;
|
|
24
|
+
emailVerified: boolean;
|
|
25
|
+
profilePicture?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Creation date of the [Account](#schema_account) in ISO 8601 format
|
|
28
|
+
*/
|
|
29
|
+
createdAt: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface GetAccountPreferenceRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface GetAccountPreferenceRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface GetAccountPreferenceRequestParams {
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetAccountPreferenceRequestBody {
|
|
9
|
+
}
|
|
10
|
+
export type GetAccountPreferenceInput = GetAccountPreferenceRequestBody & GetAccountPreferenceRequestHeaders & GetAccountPreferenceRequestQuery & GetAccountPreferenceRequestParams;
|
|
11
|
+
export type GetAccountPreferenceRequest = {
|
|
12
|
+
headers: GetAccountPreferenceRequestHeaders;
|
|
13
|
+
query: GetAccountPreferenceRequestQuery;
|
|
14
|
+
params: GetAccountPreferenceRequestParams;
|
|
15
|
+
body: GetAccountPreferenceRequestBody;
|
|
16
|
+
};
|
|
17
|
+
export declare const parseReq: (input: GetAccountPreferenceInput) => GetAccountPreferenceRequest & {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
export interface GetAccountPreferenceResponse {
|
|
21
|
+
value?: any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface GetAllWorkspaceQuotaCompletionRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface GetAllWorkspaceQuotaCompletionRequestQuery {
|
|
4
|
+
}
|
|
5
|
+
export interface GetAllWorkspaceQuotaCompletionRequestParams {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAllWorkspaceQuotaCompletionRequestBody {
|
|
8
|
+
}
|
|
9
|
+
export type GetAllWorkspaceQuotaCompletionInput = GetAllWorkspaceQuotaCompletionRequestBody & GetAllWorkspaceQuotaCompletionRequestHeaders & GetAllWorkspaceQuotaCompletionRequestQuery & GetAllWorkspaceQuotaCompletionRequestParams;
|
|
10
|
+
export type GetAllWorkspaceQuotaCompletionRequest = {
|
|
11
|
+
headers: GetAllWorkspaceQuotaCompletionRequestHeaders;
|
|
12
|
+
query: GetAllWorkspaceQuotaCompletionRequestQuery;
|
|
13
|
+
params: GetAllWorkspaceQuotaCompletionRequestParams;
|
|
14
|
+
body: GetAllWorkspaceQuotaCompletionRequestBody;
|
|
15
|
+
};
|
|
16
|
+
export declare const parseReq: (_: GetAllWorkspaceQuotaCompletionInput) => GetAllWorkspaceQuotaCompletionRequest & {
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
export interface GetAllWorkspaceQuotaCompletionResponse {
|
|
20
|
+
[k: string]: {
|
|
21
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
|
|
22
|
+
completion: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface GetAuditRecordsRequestHeaders {
|
|
2
|
+
}
|
|
3
|
+
export interface GetAuditRecordsRequestQuery {
|
|
4
|
+
nextToken?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetAuditRecordsRequestParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetAuditRecordsRequestBody {
|
|
10
|
+
}
|
|
11
|
+
export type GetAuditRecordsInput = GetAuditRecordsRequestBody & GetAuditRecordsRequestHeaders & GetAuditRecordsRequestQuery & GetAuditRecordsRequestParams;
|
|
12
|
+
export type GetAuditRecordsRequest = {
|
|
13
|
+
headers: GetAuditRecordsRequestHeaders;
|
|
14
|
+
query: GetAuditRecordsRequestQuery;
|
|
15
|
+
params: GetAuditRecordsRequestParams;
|
|
16
|
+
body: GetAuditRecordsRequestBody;
|
|
17
|
+
};
|
|
18
|
+
export declare const parseReq: (input: GetAuditRecordsInput) => GetAuditRecordsRequest & {
|
|
19
|
+
path: string;
|
|
20
|
+
};
|
|
21
|
+
export interface GetAuditRecordsResponse {
|
|
22
|
+
records: {
|
|
23
|
+
id: string;
|
|
24
|
+
recordedAt: string;
|
|
25
|
+
userId: string | null;
|
|
26
|
+
userEmail?: string | null;
|
|
27
|
+
resourceId: string | null;
|
|
28
|
+
resourceName?: string | null;
|
|
29
|
+
value?: string | null;
|
|
30
|
+
action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT";
|
|
31
|
+
}[];
|
|
32
|
+
meta: {
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
*/
|
|
36
|
+
nextToken?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|