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.
Files changed (130) hide show
  1. package/README.md +10 -3
  2. package/dist/browser/lemma-client.js +95 -68
  3. package/dist/index.d.ts +1 -1
  4. package/dist/namespaces/conversations.d.ts +6 -0
  5. package/dist/namespaces/conversations.js +2 -0
  6. package/dist/namespaces/files.js +12 -21
  7. package/dist/namespaces/resources.d.ts +21 -5
  8. package/dist/openapi_client/index.d.ts +21 -15
  9. package/dist/openapi_client/index.js +5 -5
  10. package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
  11. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
  12. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
  13. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
  14. package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
  15. package/dist/openapi_client/models/BillingScope.d.ts +7 -0
  16. package/dist/openapi_client/models/BillingScope.js +12 -0
  17. package/dist/openapi_client/models/ConversationResponse.d.ts +6 -0
  18. package/dist/openapi_client/models/ConversationStatus.d.ts +11 -0
  19. package/dist/openapi_client/models/ConversationStatus.js +16 -0
  20. package/dist/openapi_client/models/ConversationType.d.ts +7 -0
  21. package/dist/openapi_client/models/ConversationType.js +12 -0
  22. package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
  23. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -0
  24. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
  25. package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -2
  26. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
  27. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
  28. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
  29. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
  30. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
  31. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -2
  32. package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
  33. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  34. package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
  35. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
  36. package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
  37. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
  38. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
  39. package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
  40. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
  41. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
  42. package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
  43. package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
  44. package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
  45. package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
  46. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
  47. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
  48. package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
  49. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
  50. package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
  51. package/dist/openapi_client/models/TableAccessEntry.js +1 -0
  52. package/dist/openapi_client/models/TableResponse.d.ts +2 -0
  53. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
  54. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -0
  55. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
  56. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
  57. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  58. package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
  59. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
  60. package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
  61. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
  62. package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
  63. package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
  64. package/dist/openapi_client/models/UsageListResponse.js +1 -0
  65. package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
  66. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
  67. package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
  68. package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
  69. package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
  70. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
  71. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
  72. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
  73. package/dist/openapi_client/models/update.d.ts +1 -2
  74. package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -1
  75. package/dist/openapi_client/services/AgentConversationsService.js +5 -1
  76. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
  77. package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
  78. package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
  79. package/dist/openapi_client/services/BillingUsageService.js +186 -6
  80. package/dist/openapi_client/services/DesksService.d.ts +21 -4
  81. package/dist/openapi_client/services/DesksService.js +44 -2
  82. package/dist/openapi_client/services/FilesService.d.ts +11 -20
  83. package/dist/openapi_client/services/FilesService.js +11 -28
  84. package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
  85. package/dist/openapi_client/services/FunctionsService.js +2 -2
  86. package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
  87. package/dist/openapi_client/services/PodMembersService.js +24 -0
  88. package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
  89. package/dist/openapi_client/services/PodRolesService.js +63 -0
  90. package/dist/react/AuthGuard.d.ts +0 -15
  91. package/dist/react/AuthGuard.js +128 -167
  92. package/dist/react/index.d.ts +1 -1
  93. package/dist/react/useAssistantController.d.ts +8 -4
  94. package/dist/react/useAssistantController.js +9 -6
  95. package/dist/react/useAssistantSession.d.ts +9 -0
  96. package/dist/react/useAssistantSession.js +10 -2
  97. package/dist/react/useConversationMessages.d.ts +2 -1
  98. package/dist/react/useConversationMessages.js +2 -1
  99. package/dist/react/useConversations.d.ts +7 -1
  100. package/dist/react/useConversations.js +10 -4
  101. package/dist/types.d.ts +2 -2
  102. package/package.json +1 -1
  103. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
  104. package/dist/openapi_client/models/FileInfo.d.ts +0 -14
  105. package/dist/openapi_client/models/FileInfo.js +0 -8
  106. package/dist/openapi_client/models/FileNamespace.d.ts +0 -4
  107. package/dist/openapi_client/models/FileNamespace.js +0 -9
  108. package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
  109. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
  110. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
  111. package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
  112. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
  113. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
  114. package/dist/openapi_client/models/ResourceType.d.ts +0 -4
  115. package/dist/openapi_client/models/ResourceType.js +0 -9
  116. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
  117. package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
  118. package/dist/openapi_client/services/AgentFilesService.js +0 -103
  119. package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
  120. package/dist/openapi_client/services/AuthorizationService.js +0 -122
  121. /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
  122. /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
  123. /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
  124. /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
  125. /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
  126. /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
  127. /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
  128. /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
  129. /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
  130. /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Pod custom role creation request.
3
+ */
4
+ export type PodRoleCreateRequest = {
5
+ name: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import type { PodRoleResponse } from './PodRoleResponse.js';
2
+ /**
3
+ * Pod role list response.
4
+ */
5
+ export type PodRoleListResponse = {
6
+ items: Array<PodRoleResponse>;
7
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Pod role response.
3
+ */
4
+ export type PodRoleResponse = {
5
+ created_at: string;
6
+ created_by_user_id?: (string | null);
7
+ id: string;
8
+ is_system: boolean;
9
+ name: string;
10
+ pod_id: string;
11
+ };
@@ -18,6 +18,8 @@ export type ScheduleResponse = {
18
18
  schedule_type: ScheduleType;
19
19
  updated_at: string;
20
20
  user_id: string;
21
+ visibility: string;
22
+ visibility_roles?: Array<string>;
21
23
  workflow_id: (string | null);
22
24
  workflow_name?: (string | null);
23
25
  };
@@ -1,3 +1,4 @@
1
1
  export type SendMessageRequest = {
2
2
  content: string;
3
+ metadata?: (Record<string, any> | null);
3
4
  };
@@ -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: string;
6
+ checkout_url?: (string | null);
6
7
  message?: string;
8
+ subscription?: (SubscriptionResponse | null);
7
9
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Request to start monthly-invoiced team billing.
3
+ */
4
+ export type StartTeamBillingRequest = {
5
+ plan_id: string;
6
+ };
@@ -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 app__modules__agent__domain__value_objects__TableAccessEntry = {
5
+ export type TableAccessEntry = {
6
6
  mode?: TableAccessMode;
7
7
  table_name: string;
8
8
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -12,4 +12,6 @@ export type TableResponse = {
12
12
  pod_id: string;
13
13
  primary_key_column: string;
14
14
  updated_at: string;
15
+ visibility?: string;
16
+ visibility_roles?: Array<string>;
15
17
  };
@@ -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<app__modules__agent__domain__value_objects__TableAccessEntry> | null);
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,7 @@
1
1
  import type { AgentModelName } from './AgentModelName.js';
2
2
  export type UpdateConversationRequest = {
3
+ instructions?: (string | null);
4
+ metadata?: (Record<string, any> | null);
3
5
  model_name?: (AgentModelName | null);
4
6
  title?: (string | null);
5
7
  };
@@ -1,4 +1,6 @@
1
1
  export type UpdateDeskRequest = {
2
2
  description?: (string | null);
3
3
  public_slug?: (string | null);
4
+ visibility?: (string | null);
5
+ visibility_roles?: (Array<string> | null);
4
6
  };
@@ -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<app__modules__function__api__schemas__function_schemas__TableAccessEntry> | null);
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
  };
@@ -7,5 +7,6 @@ export type UpdateScheduleRequest = {
7
7
  filter_instruction?: (string | null);
8
8
  filter_output_schema?: (Record<string, any> | null);
9
9
  is_active?: (boolean | null);
10
+ visibility_roles?: (Array<string> | null);
10
11
  workflow_name?: (string | null);
11
12
  };
@@ -5,5 +5,6 @@ export type UpdateTableRequest = {
5
5
  /**
6
6
  * Replacement metadata/config payload for the table.
7
7
  */
8
- config: Record<string, any>;
8
+ config?: (Record<string, any> | null);
9
+ visibility_roles?: (Array<string> | null);
9
10
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * One usage limit scope.
3
+ */
4
+ export type UsageLimitScopeResponse = {
5
+ allowed: boolean;
6
+ limit_usd?: (number | null);
7
+ remaining_usd?: (number | null);
8
+ reset_at: string;
9
+ used_usd: number;
10
+ };
@@ -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
- source_id: string;
17
- source_type: string;
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,12 @@
1
+ /**
2
+ * One usage statistics bucket.
3
+ */
4
+ export type UsageStatsBucketResponse = {
5
+ bucket: string;
6
+ group?: (string | null);
7
+ input_tokens: number;
8
+ output_tokens: number;
9
+ total_cost_usd: number;
10
+ total_tokens: number;
11
+ units: number;
12
+ };
@@ -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 Plans
12
- * List available subscription plans.
13
- * @param onlyActive
16
+ * List Organization Billing History
17
+ * List invoices for an organization.
18
+ * @param organizationId
14
19
  * @param limit
15
20
  * @param pageToken
16
- * @returns PlanListResponse Successful Response
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 billingPlansList(onlyActive?: boolean, limit?: number, pageToken?: (string | null)): CancelablePromise<PlanListResponse>;
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 billingSeatsInfo(): CancelablePromise<SeatInfoResponse>;
50
+ static billingOrganizationSeatsInfo(organizationId: string): CancelablePromise<SeatInfoResponse>;
27
51
  /**
28
- * Start Subscription
29
- * Start a new subscription. Returns checkout URL.
30
- * @param requestBody
31
- * @returns StartSubscriptionResponse Successful Response
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 billingSubscriptionsStart(requestBody: StartSubscriptionRequest): CancelablePromise<StartSubscriptionResponse>;
58
+ static billingOrganizationSubscriptionGet(organizationId: string): CancelablePromise<SubscriptionWithPlanResponse>;
35
59
  /**
36
- * Cancel Subscription
37
- * Cancel the current subscription.
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 billingSubscriptionsCancel(): CancelablePromise<CancelSubscriptionResponse>;
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 My Subscription
44
- * Get the current organization's subscription.
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 billingSubscriptionsMy(): CancelablePromise<SubscriptionWithPlanResponse>;
82
+ static billingPersonalSubscriptionGet(): CancelablePromise<SubscriptionWithPlanResponse>;
49
83
  /**
50
- * Get Subscription Status
51
- * Get simple subscription status for the organization.
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 billingSubscriptionsStatus(): CancelablePromise<SubscriptionStatusResponse>;
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
  }