lemma-sdk 0.2.38 → 0.2.41

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 (181) hide show
  1. package/README.md +15 -4
  2. package/dist/browser/lemma-client.js +339 -106
  3. package/dist/client.d.ts +2 -0
  4. package/dist/client.js +3 -0
  5. package/dist/index.d.ts +2 -1
  6. package/dist/namespaces/pod-members.d.ts +5 -3
  7. package/dist/namespaces/pod-members.js +12 -6
  8. package/dist/namespaces/resources.d.ts +21 -5
  9. package/dist/namespaces/schedules.d.ts +22 -0
  10. package/dist/namespaces/schedules.js +24 -0
  11. package/dist/namespaces/workflows.d.ts +4 -5
  12. package/dist/namespaces/workflows.js +1 -4
  13. package/dist/openapi_client/index.d.ts +31 -26
  14. package/dist/openapi_client/index.js +8 -7
  15. package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
  16. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
  17. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
  18. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
  19. package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
  20. package/dist/openapi_client/models/BillingScope.d.ts +7 -0
  21. package/dist/openapi_client/models/BillingScope.js +12 -0
  22. package/dist/openapi_client/models/ConversationResponse.d.ts +1 -0
  23. package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
  24. package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
  25. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
  26. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
  27. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
  28. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
  29. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
  30. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +15 -0
  31. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
  32. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -0
  33. package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
  34. package/dist/openapi_client/models/FileResponse.d.ts +2 -0
  35. package/dist/openapi_client/models/FlowResponse.d.ts +4 -2
  36. package/dist/openapi_client/models/FlowRunEntity.d.ts +5 -4
  37. package/dist/openapi_client/models/FormNodeConfig.d.ts +8 -0
  38. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
  39. package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
  40. package/dist/openapi_client/models/PodConfigResponse.d.ts +0 -2
  41. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
  42. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +3 -0
  43. package/dist/openapi_client/models/PodMemberResponse.d.ts +3 -0
  44. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
  45. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
  46. package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
  47. package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
  48. package/dist/openapi_client/models/ScheduleListResponse.d.ts +9 -0
  49. package/dist/openapi_client/models/{TriggerResponse.d.ts → ScheduleResponse.d.ts} +10 -4
  50. package/dist/openapi_client/models/{TriggerType.d.ts → ScheduleType.d.ts} +2 -2
  51. package/dist/openapi_client/models/ScheduleType.js +13 -0
  52. package/dist/openapi_client/models/ScheduledFlowStartInput.d.ts +1 -1
  53. package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +1 -1
  54. package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -2
  55. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
  56. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
  57. package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
  58. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
  59. package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
  60. package/dist/openapi_client/models/TableResponse.d.ts +2 -0
  61. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
  62. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -0
  63. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
  64. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
  65. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +12 -0
  66. package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
  67. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
  68. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
  69. package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
  70. package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
  71. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
  72. package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
  73. package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
  74. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
  75. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +4 -3
  76. package/dist/openapi_client/models/WorkflowMode.d.ts +7 -0
  77. package/dist/openapi_client/models/WorkflowMode.js +12 -0
  78. package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +6 -0
  79. package/dist/openapi_client/models/WorkflowRunWaitAssignment.js +1 -0
  80. package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.d.ts +6 -0
  81. package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.js +1 -0
  82. package/dist/openapi_client/models/WorkflowRunWaitEntity.d.ts +20 -0
  83. package/dist/openapi_client/models/WorkflowRunWaitEntity.js +1 -0
  84. package/dist/openapi_client/models/WorkflowRunWaitStatus.d.ts +6 -0
  85. package/dist/openapi_client/models/WorkflowRunWaitStatus.js +11 -0
  86. package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +7 -0
  87. package/dist/openapi_client/models/WorkflowRunWaitType.js +12 -0
  88. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +4 -3
  89. package/dist/openapi_client/models/update.d.ts +2 -0
  90. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
  91. package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
  92. package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
  93. package/dist/openapi_client/services/BillingUsageService.js +186 -6
  94. package/dist/openapi_client/services/DesksService.d.ts +21 -4
  95. package/dist/openapi_client/services/DesksService.js +44 -2
  96. package/dist/openapi_client/services/FilesService.d.ts +10 -10
  97. package/dist/openapi_client/services/FilesService.js +10 -10
  98. package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
  99. package/dist/openapi_client/services/FunctionsService.js +2 -2
  100. package/dist/openapi_client/services/PodMembersService.d.ts +35 -7
  101. package/dist/openapi_client/services/PodMembersService.js +81 -13
  102. package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
  103. package/dist/openapi_client/services/PodRolesService.js +63 -0
  104. package/dist/openapi_client/services/SchedulesService.d.ts +59 -0
  105. package/dist/openapi_client/services/SchedulesService.js +125 -0
  106. package/dist/openapi_client/services/WebhooksService.d.ts +4 -4
  107. package/dist/openapi_client/services/WebhooksService.js +6 -6
  108. package/dist/openapi_client/services/WorkflowsService.d.ts +12 -33
  109. package/dist/openapi_client/services/WorkflowsService.js +26 -69
  110. package/dist/react/AuthGuard.js +1 -1
  111. package/dist/react/index.d.ts +11 -1
  112. package/dist/react/index.js +5 -0
  113. package/dist/react/useAssistantController.d.ts +8 -4
  114. package/dist/react/useAssistantController.js +9 -6
  115. package/dist/react/useAssistantSession.d.ts +3 -0
  116. package/dist/react/useAssistantSession.js +6 -2
  117. package/dist/react/useConversationMessages.d.ts +2 -1
  118. package/dist/react/useConversationMessages.js +2 -1
  119. package/dist/react/useCreateSchedule.d.ts +17 -0
  120. package/dist/react/useCreateSchedule.js +45 -0
  121. package/dist/react/useDeleteSchedule.d.ts +19 -0
  122. package/dist/react/useDeleteSchedule.js +49 -0
  123. package/dist/react/usePodAccess.js +1 -1
  124. package/dist/react/useSchedules.d.ts +30 -0
  125. package/dist/react/useSchedules.js +123 -0
  126. package/dist/react/useUpdateSchedule.d.ts +20 -0
  127. package/dist/react/useUpdateSchedule.js +49 -0
  128. package/dist/react/useWorkflowRun.js +1 -1
  129. package/dist/react/useWorkflowRunWaitAssignments.d.ts +26 -0
  130. package/dist/react/useWorkflowRunWaitAssignments.js +102 -0
  131. package/dist/react/useWorkflowStart.js +1 -1
  132. package/dist/types.d.ts +3 -1
  133. package/package.json +1 -1
  134. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
  135. package/dist/openapi_client/models/CreateTriggerRequest.d.ts +0 -13
  136. package/dist/openapi_client/models/FileInfo.d.ts +0 -14
  137. package/dist/openapi_client/models/FileInfo.js +0 -8
  138. package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
  139. package/dist/openapi_client/models/FlowInstallResponse.d.ts +0 -15
  140. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
  141. package/dist/openapi_client/models/PodFlowConfigItem.d.ts +0 -7
  142. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
  143. package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
  144. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
  145. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
  146. package/dist/openapi_client/models/ResourceType.d.ts +0 -4
  147. package/dist/openapi_client/models/ResourceType.js +0 -9
  148. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
  149. package/dist/openapi_client/models/TriggerListResponse.d.ts +0 -9
  150. package/dist/openapi_client/models/TriggerType.js +0 -13
  151. package/dist/openapi_client/models/UpdateTriggerRequest.d.ts +0 -9
  152. package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +0 -4
  153. package/dist/openapi_client/models/WorkflowInstallMode.d.ts +0 -7
  154. package/dist/openapi_client/models/WorkflowInstallMode.js +0 -12
  155. package/dist/openapi_client/models/WorkflowInstallRequest.d.ts +0 -11
  156. package/dist/openapi_client/models/WorkflowTimeInstallConfig.d.ts +0 -19
  157. package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
  158. package/dist/openapi_client/services/AgentFilesService.js +0 -103
  159. package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
  160. package/dist/openapi_client/services/AuthorizationService.js +0 -122
  161. package/dist/openapi_client/services/TriggersService.d.ts +0 -53
  162. package/dist/openapi_client/services/TriggersService.js +0 -109
  163. /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
  164. /package/dist/openapi_client/models/{CreateTriggerRequest.js → BillingInvoiceResponse.js} +0 -0
  165. /package/dist/openapi_client/models/{FileUploadResponse.js → CreateInvoicePaymentUrlRequest.js} +0 -0
  166. /package/dist/openapi_client/models/{FlowInstallResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
  167. /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateScheduleRequest.js} +0 -0
  168. /package/dist/openapi_client/models/{PodFlowConfigItem.js → FunctionTableAccessEntry.js} +0 -0
  169. /package/dist/openapi_client/models/{PodPermissionsResponse.js → PodRoleCreateRequest.js} +0 -0
  170. /package/dist/openapi_client/models/{ResourceFileListResponse.js → PodRoleListResponse.js} +0 -0
  171. /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleResponse.js} +0 -0
  172. /package/dist/openapi_client/models/{ResourcePermissionResponse.js → ScheduleListResponse.js} +0 -0
  173. /package/dist/openapi_client/models/{SetVisibilityRequest.js → ScheduleResponse.js} +0 -0
  174. /package/dist/openapi_client/models/{TriggerListResponse.js → StartTeamBillingRequest.js} +0 -0
  175. /package/dist/openapi_client/models/{TriggerResponse.js → SubscriptionResponse.js} +0 -0
  176. /package/dist/openapi_client/models/{UpdateTriggerRequest.js → TableAccessEntry.js} +0 -0
  177. /package/dist/openapi_client/models/{WorkflowInstallListResponse.js → UpdateScheduleRequest.js} +0 -0
  178. /package/dist/openapi_client/models/{WorkflowInstallRequest.js → UsageLimitScopeResponse.js} +0 -0
  179. /package/dist/openapi_client/models/{WorkflowTimeInstallConfig.js → UsageLimitsResponse.js} +0 -0
  180. /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → UsageListResponse.js} +0 -0
  181. /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → UsageStatsBucketResponse.js} +0 -0
@@ -1,20 +1,25 @@
1
- import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
2
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
3
3
  import type { FunctionType } from './FunctionType.js';
4
4
  /**
5
5
  * Request to create a function.
6
+ *
7
+ * Input and output schemas are derived from the submitted code and returned
8
+ * on the function response. They are not accepted in create requests.
6
9
  */
7
10
  export type CreateFunctionRequest = {
8
11
  accessible_applications?: Array<ApplicationAccessConfig>;
9
12
  accessible_folders?: Array<string>;
10
- accessible_tables?: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
13
+ accessible_tables?: Array<FunctionTableAccessEntry>;
14
+ /**
15
+ * Python source for the function. When provided, the platform analyzes the code and populates input_schema, output_schema, and config_schema on the returned function.
16
+ */
11
17
  code?: (string | null);
12
18
  config?: (Record<string, any> | null);
13
19
  config_schema?: (Record<string, any> | null);
14
20
  description?: (string | null);
15
21
  icon_url?: (string | null);
16
- input_schema?: Record<string, any>;
17
22
  name: string;
18
- output_schema?: Record<string, any>;
19
23
  type?: FunctionType;
24
+ visibility_roles?: (Array<string> | null);
20
25
  };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Request to generate a payment URL for an invoice.
3
+ */
4
+ export type CreateInvoicePaymentUrlRequest = {
5
+ cancel_url: string;
6
+ success_url: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ import type { BillingInvoiceResponse } from './BillingInvoiceResponse.js';
2
+ /**
3
+ * Response with invoice payment checkout URL.
4
+ */
5
+ export type CreateInvoicePaymentUrlResponse = {
6
+ checkout_url: string;
7
+ invoice: BillingInvoiceResponse;
8
+ };
@@ -0,0 +1,15 @@
1
+ import type { ScheduleType } from './ScheduleType.js';
2
+ /**
3
+ * Request to create a pod schedule.
4
+ */
5
+ export type CreateScheduleRequest = {
6
+ account_id?: (string | null);
7
+ agent_name?: (string | null);
8
+ application_trigger_id?: (string | null);
9
+ config?: Record<string, any>;
10
+ filter_instruction?: (string | null);
11
+ filter_output_schema?: (Record<string, any> | null);
12
+ schedule_type: ScheduleType;
13
+ visibility_roles?: (Array<string> | null);
14
+ workflow_name?: (string | null);
15
+ };
@@ -23,4 +23,5 @@ export type CreateTableRequest = {
23
23
  * Primary key column name. If not `id`, it must also be declared in `columns`.
24
24
  */
25
25
  primary_key_column?: string;
26
+ visibility_roles?: (Array<string> | null);
26
27
  };
@@ -6,4 +6,5 @@ export type DatastoreFileUploadRequest = {
6
6
  name?: (string | null);
7
7
  namespace?: (FileNamespace | null);
8
8
  search_enabled?: boolean;
9
+ visibility_roles?: (string | null);
9
10
  };
@@ -12,4 +12,6 @@ export type DeskResponse = {
12
12
  updated_at: any;
13
13
  readonly url: string;
14
14
  user_id: string;
15
+ visibility?: string;
16
+ visibility_roles?: Array<string>;
15
17
  };
@@ -17,4 +17,6 @@ export type FileResponse = {
17
17
  size_bytes?: number;
18
18
  status: string;
19
19
  updated_at: string;
20
+ visibility?: string;
21
+ visibility_roles?: Array<string>;
20
22
  };
@@ -10,7 +10,7 @@ import type { ManualWorkflowStartOutput } from './ManualWorkflowStartOutput.js';
10
10
  import type { ScheduledWorkflowStartOutput } from './ScheduledWorkflowStartOutput.js';
11
11
  import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
12
12
  import type { WorkflowEdge } from './WorkflowEdge.js';
13
- import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
13
+ import type { WorkflowMode } from './WorkflowMode.js';
14
14
  export type FlowResponse = {
15
15
  created_at?: (string | null);
16
16
  description?: (string | null);
@@ -18,10 +18,12 @@ export type FlowResponse = {
18
18
  icon_url?: (string | null);
19
19
  id: string;
20
20
  is_active?: boolean;
21
- mode?: WorkflowInstallMode;
21
+ mode?: WorkflowMode;
22
22
  name: string;
23
23
  nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
24
24
  pod_id: string;
25
25
  start?: ((ManualWorkflowStartOutput | ScheduledWorkflowStartOutput | EventWorkflowStartOutput | DataStoreWorkflowStartOutput) | null);
26
26
  updated_at?: (string | null);
27
+ visibility?: string;
28
+ visibility_roles?: Array<string>;
27
29
  };
@@ -13,11 +13,12 @@ export type FlowRunEntity = {
13
13
  flow_id: string;
14
14
  id?: string;
15
15
  pod_id: string;
16
+ schedule_event_id?: (string | null);
17
+ start_payload?: Record<string, any>;
18
+ start_type?: string;
16
19
  started_at?: (string | null);
17
20
  status?: FlowRunStatus;
18
21
  step_history?: Array<StepExecution>;
19
- trigger_event_id?: (string | null);
20
- trigger_type?: string;
21
22
  updated_at?: string;
22
23
  user_id: string;
23
24
  /**
@@ -29,7 +30,7 @@ export type FlowRunEntity = {
29
30
  */
30
31
  waiting_function_run_id?: (string | null);
31
32
  /**
32
- * Trigger id when the workflow is waiting for an external trigger.
33
+ * Scheduler wake job id when the workflow is waiting for time.
33
34
  */
34
- waiting_trigger_id?: (string | null);
35
+ waiting_timer_id?: (string | null);
35
36
  };
@@ -2,6 +2,14 @@
2
2
  * Configuration for Form node (User Input).
3
3
  */
4
4
  export type FormNodeConfig = {
5
+ /**
6
+ * Pod member assigned to submit this form.
7
+ */
8
+ assignee_pod_member_id?: (string | null);
9
+ /**
10
+ * Optional JMESPath expression resolving to a pod member id. Takes precedence over assignee_pod_member_id.
11
+ */
12
+ assignee_pod_member_id_expression?: (string | null);
5
13
  /**
6
14
  * JSON Schema for user input
7
15
  */
@@ -1,6 +1,6 @@
1
- import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
2
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
3
2
  import type { FunctionStatus } from './FunctionStatus.js';
3
+ import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
4
4
  import type { FunctionType } from './FunctionType.js';
5
5
  /**
6
6
  * Function response.
@@ -8,21 +8,32 @@ import type { FunctionType } from './FunctionType.js';
8
8
  export type FunctionResponse = {
9
9
  accessible_applications: Array<ApplicationAccessConfig>;
10
10
  accessible_folders: Array<string>;
11
- accessible_tables: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
11
+ accessible_tables: Array<FunctionTableAccessEntry>;
12
12
  code?: (string | null);
13
13
  code_path?: (string | null);
14
14
  config?: (Record<string, any> | null);
15
+ /**
16
+ * Optional configuration schema derived from the function code.
17
+ */
15
18
  config_schema?: (Record<string, any> | null);
16
19
  created_at: any;
17
20
  description?: (string | null);
18
21
  icon_url?: (string | null);
19
22
  id: string;
23
+ /**
24
+ * Input JSON schema derived from the function code.
25
+ */
20
26
  input_schema: Record<string, any>;
21
27
  name: string;
28
+ /**
29
+ * Output JSON schema derived from the function code.
30
+ */
22
31
  output_schema: Record<string, any>;
23
32
  pod_id: string;
24
33
  status: FunctionStatus;
25
34
  type: FunctionType;
26
35
  updated_at: any;
27
36
  user_id: string;
37
+ visibility?: string;
38
+ visibility_roles?: Array<string>;
28
39
  };
@@ -1,5 +1,5 @@
1
1
  import type { TableAccessMode } from './TableAccessMode.js';
2
- export type app__modules__function__api__schemas__function_schemas__TableAccessEntry = {
2
+ export type FunctionTableAccessEntry = {
3
3
  mode?: TableAccessMode;
4
4
  table_name: string;
5
5
  };
@@ -1,6 +1,4 @@
1
1
  import type { PodAppConfigItem } from './PodAppConfigItem.js';
2
- import type { PodFlowConfigItem } from './PodFlowConfigItem.js';
3
2
  export type PodConfigResponse = {
4
3
  required_apps: Array<PodAppConfigItem>;
5
- required_flows: Array<PodFlowConfigItem>;
6
4
  };
@@ -5,4 +5,5 @@ import type { PodRole } from './PodRole.js';
5
5
  export type PodMemberAddRequest = {
6
6
  organization_member_id: string;
7
7
  role: PodRole;
8
+ roles?: (Array<string> | null);
8
9
  };
@@ -5,7 +5,10 @@ import type { UserResponse } from './UserResponse.js';
5
5
  */
6
6
  export type PodMemberDetailResponse = {
7
7
  created_at: string;
8
+ email: string;
9
+ pod_member_id: string;
8
10
  role: PodRole;
11
+ roles?: Array<string>;
9
12
  updated_at: string;
10
13
  user?: (UserResponse | null);
11
14
  user_email: string;
@@ -4,7 +4,10 @@ import type { PodRole } from './PodRole.js';
4
4
  */
5
5
  export type PodMemberResponse = {
6
6
  created_at: string;
7
+ email: string;
8
+ pod_member_id: string;
7
9
  role: PodRole;
10
+ roles?: Array<string>;
8
11
  updated_at: string;
9
12
  user_email: string;
10
13
  user_id: string;
@@ -3,5 +3,6 @@ import type { PodRole } from './PodRole.js';
3
3
  * Pod member role update request schema.
4
4
  */
5
5
  export type PodMemberUpdateRoleRequest = {
6
- role: PodRole;
6
+ role?: (PodRole | null);
7
+ roles?: (Array<string> | null);
7
8
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Pod custom role creation request.
3
+ */
4
+ export type PodRoleCreateRequest = {
5
+ name: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import type { PodRoleResponse } from './PodRoleResponse.js';
2
+ /**
3
+ * Pod role list response.
4
+ */
5
+ export type PodRoleListResponse = {
6
+ items: Array<PodRoleResponse>;
7
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Pod role response.
3
+ */
4
+ export type PodRoleResponse = {
5
+ created_at: string;
6
+ created_by_user_id?: (string | null);
7
+ id: string;
8
+ is_system: boolean;
9
+ name: string;
10
+ pod_id: string;
11
+ };
@@ -0,0 +1,9 @@
1
+ import type { ScheduleResponse } from './ScheduleResponse.js';
2
+ /**
3
+ * Schedule list response.
4
+ */
5
+ export type ScheduleListResponse = {
6
+ items: Array<ScheduleResponse>;
7
+ limit: number;
8
+ next_page_token?: (string | null);
9
+ };
@@ -1,9 +1,11 @@
1
- import type { TriggerType } from './TriggerType.js';
1
+ import type { ScheduleType } from './ScheduleType.js';
2
2
  /**
3
- * Trigger response.
3
+ * Schedule response.
4
4
  */
5
- export type TriggerResponse = {
5
+ export type ScheduleResponse = {
6
6
  account_id: (string | null);
7
+ agent_id: (string | null);
8
+ agent_name?: (string | null);
7
9
  application_trigger_id: (string | null);
8
10
  config: Record<string, any>;
9
11
  created_at: string;
@@ -13,7 +15,11 @@ export type TriggerResponse = {
13
15
  is_active: boolean;
14
16
  is_internal: boolean;
15
17
  pod_id: (string | null);
16
- trigger_type: TriggerType;
18
+ schedule_type: ScheduleType;
17
19
  updated_at: string;
18
20
  user_id: string;
21
+ visibility: string;
22
+ visibility_roles?: Array<string>;
23
+ workflow_id: (string | null);
24
+ workflow_name?: (string | null);
19
25
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Type of trigger.
2
+ * Type of schedule source.
3
3
  */
4
- export declare enum TriggerType {
4
+ export declare enum ScheduleType {
5
5
  TIME = "TIME",
6
6
  WEBHOOK = "WEBHOOK",
7
7
  DATASTORE = "DATASTORE"
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Type of schedule source.
7
+ */
8
+ export var ScheduleType;
9
+ (function (ScheduleType) {
10
+ ScheduleType["TIME"] = "TIME";
11
+ ScheduleType["WEBHOOK"] = "WEBHOOK";
12
+ ScheduleType["DATASTORE"] = "DATASTORE";
13
+ })(ScheduleType || (ScheduleType = {}));
@@ -1,7 +1,7 @@
1
1
  import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
2
2
  export type ScheduledFlowStartInput = {
3
3
  /**
4
- * Time trigger mode for this workflow definition. Concrete schedule values are provided during installation.
4
+ * Time trigger mode for this workflow definition. Concrete schedule values are provided by pod schedules.
5
5
  */
6
6
  schedule_type: ScheduledFlowStartType;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
2
2
  export type ScheduledFlowStartOutput = {
3
3
  /**
4
- * Time trigger mode for this workflow definition. Concrete schedule values are provided during installation.
4
+ * Time trigger mode for this workflow definition. Concrete schedule values are provided by pod schedules.
5
5
  */
6
6
  schedule_type: ScheduledFlowStartType;
7
7
  };
@@ -1,5 +1,4 @@
1
1
  export type SendMessageRequest = {
2
- agent_name?: (string | null);
3
2
  content: string;
4
- conversation_id?: (string | null);
3
+ metadata?: (Record<string, any> | null);
5
4
  };
@@ -1,7 +1,9 @@
1
+ import type { SubscriptionResponse } from './SubscriptionResponse.js';
1
2
  /**
2
3
  * Response with checkout URL.
3
4
  */
4
5
  export type StartSubscriptionResponse = {
5
- checkout_url: string;
6
+ checkout_url?: (string | null);
6
7
  message?: string;
8
+ subscription?: (SubscriptionResponse | null);
7
9
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Request to start monthly-invoiced team billing.
3
+ */
4
+ export type StartTeamBillingRequest = {
5
+ plan_id: string;
6
+ };
@@ -0,0 +1,22 @@
1
+ import type { BillingScope } from './BillingScope.js';
2
+ import type { PlanResponse } from './PlanResponse.js';
3
+ import type { SubscriptionStatus } from './SubscriptionStatus.js';
4
+ /**
5
+ * Response schema for a subscription.
6
+ */
7
+ export type SubscriptionResponse = {
8
+ billing_scope: BillingScope;
9
+ cancel_at_period_end: boolean;
10
+ created_at: string;
11
+ current_period_end: (string | null);
12
+ current_period_start: (string | null);
13
+ dodo_subscription_id: (string | null);
14
+ id: string;
15
+ organization_id: (string | null);
16
+ plan?: (PlanResponse | null);
17
+ plan_id: string;
18
+ seat_count: number;
19
+ status: SubscriptionStatus;
20
+ updated_at: string;
21
+ user_id: (string | null);
22
+ };
@@ -1,19 +1,22 @@
1
+ import type { BillingScope } from './BillingScope.js';
1
2
  import type { PlanResponse } from './PlanResponse.js';
2
3
  import type { SubscriptionStatus } from './SubscriptionStatus.js';
3
4
  /**
4
5
  * Subscription response with plan details.
5
6
  */
6
7
  export type SubscriptionWithPlanResponse = {
8
+ billing_scope: BillingScope;
7
9
  cancel_at_period_end: boolean;
8
10
  created_at: string;
9
11
  current_period_end: (string | null);
10
12
  current_period_start: (string | null);
11
13
  dodo_subscription_id: (string | null);
12
14
  id: string;
13
- organization_id: string;
15
+ organization_id: (string | null);
14
16
  plan: PlanResponse;
15
17
  plan_id: string;
16
18
  seat_count: number;
17
19
  status: SubscriptionStatus;
18
20
  updated_at: string;
21
+ user_id: (string | null);
19
22
  };
@@ -2,7 +2,7 @@ import type { TableAccessMode } from './TableAccessMode.js';
2
2
  /**
3
3
  * Per-table access configuration for workloads.
4
4
  */
5
- export type app__modules__agent__domain__value_objects__TableAccessEntry = {
5
+ export type TableAccessEntry = {
6
6
  mode?: TableAccessMode;
7
7
  table_name: string;
8
8
  };
@@ -12,4 +12,6 @@ export type TableResponse = {
12
12
  pod_id: string;
13
13
  primary_key_column: string;
14
14
  updated_at: string;
15
+ visibility?: string;
16
+ visibility_roles?: Array<string>;
15
17
  };
@@ -1,12 +1,12 @@
1
1
  import type { AgentModelName } from './AgentModelName.js';
2
2
  import type { AgentToolset } from './AgentToolset.js';
3
- import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
4
3
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
5
4
  import type { HarnessKind } from './HarnessKind.js';
5
+ import type { TableAccessEntry } from './TableAccessEntry.js';
6
6
  export type UpdateAgentRequest = {
7
7
  accessible_applications?: (Array<ApplicationAccessConfig> | null);
8
8
  accessible_folders?: (Array<string> | null);
9
- accessible_tables?: (Array<app__modules__agent__domain__value_objects__TableAccessEntry> | null);
9
+ accessible_tables?: (Array<TableAccessEntry> | null);
10
10
  agent_names?: (Array<string> | null);
11
11
  description?: (string | null);
12
12
  function_names?: (Array<string> | null);
@@ -18,4 +18,5 @@ export type UpdateAgentRequest = {
18
18
  model_name?: (AgentModelName | null);
19
19
  output_schema?: (Record<string, any> | null);
20
20
  toolsets?: (Array<AgentToolset> | null);
21
+ visibility_roles?: (Array<string> | null);
21
22
  };
@@ -1,5 +1,6 @@
1
1
  import type { AgentModelName } from './AgentModelName.js';
2
2
  export type UpdateConversationRequest = {
3
+ instructions?: (string | null);
3
4
  model_name?: (AgentModelName | null);
4
5
  title?: (string | null);
5
6
  };
@@ -1,4 +1,6 @@
1
1
  export type UpdateDeskRequest = {
2
2
  description?: (string | null);
3
3
  public_slug?: (string | null);
4
+ visibility?: (string | null);
5
+ visibility_roles?: (Array<string> | null);
4
6
  };
@@ -1,5 +1,5 @@
1
- import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
2
1
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
+ import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
3
3
  import type { FunctionType } from './FunctionType.js';
4
4
  /**
5
5
  * Request to update a function.
@@ -7,10 +7,14 @@ import type { FunctionType } from './FunctionType.js';
7
7
  export type UpdateFunctionRequest = {
8
8
  accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
9
  accessible_folders?: (Array<string> | null);
10
- accessible_tables?: (Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry> | null);
10
+ accessible_tables?: (Array<FunctionTableAccessEntry> | null);
11
+ /**
12
+ * Updated Python source for the function. When provided, the platform re-analyzes the code and refreshes input_schema, output_schema, and config_schema on the returned function.
13
+ */
11
14
  code?: (string | null);
12
15
  config?: (Record<string, any> | null);
13
16
  description?: (string | null);
14
17
  icon_url?: (string | null);
15
18
  type?: (FunctionType | null);
19
+ visibility_roles?: (Array<string> | null);
16
20
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Request to update a schedule.
3
+ */
4
+ export type UpdateScheduleRequest = {
5
+ agent_name?: (string | null);
6
+ config?: (Record<string, any> | null);
7
+ filter_instruction?: (string | null);
8
+ filter_output_schema?: (Record<string, any> | null);
9
+ is_active?: (boolean | null);
10
+ visibility_roles?: (Array<string> | null);
11
+ workflow_name?: (string | null);
12
+ };
@@ -5,5 +5,6 @@ export type UpdateTableRequest = {
5
5
  /**
6
6
  * Replacement metadata/config payload for the table.
7
7
  */
8
- config: Record<string, any>;
8
+ config?: (Record<string, any> | null);
9
+ visibility_roles?: (Array<string> | null);
9
10
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * One usage limit scope.
3
+ */
4
+ export type UsageLimitScopeResponse = {
5
+ allowed: boolean;
6
+ limit_usd?: (number | null);
7
+ remaining_usd?: (number | null);
8
+ reset_at: string;
9
+ used_usd: number;
10
+ };
@@ -0,0 +1,11 @@
1
+ import type { UsageLimitScopeResponse } from './UsageLimitScopeResponse.js';
2
+ /**
3
+ * Current usage limit state for an organization/user.
4
+ */
5
+ export type UsageLimitsResponse = {
6
+ allowed: boolean;
7
+ org_monthly: UsageLimitScopeResponse;
8
+ organization_id: string;
9
+ user_id: string;
10
+ user_weekly: UsageLimitScopeResponse;
11
+ };
@@ -0,0 +1,10 @@
1
+ import type { UsageRecordResponse } from './UsageRecordResponse.js';
2
+ /**
3
+ * Response schema for list of usage records.
4
+ */
5
+ export type UsageListResponse = {
6
+ end_date: string;
7
+ items: Array<UsageRecordResponse>;
8
+ start_date: string;
9
+ total: number;
10
+ };
@@ -2,20 +2,28 @@
2
2
  * Response schema for a usage record.
3
3
  */
4
4
  export type UsageRecordResponse = {
5
+ agent_id?: (string | null);
6
+ agent_run_id: string;
7
+ conversation_id: string;
5
8
  created_at: string;
9
+ duration_seconds: number;
6
10
  id: string;
7
11
  input_cost_usd: number;
8
12
  input_tokens: number;
9
13
  metadata: Record<string, any>;
10
14
  model_name: string;
11
15
  occurred_at: string;
12
- organization_id: string;
16
+ organization_id: (string | null);
13
17
  output_cost_usd: number;
14
18
  output_tokens: number;
15
- pod_id: string;
16
- source_id: string;
17
- source_type: string;
19
+ pod_id: (string | null);
20
+ request_count: number;
21
+ status?: (string | null);
22
+ tool_call_count: number;
18
23
  total_cost_usd: number;
19
24
  total_tokens: number;
25
+ unit_cost_usd: number;
26
+ units: number;
27
+ usage_kind: string;
20
28
  user_id: string;
21
29
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * One usage statistics bucket.
3
+ */
4
+ export type UsageStatsBucketResponse = {
5
+ bucket: string;
6
+ group?: (string | null);
7
+ input_tokens: number;
8
+ output_tokens: number;
9
+ total_cost_usd: number;
10
+ total_tokens: number;
11
+ units: number;
12
+ };