lemma-sdk 0.2.40 → 0.2.41

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 (114) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/lemma-client.js +80 -14
  3. package/dist/index.d.ts +1 -1
  4. package/dist/namespaces/resources.d.ts +21 -5
  5. package/dist/openapi_client/index.d.ts +19 -14
  6. package/dist/openapi_client/index.js +3 -4
  7. package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
  8. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
  9. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
  10. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
  11. package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
  12. package/dist/openapi_client/models/BillingScope.d.ts +7 -0
  13. package/dist/openapi_client/models/BillingScope.js +12 -0
  14. package/dist/openapi_client/models/ConversationResponse.d.ts +1 -0
  15. package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
  16. package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
  17. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
  18. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
  19. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
  20. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
  21. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
  22. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
  23. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
  24. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -0
  25. package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
  26. package/dist/openapi_client/models/FileResponse.d.ts +2 -0
  27. package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
  28. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
  29. package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
  30. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
  31. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
  32. package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
  33. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
  34. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
  35. package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
  36. package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
  37. package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
  38. package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
  39. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
  40. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
  41. package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
  42. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
  43. package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
  44. package/dist/openapi_client/models/TableAccessEntry.js +1 -0
  45. package/dist/openapi_client/models/TableResponse.d.ts +2 -0
  46. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
  47. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -0
  48. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
  49. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
  50. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  51. package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
  52. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
  53. package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
  54. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
  55. package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
  56. package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
  57. package/dist/openapi_client/models/UsageListResponse.js +1 -0
  58. package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
  59. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
  60. package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
  61. package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
  62. package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
  63. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
  64. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
  65. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
  66. package/dist/openapi_client/models/update.d.ts +2 -0
  67. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
  68. package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
  69. package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
  70. package/dist/openapi_client/services/BillingUsageService.js +186 -6
  71. package/dist/openapi_client/services/DesksService.d.ts +21 -4
  72. package/dist/openapi_client/services/DesksService.js +44 -2
  73. package/dist/openapi_client/services/FilesService.d.ts +10 -10
  74. package/dist/openapi_client/services/FilesService.js +10 -10
  75. package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
  76. package/dist/openapi_client/services/FunctionsService.js +2 -2
  77. package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
  78. package/dist/openapi_client/services/PodMembersService.js +24 -0
  79. package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
  80. package/dist/openapi_client/services/PodRolesService.js +63 -0
  81. package/dist/react/index.d.ts +1 -1
  82. package/dist/react/useAssistantController.d.ts +8 -4
  83. package/dist/react/useAssistantController.js +9 -6
  84. package/dist/react/useAssistantSession.d.ts +3 -0
  85. package/dist/react/useAssistantSession.js +6 -2
  86. package/dist/react/useConversationMessages.d.ts +2 -1
  87. package/dist/react/useConversationMessages.js +2 -1
  88. package/package.json +1 -1
  89. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
  90. package/dist/openapi_client/models/FileInfo.d.ts +0 -14
  91. package/dist/openapi_client/models/FileInfo.js +0 -8
  92. package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
  93. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
  94. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
  95. package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
  96. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
  97. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
  98. package/dist/openapi_client/models/ResourceType.d.ts +0 -4
  99. package/dist/openapi_client/models/ResourceType.js +0 -9
  100. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
  101. package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
  102. package/dist/openapi_client/services/AgentFilesService.js +0 -103
  103. package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
  104. package/dist/openapi_client/services/AuthorizationService.js +0 -122
  105. /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
  106. /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
  107. /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
  108. /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
  109. /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
  110. /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
  111. /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
  112. /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
  113. /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
  114. /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Request to generate a payment URL for an invoice.
3
+ */
4
+ export type CreateInvoicePaymentUrlRequest = {
5
+ cancel_url: string;
6
+ success_url: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ import type { BillingInvoiceResponse } from './BillingInvoiceResponse.js';
2
+ /**
3
+ * Response with invoice payment checkout URL.
4
+ */
5
+ export type CreateInvoicePaymentUrlResponse = {
6
+ checkout_url: string;
7
+ invoice: BillingInvoiceResponse;
8
+ };
@@ -10,5 +10,6 @@ export type CreateScheduleRequest = {
10
10
  filter_instruction?: (string | null);
11
11
  filter_output_schema?: (Record<string, any> | null);
12
12
  schedule_type: ScheduleType;
13
+ visibility_roles?: (Array<string> | null);
13
14
  workflow_name?: (string | null);
14
15
  };
@@ -23,4 +23,5 @@ export type CreateTableRequest = {
23
23
  * Primary key column name. If not `id`, it must also be declared in `columns`.
24
24
  */
25
25
  primary_key_column?: string;
26
+ visibility_roles?: (Array<string> | null);
26
27
  };
@@ -6,4 +6,5 @@ export type DatastoreFileUploadRequest = {
6
6
  name?: (string | null);
7
7
  namespace?: (FileNamespace | null);
8
8
  search_enabled?: boolean;
9
+ visibility_roles?: (string | null);
9
10
  };
@@ -12,4 +12,6 @@ export type DeskResponse = {
12
12
  updated_at: any;
13
13
  readonly url: string;
14
14
  user_id: string;
15
+ visibility?: string;
16
+ visibility_roles?: Array<string>;
15
17
  };
@@ -17,4 +17,6 @@ export type FileResponse = {
17
17
  size_bytes?: number;
18
18
  status: string;
19
19
  updated_at: string;
20
+ visibility?: string;
21
+ visibility_roles?: Array<string>;
20
22
  };
@@ -24,4 +24,6 @@ export type FlowResponse = {
24
24
  pod_id: string;
25
25
  start?: ((ManualWorkflowStartOutput | ScheduledWorkflowStartOutput | EventWorkflowStartOutput | DataStoreWorkflowStartOutput) | null);
26
26
  updated_at?: (string | null);
27
+ visibility?: string;
28
+ visibility_roles?: Array<string>;
27
29
  };
@@ -1,6 +1,6 @@
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';
3
2
  import type { FunctionStatus } from './FunctionStatus.js';
3
+ import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
4
4
  import type { FunctionType } from './FunctionType.js';
5
5
  /**
6
6
  * Function response.
@@ -8,21 +8,32 @@ import type { FunctionType } from './FunctionType.js';
8
8
  export type FunctionResponse = {
9
9
  accessible_applications: Array<ApplicationAccessConfig>;
10
10
  accessible_folders: Array<string>;
11
- accessible_tables: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
11
+ accessible_tables: Array<FunctionTableAccessEntry>;
12
12
  code?: (string | null);
13
13
  code_path?: (string | null);
14
14
  config?: (Record<string, any> | null);
15
+ /**
16
+ * Optional configuration schema derived from the function code.
17
+ */
15
18
  config_schema?: (Record<string, any> | null);
16
19
  created_at: any;
17
20
  description?: (string | null);
18
21
  icon_url?: (string | null);
19
22
  id: string;
23
+ /**
24
+ * Input JSON schema derived from the function code.
25
+ */
20
26
  input_schema: Record<string, any>;
21
27
  name: string;
28
+ /**
29
+ * Output JSON schema derived from the function code.
30
+ */
22
31
  output_schema: Record<string, any>;
23
32
  pod_id: string;
24
33
  status: FunctionStatus;
25
34
  type: FunctionType;
26
35
  updated_at: any;
27
36
  user_id: string;
37
+ visibility?: string;
38
+ visibility_roles?: Array<string>;
28
39
  };
@@ -1,5 +1,5 @@
1
1
  import type { TableAccessMode } from './TableAccessMode.js';
2
- export type app__modules__function__api__schemas__function_schemas__TableAccessEntry = {
2
+ export type FunctionTableAccessEntry = {
3
3
  mode?: TableAccessMode;
4
4
  table_name: string;
5
5
  };
@@ -5,4 +5,5 @@ import type { PodRole } from './PodRole.js';
5
5
  export type PodMemberAddRequest = {
6
6
  organization_member_id: string;
7
7
  role: PodRole;
8
+ roles?: (Array<string> | null);
8
9
  };
@@ -8,6 +8,7 @@ export type PodMemberDetailResponse = {
8
8
  email: string;
9
9
  pod_member_id: string;
10
10
  role: PodRole;
11
+ roles?: Array<string>;
11
12
  updated_at: string;
12
13
  user?: (UserResponse | null);
13
14
  user_email: string;
@@ -7,6 +7,7 @@ export type PodMemberResponse = {
7
7
  email: string;
8
8
  pod_member_id: string;
9
9
  role: PodRole;
10
+ roles?: Array<string>;
10
11
  updated_at: string;
11
12
  user_email: string;
12
13
  user_id: string;
@@ -3,5 +3,6 @@ import type { PodRole } from './PodRole.js';
3
3
  * Pod member role update request schema.
4
4
  */
5
5
  export type PodMemberUpdateRoleRequest = {
6
- role: PodRole;
6
+ role?: (PodRole | null);
7
+ roles?: (Array<string> | null);
7
8
  };
@@ -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,6 @@
1
1
  import type { AgentModelName } from './AgentModelName.js';
2
2
  export type UpdateConversationRequest = {
3
+ instructions?: (string | null);
3
4
  model_name?: (AgentModelName | null);
4
5
  title?: (string | null);
5
6
  };
@@ -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
  };
@@ -6,4 +6,6 @@ export type update = {
6
6
  new_path?: (string | null);
7
7
  path: string;
8
8
  search_enabled?: (boolean | null);
9
+ visibility?: (string | null);
10
+ visibility_roles?: (string | null);
9
11
  };