lemma-sdk 0.2.6 → 0.2.7

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 (205) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/lemma-client.js +674 -1004
  3. package/dist/client.d.ts +0 -2
  4. package/dist/client.js +0 -3
  5. package/dist/index.d.ts +0 -1
  6. package/dist/namespaces/files.d.ts +8 -8
  7. package/dist/namespaces/files.js +16 -16
  8. package/dist/namespaces/records.d.ts +10 -10
  9. package/dist/namespaces/records.js +24 -24
  10. package/dist/namespaces/tables.d.ts +7 -7
  11. package/dist/namespaces/tables.js +13 -13
  12. package/dist/namespaces/workflows.d.ts +4 -4
  13. package/dist/openapi_client/index.d.ts +16 -15
  14. package/dist/openapi_client/index.js +4 -2
  15. package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
  16. package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
  17. package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
  18. package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
  19. package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
  20. package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
  21. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
  22. package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
  23. package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
  24. package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
  25. package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
  26. package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
  27. package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
  28. package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
  29. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
  30. package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
  31. package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
  32. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
  33. package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
  34. package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
  35. package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
  36. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
  37. package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
  38. package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
  39. package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
  40. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
  41. package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
  42. package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
  43. package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
  44. package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
  45. package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
  46. package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
  47. package/dist/openapi_client/models/EndNode.d.ts +1 -1
  48. package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
  49. package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
  50. package/dist/openapi_client/models/FileInfo.d.ts +3 -3
  51. package/dist/openapi_client/models/FileResponse.d.ts +13 -9
  52. package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
  53. package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
  54. package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
  55. package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
  56. package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
  57. package/dist/openapi_client/models/FileVisibility.js +9 -0
  58. package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
  59. package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
  60. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
  61. package/dist/openapi_client/models/FlowStart.d.ts +4 -4
  62. package/dist/openapi_client/models/FormNode.d.ts +1 -1
  63. package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
  64. package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
  65. package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
  66. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
  67. package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
  68. package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
  69. package/dist/openapi_client/models/LoopNode.d.ts +1 -1
  70. package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
  71. package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
  72. package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
  73. package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
  74. package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
  75. package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
  76. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
  77. package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
  78. package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
  79. package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
  80. package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
  81. package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
  82. package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
  83. package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
  84. package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
  85. package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
  86. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
  87. package/dist/openapi_client/models/PodResponse.d.ts +6 -6
  88. package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
  89. package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
  90. package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
  91. package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
  92. package/dist/openapi_client/models/RecordSort.d.ts +4 -4
  93. package/dist/openapi_client/models/SearchResult.d.ts +3 -3
  94. package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
  95. package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
  96. package/dist/openapi_client/models/StackFrame.d.ts +3 -3
  97. package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
  98. package/dist/openapi_client/models/StepExecution.d.ts +4 -4
  99. package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
  100. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
  101. package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
  102. package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
  103. package/dist/openapi_client/models/TableAccessMode.js +12 -0
  104. package/dist/openapi_client/models/TableResponse.d.ts +5 -5
  105. package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
  106. package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
  107. package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
  108. package/dist/openapi_client/models/TextContent.d.ts +1 -1
  109. package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
  110. package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
  111. package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
  112. package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
  113. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
  114. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
  115. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
  116. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
  117. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
  118. package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
  119. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
  120. package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
  121. package/dist/openapi_client/models/UserResponse.d.ts +6 -6
  122. package/dist/openapi_client/models/ValidationError.d.ts +2 -2
  123. package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
  124. package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
  125. package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
  126. package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
  127. package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
  128. package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
  129. package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
  130. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
  131. package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
  132. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
  133. package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
  134. package/dist/openapi_client/models/update.d.ts +3 -1
  135. package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
  136. package/dist/openapi_client/services/AgentFilesService.js +103 -0
  137. package/dist/openapi_client/services/AgentsService.d.ts +15 -15
  138. package/dist/openapi_client/services/AgentsService.js +33 -33
  139. package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
  140. package/dist/openapi_client/services/ApplicationsService.js +16 -16
  141. package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
  142. package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
  143. package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
  144. package/dist/openapi_client/services/AssistantsService.js +31 -31
  145. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
  146. package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
  147. package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
  148. package/dist/openapi_client/services/BillingUsageService.js +10 -10
  149. package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
  150. package/dist/openapi_client/services/ConversationsService.js +27 -27
  151. package/dist/openapi_client/services/DesksService.d.ts +13 -13
  152. package/dist/openapi_client/services/DesksService.js +31 -31
  153. package/dist/openapi_client/services/FilesService.d.ts +21 -72
  154. package/dist/openapi_client/services/FilesService.js +39 -154
  155. package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
  156. package/dist/openapi_client/services/FunctionsService.js +45 -45
  157. package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
  158. package/dist/openapi_client/services/IntegrationsService.js +47 -47
  159. package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
  160. package/dist/openapi_client/services/OrganizationsService.js +88 -88
  161. package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
  162. package/dist/openapi_client/services/PodMembersService.js +29 -29
  163. package/dist/openapi_client/services/PodsService.d.ts +18 -18
  164. package/dist/openapi_client/services/PodsService.js +34 -34
  165. package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
  166. package/dist/openapi_client/services/PublicDesksService.js +22 -0
  167. package/dist/openapi_client/services/RecordsService.d.ts +39 -48
  168. package/dist/openapi_client/services/RecordsService.js +71 -89
  169. package/dist/openapi_client/services/TablesService.d.ts +18 -25
  170. package/dist/openapi_client/services/TablesService.js +39 -53
  171. package/dist/openapi_client/services/TasksService.d.ts +19 -19
  172. package/dist/openapi_client/services/TasksService.js +39 -39
  173. package/dist/openapi_client/services/TriggersService.d.ts +16 -16
  174. package/dist/openapi_client/services/TriggersService.js +35 -35
  175. package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
  176. package/dist/openapi_client/services/WebhooksService.js +18 -18
  177. package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
  178. package/dist/openapi_client/services/WorkflowsService.js +115 -115
  179. package/package.json +1 -1
  180. package/dist/namespaces/datastores.d.ts +0 -18
  181. package/dist/namespaces/datastores.js +0 -28
  182. package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
  183. package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
  184. package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
  185. package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
  186. package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
  187. package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
  188. package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
  189. package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
  190. package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
  191. package/dist/openapi_client/services/DatastoreService.js +0 -141
  192. package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
  193. package/dist/openapi_client/services/PublicSdkService.js +0 -35
  194. /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
  195. /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
  196. /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
  197. /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
  198. /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
  199. /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
  200. /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
  201. /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
  202. /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
  203. /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
  204. /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
  205. /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
@@ -1,21 +1,23 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  import type { ToolSet } from './ToolSet.js';
3
4
  /**
4
5
  * Response schema for agent.
5
6
  */
6
7
  export type AgentResponse = {
7
- id: string;
8
- pod_id: string;
9
- user_id: string;
10
- name: string;
8
+ accessible_applications: Array<ApplicationAccessConfig>;
9
+ accessible_folders: Array<string>;
10
+ accessible_tables: Array<TableAccessEntry>;
11
+ created_at: string;
11
12
  description: (string | null);
12
13
  icon_url: (string | null);
13
- instruction: string;
14
+ id: string;
14
15
  input_schema: Record<string, any>;
16
+ instruction: string;
17
+ name: string;
15
18
  output_schema: Record<string, any>;
19
+ pod_id: string;
16
20
  tool_sets: Array<ToolSet>;
17
- accessible_datastores: Array<string>;
18
- accessible_applications: Array<ApplicationAccessConfig>;
19
- created_at: string;
20
21
  updated_at: string;
22
+ user_id: string;
21
23
  };
@@ -2,12 +2,12 @@
2
2
  * Schema for trigger response.
3
3
  */
4
4
  export type AppTriggerResponseSchema = {
5
- id: string;
6
5
  application_id: (string | null);
7
- description: (string | null);
8
6
  config_schema: (Record<string, any> | null);
9
- payload_schema: (Record<string, any> | null);
10
- payload_example: (Record<string, any> | null);
11
7
  created_at: string;
8
+ description: (string | null);
9
+ id: string;
10
+ payload_example: (Record<string, any> | null);
11
+ payload_schema: (Record<string, any> | null);
12
12
  updated_at: string;
13
13
  };
@@ -5,6 +5,10 @@ import type { ApplicationMode } from './ApplicationMode.js';
5
5
  * Defines how an agent or function can access a specific application.
6
6
  */
7
7
  export type ApplicationAccessConfig = {
8
+ /**
9
+ * Required for FIXED mode - specific account to use
10
+ */
11
+ account_id?: (string | null);
8
12
  /**
9
13
  * Name of the application
10
14
  */
@@ -13,8 +17,4 @@ export type ApplicationAccessConfig = {
13
17
  * Access mode - FIXED or DYNAMIC
14
18
  */
15
19
  mode: ApplicationMode;
16
- /**
17
- * Required for FIXED mode - specific account to use
18
- */
19
- account_id?: (string | null);
20
20
  };
@@ -3,15 +3,15 @@ import type { OperationSummary } from './OperationSummary.js';
3
3
  * Schema for application details including operation catalog.
4
4
  */
5
5
  export type ApplicationDetailResponseSchema = {
6
- id: string;
7
- title?: (string | null);
8
- description: (string | null);
9
6
  auth_method: string;
10
7
  auth_provider: string;
11
- operation_executor: string;
8
+ created_at: string;
9
+ description: (string | null);
12
10
  icon: (string | null);
11
+ id: string;
13
12
  is_active: boolean;
14
- created_at: string;
15
- updated_at: string;
13
+ operation_executor: string;
16
14
  operations?: Record<string, OperationSummary>;
15
+ title?: (string | null);
16
+ updated_at: string;
17
17
  };
@@ -2,14 +2,14 @@
2
2
  * Schema for application response.
3
3
  */
4
4
  export type ApplicationResponseSchema = {
5
- id: string;
6
- title?: (string | null);
7
- description: (string | null);
8
5
  auth_method: string;
9
6
  auth_provider: string;
10
- operation_executor: string;
7
+ created_at: string;
8
+ description: (string | null);
11
9
  icon: (string | null);
10
+ id: string;
12
11
  is_active: boolean;
13
- created_at: string;
12
+ operation_executor: string;
13
+ title?: (string | null);
14
14
  updated_at: string;
15
15
  };
@@ -1,19 +1,21 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  import type { ToolSet } from './ToolSet.js';
3
4
  /**
4
5
  * Response for assistant.
5
6
  */
6
7
  export type AssistantResponse = {
7
- id: string;
8
- pod_id: string;
9
- user_id: string;
10
- name: string;
8
+ accessible_applications: Array<ApplicationAccessConfig>;
9
+ accessible_folders: Array<string>;
10
+ accessible_tables: Array<TableAccessEntry>;
11
+ created_at: any;
11
12
  description: (string | null);
12
13
  icon_url: (string | null);
14
+ id: string;
13
15
  instruction: string;
16
+ name: string;
17
+ pod_id: string;
14
18
  tool_sets: Array<ToolSet>;
15
- accessible_datastores: Array<string>;
16
- accessible_applications: Array<ApplicationAccessConfig>;
17
- created_at: any;
18
19
  updated_at: any;
20
+ user_id: string;
19
21
  };
@@ -1,9 +1,9 @@
1
1
  export type AssistantSurfaceResponse = {
2
- id: string;
3
- pod_id: string;
4
2
  assistant_id: string;
5
3
  assistant_name?: (string | null);
6
- surface_type: string;
7
4
  config: Record<string, any>;
5
+ id: string;
8
6
  is_active: boolean;
7
+ pod_id: string;
8
+ surface_type: string;
9
9
  };
@@ -3,8 +3,8 @@ import type { SubscriptionStatus } from './SubscriptionStatus.js';
3
3
  * Response for subscription cancellation.
4
4
  */
5
5
  export type CancelSubscriptionResponse = {
6
- subscription_id: string;
7
- status: SubscriptionStatus;
8
- message: string;
9
6
  effective_date: (string | null);
7
+ message: string;
8
+ status: SubscriptionStatus;
9
+ subscription_id: string;
10
10
  };
@@ -5,29 +5,25 @@ import type { ForeignKeySpec } from './ForeignKeySpec.js';
5
5
  */
6
6
  export type ColumnSchema = {
7
7
  /**
8
- * Column name
9
- */
10
- name: string;
11
- /**
12
- * Column data type
8
+ * Whether the column is auto-generated
13
9
  */
14
- type: DatastoreDataType;
10
+ auto?: boolean;
15
11
  /**
16
- * Column description
12
+ * Whether this is a computed column
17
13
  */
18
- description?: (string | null);
14
+ computed?: boolean;
19
15
  /**
20
- * Whether the column is required (NOT NULL)
16
+ * Default value for the column
21
17
  */
22
- required?: boolean;
18
+ default?: null;
23
19
  /**
24
- * Whether the column must have unique values
20
+ * Column description
25
21
  */
26
- unique?: boolean;
22
+ description?: (string | null);
27
23
  /**
28
- * Default value for the column
24
+ * SQL expression for computed columns
29
25
  */
30
- default?: null;
26
+ expression?: (string | null);
31
27
  /**
32
28
  * Foreign key specification
33
29
  */
@@ -37,23 +33,27 @@ export type ColumnSchema = {
37
33
  */
38
34
  max_length?: (number | null);
39
35
  /**
40
- * Additional type-specific parameters
36
+ * Column name
41
37
  */
42
- type_params?: (Record<string, any> | null);
38
+ name: string;
43
39
  /**
44
40
  * Allowed options for ENUM columns
45
41
  */
46
42
  options?: (Array<string> | null);
47
43
  /**
48
- * Whether the column is auto-generated
44
+ * Whether the column is required (NOT NULL)
49
45
  */
50
- auto?: boolean;
46
+ required?: boolean;
51
47
  /**
52
- * Whether this is a computed column
48
+ * Column data type
53
49
  */
54
- computed?: boolean;
50
+ type: DatastoreDataType;
55
51
  /**
56
- * SQL expression for computed columns
52
+ * Additional type-specific parameters
57
53
  */
58
- expression?: (string | null);
54
+ type_params?: (Record<string, any> | null);
55
+ /**
56
+ * Whether the column must have unique values
57
+ */
58
+ unique?: boolean;
59
59
  };
@@ -2,12 +2,12 @@
2
2
  * Schema for connect request response.
3
3
  */
4
4
  export type ConnectRequestResponseSchema = {
5
- id: string;
6
- user_id: string;
7
5
  application_id: string;
8
- authorization_url: (string | null);
9
- status: string;
10
6
  attributes: (Record<string, any> | null);
7
+ authorization_url: (string | null);
11
8
  created_at: string;
9
+ id: string;
10
+ status: string;
12
11
  updated_at: string;
12
+ user_id: string;
13
13
  };
@@ -7,9 +7,9 @@ import type { ToolCallResponse } from './ToolCallResponse.js';
7
7
  * Saved conversation message.
8
8
  */
9
9
  export type ConversationMessageResponse = {
10
- id: string;
11
- role: string;
12
10
  content: (NotificationContent | TextContent | ThinkingContent | ToolCallRequest | ToolCallResponse);
13
11
  created_at: string;
12
+ id: string;
14
13
  metadata?: (Record<string, any> | null);
14
+ role: string;
15
15
  };
@@ -4,19 +4,19 @@ import type { ConversationStatus } from './ConversationStatus.js';
4
4
  * Response for conversation.
5
5
  */
6
6
  export type ConversationResponse = {
7
- id: string;
8
- pod_id: (string | null);
9
- organization_id?: (string | null);
10
7
  assistant_id: (string | null);
11
8
  assistant_name?: (string | null);
12
- user_id: string;
13
- title: (string | null);
14
- surface_type?: (string | null);
15
- external_thread_id?: (string | null);
9
+ created_at: any;
16
10
  external_channel_id?: (string | null);
11
+ external_thread_id?: (string | null);
17
12
  external_user_id?: (string | null);
13
+ id: string;
18
14
  model?: (AvailableModels | null);
15
+ organization_id?: (string | null);
16
+ pod_id: (string | null);
19
17
  status: ConversationStatus;
20
- created_at: any;
18
+ surface_type?: (string | null);
19
+ title: (string | null);
21
20
  updated_at: any;
21
+ user_id: string;
22
22
  };
@@ -1,16 +1,18 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  import type { ToolSet } from './ToolSet.js';
3
4
  /**
4
5
  * Request schema for creating an agent.
5
6
  */
6
7
  export type CreateAgentRequest = {
7
- name: string;
8
+ accessible_applications?: Array<ApplicationAccessConfig>;
9
+ accessible_folders?: Array<string>;
10
+ accessible_tables?: Array<TableAccessEntry>;
8
11
  description?: (string | null);
9
12
  icon_url?: (string | null);
10
- instruction: string;
11
13
  input_schema?: (Record<string, any> | null);
14
+ instruction: string;
15
+ name: string;
12
16
  output_schema?: (Record<string, any> | null);
13
17
  tool_sets?: Array<ToolSet>;
14
- accessible_datastores?: Array<string>;
15
- accessible_applications?: Array<ApplicationAccessConfig>;
16
18
  };
@@ -1,14 +1,16 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  import type { ToolSet } from './ToolSet.js';
3
4
  /**
4
5
  * Request to create an assistant.
5
6
  */
6
7
  export type CreateAssistantRequest = {
7
- name: string;
8
+ accessible_applications?: Array<ApplicationAccessConfig>;
9
+ accessible_folders?: Array<string>;
10
+ accessible_tables?: Array<TableAccessEntry>;
8
11
  description?: (string | null);
9
12
  icon_url?: (string | null);
10
13
  instruction: string;
14
+ name: string;
11
15
  tool_sets?: Array<ToolSet>;
12
- accessible_datastores?: Array<string>;
13
- accessible_applications?: Array<ApplicationAccessConfig>;
14
16
  };
@@ -3,9 +3,9 @@ import type { AvailableModels } from './AvailableModels.js';
3
3
  * Request to create a conversation.
4
4
  */
5
5
  export type CreateConversationRequest = {
6
- title?: (string | null);
7
- pod_id?: (string | null);
8
6
  assistant_id?: (string | null);
9
- organization_id?: (string | null);
10
7
  model?: (AvailableModels | null);
8
+ organization_id?: (string | null);
9
+ pod_id?: (string | null);
10
+ title?: (string | null);
11
11
  };
@@ -1,6 +1,5 @@
1
1
  export type CreateDeskRequest = {
2
- name: string;
3
2
  description?: (string | null);
4
- framework?: string;
5
- entry_path?: string;
3
+ name: string;
4
+ public_slug?: (string | null);
6
5
  };
@@ -1,5 +1,10 @@
1
+ import type { FileVisibility } from './FileVisibility.js';
1
2
  export type CreateFolderRequest = {
2
- name: string;
3
3
  description?: (string | null);
4
+ name: string;
4
5
  parent_id?: (string | null);
6
+ /**
7
+ * Optional visibility override for the new folder.
8
+ */
9
+ visibility?: (FileVisibility | null);
5
10
  };
@@ -1,16 +1,18 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  /**
3
4
  * Request to create a function.
4
5
  */
5
6
  export type CreateFunctionRequest = {
6
- name: string;
7
+ accessible_applications?: Array<ApplicationAccessConfig>;
8
+ accessible_folders?: Array<string>;
9
+ accessible_tables?: Array<TableAccessEntry>;
10
+ code?: (string | null);
11
+ config?: (Record<string, any> | null);
12
+ config_schema?: (Record<string, any> | null);
7
13
  description?: (string | null);
8
14
  icon_url?: (string | null);
9
15
  input_schema?: Record<string, any>;
16
+ name: string;
10
17
  output_schema?: Record<string, any>;
11
- config_schema?: (Record<string, any> | null);
12
- config?: (Record<string, any> | null);
13
- code?: (string | null);
14
- accessible_datastores?: Array<string>;
15
- accessible_applications?: Array<ApplicationAccessConfig>;
16
18
  };
@@ -3,14 +3,6 @@ import type { ColumnSchema } from './ColumnSchema.js';
3
3
  * Schema for creating a new table.
4
4
  */
5
5
  export type CreateTableRequest = {
6
- /**
7
- * Table name. Use alphanumeric and underscore only. Names prefixed with `reserved_` are system-managed and should not be user-created.
8
- */
9
- name: string;
10
- /**
11
- * Primary key column name. If not `id`, it must also be declared in `columns`.
12
- */
13
- primary_key_column?: string;
14
6
  /**
15
7
  * Table column definitions. Each column name must be unique. Use `type`, `required`, `default`, `foreign_key`, and `computed` as needed.
16
8
  */
@@ -23,4 +15,12 @@ export type CreateTableRequest = {
23
15
  * Enable row-level security for this table. When enabled, API reads/writes are scoped by current user.
24
16
  */
25
17
  enable_rls?: boolean;
18
+ /**
19
+ * Table name. Use alphanumeric and underscore only. Names prefixed with `reserved_` are system-managed and should not be user-created.
20
+ */
21
+ name: string;
22
+ /**
23
+ * Primary key column name. If not `id`, it must also be declared in `columns`.
24
+ */
25
+ primary_key_column?: string;
26
26
  };
@@ -3,12 +3,12 @@ import type { TriggerType } from './TriggerType.js';
3
3
  * Request to create a trigger.
4
4
  */
5
5
  export type CreateTriggerRequest = {
6
- trigger_type: TriggerType;
7
- pod_id?: (string | null);
8
- config?: Record<string, any>;
9
6
  account_id?: (string | null);
10
7
  application_trigger_id?: (string | null);
8
+ config?: Record<string, any>;
11
9
  datastore_id?: (string | null);
12
10
  filter_instruction?: (string | null);
13
11
  filter_output_schema?: (Record<string, any> | null);
12
+ pod_id?: (string | null);
13
+ trigger_type: TriggerType;
14
14
  };
@@ -1,14 +1,14 @@
1
1
  export type DataStoreFlowStart = {
2
2
  /**
3
- * Datastore name to watch for change events. Defaults to the pod's default datastore.
3
+ * Datastore namespace name to watch for change events.
4
4
  */
5
- datastore_name?: string;
6
- /**
7
- * Table name inside the datastore to subscribe to.
8
- */
9
- table_name: string;
5
+ datastore_name: string;
10
6
  /**
11
7
  * Datastore operations that should trigger this flow (for example: INSERT, UPDATE, DELETE).
12
8
  */
13
9
  operations: Array<string>;
10
+ /**
11
+ * Table name inside the datastore to subscribe to.
12
+ */
13
+ table_name: string;
14
14
  };
@@ -1,7 +1,9 @@
1
+ import type { FileVisibility } from './FileVisibility.js';
1
2
  export type DatastoreFileUploadRequest = {
2
3
  data: string;
3
- name?: (string | null);
4
4
  description?: (string | null);
5
+ name?: (string | null);
5
6
  parent_id?: (string | null);
6
7
  search_enabled?: boolean;
8
+ visibility?: (FileVisibility | null);
7
9
  };
@@ -2,10 +2,10 @@ import type { DecisionNodeConfig } from './DecisionNodeConfig.js';
2
2
  /**
3
3
  * Decision node.
4
4
  */
5
- export type DecisionNode_Input = {
5
+ export type DecisionNode = {
6
+ config: DecisionNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config: DecisionNodeConfig;
11
11
  };
@@ -1,11 +1,8 @@
1
1
  import type { DecisionNodeConfig } from './DecisionNodeConfig.js';
2
- /**
3
- * Decision node.
4
- */
5
- export type DecisionNode_Output = {
2
+ export type DecisionNodeResponse = {
3
+ config: DecisionNodeConfig;
6
4
  id: string;
7
5
  label?: (string | null);
8
6
  position?: (Record<string, number> | null);
9
7
  type?: string;
10
- config: DecisionNodeConfig;
11
8
  };
@@ -1,4 +1,4 @@
1
1
  export type DeskBundleUploadRequest = {
2
- source_archive?: (string | null);
3
2
  html?: (string | null);
3
+ source_archive?: (string | null);
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import type { DeskResponse } from './DeskResponse.js';
2
2
  export type DeskBundleUploadResponse = {
3
- message: string;
4
3
  desk: DeskResponse;
4
+ message: string;
5
5
  };
@@ -1,15 +1,14 @@
1
1
  import type { DeskStatus } from './DeskStatus.js';
2
2
  export type DeskResponse = {
3
+ created_at: any;
4
+ current_release_id?: (string | null);
5
+ description?: (string | null);
3
6
  id: string;
4
- pod_id: string;
5
- user_id: string;
6
7
  name: string;
7
- description?: (string | null);
8
- framework: string;
9
- entry_path: string;
8
+ pod_id: string;
9
+ public_slug: string;
10
10
  source_archive_path?: (string | null);
11
- build_html_path?: (string | null);
12
11
  status: DeskStatus;
13
- created_at: any;
14
12
  updated_at: any;
13
+ user_id: string;
15
14
  };
@@ -1,5 +1,5 @@
1
1
  export type EmailSurfaceConfigCreate = {
2
- type?: string;
3
2
  account_id?: (string | null);
4
3
  inbox_email?: (string | null);
4
+ type?: string;
5
5
  };
@@ -3,9 +3,9 @@ import type { EndNodeConfig } from './EndNodeConfig.js';
3
3
  * End node.
4
4
  */
5
5
  export type EndNode = {
6
+ config?: EndNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config?: EndNodeConfig;
11
11
  };
@@ -0,0 +1,8 @@
1
+ import type { EndNodeConfig } from './EndNodeConfig.js';
2
+ export type EndNodeResponse = {
3
+ config?: EndNodeConfig;
4
+ id: string;
5
+ label?: (string | null);
6
+ position?: (Record<string, number> | null);
7
+ type?: string;
8
+ };
@@ -1,13 +1,12 @@
1
1
  export type EventFlowStart = {
2
- /**
3
- * Integration trigger identifier to subscribe to.
4
- */
5
- application_trigger_id: string;
6
2
  /**
7
3
  * Integration application identifier.
8
4
  */
9
5
  application_id: string;
10
- trigger_config?: Record<string, any>;
6
+ /**
7
+ * Integration trigger identifier to subscribe to.
8
+ */
9
+ application_trigger_id: string;
11
10
  /**
12
11
  * Optional LLM filter instruction executed before flow continuation.
13
12
  */
@@ -16,4 +15,5 @@ export type EventFlowStart = {
16
15
  * Optional expected schema for filter output.
17
16
  */
18
17
  filter_output_schema?: (Record<string, any> | null);
18
+ trigger_config?: Record<string, any>;
19
19
  };
@@ -1,10 +1,10 @@
1
1
  export type FileInfo = {
2
+ created?: (string | null);
3
+ last_modified?: (string | null);
2
4
  name: string;
3
5
  path: string;
4
- type: FileInfo.type;
5
6
  size?: (number | null);
6
- created?: (string | null);
7
- last_modified?: (string | null);
7
+ type: FileInfo.type;
8
8
  };
9
9
  export declare namespace FileInfo {
10
10
  enum type {
@@ -1,18 +1,22 @@
1
+ import type { FileVisibility } from './FileVisibility.js';
1
2
  export type FileResponse = {
2
- id: string;
3
+ content_hash: (string | null);
4
+ created_at: string;
3
5
  datastore_id: string;
4
- parent_id?: (string | null);
5
- kind: string;
6
- name: string;
7
6
  description: (string | null);
8
7
  file_path: (string | null);
9
- content_hash: (string | null);
8
+ graph_status?: string;
9
+ id: string;
10
+ kind: string;
11
+ metadata?: (Record<string, any> | null);
10
12
  mime_type?: (string | null);
11
- size_bytes?: number;
13
+ name: string;
14
+ owner_user_id?: (string | null);
15
+ parent_id?: (string | null);
16
+ permissions_inherit?: boolean;
12
17
  search_enabled?: boolean;
18
+ size_bytes?: number;
13
19
  status: string;
14
- metadata?: (Record<string, any> | null);
15
- graph_status?: string;
16
- created_at: string;
17
20
  updated_at: string;
21
+ visibility?: FileVisibility;
18
22
  };