@botpress/client 0.23.2 → 0.24.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/.turbo/turbo-build.log +12 -6
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10936 -4
- package/dist/index.mjs.map +1 -1
- 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 -401
- package/dist/gen/models.d.ts +0 -1269
- 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/createBotVersion.d.ts +0 -28
- 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/deployBotVersion.d.ts +0 -22
- 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/getBotVersion.d.ts +0 -23
- 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/listBotVersions.d.ts +0 -26
- 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,66 +0,0 @@
|
|
|
1
|
-
export interface GetStateRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetStateRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetStateRequestParams {
|
|
6
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetStateRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type GetStateInput = GetStateRequestBody & GetStateRequestHeaders & GetStateRequestQuery & GetStateRequestParams;
|
|
13
|
-
export type GetStateRequest = {
|
|
14
|
-
headers: GetStateRequestHeaders;
|
|
15
|
-
query: GetStateRequestQuery;
|
|
16
|
-
params: GetStateRequestParams;
|
|
17
|
-
body: GetStateRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: GetStateInput) => GetStateRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface GetStateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
|
|
25
|
-
*/
|
|
26
|
-
state: {
|
|
27
|
-
/**
|
|
28
|
-
* Id of the [State](#schema_state)
|
|
29
|
-
*/
|
|
30
|
-
id: string;
|
|
31
|
-
/**
|
|
32
|
-
* Creation date of the [State](#schema_state) in ISO 8601 format
|
|
33
|
-
*/
|
|
34
|
-
createdAt: string;
|
|
35
|
-
/**
|
|
36
|
-
* Updating date of the [State](#schema_state) in ISO 8601 format
|
|
37
|
-
*/
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
/**
|
|
40
|
-
* Id of the [Bot](#schema_bot)
|
|
41
|
-
*/
|
|
42
|
-
botId: string;
|
|
43
|
-
/**
|
|
44
|
-
* Id of the [Conversation](#schema_conversation)
|
|
45
|
-
*/
|
|
46
|
-
conversationId?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Id of the [User](#schema_user)
|
|
49
|
-
*/
|
|
50
|
-
userId?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Name of the [State](#schema_state) which is declared inside the bot definition
|
|
53
|
-
*/
|
|
54
|
-
name: string;
|
|
55
|
-
/**
|
|
56
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to
|
|
57
|
-
*/
|
|
58
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
59
|
-
/**
|
|
60
|
-
* Payload is the content of the state defined by your bot.
|
|
61
|
-
*/
|
|
62
|
-
payload: {
|
|
63
|
-
[k: string]: any;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
export interface GetTableRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetTableRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetTableRequestParams {
|
|
6
|
-
table: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetTableRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetTableInput = GetTableRequestBody & GetTableRequestHeaders & GetTableRequestQuery & GetTableRequestParams;
|
|
11
|
-
export type GetTableRequest = {
|
|
12
|
-
headers: GetTableRequestHeaders;
|
|
13
|
-
query: GetTableRequestQuery;
|
|
14
|
-
params: GetTableRequestParams;
|
|
15
|
-
body: GetTableRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetTableInput) => GetTableRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetTableResponse {
|
|
21
|
-
table: {
|
|
22
|
-
/**
|
|
23
|
-
* Unique identifier for the table
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Required. This name is used to identify your table.
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
* 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.
|
|
32
|
-
*/
|
|
33
|
-
factor?: number;
|
|
34
|
-
/**
|
|
35
|
-
* 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.
|
|
36
|
-
*/
|
|
37
|
-
frozen?: boolean;
|
|
38
|
-
schema: {
|
|
39
|
-
$schema: string;
|
|
40
|
-
/**
|
|
41
|
-
* List of keys/columns in the table.
|
|
42
|
-
*/
|
|
43
|
-
properties: {
|
|
44
|
-
[k: string]: {
|
|
45
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
46
|
-
format?: "date-time";
|
|
47
|
-
description?: string;
|
|
48
|
-
nullable?: boolean;
|
|
49
|
-
"x-zui": {
|
|
50
|
-
index: number;
|
|
51
|
-
/**
|
|
52
|
-
* [deprecated] ID of the column.
|
|
53
|
-
*/
|
|
54
|
-
id?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Indicates if the column is vectorized and searchable.
|
|
57
|
-
*/
|
|
58
|
-
searchable?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Indicates if the field is hidden in the UI
|
|
61
|
-
*/
|
|
62
|
-
hidden?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Order of the column in the UI
|
|
65
|
-
*/
|
|
66
|
-
order?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Width of the column in the UI
|
|
69
|
-
*/
|
|
70
|
-
width?: number;
|
|
71
|
-
computed?: {
|
|
72
|
-
action: "ai" | "code";
|
|
73
|
-
dependencies?: string[];
|
|
74
|
-
/**
|
|
75
|
-
* Prompt when action is "ai"
|
|
76
|
-
*/
|
|
77
|
-
prompt?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Model to use when action is "ai"
|
|
80
|
-
*/
|
|
81
|
-
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";
|
|
82
|
-
/**
|
|
83
|
-
* Code to execute when action is "code"
|
|
84
|
-
*/
|
|
85
|
-
code?: string;
|
|
86
|
-
enabled?: boolean;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
90
|
-
*/
|
|
91
|
-
typings?: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
97
|
-
*/
|
|
98
|
-
additionalProperties: true;
|
|
99
|
-
/**
|
|
100
|
-
* Array of required properties.
|
|
101
|
-
*/
|
|
102
|
-
required?: string[];
|
|
103
|
-
type: "object";
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
107
|
-
*/
|
|
108
|
-
tags?: {
|
|
109
|
-
[k: string]: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Indicates if the table is enabled for computation.
|
|
113
|
-
*/
|
|
114
|
-
isComputeEnabled?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Timestamp of table creation.
|
|
117
|
-
*/
|
|
118
|
-
createdAt?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Timestamp of the last table update.
|
|
121
|
-
*/
|
|
122
|
-
updatedAt?: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* The total number of rows present in the table.
|
|
126
|
-
*/
|
|
127
|
-
rows: number;
|
|
128
|
-
/**
|
|
129
|
-
* The number of stale rows that are waiting to be processed
|
|
130
|
-
*/
|
|
131
|
-
stale: number;
|
|
132
|
-
/**
|
|
133
|
-
* The number of rows that are waiting to be indexed (for search)
|
|
134
|
-
*/
|
|
135
|
-
indexing: number;
|
|
136
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export interface GetTableRowRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetTableRowRequestQuery {
|
|
4
|
-
id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface GetTableRowRequestParams {
|
|
7
|
-
table: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetTableRowRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type GetTableRowInput = GetTableRowRequestBody & GetTableRowRequestHeaders & GetTableRowRequestQuery & GetTableRowRequestParams;
|
|
12
|
-
export type GetTableRowRequest = {
|
|
13
|
-
headers: GetTableRowRequestHeaders;
|
|
14
|
-
query: GetTableRowRequestQuery;
|
|
15
|
-
params: GetTableRowRequestParams;
|
|
16
|
-
body: GetTableRowRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: GetTableRowInput) => GetTableRowRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface GetTableRowResponse {
|
|
22
|
-
row: {
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier for the row.
|
|
25
|
-
*/
|
|
26
|
-
id: number;
|
|
27
|
-
/**
|
|
28
|
-
* Timestamp of row creation.
|
|
29
|
-
*/
|
|
30
|
-
createdAt?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Timestamp of the last row update.
|
|
33
|
-
*/
|
|
34
|
-
updatedAt?: string;
|
|
35
|
-
computed: {
|
|
36
|
-
[k: string]: {
|
|
37
|
-
status: string;
|
|
38
|
-
error?: string;
|
|
39
|
-
updatedBy?: string;
|
|
40
|
-
updatedAt?: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* [Read-only] List of stale values that are waiting to be recomputed.
|
|
45
|
-
*/
|
|
46
|
-
stale?: string[];
|
|
47
|
-
/**
|
|
48
|
-
* Optional numeric value indicating similarity, when using findTableRows.
|
|
49
|
-
*/
|
|
50
|
-
similarity?: number;
|
|
51
|
-
[k: string]: any;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export interface GetTaskRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetTaskRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetTaskRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetTaskRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetTaskInput = GetTaskRequestBody & GetTaskRequestHeaders & GetTaskRequestQuery & GetTaskRequestParams;
|
|
11
|
-
export type GetTaskRequest = {
|
|
12
|
-
headers: GetTaskRequestHeaders;
|
|
13
|
-
query: GetTaskRequestQuery;
|
|
14
|
-
params: GetTaskRequestParams;
|
|
15
|
-
body: GetTaskRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetTaskInput) => GetTaskRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetTaskResponse {
|
|
21
|
-
/**
|
|
22
|
-
* Task definition
|
|
23
|
-
*/
|
|
24
|
-
task: {
|
|
25
|
-
/**
|
|
26
|
-
* Id of the [Task](#schema_task)
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* Title describing the task
|
|
31
|
-
*/
|
|
32
|
-
title: string;
|
|
33
|
-
/**
|
|
34
|
-
* All the notes related to the execution of the current task
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
|
-
/**
|
|
38
|
-
* Type of the task
|
|
39
|
-
*/
|
|
40
|
-
type: string;
|
|
41
|
-
/**
|
|
42
|
-
* Content related to the task
|
|
43
|
-
*/
|
|
44
|
-
data: {
|
|
45
|
-
[k: string]: any;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Status of the task
|
|
49
|
-
*/
|
|
50
|
-
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
51
|
-
/**
|
|
52
|
-
* Parent task id is the parent task that created this task
|
|
53
|
-
*/
|
|
54
|
-
parentTaskId?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Conversation id related to this task
|
|
57
|
-
*/
|
|
58
|
-
conversationId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Specific user related to this task
|
|
61
|
-
*/
|
|
62
|
-
userId?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The timeout date where the task should be failed in the ISO 8601 format
|
|
65
|
-
*/
|
|
66
|
-
timeoutAt: string;
|
|
67
|
-
/**
|
|
68
|
-
* Creation date of the task in ISO 8601 format
|
|
69
|
-
*/
|
|
70
|
-
createdAt: string;
|
|
71
|
-
/**
|
|
72
|
-
* Updating date of the task in ISO 8601 format
|
|
73
|
-
*/
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
/**
|
|
76
|
-
* If the task fails this is the reason behind it
|
|
77
|
-
*/
|
|
78
|
-
failureReason?: string;
|
|
79
|
-
/**
|
|
80
|
-
* 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.
|
|
81
|
-
*/
|
|
82
|
-
tags: {
|
|
83
|
-
[k: string]: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface GetUpcomingInvoiceRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetUpcomingInvoiceRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetUpcomingInvoiceRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetUpcomingInvoiceRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetUpcomingInvoiceInput = GetUpcomingInvoiceRequestBody & GetUpcomingInvoiceRequestHeaders & GetUpcomingInvoiceRequestQuery & GetUpcomingInvoiceRequestParams;
|
|
11
|
-
export type GetUpcomingInvoiceRequest = {
|
|
12
|
-
headers: GetUpcomingInvoiceRequestHeaders;
|
|
13
|
-
query: GetUpcomingInvoiceRequestQuery;
|
|
14
|
-
params: GetUpcomingInvoiceRequestParams;
|
|
15
|
-
body: GetUpcomingInvoiceRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetUpcomingInvoiceInput) => GetUpcomingInvoiceRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetUpcomingInvoiceResponse {
|
|
21
|
-
/**
|
|
22
|
-
* ID of the invoice.
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* Total amount to pay of the invoice.
|
|
27
|
-
*/
|
|
28
|
-
total: number;
|
|
29
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface GetUsageRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetUsageRequestQuery {
|
|
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 GetUsageRequestParams {
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetUsageRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type GetUsageInput = GetUsageRequestBody & GetUsageRequestHeaders & GetUsageRequestQuery & GetUsageRequestParams;
|
|
13
|
-
export type GetUsageRequest = {
|
|
14
|
-
headers: GetUsageRequestHeaders;
|
|
15
|
-
query: GetUsageRequestQuery;
|
|
16
|
-
params: GetUsageRequestParams;
|
|
17
|
-
body: GetUsageRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: GetUsageInput) => GetUsageRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface GetUsageResponse {
|
|
23
|
-
usage: {
|
|
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,52 +0,0 @@
|
|
|
1
|
-
export interface GetUserRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetUserRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetUserRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetUserRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetUserInput = GetUserRequestBody & GetUserRequestHeaders & GetUserRequestQuery & GetUserRequestParams;
|
|
11
|
-
export type GetUserRequest = {
|
|
12
|
-
headers: GetUserRequestHeaders;
|
|
13
|
-
query: GetUserRequestQuery;
|
|
14
|
-
params: GetUserRequestParams;
|
|
15
|
-
body: GetUserRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetUserInput) => GetUserRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetUserResponse {
|
|
21
|
-
/**
|
|
22
|
-
* The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
|
|
23
|
-
*/
|
|
24
|
-
user: {
|
|
25
|
-
/**
|
|
26
|
-
* Id of the [User](#schema_user)
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string;
|
|
33
|
-
/**
|
|
34
|
-
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
35
|
-
*/
|
|
36
|
-
updatedAt: string;
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
*/
|
|
40
|
-
tags: {
|
|
41
|
-
[k: string]: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Name of the [User](#schema_user)
|
|
45
|
-
*/
|
|
46
|
-
name?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Picture URL of the [User](#schema_user)
|
|
49
|
-
*/
|
|
50
|
-
pictureUrl?: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface GetWorkspaceRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetWorkspaceRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetWorkspaceRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetWorkspaceRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetWorkspaceInput = GetWorkspaceRequestBody & GetWorkspaceRequestHeaders & GetWorkspaceRequestQuery & GetWorkspaceRequestParams;
|
|
11
|
-
export type GetWorkspaceRequest = {
|
|
12
|
-
headers: GetWorkspaceRequestHeaders;
|
|
13
|
-
query: GetWorkspaceRequestQuery;
|
|
14
|
-
params: GetWorkspaceRequestParams;
|
|
15
|
-
body: GetWorkspaceRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetWorkspaceInput) => GetWorkspaceRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetWorkspaceResponse {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
ownerId: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
botCount: number;
|
|
27
|
-
billingVersion: "v1" | "v2";
|
|
28
|
-
plan: "community" | "team" | "enterprise";
|
|
29
|
-
blocked: boolean;
|
|
30
|
-
spendingLimit: number;
|
|
31
|
-
about?: string;
|
|
32
|
-
profilePicture?: string;
|
|
33
|
-
contactEmail?: string;
|
|
34
|
-
website?: string;
|
|
35
|
-
socialAccounts?: string[];
|
|
36
|
-
isPublic?: boolean;
|
|
37
|
-
handle?: string;
|
|
38
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface GetWorkspaceMemberRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetWorkspaceMemberRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetWorkspaceMemberRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface GetWorkspaceMemberRequestBody {
|
|
8
|
-
}
|
|
9
|
-
export type GetWorkspaceMemberInput = GetWorkspaceMemberRequestBody & GetWorkspaceMemberRequestHeaders & GetWorkspaceMemberRequestQuery & GetWorkspaceMemberRequestParams;
|
|
10
|
-
export type GetWorkspaceMemberRequest = {
|
|
11
|
-
headers: GetWorkspaceMemberRequestHeaders;
|
|
12
|
-
query: GetWorkspaceMemberRequestQuery;
|
|
13
|
-
params: GetWorkspaceMemberRequestParams;
|
|
14
|
-
body: GetWorkspaceMemberRequestBody;
|
|
15
|
-
};
|
|
16
|
-
export declare const parseReq: (_: GetWorkspaceMemberInput) => GetWorkspaceMemberRequest & {
|
|
17
|
-
path: string;
|
|
18
|
-
};
|
|
19
|
-
export interface GetWorkspaceMemberResponse {
|
|
20
|
-
id: string;
|
|
21
|
-
userId?: string;
|
|
22
|
-
email: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
25
|
-
profilePicture?: string;
|
|
26
|
-
displayName?: string;
|
|
27
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface GetWorkspaceQuotaRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetWorkspaceQuotaRequestQuery {
|
|
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 GetWorkspaceQuotaRequestParams {
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetWorkspaceQuotaRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type GetWorkspaceQuotaInput = GetWorkspaceQuotaRequestBody & GetWorkspaceQuotaRequestHeaders & GetWorkspaceQuotaRequestQuery & GetWorkspaceQuotaRequestParams;
|
|
13
|
-
export type GetWorkspaceQuotaRequest = {
|
|
14
|
-
headers: GetWorkspaceQuotaRequestHeaders;
|
|
15
|
-
query: GetWorkspaceQuotaRequestQuery;
|
|
16
|
-
params: GetWorkspaceQuotaRequestParams;
|
|
17
|
-
body: GetWorkspaceQuotaRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: GetWorkspaceQuotaInput) => GetWorkspaceQuotaRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface GetWorkspaceQuotaResponse {
|
|
23
|
-
quota: {
|
|
24
|
-
/**
|
|
25
|
-
* Period of the quota that it is applied to
|
|
26
|
-
*/
|
|
27
|
-
period: string;
|
|
28
|
-
/**
|
|
29
|
-
* Value of the quota that is used
|
|
30
|
-
*/
|
|
31
|
-
value: number;
|
|
32
|
-
/**
|
|
33
|
-
* Usage type that can be used
|
|
34
|
-
*/
|
|
35
|
-
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";
|
|
36
|
-
};
|
|
37
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface IntrospectRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface IntrospectRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface IntrospectRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface IntrospectRequestBody {
|
|
8
|
-
botId: string;
|
|
9
|
-
}
|
|
10
|
-
export type IntrospectInput = IntrospectRequestBody & IntrospectRequestHeaders & IntrospectRequestQuery & IntrospectRequestParams;
|
|
11
|
-
export type IntrospectRequest = {
|
|
12
|
-
headers: IntrospectRequestHeaders;
|
|
13
|
-
query: IntrospectRequestQuery;
|
|
14
|
-
params: IntrospectRequestParams;
|
|
15
|
-
body: IntrospectRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: IntrospectInput) => IntrospectRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface IntrospectResponse {
|
|
21
|
-
workspaceId: string;
|
|
22
|
-
botId: string;
|
|
23
|
-
userId: string;
|
|
24
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ListActivitiesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListActivitiesRequestQuery {
|
|
4
|
-
nextToken?: string;
|
|
5
|
-
taskId: string;
|
|
6
|
-
botId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ListActivitiesRequestParams {
|
|
9
|
-
}
|
|
10
|
-
export interface ListActivitiesRequestBody {
|
|
11
|
-
}
|
|
12
|
-
export type ListActivitiesInput = ListActivitiesRequestBody & ListActivitiesRequestHeaders & ListActivitiesRequestQuery & ListActivitiesRequestParams;
|
|
13
|
-
export type ListActivitiesRequest = {
|
|
14
|
-
headers: ListActivitiesRequestHeaders;
|
|
15
|
-
query: ListActivitiesRequestQuery;
|
|
16
|
-
params: ListActivitiesRequestParams;
|
|
17
|
-
body: ListActivitiesRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: ListActivitiesInput) => ListActivitiesRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface ListActivitiesResponse {
|
|
23
|
-
activities: {
|
|
24
|
-
id: string;
|
|
25
|
-
description: string;
|
|
26
|
-
taskId: string;
|
|
27
|
-
category: "unknown" | "capture" | "bot_message" | "user_message" | "agent_message" | "event" | "action" | "task_status" | "subtask_status" | "exception";
|
|
28
|
-
data: {
|
|
29
|
-
[k: string]: any;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Creation date of the activity in ISO 8601 format
|
|
33
|
-
*/
|
|
34
|
-
createdAt: string;
|
|
35
|
-
}[];
|
|
36
|
-
meta: {
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
*/
|
|
40
|
-
nextToken?: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface ListBotIssueEventsRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface ListBotIssueEventsRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface ListBotIssueEventsRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
issueId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ListBotIssueEventsRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type ListBotIssueEventsInput = ListBotIssueEventsRequestBody & ListBotIssueEventsRequestHeaders & ListBotIssueEventsRequestQuery & ListBotIssueEventsRequestParams;
|
|
12
|
-
export type ListBotIssueEventsRequest = {
|
|
13
|
-
headers: ListBotIssueEventsRequestHeaders;
|
|
14
|
-
query: ListBotIssueEventsRequestQuery;
|
|
15
|
-
params: ListBotIssueEventsRequestParams;
|
|
16
|
-
body: ListBotIssueEventsRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: ListBotIssueEventsInput) => ListBotIssueEventsRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface ListBotIssueEventsResponse {
|
|
22
|
-
issueEvents: {
|
|
23
|
-
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
data: {
|
|
26
|
-
[k: string]: {
|
|
27
|
-
raw: string;
|
|
28
|
-
pretty?: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}[];
|
|
32
|
-
}
|