@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.
Files changed (144) hide show
  1. package/.turbo/turbo-build.log +12 -6
  2. package/.turbo/turbo-generate.log +1 -1
  3. package/dist/bundle.cjs +11 -11
  4. package/dist/bundle.cjs.map +4 -4
  5. package/dist/index.cjs +4 -4
  6. package/dist/index.cjs.map +4 -4
  7. package/dist/index.d.ts +10910 -4
  8. package/dist/index.mjs +4 -4
  9. package/dist/index.mjs.map +4 -4
  10. package/package.json +4 -3
  11. package/dist/client.d.ts +0 -10
  12. package/dist/config.d.ts +0 -2
  13. package/dist/errors.d.ts +0 -41
  14. package/dist/gen/errors.d.ts +0 -211
  15. package/dist/gen/index.d.ts +0 -389
  16. package/dist/gen/models.d.ts +0 -1264
  17. package/dist/gen/operations/addParticipant.d.ts +0 -56
  18. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +0 -27
  19. package/dist/gen/operations/callAction.d.ts +0 -36
  20. package/dist/gen/operations/changeAISpendQuota.d.ts +0 -21
  21. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +0 -40
  22. package/dist/gen/operations/checkHandleAvailability.d.ts +0 -24
  23. package/dist/gen/operations/configureIntegration.d.ts +0 -24
  24. package/dist/gen/operations/createBot.d.ts +0 -487
  25. package/dist/gen/operations/createConversation.d.ts +0 -70
  26. package/dist/gen/operations/createEvent.d.ts +0 -95
  27. package/dist/gen/operations/createIntegration.d.ts +0 -573
  28. package/dist/gen/operations/createIntegrationApiKey.d.ts +0 -29
  29. package/dist/gen/operations/createInterface.d.ts +0 -172
  30. package/dist/gen/operations/createMessage.d.ts +0 -98
  31. package/dist/gen/operations/createPersonalAccessToken.d.ts +0 -33
  32. package/dist/gen/operations/createTable.d.ts +0 -151
  33. package/dist/gen/operations/createTableRows.d.ts +0 -71
  34. package/dist/gen/operations/createTask.d.ts +0 -125
  35. package/dist/gen/operations/createUser.d.ts +0 -70
  36. package/dist/gen/operations/createWorkspace.d.ts +0 -38
  37. package/dist/gen/operations/createWorkspaceMember.d.ts +0 -29
  38. package/dist/gen/operations/deleteBot.d.ts +0 -21
  39. package/dist/gen/operations/deleteBotIssue.d.ts +0 -22
  40. package/dist/gen/operations/deleteConversation.d.ts +0 -21
  41. package/dist/gen/operations/deleteFile.d.ts +0 -21
  42. package/dist/gen/operations/deleteIntegration.d.ts +0 -21
  43. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +0 -21
  44. package/dist/gen/operations/deleteInterface.d.ts +0 -21
  45. package/dist/gen/operations/deleteMessage.d.ts +0 -21
  46. package/dist/gen/operations/deletePersonalAccessToken.d.ts +0 -21
  47. package/dist/gen/operations/deleteTable.d.ts +0 -21
  48. package/dist/gen/operations/deleteTableRows.d.ts +0 -36
  49. package/dist/gen/operations/deleteTask.d.ts +0 -21
  50. package/dist/gen/operations/deleteUser.d.ts +0 -21
  51. package/dist/gen/operations/deleteWorkspace.d.ts +0 -21
  52. package/dist/gen/operations/deleteWorkspaceMember.d.ts +0 -21
  53. package/dist/gen/operations/duplicateTable.d.ts +0 -137
  54. package/dist/gen/operations/findTableRows.d.ts +0 -94
  55. package/dist/gen/operations/getAccount.d.ts +0 -31
  56. package/dist/gen/operations/getAccountPreference.d.ts +0 -22
  57. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +0 -24
  58. package/dist/gen/operations/getAuditRecords.d.ts +0 -38
  59. package/dist/gen/operations/getBot.d.ts +0 -308
  60. package/dist/gen/operations/getBotAnalytics.d.ts +0 -49
  61. package/dist/gen/operations/getBotIssue.d.ts +0 -39
  62. package/dist/gen/operations/getBotLogs.d.ts +0 -30
  63. package/dist/gen/operations/getBotWebchat.d.ts +0 -23
  64. package/dist/gen/operations/getConversation.d.ts +0 -56
  65. package/dist/gen/operations/getEvent.d.ts +0 -61
  66. package/dist/gen/operations/getFile.d.ts +0 -85
  67. package/dist/gen/operations/getIntegration.d.ts +0 -315
  68. package/dist/gen/operations/getIntegrationByName.d.ts +0 -316
  69. package/dist/gen/operations/getIntegrationLogs.d.ts +0 -30
  70. package/dist/gen/operations/getInterface.d.ts +0 -104
  71. package/dist/gen/operations/getInterfaceByName.d.ts +0 -105
  72. package/dist/gen/operations/getMessage.d.ts +0 -62
  73. package/dist/gen/operations/getMultipleUsages.d.ts +0 -45
  74. package/dist/gen/operations/getOrCreateConversation.d.ts +0 -70
  75. package/dist/gen/operations/getOrCreateMessage.d.ts +0 -98
  76. package/dist/gen/operations/getOrCreateTable.d.ts +0 -164
  77. package/dist/gen/operations/getOrCreateUser.d.ts +0 -70
  78. package/dist/gen/operations/getOrSetState.d.ts +0 -76
  79. package/dist/gen/operations/getParticipant.d.ts +0 -53
  80. package/dist/gen/operations/getPublicIntegration.d.ts +0 -321
  81. package/dist/gen/operations/getPublicIntegrationById.d.ts +0 -320
  82. package/dist/gen/operations/getPublicWorkspace.d.ts +0 -31
  83. package/dist/gen/operations/getState.d.ts +0 -66
  84. package/dist/gen/operations/getTable.d.ts +0 -136
  85. package/dist/gen/operations/getTableRow.d.ts +0 -53
  86. package/dist/gen/operations/getTask.d.ts +0 -86
  87. package/dist/gen/operations/getUpcomingInvoice.d.ts +0 -29
  88. package/dist/gen/operations/getUsage.d.ts +0 -45
  89. package/dist/gen/operations/getUser.d.ts +0 -52
  90. package/dist/gen/operations/getWorkspace.d.ts +0 -38
  91. package/dist/gen/operations/getWorkspaceMember.d.ts +0 -27
  92. package/dist/gen/operations/getWorkspaceQuota.d.ts +0 -37
  93. package/dist/gen/operations/introspect.d.ts +0 -24
  94. package/dist/gen/operations/listActivities.d.ts +0 -42
  95. package/dist/gen/operations/listBotIssueEvents.d.ts +0 -32
  96. package/dist/gen/operations/listBotIssues.d.ts +0 -45
  97. package/dist/gen/operations/listBots.d.ts +0 -46
  98. package/dist/gen/operations/listConversations.d.ts +0 -64
  99. package/dist/gen/operations/listEvents.d.ts +0 -69
  100. package/dist/gen/operations/listFiles.d.ts +0 -94
  101. package/dist/gen/operations/listIntegrationApiKeys.d.ts +0 -26
  102. package/dist/gen/operations/listIntegrations.d.ts +0 -68
  103. package/dist/gen/operations/listInterfaces.d.ts +0 -49
  104. package/dist/gen/operations/listMessages.d.ts +0 -69
  105. package/dist/gen/operations/listParticipants.d.ts +0 -56
  106. package/dist/gen/operations/listPersonalAccessTokens.d.ts +0 -25
  107. package/dist/gen/operations/listPublicIntegrations.d.ts +0 -72
  108. package/dist/gen/operations/listPublicWorkspaces.d.ts +0 -42
  109. package/dist/gen/operations/listTables.d.ts +0 -126
  110. package/dist/gen/operations/listTasks.d.ts +0 -97
  111. package/dist/gen/operations/listUsageHistory.d.ts +0 -44
  112. package/dist/gen/operations/listUsers.d.ts +0 -59
  113. package/dist/gen/operations/listWorkspaceInvoices.d.ts +0 -57
  114. package/dist/gen/operations/listWorkspaceMembers.d.ts +0 -36
  115. package/dist/gen/operations/listWorkspaceQuotas.d.ts +0 -36
  116. package/dist/gen/operations/listWorkspaceUsages.d.ts +0 -45
  117. package/dist/gen/operations/listWorkspaces.d.ts +0 -47
  118. package/dist/gen/operations/patchState.d.ts +0 -72
  119. package/dist/gen/operations/removeParticipant.d.ts +0 -22
  120. package/dist/gen/operations/renameTableColumn.d.ts +0 -132
  121. package/dist/gen/operations/runVrl.d.ts +0 -28
  122. package/dist/gen/operations/searchFiles.d.ts +0 -56
  123. package/dist/gen/operations/setAccountPreference.d.ts +0 -22
  124. package/dist/gen/operations/setState.d.ts +0 -76
  125. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +0 -37
  126. package/dist/gen/operations/trackAnalytics.d.ts +0 -22
  127. package/dist/gen/operations/transferBot.d.ts +0 -25
  128. package/dist/gen/operations/updateAccount.d.ts +0 -34
  129. package/dist/gen/operations/updateBot.d.ts +0 -486
  130. package/dist/gen/operations/updateConversation.d.ts +0 -63
  131. package/dist/gen/operations/updateFileMetadata.d.ts +0 -95
  132. package/dist/gen/operations/updateIntegration.d.ts +0 -562
  133. package/dist/gen/operations/updateInterface.d.ts +0 -165
  134. package/dist/gen/operations/updateMessage.d.ts +0 -68
  135. package/dist/gen/operations/updateTable.d.ts +0 -152
  136. package/dist/gen/operations/updateTableRows.d.ts +0 -74
  137. package/dist/gen/operations/updateTask.d.ts +0 -114
  138. package/dist/gen/operations/updateUser.d.ts +0 -66
  139. package/dist/gen/operations/updateWorkspace.d.ts +0 -50
  140. package/dist/gen/operations/updateWorkspaceMember.d.ts +0 -29
  141. package/dist/gen/operations/upsertFile.d.ts +0 -114
  142. package/dist/gen/operations/upsertTableRows.d.ts +0 -107
  143. package/dist/gen/to-axios.d.ts +0 -16
  144. package/dist/types.d.ts +0 -49
@@ -1,94 +0,0 @@
1
- export interface FindTableRowsRequestHeaders {
2
- }
3
- export interface FindTableRowsRequestQuery {
4
- }
5
- export interface FindTableRowsRequestParams {
6
- table: string;
7
- }
8
- export interface FindTableRowsRequestBody {
9
- /**
10
- * Limit for pagination, specifying the maximum number of rows to return.
11
- */
12
- limit?: number;
13
- /**
14
- * Offset for pagination, specifying where to start returning rows from.
15
- */
16
- offset?: number;
17
- /**
18
- * Provide a mongodb-like filter to apply to the query. Example: \{ "name": \{ "$eq": "John" \} \}
19
- */
20
- filter?: {
21
- [k: string]: any;
22
- };
23
- /**
24
- * Group the rows by a specific column and apply aggregations to them. Allowed values: key, avg, max, min, sum, count. Example: \{ "someId": "key", "orders": ["sum", "avg"] \}
25
- */
26
- group?: {
27
- [k: string]: any;
28
- };
29
- /**
30
- * Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term.
31
- */
32
- search?: string;
33
- /**
34
- * Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
35
- */
36
- orderBy?: string;
37
- /**
38
- * Specifies the direction of sorting, either ascending or descending.
39
- */
40
- orderDirection?: "asc" | "desc";
41
- }
42
- export type FindTableRowsInput = FindTableRowsRequestBody & FindTableRowsRequestHeaders & FindTableRowsRequestQuery & FindTableRowsRequestParams;
43
- export type FindTableRowsRequest = {
44
- headers: FindTableRowsRequestHeaders;
45
- query: FindTableRowsRequestQuery;
46
- params: FindTableRowsRequestParams;
47
- body: FindTableRowsRequestBody;
48
- };
49
- export declare const parseReq: (input: FindTableRowsInput) => FindTableRowsRequest & {
50
- path: string;
51
- };
52
- export interface FindTableRowsResponse {
53
- rows: {
54
- /**
55
- * Unique identifier for the row.
56
- */
57
- id: number;
58
- /**
59
- * Timestamp of row creation.
60
- */
61
- createdAt?: string;
62
- /**
63
- * Timestamp of the last row update.
64
- */
65
- updatedAt?: string;
66
- computed: {
67
- [k: string]: {
68
- status: string;
69
- error?: string;
70
- updatedBy?: string;
71
- updatedAt?: string;
72
- };
73
- };
74
- /**
75
- * [Read-only] List of stale values that are waiting to be recomputed.
76
- */
77
- stale?: string[];
78
- /**
79
- * Optional numeric value indicating similarity, when using findTableRows.
80
- */
81
- similarity?: number;
82
- [k: string]: any;
83
- }[];
84
- /**
85
- * Flag indicating if there are more rows to fetch.
86
- */
87
- hasMore: boolean;
88
- offset: number;
89
- limit: number;
90
- /**
91
- * Alerts for minor issues that don't block the operation but suggest possible improvements.
92
- */
93
- warnings?: string[];
94
- }
@@ -1,31 +0,0 @@
1
- export interface GetAccountRequestHeaders {
2
- }
3
- export interface GetAccountRequestQuery {
4
- }
5
- export interface GetAccountRequestParams {
6
- }
7
- export interface GetAccountRequestBody {
8
- }
9
- export type GetAccountInput = GetAccountRequestBody & GetAccountRequestHeaders & GetAccountRequestQuery & GetAccountRequestParams;
10
- export type GetAccountRequest = {
11
- headers: GetAccountRequestHeaders;
12
- query: GetAccountRequestQuery;
13
- params: GetAccountRequestParams;
14
- body: GetAccountRequestBody;
15
- };
16
- export declare const parseReq: (_: GetAccountInput) => GetAccountRequest & {
17
- path: string;
18
- };
19
- export interface GetAccountResponse {
20
- account: {
21
- id: string;
22
- email: string;
23
- displayName?: string;
24
- emailVerified: boolean;
25
- profilePicture?: string;
26
- /**
27
- * Creation date of the [Account](#schema_account) in ISO 8601 format
28
- */
29
- createdAt: string;
30
- };
31
- }
@@ -1,22 +0,0 @@
1
- export interface GetAccountPreferenceRequestHeaders {
2
- }
3
- export interface GetAccountPreferenceRequestQuery {
4
- }
5
- export interface GetAccountPreferenceRequestParams {
6
- key: string;
7
- }
8
- export interface GetAccountPreferenceRequestBody {
9
- }
10
- export type GetAccountPreferenceInput = GetAccountPreferenceRequestBody & GetAccountPreferenceRequestHeaders & GetAccountPreferenceRequestQuery & GetAccountPreferenceRequestParams;
11
- export type GetAccountPreferenceRequest = {
12
- headers: GetAccountPreferenceRequestHeaders;
13
- query: GetAccountPreferenceRequestQuery;
14
- params: GetAccountPreferenceRequestParams;
15
- body: GetAccountPreferenceRequestBody;
16
- };
17
- export declare const parseReq: (input: GetAccountPreferenceInput) => GetAccountPreferenceRequest & {
18
- path: string;
19
- };
20
- export interface GetAccountPreferenceResponse {
21
- value?: any;
22
- }
@@ -1,24 +0,0 @@
1
- export interface GetAllWorkspaceQuotaCompletionRequestHeaders {
2
- }
3
- export interface GetAllWorkspaceQuotaCompletionRequestQuery {
4
- }
5
- export interface GetAllWorkspaceQuotaCompletionRequestParams {
6
- }
7
- export interface GetAllWorkspaceQuotaCompletionRequestBody {
8
- }
9
- export type GetAllWorkspaceQuotaCompletionInput = GetAllWorkspaceQuotaCompletionRequestBody & GetAllWorkspaceQuotaCompletionRequestHeaders & GetAllWorkspaceQuotaCompletionRequestQuery & GetAllWorkspaceQuotaCompletionRequestParams;
10
- export type GetAllWorkspaceQuotaCompletionRequest = {
11
- headers: GetAllWorkspaceQuotaCompletionRequestHeaders;
12
- query: GetAllWorkspaceQuotaCompletionRequestQuery;
13
- params: GetAllWorkspaceQuotaCompletionRequestParams;
14
- body: GetAllWorkspaceQuotaCompletionRequestBody;
15
- };
16
- export declare const parseReq: (_: GetAllWorkspaceQuotaCompletionInput) => GetAllWorkspaceQuotaCompletionRequest & {
17
- path: string;
18
- };
19
- export interface GetAllWorkspaceQuotaCompletionResponse {
20
- [k: string]: {
21
- 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";
22
- completion: number;
23
- };
24
- }
@@ -1,38 +0,0 @@
1
- export interface GetAuditRecordsRequestHeaders {
2
- }
3
- export interface GetAuditRecordsRequestQuery {
4
- nextToken?: string;
5
- }
6
- export interface GetAuditRecordsRequestParams {
7
- id: string;
8
- }
9
- export interface GetAuditRecordsRequestBody {
10
- }
11
- export type GetAuditRecordsInput = GetAuditRecordsRequestBody & GetAuditRecordsRequestHeaders & GetAuditRecordsRequestQuery & GetAuditRecordsRequestParams;
12
- export type GetAuditRecordsRequest = {
13
- headers: GetAuditRecordsRequestHeaders;
14
- query: GetAuditRecordsRequestQuery;
15
- params: GetAuditRecordsRequestParams;
16
- body: GetAuditRecordsRequestBody;
17
- };
18
- export declare const parseReq: (input: GetAuditRecordsInput) => GetAuditRecordsRequest & {
19
- path: string;
20
- };
21
- export interface GetAuditRecordsResponse {
22
- records: {
23
- id: string;
24
- recordedAt: string;
25
- userId: string | null;
26
- userEmail?: string | null;
27
- resourceId: string | null;
28
- resourceName?: string | null;
29
- value?: string | null;
30
- action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT";
31
- }[];
32
- meta: {
33
- /**
34
- * 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.
35
- */
36
- nextToken?: string;
37
- };
38
- }
@@ -1,308 +0,0 @@
1
- export interface GetBotRequestHeaders {
2
- }
3
- export interface GetBotRequestQuery {
4
- }
5
- export interface GetBotRequestParams {
6
- id: string;
7
- }
8
- export interface GetBotRequestBody {
9
- }
10
- export type GetBotInput = GetBotRequestBody & GetBotRequestHeaders & GetBotRequestQuery & GetBotRequestParams;
11
- export type GetBotRequest = {
12
- headers: GetBotRequestHeaders;
13
- query: GetBotRequestQuery;
14
- params: GetBotRequestParams;
15
- body: GetBotRequestBody;
16
- };
17
- export declare const parseReq: (input: GetBotInput) => GetBotRequest & {
18
- path: string;
19
- };
20
- export interface GetBotResponse {
21
- bot: {
22
- /**
23
- * Id of the [Bot](#schema_bot)
24
- */
25
- id: string;
26
- /**
27
- * Creation date of the [Bot](#schema_bot) in ISO 8601 format
28
- */
29
- createdAt: string;
30
- /**
31
- * Updating date of the [Bot](#schema_bot) in ISO 8601 format
32
- */
33
- updatedAt: string;
34
- /**
35
- * Signing secret of the [Bot](#schema_bot)
36
- */
37
- signingSecret: string;
38
- /**
39
- * A mapping of integrations to their configuration
40
- */
41
- integrations: {
42
- [k: string]: {
43
- enabled: boolean;
44
- /**
45
- * Name of the [Integration](#schema_integration)
46
- */
47
- name: string;
48
- /**
49
- * Version of the [Integration](#schema_integration)
50
- */
51
- version: string;
52
- webhookUrl: string;
53
- webhookId: string;
54
- identifier?: string;
55
- configuration: {
56
- [k: string]: any;
57
- };
58
- status: "registration_pending" | "registered" | "registration_failed" | "unregistration_pending" | "unregistered" | "unregistration_failed";
59
- statusReason: string | null;
60
- /**
61
- * ID of the [Integration](#schema_integration)
62
- */
63
- id: string;
64
- /**
65
- * Creation date of the [Integration](#schema_integration) in ISO 8601 format
66
- */
67
- createdAt: string;
68
- /**
69
- * Updating date of the [Integration](#schema_integration) in ISO 8601 format
70
- */
71
- updatedAt: string;
72
- /**
73
- * Title of the integration. This is the name that will be displayed in the UI
74
- */
75
- title: string;
76
- /**
77
- * Description of the integration. This is the description that will be displayed in the UI
78
- */
79
- description: string;
80
- /**
81
- * URL of the icon of the integration. This is the icon that will be displayed in the UI
82
- */
83
- iconUrl: string;
84
- /**
85
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
86
- */
87
- public: boolean;
88
- };
89
- };
90
- /**
91
- * User object configuration
92
- */
93
- user: {
94
- tags: {
95
- /**
96
- * Definition of a tag that can be provided on the object
97
- */
98
- [k: string]: {
99
- /**
100
- * Title of the tag
101
- */
102
- title?: string;
103
- /**
104
- * Description of the tag
105
- */
106
- description?: string;
107
- };
108
- };
109
- };
110
- /**
111
- * Conversation object configuration
112
- */
113
- conversation: {
114
- tags: {
115
- /**
116
- * Definition of a tag that can be provided on the object
117
- */
118
- [k: string]: {
119
- /**
120
- * Title of the tag
121
- */
122
- title?: string;
123
- /**
124
- * Description of the tag
125
- */
126
- description?: string;
127
- };
128
- };
129
- };
130
- /**
131
- * Message object configuration
132
- */
133
- message: {
134
- tags: {
135
- /**
136
- * Definition of a tag that can be provided on the object
137
- */
138
- [k: string]: {
139
- /**
140
- * Title of the tag
141
- */
142
- title?: string;
143
- /**
144
- * Description of the tag
145
- */
146
- description?: string;
147
- };
148
- };
149
- };
150
- /**
151
- * A mapping of states to their definition
152
- */
153
- states: {
154
- [k: string]: {
155
- /**
156
- * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
157
- */
158
- type: "conversation" | "user" | "bot" | "task";
159
- /**
160
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
161
- */
162
- schema: {
163
- [k: string]: any;
164
- };
165
- /**
166
- * 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.
167
- */
168
- expiry?: number;
169
- };
170
- };
171
- /**
172
- * Configuration of the bot
173
- */
174
- configuration: {
175
- /**
176
- * Configuration data
177
- */
178
- data: {
179
- [k: string]: any;
180
- };
181
- /**
182
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
183
- */
184
- schema: {
185
- [k: string]: any;
186
- };
187
- };
188
- /**
189
- * Events definition
190
- */
191
- events: {
192
- /**
193
- * Event Definition
194
- */
195
- [k: string]: {
196
- /**
197
- * Title of the event
198
- */
199
- title?: string;
200
- /**
201
- * Description of the event
202
- */
203
- description?: string;
204
- schema: {
205
- [k: string]: any;
206
- };
207
- };
208
- };
209
- /**
210
- * Recurring events
211
- */
212
- recurringEvents: {
213
- [k: string]: {
214
- schedule: {
215
- cron: string;
216
- };
217
- type: string;
218
- payload: {
219
- [k: string]: any;
220
- };
221
- /**
222
- * The number of times the recurring event failed to run. This counter resets once the recurring event runs successfully.
223
- */
224
- failedAttempts: number;
225
- /**
226
- * The reason why the recurring event failed to run in the last attempt.
227
- */
228
- lastFailureReason: string | null;
229
- };
230
- };
231
- /**
232
- * Subscriptions of the bot
233
- */
234
- subscriptions: {
235
- /**
236
- * Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
237
- */
238
- events: {
239
- [k: string]: {};
240
- } | null;
241
- };
242
- /**
243
- * Actions definition
244
- */
245
- actions: {
246
- /**
247
- * Action definition
248
- */
249
- [k: string]: {
250
- /**
251
- * Title of the action
252
- */
253
- title?: string;
254
- /**
255
- * Description of the action
256
- */
257
- description?: string;
258
- input: {
259
- schema: {
260
- [k: string]: any;
261
- };
262
- };
263
- output: {
264
- schema: {
265
- [k: string]: any;
266
- };
267
- };
268
- };
269
- };
270
- /**
271
- * Name of the [Bot](#schema_bot)
272
- */
273
- name: string;
274
- /**
275
- * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
276
- */
277
- deployedAt?: string;
278
- /**
279
- * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
280
- */
281
- dev: boolean;
282
- /**
283
- * Id of the user that created the bot
284
- */
285
- createdBy?: string;
286
- /**
287
- * Indicates if the [Bot](#schema_bot) should be in always alive mode
288
- */
289
- alwaysAlive: boolean;
290
- /**
291
- * Status of the bot
292
- */
293
- status: "active" | "deploying";
294
- /**
295
- * Media files associated with the [Bot](#schema_bot)
296
- */
297
- medias: {
298
- /**
299
- * URL of the media file
300
- */
301
- url: string;
302
- /**
303
- * Name of the media file
304
- */
305
- name: string;
306
- }[];
307
- };
308
- }
@@ -1,49 +0,0 @@
1
- export interface GetBotAnalyticsRequestHeaders {
2
- }
3
- export interface GetBotAnalyticsRequestQuery {
4
- startDate: string;
5
- endDate: string;
6
- }
7
- export interface GetBotAnalyticsRequestParams {
8
- id: string;
9
- }
10
- export interface GetBotAnalyticsRequestBody {
11
- }
12
- export type GetBotAnalyticsInput = GetBotAnalyticsRequestBody & GetBotAnalyticsRequestHeaders & GetBotAnalyticsRequestQuery & GetBotAnalyticsRequestParams;
13
- export type GetBotAnalyticsRequest = {
14
- headers: GetBotAnalyticsRequestHeaders;
15
- query: GetBotAnalyticsRequestQuery;
16
- params: GetBotAnalyticsRequestParams;
17
- body: GetBotAnalyticsRequestBody;
18
- };
19
- export declare const parseReq: (input: GetBotAnalyticsInput) => GetBotAnalyticsRequest & {
20
- path: string;
21
- };
22
- export interface GetBotAnalyticsResponse {
23
- records: {
24
- /**
25
- * ISO 8601 date string of the beginning (inclusive) of the period
26
- */
27
- startDateTimeUtc: string;
28
- /**
29
- * ISO 8601 date string of the end (exclusive) of the period
30
- */
31
- endDateTimeUtc: string;
32
- returningUsers: number;
33
- newUsers: number;
34
- sessions: number;
35
- /**
36
- * Deprecated. Use `userMessages` instead.
37
- */
38
- messages: number;
39
- userMessages: number;
40
- botMessages: number;
41
- events: number;
42
- eventTypes: {
43
- [k: string]: number;
44
- };
45
- customEvents: {
46
- [k: string]: number;
47
- };
48
- }[];
49
- }
@@ -1,39 +0,0 @@
1
- export interface GetBotIssueRequestHeaders {
2
- }
3
- export interface GetBotIssueRequestQuery {
4
- }
5
- export interface GetBotIssueRequestParams {
6
- id: string;
7
- issueId: string;
8
- }
9
- export interface GetBotIssueRequestBody {
10
- }
11
- export type GetBotIssueInput = GetBotIssueRequestBody & GetBotIssueRequestHeaders & GetBotIssueRequestQuery & GetBotIssueRequestParams;
12
- export type GetBotIssueRequest = {
13
- headers: GetBotIssueRequestHeaders;
14
- query: GetBotIssueRequestQuery;
15
- params: GetBotIssueRequestParams;
16
- body: GetBotIssueRequestBody;
17
- };
18
- export declare const parseReq: (input: GetBotIssueInput) => GetBotIssueRequest & {
19
- path: string;
20
- };
21
- export interface GetBotIssueResponse {
22
- issue: {
23
- id: string;
24
- code: string;
25
- createdAt: string;
26
- lastSeenAt: string;
27
- title: string;
28
- description: string;
29
- groupedData: {
30
- [k: string]: {
31
- raw: string;
32
- pretty?: string;
33
- };
34
- };
35
- eventsCount: number;
36
- category: "user_code" | "limits" | "configuration" | "other";
37
- resolutionLink: string | null;
38
- };
39
- }
@@ -1,30 +0,0 @@
1
- export interface GetBotLogsRequestHeaders {
2
- }
3
- export interface GetBotLogsRequestQuery {
4
- timeStart: string;
5
- timeEnd: string;
6
- nextToken?: string;
7
- }
8
- export interface GetBotLogsRequestParams {
9
- id: string;
10
- }
11
- export interface GetBotLogsRequestBody {
12
- }
13
- export type GetBotLogsInput = GetBotLogsRequestBody & GetBotLogsRequestHeaders & GetBotLogsRequestQuery & GetBotLogsRequestParams;
14
- export type GetBotLogsRequest = {
15
- headers: GetBotLogsRequestHeaders;
16
- query: GetBotLogsRequestQuery;
17
- params: GetBotLogsRequestParams;
18
- body: GetBotLogsRequestBody;
19
- };
20
- export declare const parseReq: (input: GetBotLogsInput) => GetBotLogsRequest & {
21
- path: string;
22
- };
23
- export interface GetBotLogsResponse {
24
- logs: {
25
- timestamp: string;
26
- level: string;
27
- message: string;
28
- }[];
29
- nextToken?: string;
30
- }
@@ -1,23 +0,0 @@
1
- export interface GetBotWebchatRequestHeaders {
2
- }
3
- export interface GetBotWebchatRequestQuery {
4
- type: "preconfigured" | "configurable" | "fullscreen" | "sharableUrl";
5
- }
6
- export interface GetBotWebchatRequestParams {
7
- id: string;
8
- }
9
- export interface GetBotWebchatRequestBody {
10
- }
11
- export type GetBotWebchatInput = GetBotWebchatRequestBody & GetBotWebchatRequestHeaders & GetBotWebchatRequestQuery & GetBotWebchatRequestParams;
12
- export type GetBotWebchatRequest = {
13
- headers: GetBotWebchatRequestHeaders;
14
- query: GetBotWebchatRequestQuery;
15
- params: GetBotWebchatRequestParams;
16
- body: GetBotWebchatRequestBody;
17
- };
18
- export declare const parseReq: (input: GetBotWebchatInput) => GetBotWebchatRequest & {
19
- path: string;
20
- };
21
- export interface GetBotWebchatResponse {
22
- code: string;
23
- }