lemma-sdk 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/lemma-client.js +674 -1004
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/namespaces/files.d.ts +8 -8
- package/dist/namespaces/files.js +16 -16
- package/dist/namespaces/records.d.ts +10 -10
- package/dist/namespaces/records.js +24 -24
- package/dist/namespaces/tables.d.ts +7 -7
- package/dist/namespaces/tables.js +13 -13
- package/dist/namespaces/workflows.d.ts +4 -4
- package/dist/openapi_client/index.d.ts +16 -15
- package/dist/openapi_client/index.js +4 -2
- package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
- package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
- package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
- package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
- package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
- package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
- package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
- package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
- package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
- package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
- package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
- package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
- package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
- package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
- package/dist/openapi_client/models/FileInfo.d.ts +3 -3
- package/dist/openapi_client/models/FileResponse.d.ts +13 -9
- package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
- package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
- package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
- package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
- package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
- package/dist/openapi_client/models/FileVisibility.js +9 -0
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
- package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
- package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
- package/dist/openapi_client/models/FlowStart.d.ts +4 -4
- package/dist/openapi_client/models/FormNode.d.ts +1 -1
- package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
- package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
- package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/LoopNode.d.ts +1 -1
- package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
- package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
- package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
- package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
- package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
- package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
- package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
- package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
- package/dist/openapi_client/models/RecordSort.d.ts +4 -4
- package/dist/openapi_client/models/SearchResult.d.ts +3 -3
- package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/StackFrame.d.ts +3 -3
- package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
- package/dist/openapi_client/models/StepExecution.d.ts +4 -4
- package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
- package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
- package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
- package/dist/openapi_client/models/TableAccessMode.js +12 -0
- package/dist/openapi_client/models/TableResponse.d.ts +5 -5
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
- package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/TextContent.d.ts +1 -1
- package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
- package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
- package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
- package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
- package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
- package/dist/openapi_client/models/UserResponse.d.ts +6 -6
- package/dist/openapi_client/models/ValidationError.d.ts +2 -2
- package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
- package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
- package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
- package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
- package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/update.d.ts +3 -1
- package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
- package/dist/openapi_client/services/AgentFilesService.js +103 -0
- package/dist/openapi_client/services/AgentsService.d.ts +15 -15
- package/dist/openapi_client/services/AgentsService.js +33 -33
- package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
- package/dist/openapi_client/services/ApplicationsService.js +16 -16
- package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
- package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
- package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
- package/dist/openapi_client/services/AssistantsService.js +31 -31
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
- package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
- package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
- package/dist/openapi_client/services/BillingUsageService.js +10 -10
- package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
- package/dist/openapi_client/services/ConversationsService.js +27 -27
- package/dist/openapi_client/services/DesksService.d.ts +13 -13
- package/dist/openapi_client/services/DesksService.js +31 -31
- package/dist/openapi_client/services/FilesService.d.ts +21 -72
- package/dist/openapi_client/services/FilesService.js +39 -154
- package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
- package/dist/openapi_client/services/FunctionsService.js +45 -45
- package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
- package/dist/openapi_client/services/IntegrationsService.js +47 -47
- package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
- package/dist/openapi_client/services/OrganizationsService.js +88 -88
- package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
- package/dist/openapi_client/services/PodMembersService.js +29 -29
- package/dist/openapi_client/services/PodsService.d.ts +18 -18
- package/dist/openapi_client/services/PodsService.js +34 -34
- package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
- package/dist/openapi_client/services/PublicDesksService.js +22 -0
- package/dist/openapi_client/services/RecordsService.d.ts +39 -48
- package/dist/openapi_client/services/RecordsService.js +71 -89
- package/dist/openapi_client/services/TablesService.d.ts +18 -25
- package/dist/openapi_client/services/TablesService.js +39 -53
- package/dist/openapi_client/services/TasksService.d.ts +19 -19
- package/dist/openapi_client/services/TasksService.js +39 -39
- package/dist/openapi_client/services/TriggersService.d.ts +16 -16
- package/dist/openapi_client/services/TriggersService.js +35 -35
- package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
- package/dist/openapi_client/services/WebhooksService.js +18 -18
- package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
- package/dist/openapi_client/services/WorkflowsService.js +115 -115
- package/dist/react/useAssistantSession.js +28 -23
- package/package.json +1 -1
- package/dist/namespaces/datastores.d.ts +0 -18
- package/dist/namespaces/datastores.js +0 -28
- package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
- package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
- package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
- package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
- package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
- package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
- package/dist/openapi_client/services/DatastoreService.js +0 -141
- package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
- package/dist/openapi_client/services/PublicSdkService.js +0 -35
- /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
- /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
- /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SearchMethod } from './SearchMethod.js';
|
|
2
2
|
export type FileSearchRequest = {
|
|
3
|
-
query: string;
|
|
4
3
|
limit?: number;
|
|
5
|
-
search_method?: SearchMethod;
|
|
6
4
|
/**
|
|
7
5
|
* Optional folder id to scope search results to that folder subtree.
|
|
8
6
|
*/
|
|
9
7
|
parent_id?: (string | null);
|
|
8
|
+
query: string;
|
|
9
|
+
search_method?: SearchMethod;
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FileSearchResultSchema } from './FileSearchResultSchema.js';
|
|
2
2
|
import type { SearchMethod } from './SearchMethod.js';
|
|
3
3
|
export type FileSearchResponse = {
|
|
4
|
-
results: Array<FileSearchResultSchema>;
|
|
5
4
|
query: string;
|
|
5
|
+
results: Array<FileSearchResultSchema>;
|
|
6
6
|
search_method: SearchMethod;
|
|
7
7
|
total_results: number;
|
|
8
8
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var FileVisibility;
|
|
6
|
+
(function (FileVisibility) {
|
|
7
|
+
FileVisibility["PRIVATE"] = "PRIVATE";
|
|
8
|
+
FileVisibility["POD"] = "POD";
|
|
9
|
+
})(FileVisibility || (FileVisibility = {}));
|
|
@@ -4,13 +4,13 @@ import type { FlowStart } from './FlowStart.js';
|
|
|
4
4
|
* Associate a Flow definition with a specific Trigger (Schedule or Event).
|
|
5
5
|
*/
|
|
6
6
|
export type FlowInstallEntity = {
|
|
7
|
-
id?: string;
|
|
8
7
|
created_at?: string;
|
|
9
|
-
updated_at?: string;
|
|
10
8
|
flow_id: string;
|
|
11
|
-
user_id: string;
|
|
12
|
-
pod_id: string;
|
|
13
9
|
flow_start: FlowStart;
|
|
14
|
-
|
|
10
|
+
id?: string;
|
|
15
11
|
is_active?: boolean;
|
|
12
|
+
pod_id: string;
|
|
13
|
+
trigger_id?: (string | null);
|
|
14
|
+
updated_at?: string;
|
|
15
|
+
user_id: string;
|
|
16
16
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AgentNodeResponse } from './AgentNodeResponse.js';
|
|
2
|
+
import type { DecisionNodeResponse } from './DecisionNodeResponse.js';
|
|
3
|
+
import type { EndNodeResponse } from './EndNodeResponse.js';
|
|
4
|
+
import type { FlowStart } from './FlowStart.js';
|
|
5
|
+
import type { FormNodeResponse } from './FormNodeResponse.js';
|
|
6
|
+
import type { FunctionNodeResponse } from './FunctionNodeResponse.js';
|
|
7
|
+
import type { LoopNodeResponse } from './LoopNodeResponse.js';
|
|
8
|
+
import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
|
|
9
|
+
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
10
|
+
export type FlowResponse = {
|
|
11
|
+
created_at?: (string | null);
|
|
12
|
+
description?: (string | null);
|
|
13
|
+
edges?: Array<WorkflowEdge>;
|
|
14
|
+
icon_url?: (string | null);
|
|
15
|
+
id: string;
|
|
16
|
+
is_active?: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
|
|
19
|
+
pod_id: string;
|
|
20
|
+
require_user_install?: boolean;
|
|
21
|
+
start?: (FlowStart | null);
|
|
22
|
+
updated_at?: (string | null);
|
|
23
|
+
};
|
|
@@ -5,20 +5,20 @@ import type { StepExecution } from './StepExecution.js';
|
|
|
5
5
|
* FlowRun Aggregate representing an execution of a Flow.
|
|
6
6
|
*/
|
|
7
7
|
export type FlowRunEntity = {
|
|
8
|
-
|
|
8
|
+
completed_at?: (string | null);
|
|
9
9
|
created_at?: string;
|
|
10
|
-
|
|
10
|
+
current_node_id?: (string | null);
|
|
11
|
+
execution_context?: Record<string, any>;
|
|
12
|
+
execution_stack?: Array<StackFrame>;
|
|
11
13
|
flow_id: string;
|
|
14
|
+
id?: string;
|
|
12
15
|
pod_id: string;
|
|
13
|
-
|
|
14
|
-
trigger_type?: string;
|
|
16
|
+
started_at?: (string | null);
|
|
15
17
|
status?: FlowRunStatus;
|
|
16
|
-
|
|
18
|
+
step_history?: Array<StepExecution>;
|
|
19
|
+
trigger_type?: string;
|
|
20
|
+
updated_at?: string;
|
|
21
|
+
user_id: string;
|
|
17
22
|
waiting_task_id?: (string | null);
|
|
18
23
|
waiting_trigger_id?: (string | null);
|
|
19
|
-
execution_stack?: Array<StackFrame>;
|
|
20
|
-
execution_context?: Record<string, any>;
|
|
21
|
-
step_history?: Array<StepExecution>;
|
|
22
|
-
started_at?: (string | null);
|
|
23
|
-
completed_at?: (string | null);
|
|
24
24
|
};
|
|
@@ -3,12 +3,12 @@ import type { EventFlowStart } from './EventFlowStart.js';
|
|
|
3
3
|
import type { FlowStartType } from './FlowStartType.js';
|
|
4
4
|
import type { ScheduledFlowStart } from './ScheduledFlowStart.js';
|
|
5
5
|
export type FlowStart = {
|
|
6
|
-
/**
|
|
7
|
-
* Flow start mode: MANUAL, SCHEDULED, EVENT, or DATASTORE_EVENT.
|
|
8
|
-
*/
|
|
9
|
-
type: FlowStartType;
|
|
10
6
|
/**
|
|
11
7
|
* Start mode configuration payload. Required for non-manual start types.
|
|
12
8
|
*/
|
|
13
9
|
config?: (ScheduledFlowStart | EventFlowStart | DataStoreFlowStart | null);
|
|
10
|
+
/**
|
|
11
|
+
* Flow start mode: MANUAL, SCHEDULED, EVENT, or DATASTORE_EVENT.
|
|
12
|
+
*/
|
|
13
|
+
type: FlowStartType;
|
|
14
14
|
};
|
|
@@ -3,9 +3,9 @@ import type { FormNodeConfig } from './FormNodeConfig.js';
|
|
|
3
3
|
* Form node for user input.
|
|
4
4
|
*/
|
|
5
5
|
export type FormNode = {
|
|
6
|
+
config: FormNodeConfig;
|
|
6
7
|
id: string;
|
|
7
8
|
label?: (string | null);
|
|
8
9
|
position?: (Record<string, number> | null);
|
|
9
10
|
type?: string;
|
|
10
|
-
config: FormNodeConfig;
|
|
11
11
|
};
|
|
@@ -2,10 +2,10 @@ import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Function node.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type FunctionNode = {
|
|
6
|
+
config: FunctionNodeConfig;
|
|
6
7
|
id: string;
|
|
7
8
|
label?: (string | null);
|
|
8
9
|
position?: (Record<string, number> | null);
|
|
9
10
|
type?: string;
|
|
10
|
-
config: FunctionNodeConfig;
|
|
11
11
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export type FunctionNode_Output = {
|
|
2
|
+
export type FunctionNodeResponse = {
|
|
3
|
+
config: FunctionNodeConfig;
|
|
6
4
|
id: string;
|
|
7
5
|
label?: (string | null);
|
|
8
6
|
position?: (Record<string, number> | null);
|
|
9
7
|
type?: string;
|
|
10
|
-
config: FunctionNodeConfig;
|
|
11
8
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
2
|
import type { FunctionStatus } from './FunctionStatus.js';
|
|
3
|
+
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
3
4
|
/**
|
|
4
5
|
* Function response.
|
|
5
6
|
*/
|
|
6
7
|
export type FunctionResponse = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
accessible_applications: Array<ApplicationAccessConfig>;
|
|
9
|
+
accessible_folders: Array<string>;
|
|
10
|
+
accessible_tables: Array<TableAccessEntry>;
|
|
11
|
+
code?: (string | null);
|
|
12
|
+
code_path?: (string | null);
|
|
13
|
+
config?: (Record<string, any> | null);
|
|
14
|
+
config_schema?: (Record<string, any> | null);
|
|
15
|
+
created_at: any;
|
|
11
16
|
description?: (string | null);
|
|
12
17
|
icon_url?: (string | null);
|
|
18
|
+
id: string;
|
|
13
19
|
input_schema: Record<string, any>;
|
|
20
|
+
name: string;
|
|
14
21
|
output_schema: Record<string, any>;
|
|
15
|
-
|
|
16
|
-
config?: (Record<string, any> | null);
|
|
22
|
+
pod_id: string;
|
|
17
23
|
status: FunctionStatus;
|
|
18
|
-
code_path?: (string | null);
|
|
19
|
-
code?: (string | null);
|
|
20
|
-
accessible_datastores: Array<string>;
|
|
21
|
-
accessible_applications: Array<ApplicationAccessConfig>;
|
|
22
|
-
created_at: any;
|
|
23
24
|
updated_at: any;
|
|
25
|
+
user_id: string;
|
|
24
26
|
};
|
|
@@ -3,15 +3,15 @@ import type { FunctionRunStatus } from './FunctionRunStatus.js';
|
|
|
3
3
|
* Function run response.
|
|
4
4
|
*/
|
|
5
5
|
export type FunctionRunResponse = {
|
|
6
|
-
|
|
6
|
+
completed_at: any;
|
|
7
|
+
created_at: any;
|
|
8
|
+
error?: (string | null);
|
|
7
9
|
function_id: string;
|
|
8
|
-
|
|
10
|
+
id: string;
|
|
9
11
|
input_data?: (Record<string, any> | null);
|
|
10
|
-
output_data?: (Record<string, any> | null);
|
|
11
|
-
status: FunctionRunStatus;
|
|
12
|
-
error?: (string | null);
|
|
13
12
|
logs?: (string | null);
|
|
13
|
+
output_data?: (Record<string, any> | null);
|
|
14
14
|
started_at: any;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
status: FunctionRunStatus;
|
|
16
|
+
user_id: string;
|
|
17
17
|
};
|
|
@@ -3,9 +3,9 @@ import type { LoopNodeConfig } from './LoopNodeConfig.js';
|
|
|
3
3
|
* Loop node.
|
|
4
4
|
*/
|
|
5
5
|
export type LoopNode = {
|
|
6
|
+
config: LoopNodeConfig;
|
|
6
7
|
id: string;
|
|
7
8
|
label?: (string | null);
|
|
8
9
|
position?: (Record<string, number> | null);
|
|
9
10
|
type?: string;
|
|
10
|
-
config: LoopNodeConfig;
|
|
11
11
|
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type LoopNodeConfig = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* ID of the node to execute for each item
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
child_node_id: string;
|
|
9
9
|
/**
|
|
10
10
|
* Variable name for current item
|
|
11
11
|
*/
|
|
12
12
|
item_var_name?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Path to array in execution state
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
items_path: string;
|
|
17
17
|
};
|
|
@@ -4,14 +4,14 @@ import type { OrganizationRole } from './OrganizationRole.js';
|
|
|
4
4
|
* Organization invitation response schema.
|
|
5
5
|
*/
|
|
6
6
|
export type OrganizationInvitationResponse = {
|
|
7
|
-
|
|
7
|
+
accepted_at?: (string | null);
|
|
8
|
+
created_at: string;
|
|
8
9
|
email: string;
|
|
10
|
+
expires_at: string;
|
|
11
|
+
id: string;
|
|
9
12
|
organization_id: string;
|
|
13
|
+
revoked_at?: (string | null);
|
|
10
14
|
role: OrganizationRole;
|
|
11
15
|
status: OrganizationInvitationStatus;
|
|
12
|
-
expires_at: string;
|
|
13
|
-
accepted_at?: (string | null);
|
|
14
|
-
revoked_at?: (string | null);
|
|
15
|
-
created_at: string;
|
|
16
16
|
updated_at: string;
|
|
17
17
|
};
|
|
@@ -4,11 +4,11 @@ import type { UserResponse } from './UserResponse.js';
|
|
|
4
4
|
* Organization member response schema.
|
|
5
5
|
*/
|
|
6
6
|
export type OrganizationMemberResponse = {
|
|
7
|
+
created_at: string;
|
|
7
8
|
id: string;
|
|
8
|
-
user_id: string;
|
|
9
9
|
organization_id: string;
|
|
10
10
|
role: OrganizationRole;
|
|
11
|
-
user?: (UserResponse | null);
|
|
12
|
-
created_at: string;
|
|
13
11
|
updated_at: string;
|
|
12
|
+
user?: (UserResponse | null);
|
|
13
|
+
user_id: string;
|
|
14
14
|
};
|
|
@@ -3,15 +3,15 @@ import type { BillingInterval } from './BillingInterval.js';
|
|
|
3
3
|
* Response schema for a plan.
|
|
4
4
|
*/
|
|
5
5
|
export type PlanResponse = {
|
|
6
|
+
billing_interval: BillingInterval;
|
|
7
|
+
created_at: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
description: (string | null);
|
|
10
|
+
features: Record<string, any>;
|
|
6
11
|
id: string;
|
|
12
|
+
is_active: boolean;
|
|
7
13
|
name: string;
|
|
8
|
-
description: (string | null);
|
|
9
14
|
price_cents: number;
|
|
10
|
-
currency: string;
|
|
11
|
-
billing_interval: BillingInterval;
|
|
12
|
-
features: Record<string, any>;
|
|
13
15
|
seat_limit: (number | null);
|
|
14
|
-
is_active: boolean;
|
|
15
|
-
created_at: string;
|
|
16
16
|
updated_at: string;
|
|
17
17
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PodAppMode } from './PodAppMode.js';
|
|
2
2
|
export type PodAppConfigItem = {
|
|
3
|
-
|
|
3
|
+
account_id?: (string | null);
|
|
4
4
|
alias: string;
|
|
5
|
-
|
|
5
|
+
application_id: string;
|
|
6
6
|
is_installed: boolean;
|
|
7
|
-
|
|
7
|
+
mode: PodAppMode;
|
|
8
8
|
};
|
|
@@ -4,10 +4,10 @@ import type { PodType } from './PodType.js';
|
|
|
4
4
|
* Pod creation request schema.
|
|
5
5
|
*/
|
|
6
6
|
export type PodCreateRequest = {
|
|
7
|
-
organization_id: string;
|
|
8
|
-
name: string;
|
|
9
7
|
description?: (string | null);
|
|
10
8
|
icon_url?: (string | null);
|
|
11
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
organization_id: string;
|
|
12
11
|
status?: PodStatus;
|
|
12
|
+
type?: PodType;
|
|
13
13
|
};
|
|
@@ -3,10 +3,10 @@ import type { PodRole } from './PodRole.js';
|
|
|
3
3
|
* Pod member response schema.
|
|
4
4
|
*/
|
|
5
5
|
export type PodMemberResponse = {
|
|
6
|
+
created_at: string;
|
|
6
7
|
id: string;
|
|
7
|
-
pod_id: string;
|
|
8
8
|
organization_member_id: string;
|
|
9
|
+
pod_id: string;
|
|
9
10
|
role: PodRole;
|
|
10
|
-
created_at: string;
|
|
11
11
|
updated_at: string;
|
|
12
12
|
};
|
|
@@ -4,15 +4,15 @@ import type { PodType } from './PodType.js';
|
|
|
4
4
|
* Pod response schema.
|
|
5
5
|
*/
|
|
6
6
|
export type PodResponse = {
|
|
7
|
+
created_at: string;
|
|
8
|
+
description?: (string | null);
|
|
9
|
+
icon_url?: (string | null);
|
|
7
10
|
id: string;
|
|
8
|
-
user_id: string;
|
|
9
|
-
organization_id: string;
|
|
10
11
|
name: string;
|
|
12
|
+
organization_id: string;
|
|
11
13
|
slug: string;
|
|
12
|
-
description?: (string | null);
|
|
13
|
-
icon_url?: (string | null);
|
|
14
|
-
type: PodType;
|
|
15
14
|
status: PodStatus;
|
|
16
|
-
|
|
15
|
+
type: PodType;
|
|
17
16
|
updated_at: string;
|
|
17
|
+
user_id: string;
|
|
18
18
|
};
|
|
@@ -4,9 +4,9 @@ import type { PodType } from './PodType.js';
|
|
|
4
4
|
* Pod update request schema.
|
|
5
5
|
*/
|
|
6
6
|
export type PodUpdateRequest = {
|
|
7
|
-
name?: (string | null);
|
|
8
7
|
description?: (string | null);
|
|
9
8
|
icon_url?: (string | null);
|
|
10
|
-
|
|
9
|
+
name?: (string | null);
|
|
11
10
|
status?: (PodStatus | null);
|
|
11
|
+
type?: (PodType | null);
|
|
12
12
|
};
|
|
@@ -8,13 +8,13 @@ export type RecordQueryRequest = {
|
|
|
8
8
|
* Structured filter conditions combined with AND semantics. Example: `[{"field": "status", "op": "eq", "value": "OPEN"}]`.
|
|
9
9
|
*/
|
|
10
10
|
filters?: Array<RecordFilter>;
|
|
11
|
-
/**
|
|
12
|
-
* Ordered sort clauses. Example: `[{"field": "created_at", "direction": "desc"}]`.
|
|
13
|
-
*/
|
|
14
|
-
sort?: Array<RecordSort>;
|
|
15
11
|
limit?: number;
|
|
16
12
|
/**
|
|
17
13
|
* Opaque token from a previous response page.
|
|
18
14
|
*/
|
|
19
15
|
page_token?: (string | null);
|
|
16
|
+
/**
|
|
17
|
+
* Ordered sort clauses. Example: `[{"field": "created_at", "direction": "desc"}]`.
|
|
18
|
+
*/
|
|
19
|
+
sort?: Array<RecordSort>;
|
|
20
20
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { RecordSortDirection } from './RecordSortDirection.js';
|
|
2
2
|
export type RecordSort = {
|
|
3
|
-
/**
|
|
4
|
-
* Table column name to sort by.
|
|
5
|
-
*/
|
|
6
|
-
field: string;
|
|
7
3
|
/**
|
|
8
4
|
* Sort direction.
|
|
9
5
|
*/
|
|
10
6
|
direction?: RecordSortDirection;
|
|
7
|
+
/**
|
|
8
|
+
* Table column name to sort by.
|
|
9
|
+
*/
|
|
10
|
+
field: string;
|
|
11
11
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Response for seat availability info.
|
|
3
3
|
*/
|
|
4
4
|
export type SeatInfoResponse = {
|
|
5
|
-
|
|
5
|
+
current_seats: number;
|
|
6
6
|
has_available_seats: boolean;
|
|
7
|
+
organization_id: string;
|
|
7
8
|
seat_limit: (number | null);
|
|
8
|
-
current_seats: number;
|
|
9
9
|
seats_remaining: (number | null);
|
|
10
10
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Execution stack frame for loops.
|
|
3
3
|
*/
|
|
4
4
|
export type StackFrame = {
|
|
5
|
-
node_id: string;
|
|
6
|
-
return_node_id?: (string | null);
|
|
7
5
|
index: number;
|
|
8
|
-
items: Array<any>;
|
|
9
6
|
item_var: string;
|
|
7
|
+
items: Array<any>;
|
|
8
|
+
node_id: string;
|
|
10
9
|
results?: Array<any>;
|
|
10
|
+
return_node_id?: (string | null);
|
|
11
11
|
};
|