lemma-sdk 0.2.6 → 0.2.8

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 (206) 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/dist/react/useAssistantSession.js +28 -23
  180. package/package.json +1 -1
  181. package/dist/namespaces/datastores.d.ts +0 -18
  182. package/dist/namespaces/datastores.js +0 -28
  183. package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
  184. package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
  185. package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
  186. package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
  187. package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
  188. package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
  189. package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
  190. package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
  191. package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
  192. package/dist/openapi_client/services/DatastoreService.js +0 -141
  193. package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
  194. package/dist/openapi_client/services/PublicSdkService.js +0 -35
  195. /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
  196. /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
  197. /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
  198. /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
  199. /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
  200. /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
  201. /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
  202. /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
  203. /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
  204. /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
  205. /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
  206. /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import type { SearchMethod } from './SearchMethod.js';
2
2
  export type FileSearchRequest = {
3
- query: string;
4
3
  limit?: number;
5
- search_method?: SearchMethod;
6
4
  /**
7
5
  * Optional folder id to scope search results to that folder subtree.
8
6
  */
9
7
  parent_id?: (string | null);
8
+ query: string;
9
+ search_method?: SearchMethod;
10
10
  };
@@ -1,8 +1,8 @@
1
1
  import type { FileSearchResultSchema } from './FileSearchResultSchema.js';
2
2
  import type { SearchMethod } from './SearchMethod.js';
3
3
  export type FileSearchResponse = {
4
- results: Array<FileSearchResultSchema>;
5
4
  query: string;
5
+ results: Array<FileSearchResultSchema>;
6
6
  search_method: SearchMethod;
7
7
  total_results: number;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  export type FileSearchResultSchema = {
2
- file_id: string;
3
2
  chunk_index: number;
4
3
  content: string;
4
+ file_id: string;
5
5
  metadata?: (Record<string, any> | null);
6
6
  score: number;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export type FileUploadResponse = {
2
- message: string;
3
- success: boolean;
4
2
  file_name: string;
3
+ message: string;
5
4
  path: string;
5
+ success: boolean;
6
6
  };
@@ -0,0 +1,4 @@
1
+ export declare enum FileVisibility {
2
+ PRIVATE = "PRIVATE",
3
+ POD = "POD"
4
+ }
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var FileVisibility;
6
+ (function (FileVisibility) {
7
+ FileVisibility["PRIVATE"] = "PRIVATE";
8
+ FileVisibility["POD"] = "POD";
9
+ })(FileVisibility || (FileVisibility = {}));
@@ -4,13 +4,13 @@ import type { FlowStart } from './FlowStart.js';
4
4
  * Associate a Flow definition with a specific Trigger (Schedule or Event).
5
5
  */
6
6
  export type FlowInstallEntity = {
7
- id?: string;
8
7
  created_at?: string;
9
- updated_at?: string;
10
8
  flow_id: string;
11
- user_id: string;
12
- pod_id: string;
13
9
  flow_start: FlowStart;
14
- trigger_id?: (string | null);
10
+ id?: string;
15
11
  is_active?: boolean;
12
+ pod_id: string;
13
+ trigger_id?: (string | null);
14
+ updated_at?: string;
15
+ user_id: string;
16
16
  };
@@ -0,0 +1,23 @@
1
+ import type { AgentNodeResponse } from './AgentNodeResponse.js';
2
+ import type { DecisionNodeResponse } from './DecisionNodeResponse.js';
3
+ import type { EndNodeResponse } from './EndNodeResponse.js';
4
+ import type { FlowStart } from './FlowStart.js';
5
+ import type { FormNodeResponse } from './FormNodeResponse.js';
6
+ import type { FunctionNodeResponse } from './FunctionNodeResponse.js';
7
+ import type { LoopNodeResponse } from './LoopNodeResponse.js';
8
+ import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
9
+ import type { WorkflowEdge } from './WorkflowEdge.js';
10
+ export type FlowResponse = {
11
+ created_at?: (string | null);
12
+ description?: (string | null);
13
+ edges?: Array<WorkflowEdge>;
14
+ icon_url?: (string | null);
15
+ id: string;
16
+ is_active?: boolean;
17
+ name: string;
18
+ nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
19
+ pod_id: string;
20
+ require_user_install?: boolean;
21
+ start?: (FlowStart | null);
22
+ updated_at?: (string | null);
23
+ };
@@ -5,20 +5,20 @@ import type { StepExecution } from './StepExecution.js';
5
5
  * FlowRun Aggregate representing an execution of a Flow.
6
6
  */
7
7
  export type FlowRunEntity = {
8
- id?: string;
8
+ completed_at?: (string | null);
9
9
  created_at?: string;
10
- updated_at?: string;
10
+ current_node_id?: (string | null);
11
+ execution_context?: Record<string, any>;
12
+ execution_stack?: Array<StackFrame>;
11
13
  flow_id: string;
14
+ id?: string;
12
15
  pod_id: string;
13
- user_id: string;
14
- trigger_type?: string;
16
+ started_at?: (string | null);
15
17
  status?: FlowRunStatus;
16
- current_node_id?: (string | null);
18
+ step_history?: Array<StepExecution>;
19
+ trigger_type?: string;
20
+ updated_at?: string;
21
+ user_id: string;
17
22
  waiting_task_id?: (string | null);
18
23
  waiting_trigger_id?: (string | null);
19
- execution_stack?: Array<StackFrame>;
20
- execution_context?: Record<string, any>;
21
- step_history?: Array<StepExecution>;
22
- started_at?: (string | null);
23
- completed_at?: (string | null);
24
24
  };
@@ -3,12 +3,12 @@ import type { EventFlowStart } from './EventFlowStart.js';
3
3
  import type { FlowStartType } from './FlowStartType.js';
4
4
  import type { ScheduledFlowStart } from './ScheduledFlowStart.js';
5
5
  export type FlowStart = {
6
- /**
7
- * Flow start mode: MANUAL, SCHEDULED, EVENT, or DATASTORE_EVENT.
8
- */
9
- type: FlowStartType;
10
6
  /**
11
7
  * Start mode configuration payload. Required for non-manual start types.
12
8
  */
13
9
  config?: (ScheduledFlowStart | EventFlowStart | DataStoreFlowStart | null);
10
+ /**
11
+ * Flow start mode: MANUAL, SCHEDULED, EVENT, or DATASTORE_EVENT.
12
+ */
13
+ type: FlowStartType;
14
14
  };
@@ -3,9 +3,9 @@ import type { FormNodeConfig } from './FormNodeConfig.js';
3
3
  * Form node for user input.
4
4
  */
5
5
  export type FormNode = {
6
+ config: FormNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config: FormNodeConfig;
11
11
  };
@@ -0,0 +1,8 @@
1
+ import type { FormNodeConfig } from './FormNodeConfig.js';
2
+ export type FormNodeResponse = {
3
+ config: FormNodeConfig;
4
+ id: string;
5
+ label?: (string | null);
6
+ position?: (Record<string, number> | null);
7
+ type?: string;
8
+ };
@@ -2,10 +2,10 @@ import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
2
2
  /**
3
3
  * Function node.
4
4
  */
5
- export type FunctionNode_Input = {
5
+ export type FunctionNode = {
6
+ config: FunctionNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config: FunctionNodeConfig;
11
11
  };
@@ -1,11 +1,8 @@
1
1
  import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
2
- /**
3
- * Function node.
4
- */
5
- export type FunctionNode_Output = {
2
+ export type FunctionNodeResponse = {
3
+ config: FunctionNodeConfig;
6
4
  id: string;
7
5
  label?: (string | null);
8
6
  position?: (Record<string, number> | null);
9
7
  type?: string;
10
- config: FunctionNodeConfig;
11
8
  };
@@ -1,24 +1,26 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
2
  import type { FunctionStatus } from './FunctionStatus.js';
3
+ import type { TableAccessEntry } from './TableAccessEntry.js';
3
4
  /**
4
5
  * Function response.
5
6
  */
6
7
  export type FunctionResponse = {
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
+ code?: (string | null);
12
+ code_path?: (string | null);
13
+ config?: (Record<string, any> | null);
14
+ config_schema?: (Record<string, any> | null);
15
+ created_at: any;
11
16
  description?: (string | null);
12
17
  icon_url?: (string | null);
18
+ id: string;
13
19
  input_schema: Record<string, any>;
20
+ name: string;
14
21
  output_schema: Record<string, any>;
15
- config_schema?: (Record<string, any> | null);
16
- config?: (Record<string, any> | null);
22
+ pod_id: string;
17
23
  status: FunctionStatus;
18
- code_path?: (string | null);
19
- code?: (string | null);
20
- accessible_datastores: Array<string>;
21
- accessible_applications: Array<ApplicationAccessConfig>;
22
- created_at: any;
23
24
  updated_at: any;
25
+ user_id: string;
24
26
  };
@@ -3,15 +3,15 @@ import type { FunctionRunStatus } from './FunctionRunStatus.js';
3
3
  * Function run response.
4
4
  */
5
5
  export type FunctionRunResponse = {
6
- id: string;
6
+ completed_at: any;
7
+ created_at: any;
8
+ error?: (string | null);
7
9
  function_id: string;
8
- user_id: string;
10
+ id: string;
9
11
  input_data?: (Record<string, any> | null);
10
- output_data?: (Record<string, any> | null);
11
- status: FunctionRunStatus;
12
- error?: (string | null);
13
12
  logs?: (string | null);
13
+ output_data?: (Record<string, any> | null);
14
14
  started_at: any;
15
- completed_at: any;
16
- created_at: any;
15
+ status: FunctionRunStatus;
16
+ user_id: string;
17
17
  };
@@ -2,7 +2,7 @@
2
2
  * Response payload for uploaded icons.
3
3
  */
4
4
  export type IconUploadResponse = {
5
+ content_type: string;
5
6
  icon_url: string;
6
7
  storage_path: string;
7
- content_type: string;
8
8
  };
@@ -3,9 +3,9 @@ import type { LoopNodeConfig } from './LoopNodeConfig.js';
3
3
  * Loop node.
4
4
  */
5
5
  export type LoopNode = {
6
+ config: LoopNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config: LoopNodeConfig;
11
11
  };
@@ -3,15 +3,15 @@
3
3
  */
4
4
  export type LoopNodeConfig = {
5
5
  /**
6
- * Path to array in execution state
6
+ * ID of the node to execute for each item
7
7
  */
8
- items_path: string;
8
+ child_node_id: string;
9
9
  /**
10
10
  * Variable name for current item
11
11
  */
12
12
  item_var_name?: string;
13
13
  /**
14
- * ID of the node to execute for each item
14
+ * Path to array in execution state
15
15
  */
16
- child_node_id: string;
16
+ items_path: string;
17
17
  };
@@ -0,0 +1,8 @@
1
+ import type { LoopNodeConfig } from './LoopNodeConfig.js';
2
+ export type LoopNodeResponse = {
3
+ config: LoopNodeConfig;
4
+ id: string;
5
+ label?: (string | null);
6
+ position?: (Record<string, number> | null);
7
+ type?: string;
8
+ };
@@ -1,4 +1,4 @@
1
1
  export type NotificationContent = {
2
- type?: string;
3
2
  content: string;
3
+ type?: string;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  export type OperationDetail = {
2
- name: string;
3
2
  description?: (string | null);
4
3
  input_schema: Record<string, any>;
4
+ name: string;
5
5
  output_schema?: (Record<string, any> | null);
6
6
  };
@@ -1,4 +1,4 @@
1
1
  export type OperationExecutionRequest = {
2
- payload: Record<string, any>;
3
2
  account_id?: (string | null);
3
+ payload: Record<string, any>;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export type OperationSummary = {
2
- name: string;
3
2
  description?: (string | null);
3
+ name: string;
4
4
  };
@@ -4,14 +4,14 @@ import type { OrganizationRole } from './OrganizationRole.js';
4
4
  * Organization invitation response schema.
5
5
  */
6
6
  export type OrganizationInvitationResponse = {
7
- id: string;
7
+ accepted_at?: (string | null);
8
+ created_at: string;
8
9
  email: string;
10
+ expires_at: string;
11
+ id: string;
9
12
  organization_id: string;
13
+ revoked_at?: (string | null);
10
14
  role: OrganizationRole;
11
15
  status: OrganizationInvitationStatus;
12
- expires_at: string;
13
- accepted_at?: (string | null);
14
- revoked_at?: (string | null);
15
- created_at: string;
16
16
  updated_at: string;
17
17
  };
@@ -4,11 +4,11 @@ import type { UserResponse } from './UserResponse.js';
4
4
  * Organization member response schema.
5
5
  */
6
6
  export type OrganizationMemberResponse = {
7
+ created_at: string;
7
8
  id: string;
8
- user_id: string;
9
9
  organization_id: string;
10
10
  role: OrganizationRole;
11
- user?: (UserResponse | null);
12
- created_at: string;
13
11
  updated_at: string;
12
+ user?: (UserResponse | null);
13
+ user_id: string;
14
14
  };
@@ -2,9 +2,9 @@
2
2
  * Organization response schema.
3
3
  */
4
4
  export type OrganizationResponse = {
5
+ created_at: string;
5
6
  id: string;
6
7
  name: string;
7
8
  slug: string;
8
- created_at: string;
9
9
  updated_at: string;
10
10
  };
@@ -3,15 +3,15 @@ import type { BillingInterval } from './BillingInterval.js';
3
3
  * Response schema for a plan.
4
4
  */
5
5
  export type PlanResponse = {
6
+ billing_interval: BillingInterval;
7
+ created_at: string;
8
+ currency: string;
9
+ description: (string | null);
10
+ features: Record<string, any>;
6
11
  id: string;
12
+ is_active: boolean;
7
13
  name: string;
8
- description: (string | null);
9
14
  price_cents: number;
10
- currency: string;
11
- billing_interval: BillingInterval;
12
- features: Record<string, any>;
13
15
  seat_limit: (number | null);
14
- is_active: boolean;
15
- created_at: string;
16
16
  updated_at: string;
17
17
  };
@@ -1,8 +1,8 @@
1
1
  import type { PodAppMode } from './PodAppMode.js';
2
2
  export type PodAppConfigItem = {
3
- application_id: string;
3
+ account_id?: (string | null);
4
4
  alias: string;
5
- mode: PodAppMode;
5
+ application_id: string;
6
6
  is_installed: boolean;
7
- account_id?: (string | null);
7
+ mode: PodAppMode;
8
8
  };
@@ -4,10 +4,10 @@ import type { PodType } from './PodType.js';
4
4
  * Pod creation request schema.
5
5
  */
6
6
  export type PodCreateRequest = {
7
- organization_id: string;
8
- name: string;
9
7
  description?: (string | null);
10
8
  icon_url?: (string | null);
11
- type?: PodType;
9
+ name: string;
10
+ organization_id: string;
12
11
  status?: PodStatus;
12
+ type?: PodType;
13
13
  };
@@ -1,7 +1,7 @@
1
1
  export type PodFlowConfigItem = {
2
- flow_id: string;
3
- name: string;
4
2
  description?: (string | null);
5
- is_installed: boolean;
3
+ flow_id: string;
6
4
  install_id?: (string | null);
5
+ is_installed: boolean;
6
+ name: string;
7
7
  };
@@ -5,6 +5,6 @@ import type { PodResponse } from './PodResponse.js';
5
5
  export type PodListResponse = {
6
6
  items: Array<PodResponse>;
7
7
  limit: number;
8
- total: number;
9
8
  next_page_token?: (string | null);
9
+ total: number;
10
10
  };
@@ -5,6 +5,6 @@ import type { PodMemberResponse } from './PodMemberResponse.js';
5
5
  export type PodMemberListResponse = {
6
6
  items: Array<PodMemberResponse>;
7
7
  limit: number;
8
- total: number;
9
8
  next_page_token?: (string | null);
9
+ total: number;
10
10
  };
@@ -3,10 +3,10 @@ import type { PodRole } from './PodRole.js';
3
3
  * Pod member response schema.
4
4
  */
5
5
  export type PodMemberResponse = {
6
+ created_at: string;
6
7
  id: string;
7
- pod_id: string;
8
8
  organization_member_id: string;
9
+ pod_id: string;
9
10
  role: PodRole;
10
- created_at: string;
11
11
  updated_at: string;
12
12
  };
@@ -1,4 +1,4 @@
1
1
  export type PodPermissionsResponse = {
2
- pod_id: string;
3
2
  actions: Array<string>;
3
+ pod_id: string;
4
4
  };
@@ -4,15 +4,15 @@ import type { PodType } from './PodType.js';
4
4
  * Pod response schema.
5
5
  */
6
6
  export type PodResponse = {
7
+ created_at: string;
8
+ description?: (string | null);
9
+ icon_url?: (string | null);
7
10
  id: string;
8
- user_id: string;
9
- organization_id: string;
10
11
  name: string;
12
+ organization_id: string;
11
13
  slug: string;
12
- description?: (string | null);
13
- icon_url?: (string | null);
14
- type: PodType;
15
14
  status: PodStatus;
16
- created_at: string;
15
+ type: PodType;
17
16
  updated_at: string;
17
+ user_id: string;
18
18
  };
@@ -4,9 +4,9 @@ import type { PodType } from './PodType.js';
4
4
  * Pod update request schema.
5
5
  */
6
6
  export type PodUpdateRequest = {
7
- name?: (string | null);
8
7
  description?: (string | null);
9
8
  icon_url?: (string | null);
10
- type?: (PodType | null);
9
+ name?: (string | null);
11
10
  status?: (PodStatus | null);
11
+ type?: (PodType | null);
12
12
  };
@@ -3,7 +3,7 @@ import type { UsageRecordResponse } from './UsageRecordResponse.js';
3
3
  * Response schema for recent usage.
4
4
  */
5
5
  export type RecentUsageResponse = {
6
+ days: number;
6
7
  items: Array<UsageRecordResponse>;
7
8
  total: number;
8
- days: number;
9
9
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type RecordListResponse = {
5
5
  items: Array<Record<string, any>>;
6
- total?: (number | null);
7
6
  limit: number;
8
7
  next_page_token?: (string | null);
8
+ total?: (number | null);
9
9
  };
@@ -8,13 +8,13 @@ export type RecordQueryRequest = {
8
8
  * Structured filter conditions combined with AND semantics. Example: `[{"field": "status", "op": "eq", "value": "OPEN"}]`.
9
9
  */
10
10
  filters?: Array<RecordFilter>;
11
- /**
12
- * Ordered sort clauses. Example: `[{"field": "created_at", "direction": "desc"}]`.
13
- */
14
- sort?: Array<RecordSort>;
15
11
  limit?: number;
16
12
  /**
17
13
  * Opaque token from a previous response page.
18
14
  */
19
15
  page_token?: (string | null);
16
+ /**
17
+ * Ordered sort clauses. Example: `[{"field": "created_at", "direction": "desc"}]`.
18
+ */
19
+ sort?: Array<RecordSort>;
20
20
  };
@@ -1,11 +1,11 @@
1
1
  import type { RecordSortDirection } from './RecordSortDirection.js';
2
2
  export type RecordSort = {
3
- /**
4
- * Table column name to sort by.
5
- */
6
- field: string;
7
3
  /**
8
4
  * Sort direction.
9
5
  */
10
6
  direction?: RecordSortDirection;
7
+ /**
8
+ * Table column name to sort by.
9
+ */
10
+ field: string;
11
11
  };
@@ -1,7 +1,7 @@
1
1
  export type SearchResult = {
2
- title: string;
3
- url: string;
2
+ score?: (number | null);
4
3
  snippet: string;
5
4
  source: string;
6
- score?: (number | null);
5
+ title: string;
6
+ url: string;
7
7
  };
@@ -2,9 +2,9 @@
2
2
  * Response for seat availability info.
3
3
  */
4
4
  export type SeatInfoResponse = {
5
- organization_id: string;
5
+ current_seats: number;
6
6
  has_available_seats: boolean;
7
+ organization_id: string;
7
8
  seat_limit: (number | null);
8
- current_seats: number;
9
9
  seats_remaining: (number | null);
10
10
  };
@@ -1,6 +1,6 @@
1
1
  export type SlackSurfaceConfigCreate = {
2
- type?: string;
3
2
  account_id?: (string | null);
4
3
  allow_dm?: boolean;
5
4
  allowed_channel_ids?: Array<string>;
5
+ type?: string;
6
6
  };
@@ -2,10 +2,10 @@
2
2
  * Execution stack frame for loops.
3
3
  */
4
4
  export type StackFrame = {
5
- node_id: string;
6
- return_node_id?: (string | null);
7
5
  index: number;
8
- items: Array<any>;
9
6
  item_var: string;
7
+ items: Array<any>;
8
+ node_id: string;
10
9
  results?: Array<any>;
10
+ return_node_id?: (string | null);
11
11
  };