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