lemma-sdk 0.2.40 → 0.2.42
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 +10 -3
- package/dist/browser/lemma-client.js +95 -68
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/conversations.d.ts +6 -0
- package/dist/namespaces/conversations.js +2 -0
- package/dist/namespaces/files.js +12 -21
- package/dist/namespaces/resources.d.ts +21 -5
- package/dist/openapi_client/index.d.ts +21 -15
- package/dist/openapi_client/index.js +5 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
- package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
- package/dist/openapi_client/models/BillingScope.d.ts +7 -0
- package/dist/openapi_client/models/BillingScope.js +12 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +6 -0
- package/dist/openapi_client/models/ConversationStatus.d.ts +11 -0
- package/dist/openapi_client/models/ConversationStatus.js +16 -0
- package/dist/openapi_client/models/ConversationType.d.ts +7 -0
- package/dist/openapi_client/models/ConversationType.js +12 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -0
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -2
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
- package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
- package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -2
- package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
- package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
- package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
- package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
- package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
- package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
- package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
- package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/TableAccessEntry.js +1 -0
- package/dist/openapi_client/models/TableResponse.d.ts +2 -0
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
- package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
- package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
- package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
- package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageListResponse.js +1 -0
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
- package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
- package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
- package/dist/openapi_client/models/update.d.ts +1 -2
- package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -1
- package/dist/openapi_client/services/AgentConversationsService.js +5 -1
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
- package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
- package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
- package/dist/openapi_client/services/BillingUsageService.js +186 -6
- package/dist/openapi_client/services/DesksService.d.ts +21 -4
- package/dist/openapi_client/services/DesksService.js +44 -2
- package/dist/openapi_client/services/FilesService.d.ts +11 -20
- package/dist/openapi_client/services/FilesService.js +11 -28
- package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
- package/dist/openapi_client/services/FunctionsService.js +2 -2
- package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
- package/dist/openapi_client/services/PodMembersService.js +24 -0
- package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
- package/dist/openapi_client/services/PodRolesService.js +63 -0
- package/dist/react/AuthGuard.d.ts +0 -15
- package/dist/react/AuthGuard.js +128 -167
- package/dist/react/index.d.ts +1 -1
- package/dist/react/useAssistantController.d.ts +8 -4
- package/dist/react/useAssistantController.js +9 -6
- package/dist/react/useAssistantSession.d.ts +9 -0
- package/dist/react/useAssistantSession.js +10 -2
- package/dist/react/useConversationMessages.d.ts +2 -1
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useConversations.d.ts +7 -1
- package/dist/react/useConversations.js +10 -4
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
- package/dist/openapi_client/models/FileInfo.d.ts +0 -14
- package/dist/openapi_client/models/FileInfo.js +0 -8
- package/dist/openapi_client/models/FileNamespace.d.ts +0 -4
- package/dist/openapi_client/models/FileNamespace.js +0 -9
- package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
- package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
- package/dist/openapi_client/models/ResourceType.d.ts +0 -4
- package/dist/openapi_client/models/ResourceType.js +0 -9
- package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
- package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
- package/dist/openapi_client/services/AgentFilesService.js +0 -103
- package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
- package/dist/openapi_client/services/AuthorizationService.js +0 -122
- /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
- /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
- /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
- /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { SubscriptionResponse } from './SubscriptionResponse.js';
|
|
1
2
|
/**
|
|
2
3
|
* Response with checkout URL.
|
|
3
4
|
*/
|
|
4
5
|
export type StartSubscriptionResponse = {
|
|
5
|
-
checkout_url
|
|
6
|
+
checkout_url?: (string | null);
|
|
6
7
|
message?: string;
|
|
8
|
+
subscription?: (SubscriptionResponse | null);
|
|
7
9
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BillingScope } from './BillingScope.js';
|
|
2
|
+
import type { PlanResponse } from './PlanResponse.js';
|
|
3
|
+
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
4
|
+
/**
|
|
5
|
+
* Response schema for a subscription.
|
|
6
|
+
*/
|
|
7
|
+
export type SubscriptionResponse = {
|
|
8
|
+
billing_scope: BillingScope;
|
|
9
|
+
cancel_at_period_end: boolean;
|
|
10
|
+
created_at: string;
|
|
11
|
+
current_period_end: (string | null);
|
|
12
|
+
current_period_start: (string | null);
|
|
13
|
+
dodo_subscription_id: (string | null);
|
|
14
|
+
id: string;
|
|
15
|
+
organization_id: (string | null);
|
|
16
|
+
plan?: (PlanResponse | null);
|
|
17
|
+
plan_id: string;
|
|
18
|
+
seat_count: number;
|
|
19
|
+
status: SubscriptionStatus;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
user_id: (string | null);
|
|
22
|
+
};
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import type { BillingScope } from './BillingScope.js';
|
|
1
2
|
import type { PlanResponse } from './PlanResponse.js';
|
|
2
3
|
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
3
4
|
/**
|
|
4
5
|
* Subscription response with plan details.
|
|
5
6
|
*/
|
|
6
7
|
export type SubscriptionWithPlanResponse = {
|
|
8
|
+
billing_scope: BillingScope;
|
|
7
9
|
cancel_at_period_end: boolean;
|
|
8
10
|
created_at: string;
|
|
9
11
|
current_period_end: (string | null);
|
|
10
12
|
current_period_start: (string | null);
|
|
11
13
|
dodo_subscription_id: (string | null);
|
|
12
14
|
id: string;
|
|
13
|
-
organization_id: string;
|
|
15
|
+
organization_id: (string | null);
|
|
14
16
|
plan: PlanResponse;
|
|
15
17
|
plan_id: string;
|
|
16
18
|
seat_count: number;
|
|
17
19
|
status: SubscriptionStatus;
|
|
18
20
|
updated_at: string;
|
|
21
|
+
user_id: (string | null);
|
|
19
22
|
};
|
|
@@ -2,7 +2,7 @@ import type { TableAccessMode } from './TableAccessMode.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Per-table access configuration for workloads.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type TableAccessEntry = {
|
|
6
6
|
mode?: TableAccessMode;
|
|
7
7
|
table_name: string;
|
|
8
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AgentModelName } from './AgentModelName.js';
|
|
2
2
|
import type { AgentToolset } from './AgentToolset.js';
|
|
3
|
-
import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
|
|
4
3
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
5
4
|
import type { HarnessKind } from './HarnessKind.js';
|
|
5
|
+
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
6
6
|
export type UpdateAgentRequest = {
|
|
7
7
|
accessible_applications?: (Array<ApplicationAccessConfig> | null);
|
|
8
8
|
accessible_folders?: (Array<string> | null);
|
|
9
|
-
accessible_tables?: (Array<
|
|
9
|
+
accessible_tables?: (Array<TableAccessEntry> | null);
|
|
10
10
|
agent_names?: (Array<string> | null);
|
|
11
11
|
description?: (string | null);
|
|
12
12
|
function_names?: (Array<string> | null);
|
|
@@ -18,4 +18,5 @@ export type UpdateAgentRequest = {
|
|
|
18
18
|
model_name?: (AgentModelName | null);
|
|
19
19
|
output_schema?: (Record<string, any> | null);
|
|
20
20
|
toolsets?: (Array<AgentToolset> | null);
|
|
21
|
+
visibility_roles?: (Array<string> | null);
|
|
21
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
|
|
2
1
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
|
+
import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
|
|
3
3
|
import type { FunctionType } from './FunctionType.js';
|
|
4
4
|
/**
|
|
5
5
|
* Request to update a function.
|
|
@@ -7,10 +7,14 @@ import type { FunctionType } from './FunctionType.js';
|
|
|
7
7
|
export type UpdateFunctionRequest = {
|
|
8
8
|
accessible_applications?: (Array<ApplicationAccessConfig> | null);
|
|
9
9
|
accessible_folders?: (Array<string> | null);
|
|
10
|
-
accessible_tables?: (Array<
|
|
10
|
+
accessible_tables?: (Array<FunctionTableAccessEntry> | null);
|
|
11
|
+
/**
|
|
12
|
+
* Updated Python source for the function. When provided, the platform re-analyzes the code and refreshes input_schema, output_schema, and config_schema on the returned function.
|
|
13
|
+
*/
|
|
11
14
|
code?: (string | null);
|
|
12
15
|
config?: (Record<string, any> | null);
|
|
13
16
|
description?: (string | null);
|
|
14
17
|
icon_url?: (string | null);
|
|
15
18
|
type?: (FunctionType | null);
|
|
19
|
+
visibility_roles?: (Array<string> | null);
|
|
16
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UsageLimitScopeResponse } from './UsageLimitScopeResponse.js';
|
|
2
|
+
/**
|
|
3
|
+
* Current usage limit state for an organization/user.
|
|
4
|
+
*/
|
|
5
|
+
export type UsageLimitsResponse = {
|
|
6
|
+
allowed: boolean;
|
|
7
|
+
org_monthly: UsageLimitScopeResponse;
|
|
8
|
+
organization_id: string;
|
|
9
|
+
user_id: string;
|
|
10
|
+
user_weekly: UsageLimitScopeResponse;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UsageRecordResponse } from './UsageRecordResponse.js';
|
|
2
|
+
/**
|
|
3
|
+
* Response schema for list of usage records.
|
|
4
|
+
*/
|
|
5
|
+
export type UsageListResponse = {
|
|
6
|
+
end_date: string;
|
|
7
|
+
items: Array<UsageRecordResponse>;
|
|
8
|
+
start_date: string;
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,20 +2,28 @@
|
|
|
2
2
|
* Response schema for a usage record.
|
|
3
3
|
*/
|
|
4
4
|
export type UsageRecordResponse = {
|
|
5
|
+
agent_id?: (string | null);
|
|
6
|
+
agent_run_id: string;
|
|
7
|
+
conversation_id: string;
|
|
5
8
|
created_at: string;
|
|
9
|
+
duration_seconds: number;
|
|
6
10
|
id: string;
|
|
7
11
|
input_cost_usd: number;
|
|
8
12
|
input_tokens: number;
|
|
9
13
|
metadata: Record<string, any>;
|
|
10
14
|
model_name: string;
|
|
11
15
|
occurred_at: string;
|
|
12
|
-
organization_id: string;
|
|
16
|
+
organization_id: (string | null);
|
|
13
17
|
output_cost_usd: number;
|
|
14
18
|
output_tokens: number;
|
|
15
|
-
pod_id: string;
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
pod_id: (string | null);
|
|
20
|
+
request_count: number;
|
|
21
|
+
status?: (string | null);
|
|
22
|
+
tool_call_count: number;
|
|
18
23
|
total_cost_usd: number;
|
|
19
24
|
total_tokens: number;
|
|
25
|
+
unit_cost_usd: number;
|
|
26
|
+
units: number;
|
|
27
|
+
usage_kind: string;
|
|
20
28
|
user_id: string;
|
|
21
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { UsageStatsBucketResponse } from './UsageStatsBucketResponse.js';
|
|
2
|
+
/**
|
|
3
|
+
* Response schema for usage statistics.
|
|
4
|
+
*/
|
|
5
|
+
export type UsageStatsResponse = {
|
|
6
|
+
end_date: string;
|
|
7
|
+
granularity: string;
|
|
8
|
+
group_by?: (string | null);
|
|
9
|
+
items: Array<UsageStatsBucketResponse>;
|
|
10
|
+
start_date: string;
|
|
11
|
+
total: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
* Response schema for usage summary.
|
|
3
3
|
*/
|
|
4
4
|
export type UsageSummaryResponse = {
|
|
5
|
+
agent_id?: (string | null);
|
|
5
6
|
end_date: string;
|
|
6
7
|
organization_id?: (string | null);
|
|
7
8
|
period_days: number;
|
|
8
9
|
pod_id?: (string | null);
|
|
9
10
|
start_date: string;
|
|
11
|
+
total_by_kind: Record<string, Record<string, number>>;
|
|
10
12
|
total_by_model: Record<string, Record<string, number>>;
|
|
11
13
|
total_cost_usd: number;
|
|
12
14
|
total_input_tokens: number;
|
|
13
15
|
total_output_tokens: number;
|
|
14
16
|
total_tokens: number;
|
|
17
|
+
total_units: number;
|
|
15
18
|
user_id?: (string | null);
|
|
16
19
|
};
|
|
@@ -24,4 +24,5 @@ export type WorkflowCreateRequest = {
|
|
|
24
24
|
* Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
|
|
25
25
|
*/
|
|
26
26
|
start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
|
|
27
|
+
visibility_roles?: (Array<string> | null);
|
|
27
28
|
};
|
|
@@ -20,4 +20,5 @@ export type WorkflowUpdateRequest = {
|
|
|
20
20
|
* Updated start trigger configuration.
|
|
21
21
|
*/
|
|
22
22
|
start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
|
|
23
|
+
visibility_roles?: (Array<string> | null);
|
|
23
24
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { FileNamespace } from './FileNamespace.js';
|
|
2
1
|
export type update = {
|
|
3
2
|
data?: (string | null);
|
|
4
3
|
description?: (string | null);
|
|
5
|
-
namespace?: (FileNamespace | null);
|
|
6
4
|
new_path?: (string | null);
|
|
7
5
|
path: string;
|
|
8
6
|
search_enabled?: (boolean | null);
|
|
7
|
+
visibility_roles?: (string | null);
|
|
9
8
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ConversationListResponse } from '../models/ConversationListResponse.js';
|
|
2
2
|
import type { ConversationResponse } from '../models/ConversationResponse.js';
|
|
3
|
+
import type { ConversationStatus } from '../models/ConversationStatus.js';
|
|
4
|
+
import type { ConversationType } from '../models/ConversationType.js';
|
|
3
5
|
import type { CreateConversationRequest } from '../models/CreateConversationRequest.js';
|
|
4
6
|
import type { MessageListResponse } from '../models/MessageListResponse.js';
|
|
5
7
|
import type { SendMessageRequest } from '../models/SendMessageRequest.js';
|
|
@@ -11,12 +13,14 @@ export declare class AgentConversationsService {
|
|
|
11
13
|
* List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
|
|
12
14
|
* @param podId
|
|
13
15
|
* @param agentName
|
|
16
|
+
* @param status
|
|
17
|
+
* @param type
|
|
14
18
|
* @param pageToken
|
|
15
19
|
* @param limit
|
|
16
20
|
* @returns ConversationListResponse Successful Response
|
|
17
21
|
* @throws ApiError
|
|
18
22
|
*/
|
|
19
|
-
static agentConversationList(podId: string, agentName?: (string | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
|
|
23
|
+
static agentConversationList(podId: string, agentName?: (string | null), status?: (ConversationStatus | null), type?: (ConversationType | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
|
|
20
24
|
/**
|
|
21
25
|
* Create Pod Agent Conversation
|
|
22
26
|
* Create a new pod-scoped conversation. When agent_name is omitted, the conversation uses the default pod assistant. Workflow and sub-agent executions also use conversations as their external execution handle.
|
|
@@ -6,12 +6,14 @@ export class AgentConversationsService {
|
|
|
6
6
|
* List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
|
|
7
7
|
* @param podId
|
|
8
8
|
* @param agentName
|
|
9
|
+
* @param status
|
|
10
|
+
* @param type
|
|
9
11
|
* @param pageToken
|
|
10
12
|
* @param limit
|
|
11
13
|
* @returns ConversationListResponse Successful Response
|
|
12
14
|
* @throws ApiError
|
|
13
15
|
*/
|
|
14
|
-
static agentConversationList(podId, agentName, pageToken, limit = 20) {
|
|
16
|
+
static agentConversationList(podId, agentName, status, type, pageToken, limit = 20) {
|
|
15
17
|
return __request(OpenAPI, {
|
|
16
18
|
method: 'GET',
|
|
17
19
|
url: '/pods/{pod_id}/conversations',
|
|
@@ -20,6 +22,8 @@ export class AgentConversationsService {
|
|
|
20
22
|
},
|
|
21
23
|
query: {
|
|
22
24
|
'agent_name': agentName,
|
|
25
|
+
'status': status,
|
|
26
|
+
'type': type,
|
|
23
27
|
'page_token': pageToken,
|
|
24
28
|
'limit': limit,
|
|
25
29
|
},
|
|
@@ -1,56 +1,116 @@
|
|
|
1
|
+
import type { BillingHistoryResponse } from '../models/BillingHistoryResponse.js';
|
|
2
|
+
import type { BillingInvoiceResponse } from '../models/BillingInvoiceResponse.js';
|
|
1
3
|
import type { CancelSubscriptionResponse } from '../models/CancelSubscriptionResponse.js';
|
|
4
|
+
import type { CreateInvoicePaymentUrlRequest } from '../models/CreateInvoicePaymentUrlRequest.js';
|
|
5
|
+
import type { CreateInvoicePaymentUrlResponse } from '../models/CreateInvoicePaymentUrlResponse.js';
|
|
2
6
|
import type { PlanListResponse } from '../models/PlanListResponse.js';
|
|
3
7
|
import type { SeatInfoResponse } from '../models/SeatInfoResponse.js';
|
|
4
8
|
import type { StartSubscriptionRequest } from '../models/StartSubscriptionRequest.js';
|
|
5
9
|
import type { StartSubscriptionResponse } from '../models/StartSubscriptionResponse.js';
|
|
10
|
+
import type { StartTeamBillingRequest } from '../models/StartTeamBillingRequest.js';
|
|
6
11
|
import type { SubscriptionStatusResponse } from '../models/SubscriptionStatusResponse.js';
|
|
7
12
|
import type { SubscriptionWithPlanResponse } from '../models/SubscriptionWithPlanResponse.js';
|
|
8
13
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
9
14
|
export declare class BillingSubscriptionsService {
|
|
10
15
|
/**
|
|
11
|
-
* List
|
|
12
|
-
* List
|
|
13
|
-
* @param
|
|
16
|
+
* List Organization Billing History
|
|
17
|
+
* List invoices for an organization.
|
|
18
|
+
* @param organizationId
|
|
14
19
|
* @param limit
|
|
15
20
|
* @param pageToken
|
|
16
|
-
* @returns
|
|
21
|
+
* @returns BillingHistoryResponse Successful Response
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static billingOrganizationHistory(organizationId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<BillingHistoryResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Current Organization Invoice
|
|
27
|
+
* Get or create the current unpaid monthly invoice.
|
|
28
|
+
* @param organizationId
|
|
29
|
+
* @returns BillingInvoiceResponse Successful Response
|
|
17
30
|
* @throws ApiError
|
|
18
31
|
*/
|
|
19
|
-
static
|
|
32
|
+
static billingOrganizationInvoicesCurrent(organizationId: string): CancelablePromise<BillingInvoiceResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Create Invoice Payment URL
|
|
35
|
+
* Create a hosted checkout URL for an unpaid invoice.
|
|
36
|
+
* @param organizationId
|
|
37
|
+
* @param invoiceId
|
|
38
|
+
* @param requestBody
|
|
39
|
+
* @returns CreateInvoicePaymentUrlResponse Successful Response
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static billingOrganizationInvoicesPaymentUrl(organizationId: string, invoiceId: string, requestBody: CreateInvoicePaymentUrlRequest): CancelablePromise<CreateInvoicePaymentUrlResponse>;
|
|
20
43
|
/**
|
|
21
44
|
* Get Seat Info
|
|
22
45
|
* Get seat availability information.
|
|
46
|
+
* @param organizationId
|
|
23
47
|
* @returns SeatInfoResponse Successful Response
|
|
24
48
|
* @throws ApiError
|
|
25
49
|
*/
|
|
26
|
-
static
|
|
50
|
+
static billingOrganizationSeatsInfo(organizationId: string): CancelablePromise<SeatInfoResponse>;
|
|
27
51
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
-
* @returns
|
|
52
|
+
* Get Organization Subscription
|
|
53
|
+
* Get subscription for an organization.
|
|
54
|
+
* @param organizationId
|
|
55
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
32
56
|
* @throws ApiError
|
|
33
57
|
*/
|
|
34
|
-
static
|
|
58
|
+
static billingOrganizationSubscriptionGet(organizationId: string): CancelablePromise<SubscriptionWithPlanResponse>;
|
|
35
59
|
/**
|
|
36
|
-
* Cancel Subscription
|
|
37
|
-
* Cancel
|
|
60
|
+
* Cancel Organization Subscription
|
|
61
|
+
* Cancel an organization's team billing subscription.
|
|
62
|
+
* @param organizationId
|
|
38
63
|
* @returns CancelSubscriptionResponse Successful Response
|
|
39
64
|
* @throws ApiError
|
|
40
65
|
*/
|
|
41
|
-
static
|
|
66
|
+
static billingOrganizationSubscriptionCancel(organizationId: string): CancelablePromise<CancelSubscriptionResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Start Organization Team Billing
|
|
69
|
+
* Start monthly-invoiced team billing for an organization.
|
|
70
|
+
* @param organizationId
|
|
71
|
+
* @param requestBody
|
|
72
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static billingOrganizationTeamBillingStart(organizationId: string, requestBody: StartTeamBillingRequest): CancelablePromise<SubscriptionWithPlanResponse>;
|
|
42
76
|
/**
|
|
43
|
-
* Get
|
|
44
|
-
* Get the current
|
|
77
|
+
* Get Personal Subscription
|
|
78
|
+
* Get the current user's personal subscription.
|
|
45
79
|
* @returns SubscriptionWithPlanResponse Successful Response
|
|
46
80
|
* @throws ApiError
|
|
47
81
|
*/
|
|
48
|
-
static
|
|
82
|
+
static billingPersonalSubscriptionGet(): CancelablePromise<SubscriptionWithPlanResponse>;
|
|
49
83
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
84
|
+
* Start Personal Subscription
|
|
85
|
+
* Start a new subscription.
|
|
86
|
+
* @param requestBody
|
|
87
|
+
* @returns StartSubscriptionResponse Successful Response
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
static billingPersonalSubscriptionStart(requestBody: StartSubscriptionRequest): CancelablePromise<StartSubscriptionResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Cancel Personal Subscription
|
|
93
|
+
* Cancel subscription.
|
|
94
|
+
* @returns CancelSubscriptionResponse Successful Response
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
static billingPersonalSubscriptionCancel(): CancelablePromise<CancelSubscriptionResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Get Personal Subscription Status
|
|
100
|
+
* Get subscription status.
|
|
52
101
|
* @returns SubscriptionStatusResponse Successful Response
|
|
53
102
|
* @throws ApiError
|
|
54
103
|
*/
|
|
55
|
-
static
|
|
104
|
+
static billingPersonalSubscriptionStatus(): CancelablePromise<SubscriptionStatusResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* List Plans
|
|
107
|
+
* List available subscription plans.
|
|
108
|
+
* @param onlyActive
|
|
109
|
+
* @param audience
|
|
110
|
+
* @param limit
|
|
111
|
+
* @param pageToken
|
|
112
|
+
* @returns PlanListResponse Successful Response
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static billingPlansList(onlyActive?: boolean, audience?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<PlanListResponse>;
|
|
56
116
|
}
|