@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,56 +0,0 @@
|
|
|
1
|
-
export interface GetConversationRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetConversationRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetConversationRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetConversationRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetConversationInput = GetConversationRequestBody & GetConversationRequestHeaders & GetConversationRequestQuery & GetConversationRequestParams;
|
|
11
|
-
export type GetConversationRequest = {
|
|
12
|
-
headers: GetConversationRequestHeaders;
|
|
13
|
-
query: GetConversationRequestQuery;
|
|
14
|
-
params: GetConversationRequestParams;
|
|
15
|
-
body: GetConversationRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetConversationInput) => GetConversationRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetConversationResponse {
|
|
21
|
-
/**
|
|
22
|
-
* 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.
|
|
23
|
-
*/
|
|
24
|
-
conversation: {
|
|
25
|
-
/**
|
|
26
|
-
* Id of the [Conversation](#schema_conversation)
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* Id of the current [Task](#schema_task)
|
|
31
|
-
*/
|
|
32
|
-
currentTaskId?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
35
|
-
*/
|
|
36
|
-
createdAt: string;
|
|
37
|
-
/**
|
|
38
|
-
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
39
|
-
*/
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
/**
|
|
42
|
-
* Name of the channel where the [Conversation](#schema_conversation) is happening
|
|
43
|
-
*/
|
|
44
|
-
channel: string;
|
|
45
|
-
/**
|
|
46
|
-
* Name of the integration that created the [Conversation](#schema_conversation)
|
|
47
|
-
*/
|
|
48
|
-
integration: string;
|
|
49
|
-
/**
|
|
50
|
-
* 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.
|
|
51
|
-
*/
|
|
52
|
-
tags: {
|
|
53
|
-
[k: string]: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export interface GetEventRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetEventRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetEventRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetEventRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetEventInput = GetEventRequestBody & GetEventRequestHeaders & GetEventRequestQuery & GetEventRequestParams;
|
|
11
|
-
export type GetEventRequest = {
|
|
12
|
-
headers: GetEventRequestHeaders;
|
|
13
|
-
query: GetEventRequestQuery;
|
|
14
|
-
params: GetEventRequestParams;
|
|
15
|
-
body: GetEventRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetEventInput) => GetEventRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetEventResponse {
|
|
21
|
-
/**
|
|
22
|
-
* The event object represents an action or an occurrence.
|
|
23
|
-
*/
|
|
24
|
-
event: {
|
|
25
|
-
/**
|
|
26
|
-
* Id of the [Event](#schema_event)
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* Creation date of the [Event](#schema_event) in ISO 8601 format
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string;
|
|
33
|
-
/**
|
|
34
|
-
* Type of the [Event](#schema_event).
|
|
35
|
-
*/
|
|
36
|
-
type: string;
|
|
37
|
-
/**
|
|
38
|
-
* Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.
|
|
39
|
-
*/
|
|
40
|
-
payload: {
|
|
41
|
-
[k: string]: any;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* ID of the [Conversation](#schema_conversation) to link the event to.
|
|
45
|
-
*/
|
|
46
|
-
conversationId?: string;
|
|
47
|
-
/**
|
|
48
|
-
* ID of the [User](#schema_user) to link the event to.
|
|
49
|
-
*/
|
|
50
|
-
userId?: string;
|
|
51
|
-
/**
|
|
52
|
-
* ID of the [Message](#schema_message) to link the event to.
|
|
53
|
-
*/
|
|
54
|
-
messageId?: string;
|
|
55
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
56
|
-
/**
|
|
57
|
-
* Reason why the event failed to be processed
|
|
58
|
-
*/
|
|
59
|
-
failureReason: string | null;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export interface GetFileRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetFileRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetFileRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetFileRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetFileInput = GetFileRequestBody & GetFileRequestHeaders & GetFileRequestQuery & GetFileRequestParams;
|
|
11
|
-
export type GetFileRequest = {
|
|
12
|
-
headers: GetFileRequestHeaders;
|
|
13
|
-
query: GetFileRequestQuery;
|
|
14
|
-
params: GetFileRequestParams;
|
|
15
|
-
body: GetFileRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetFileInput) => GetFileRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetFileResponse {
|
|
21
|
-
file: {
|
|
22
|
-
/**
|
|
23
|
-
* File ID
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* The ID of the bot the file belongs to
|
|
28
|
-
*/
|
|
29
|
-
botId: string;
|
|
30
|
-
/**
|
|
31
|
-
* Unique key for the file. Must be unique across the bot (and the integration, when applicable).
|
|
32
|
-
*/
|
|
33
|
-
key: string;
|
|
34
|
-
/**
|
|
35
|
-
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
36
|
-
*
|
|
37
|
-
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
38
|
-
*/
|
|
39
|
-
url: string;
|
|
40
|
-
/**
|
|
41
|
-
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
42
|
-
*/
|
|
43
|
-
size: number | null;
|
|
44
|
-
/**
|
|
45
|
-
* MIME type of the file's content
|
|
46
|
-
*/
|
|
47
|
-
contentType: string;
|
|
48
|
-
/**
|
|
49
|
-
* The tags of the file as an object of key/value pairs
|
|
50
|
-
*/
|
|
51
|
-
tags: {
|
|
52
|
-
[k: string]: string;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* File creation timestamp in ISO 8601 format
|
|
56
|
-
*/
|
|
57
|
-
createdAt: string;
|
|
58
|
-
/**
|
|
59
|
-
* File last update timestamp in ISO 8601 format
|
|
60
|
-
*/
|
|
61
|
-
updatedAt: string;
|
|
62
|
-
/**
|
|
63
|
-
* Access policies configured for the file.
|
|
64
|
-
*/
|
|
65
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
66
|
-
/**
|
|
67
|
-
* Whether the file was requested to be indexed for search or not.
|
|
68
|
-
*/
|
|
69
|
-
index: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.
|
|
72
|
-
*
|
|
73
|
-
* If the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.
|
|
74
|
-
*
|
|
75
|
-
* However, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).
|
|
76
|
-
*
|
|
77
|
-
* Once the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field.
|
|
78
|
-
*/
|
|
79
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
80
|
-
/**
|
|
81
|
-
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
82
|
-
*/
|
|
83
|
-
failedStatusReason?: string;
|
|
84
|
-
};
|
|
85
|
-
}
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
export interface GetIntegrationRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface GetIntegrationRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface GetIntegrationRequestParams {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetIntegrationRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type GetIntegrationInput = GetIntegrationRequestBody & GetIntegrationRequestHeaders & GetIntegrationRequestQuery & GetIntegrationRequestParams;
|
|
11
|
-
export type GetIntegrationRequest = {
|
|
12
|
-
headers: GetIntegrationRequestHeaders;
|
|
13
|
-
query: GetIntegrationRequestQuery;
|
|
14
|
-
params: GetIntegrationRequestParams;
|
|
15
|
-
body: GetIntegrationRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: GetIntegrationInput) => GetIntegrationRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface GetIntegrationResponse {
|
|
21
|
-
integration: {
|
|
22
|
-
/**
|
|
23
|
-
* ID of the [Integration](#schema_integration)
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Creation date of the [Integration](#schema_integration) in ISO 8601 format
|
|
28
|
-
*/
|
|
29
|
-
createdAt: string;
|
|
30
|
-
/**
|
|
31
|
-
* Updating date of the [Integration](#schema_integration) in ISO 8601 format
|
|
32
|
-
*/
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
/**
|
|
35
|
-
* Global identifier configuration of the [Integration](#schema_integration)
|
|
36
|
-
*/
|
|
37
|
-
identifier: {
|
|
38
|
-
/**
|
|
39
|
-
* VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
|
|
40
|
-
*/
|
|
41
|
-
fallbackHandlerScript?: string;
|
|
42
|
-
/**
|
|
43
|
-
* VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
|
|
44
|
-
*/
|
|
45
|
-
extractScript?: string;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* URL of the [Integration](#schema_integration)
|
|
49
|
-
*/
|
|
50
|
-
url: string;
|
|
51
|
-
/**
|
|
52
|
-
* Name of the [Integration](#schema_integration)
|
|
53
|
-
*/
|
|
54
|
-
name: string;
|
|
55
|
-
/**
|
|
56
|
-
* Version of the [Integration](#schema_integration)
|
|
57
|
-
*/
|
|
58
|
-
version: string;
|
|
59
|
-
interfaces: {
|
|
60
|
-
[k: string]: {
|
|
61
|
-
id: string;
|
|
62
|
-
entities: {
|
|
63
|
-
[k: string]: {
|
|
64
|
-
name: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
actions: {
|
|
68
|
-
[k: string]: {
|
|
69
|
-
name: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
events: {
|
|
73
|
-
[k: string]: {
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Configuration definition
|
|
81
|
-
*/
|
|
82
|
-
configuration: {
|
|
83
|
-
/**
|
|
84
|
-
* Identifier configuration of the [Integration](#schema_integration)
|
|
85
|
-
*/
|
|
86
|
-
identifier: {
|
|
87
|
-
linkTemplateScript?: string;
|
|
88
|
-
required: boolean;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
92
|
-
*/
|
|
93
|
-
schema?: {
|
|
94
|
-
[k: string]: any;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
channels: {
|
|
98
|
-
/**
|
|
99
|
-
* Channel definition
|
|
100
|
-
*/
|
|
101
|
-
[k: string]: {
|
|
102
|
-
/**
|
|
103
|
-
* Title of the channel
|
|
104
|
-
*/
|
|
105
|
-
title?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Description of the channel
|
|
108
|
-
*/
|
|
109
|
-
description?: string;
|
|
110
|
-
messages: {
|
|
111
|
-
/**
|
|
112
|
-
* Message definition
|
|
113
|
-
*/
|
|
114
|
-
[k: string]: {
|
|
115
|
-
schema: {
|
|
116
|
-
[k: string]: any;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Conversation object configuration
|
|
122
|
-
*/
|
|
123
|
-
conversation: {
|
|
124
|
-
tags: {
|
|
125
|
-
/**
|
|
126
|
-
* Definition of a tag that can be provided on the object
|
|
127
|
-
*/
|
|
128
|
-
[k: string]: {
|
|
129
|
-
/**
|
|
130
|
-
* Title of the tag
|
|
131
|
-
*/
|
|
132
|
-
title?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Description of the tag
|
|
135
|
-
*/
|
|
136
|
-
description?: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.
|
|
141
|
-
*/
|
|
142
|
-
creation: {
|
|
143
|
-
/**
|
|
144
|
-
* Enable conversation creation
|
|
145
|
-
*/
|
|
146
|
-
enabled: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* The list of tags that are required to be specified when calling the API directly to create a conversation.
|
|
149
|
-
*/
|
|
150
|
-
requiredTags: string[];
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Message object configuration
|
|
155
|
-
*/
|
|
156
|
-
message: {
|
|
157
|
-
tags: {
|
|
158
|
-
/**
|
|
159
|
-
* Definition of a tag that can be provided on the object
|
|
160
|
-
*/
|
|
161
|
-
[k: string]: {
|
|
162
|
-
/**
|
|
163
|
-
* Title of the tag
|
|
164
|
-
*/
|
|
165
|
-
title?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Description of the tag
|
|
168
|
-
*/
|
|
169
|
-
description?: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
states: {
|
|
176
|
-
/**
|
|
177
|
-
* State definition
|
|
178
|
-
*/
|
|
179
|
-
[k: string]: {
|
|
180
|
-
/**
|
|
181
|
-
* Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
|
|
182
|
-
*/
|
|
183
|
-
type: "conversation" | "user" | "integration";
|
|
184
|
-
/**
|
|
185
|
-
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
186
|
-
*/
|
|
187
|
-
schema: {
|
|
188
|
-
[k: string]: any;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
events: {
|
|
193
|
-
/**
|
|
194
|
-
* Event Definition
|
|
195
|
-
*/
|
|
196
|
-
[k: string]: {
|
|
197
|
-
/**
|
|
198
|
-
* Title of the event
|
|
199
|
-
*/
|
|
200
|
-
title?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Description of the event
|
|
203
|
-
*/
|
|
204
|
-
description?: string;
|
|
205
|
-
schema: {
|
|
206
|
-
[k: string]: any;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
actions: {
|
|
211
|
-
/**
|
|
212
|
-
* Action definition
|
|
213
|
-
*/
|
|
214
|
-
[k: string]: {
|
|
215
|
-
/**
|
|
216
|
-
* Title of the action
|
|
217
|
-
*/
|
|
218
|
-
title?: string;
|
|
219
|
-
/**
|
|
220
|
-
* Description of the action
|
|
221
|
-
*/
|
|
222
|
-
description?: string;
|
|
223
|
-
input: {
|
|
224
|
-
schema: {
|
|
225
|
-
[k: string]: any;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
output: {
|
|
229
|
-
schema: {
|
|
230
|
-
[k: string]: any;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* User object configuration
|
|
237
|
-
*/
|
|
238
|
-
user: {
|
|
239
|
-
tags: {
|
|
240
|
-
/**
|
|
241
|
-
* Definition of a tag that can be provided on the object
|
|
242
|
-
*/
|
|
243
|
-
[k: string]: {
|
|
244
|
-
/**
|
|
245
|
-
* Title of the tag
|
|
246
|
-
*/
|
|
247
|
-
title?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Description of the tag
|
|
250
|
-
*/
|
|
251
|
-
description?: string;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.
|
|
256
|
-
*/
|
|
257
|
-
creation: {
|
|
258
|
-
/**
|
|
259
|
-
* Enable user creation
|
|
260
|
-
*/
|
|
261
|
-
enabled: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* The list of tags that are required to be specified when calling the API directly to create a user.
|
|
264
|
-
*/
|
|
265
|
-
requiredTags: string[];
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
entities: {
|
|
269
|
-
/**
|
|
270
|
-
* Entity definition
|
|
271
|
-
*/
|
|
272
|
-
[k: string]: {
|
|
273
|
-
/**
|
|
274
|
-
* Title of the entity
|
|
275
|
-
*/
|
|
276
|
-
title?: string;
|
|
277
|
-
/**
|
|
278
|
-
* Description of the entity
|
|
279
|
-
*/
|
|
280
|
-
description?: string;
|
|
281
|
-
schema: {
|
|
282
|
-
[k: string]: any;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* Indicates if the integration is a development integration; Dev integrations run locally
|
|
288
|
-
*/
|
|
289
|
-
dev: boolean;
|
|
290
|
-
/**
|
|
291
|
-
* Title of the integration. This is the name that will be displayed in the UI
|
|
292
|
-
*/
|
|
293
|
-
title: string;
|
|
294
|
-
/**
|
|
295
|
-
* Description of the integration. This is the description that will be displayed in the UI
|
|
296
|
-
*/
|
|
297
|
-
description: string;
|
|
298
|
-
/**
|
|
299
|
-
* URL of the icon of the integration. This is the icon that will be displayed in the UI
|
|
300
|
-
*/
|
|
301
|
-
iconUrl: string;
|
|
302
|
-
/**
|
|
303
|
-
* URL of the readme of the integration. This is the readme that will be displayed in the UI
|
|
304
|
-
*/
|
|
305
|
-
readmeUrl: string;
|
|
306
|
-
/**
|
|
307
|
-
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
308
|
-
*/
|
|
309
|
-
public: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
312
|
-
*/
|
|
313
|
-
secrets: string[];
|
|
314
|
-
};
|
|
315
|
-
}
|