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
@@ -2,13 +2,13 @@
2
2
  * Request to start a subscription.
3
3
  */
4
4
  export type StartSubscriptionRequest = {
5
+ /**
6
+ * URL to redirect if payment is cancelled
7
+ */
8
+ cancel_url: string;
5
9
  plan_id: string;
6
10
  /**
7
11
  * URL to redirect after successful payment
8
12
  */
9
13
  success_url: string;
10
- /**
11
- * URL to redirect if payment is cancelled
12
- */
13
- cancel_url: string;
14
14
  };
@@ -3,11 +3,11 @@ import type { FlowRunStatus } from './FlowRunStatus.js';
3
3
  * Record of a single node execution.
4
4
  */
5
5
  export type StepExecution = {
6
- node_id: string;
7
- status: FlowRunStatus;
8
- started_at: string;
9
6
  completed_at?: (string | null);
7
+ error?: (string | null);
10
8
  input_data?: (Record<string, any> | null);
9
+ node_id: string;
11
10
  output_data?: null;
12
- error?: (string | null);
11
+ started_at: string;
12
+ status: FlowRunStatus;
13
13
  };
@@ -4,7 +4,7 @@ import type { SubscriptionStatus } from './SubscriptionStatus.js';
4
4
  */
5
5
  export type SubscriptionStatusResponse = {
6
6
  has_subscription: boolean;
7
- status: (SubscriptionStatus | null);
8
7
  is_active: boolean;
9
8
  plan_name: (string | null);
9
+ status: (SubscriptionStatus | null);
10
10
  };
@@ -4,16 +4,16 @@ import type { SubscriptionStatus } from './SubscriptionStatus.js';
4
4
  * Subscription response with plan details.
5
5
  */
6
6
  export type SubscriptionWithPlanResponse = {
7
+ cancel_at_period_end: boolean;
8
+ created_at: string;
9
+ current_period_end: (string | null);
10
+ current_period_start: (string | null);
11
+ dodo_subscription_id: (string | null);
7
12
  id: string;
8
13
  organization_id: string;
9
- plan_id: string;
10
14
  plan: PlanResponse;
11
- status: SubscriptionStatus;
12
- dodo_subscription_id: (string | null);
13
- current_period_start: (string | null);
14
- current_period_end: (string | null);
15
+ plan_id: string;
15
16
  seat_count: number;
16
- cancel_at_period_end: boolean;
17
- created_at: string;
17
+ status: SubscriptionStatus;
18
18
  updated_at: string;
19
19
  };
@@ -0,0 +1,5 @@
1
+ import type { TableAccessMode } from './TableAccessMode.js';
2
+ export type TableAccessEntry = {
3
+ mode?: TableAccessMode;
4
+ table_name: string;
5
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Mode for workload table access permissions.
3
+ */
4
+ export declare enum TableAccessMode {
5
+ READ = "READ",
6
+ WRITE = "WRITE"
7
+ }
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Mode for workload table access permissions.
7
+ */
8
+ export var TableAccessMode;
9
+ (function (TableAccessMode) {
10
+ TableAccessMode["READ"] = "READ";
11
+ TableAccessMode["WRITE"] = "WRITE";
12
+ })(TableAccessMode || (TableAccessMode = {}));
@@ -3,13 +3,13 @@ import type { ColumnSchema } from './ColumnSchema.js';
3
3
  * Schema for table response.
4
4
  */
5
5
  export type TableResponse = {
6
- id: string;
7
- datastore_id: string;
8
- name: string;
9
- primary_key_column: string;
10
6
  columns: Array<ColumnSchema>;
11
7
  config: (Record<string, any> | null);
12
- enable_rls: boolean;
13
8
  created_at: string;
9
+ datastore_id: string;
10
+ enable_rls: boolean;
11
+ id: string;
12
+ name: string;
13
+ primary_key_column: string;
14
14
  updated_at: string;
15
15
  };
@@ -7,9 +7,9 @@ import type { ToolCallResponse } from './ToolCallResponse.js';
7
7
  * Response schema for task message.
8
8
  */
9
9
  export type TaskMessageResponse = {
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
  };
@@ -3,14 +3,14 @@ import type { TaskStatus } from './TaskStatus.js';
3
3
  * Response schema for task.
4
4
  */
5
5
  export type TaskResponse = {
6
- id: string;
7
- pod_id: string;
8
6
  agent_id: string;
9
- user_id: string;
7
+ created_at: string;
8
+ error: (string | null);
9
+ id: string;
10
10
  input_data: (Record<string, any> | null);
11
11
  output_data: (Record<string, any> | null);
12
+ pod_id: string;
12
13
  status: TaskStatus;
13
- error: (string | null);
14
- created_at: string;
15
14
  updated_at: string;
15
+ user_id: string;
16
16
  };
@@ -1,6 +1,6 @@
1
1
  export type TeamsSurfaceConfigCreate = {
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
  };
@@ -1,4 +1,4 @@
1
1
  export type TextContent = {
2
- type?: string;
3
2
  content: string;
3
+ type?: string;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export type ThinkingContent = {
2
- type?: string;
3
2
  content: string;
3
+ type?: string;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  export type ToolCallRequest = {
2
- type?: string;
3
- tool_name: string;
4
2
  tool_call_id: string;
5
3
  tool_input?: any;
4
+ tool_name: string;
5
+ type?: string;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  export type ToolCallResponse = {
2
- type?: string;
3
2
  tool_call_id: string;
4
3
  tool_output?: any;
4
+ type?: string;
5
5
  };
@@ -3,18 +3,18 @@ import type { TriggerType } from './TriggerType.js';
3
3
  * Trigger response.
4
4
  */
5
5
  export type TriggerResponse = {
6
- id: string;
7
- user_id: string;
8
- pod_id: (string | null);
9
- trigger_type: TriggerType;
10
- config: Record<string, any>;
11
6
  account_id: (string | null);
12
7
  application_trigger_id: (string | null);
8
+ config: Record<string, any>;
9
+ created_at: string;
13
10
  datastore_id: (string | null);
14
11
  filter_instruction: (string | null);
15
12
  filter_output_schema: (Record<string, any> | null);
13
+ id: string;
16
14
  is_active: boolean;
17
15
  is_internal: boolean;
18
- created_at: string;
16
+ pod_id: (string | null);
17
+ trigger_type: TriggerType;
19
18
  updated_at: string;
19
+ user_id: string;
20
20
  };
@@ -1,15 +1,17 @@
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 updating an agent.
5
6
  */
6
7
  export type UpdateAgentRequest = {
8
+ accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
+ accessible_folders?: (Array<string> | null);
10
+ accessible_tables?: (Array<TableAccessEntry> | null);
7
11
  description?: (string | null);
8
12
  icon_url?: (string | null);
9
- instruction?: (string | null);
10
13
  input_schema?: (Record<string, any> | null);
14
+ instruction?: (string | null);
11
15
  output_schema?: (Record<string, any> | null);
12
16
  tool_sets?: (Array<ToolSet> | null);
13
- accessible_datastores?: (Array<string> | null);
14
- accessible_applications?: (Array<ApplicationAccessConfig> | null);
15
17
  };
@@ -1,13 +1,15 @@
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 update an assistant.
5
6
  */
6
7
  export type UpdateAssistantRequest = {
8
+ accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
+ accessible_folders?: (Array<string> | null);
10
+ accessible_tables?: (Array<TableAccessEntry> | null);
7
11
  description?: (string | null);
8
12
  icon_url?: (string | null);
9
13
  instruction?: (string | null);
10
14
  tool_sets?: (Array<ToolSet> | null);
11
- accessible_datastores?: (Array<string> | null);
12
- accessible_applications?: (Array<ApplicationAccessConfig> | null);
13
15
  };
@@ -3,6 +3,6 @@ import type { AvailableModels } from './AvailableModels.js';
3
3
  * Request to update a conversation.
4
4
  */
5
5
  export type UpdateConversationRequest = {
6
- title?: (string | null);
7
6
  model?: (AvailableModels | null);
7
+ title?: (string | null);
8
8
  };
@@ -1,4 +1,4 @@
1
1
  export type UpdateDeskRequest = {
2
2
  description?: (string | null);
3
- entry_path?: (string | null);
3
+ public_slug?: (string | null);
4
4
  };
@@ -1,12 +1,14 @@
1
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { TableAccessEntry } from './TableAccessEntry.js';
2
3
  /**
3
4
  * Request to update a function.
4
5
  */
5
6
  export type UpdateFunctionRequest = {
7
+ accessible_applications?: (Array<ApplicationAccessConfig> | null);
8
+ accessible_folders?: (Array<string> | null);
9
+ accessible_tables?: (Array<TableAccessEntry> | null);
10
+ code?: (string | null);
11
+ config?: (Record<string, any> | null);
6
12
  description?: (string | null);
7
13
  icon_url?: (string | null);
8
- config?: (Record<string, any> | null);
9
- code?: (string | null);
10
- accessible_datastores?: (Array<string> | null);
11
- accessible_applications?: (Array<ApplicationAccessConfig> | null);
12
14
  };
@@ -2,20 +2,20 @@
2
2
  * Response schema for a usage record.
3
3
  */
4
4
  export type UsageRecordResponse = {
5
+ created_at: string;
5
6
  id: string;
7
+ input_cost_usd: number;
8
+ input_tokens: number;
9
+ metadata: Record<string, any>;
10
+ model_name: string;
11
+ occurred_at: string;
6
12
  organization_id: string;
13
+ output_cost_usd: number;
14
+ output_tokens: number;
7
15
  pod_id: string;
8
- user_id: string;
9
- model_name: string;
10
- source_type: string;
11
16
  source_id: string;
12
- input_tokens: number;
13
- output_tokens: number;
14
- total_tokens: number;
15
- input_cost_usd: number;
16
- output_cost_usd: number;
17
+ source_type: string;
17
18
  total_cost_usd: number;
18
- metadata: Record<string, any>;
19
- occurred_at: string;
20
- created_at: string;
19
+ total_tokens: number;
20
+ user_id: string;
21
21
  };
@@ -2,15 +2,15 @@
2
2
  * Response schema for usage summary.
3
3
  */
4
4
  export type UsageSummaryResponse = {
5
+ end_date: string;
5
6
  organization_id?: (string | null);
7
+ period_days: number;
6
8
  pod_id?: (string | null);
7
- user_id?: (string | null);
8
9
  start_date: string;
9
- end_date: string;
10
+ total_by_model: Record<string, Record<string, number>>;
11
+ total_cost_usd: number;
10
12
  total_input_tokens: number;
11
13
  total_output_tokens: number;
12
14
  total_tokens: number;
13
- total_cost_usd: number;
14
- total_by_model: Record<string, Record<string, number>>;
15
- period_days: number;
15
+ user_id?: (string | null);
16
16
  };
@@ -2,10 +2,10 @@
2
2
  * User profile request schema.
3
3
  */
4
4
  export type UserProfileRequest = {
5
+ country?: (string | null);
6
+ date_of_birth?: (string | null);
5
7
  first_name?: (string | null);
6
8
  last_name?: (string | null);
7
9
  mobile_number?: (string | null);
8
- country?: (string | null);
9
10
  timezone?: (string | null);
10
- date_of_birth?: (string | null);
11
11
  };
@@ -2,17 +2,17 @@
2
2
  * User response schema.
3
3
  */
4
4
  export type UserResponse = {
5
- id: string;
5
+ country?: (string | null);
6
+ created_at: string;
7
+ date_of_birth?: (string | null);
6
8
  email: string;
7
- is_verified: boolean;
9
+ first_name?: (string | null);
10
+ id: string;
8
11
  is_active: boolean;
9
12
  is_superuser: boolean;
10
- first_name?: (string | null);
13
+ is_verified: boolean;
11
14
  last_name?: (string | null);
12
15
  mobile_number?: (string | null);
13
- country?: (string | null);
14
16
  timezone?: (string | null);
15
- date_of_birth?: (string | null);
16
- created_at: string;
17
17
  updated_at: string;
18
18
  };
@@ -1,7 +1,7 @@
1
1
  export type ValidationError = {
2
+ ctx?: Record<string, any>;
3
+ input?: any;
2
4
  loc: Array<(string | number)>;
3
5
  msg: string;
4
6
  type: string;
5
- input?: any;
6
- ctx?: Record<string, any>;
7
7
  };
@@ -1,4 +1,4 @@
1
1
  export type VerifyTokenResponse = {
2
- user_id: string;
3
2
  email: string;
3
+ user_id: string;
4
4
  };
@@ -3,9 +3,9 @@ import type { WaitUntilNodeConfig } from './WaitUntilNodeConfig.js';
3
3
  * Wait Until node.
4
4
  */
5
5
  export type WaitUntilNode = {
6
+ config: WaitUntilNodeConfig;
6
7
  id: string;
7
8
  label?: (string | null);
8
9
  position?: (Record<string, number> | null);
9
10
  type?: string;
10
- config: WaitUntilNodeConfig;
11
11
  };
@@ -0,0 +1,8 @@
1
+ import type { WaitUntilNodeConfig } from './WaitUntilNodeConfig.js';
2
+ export type WaitUntilNodeResponse = {
3
+ config: WaitUntilNodeConfig;
4
+ id: string;
5
+ label?: (string | null);
6
+ position?: (Record<string, number> | null);
7
+ type?: string;
8
+ };
@@ -2,24 +2,24 @@
2
2
  * Response model for web search agent.
3
3
  */
4
4
  export type WebSearchAgentResponse = {
5
- /**
6
- * Whether the web search was successful
7
- */
8
- success: boolean;
9
5
  /**
10
6
  * The answer generated from the search results
11
7
  */
12
8
  answer?: (string | null);
13
9
  /**
14
- * List of search results with title and URL
10
+ * Error message if the web search was not successful
15
11
  */
16
- search_results?: (Array<Record<string, string>> | null);
12
+ error?: (string | null);
17
13
  /**
18
14
  * A message to the user about the web search results
19
15
  */
20
16
  message?: (string | null);
21
17
  /**
22
- * Error message if the web search was not successful
18
+ * List of search results with title and URL
23
19
  */
24
- error?: (string | null);
20
+ search_results?: (Array<Record<string, string>> | null);
21
+ /**
22
+ * Whether the web search was successful
23
+ */
24
+ success: boolean;
25
25
  };
@@ -2,12 +2,12 @@
2
2
  * Request model for standard web search
3
3
  */
4
4
  export type WebSearchRequest = {
5
- /**
6
- * Search query string
7
- */
8
- query: string;
9
5
  /**
10
6
  * Maximum number of search results to return
11
7
  */
12
8
  max_results?: number;
9
+ /**
10
+ * Search query string
11
+ */
12
+ query: string;
13
13
  };
@@ -4,19 +4,19 @@ import type { SearchResult } from './SearchResult.js';
4
4
  */
5
5
  export type WebSearchResponse = {
6
6
  /**
7
- * Whether the search was successful
8
- */
9
- success: boolean;
10
- /**
11
- * List of search results
7
+ * Error message if the search was not successful
12
8
  */
13
- results?: Array<SearchResult>;
9
+ error?: (string | null);
14
10
  /**
15
11
  * Status message
16
12
  */
17
13
  message?: (string | null);
18
14
  /**
19
- * Error message if the search was not successful
15
+ * List of search results
20
16
  */
21
- error?: (string | null);
17
+ results?: Array<SearchResult>;
18
+ /**
19
+ * Whether the search was successful
20
+ */
21
+ success: boolean;
22
22
  };
@@ -1,5 +1,5 @@
1
1
  export type WhatsAppSurfaceConfigCreate = {
2
- type?: string;
3
2
  account_id?: (string | null);
4
3
  phone_number_id?: (string | null);
4
+ type?: string;
5
5
  };
@@ -1,9 +1,5 @@
1
1
  import type { FlowStart } from './FlowStart.js';
2
2
  export type WorkflowCreateRequest = {
3
- /**
4
- * Workflow name.
5
- */
6
- name: string;
7
3
  /**
8
4
  * Optional workflow description.
9
5
  */
@@ -13,11 +9,15 @@ export type WorkflowCreateRequest = {
13
9
  */
14
10
  icon_url?: (string | null);
15
11
  /**
16
- * Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
12
+ * Workflow name.
17
13
  */
18
- start?: (FlowStart | null);
14
+ name: string;
19
15
  /**
20
16
  * Require per-user workflow installation before execution.
21
17
  */
22
18
  require_user_install?: boolean;
19
+ /**
20
+ * Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
21
+ */
22
+ start?: (FlowStart | null);
23
23
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type WorkflowEdge = {
5
5
  id: string;
6
+ label?: (string | null);
6
7
  source: string;
7
8
  target: string;
8
- label?: (string | null);
9
9
  };
@@ -1,9 +1,9 @@
1
- import type { AgentNode_Input } from './AgentNode_Input.js';
2
- import type { DecisionNode_Input } from './DecisionNode_Input.js';
1
+ import type { AgentNode } from './AgentNode.js';
2
+ import type { DecisionNode } from './DecisionNode.js';
3
3
  import type { EndNode } from './EndNode.js';
4
4
  import type { FlowStart } from './FlowStart.js';
5
5
  import type { FormNode } from './FormNode.js';
6
- import type { FunctionNode_Input } from './FunctionNode_Input.js';
6
+ import type { FunctionNode } from './FunctionNode.js';
7
7
  import type { LoopNode } from './LoopNode.js';
8
8
  import type { WaitUntilNode } from './WaitUntilNode.js';
9
9
  import type { WorkflowEdge } from './WorkflowEdge.js';
@@ -11,14 +11,14 @@ import type { WorkflowEdge } from './WorkflowEdge.js';
11
11
  * Named request body for replacing a workflow graph.
12
12
  */
13
13
  export type WorkflowGraphUpdateRequest = {
14
- /**
15
- * Complete node list for the workflow graph. Agent/function `input_mapping` entries must use explicit typed bindings like `{"type": "expression", "value": "start.payload.issue.key"}` or `{"type": "literal", "value": "finance"}`.
16
- */
17
- nodes: Array<(FormNode | AgentNode_Input | FunctionNode_Input | DecisionNode_Input | LoopNode | WaitUntilNode | EndNode)>;
18
14
  /**
19
15
  * Complete edge list connecting the provided nodes.
20
16
  */
21
17
  edges: Array<WorkflowEdge>;
18
+ /**
19
+ * Complete node list for the workflow graph. Agent/function `input_mapping` entries must use explicit typed bindings like `{"type": "expression", "value": "start.payload.issue.key"}` or `{"type": "literal", "value": "finance"}`.
20
+ */
21
+ nodes: Array<(FormNode | AgentNode | FunctionNode | DecisionNode | LoopNode | WaitUntilNode | EndNode)>;
22
22
  /**
23
23
  * Optional replacement start configuration stored with the graph.
24
24
  */
@@ -1,6 +1,6 @@
1
- import type { FlowEntity } from './FlowEntity.js';
1
+ import type { FlowResponse } from './FlowResponse.js';
2
2
  export type WorkflowListResponse = {
3
- items: Array<FlowEntity>;
3
+ items: Array<FlowResponse>;
4
4
  limit: number;
5
5
  next_page_token?: (string | null);
6
6
  };
@@ -1,7 +1,9 @@
1
+ import type { FileVisibility } from './FileVisibility.js';
1
2
  export type update = {
2
3
  data?: (string | null);
3
- name?: (string | null);
4
4
  description?: (string | null);
5
+ name?: (string | null);
5
6
  parent_id?: (string | null);
6
7
  search_enabled?: (boolean | null);
8
+ visibility?: (FileVisibility | null);
7
9
  };
@@ -0,0 +1,46 @@
1
+ import type { Body_upload_file_files__resource_type___resource_id__upload_post } from '../models/Body_upload_file_files__resource_type___resource_id__upload_post.js';
2
+ import type { FileUploadResponse } from '../models/FileUploadResponse.js';
3
+ import type { ResourceFileListResponse } from '../models/ResourceFileListResponse.js';
4
+ import type { ResourceType } from '../models/ResourceType.js';
5
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
6
+ export declare class AgentFilesService {
7
+ /**
8
+ * Delete File
9
+ * @param resourceType
10
+ * @param resourceId
11
+ * @param filePath
12
+ * @returns any Successful Response
13
+ * @throws ApiError
14
+ */
15
+ static deleteFileFilesResourceTypeResourceIdDeleteFilePathDelete(resourceType: ResourceType, resourceId: string, filePath: string): CancelablePromise<Record<string, any>>;
16
+ /**
17
+ * Download File
18
+ * @param resourceType
19
+ * @param resourceId
20
+ * @param filePath
21
+ * @returns any Successful Response
22
+ * @throws ApiError
23
+ */
24
+ static downloadFileFilesResourceTypeResourceIdDownloadFilePathGet(resourceType: ResourceType, resourceId: string, filePath: string): CancelablePromise<any>;
25
+ /**
26
+ * List Files
27
+ * @param resourceType
28
+ * @param resourceId
29
+ * @param path
30
+ * @param limit
31
+ * @param pageToken
32
+ * @returns ResourceFileListResponse Successful Response
33
+ * @throws ApiError
34
+ */
35
+ static listFilesFilesResourceTypeResourceIdListGet(resourceType: ResourceType, resourceId: string, path?: string, limit?: number, pageToken?: (string | null)): CancelablePromise<ResourceFileListResponse>;
36
+ /**
37
+ * Upload File
38
+ * @param resourceType
39
+ * @param resourceId
40
+ * @param formData
41
+ * @param path
42
+ * @returns FileUploadResponse Successful Response
43
+ * @throws ApiError
44
+ */
45
+ static uploadFileFilesResourceTypeResourceIdUploadPost(resourceType: ResourceType, resourceId: string, formData: Body_upload_file_files__resource_type___resource_id__upload_post, path?: (string | null)): CancelablePromise<FileUploadResponse>;
46
+ }