@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.
Files changed (145) hide show
  1. package/.turbo/turbo-build.log +12 -6
  2. package/.turbo/turbo-generate.log +1 -1
  3. package/dist/bundle.cjs.map +1 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +10936 -4
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +4 -3
  8. package/dist/client.d.ts +0 -10
  9. package/dist/config.d.ts +0 -2
  10. package/dist/errors.d.ts +0 -41
  11. package/dist/gen/errors.d.ts +0 -211
  12. package/dist/gen/index.d.ts +0 -401
  13. package/dist/gen/models.d.ts +0 -1269
  14. package/dist/gen/operations/addParticipant.d.ts +0 -56
  15. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +0 -27
  16. package/dist/gen/operations/callAction.d.ts +0 -36
  17. package/dist/gen/operations/changeAISpendQuota.d.ts +0 -21
  18. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +0 -40
  19. package/dist/gen/operations/checkHandleAvailability.d.ts +0 -24
  20. package/dist/gen/operations/configureIntegration.d.ts +0 -24
  21. package/dist/gen/operations/createBot.d.ts +0 -487
  22. package/dist/gen/operations/createBotVersion.d.ts +0 -28
  23. package/dist/gen/operations/createConversation.d.ts +0 -70
  24. package/dist/gen/operations/createEvent.d.ts +0 -95
  25. package/dist/gen/operations/createIntegration.d.ts +0 -573
  26. package/dist/gen/operations/createIntegrationApiKey.d.ts +0 -29
  27. package/dist/gen/operations/createInterface.d.ts +0 -172
  28. package/dist/gen/operations/createMessage.d.ts +0 -98
  29. package/dist/gen/operations/createPersonalAccessToken.d.ts +0 -33
  30. package/dist/gen/operations/createTable.d.ts +0 -151
  31. package/dist/gen/operations/createTableRows.d.ts +0 -71
  32. package/dist/gen/operations/createTask.d.ts +0 -125
  33. package/dist/gen/operations/createUser.d.ts +0 -70
  34. package/dist/gen/operations/createWorkspace.d.ts +0 -38
  35. package/dist/gen/operations/createWorkspaceMember.d.ts +0 -29
  36. package/dist/gen/operations/deleteBot.d.ts +0 -21
  37. package/dist/gen/operations/deleteBotIssue.d.ts +0 -22
  38. package/dist/gen/operations/deleteConversation.d.ts +0 -21
  39. package/dist/gen/operations/deleteFile.d.ts +0 -21
  40. package/dist/gen/operations/deleteIntegration.d.ts +0 -21
  41. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +0 -21
  42. package/dist/gen/operations/deleteInterface.d.ts +0 -21
  43. package/dist/gen/operations/deleteMessage.d.ts +0 -21
  44. package/dist/gen/operations/deletePersonalAccessToken.d.ts +0 -21
  45. package/dist/gen/operations/deleteTable.d.ts +0 -21
  46. package/dist/gen/operations/deleteTableRows.d.ts +0 -36
  47. package/dist/gen/operations/deleteTask.d.ts +0 -21
  48. package/dist/gen/operations/deleteUser.d.ts +0 -21
  49. package/dist/gen/operations/deleteWorkspace.d.ts +0 -21
  50. package/dist/gen/operations/deleteWorkspaceMember.d.ts +0 -21
  51. package/dist/gen/operations/deployBotVersion.d.ts +0 -22
  52. package/dist/gen/operations/duplicateTable.d.ts +0 -137
  53. package/dist/gen/operations/findTableRows.d.ts +0 -94
  54. package/dist/gen/operations/getAccount.d.ts +0 -31
  55. package/dist/gen/operations/getAccountPreference.d.ts +0 -22
  56. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +0 -24
  57. package/dist/gen/operations/getAuditRecords.d.ts +0 -38
  58. package/dist/gen/operations/getBot.d.ts +0 -308
  59. package/dist/gen/operations/getBotAnalytics.d.ts +0 -49
  60. package/dist/gen/operations/getBotIssue.d.ts +0 -39
  61. package/dist/gen/operations/getBotLogs.d.ts +0 -30
  62. package/dist/gen/operations/getBotVersion.d.ts +0 -23
  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/listBotVersions.d.ts +0 -26
  98. package/dist/gen/operations/listBots.d.ts +0 -46
  99. package/dist/gen/operations/listConversations.d.ts +0 -64
  100. package/dist/gen/operations/listEvents.d.ts +0 -69
  101. package/dist/gen/operations/listFiles.d.ts +0 -94
  102. package/dist/gen/operations/listIntegrationApiKeys.d.ts +0 -26
  103. package/dist/gen/operations/listIntegrations.d.ts +0 -68
  104. package/dist/gen/operations/listInterfaces.d.ts +0 -49
  105. package/dist/gen/operations/listMessages.d.ts +0 -69
  106. package/dist/gen/operations/listParticipants.d.ts +0 -56
  107. package/dist/gen/operations/listPersonalAccessTokens.d.ts +0 -25
  108. package/dist/gen/operations/listPublicIntegrations.d.ts +0 -72
  109. package/dist/gen/operations/listPublicWorkspaces.d.ts +0 -42
  110. package/dist/gen/operations/listTables.d.ts +0 -126
  111. package/dist/gen/operations/listTasks.d.ts +0 -97
  112. package/dist/gen/operations/listUsageHistory.d.ts +0 -44
  113. package/dist/gen/operations/listUsers.d.ts +0 -59
  114. package/dist/gen/operations/listWorkspaceInvoices.d.ts +0 -57
  115. package/dist/gen/operations/listWorkspaceMembers.d.ts +0 -36
  116. package/dist/gen/operations/listWorkspaceQuotas.d.ts +0 -36
  117. package/dist/gen/operations/listWorkspaceUsages.d.ts +0 -45
  118. package/dist/gen/operations/listWorkspaces.d.ts +0 -47
  119. package/dist/gen/operations/patchState.d.ts +0 -72
  120. package/dist/gen/operations/removeParticipant.d.ts +0 -22
  121. package/dist/gen/operations/renameTableColumn.d.ts +0 -132
  122. package/dist/gen/operations/runVrl.d.ts +0 -28
  123. package/dist/gen/operations/searchFiles.d.ts +0 -56
  124. package/dist/gen/operations/setAccountPreference.d.ts +0 -22
  125. package/dist/gen/operations/setState.d.ts +0 -76
  126. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +0 -37
  127. package/dist/gen/operations/trackAnalytics.d.ts +0 -22
  128. package/dist/gen/operations/transferBot.d.ts +0 -25
  129. package/dist/gen/operations/updateAccount.d.ts +0 -34
  130. package/dist/gen/operations/updateBot.d.ts +0 -486
  131. package/dist/gen/operations/updateConversation.d.ts +0 -63
  132. package/dist/gen/operations/updateFileMetadata.d.ts +0 -95
  133. package/dist/gen/operations/updateIntegration.d.ts +0 -562
  134. package/dist/gen/operations/updateInterface.d.ts +0 -165
  135. package/dist/gen/operations/updateMessage.d.ts +0 -68
  136. package/dist/gen/operations/updateTable.d.ts +0 -152
  137. package/dist/gen/operations/updateTableRows.d.ts +0 -74
  138. package/dist/gen/operations/updateTask.d.ts +0 -114
  139. package/dist/gen/operations/updateUser.d.ts +0 -66
  140. package/dist/gen/operations/updateWorkspace.d.ts +0 -50
  141. package/dist/gen/operations/updateWorkspaceMember.d.ts +0 -29
  142. package/dist/gen/operations/upsertFile.d.ts +0 -114
  143. package/dist/gen/operations/upsertTableRows.d.ts +0 -107
  144. package/dist/gen/to-axios.d.ts +0 -16
  145. package/dist/types.d.ts +0 -49
@@ -1,172 +0,0 @@
1
- export interface CreateInterfaceRequestHeaders {
2
- }
3
- export interface CreateInterfaceRequestQuery {
4
- }
5
- export interface CreateInterfaceRequestParams {
6
- }
7
- export interface CreateInterfaceRequestBody {
8
- /**
9
- * Name of the [Interface](#schema_interface)
10
- */
11
- name: string;
12
- /**
13
- * Version of the [Interface](#schema_interface)
14
- */
15
- version: string;
16
- events: {
17
- /**
18
- * Event Definition
19
- */
20
- [k: string]: {
21
- /**
22
- * Title of the event
23
- */
24
- title?: string;
25
- /**
26
- * Description of the event
27
- */
28
- description?: string;
29
- schema: {
30
- [k: string]: any;
31
- };
32
- };
33
- };
34
- actions: {
35
- /**
36
- * Action definition
37
- */
38
- [k: string]: {
39
- /**
40
- * Title of the action
41
- */
42
- title?: string;
43
- /**
44
- * Description of the action
45
- */
46
- description?: string;
47
- input: {
48
- schema: {
49
- [k: string]: any;
50
- };
51
- };
52
- output: {
53
- schema: {
54
- [k: string]: any;
55
- };
56
- };
57
- };
58
- };
59
- entities: {
60
- /**
61
- * Entity definition
62
- */
63
- [k: string]: {
64
- /**
65
- * Title of the entity
66
- */
67
- title?: string;
68
- /**
69
- * Description of the entity
70
- */
71
- description?: string;
72
- schema: {
73
- [k: string]: any;
74
- };
75
- };
76
- };
77
- }
78
- export type CreateInterfaceInput = CreateInterfaceRequestBody & CreateInterfaceRequestHeaders & CreateInterfaceRequestQuery & CreateInterfaceRequestParams;
79
- export type CreateInterfaceRequest = {
80
- headers: CreateInterfaceRequestHeaders;
81
- query: CreateInterfaceRequestQuery;
82
- params: CreateInterfaceRequestParams;
83
- body: CreateInterfaceRequestBody;
84
- };
85
- export declare const parseReq: (input: CreateInterfaceInput) => CreateInterfaceRequest & {
86
- path: string;
87
- };
88
- export interface CreateInterfaceResponse {
89
- interface: {
90
- /**
91
- * ID of the [Interface](#schema_interface)
92
- */
93
- id: string;
94
- /**
95
- * Creation date of the [Interface](#schema_interface) in ISO 8601 format
96
- */
97
- createdAt: string;
98
- /**
99
- * Updating date of the [Interface](#schema_interface) in ISO 8601 format
100
- */
101
- updatedAt: string;
102
- /**
103
- * Name of the [Interface](#schema_interface)
104
- */
105
- name: string;
106
- /**
107
- * Version of the [Interface](#schema_interface)
108
- */
109
- version: string;
110
- events: {
111
- /**
112
- * Event Definition
113
- */
114
- [k: string]: {
115
- /**
116
- * Title of the event
117
- */
118
- title?: string;
119
- /**
120
- * Description of the event
121
- */
122
- description?: string;
123
- schema: {
124
- [k: string]: any;
125
- };
126
- };
127
- };
128
- actions: {
129
- /**
130
- * Action definition
131
- */
132
- [k: string]: {
133
- /**
134
- * Title of the action
135
- */
136
- title?: string;
137
- /**
138
- * Description of the action
139
- */
140
- description?: string;
141
- input: {
142
- schema: {
143
- [k: string]: any;
144
- };
145
- };
146
- output: {
147
- schema: {
148
- [k: string]: any;
149
- };
150
- };
151
- };
152
- };
153
- entities: {
154
- /**
155
- * Entity definition
156
- */
157
- [k: string]: {
158
- /**
159
- * Title of the entity
160
- */
161
- title?: string;
162
- /**
163
- * Description of the entity
164
- */
165
- description?: string;
166
- schema: {
167
- [k: string]: any;
168
- };
169
- };
170
- };
171
- };
172
- }
@@ -1,98 +0,0 @@
1
- export interface CreateMessageRequestHeaders {
2
- }
3
- export interface CreateMessageRequestQuery {
4
- }
5
- export interface CreateMessageRequestParams {
6
- }
7
- export interface CreateMessageRequestBody {
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 CreateMessageInput = CreateMessageRequestBody & CreateMessageRequestHeaders & CreateMessageRequestQuery & CreateMessageRequestParams;
47
- export type CreateMessageRequest = {
48
- headers: CreateMessageRequestHeaders;
49
- query: CreateMessageRequestQuery;
50
- params: CreateMessageRequestParams;
51
- body: CreateMessageRequestBody;
52
- };
53
- export declare const parseReq: (input: CreateMessageInput) => CreateMessageRequest & {
54
- path: string;
55
- };
56
- export interface CreateMessageResponse {
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,33 +0,0 @@
1
- export interface CreatePersonalAccessTokenRequestHeaders {
2
- }
3
- export interface CreatePersonalAccessTokenRequestQuery {
4
- }
5
- export interface CreatePersonalAccessTokenRequestParams {
6
- }
7
- export interface CreatePersonalAccessTokenRequestBody {
8
- /**
9
- * Note to identify the PAT
10
- */
11
- note: string;
12
- }
13
- export type CreatePersonalAccessTokenInput = CreatePersonalAccessTokenRequestBody & CreatePersonalAccessTokenRequestHeaders & CreatePersonalAccessTokenRequestQuery & CreatePersonalAccessTokenRequestParams;
14
- export type CreatePersonalAccessTokenRequest = {
15
- headers: CreatePersonalAccessTokenRequestHeaders;
16
- query: CreatePersonalAccessTokenRequestQuery;
17
- params: CreatePersonalAccessTokenRequestParams;
18
- body: CreatePersonalAccessTokenRequestBody;
19
- };
20
- export declare const parseReq: (input: CreatePersonalAccessTokenInput) => CreatePersonalAccessTokenRequest & {
21
- path: string;
22
- };
23
- export interface CreatePersonalAccessTokenResponse {
24
- pat: {
25
- id: string;
26
- createdAt: string;
27
- note: string;
28
- /**
29
- * The PAT value. This will only be returned here when created and cannot be retrieved later.
30
- */
31
- value: string;
32
- };
33
- }
@@ -1,151 +0,0 @@
1
- export interface CreateTableRequestHeaders {
2
- }
3
- export interface CreateTableRequestQuery {
4
- }
5
- export interface CreateTableRequestParams {
6
- }
7
- export interface CreateTableRequestBody {
8
- /**
9
- * Required. This name is used to identify your table.
10
- */
11
- name: string;
12
- /**
13
- * 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.
14
- */
15
- factor?: number;
16
- /**
17
- * 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.
18
- */
19
- frozen?: boolean;
20
- /**
21
- * 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.
22
- */
23
- schema: {
24
- [k: string]: any;
25
- };
26
- /**
27
- * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
28
- */
29
- tags?: {
30
- [k: string]: string;
31
- };
32
- /**
33
- * Indicates if the table is enabled for computation.
34
- */
35
- isComputeEnabled?: boolean;
36
- }
37
- export type CreateTableInput = CreateTableRequestBody & CreateTableRequestHeaders & CreateTableRequestQuery & CreateTableRequestParams;
38
- export type CreateTableRequest = {
39
- headers: CreateTableRequestHeaders;
40
- query: CreateTableRequestQuery;
41
- params: CreateTableRequestParams;
42
- body: CreateTableRequestBody;
43
- };
44
- export declare const parseReq: (input: CreateTableInput) => CreateTableRequest & {
45
- path: string;
46
- };
47
- export interface CreateTableResponse {
48
- table: {
49
- /**
50
- * Unique identifier for the table
51
- */
52
- id: string;
53
- /**
54
- * Required. This name is used to identify your table.
55
- */
56
- name: string;
57
- /**
58
- * 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.
59
- */
60
- factor?: number;
61
- /**
62
- * 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.
63
- */
64
- frozen?: boolean;
65
- schema: {
66
- $schema: string;
67
- /**
68
- * List of keys/columns in the table.
69
- */
70
- properties: {
71
- [k: string]: {
72
- type: "string" | "number" | "boolean" | "object" | "null";
73
- format?: "date-time";
74
- description?: string;
75
- nullable?: boolean;
76
- "x-zui": {
77
- index: number;
78
- /**
79
- * [deprecated] ID of the column.
80
- */
81
- id?: string;
82
- /**
83
- * Indicates if the column is vectorized and searchable.
84
- */
85
- searchable?: boolean;
86
- /**
87
- * Indicates if the field is hidden in the UI
88
- */
89
- hidden?: boolean;
90
- /**
91
- * Order of the column in the UI
92
- */
93
- order?: number;
94
- /**
95
- * Width of the column in the UI
96
- */
97
- width?: number;
98
- computed?: {
99
- action: "ai" | "code";
100
- dependencies?: string[];
101
- /**
102
- * Prompt when action is "ai"
103
- */
104
- prompt?: string;
105
- /**
106
- * Model to use when action is "ai"
107
- */
108
- 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";
109
- /**
110
- * Code to execute when action is "code"
111
- */
112
- code?: string;
113
- enabled?: boolean;
114
- };
115
- /**
116
- * TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
117
- */
118
- typings?: string;
119
- };
120
- };
121
- };
122
- /**
123
- * Additional properties can be provided, but they will be ignored if no column matches.
124
- */
125
- additionalProperties: true;
126
- /**
127
- * Array of required properties.
128
- */
129
- required?: string[];
130
- type: "object";
131
- };
132
- /**
133
- * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
134
- */
135
- tags?: {
136
- [k: string]: string;
137
- };
138
- /**
139
- * Indicates if the table is enabled for computation.
140
- */
141
- isComputeEnabled?: boolean;
142
- /**
143
- * Timestamp of table creation.
144
- */
145
- createdAt?: string;
146
- /**
147
- * Timestamp of the last table update.
148
- */
149
- updatedAt?: string;
150
- };
151
- }
@@ -1,71 +0,0 @@
1
- export interface CreateTableRowsRequestHeaders {
2
- }
3
- export interface CreateTableRowsRequestQuery {
4
- }
5
- export interface CreateTableRowsRequestParams {
6
- table: string;
7
- }
8
- export interface CreateTableRowsRequestBody {
9
- /**
10
- * @minItems 1
11
- * @maxItems 1000
12
- */
13
- rows: {
14
- [k: string]: any;
15
- }[];
16
- /**
17
- * Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1.
18
- */
19
- waitComputed?: boolean;
20
- }
21
- export type CreateTableRowsInput = CreateTableRowsRequestBody & CreateTableRowsRequestHeaders & CreateTableRowsRequestQuery & CreateTableRowsRequestParams;
22
- export type CreateTableRowsRequest = {
23
- headers: CreateTableRowsRequestHeaders;
24
- query: CreateTableRowsRequestQuery;
25
- params: CreateTableRowsRequestParams;
26
- body: CreateTableRowsRequestBody;
27
- };
28
- export declare const parseReq: (input: CreateTableRowsInput) => CreateTableRowsRequest & {
29
- path: string;
30
- };
31
- export interface CreateTableRowsResponse {
32
- rows: {
33
- /**
34
- * Unique identifier for the row.
35
- */
36
- id: number;
37
- /**
38
- * Timestamp of row creation.
39
- */
40
- createdAt?: string;
41
- /**
42
- * Timestamp of the last row update.
43
- */
44
- updatedAt?: string;
45
- computed: {
46
- [k: string]: {
47
- status: string;
48
- error?: string;
49
- updatedBy?: string;
50
- updatedAt?: string;
51
- };
52
- };
53
- /**
54
- * [Read-only] List of stale values that are waiting to be recomputed.
55
- */
56
- stale?: string[];
57
- /**
58
- * Optional numeric value indicating similarity, when using findTableRows.
59
- */
60
- similarity?: number;
61
- [k: string]: any;
62
- }[];
63
- /**
64
- * Alerts for minor issues that don't block the operation but suggest possible improvements.
65
- */
66
- warnings?: string[];
67
- /**
68
- * Critical issues in specific elements that prevent their successful processing, allowing partial operation success.
69
- */
70
- errors?: string[];
71
- }
@@ -1,125 +0,0 @@
1
- export interface CreateTaskRequestHeaders {
2
- }
3
- export interface CreateTaskRequestQuery {
4
- }
5
- export interface CreateTaskRequestParams {
6
- }
7
- export interface CreateTaskRequestBody {
8
- /**
9
- * Title describing the task
10
- */
11
- title?: string;
12
- /**
13
- * All the notes related to the execution of the current task
14
- */
15
- description?: string;
16
- /**
17
- * Type of the task
18
- */
19
- type: string;
20
- /**
21
- * Content related to the task
22
- */
23
- data?: {
24
- [k: string]: any;
25
- };
26
- /**
27
- * Parent task id is the parent task that created this task
28
- */
29
- parentTaskId?: string;
30
- /**
31
- * Conversation id related to this task
32
- */
33
- conversationId: string;
34
- /**
35
- * Specific user related to this task
36
- */
37
- userId?: string;
38
- /**
39
- * The timeout date where the task should be failed in the ISO 8601 format
40
- */
41
- timeoutAt?: string;
42
- /**
43
- * Tags for the [Task](#schema_task)
44
- */
45
- tags?: {
46
- [k: string]: string;
47
- };
48
- }
49
- export type CreateTaskInput = CreateTaskRequestBody & CreateTaskRequestHeaders & CreateTaskRequestQuery & CreateTaskRequestParams;
50
- export type CreateTaskRequest = {
51
- headers: CreateTaskRequestHeaders;
52
- query: CreateTaskRequestQuery;
53
- params: CreateTaskRequestParams;
54
- body: CreateTaskRequestBody;
55
- };
56
- export declare const parseReq: (input: CreateTaskInput) => CreateTaskRequest & {
57
- path: string;
58
- };
59
- export interface CreateTaskResponse {
60
- /**
61
- * Task definition
62
- */
63
- task: {
64
- /**
65
- * Id of the [Task](#schema_task)
66
- */
67
- id: string;
68
- /**
69
- * Title describing the task
70
- */
71
- title: string;
72
- /**
73
- * All the notes related to the execution of the current task
74
- */
75
- description: string;
76
- /**
77
- * Type of the task
78
- */
79
- type: string;
80
- /**
81
- * Content related to the task
82
- */
83
- data: {
84
- [k: string]: any;
85
- };
86
- /**
87
- * Status of the task
88
- */
89
- status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
90
- /**
91
- * Parent task id is the parent task that created this task
92
- */
93
- parentTaskId?: string;
94
- /**
95
- * Conversation id related to this task
96
- */
97
- conversationId?: string;
98
- /**
99
- * Specific user related to this task
100
- */
101
- userId?: string;
102
- /**
103
- * The timeout date where the task should be failed in the ISO 8601 format
104
- */
105
- timeoutAt: string;
106
- /**
107
- * Creation date of the task in ISO 8601 format
108
- */
109
- createdAt: string;
110
- /**
111
- * Updating date of the task in ISO 8601 format
112
- */
113
- updatedAt: string;
114
- /**
115
- * If the task fails this is the reason behind it
116
- */
117
- failureReason?: string;
118
- /**
119
- * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them.
120
- */
121
- tags: {
122
- [k: string]: string;
123
- };
124
- };
125
- }