@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,70 +0,0 @@
|
|
|
1
|
-
export interface GetOrCreateConversationRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetOrCreateConversationRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetOrCreateConversationRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface GetOrCreateConversationRequestBody {
|
|
8
|
-
/**
|
|
9
|
-
* Channel name
|
|
10
|
-
*/
|
|
11
|
-
channel: string;
|
|
12
|
-
/**
|
|
13
|
-
* Tags for the [Conversation](#schema_conversation)
|
|
14
|
-
*/
|
|
15
|
-
tags: {
|
|
16
|
-
[k: string]: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
|
|
21
|
-
*/
|
|
22
|
-
integrationName?: string;
|
|
23
|
-
}
|
|
24
|
-
export type GetOrCreateConversationInput = GetOrCreateConversationRequestBody & GetOrCreateConversationRequestHeaders & GetOrCreateConversationRequestQuery & GetOrCreateConversationRequestParams;
|
|
25
|
-
export type GetOrCreateConversationRequest = {
|
|
26
|
-
headers: GetOrCreateConversationRequestHeaders;
|
|
27
|
-
query: GetOrCreateConversationRequestQuery;
|
|
28
|
-
params: GetOrCreateConversationRequestParams;
|
|
29
|
-
body: GetOrCreateConversationRequestBody;
|
|
30
|
-
};
|
|
31
|
-
export declare const parseReq: (input: GetOrCreateConversationInput) => GetOrCreateConversationRequest & {
|
|
32
|
-
path: string;
|
|
33
|
-
};
|
|
34
|
-
export interface GetOrCreateConversationResponse {
|
|
35
|
-
/**
|
|
36
|
-
* The conversation object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
|
|
37
|
-
*/
|
|
38
|
-
conversation: {
|
|
39
|
-
/**
|
|
40
|
-
* Id of the [Conversation](#schema_conversation)
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Id of the current [Task](#schema_task)
|
|
45
|
-
*/
|
|
46
|
-
currentTaskId?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
49
|
-
*/
|
|
50
|
-
createdAt: string;
|
|
51
|
-
/**
|
|
52
|
-
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
53
|
-
*/
|
|
54
|
-
updatedAt: string;
|
|
55
|
-
/**
|
|
56
|
-
* Name of the channel where the [Conversation](#schema_conversation) is happening
|
|
57
|
-
*/
|
|
58
|
-
channel: string;
|
|
59
|
-
/**
|
|
60
|
-
* Name of the integration that created the [Conversation](#schema_conversation)
|
|
61
|
-
*/
|
|
62
|
-
integration: string;
|
|
63
|
-
/**
|
|
64
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) 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.
|
|
65
|
-
*/
|
|
66
|
-
tags: {
|
|
67
|
-
[k: string]: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export interface GetOrCreateMessageRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetOrCreateMessageRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetOrCreateMessageRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface GetOrCreateMessageRequestBody {
|
|
8
|
-
/**
|
|
9
|
-
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
10
|
-
*/
|
|
11
|
-
payload: {
|
|
12
|
-
[k: string]: any;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* ID of the [User](#schema_user)
|
|
16
|
-
*/
|
|
17
|
-
userId: string;
|
|
18
|
-
/**
|
|
19
|
-
* ID of the [Conversation](#schema_conversation)
|
|
20
|
-
*/
|
|
21
|
-
conversationId: string;
|
|
22
|
-
/**
|
|
23
|
-
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
24
|
-
*/
|
|
25
|
-
type: string;
|
|
26
|
-
/**
|
|
27
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) 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.
|
|
28
|
-
*/
|
|
29
|
-
tags: {
|
|
30
|
-
[k: string]: string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.
|
|
34
|
-
*/
|
|
35
|
-
schedule?: {
|
|
36
|
-
/**
|
|
37
|
-
* When the [Message](#schema_message) will be sent, in the ISO 8601 format
|
|
38
|
-
*/
|
|
39
|
-
dateTime?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Delay in milliseconds before sending the [Message](#schema_message)
|
|
42
|
-
*/
|
|
43
|
-
delay?: number;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export type GetOrCreateMessageInput = GetOrCreateMessageRequestBody & GetOrCreateMessageRequestHeaders & GetOrCreateMessageRequestQuery & GetOrCreateMessageRequestParams;
|
|
47
|
-
export type GetOrCreateMessageRequest = {
|
|
48
|
-
headers: GetOrCreateMessageRequestHeaders;
|
|
49
|
-
query: GetOrCreateMessageRequestQuery;
|
|
50
|
-
params: GetOrCreateMessageRequestParams;
|
|
51
|
-
body: GetOrCreateMessageRequestBody;
|
|
52
|
-
};
|
|
53
|
-
export declare const parseReq: (input: GetOrCreateMessageInput) => GetOrCreateMessageRequest & {
|
|
54
|
-
path: string;
|
|
55
|
-
};
|
|
56
|
-
export interface GetOrCreateMessageResponse {
|
|
57
|
-
/**
|
|
58
|
-
* The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
|
|
59
|
-
*/
|
|
60
|
-
message: {
|
|
61
|
-
/**
|
|
62
|
-
* Id of the [Message](#schema_message)
|
|
63
|
-
*/
|
|
64
|
-
id: string;
|
|
65
|
-
/**
|
|
66
|
-
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
67
|
-
*/
|
|
68
|
-
createdAt: string;
|
|
69
|
-
/**
|
|
70
|
-
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
71
|
-
*/
|
|
72
|
-
type: string;
|
|
73
|
-
/**
|
|
74
|
-
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
75
|
-
*/
|
|
76
|
-
payload: {
|
|
77
|
-
[k: string]: any;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Direction of the message (`incoming` or `outgoing`).
|
|
81
|
-
*/
|
|
82
|
-
direction: "incoming" | "outgoing";
|
|
83
|
-
/**
|
|
84
|
-
* ID of the [User](#schema_user)
|
|
85
|
-
*/
|
|
86
|
-
userId: string;
|
|
87
|
-
/**
|
|
88
|
-
* ID of the [Conversation](#schema_conversation)
|
|
89
|
-
*/
|
|
90
|
-
conversationId: string;
|
|
91
|
-
/**
|
|
92
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) 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.
|
|
93
|
-
*/
|
|
94
|
-
tags: {
|
|
95
|
-
[k: string]: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export interface GetOrCreateTableRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetOrCreateTableRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetOrCreateTableRequestParams {
|
|
6
|
-
table: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetOrCreateTableRequestBody {
|
|
9
|
-
/**
|
|
10
|
-
* 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.
|
|
11
|
-
*/
|
|
12
|
-
factor?: number;
|
|
13
|
-
/**
|
|
14
|
-
* 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.
|
|
15
|
-
*/
|
|
16
|
-
frozen?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed.
|
|
19
|
-
*/
|
|
20
|
-
schema: {
|
|
21
|
-
[k: string]: any;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
25
|
-
*/
|
|
26
|
-
tags?: {
|
|
27
|
-
[k: string]: string;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Indicates if the table is enabled for computation.
|
|
31
|
-
*/
|
|
32
|
-
isComputeEnabled?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export type GetOrCreateTableInput = GetOrCreateTableRequestBody & GetOrCreateTableRequestHeaders & GetOrCreateTableRequestQuery & GetOrCreateTableRequestParams;
|
|
35
|
-
export type GetOrCreateTableRequest = {
|
|
36
|
-
headers: GetOrCreateTableRequestHeaders;
|
|
37
|
-
query: GetOrCreateTableRequestQuery;
|
|
38
|
-
params: GetOrCreateTableRequestParams;
|
|
39
|
-
body: GetOrCreateTableRequestBody;
|
|
40
|
-
};
|
|
41
|
-
export declare const parseReq: (input: GetOrCreateTableInput) => GetOrCreateTableRequest & {
|
|
42
|
-
path: string;
|
|
43
|
-
};
|
|
44
|
-
export interface GetOrCreateTableResponse {
|
|
45
|
-
table: {
|
|
46
|
-
/**
|
|
47
|
-
* Unique identifier for the table
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
/**
|
|
51
|
-
* Required. This name is used to identify your table.
|
|
52
|
-
*/
|
|
53
|
-
name: string;
|
|
54
|
-
/**
|
|
55
|
-
* 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.
|
|
56
|
-
*/
|
|
57
|
-
factor?: number;
|
|
58
|
-
/**
|
|
59
|
-
* 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.
|
|
60
|
-
*/
|
|
61
|
-
frozen?: boolean;
|
|
62
|
-
schema: {
|
|
63
|
-
$schema: string;
|
|
64
|
-
/**
|
|
65
|
-
* List of keys/columns in the table.
|
|
66
|
-
*/
|
|
67
|
-
properties: {
|
|
68
|
-
[k: string]: {
|
|
69
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
70
|
-
format?: "date-time";
|
|
71
|
-
description?: string;
|
|
72
|
-
nullable?: boolean;
|
|
73
|
-
"x-zui": {
|
|
74
|
-
index: number;
|
|
75
|
-
/**
|
|
76
|
-
* [deprecated] ID of the column.
|
|
77
|
-
*/
|
|
78
|
-
id?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Indicates if the column is vectorized and searchable.
|
|
81
|
-
*/
|
|
82
|
-
searchable?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Indicates if the field is hidden in the UI
|
|
85
|
-
*/
|
|
86
|
-
hidden?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Order of the column in the UI
|
|
89
|
-
*/
|
|
90
|
-
order?: number;
|
|
91
|
-
/**
|
|
92
|
-
* Width of the column in the UI
|
|
93
|
-
*/
|
|
94
|
-
width?: number;
|
|
95
|
-
computed?: {
|
|
96
|
-
action: "ai" | "code";
|
|
97
|
-
dependencies?: string[];
|
|
98
|
-
/**
|
|
99
|
-
* Prompt when action is "ai"
|
|
100
|
-
*/
|
|
101
|
-
prompt?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Model to use when action is "ai"
|
|
104
|
-
*/
|
|
105
|
-
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";
|
|
106
|
-
/**
|
|
107
|
-
* Code to execute when action is "code"
|
|
108
|
-
*/
|
|
109
|
-
code?: string;
|
|
110
|
-
enabled?: boolean;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
114
|
-
*/
|
|
115
|
-
typings?: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
121
|
-
*/
|
|
122
|
-
additionalProperties: true;
|
|
123
|
-
/**
|
|
124
|
-
* Array of required properties.
|
|
125
|
-
*/
|
|
126
|
-
required?: string[];
|
|
127
|
-
type: "object";
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
131
|
-
*/
|
|
132
|
-
tags?: {
|
|
133
|
-
[k: string]: string;
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Indicates if the table is enabled for computation.
|
|
137
|
-
*/
|
|
138
|
-
isComputeEnabled?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Timestamp of table creation.
|
|
141
|
-
*/
|
|
142
|
-
createdAt?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Timestamp of the last table update.
|
|
145
|
-
*/
|
|
146
|
-
updatedAt?: string;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Flag indicating if the table was newly created.
|
|
150
|
-
*/
|
|
151
|
-
created: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* The total number of rows present in the table.
|
|
154
|
-
*/
|
|
155
|
-
rows: number;
|
|
156
|
-
/**
|
|
157
|
-
* The number of stale rows that are waiting to be processed
|
|
158
|
-
*/
|
|
159
|
-
stale: number;
|
|
160
|
-
/**
|
|
161
|
-
* The number of rows that are waiting to be indexed (for search)
|
|
162
|
-
*/
|
|
163
|
-
indexing: number;
|
|
164
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export interface GetOrCreateUserRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetOrCreateUserRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetOrCreateUserRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface GetOrCreateUserRequestBody {
|
|
8
|
-
/**
|
|
9
|
-
* Tags for the [User](#schema_user)
|
|
10
|
-
*/
|
|
11
|
-
tags: {
|
|
12
|
-
[k: string]: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
* [DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.
|
|
17
|
-
*/
|
|
18
|
-
integrationName?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Name of the user
|
|
21
|
-
*/
|
|
22
|
-
name?: string;
|
|
23
|
-
/**
|
|
24
|
-
* URI of the user picture
|
|
25
|
-
*/
|
|
26
|
-
pictureUrl?: string;
|
|
27
|
-
}
|
|
28
|
-
export type GetOrCreateUserInput = GetOrCreateUserRequestBody & GetOrCreateUserRequestHeaders & GetOrCreateUserRequestQuery & GetOrCreateUserRequestParams;
|
|
29
|
-
export type GetOrCreateUserRequest = {
|
|
30
|
-
headers: GetOrCreateUserRequestHeaders;
|
|
31
|
-
query: GetOrCreateUserRequestQuery;
|
|
32
|
-
params: GetOrCreateUserRequestParams;
|
|
33
|
-
body: GetOrCreateUserRequestBody;
|
|
34
|
-
};
|
|
35
|
-
export declare const parseReq: (input: GetOrCreateUserInput) => GetOrCreateUserRequest & {
|
|
36
|
-
path: string;
|
|
37
|
-
};
|
|
38
|
-
export interface GetOrCreateUserResponse {
|
|
39
|
-
/**
|
|
40
|
-
* 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.
|
|
41
|
-
*/
|
|
42
|
-
user: {
|
|
43
|
-
/**
|
|
44
|
-
* Id of the [User](#schema_user)
|
|
45
|
-
*/
|
|
46
|
-
id: string;
|
|
47
|
-
/**
|
|
48
|
-
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
49
|
-
*/
|
|
50
|
-
createdAt: string;
|
|
51
|
-
/**
|
|
52
|
-
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
53
|
-
*/
|
|
54
|
-
updatedAt: string;
|
|
55
|
-
/**
|
|
56
|
-
* 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.
|
|
57
|
-
*/
|
|
58
|
-
tags: {
|
|
59
|
-
[k: string]: string;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Name of the [User](#schema_user)
|
|
63
|
-
*/
|
|
64
|
-
name?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Picture URL of the [User](#schema_user)
|
|
67
|
-
*/
|
|
68
|
-
pictureUrl?: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export interface GetOrSetStateRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetOrSetStateRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetOrSetStateRequestParams {
|
|
6
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetOrSetStateRequestBody {
|
|
11
|
-
/**
|
|
12
|
-
* Payload is the content of the state defined by your bot.
|
|
13
|
-
*/
|
|
14
|
-
payload: {
|
|
15
|
-
[k: string]: any;
|
|
16
|
-
};
|
|
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 GetOrSetStateInput = GetOrSetStateRequestBody & GetOrSetStateRequestHeaders & GetOrSetStateRequestQuery & GetOrSetStateRequestParams;
|
|
23
|
-
export type GetOrSetStateRequest = {
|
|
24
|
-
headers: GetOrSetStateRequestHeaders;
|
|
25
|
-
query: GetOrSetStateRequestQuery;
|
|
26
|
-
params: GetOrSetStateRequestParams;
|
|
27
|
-
body: GetOrSetStateRequestBody;
|
|
28
|
-
};
|
|
29
|
-
export declare const parseReq: (input: GetOrSetStateInput) => GetOrSetStateRequest & {
|
|
30
|
-
path: string;
|
|
31
|
-
};
|
|
32
|
-
export interface GetOrSetStateResponse {
|
|
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,53 +0,0 @@
|
|
|
1
|
-
export interface GetParticipantRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetParticipantRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetParticipantRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetParticipantRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type GetParticipantInput = GetParticipantRequestBody & GetParticipantRequestHeaders & GetParticipantRequestQuery & GetParticipantRequestParams;
|
|
12
|
-
export type GetParticipantRequest = {
|
|
13
|
-
headers: GetParticipantRequestHeaders;
|
|
14
|
-
query: GetParticipantRequestQuery;
|
|
15
|
-
params: GetParticipantRequestParams;
|
|
16
|
-
body: GetParticipantRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: GetParticipantInput) => GetParticipantRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface GetParticipantResponse {
|
|
22
|
-
/**
|
|
23
|
-
* 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.
|
|
24
|
-
*/
|
|
25
|
-
participant: {
|
|
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
|
-
}
|