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.
- package/README.md +15 -4
- package/dist/browser/lemma-client.js +339 -106
- package/dist/client.d.ts +2 -0
- package/dist/client.js +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/namespaces/pod-members.d.ts +5 -3
- package/dist/namespaces/pod-members.js +12 -6
- package/dist/namespaces/resources.d.ts +21 -5
- package/dist/namespaces/schedules.d.ts +22 -0
- package/dist/namespaces/schedules.js +24 -0
- package/dist/namespaces/workflows.d.ts +4 -5
- package/dist/namespaces/workflows.js +1 -4
- package/dist/openapi_client/index.d.ts +31 -26
- package/dist/openapi_client/index.js +8 -7
- package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
- package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
- package/dist/openapi_client/models/BillingScope.d.ts +7 -0
- package/dist/openapi_client/models/BillingScope.js +12 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +1 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
- package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
- package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +15 -0
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -0
- package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -0
- package/dist/openapi_client/models/FlowResponse.d.ts +4 -2
- package/dist/openapi_client/models/FlowRunEntity.d.ts +5 -4
- package/dist/openapi_client/models/FormNodeConfig.d.ts +8 -0
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
- package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/PodConfigResponse.d.ts +0 -2
- package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +3 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +3 -0
- package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
- package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
- package/dist/openapi_client/models/ScheduleListResponse.d.ts +9 -0
- package/dist/openapi_client/models/{TriggerResponse.d.ts → ScheduleResponse.d.ts} +10 -4
- package/dist/openapi_client/models/{TriggerType.d.ts → ScheduleType.d.ts} +2 -2
- package/dist/openapi_client/models/ScheduleType.js +13 -0
- package/dist/openapi_client/models/ScheduledFlowStartInput.d.ts +1 -1
- package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +1 -1
- package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -2
- package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
- package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
- package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/TableResponse.d.ts +2 -0
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -0
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +12 -0
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
- package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
- package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
- package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +4 -3
- package/dist/openapi_client/models/WorkflowMode.d.ts +7 -0
- package/dist/openapi_client/models/WorkflowMode.js +12 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignment.js +1 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.js +1 -0
- package/dist/openapi_client/models/WorkflowRunWaitEntity.d.ts +20 -0
- package/dist/openapi_client/models/WorkflowRunWaitEntity.js +1 -0
- package/dist/openapi_client/models/WorkflowRunWaitStatus.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitStatus.js +11 -0
- package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +7 -0
- package/dist/openapi_client/models/WorkflowRunWaitType.js +12 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +4 -3
- package/dist/openapi_client/models/update.d.ts +2 -0
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
- package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
- package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
- package/dist/openapi_client/services/BillingUsageService.js +186 -6
- package/dist/openapi_client/services/DesksService.d.ts +21 -4
- package/dist/openapi_client/services/DesksService.js +44 -2
- package/dist/openapi_client/services/FilesService.d.ts +10 -10
- package/dist/openapi_client/services/FilesService.js +10 -10
- package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
- package/dist/openapi_client/services/FunctionsService.js +2 -2
- package/dist/openapi_client/services/PodMembersService.d.ts +35 -7
- package/dist/openapi_client/services/PodMembersService.js +81 -13
- package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
- package/dist/openapi_client/services/PodRolesService.js +63 -0
- package/dist/openapi_client/services/SchedulesService.d.ts +59 -0
- package/dist/openapi_client/services/SchedulesService.js +125 -0
- package/dist/openapi_client/services/WebhooksService.d.ts +4 -4
- package/dist/openapi_client/services/WebhooksService.js +6 -6
- package/dist/openapi_client/services/WorkflowsService.d.ts +12 -33
- package/dist/openapi_client/services/WorkflowsService.js +26 -69
- package/dist/react/AuthGuard.js +1 -1
- package/dist/react/index.d.ts +11 -1
- package/dist/react/index.js +5 -0
- package/dist/react/useAssistantController.d.ts +8 -4
- package/dist/react/useAssistantController.js +9 -6
- package/dist/react/useAssistantSession.d.ts +3 -0
- package/dist/react/useAssistantSession.js +6 -2
- package/dist/react/useConversationMessages.d.ts +2 -1
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useCreateSchedule.d.ts +17 -0
- package/dist/react/useCreateSchedule.js +45 -0
- package/dist/react/useDeleteSchedule.d.ts +19 -0
- package/dist/react/useDeleteSchedule.js +49 -0
- package/dist/react/usePodAccess.js +1 -1
- package/dist/react/useSchedules.d.ts +30 -0
- package/dist/react/useSchedules.js +123 -0
- package/dist/react/useUpdateSchedule.d.ts +20 -0
- package/dist/react/useUpdateSchedule.js +49 -0
- package/dist/react/useWorkflowRun.js +1 -1
- package/dist/react/useWorkflowRunWaitAssignments.d.ts +26 -0
- package/dist/react/useWorkflowRunWaitAssignments.js +102 -0
- package/dist/react/useWorkflowStart.js +1 -1
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
- package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +0 -13
- package/dist/openapi_client/models/FileInfo.d.ts +0 -14
- package/dist/openapi_client/models/FileInfo.js +0 -8
- package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
- package/dist/openapi_client/models/FlowInstallResponse.d.ts +0 -15
- package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +0 -7
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
- package/dist/openapi_client/models/ResourceType.d.ts +0 -4
- package/dist/openapi_client/models/ResourceType.js +0 -9
- package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
- package/dist/openapi_client/models/TriggerListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TriggerType.js +0 -13
- package/dist/openapi_client/models/UpdateTriggerRequest.d.ts +0 -9
- package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +0 -4
- package/dist/openapi_client/models/WorkflowInstallMode.d.ts +0 -7
- package/dist/openapi_client/models/WorkflowInstallMode.js +0 -12
- package/dist/openapi_client/models/WorkflowInstallRequest.d.ts +0 -11
- package/dist/openapi_client/models/WorkflowTimeInstallConfig.d.ts +0 -19
- package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
- package/dist/openapi_client/services/AgentFilesService.js +0 -103
- package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
- package/dist/openapi_client/services/AuthorizationService.js +0 -122
- package/dist/openapi_client/services/TriggersService.d.ts +0 -53
- package/dist/openapi_client/services/TriggersService.js +0 -109
- /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateTriggerRequest.js → BillingInvoiceResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileUploadResponse.js → CreateInvoicePaymentUrlRequest.js} +0 -0
- /package/dist/openapi_client/models/{FlowInstallResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
- /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateScheduleRequest.js} +0 -0
- /package/dist/openapi_client/models/{PodFlowConfigItem.js → FunctionTableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{PodPermissionsResponse.js → PodRoleCreateRequest.js} +0 -0
- /package/dist/openapi_client/models/{ResourceFileListResponse.js → PodRoleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleResponse.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionResponse.js → ScheduleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{SetVisibilityRequest.js → ScheduleResponse.js} +0 -0
- /package/dist/openapi_client/models/{TriggerListResponse.js → StartTeamBillingRequest.js} +0 -0
- /package/dist/openapi_client/models/{TriggerResponse.js → SubscriptionResponse.js} +0 -0
- /package/dist/openapi_client/models/{UpdateTriggerRequest.js → TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{WorkflowInstallListResponse.js → UpdateScheduleRequest.js} +0 -0
- /package/dist/openapi_client/models/{WorkflowInstallRequest.js → UsageLimitScopeResponse.js} +0 -0
- /package/dist/openapi_client/models/{WorkflowTimeInstallConfig.js → UsageLimitsResponse.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → UsageListResponse.js} +0 -0
- /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<
|
|
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,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
|
+
};
|
|
@@ -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 {
|
|
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?:
|
|
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
|
-
*
|
|
33
|
+
* Scheduler wake job id when the workflow is waiting for time.
|
|
33
34
|
*/
|
|
34
|
-
|
|
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<
|
|
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
|
};
|
|
@@ -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;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScheduleType } from './ScheduleType.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Schedule response.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
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
|
-
|
|
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
|
};
|
|
@@ -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
|
|
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
|
|
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,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
|
|
6
|
+
checkout_url?: (string | null);
|
|
6
7
|
message?: string;
|
|
8
|
+
subscription?: (SubscriptionResponse | null);
|
|
7
9
|
};
|
|
@@ -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
|
|
5
|
+
export type TableAccessEntry = {
|
|
6
6
|
mode?: TableAccessMode;
|
|
7
7
|
table_name: string;
|
|
8
8
|
};
|
|
@@ -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<
|
|
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,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<
|
|
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
|
+
};
|
|
@@ -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
|
-
|
|
17
|
-
|
|
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
|
};
|