lemma-sdk 0.2.5 → 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/dist/react/useFunctionSession.d.ts +1 -1
- package/dist/react/useFunctionSession.js +9 -2
- 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
|
@@ -25,27 +25,15 @@ export class BillingSubscriptionsService {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Get
|
|
29
|
-
* Get
|
|
30
|
-
* @returns
|
|
31
|
-
* @throws ApiError
|
|
32
|
-
*/
|
|
33
|
-
static billingSubscriptionsMy() {
|
|
34
|
-
return __request(OpenAPI, {
|
|
35
|
-
method: 'GET',
|
|
36
|
-
url: '/billing/subscriptions/my',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get Subscription Status
|
|
41
|
-
* Get simple subscription status for the organization.
|
|
42
|
-
* @returns SubscriptionStatusResponse Successful Response
|
|
28
|
+
* Get Seat Info
|
|
29
|
+
* Get seat availability information.
|
|
30
|
+
* @returns SeatInfoResponse Successful Response
|
|
43
31
|
* @throws ApiError
|
|
44
32
|
*/
|
|
45
|
-
static
|
|
33
|
+
static billingSeatsInfo() {
|
|
46
34
|
return __request(OpenAPI, {
|
|
47
35
|
method: 'GET',
|
|
48
|
-
url: '/billing/
|
|
36
|
+
url: '/billing/seats',
|
|
49
37
|
});
|
|
50
38
|
}
|
|
51
39
|
/**
|
|
@@ -79,15 +67,27 @@ export class BillingSubscriptionsService {
|
|
|
79
67
|
});
|
|
80
68
|
}
|
|
81
69
|
/**
|
|
82
|
-
* Get
|
|
83
|
-
* Get
|
|
84
|
-
* @returns
|
|
70
|
+
* Get My Subscription
|
|
71
|
+
* Get the current organization's subscription.
|
|
72
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
85
73
|
* @throws ApiError
|
|
86
74
|
*/
|
|
87
|
-
static
|
|
75
|
+
static billingSubscriptionsMy() {
|
|
88
76
|
return __request(OpenAPI, {
|
|
89
77
|
method: 'GET',
|
|
90
|
-
url: '/billing/
|
|
78
|
+
url: '/billing/subscriptions/my',
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get Subscription Status
|
|
83
|
+
* Get simple subscription status for the organization.
|
|
84
|
+
* @returns SubscriptionStatusResponse Successful Response
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static billingSubscriptionsStatus() {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: 'GET',
|
|
90
|
+
url: '/billing/subscriptions/status',
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -15,10 +15,9 @@ export declare class BillingUsageService {
|
|
|
15
15
|
*/
|
|
16
16
|
static billingUsageOrganizationSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Get
|
|
19
|
-
* Get usage summary for
|
|
18
|
+
* Get My Organization Usage Summary
|
|
19
|
+
* Get usage summary for the current user within an organization.
|
|
20
20
|
* @param organizationId
|
|
21
|
-
* @param podId
|
|
22
21
|
* @param start
|
|
23
22
|
* @param end
|
|
24
23
|
* @param modelName
|
|
@@ -26,11 +25,12 @@ export declare class BillingUsageService {
|
|
|
26
25
|
* @returns UsageSummaryResponse Successful Response
|
|
27
26
|
* @throws ApiError
|
|
28
27
|
*/
|
|
29
|
-
static
|
|
28
|
+
static billingUsageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
30
29
|
/**
|
|
31
|
-
* Get
|
|
32
|
-
* Get usage summary for
|
|
30
|
+
* Get Pod Usage Summary
|
|
31
|
+
* Get usage summary for a specific pod within an organization.
|
|
33
32
|
* @param organizationId
|
|
33
|
+
* @param podId
|
|
34
34
|
* @param start
|
|
35
35
|
* @param end
|
|
36
36
|
* @param modelName
|
|
@@ -38,7 +38,7 @@ export declare class BillingUsageService {
|
|
|
38
38
|
* @returns UsageSummaryResponse Successful Response
|
|
39
39
|
* @throws ApiError
|
|
40
40
|
*/
|
|
41
|
-
static
|
|
41
|
+
static billingUsageOrganizationPodSummaryGet(organizationId: string, podId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
42
42
|
/**
|
|
43
43
|
* Get Organization Recent Usage
|
|
44
44
|
* Get recent usage records for a specific organization.
|
|
@@ -31,10 +31,9 @@ export class BillingUsageService {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Get
|
|
35
|
-
* Get usage summary for
|
|
34
|
+
* Get My Organization Usage Summary
|
|
35
|
+
* Get usage summary for the current user within an organization.
|
|
36
36
|
* @param organizationId
|
|
37
|
-
* @param podId
|
|
38
37
|
* @param start
|
|
39
38
|
* @param end
|
|
40
39
|
* @param modelName
|
|
@@ -42,13 +41,12 @@ export class BillingUsageService {
|
|
|
42
41
|
* @returns UsageSummaryResponse Successful Response
|
|
43
42
|
* @throws ApiError
|
|
44
43
|
*/
|
|
45
|
-
static
|
|
44
|
+
static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, days = 30) {
|
|
46
45
|
return __request(OpenAPI, {
|
|
47
46
|
method: 'GET',
|
|
48
|
-
url: '/billing/usage/organizations/{organization_id}/
|
|
47
|
+
url: '/billing/usage/organizations/{organization_id}/me',
|
|
49
48
|
path: {
|
|
50
49
|
'organization_id': organizationId,
|
|
51
|
-
'pod_id': podId,
|
|
52
50
|
},
|
|
53
51
|
query: {
|
|
54
52
|
'start': start,
|
|
@@ -62,9 +60,10 @@ export class BillingUsageService {
|
|
|
62
60
|
});
|
|
63
61
|
}
|
|
64
62
|
/**
|
|
65
|
-
* Get
|
|
66
|
-
* Get usage summary for
|
|
63
|
+
* Get Pod Usage Summary
|
|
64
|
+
* Get usage summary for a specific pod within an organization.
|
|
67
65
|
* @param organizationId
|
|
66
|
+
* @param podId
|
|
68
67
|
* @param start
|
|
69
68
|
* @param end
|
|
70
69
|
* @param modelName
|
|
@@ -72,12 +71,13 @@ export class BillingUsageService {
|
|
|
72
71
|
* @returns UsageSummaryResponse Successful Response
|
|
73
72
|
* @throws ApiError
|
|
74
73
|
*/
|
|
75
|
-
static
|
|
74
|
+
static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, modelName, days = 30) {
|
|
76
75
|
return __request(OpenAPI, {
|
|
77
76
|
method: 'GET',
|
|
78
|
-
url: '/billing/usage/organizations/{organization_id}/
|
|
77
|
+
url: '/billing/usage/organizations/{organization_id}/pods/{pod_id}',
|
|
79
78
|
path: {
|
|
80
79
|
'organization_id': organizationId,
|
|
80
|
+
'pod_id': podId,
|
|
81
81
|
},
|
|
82
82
|
query: {
|
|
83
83
|
'start': start,
|
|
@@ -6,13 +6,6 @@ import type { CreateMessageRequest } from '../models/CreateMessageRequest.js';
|
|
|
6
6
|
import type { UpdateConversationRequest } from '../models/UpdateConversationRequest.js';
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
8
|
export declare class ConversationsService {
|
|
9
|
-
/**
|
|
10
|
-
* Create Conversation
|
|
11
|
-
* @param requestBody
|
|
12
|
-
* @returns ConversationResponse Successful Response
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static conversationCreate(requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
16
9
|
/**
|
|
17
10
|
* List Conversations
|
|
18
11
|
* @param assistantId
|
|
@@ -24,6 +17,13 @@ export declare class ConversationsService {
|
|
|
24
17
|
* @throws ApiError
|
|
25
18
|
*/
|
|
26
19
|
static conversationList(assistantId?: (string | null), podId?: (string | null), organizationId?: (string | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create Conversation
|
|
22
|
+
* @param requestBody
|
|
23
|
+
* @returns ConversationResponse Successful Response
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static conversationCreate(requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
27
27
|
/**
|
|
28
28
|
* Get Conversation
|
|
29
29
|
* @param conversationId
|
|
@@ -62,19 +62,19 @@ export declare class ConversationsService {
|
|
|
62
62
|
*/
|
|
63
63
|
static conversationMessageCreate(conversationId: string, requestBody: CreateMessageRequest, podId?: (string | null)): CancelablePromise<any>;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Stop Conversation Run
|
|
66
66
|
* @param conversationId
|
|
67
67
|
* @param podId
|
|
68
|
-
* @returns any
|
|
68
|
+
* @returns any Successful Response
|
|
69
69
|
* @throws ApiError
|
|
70
70
|
*/
|
|
71
|
-
static
|
|
71
|
+
static conversationRunStop(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Resume Conversation Stream
|
|
74
74
|
* @param conversationId
|
|
75
75
|
* @param podId
|
|
76
|
-
* @returns any
|
|
76
|
+
* @returns any Server-Sent Events for an already-running conversation.
|
|
77
77
|
* @throws ApiError
|
|
78
78
|
*/
|
|
79
|
-
static
|
|
79
|
+
static conversationStreamResume(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
|
|
80
80
|
}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class ConversationsService {
|
|
4
|
-
/**
|
|
5
|
-
* Create Conversation
|
|
6
|
-
* @param requestBody
|
|
7
|
-
* @returns ConversationResponse Successful Response
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
static conversationCreate(requestBody) {
|
|
11
|
-
return __request(OpenAPI, {
|
|
12
|
-
method: 'POST',
|
|
13
|
-
url: '/conversations',
|
|
14
|
-
body: requestBody,
|
|
15
|
-
mediaType: 'application/json',
|
|
16
|
-
errors: {
|
|
17
|
-
422: `Validation Error`,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
4
|
/**
|
|
22
5
|
* List Conversations
|
|
23
6
|
* @param assistantId
|
|
@@ -44,6 +27,23 @@ export class ConversationsService {
|
|
|
44
27
|
},
|
|
45
28
|
});
|
|
46
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Create Conversation
|
|
32
|
+
* @param requestBody
|
|
33
|
+
* @returns ConversationResponse Successful Response
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static conversationCreate(requestBody) {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '/conversations',
|
|
40
|
+
body: requestBody,
|
|
41
|
+
mediaType: 'application/json',
|
|
42
|
+
errors: {
|
|
43
|
+
422: `Validation Error`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
47
|
/**
|
|
48
48
|
* Get Conversation
|
|
49
49
|
* @param conversationId
|
|
@@ -144,16 +144,16 @@ export class ConversationsService {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Stop Conversation Run
|
|
148
148
|
* @param conversationId
|
|
149
149
|
* @param podId
|
|
150
|
-
* @returns any
|
|
150
|
+
* @returns any Successful Response
|
|
151
151
|
* @throws ApiError
|
|
152
152
|
*/
|
|
153
|
-
static
|
|
153
|
+
static conversationRunStop(conversationId, podId) {
|
|
154
154
|
return __request(OpenAPI, {
|
|
155
|
-
method: '
|
|
156
|
-
url: '/conversations/{conversation_id}/
|
|
155
|
+
method: 'PATCH',
|
|
156
|
+
url: '/conversations/{conversation_id}/stop',
|
|
157
157
|
path: {
|
|
158
158
|
'conversation_id': conversationId,
|
|
159
159
|
},
|
|
@@ -166,16 +166,16 @@ export class ConversationsService {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Resume Conversation Stream
|
|
170
170
|
* @param conversationId
|
|
171
171
|
* @param podId
|
|
172
|
-
* @returns any
|
|
172
|
+
* @returns any Server-Sent Events for an already-running conversation.
|
|
173
173
|
* @throws ApiError
|
|
174
174
|
*/
|
|
175
|
-
static
|
|
175
|
+
static conversationStreamResume(conversationId, podId) {
|
|
176
176
|
return __request(OpenAPI, {
|
|
177
|
-
method: '
|
|
178
|
-
url: '/conversations/{conversation_id}/
|
|
177
|
+
method: 'GET',
|
|
178
|
+
url: '/conversations/{conversation_id}/stream',
|
|
179
179
|
path: {
|
|
180
180
|
'conversation_id': conversationId,
|
|
181
181
|
},
|
|
@@ -7,6 +7,15 @@ import type { DeskResponse } from '../models/DeskResponse.js';
|
|
|
7
7
|
import type { UpdateDeskRequest } from '../models/UpdateDeskRequest.js';
|
|
8
8
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
9
9
|
export declare class DesksService {
|
|
10
|
+
/**
|
|
11
|
+
* List Desks
|
|
12
|
+
* @param podId
|
|
13
|
+
* @param limit
|
|
14
|
+
* @param pageToken
|
|
15
|
+
* @returns DeskListResponse Successful Response
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static deskList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<DeskListResponse>;
|
|
10
19
|
/**
|
|
11
20
|
* Create Desk
|
|
12
21
|
* @param podId
|
|
@@ -16,14 +25,13 @@ export declare class DesksService {
|
|
|
16
25
|
*/
|
|
17
26
|
static deskCreate(podId: string, requestBody: CreateDeskRequest): CancelablePromise<DeskResponse>;
|
|
18
27
|
/**
|
|
19
|
-
*
|
|
28
|
+
* Delete Desk
|
|
20
29
|
* @param podId
|
|
21
|
-
* @param
|
|
22
|
-
* @
|
|
23
|
-
* @returns DeskListResponse Successful Response
|
|
30
|
+
* @param deskName
|
|
31
|
+
* @returns DeskMessageResponse Successful Response
|
|
24
32
|
* @throws ApiError
|
|
25
33
|
*/
|
|
26
|
-
static
|
|
34
|
+
static deskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
|
|
27
35
|
/**
|
|
28
36
|
* Get Desk
|
|
29
37
|
* @param podId
|
|
@@ -41,14 +49,6 @@ export declare class DesksService {
|
|
|
41
49
|
* @throws ApiError
|
|
42
50
|
*/
|
|
43
51
|
static deskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* Delete Desk
|
|
46
|
-
* @param podId
|
|
47
|
-
* @param deskName
|
|
48
|
-
* @returns DeskMessageResponse Successful Response
|
|
49
|
-
* @throws ApiError
|
|
50
|
-
*/
|
|
51
|
-
static deskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* Upload Desk Bundle
|
|
54
54
|
* @param podId
|
|
@@ -2,60 +2,60 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class DesksService {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* List Desks
|
|
6
6
|
* @param podId
|
|
7
|
-
* @param
|
|
8
|
-
* @
|
|
7
|
+
* @param limit
|
|
8
|
+
* @param pageToken
|
|
9
|
+
* @returns DeskListResponse Successful Response
|
|
9
10
|
* @throws ApiError
|
|
10
11
|
*/
|
|
11
|
-
static
|
|
12
|
+
static deskList(podId, limit = 100, pageToken) {
|
|
12
13
|
return __request(OpenAPI, {
|
|
13
|
-
method: '
|
|
14
|
+
method: 'GET',
|
|
14
15
|
url: '/pods/{pod_id}/desks',
|
|
15
16
|
path: {
|
|
16
17
|
'pod_id': podId,
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
query: {
|
|
20
|
+
'limit': limit,
|
|
21
|
+
'page_token': pageToken,
|
|
22
|
+
},
|
|
20
23
|
errors: {
|
|
21
24
|
422: `Validation Error`,
|
|
22
25
|
},
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* Create Desk
|
|
27
30
|
* @param podId
|
|
28
|
-
* @param
|
|
29
|
-
* @
|
|
30
|
-
* @returns DeskListResponse Successful Response
|
|
31
|
+
* @param requestBody
|
|
32
|
+
* @returns DeskResponse Successful Response
|
|
31
33
|
* @throws ApiError
|
|
32
34
|
*/
|
|
33
|
-
static
|
|
35
|
+
static deskCreate(podId, requestBody) {
|
|
34
36
|
return __request(OpenAPI, {
|
|
35
|
-
method: '
|
|
37
|
+
method: 'POST',
|
|
36
38
|
url: '/pods/{pod_id}/desks',
|
|
37
39
|
path: {
|
|
38
40
|
'pod_id': podId,
|
|
39
41
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
'page_token': pageToken,
|
|
43
|
-
},
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
44
44
|
errors: {
|
|
45
45
|
422: `Validation Error`,
|
|
46
46
|
},
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Delete Desk
|
|
51
51
|
* @param podId
|
|
52
52
|
* @param deskName
|
|
53
|
-
* @returns
|
|
53
|
+
* @returns DeskMessageResponse Successful Response
|
|
54
54
|
* @throws ApiError
|
|
55
55
|
*/
|
|
56
|
-
static
|
|
56
|
+
static deskDelete(podId, deskName) {
|
|
57
57
|
return __request(OpenAPI, {
|
|
58
|
-
method: '
|
|
58
|
+
method: 'DELETE',
|
|
59
59
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
60
60
|
path: {
|
|
61
61
|
'pod_id': podId,
|
|
@@ -67,43 +67,43 @@ export class DesksService {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Get Desk
|
|
71
71
|
* @param podId
|
|
72
72
|
* @param deskName
|
|
73
|
-
* @param requestBody
|
|
74
73
|
* @returns DeskResponse Successful Response
|
|
75
74
|
* @throws ApiError
|
|
76
75
|
*/
|
|
77
|
-
static
|
|
76
|
+
static deskGet(podId, deskName) {
|
|
78
77
|
return __request(OpenAPI, {
|
|
79
|
-
method: '
|
|
78
|
+
method: 'GET',
|
|
80
79
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
81
80
|
path: {
|
|
82
81
|
'pod_id': podId,
|
|
83
82
|
'desk_name': deskName,
|
|
84
83
|
},
|
|
85
|
-
body: requestBody,
|
|
86
|
-
mediaType: 'application/json',
|
|
87
84
|
errors: {
|
|
88
85
|
422: `Validation Error`,
|
|
89
86
|
},
|
|
90
87
|
});
|
|
91
88
|
}
|
|
92
89
|
/**
|
|
93
|
-
*
|
|
90
|
+
* Update Desk
|
|
94
91
|
* @param podId
|
|
95
92
|
* @param deskName
|
|
96
|
-
* @
|
|
93
|
+
* @param requestBody
|
|
94
|
+
* @returns DeskResponse Successful Response
|
|
97
95
|
* @throws ApiError
|
|
98
96
|
*/
|
|
99
|
-
static
|
|
97
|
+
static deskUpdate(podId, deskName, requestBody) {
|
|
100
98
|
return __request(OpenAPI, {
|
|
101
|
-
method: '
|
|
99
|
+
method: 'PATCH',
|
|
102
100
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
103
101
|
path: {
|
|
104
102
|
'pod_id': podId,
|
|
105
103
|
'desk_name': deskName,
|
|
106
104
|
},
|
|
105
|
+
body: requestBody,
|
|
106
|
+
mediaType: 'application/json',
|
|
107
107
|
errors: {
|
|
108
108
|
422: `Validation Error`,
|
|
109
109
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
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
1
|
import type { CreateFolderRequest } from '../models/CreateFolderRequest.js';
|
|
3
2
|
import type { DatastoreFileUploadRequest } from '../models/DatastoreFileUploadRequest.js';
|
|
4
3
|
import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
|
|
@@ -6,124 +5,74 @@ import type { FileListResponse } from '../models/FileListResponse.js';
|
|
|
6
5
|
import type { FileResponse } from '../models/FileResponse.js';
|
|
7
6
|
import type { FileSearchRequest } from '../models/FileSearchRequest.js';
|
|
8
7
|
import type { FileSearchResponse } from '../models/FileSearchResponse.js';
|
|
9
|
-
import type { FileUploadResponse } from '../models/FileUploadResponse.js';
|
|
10
|
-
import type { ResourceFileListResponse } from '../models/ResourceFileListResponse.js';
|
|
11
|
-
import type { ResourceType } from '../models/ResourceType.js';
|
|
12
8
|
import type { update } from '../models/update.js';
|
|
13
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
14
10
|
export declare class FilesService {
|
|
15
11
|
/**
|
|
16
12
|
* List Files
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @param path
|
|
13
|
+
* @param podId
|
|
14
|
+
* @param parentId
|
|
20
15
|
* @param limit
|
|
21
16
|
* @param pageToken
|
|
22
|
-
* @returns
|
|
17
|
+
* @returns FileListResponse Successful Response
|
|
23
18
|
* @throws ApiError
|
|
24
19
|
*/
|
|
25
|
-
static
|
|
20
|
+
static fileList(podId: string, parentId?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
|
|
26
21
|
/**
|
|
27
22
|
* Upload File
|
|
28
|
-
* @param
|
|
29
|
-
* @param resourceId
|
|
23
|
+
* @param podId
|
|
30
24
|
* @param formData
|
|
31
|
-
* @
|
|
32
|
-
* @returns FileUploadResponse Successful Response
|
|
33
|
-
* @throws ApiError
|
|
34
|
-
*/
|
|
35
|
-
static uploadFileFilesResourceTypeResourceIdUploadPost(resourceType: ResourceType, resourceId: string, formData: Body_upload_file_files__resource_type___resource_id__upload_post, path?: (string | null)): CancelablePromise<FileUploadResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Download File
|
|
38
|
-
* @param resourceType
|
|
39
|
-
* @param resourceId
|
|
40
|
-
* @param filePath
|
|
41
|
-
* @returns any Successful Response
|
|
42
|
-
* @throws ApiError
|
|
43
|
-
*/
|
|
44
|
-
static downloadFileFilesResourceTypeResourceIdDownloadFilePathGet(resourceType: ResourceType, resourceId: string, filePath: string): CancelablePromise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete File
|
|
47
|
-
* @param resourceType
|
|
48
|
-
* @param resourceId
|
|
49
|
-
* @param filePath
|
|
50
|
-
* @returns any Successful Response
|
|
25
|
+
* @returns FileResponse Successful Response
|
|
51
26
|
* @throws ApiError
|
|
52
27
|
*/
|
|
53
|
-
static
|
|
28
|
+
static fileUpload(podId: string, formData: DatastoreFileUploadRequest): CancelablePromise<FileResponse>;
|
|
54
29
|
/**
|
|
55
|
-
*
|
|
30
|
+
* Create Folder
|
|
56
31
|
* @param podId
|
|
57
|
-
* @param
|
|
58
|
-
* @param formData
|
|
32
|
+
* @param requestBody
|
|
59
33
|
* @returns FileResponse Successful Response
|
|
60
34
|
* @throws ApiError
|
|
61
35
|
*/
|
|
62
|
-
static
|
|
36
|
+
static fileFolderCreate(podId: string, requestBody: CreateFolderRequest): CancelablePromise<FileResponse>;
|
|
63
37
|
/**
|
|
64
|
-
*
|
|
38
|
+
* Search Files
|
|
65
39
|
* @param podId
|
|
66
|
-
* @param
|
|
67
|
-
* @
|
|
68
|
-
* @param limit
|
|
69
|
-
* @param pageToken
|
|
70
|
-
* @returns FileListResponse Successful Response
|
|
40
|
+
* @param requestBody
|
|
41
|
+
* @returns FileSearchResponse Successful Response
|
|
71
42
|
* @throws ApiError
|
|
72
43
|
*/
|
|
73
|
-
static
|
|
44
|
+
static fileSearch(podId: string, requestBody: FileSearchRequest): CancelablePromise<FileSearchResponse>;
|
|
74
45
|
/**
|
|
75
|
-
*
|
|
46
|
+
* Delete File
|
|
76
47
|
* @param podId
|
|
77
|
-
* @param
|
|
78
|
-
* @
|
|
79
|
-
* @returns FileResponse Successful Response
|
|
48
|
+
* @param fileId
|
|
49
|
+
* @returns DatastoreMessageResponse Successful Response
|
|
80
50
|
* @throws ApiError
|
|
81
51
|
*/
|
|
82
|
-
static
|
|
52
|
+
static fileDelete(podId: string, fileId: string): CancelablePromise<DatastoreMessageResponse>;
|
|
83
53
|
/**
|
|
84
54
|
* Get File
|
|
85
55
|
* @param podId
|
|
86
|
-
* @param datastoreName
|
|
87
56
|
* @param fileId
|
|
88
57
|
* @returns FileResponse Successful Response
|
|
89
58
|
* @throws ApiError
|
|
90
59
|
*/
|
|
91
|
-
static fileGet(podId: string,
|
|
60
|
+
static fileGet(podId: string, fileId: string): CancelablePromise<FileResponse>;
|
|
92
61
|
/**
|
|
93
62
|
* Update File
|
|
94
63
|
* @param podId
|
|
95
|
-
* @param datastoreName
|
|
96
64
|
* @param fileId
|
|
97
65
|
* @param formData
|
|
98
66
|
* @returns FileResponse Successful Response
|
|
99
67
|
* @throws ApiError
|
|
100
68
|
*/
|
|
101
|
-
static fileUpdate(podId: string,
|
|
102
|
-
/**
|
|
103
|
-
* Delete File
|
|
104
|
-
* @param podId
|
|
105
|
-
* @param datastoreName
|
|
106
|
-
* @param fileId
|
|
107
|
-
* @returns DatastoreMessageResponse Successful Response
|
|
108
|
-
* @throws ApiError
|
|
109
|
-
*/
|
|
110
|
-
static fileDelete(podId: string, datastoreName: string, fileId: string): CancelablePromise<DatastoreMessageResponse>;
|
|
69
|
+
static fileUpdate(podId: string, fileId: string, formData?: update): CancelablePromise<FileResponse>;
|
|
111
70
|
/**
|
|
112
71
|
* Download File
|
|
113
72
|
* @param podId
|
|
114
|
-
* @param datastoreName
|
|
115
73
|
* @param fileId
|
|
116
74
|
* @returns any Successful Response
|
|
117
75
|
* @throws ApiError
|
|
118
76
|
*/
|
|
119
|
-
static fileDownload(podId: string,
|
|
120
|
-
/**
|
|
121
|
-
* Search Files
|
|
122
|
-
* @param podId
|
|
123
|
-
* @param datastoreName
|
|
124
|
-
* @param requestBody
|
|
125
|
-
* @returns FileSearchResponse Successful Response
|
|
126
|
-
* @throws ApiError
|
|
127
|
-
*/
|
|
128
|
-
static fileSearch(podId: string, datastoreName: string, requestBody: FileSearchRequest): CancelablePromise<FileSearchResponse>;
|
|
77
|
+
static fileDownload(podId: string, fileId: string): CancelablePromise<any>;
|
|
129
78
|
}
|