@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,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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface RemoveParticipantRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface RemoveParticipantRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface RemoveParticipantRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface RemoveParticipantRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type RemoveParticipantInput = RemoveParticipantRequestBody & RemoveParticipantRequestHeaders & RemoveParticipantRequestQuery & RemoveParticipantRequestParams;
|
|
12
|
-
export type RemoveParticipantRequest = {
|
|
13
|
-
headers: RemoveParticipantRequestHeaders;
|
|
14
|
-
query: RemoveParticipantRequestQuery;
|
|
15
|
-
params: RemoveParticipantRequestParams;
|
|
16
|
-
body: RemoveParticipantRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: RemoveParticipantInput) => RemoveParticipantRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface RemoveParticipantResponse {
|
|
22
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export interface RenameTableColumnRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface RenameTableColumnRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface RenameTableColumnRequestParams {
|
|
6
|
-
table: string;
|
|
7
|
-
}
|
|
8
|
-
export interface RenameTableColumnRequestBody {
|
|
9
|
-
/**
|
|
10
|
-
* The existing name of the column.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/**
|
|
14
|
-
* The new name to assign to the column.
|
|
15
|
-
*/
|
|
16
|
-
newName: string;
|
|
17
|
-
}
|
|
18
|
-
export type RenameTableColumnInput = RenameTableColumnRequestBody & RenameTableColumnRequestHeaders & RenameTableColumnRequestQuery & RenameTableColumnRequestParams;
|
|
19
|
-
export type RenameTableColumnRequest = {
|
|
20
|
-
headers: RenameTableColumnRequestHeaders;
|
|
21
|
-
query: RenameTableColumnRequestQuery;
|
|
22
|
-
params: RenameTableColumnRequestParams;
|
|
23
|
-
body: RenameTableColumnRequestBody;
|
|
24
|
-
};
|
|
25
|
-
export declare const parseReq: (input: RenameTableColumnInput) => RenameTableColumnRequest & {
|
|
26
|
-
path: string;
|
|
27
|
-
};
|
|
28
|
-
export interface RenameTableColumnResponse {
|
|
29
|
-
table: {
|
|
30
|
-
/**
|
|
31
|
-
* Unique identifier for the table
|
|
32
|
-
*/
|
|
33
|
-
id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Required. This name is used to identify your table.
|
|
36
|
-
*/
|
|
37
|
-
name: string;
|
|
38
|
-
/**
|
|
39
|
-
* 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.
|
|
40
|
-
*/
|
|
41
|
-
factor?: number;
|
|
42
|
-
/**
|
|
43
|
-
* 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.
|
|
44
|
-
*/
|
|
45
|
-
frozen?: boolean;
|
|
46
|
-
schema: {
|
|
47
|
-
$schema: string;
|
|
48
|
-
/**
|
|
49
|
-
* List of keys/columns in the table.
|
|
50
|
-
*/
|
|
51
|
-
properties: {
|
|
52
|
-
[k: string]: {
|
|
53
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
54
|
-
format?: "date-time";
|
|
55
|
-
description?: string;
|
|
56
|
-
nullable?: boolean;
|
|
57
|
-
"x-zui": {
|
|
58
|
-
index: number;
|
|
59
|
-
/**
|
|
60
|
-
* [deprecated] ID of the column.
|
|
61
|
-
*/
|
|
62
|
-
id?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Indicates if the column is vectorized and searchable.
|
|
65
|
-
*/
|
|
66
|
-
searchable?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Indicates if the field is hidden in the UI
|
|
69
|
-
*/
|
|
70
|
-
hidden?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Order of the column in the UI
|
|
73
|
-
*/
|
|
74
|
-
order?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Width of the column in the UI
|
|
77
|
-
*/
|
|
78
|
-
width?: number;
|
|
79
|
-
computed?: {
|
|
80
|
-
action: "ai" | "code";
|
|
81
|
-
dependencies?: string[];
|
|
82
|
-
/**
|
|
83
|
-
* Prompt when action is "ai"
|
|
84
|
-
*/
|
|
85
|
-
prompt?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Model to use when action is "ai"
|
|
88
|
-
*/
|
|
89
|
-
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";
|
|
90
|
-
/**
|
|
91
|
-
* Code to execute when action is "code"
|
|
92
|
-
*/
|
|
93
|
-
code?: string;
|
|
94
|
-
enabled?: boolean;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
98
|
-
*/
|
|
99
|
-
typings?: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
105
|
-
*/
|
|
106
|
-
additionalProperties: true;
|
|
107
|
-
/**
|
|
108
|
-
* Array of required properties.
|
|
109
|
-
*/
|
|
110
|
-
required?: string[];
|
|
111
|
-
type: "object";
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
115
|
-
*/
|
|
116
|
-
tags?: {
|
|
117
|
-
[k: string]: string;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Indicates if the table is enabled for computation.
|
|
121
|
-
*/
|
|
122
|
-
isComputeEnabled?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Timestamp of table creation.
|
|
125
|
-
*/
|
|
126
|
-
createdAt?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Timestamp of the last table update.
|
|
129
|
-
*/
|
|
130
|
-
updatedAt?: string;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface RunVrlRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface RunVrlRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface RunVrlRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface RunVrlRequestBody {
|
|
8
|
-
data: {
|
|
9
|
-
[k: string]: any;
|
|
10
|
-
};
|
|
11
|
-
script: string;
|
|
12
|
-
}
|
|
13
|
-
export type RunVrlInput = RunVrlRequestBody & RunVrlRequestHeaders & RunVrlRequestQuery & RunVrlRequestParams;
|
|
14
|
-
export type RunVrlRequest = {
|
|
15
|
-
headers: RunVrlRequestHeaders;
|
|
16
|
-
query: RunVrlRequestQuery;
|
|
17
|
-
params: RunVrlRequestParams;
|
|
18
|
-
body: RunVrlRequestBody;
|
|
19
|
-
};
|
|
20
|
-
export declare const parseReq: (input: RunVrlInput) => RunVrlRequest & {
|
|
21
|
-
path: string;
|
|
22
|
-
};
|
|
23
|
-
export interface RunVrlResponse {
|
|
24
|
-
data: {
|
|
25
|
-
[k: string]: any;
|
|
26
|
-
};
|
|
27
|
-
result?: any;
|
|
28
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export interface SearchFilesRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface SearchFilesRequestQuery {
|
|
4
|
-
tags?: {
|
|
5
|
-
[k: string]: string;
|
|
6
|
-
};
|
|
7
|
-
query: string;
|
|
8
|
-
contextDepth?: number;
|
|
9
|
-
limit?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface SearchFilesRequestParams {
|
|
12
|
-
}
|
|
13
|
-
export interface SearchFilesRequestBody {
|
|
14
|
-
}
|
|
15
|
-
export type SearchFilesInput = SearchFilesRequestBody & SearchFilesRequestHeaders & SearchFilesRequestQuery & SearchFilesRequestParams;
|
|
16
|
-
export type SearchFilesRequest = {
|
|
17
|
-
headers: SearchFilesRequestHeaders;
|
|
18
|
-
query: SearchFilesRequestQuery;
|
|
19
|
-
params: SearchFilesRequestParams;
|
|
20
|
-
body: SearchFilesRequestBody;
|
|
21
|
-
};
|
|
22
|
-
export declare const parseReq: (input: SearchFilesInput) => SearchFilesRequest & {
|
|
23
|
-
path: string;
|
|
24
|
-
};
|
|
25
|
-
export interface SearchFilesResponse {
|
|
26
|
-
passages: {
|
|
27
|
-
/**
|
|
28
|
-
* The content of the matching passage in the file including surrounding context, if any.
|
|
29
|
-
*/
|
|
30
|
-
content: string;
|
|
31
|
-
/**
|
|
32
|
-
* The score indicating the similarity of the passage to the query. A higher score indicates higher similarity.
|
|
33
|
-
*/
|
|
34
|
-
score: number;
|
|
35
|
-
file: {
|
|
36
|
-
/**
|
|
37
|
-
* File ID
|
|
38
|
-
*/
|
|
39
|
-
id: string;
|
|
40
|
-
/**
|
|
41
|
-
* The tags of the file as an object of key-value pairs.
|
|
42
|
-
*/
|
|
43
|
-
tags: {
|
|
44
|
-
[k: string]: string;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* File creation timestamp in ISO 8601 format
|
|
48
|
-
*/
|
|
49
|
-
createdAt: string;
|
|
50
|
-
/**
|
|
51
|
-
* File last update timestamp in ISO 8601 format
|
|
52
|
-
*/
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
};
|
|
55
|
-
}[];
|
|
56
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface SetAccountPreferenceRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface SetAccountPreferenceRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface SetAccountPreferenceRequestParams {
|
|
6
|
-
key: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SetAccountPreferenceRequestBody {
|
|
9
|
-
value?: any;
|
|
10
|
-
}
|
|
11
|
-
export type SetAccountPreferenceInput = SetAccountPreferenceRequestBody & SetAccountPreferenceRequestHeaders & SetAccountPreferenceRequestQuery & SetAccountPreferenceRequestParams;
|
|
12
|
-
export type SetAccountPreferenceRequest = {
|
|
13
|
-
headers: SetAccountPreferenceRequestHeaders;
|
|
14
|
-
query: SetAccountPreferenceRequestQuery;
|
|
15
|
-
params: SetAccountPreferenceRequestParams;
|
|
16
|
-
body: SetAccountPreferenceRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: SetAccountPreferenceInput) => SetAccountPreferenceRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface SetAccountPreferenceResponse {
|
|
22
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export interface SetStateRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface SetStateRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface SetStateRequestParams {
|
|
6
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SetStateRequestBody {
|
|
11
|
-
/**
|
|
12
|
-
* Payload is the content of the state defined by your bot.
|
|
13
|
-
*/
|
|
14
|
-
payload: {
|
|
15
|
-
[k: string]: any;
|
|
16
|
-
} | null;
|
|
17
|
-
/**
|
|
18
|
-
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
19
|
-
*/
|
|
20
|
-
expiry?: number;
|
|
21
|
-
}
|
|
22
|
-
export type SetStateInput = SetStateRequestBody & SetStateRequestHeaders & SetStateRequestQuery & SetStateRequestParams;
|
|
23
|
-
export type SetStateRequest = {
|
|
24
|
-
headers: SetStateRequestHeaders;
|
|
25
|
-
query: SetStateRequestQuery;
|
|
26
|
-
params: SetStateRequestParams;
|
|
27
|
-
body: SetStateRequestBody;
|
|
28
|
-
};
|
|
29
|
-
export declare const parseReq: (input: SetStateInput) => SetStateRequest & {
|
|
30
|
-
path: string;
|
|
31
|
-
};
|
|
32
|
-
export interface SetStateResponse {
|
|
33
|
-
/**
|
|
34
|
-
* The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
|
|
35
|
-
*/
|
|
36
|
-
state: {
|
|
37
|
-
/**
|
|
38
|
-
* Id of the [State](#schema_state)
|
|
39
|
-
*/
|
|
40
|
-
id: string;
|
|
41
|
-
/**
|
|
42
|
-
* Creation date of the [State](#schema_state) in ISO 8601 format
|
|
43
|
-
*/
|
|
44
|
-
createdAt: string;
|
|
45
|
-
/**
|
|
46
|
-
* Updating date of the [State](#schema_state) in ISO 8601 format
|
|
47
|
-
*/
|
|
48
|
-
updatedAt: string;
|
|
49
|
-
/**
|
|
50
|
-
* Id of the [Bot](#schema_bot)
|
|
51
|
-
*/
|
|
52
|
-
botId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Id of the [Conversation](#schema_conversation)
|
|
55
|
-
*/
|
|
56
|
-
conversationId?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Id of the [User](#schema_user)
|
|
59
|
-
*/
|
|
60
|
-
userId?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Name of the [State](#schema_state) which is declared inside the bot definition
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to
|
|
67
|
-
*/
|
|
68
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
69
|
-
/**
|
|
70
|
-
* Payload is the content of the state defined by your bot.
|
|
71
|
-
*/
|
|
72
|
-
payload: {
|
|
73
|
-
[k: string]: any;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface SetWorkspacePaymentMethodRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface SetWorkspacePaymentMethodRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface SetWorkspacePaymentMethodRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SetWorkspacePaymentMethodRequestBody {
|
|
9
|
-
/**
|
|
10
|
-
* ID of the Stripe PaymentMethod to attach to the workspace.
|
|
11
|
-
*/
|
|
12
|
-
stripePaymentMethodId: string;
|
|
13
|
-
}
|
|
14
|
-
export type SetWorkspacePaymentMethodInput = SetWorkspacePaymentMethodRequestBody & SetWorkspacePaymentMethodRequestHeaders & SetWorkspacePaymentMethodRequestQuery & SetWorkspacePaymentMethodRequestParams;
|
|
15
|
-
export type SetWorkspacePaymentMethodRequest = {
|
|
16
|
-
headers: SetWorkspacePaymentMethodRequestHeaders;
|
|
17
|
-
query: SetWorkspacePaymentMethodRequestQuery;
|
|
18
|
-
params: SetWorkspacePaymentMethodRequestParams;
|
|
19
|
-
body: SetWorkspacePaymentMethodRequestBody;
|
|
20
|
-
};
|
|
21
|
-
export declare const parseReq: (input: SetWorkspacePaymentMethodInput) => SetWorkspacePaymentMethodRequest & {
|
|
22
|
-
path: string;
|
|
23
|
-
};
|
|
24
|
-
export interface SetWorkspacePaymentMethodResponse {
|
|
25
|
-
stripePaymentMethodId: string;
|
|
26
|
-
paymentMethod: {
|
|
27
|
-
type: string;
|
|
28
|
-
lastDigits: string;
|
|
29
|
-
} | null;
|
|
30
|
-
status: "succeeded" | "processing" | "canceled" | "requires_confirmation" | "requires_action" | "requires_payment_method";
|
|
31
|
-
/**
|
|
32
|
-
* If the payment needs to be confirmed, this will contain a URL to redirect the user to so they can complete the verification process to confirm it.
|
|
33
|
-
*/
|
|
34
|
-
nextAction?: {
|
|
35
|
-
redirectToUrl: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface TrackAnalyticsRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface TrackAnalyticsRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface TrackAnalyticsRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface TrackAnalyticsRequestBody {
|
|
8
|
-
name: string;
|
|
9
|
-
count: number;
|
|
10
|
-
}
|
|
11
|
-
export type TrackAnalyticsInput = TrackAnalyticsRequestBody & TrackAnalyticsRequestHeaders & TrackAnalyticsRequestQuery & TrackAnalyticsRequestParams;
|
|
12
|
-
export type TrackAnalyticsRequest = {
|
|
13
|
-
headers: TrackAnalyticsRequestHeaders;
|
|
14
|
-
query: TrackAnalyticsRequestQuery;
|
|
15
|
-
params: TrackAnalyticsRequestParams;
|
|
16
|
-
body: TrackAnalyticsRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: TrackAnalyticsInput) => TrackAnalyticsRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface TrackAnalyticsResponse {
|
|
22
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface TransferBotRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface TransferBotRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface TransferBotRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TransferBotRequestBody {
|
|
9
|
-
/**
|
|
10
|
-
* The ID of the workspace you want to transfer the bot to.
|
|
11
|
-
*/
|
|
12
|
-
targetWorkspaceId: string;
|
|
13
|
-
}
|
|
14
|
-
export type TransferBotInput = TransferBotRequestBody & TransferBotRequestHeaders & TransferBotRequestQuery & TransferBotRequestParams;
|
|
15
|
-
export type TransferBotRequest = {
|
|
16
|
-
headers: TransferBotRequestHeaders;
|
|
17
|
-
query: TransferBotRequestQuery;
|
|
18
|
-
params: TransferBotRequestParams;
|
|
19
|
-
body: TransferBotRequestBody;
|
|
20
|
-
};
|
|
21
|
-
export declare const parseReq: (input: TransferBotInput) => TransferBotRequest & {
|
|
22
|
-
path: string;
|
|
23
|
-
};
|
|
24
|
-
export interface TransferBotResponse {
|
|
25
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface UpdateAccountRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface UpdateAccountRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface UpdateAccountRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface UpdateAccountRequestBody {
|
|
8
|
-
displayName?: string;
|
|
9
|
-
profilePicture?: string;
|
|
10
|
-
refresh?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export type UpdateAccountInput = UpdateAccountRequestBody & UpdateAccountRequestHeaders & UpdateAccountRequestQuery & UpdateAccountRequestParams;
|
|
13
|
-
export type UpdateAccountRequest = {
|
|
14
|
-
headers: UpdateAccountRequestHeaders;
|
|
15
|
-
query: UpdateAccountRequestQuery;
|
|
16
|
-
params: UpdateAccountRequestParams;
|
|
17
|
-
body: UpdateAccountRequestBody;
|
|
18
|
-
};
|
|
19
|
-
export declare const parseReq: (input: UpdateAccountInput) => UpdateAccountRequest & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export interface UpdateAccountResponse {
|
|
23
|
-
account: {
|
|
24
|
-
id: string;
|
|
25
|
-
email: string;
|
|
26
|
-
displayName?: string;
|
|
27
|
-
emailVerified: boolean;
|
|
28
|
-
profilePicture?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Creation date of the [Account](#schema_account) in ISO 8601 format
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string;
|
|
33
|
-
};
|
|
34
|
-
}
|