@botpress/client 0.23.1 → 0.24.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/.turbo/turbo-build.log +12 -6
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +10910 -4
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -3
- package/dist/client.d.ts +0 -10
- package/dist/config.d.ts +0 -2
- package/dist/errors.d.ts +0 -41
- package/dist/gen/errors.d.ts +0 -211
- package/dist/gen/index.d.ts +0 -389
- package/dist/gen/models.d.ts +0 -1264
- package/dist/gen/operations/addParticipant.d.ts +0 -56
- package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +0 -27
- package/dist/gen/operations/callAction.d.ts +0 -36
- package/dist/gen/operations/changeAISpendQuota.d.ts +0 -21
- package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +0 -40
- package/dist/gen/operations/checkHandleAvailability.d.ts +0 -24
- package/dist/gen/operations/configureIntegration.d.ts +0 -24
- package/dist/gen/operations/createBot.d.ts +0 -487
- package/dist/gen/operations/createConversation.d.ts +0 -70
- package/dist/gen/operations/createEvent.d.ts +0 -95
- package/dist/gen/operations/createIntegration.d.ts +0 -573
- package/dist/gen/operations/createIntegrationApiKey.d.ts +0 -29
- package/dist/gen/operations/createInterface.d.ts +0 -172
- package/dist/gen/operations/createMessage.d.ts +0 -98
- package/dist/gen/operations/createPersonalAccessToken.d.ts +0 -33
- package/dist/gen/operations/createTable.d.ts +0 -151
- package/dist/gen/operations/createTableRows.d.ts +0 -71
- package/dist/gen/operations/createTask.d.ts +0 -125
- package/dist/gen/operations/createUser.d.ts +0 -70
- package/dist/gen/operations/createWorkspace.d.ts +0 -38
- package/dist/gen/operations/createWorkspaceMember.d.ts +0 -29
- package/dist/gen/operations/deleteBot.d.ts +0 -21
- package/dist/gen/operations/deleteBotIssue.d.ts +0 -22
- package/dist/gen/operations/deleteConversation.d.ts +0 -21
- package/dist/gen/operations/deleteFile.d.ts +0 -21
- package/dist/gen/operations/deleteIntegration.d.ts +0 -21
- package/dist/gen/operations/deleteIntegrationApiKey.d.ts +0 -21
- package/dist/gen/operations/deleteInterface.d.ts +0 -21
- package/dist/gen/operations/deleteMessage.d.ts +0 -21
- package/dist/gen/operations/deletePersonalAccessToken.d.ts +0 -21
- package/dist/gen/operations/deleteTable.d.ts +0 -21
- package/dist/gen/operations/deleteTableRows.d.ts +0 -36
- package/dist/gen/operations/deleteTask.d.ts +0 -21
- package/dist/gen/operations/deleteUser.d.ts +0 -21
- package/dist/gen/operations/deleteWorkspace.d.ts +0 -21
- package/dist/gen/operations/deleteWorkspaceMember.d.ts +0 -21
- package/dist/gen/operations/duplicateTable.d.ts +0 -137
- package/dist/gen/operations/findTableRows.d.ts +0 -94
- package/dist/gen/operations/getAccount.d.ts +0 -31
- package/dist/gen/operations/getAccountPreference.d.ts +0 -22
- package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +0 -24
- package/dist/gen/operations/getAuditRecords.d.ts +0 -38
- package/dist/gen/operations/getBot.d.ts +0 -308
- package/dist/gen/operations/getBotAnalytics.d.ts +0 -49
- package/dist/gen/operations/getBotIssue.d.ts +0 -39
- package/dist/gen/operations/getBotLogs.d.ts +0 -30
- package/dist/gen/operations/getBotWebchat.d.ts +0 -23
- package/dist/gen/operations/getConversation.d.ts +0 -56
- package/dist/gen/operations/getEvent.d.ts +0 -61
- package/dist/gen/operations/getFile.d.ts +0 -85
- package/dist/gen/operations/getIntegration.d.ts +0 -315
- package/dist/gen/operations/getIntegrationByName.d.ts +0 -316
- package/dist/gen/operations/getIntegrationLogs.d.ts +0 -30
- package/dist/gen/operations/getInterface.d.ts +0 -104
- package/dist/gen/operations/getInterfaceByName.d.ts +0 -105
- package/dist/gen/operations/getMessage.d.ts +0 -62
- package/dist/gen/operations/getMultipleUsages.d.ts +0 -45
- package/dist/gen/operations/getOrCreateConversation.d.ts +0 -70
- package/dist/gen/operations/getOrCreateMessage.d.ts +0 -98
- package/dist/gen/operations/getOrCreateTable.d.ts +0 -164
- package/dist/gen/operations/getOrCreateUser.d.ts +0 -70
- package/dist/gen/operations/getOrSetState.d.ts +0 -76
- package/dist/gen/operations/getParticipant.d.ts +0 -53
- package/dist/gen/operations/getPublicIntegration.d.ts +0 -321
- package/dist/gen/operations/getPublicIntegrationById.d.ts +0 -320
- package/dist/gen/operations/getPublicWorkspace.d.ts +0 -31
- package/dist/gen/operations/getState.d.ts +0 -66
- package/dist/gen/operations/getTable.d.ts +0 -136
- package/dist/gen/operations/getTableRow.d.ts +0 -53
- package/dist/gen/operations/getTask.d.ts +0 -86
- package/dist/gen/operations/getUpcomingInvoice.d.ts +0 -29
- package/dist/gen/operations/getUsage.d.ts +0 -45
- package/dist/gen/operations/getUser.d.ts +0 -52
- package/dist/gen/operations/getWorkspace.d.ts +0 -38
- package/dist/gen/operations/getWorkspaceMember.d.ts +0 -27
- package/dist/gen/operations/getWorkspaceQuota.d.ts +0 -37
- package/dist/gen/operations/introspect.d.ts +0 -24
- package/dist/gen/operations/listActivities.d.ts +0 -42
- package/dist/gen/operations/listBotIssueEvents.d.ts +0 -32
- package/dist/gen/operations/listBotIssues.d.ts +0 -45
- package/dist/gen/operations/listBots.d.ts +0 -46
- package/dist/gen/operations/listConversations.d.ts +0 -64
- package/dist/gen/operations/listEvents.d.ts +0 -69
- package/dist/gen/operations/listFiles.d.ts +0 -94
- package/dist/gen/operations/listIntegrationApiKeys.d.ts +0 -26
- package/dist/gen/operations/listIntegrations.d.ts +0 -68
- package/dist/gen/operations/listInterfaces.d.ts +0 -49
- package/dist/gen/operations/listMessages.d.ts +0 -69
- package/dist/gen/operations/listParticipants.d.ts +0 -56
- package/dist/gen/operations/listPersonalAccessTokens.d.ts +0 -25
- package/dist/gen/operations/listPublicIntegrations.d.ts +0 -72
- package/dist/gen/operations/listPublicWorkspaces.d.ts +0 -42
- package/dist/gen/operations/listTables.d.ts +0 -126
- package/dist/gen/operations/listTasks.d.ts +0 -97
- package/dist/gen/operations/listUsageHistory.d.ts +0 -44
- package/dist/gen/operations/listUsers.d.ts +0 -59
- package/dist/gen/operations/listWorkspaceInvoices.d.ts +0 -57
- package/dist/gen/operations/listWorkspaceMembers.d.ts +0 -36
- package/dist/gen/operations/listWorkspaceQuotas.d.ts +0 -36
- package/dist/gen/operations/listWorkspaceUsages.d.ts +0 -45
- package/dist/gen/operations/listWorkspaces.d.ts +0 -47
- package/dist/gen/operations/patchState.d.ts +0 -72
- package/dist/gen/operations/removeParticipant.d.ts +0 -22
- package/dist/gen/operations/renameTableColumn.d.ts +0 -132
- package/dist/gen/operations/runVrl.d.ts +0 -28
- package/dist/gen/operations/searchFiles.d.ts +0 -56
- package/dist/gen/operations/setAccountPreference.d.ts +0 -22
- package/dist/gen/operations/setState.d.ts +0 -76
- package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +0 -37
- package/dist/gen/operations/trackAnalytics.d.ts +0 -22
- package/dist/gen/operations/transferBot.d.ts +0 -25
- package/dist/gen/operations/updateAccount.d.ts +0 -34
- package/dist/gen/operations/updateBot.d.ts +0 -486
- package/dist/gen/operations/updateConversation.d.ts +0 -63
- package/dist/gen/operations/updateFileMetadata.d.ts +0 -95
- package/dist/gen/operations/updateIntegration.d.ts +0 -562
- package/dist/gen/operations/updateInterface.d.ts +0 -165
- package/dist/gen/operations/updateMessage.d.ts +0 -68
- package/dist/gen/operations/updateTable.d.ts +0 -152
- package/dist/gen/operations/updateTableRows.d.ts +0 -74
- package/dist/gen/operations/updateTask.d.ts +0 -114
- package/dist/gen/operations/updateUser.d.ts +0 -66
- package/dist/gen/operations/updateWorkspace.d.ts +0 -50
- package/dist/gen/operations/updateWorkspaceMember.d.ts +0 -29
- package/dist/gen/operations/upsertFile.d.ts +0 -114
- package/dist/gen/operations/upsertTableRows.d.ts +0 -107
- package/dist/gen/to-axios.d.ts +0 -16
- package/dist/types.d.ts +0 -49
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ListPublicWorkspacesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListPublicWorkspacesRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
workspaceIds?: string[];
|
|
6
|
-
search?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ListPublicWorkspacesRequestParams {
|
|
9
|
-
}
|
|
10
|
-
export interface ListPublicWorkspacesRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type ListPublicWorkspacesInput = ListPublicWorkspacesRequestBody & ListPublicWorkspacesRequestHeaders & ListPublicWorkspacesRequestQuery & ListPublicWorkspacesRequestParams;
|
|
13
|
-
export type ListPublicWorkspacesRequest = {
|
|
14
|
-
headers: ListPublicWorkspacesRequestHeaders;
|
|
15
|
-
query: ListPublicWorkspacesRequestQuery;
|
|
16
|
-
params: ListPublicWorkspacesRequestParams;
|
|
17
|
-
body: ListPublicWorkspacesRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: ListPublicWorkspacesInput) => ListPublicWorkspacesRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface ListPublicWorkspacesResponse {
|
|
23
|
-
workspaces: GetPublicWorkspaceResponse[];
|
|
24
|
-
meta: {
|
|
25
|
-
/**
|
|
26
|
-
* 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.
|
|
27
|
-
*/
|
|
28
|
-
nextToken?: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface GetPublicWorkspaceResponse {
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
updatedAt: string;
|
|
36
|
-
about?: string;
|
|
37
|
-
profilePicture?: string;
|
|
38
|
-
contactEmail?: string;
|
|
39
|
-
website?: string;
|
|
40
|
-
socialAccounts?: string[];
|
|
41
|
-
handle?: string;
|
|
42
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export interface ListTablesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListTablesRequestQuery {
|
|
4
|
-
tags?: {
|
|
5
|
-
[k: string]: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export interface ListTablesRequestParams {
|
|
9
|
-
}
|
|
10
|
-
export interface ListTablesRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type ListTablesInput = ListTablesRequestBody & ListTablesRequestHeaders & ListTablesRequestQuery & ListTablesRequestParams;
|
|
13
|
-
export type ListTablesRequest = {
|
|
14
|
-
headers: ListTablesRequestHeaders;
|
|
15
|
-
query: ListTablesRequestQuery;
|
|
16
|
-
params: ListTablesRequestParams;
|
|
17
|
-
body: ListTablesRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: ListTablesInput) => ListTablesRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface ListTablesResponse {
|
|
23
|
-
tables: {
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier for the table
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Required. This name is used to identify your table.
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* 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.
|
|
34
|
-
*/
|
|
35
|
-
factor?: number;
|
|
36
|
-
/**
|
|
37
|
-
* 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.
|
|
38
|
-
*/
|
|
39
|
-
frozen?: boolean;
|
|
40
|
-
schema: {
|
|
41
|
-
$schema: string;
|
|
42
|
-
/**
|
|
43
|
-
* List of keys/columns in the table.
|
|
44
|
-
*/
|
|
45
|
-
properties: {
|
|
46
|
-
[k: string]: {
|
|
47
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
48
|
-
format?: "date-time";
|
|
49
|
-
description?: string;
|
|
50
|
-
nullable?: boolean;
|
|
51
|
-
"x-zui": {
|
|
52
|
-
index: number;
|
|
53
|
-
/**
|
|
54
|
-
* [deprecated] ID of the column.
|
|
55
|
-
*/
|
|
56
|
-
id?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Indicates if the column is vectorized and searchable.
|
|
59
|
-
*/
|
|
60
|
-
searchable?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Indicates if the field is hidden in the UI
|
|
63
|
-
*/
|
|
64
|
-
hidden?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Order of the column in the UI
|
|
67
|
-
*/
|
|
68
|
-
order?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Width of the column in the UI
|
|
71
|
-
*/
|
|
72
|
-
width?: number;
|
|
73
|
-
computed?: {
|
|
74
|
-
action: "ai" | "code";
|
|
75
|
-
dependencies?: string[];
|
|
76
|
-
/**
|
|
77
|
-
* Prompt when action is "ai"
|
|
78
|
-
*/
|
|
79
|
-
prompt?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Model to use when action is "ai"
|
|
82
|
-
*/
|
|
83
|
-
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";
|
|
84
|
-
/**
|
|
85
|
-
* Code to execute when action is "code"
|
|
86
|
-
*/
|
|
87
|
-
code?: string;
|
|
88
|
-
enabled?: boolean;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
92
|
-
*/
|
|
93
|
-
typings?: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
99
|
-
*/
|
|
100
|
-
additionalProperties: true;
|
|
101
|
-
/**
|
|
102
|
-
* Array of required properties.
|
|
103
|
-
*/
|
|
104
|
-
required?: string[];
|
|
105
|
-
type: "object";
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
109
|
-
*/
|
|
110
|
-
tags?: {
|
|
111
|
-
[k: string]: string;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Indicates if the table is enabled for computation.
|
|
115
|
-
*/
|
|
116
|
-
isComputeEnabled?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Timestamp of table creation.
|
|
119
|
-
*/
|
|
120
|
-
createdAt?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Timestamp of the last table update.
|
|
123
|
-
*/
|
|
124
|
-
updatedAt?: string;
|
|
125
|
-
}[];
|
|
126
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export interface ListTasksRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListTasksRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
tags?: {
|
|
6
|
-
[k: string]: string;
|
|
7
|
-
};
|
|
8
|
-
conversationId?: string;
|
|
9
|
-
userId?: string;
|
|
10
|
-
parentTaskId?: string;
|
|
11
|
-
status?: ("pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled")[];
|
|
12
|
-
type?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ListTasksRequestParams {
|
|
15
|
-
}
|
|
16
|
-
export interface ListTasksRequestBody {
|
|
17
|
-
}
|
|
18
|
-
export type ListTasksInput = ListTasksRequestBody & ListTasksRequestHeaders & ListTasksRequestQuery & ListTasksRequestParams;
|
|
19
|
-
export type ListTasksRequest = {
|
|
20
|
-
headers: ListTasksRequestHeaders;
|
|
21
|
-
query: ListTasksRequestQuery;
|
|
22
|
-
params: ListTasksRequestParams;
|
|
23
|
-
body: ListTasksRequestBody;
|
|
24
|
-
};
|
|
25
|
-
export declare const parseReq: (input: ListTasksInput) => ListTasksRequest & {
|
|
26
|
-
path: string;
|
|
27
|
-
};
|
|
28
|
-
export interface ListTasksResponse {
|
|
29
|
-
tasks: {
|
|
30
|
-
/**
|
|
31
|
-
* Id of the [Task](#schema_task)
|
|
32
|
-
*/
|
|
33
|
-
id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Title describing the task
|
|
36
|
-
*/
|
|
37
|
-
title: string;
|
|
38
|
-
/**
|
|
39
|
-
* All the notes related to the execution of the current task
|
|
40
|
-
*/
|
|
41
|
-
description: string;
|
|
42
|
-
/**
|
|
43
|
-
* Type of the task
|
|
44
|
-
*/
|
|
45
|
-
type: string;
|
|
46
|
-
/**
|
|
47
|
-
* Content related to the task
|
|
48
|
-
*/
|
|
49
|
-
data: {
|
|
50
|
-
[k: string]: any;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Status of the task
|
|
54
|
-
*/
|
|
55
|
-
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
56
|
-
/**
|
|
57
|
-
* Parent task id is the parent task that created this task
|
|
58
|
-
*/
|
|
59
|
-
parentTaskId?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Conversation id related to this task
|
|
62
|
-
*/
|
|
63
|
-
conversationId?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Specific user related to this task
|
|
66
|
-
*/
|
|
67
|
-
userId?: string;
|
|
68
|
-
/**
|
|
69
|
-
* The timeout date where the task should be failed in the ISO 8601 format
|
|
70
|
-
*/
|
|
71
|
-
timeoutAt: string;
|
|
72
|
-
/**
|
|
73
|
-
* Creation date of the task in ISO 8601 format
|
|
74
|
-
*/
|
|
75
|
-
createdAt: string;
|
|
76
|
-
/**
|
|
77
|
-
* Updating date of the task in ISO 8601 format
|
|
78
|
-
*/
|
|
79
|
-
updatedAt: string;
|
|
80
|
-
/**
|
|
81
|
-
* If the task fails this is the reason behind it
|
|
82
|
-
*/
|
|
83
|
-
failureReason?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them.
|
|
86
|
-
*/
|
|
87
|
-
tags: {
|
|
88
|
-
[k: string]: string;
|
|
89
|
-
};
|
|
90
|
-
}[];
|
|
91
|
-
meta: {
|
|
92
|
-
/**
|
|
93
|
-
* 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.
|
|
94
|
-
*/
|
|
95
|
-
nextToken?: string;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface ListUsageHistoryRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListUsageHistoryRequestQuery {
|
|
4
|
-
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";
|
|
5
|
-
}
|
|
6
|
-
export interface ListUsageHistoryRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ListUsageHistoryRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type ListUsageHistoryInput = ListUsageHistoryRequestBody & ListUsageHistoryRequestHeaders & ListUsageHistoryRequestQuery & ListUsageHistoryRequestParams;
|
|
12
|
-
export type ListUsageHistoryRequest = {
|
|
13
|
-
headers: ListUsageHistoryRequestHeaders;
|
|
14
|
-
query: ListUsageHistoryRequestQuery;
|
|
15
|
-
params: ListUsageHistoryRequestParams;
|
|
16
|
-
body: ListUsageHistoryRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: ListUsageHistoryInput) => ListUsageHistoryRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface ListUsageHistoryResponse {
|
|
22
|
-
usages: {
|
|
23
|
-
/**
|
|
24
|
-
* Id of the usage that it is linked to. It can either be a workspace id or a bot id
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Period of the quota that it is applied to
|
|
29
|
-
*/
|
|
30
|
-
period: string;
|
|
31
|
-
/**
|
|
32
|
-
* Value of the current usage
|
|
33
|
-
*/
|
|
34
|
-
value: number;
|
|
35
|
-
/**
|
|
36
|
-
* Quota of the current usage
|
|
37
|
-
*/
|
|
38
|
-
quota: number;
|
|
39
|
-
/**
|
|
40
|
-
* Usage type that can be used
|
|
41
|
-
*/
|
|
42
|
-
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";
|
|
43
|
-
}[];
|
|
44
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface ListUsersRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListUsersRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
conversationId?: string;
|
|
6
|
-
tags?: {
|
|
7
|
-
[k: string]: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface ListUsersRequestParams {
|
|
11
|
-
}
|
|
12
|
-
export interface ListUsersRequestBody {
|
|
13
|
-
}
|
|
14
|
-
export type ListUsersInput = ListUsersRequestBody & ListUsersRequestHeaders & ListUsersRequestQuery & ListUsersRequestParams;
|
|
15
|
-
export type ListUsersRequest = {
|
|
16
|
-
headers: ListUsersRequestHeaders;
|
|
17
|
-
query: ListUsersRequestQuery;
|
|
18
|
-
params: ListUsersRequestParams;
|
|
19
|
-
body: ListUsersRequestBody;
|
|
20
|
-
};
|
|
21
|
-
export declare const parseReq: (input: ListUsersInput) => ListUsersRequest & {
|
|
22
|
-
path: string;
|
|
23
|
-
};
|
|
24
|
-
export interface ListUsersResponse {
|
|
25
|
-
users: {
|
|
26
|
-
/**
|
|
27
|
-
* Id of the [User](#schema_user)
|
|
28
|
-
*/
|
|
29
|
-
id: string;
|
|
30
|
-
/**
|
|
31
|
-
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
32
|
-
*/
|
|
33
|
-
createdAt: string;
|
|
34
|
-
/**
|
|
35
|
-
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
36
|
-
*/
|
|
37
|
-
updatedAt: string;
|
|
38
|
-
/**
|
|
39
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
40
|
-
*/
|
|
41
|
-
tags: {
|
|
42
|
-
[k: string]: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Name of the [User](#schema_user)
|
|
46
|
-
*/
|
|
47
|
-
name?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Picture URL of the [User](#schema_user)
|
|
50
|
-
*/
|
|
51
|
-
pictureUrl?: string;
|
|
52
|
-
}[];
|
|
53
|
-
meta: {
|
|
54
|
-
/**
|
|
55
|
-
* 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.
|
|
56
|
-
*/
|
|
57
|
-
nextToken?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export interface ListWorkspaceInvoicesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListWorkspaceInvoicesRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface ListWorkspaceInvoicesRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ListWorkspaceInvoicesRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type ListWorkspaceInvoicesInput = ListWorkspaceInvoicesRequestBody & ListWorkspaceInvoicesRequestHeaders & ListWorkspaceInvoicesRequestQuery & ListWorkspaceInvoicesRequestParams;
|
|
11
|
-
export type ListWorkspaceInvoicesRequest = {
|
|
12
|
-
headers: ListWorkspaceInvoicesRequestHeaders;
|
|
13
|
-
query: ListWorkspaceInvoicesRequestQuery;
|
|
14
|
-
params: ListWorkspaceInvoicesRequestParams;
|
|
15
|
-
body: ListWorkspaceInvoicesRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: ListWorkspaceInvoicesInput) => ListWorkspaceInvoicesRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface ListWorkspaceInvoicesResponse {
|
|
21
|
-
invoices: {
|
|
22
|
-
id: string;
|
|
23
|
-
period: {
|
|
24
|
-
month: number;
|
|
25
|
-
year: number;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Date on which the invoice was generated.
|
|
29
|
-
*/
|
|
30
|
-
date: string;
|
|
31
|
-
/**
|
|
32
|
-
* Total amount to pay of the invoice.
|
|
33
|
-
*/
|
|
34
|
-
amount: number;
|
|
35
|
-
/**
|
|
36
|
-
* Currency of the invoice amount.
|
|
37
|
-
*/
|
|
38
|
-
currency: string;
|
|
39
|
-
paymentStatus: ("deleted" | "draft" | "open" | "paid" | "uncollectible" | "void") | null;
|
|
40
|
-
/**
|
|
41
|
-
* Date on which the invoice is due.
|
|
42
|
-
*/
|
|
43
|
-
dueDate?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Number of times payment has been unsuccessfully attempted on the invoice.
|
|
46
|
-
*/
|
|
47
|
-
paymentAttemptCount: number | null;
|
|
48
|
-
/**
|
|
49
|
-
* Date on which the next payment attempt will be made.
|
|
50
|
-
*/
|
|
51
|
-
nextPaymentAttemptDate: string | null;
|
|
52
|
-
/**
|
|
53
|
-
* URL to download the PDF file of the invoice.
|
|
54
|
-
*/
|
|
55
|
-
pdfUrl: string;
|
|
56
|
-
}[];
|
|
57
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface ListWorkspaceMembersRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListWorkspaceMembersRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ListWorkspaceMembersRequestParams {
|
|
7
|
-
}
|
|
8
|
-
export interface ListWorkspaceMembersRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type ListWorkspaceMembersInput = ListWorkspaceMembersRequestBody & ListWorkspaceMembersRequestHeaders & ListWorkspaceMembersRequestQuery & ListWorkspaceMembersRequestParams;
|
|
11
|
-
export type ListWorkspaceMembersRequest = {
|
|
12
|
-
headers: ListWorkspaceMembersRequestHeaders;
|
|
13
|
-
query: ListWorkspaceMembersRequestQuery;
|
|
14
|
-
params: ListWorkspaceMembersRequestParams;
|
|
15
|
-
body: ListWorkspaceMembersRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: ListWorkspaceMembersInput) => ListWorkspaceMembersRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface ListWorkspaceMembersResponse {
|
|
21
|
-
members: {
|
|
22
|
-
id: string;
|
|
23
|
-
userId?: string;
|
|
24
|
-
email: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
27
|
-
profilePicture?: string;
|
|
28
|
-
displayName?: string;
|
|
29
|
-
}[];
|
|
30
|
-
meta: {
|
|
31
|
-
/**
|
|
32
|
-
* 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.
|
|
33
|
-
*/
|
|
34
|
-
nextToken?: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface ListWorkspaceQuotasRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListWorkspaceQuotasRequestQuery {
|
|
4
|
-
period?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ListWorkspaceQuotasRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ListWorkspaceQuotasRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type ListWorkspaceQuotasInput = ListWorkspaceQuotasRequestBody & ListWorkspaceQuotasRequestHeaders & ListWorkspaceQuotasRequestQuery & ListWorkspaceQuotasRequestParams;
|
|
12
|
-
export type ListWorkspaceQuotasRequest = {
|
|
13
|
-
headers: ListWorkspaceQuotasRequestHeaders;
|
|
14
|
-
query: ListWorkspaceQuotasRequestQuery;
|
|
15
|
-
params: ListWorkspaceQuotasRequestParams;
|
|
16
|
-
body: ListWorkspaceQuotasRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: ListWorkspaceQuotasInput) => ListWorkspaceQuotasRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface ListWorkspaceQuotasResponse {
|
|
22
|
-
quotas: {
|
|
23
|
-
/**
|
|
24
|
-
* Period of the quota that it is applied to
|
|
25
|
-
*/
|
|
26
|
-
period: string;
|
|
27
|
-
/**
|
|
28
|
-
* Value of the quota that is used
|
|
29
|
-
*/
|
|
30
|
-
value: number;
|
|
31
|
-
/**
|
|
32
|
-
* Usage type that can be used
|
|
33
|
-
*/
|
|
34
|
-
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";
|
|
35
|
-
}[];
|
|
36
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface ListWorkspaceUsagesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListWorkspaceUsagesRequestQuery {
|
|
4
|
-
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";
|
|
5
|
-
period?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ListWorkspaceUsagesRequestParams {
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ListWorkspaceUsagesRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type ListWorkspaceUsagesInput = ListWorkspaceUsagesRequestBody & ListWorkspaceUsagesRequestHeaders & ListWorkspaceUsagesRequestQuery & ListWorkspaceUsagesRequestParams;
|
|
13
|
-
export type ListWorkspaceUsagesRequest = {
|
|
14
|
-
headers: ListWorkspaceUsagesRequestHeaders;
|
|
15
|
-
query: ListWorkspaceUsagesRequestQuery;
|
|
16
|
-
params: ListWorkspaceUsagesRequestParams;
|
|
17
|
-
body: ListWorkspaceUsagesRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: ListWorkspaceUsagesInput) => ListWorkspaceUsagesRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface ListWorkspaceUsagesResponse {
|
|
23
|
-
usages: {
|
|
24
|
-
/**
|
|
25
|
-
* Id of the usage that it is linked to. It can either be a workspace id or a bot id
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Period of the quota that it is applied to
|
|
30
|
-
*/
|
|
31
|
-
period: string;
|
|
32
|
-
/**
|
|
33
|
-
* Value of the current usage
|
|
34
|
-
*/
|
|
35
|
-
value: number;
|
|
36
|
-
/**
|
|
37
|
-
* Quota of the current usage
|
|
38
|
-
*/
|
|
39
|
-
quota: number;
|
|
40
|
-
/**
|
|
41
|
-
* Usage type that can be used
|
|
42
|
-
*/
|
|
43
|
-
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";
|
|
44
|
-
}[];
|
|
45
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export interface ListWorkspacesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListWorkspacesRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ListWorkspacesRequestParams {
|
|
7
|
-
}
|
|
8
|
-
export interface ListWorkspacesRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type ListWorkspacesInput = ListWorkspacesRequestBody & ListWorkspacesRequestHeaders & ListWorkspacesRequestQuery & ListWorkspacesRequestParams;
|
|
11
|
-
export type ListWorkspacesRequest = {
|
|
12
|
-
headers: ListWorkspacesRequestHeaders;
|
|
13
|
-
query: ListWorkspacesRequestQuery;
|
|
14
|
-
params: ListWorkspacesRequestParams;
|
|
15
|
-
body: ListWorkspacesRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: ListWorkspacesInput) => ListWorkspacesRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface ListWorkspacesResponse {
|
|
21
|
-
workspaces: UpdateWorkspaceResponse[];
|
|
22
|
-
meta: {
|
|
23
|
-
/**
|
|
24
|
-
* 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.
|
|
25
|
-
*/
|
|
26
|
-
nextToken?: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface UpdateWorkspaceResponse {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
ownerId: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
botCount: number;
|
|
36
|
-
billingVersion: "v1" | "v2";
|
|
37
|
-
plan: "community" | "team" | "enterprise";
|
|
38
|
-
blocked: boolean;
|
|
39
|
-
spendingLimit: number;
|
|
40
|
-
about?: string;
|
|
41
|
-
profilePicture?: string;
|
|
42
|
-
contactEmail?: string;
|
|
43
|
-
website?: string;
|
|
44
|
-
socialAccounts?: string[];
|
|
45
|
-
isPublic?: boolean;
|
|
46
|
-
handle?: string;
|
|
47
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export interface PatchStateRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface PatchStateRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface PatchStateRequestParams {
|
|
6
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PatchStateRequestBody {
|
|
11
|
-
/**
|
|
12
|
-
* Payload is the content of the state defined by your bot.
|
|
13
|
-
*/
|
|
14
|
-
payload: {
|
|
15
|
-
[k: string]: any;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export type PatchStateInput = PatchStateRequestBody & PatchStateRequestHeaders & PatchStateRequestQuery & PatchStateRequestParams;
|
|
19
|
-
export type PatchStateRequest = {
|
|
20
|
-
headers: PatchStateRequestHeaders;
|
|
21
|
-
query: PatchStateRequestQuery;
|
|
22
|
-
params: PatchStateRequestParams;
|
|
23
|
-
body: PatchStateRequestBody;
|
|
24
|
-
};
|
|
25
|
-
export declare const parseReq: (input: PatchStateInput) => PatchStateRequest & {
|
|
26
|
-
path: string;
|
|
27
|
-
};
|
|
28
|
-
export interface PatchStateResponse {
|
|
29
|
-
/**
|
|
30
|
-
* The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
|
|
31
|
-
*/
|
|
32
|
-
state: {
|
|
33
|
-
/**
|
|
34
|
-
* Id of the [State](#schema_state)
|
|
35
|
-
*/
|
|
36
|
-
id: string;
|
|
37
|
-
/**
|
|
38
|
-
* Creation date of the [State](#schema_state) in ISO 8601 format
|
|
39
|
-
*/
|
|
40
|
-
createdAt: string;
|
|
41
|
-
/**
|
|
42
|
-
* Updating date of the [State](#schema_state) in ISO 8601 format
|
|
43
|
-
*/
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
/**
|
|
46
|
-
* Id of the [Bot](#schema_bot)
|
|
47
|
-
*/
|
|
48
|
-
botId: string;
|
|
49
|
-
/**
|
|
50
|
-
* Id of the [Conversation](#schema_conversation)
|
|
51
|
-
*/
|
|
52
|
-
conversationId?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Id of the [User](#schema_user)
|
|
55
|
-
*/
|
|
56
|
-
userId?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Name of the [State](#schema_state) which is declared inside the bot definition
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to
|
|
63
|
-
*/
|
|
64
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
65
|
-
/**
|
|
66
|
-
* Payload is the content of the state defined by your bot.
|
|
67
|
-
*/
|
|
68
|
-
payload: {
|
|
69
|
-
[k: string]: any;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}
|