@omnara/sdk 0.1.13 → 0.1.15

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/dist/browser.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ApiError
3
- } from "./chunk-33DIW7OA.js";
3
+ } from "./chunk-2GNLWO2D.js";
4
4
  import "./chunk-6ZFYUHM3.js";
5
- import "./chunk-Q3PRWGZO.js";
5
+ import "./chunk-FLJ4TFP7.js";
6
6
 
7
7
  // src/browser.ts
8
8
  import * as z from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-6ZFYUHM3.js";
4
4
  import {
5
5
  zError
6
- } from "./chunk-Q3PRWGZO.js";
6
+ } from "./chunk-FLJ4TFP7.js";
7
7
 
8
8
  // src/json-body.ts
9
9
  import * as z from "zod";
@@ -57,4 +57,4 @@ export {
57
57
  zErrorResponse,
58
58
  ApiError
59
59
  };
60
- //# sourceMappingURL=chunk-33DIW7OA.js.map
60
+ //# sourceMappingURL=chunk-2GNLWO2D.js.map
@@ -13,6 +13,7 @@ __export(zod_gen_exports, {
13
13
  zActorId: () => zActorId,
14
14
  zActorProvider: () => zActorProvider,
15
15
  zAgent: () => zAgent,
16
+ zAgentActivity: () => zAgentActivity,
16
17
  zAgentConfig: () => zAgentConfig,
17
18
  zAgentConfigErrorIssue: () => zAgentConfigErrorIssue,
18
19
  zAgentConfigId: () => zAgentConfigId,
@@ -248,6 +249,7 @@ __export(zod_gen_exports, {
248
249
  zDemoteSteeringInputToQueuedResponse: () => zDemoteSteeringInputToQueuedResponse,
249
250
  zDirectSecretAvailability: () => zDirectSecretAvailability,
250
251
  zDirectSkillAvailability: () => zDirectSkillAvailability,
252
+ zDiscoveredModelPricing: () => zDiscoveredModelPricing,
251
253
  zDiscoveredProviderModel: () => zDiscoveredProviderModel,
252
254
  zDownloadDaemonArtifactPath: () => zDownloadDaemonArtifactPath,
253
255
  zDownloadDaemonArtifactResponse: () => zDownloadDaemonArtifactResponse,
@@ -264,8 +266,14 @@ __export(zod_gen_exports, {
264
266
  zGetAgentPath: () => zGetAgentPath,
265
267
  zGetAgentProfilePath: () => zGetAgentProfilePath,
266
268
  zGetAgentProfileResponse: () => zGetAgentProfileResponse,
269
+ zGetAgentProfileUsagePath: () => zGetAgentProfileUsagePath,
270
+ zGetAgentProfileUsageQuery: () => zGetAgentProfileUsageQuery,
271
+ zGetAgentProfileUsageResponse: () => zGetAgentProfileUsageResponse,
267
272
  zGetAgentResponse: () => zGetAgentResponse,
268
273
  zGetAgentResponse2: () => zGetAgentResponse2,
274
+ zGetAgentUsagePath: () => zGetAgentUsagePath,
275
+ zGetAgentUsageQuery: () => zGetAgentUsageQuery,
276
+ zGetAgentUsageResponse: () => zGetAgentUsageResponse,
269
277
  zGetArtifactContentPath: () => zGetArtifactContentPath,
270
278
  zGetArtifactContentResponse: () => zGetArtifactContentResponse,
271
279
  zGetArtifactPath: () => zGetArtifactPath,
@@ -288,10 +296,16 @@ __export(zod_gen_exports, {
288
296
  zGetOrgApiKeyResponse: () => zGetOrgApiKeyResponse,
289
297
  zGetOrgOverviewPath: () => zGetOrgOverviewPath,
290
298
  zGetOrgOverviewResponse: () => zGetOrgOverviewResponse,
299
+ zGetOrgUsagePath: () => zGetOrgUsagePath,
300
+ zGetOrgUsageQuery: () => zGetOrgUsageQuery,
301
+ zGetOrgUsageResponse: () => zGetOrgUsageResponse,
291
302
  zGetProjectAvailableSecretPath: () => zGetProjectAvailableSecretPath,
292
303
  zGetProjectAvailableSecretResponse: () => zGetProjectAvailableSecretResponse,
293
304
  zGetProjectMachinePoolGrantPath: () => zGetProjectMachinePoolGrantPath,
294
305
  zGetProjectMachinePoolGrantResponse: () => zGetProjectMachinePoolGrantResponse,
306
+ zGetProjectUsagePath: () => zGetProjectUsagePath,
307
+ zGetProjectUsageQuery: () => zGetProjectUsageQuery,
308
+ zGetProjectUsageResponse: () => zGetProjectUsageResponse,
295
309
  zGetSecretPath: () => zGetSecretPath,
296
310
  zGetSecretResponse: () => zGetSecretResponse,
297
311
  zGetSkillPath: () => zGetSkillPath,
@@ -525,6 +539,7 @@ __export(zod_gen_exports, {
525
539
  zModelStopReason: () => zModelStopReason,
526
540
  zModelToolCallContentBlock: () => zModelToolCallContentBlock,
527
541
  zModelUsage: () => zModelUsage,
542
+ zModelUsageTotals: () => zModelUsageTotals,
528
543
  zMoveQueuedBacklogInputBody: () => zMoveQueuedBacklogInputBody,
529
544
  zMoveQueuedBacklogInputPath: () => zMoveQueuedBacklogInputPath,
530
545
  zMoveQueuedBacklogInputRequest: () => zMoveQueuedBacklogInputRequest,
@@ -603,10 +618,16 @@ __export(zod_gen_exports, {
603
618
  zRenameAgentProfilePath: () => zRenameAgentProfilePath,
604
619
  zRenameAgentProfileRequest: () => zRenameAgentProfileRequest,
605
620
  zRenameAgentProfileResponse: () => zRenameAgentProfileResponse,
621
+ zResolveAgentConfigToolsBody: () => zResolveAgentConfigToolsBody,
622
+ zResolveAgentConfigToolsPath: () => zResolveAgentConfigToolsPath,
623
+ zResolveAgentConfigToolsRequest: () => zResolveAgentConfigToolsRequest,
624
+ zResolveAgentConfigToolsResponse: () => zResolveAgentConfigToolsResponse,
606
625
  zResolveAgentInteractionBody: () => zResolveAgentInteractionBody,
607
626
  zResolveAgentInteractionPath: () => zResolveAgentInteractionPath,
608
627
  zResolveAgentInteractionRequest: () => zResolveAgentInteractionRequest,
609
628
  zResolveAgentInteractionResponse: () => zResolveAgentInteractionResponse,
629
+ zResolvedAgentConfigTool: () => zResolvedAgentConfigTool,
630
+ zResolvedAgentConfigTools: () => zResolvedAgentConfigTools,
610
631
  zResourceListSort: () => zResourceListSort,
611
632
  zResourceName: () => zResourceName,
612
633
  zResourceNameFilter: () => zResourceNameFilter,
@@ -753,14 +774,22 @@ __export(zod_gen_exports, {
753
774
  zUploadDaemonArtifactPath: () => zUploadDaemonArtifactPath,
754
775
  zUploadDaemonArtifactQuery: () => zUploadDaemonArtifactQuery,
755
776
  zUploadDaemonArtifactResponse: () => zUploadDaemonArtifactResponse,
777
+ zUsageCostTotals: () => zUsageCostTotals,
778
+ zUsageExcludeProjectIds: () => zUsageExcludeProjectIds,
779
+ zUsageIncludeProjectIds: () => zUsageIncludeProjectIds,
780
+ zUsageModel: () => zUsageModel,
781
+ zUsageReport: () => zUsageReport,
782
+ zUsageSince: () => zUsageSince,
783
+ zUsageTokenTotals: () => zUsageTokenTotals,
784
+ zUsageTotals: () => zUsageTotals,
785
+ zUsageUntil: () => zUsageUntil,
756
786
  zUserId: () => zUserId,
757
787
  zUserSecretOwner: () => zUserSecretOwner,
758
788
  zUserSecretOwnerInput: () => zUserSecretOwnerInput,
759
789
  zUserSkillOwner: () => zUserSkillOwner,
760
790
  zUserSkillOwnerInput: () => zUserSkillOwnerInput,
761
791
  zVisibleMachine: () => zVisibleMachine,
762
- zVisibleProject: () => zVisibleProject,
763
- zWarning: () => zWarning
792
+ zVisibleProject: () => zVisibleProject
764
793
  });
765
794
  import * as z from "zod";
766
795
  var zResourceName = z.string().min(1).refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).transform((value) => value.normalize("NFC")).refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).refine((value) => !/^\p{White_Space}|\p{White_Space}$/u.test(value), { message: "Resource name must not start or end with whitespace" }).refine((value) => !/[\p{Cc}\p{Cf}\p{Cs}\p{Default_Ignorable_Code_Point}⠀]/u.test(value), { message: "Resource name contains an unsupported invisible, control, or format character" }).refine((value) => !value.includes("\uFFFD"), { message: "Resource name contains the Unicode replacement character" }).refine((value) => !Array.from(value).some((character) => character !== " " && /\p{White_Space}/u.test(character)), { message: "Resource name may only use ordinary spaces" });
@@ -814,10 +843,6 @@ var zError = z.object({
814
843
  "authentication_unavailable"
815
844
  ])
816
845
  });
817
- var zWarning = z.object({
818
- message: z.string(),
819
- code: z.enum(["missing_recommended_machine_tools"])
820
- });
821
846
  var zClientErrorCode = z.enum([
822
847
  "invalid_request",
823
848
  "validation_failed",
@@ -893,11 +918,18 @@ var zModelCacheRetention = z.enum([
893
918
  "short",
894
919
  "long"
895
920
  ]);
921
+ var zDiscoveredModelPricing = z.object({
922
+ input_usd_per_million: z.string().regex(/^(0|[1-9][0-9]*)(\.[0-9]+)?$/),
923
+ cache_read_input_usd_per_million: z.string().regex(/^(0|[1-9][0-9]*)(\.[0-9]+)?$/).optional(),
924
+ cache_write_input_usd_per_million: z.string().regex(/^(0|[1-9][0-9]*)(\.[0-9]+)?$/).optional(),
925
+ output_usd_per_million: z.string().regex(/^(0|[1-9][0-9]*)(\.[0-9]+)?$/)
926
+ });
896
927
  var zDiscoveredProviderModel = z.object({
897
928
  slug: z.string(),
898
929
  display_name: z.string().optional(),
899
930
  context_window_tokens: z.int().gte(2).lte(2147483647).optional(),
900
- max_output_tokens: z.int().gte(1).lte(2147483647).optional()
931
+ max_output_tokens: z.int().gte(1).lte(2147483647).optional(),
932
+ pricing: zDiscoveredModelPricing.optional()
901
933
  });
902
934
  var zModelCatalog = z.object({
903
935
  status: z.enum(["ok", "failed"]),
@@ -1092,6 +1124,7 @@ var zConfiguredModelSummary = z.object({
1092
1124
  model_provider_config_id: zModelProviderConfigId,
1093
1125
  name: zResourceName,
1094
1126
  provider_config: zResourceName,
1127
+ provider_model_slug: z.string(),
1095
1128
  created_at: zTimestamp,
1096
1129
  updated_at: zTimestamp
1097
1130
  });
@@ -1262,6 +1295,10 @@ var zSlackSetup = z.object({
1262
1295
  actions_url: z.url(),
1263
1296
  expires_at: zTimestamp
1264
1297
  });
1298
+ var zResolveAgentConfigToolsRequest = z.object({
1299
+ source: z.string().min(1),
1300
+ source_format: z.enum(["yaml", "json"])
1301
+ });
1265
1302
  var zCreateAgentConfigRequest = z.object({
1266
1303
  source: z.string().min(1),
1267
1304
  source_format: z.enum(["yaml", "json"])
@@ -1275,6 +1312,14 @@ var zToolPermissionSelection = z.object({
1275
1312
  mode: z.string(),
1276
1313
  parameters: z.record(z.string(), z.unknown())
1277
1314
  });
1315
+ var zResolvedAgentConfigTool = z.object({
1316
+ name: z.string(),
1317
+ enabled: z.boolean(),
1318
+ permission: zToolPermissionSelection
1319
+ });
1320
+ var zResolvedAgentConfigTools = z.object({
1321
+ tools: z.array(zResolvedAgentConfigTool)
1322
+ });
1278
1323
  var zToolPermissionMode = z.object({
1279
1324
  name: z.string(),
1280
1325
  label: z.string(),
@@ -1288,6 +1333,7 @@ var zToolPermissionProfile = z.object({
1288
1333
  var zToolCatalogEntry = z.object({
1289
1334
  name: z.string(),
1290
1335
  description: z.string(),
1336
+ implicit: z.boolean().optional(),
1291
1337
  default_permission: zToolPermissionSelection,
1292
1338
  permission_modes: z.array(zToolPermissionMode)
1293
1339
  });
@@ -1421,7 +1467,6 @@ var zAgentConfig = z.object({
1421
1467
  effective_definition_hash: z.string(),
1422
1468
  model: zAgentConfigModel,
1423
1469
  instruction_hash: z.string().optional(),
1424
- warnings: z.array(zWarning).min(1).optional(),
1425
1470
  created_at: zTimestamp
1426
1471
  });
1427
1472
  var zCreateAgentProfileRequest = z.object({
@@ -1514,6 +1559,15 @@ var zCreateAgentRequest = z.object({
1514
1559
  name: zAgentName.optional(),
1515
1560
  message: z.string().optional()
1516
1561
  });
1562
+ var zAgentActivity = z.object({
1563
+ state: z.enum([
1564
+ "running",
1565
+ "idle",
1566
+ "waiting_on_interaction",
1567
+ "archived"
1568
+ ]),
1569
+ last_activity_at: zTimestamp
1570
+ });
1517
1571
  var zAgentModel = z.object({
1518
1572
  provider_config: zResourceName,
1519
1573
  name: zResourceName
@@ -1535,6 +1589,9 @@ var zAgent = z.object({
1535
1589
  integration_target: zIntegrationTarget.optional(),
1536
1590
  current_config_id: zAgentConfigId.optional(),
1537
1591
  model: zAgentModel.optional(),
1592
+ parent_agent_id: zAgentId.optional(),
1593
+ subagent_key: z.string().optional(),
1594
+ activity: zAgentActivity.optional(),
1538
1595
  created_at: zTimestamp,
1539
1596
  updated_at: zTimestamp,
1540
1597
  archived_at: zTimestamp.optional()
@@ -1606,7 +1663,6 @@ var zAgentMachineBinding = z.object({
1606
1663
  project_id: zProjectId,
1607
1664
  agent_id: zAgentId,
1608
1665
  machine_id: zMachineId,
1609
- machine_ref: z.string(),
1610
1666
  binding_kind: zAgentMachineBindingKind,
1611
1667
  state: zAgentMachineBindingState,
1612
1668
  description: z.string(),
@@ -1621,6 +1677,7 @@ var zMachineFailureReport = z.object({
1621
1677
  "startup_script",
1622
1678
  "daemon_install",
1623
1679
  "daemon_update",
1680
+ "daemon_runtime",
1624
1681
  "daemon_uninstall",
1625
1682
  "daemon_uninstalled"
1626
1683
  ]),
@@ -1770,6 +1827,7 @@ var zToolCallOutcome = z.enum([
1770
1827
  ]);
1771
1828
  var zToolCall = z.object({
1772
1829
  id: zToolCallId,
1830
+ agent_id: zAgentId,
1773
1831
  turn_id: zAgentTurnId,
1774
1832
  provider_call_id: z.string(),
1775
1833
  name: z.string(),
@@ -1782,6 +1840,7 @@ var zToolCall = z.object({
1782
1840
  });
1783
1841
  var zToolCallUpdate = z.object({
1784
1842
  tool_call_id: zToolCallId,
1843
+ agent_id: zAgentId.optional(),
1785
1844
  state: zToolCallState
1786
1845
  });
1787
1846
  var zListToolCallsResponse = z.object({
@@ -2050,6 +2109,8 @@ var zAgentInteraction = z.object({
2050
2109
  agent_id: zAgentId,
2051
2110
  tool_call_id: zToolCallId,
2052
2111
  tool_name: z.string().optional(),
2112
+ agent_name: zAgentName.optional(),
2113
+ subagent_key: z.string().optional(),
2053
2114
  interaction_kind: zAgentInteractionKind,
2054
2115
  state: zAgentInteractionState,
2055
2116
  request: zInteractionForm,
@@ -2822,6 +2883,40 @@ var zOrgOverviewResponse = z.object({
2822
2883
  recent_agents: z.array(zAgent),
2823
2884
  recent_agent_profiles: z.array(zAgentProfile)
2824
2885
  });
2886
+ var zUsageTokenTotals = z.object({
2887
+ input_tokens_total: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2888
+ uncached_input_tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2889
+ cache_read_input_tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2890
+ cache_write_input_tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2891
+ output_tokens_total: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2892
+ reasoning_output_tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2893
+ });
2894
+ var zUsageCostTotals = z.object({
2895
+ provider_reported_usd: z.string().regex(/^(0|[1-9][0-9]*)(\.[0-9]+)?$/),
2896
+ model_calls_with_reported_cost: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2897
+ });
2898
+ var zUsageTotals = z.object({
2899
+ model_calls: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2900
+ tokens: zUsageTokenTotals,
2901
+ cost: zUsageCostTotals
2902
+ });
2903
+ var zUsageModel = z.object({
2904
+ configured_model_id: zConfiguredModelId,
2905
+ name: zResourceName,
2906
+ provider_model_slug: z.string(),
2907
+ model_provider_config_id: zModelProviderConfigId,
2908
+ model_provider_config_name: zResourceName
2909
+ });
2910
+ var zModelUsageTotals = z.object({
2911
+ model: zUsageModel,
2912
+ model_calls: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2913
+ tokens: zUsageTokenTotals,
2914
+ cost: zUsageCostTotals
2915
+ });
2916
+ var zUsageReport = z.object({
2917
+ totals: zUsageTotals,
2918
+ by_model: z.array(zModelUsageTotals)
2919
+ });
2825
2920
  var zCurrentUserIdentity = z.object({
2826
2921
  id: zUserId,
2827
2922
  email: z.string(),
@@ -2870,6 +2965,10 @@ var zProjectMembershipGrant = z.object({
2870
2965
  var zListProjectMembershipGrantsResponse = z.object({
2871
2966
  data: z.array(zProjectMembershipGrant)
2872
2967
  });
2968
+ var zUsageSince = z.iso.datetime({ offset: true });
2969
+ var zUsageUntil = z.iso.datetime({ offset: true });
2970
+ var zUsageIncludeProjectIds = z.array(zProjectId).min(1).max(100);
2971
+ var zUsageExcludeProjectIds = z.array(zProjectId).min(1).max(100);
2873
2972
  var zIdempotencyKey = z.string().min(1).max(255);
2874
2973
  var zPageLimit = z.int().gte(1).lte(100).default(50);
2875
2974
  var zPageCursor = z.string().max(1024);
@@ -2912,6 +3011,7 @@ var zRecordMachineFailureQuery = z.object({
2912
3011
  "startup_script",
2913
3012
  "daemon_install",
2914
3013
  "daemon_update",
3014
+ "daemon_runtime",
2915
3015
  "daemon_uninstall",
2916
3016
  "daemon_uninstalled"
2917
3017
  ]),
@@ -2950,6 +3050,16 @@ var zGetOrgOverviewPath = z.object({
2950
3050
  orgID: zOrganizationId
2951
3051
  });
2952
3052
  var zGetOrgOverviewResponse = zOrgOverviewResponse;
3053
+ var zGetOrgUsagePath = z.object({
3054
+ orgID: zOrganizationId
3055
+ });
3056
+ var zGetOrgUsageQuery = z.object({
3057
+ since: z.iso.datetime({ offset: true }).optional(),
3058
+ until: z.iso.datetime({ offset: true }).optional(),
3059
+ include_project_ids: z.array(zProjectId).min(1).max(100).optional(),
3060
+ exclude_project_ids: z.array(zProjectId).min(1).max(100).optional()
3061
+ });
3062
+ var zGetOrgUsageResponse = zUsageReport;
2953
3063
  var zListVisibleProjectsPath = z.object({
2954
3064
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
2955
3065
  });
@@ -2971,6 +3081,15 @@ var zDeleteProjectPath = z.object({
2971
3081
  projectID: z.string().regex(/^proj_[a-z2-7]{26}$/)
2972
3082
  });
2973
3083
  var zDeleteProjectResponse = z.void();
3084
+ var zGetProjectUsagePath = z.object({
3085
+ orgID: zOrganizationId,
3086
+ projectID: zProjectId
3087
+ });
3088
+ var zGetProjectUsageQuery = z.object({
3089
+ since: z.iso.datetime({ offset: true }).optional(),
3090
+ until: z.iso.datetime({ offset: true }).optional()
3091
+ });
3092
+ var zGetProjectUsageResponse = zUsageReport;
2974
3093
  var zListOrgMembersPath = z.object({
2975
3094
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
2976
3095
  });
@@ -3245,6 +3364,12 @@ var zDeleteIntegrationInstallPath = z.object({
3245
3364
  integrationInstallID: z.string().regex(/^iin_[a-z2-7]{26}$/)
3246
3365
  });
3247
3366
  var zDeleteIntegrationInstallResponse = z.void();
3367
+ var zResolveAgentConfigToolsBody = zResolveAgentConfigToolsRequest;
3368
+ var zResolveAgentConfigToolsPath = z.object({
3369
+ orgID: zOrganizationId,
3370
+ projectID: zProjectId
3371
+ });
3372
+ var zResolveAgentConfigToolsResponse = zResolvedAgentConfigTools;
3248
3373
  var zCreateAgentConfigBody = zCreateAgentConfigRequest;
3249
3374
  var zCreateAgentConfigPath = z.object({
3250
3375
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
@@ -3310,6 +3435,17 @@ var zRenameAgentProfilePath = z.object({
3310
3435
  agentProfileID: z.string().regex(/^aprf_[a-z2-7]{26}$/)
3311
3436
  });
3312
3437
  var zRenameAgentProfileResponse = zAgentProfile;
3438
+ var zGetAgentProfileUsagePath = z.object({
3439
+ orgID: zOrganizationId,
3440
+ projectID: zProjectId,
3441
+ agentProfileID: zAgentProfileId
3442
+ });
3443
+ var zGetAgentProfileUsageQuery = z.object({
3444
+ since: z.iso.datetime({ offset: true }).optional(),
3445
+ until: z.iso.datetime({ offset: true }).optional(),
3446
+ include_subagents: z.boolean().optional()
3447
+ });
3448
+ var zGetAgentProfileUsageResponse = zUsageReport;
3313
3449
  var zUpdateAgentProfileBody = zUpdateAgentProfileRequest;
3314
3450
  var zUpdateAgentProfileHeaders = z.object({
3315
3451
  "Idempotency-Key": z.string().min(1).max(255).optional()
@@ -3382,6 +3518,9 @@ var zListAgentsPath = z.object({
3382
3518
  var zListAgentsQuery = z.object({
3383
3519
  name: z.string().min(1).max(200).optional(),
3384
3520
  agent_profile_id: zAgentProfileId.optional(),
3521
+ parent_agent_id: zAgentId.optional(),
3522
+ include_subagents: z.boolean().optional(),
3523
+ include_archived: z.boolean().optional(),
3385
3524
  sort: zResourceListSort.optional(),
3386
3525
  limit: z.int().gte(1).lte(100).optional().default(50),
3387
3526
  cursor: z.string().max(1024).optional()
@@ -3405,6 +3544,17 @@ var zGetAgentPath = z.object({
3405
3544
  agentID: z.string().regex(/^agt_[a-z2-7]{26}$/)
3406
3545
  });
3407
3546
  var zGetAgentResponse2 = zGetAgentResponse;
3547
+ var zGetAgentUsagePath = z.object({
3548
+ orgID: zOrganizationId,
3549
+ projectID: zProjectId,
3550
+ agentID: zAgentId
3551
+ });
3552
+ var zGetAgentUsageQuery = z.object({
3553
+ since: z.iso.datetime({ offset: true }).optional(),
3554
+ until: z.iso.datetime({ offset: true }).optional(),
3555
+ include_subagents: z.boolean().optional()
3556
+ });
3557
+ var zGetAgentUsageResponse = zUsageReport;
3408
3558
  var zArchiveAgentPath = z.object({
3409
3559
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
3410
3560
  projectID: z.string().regex(/^proj_[a-z2-7]{26}$/),
@@ -3439,6 +3589,7 @@ var zListToolCallsPath = z.object({
3439
3589
  var zListToolCallsQuery = z.object({
3440
3590
  state: zToolCallState.optional(),
3441
3591
  type: zToolCallType.optional(),
3592
+ include_subagents: z.boolean().optional(),
3442
3593
  limit: z.int().gte(1).lte(100).optional().default(50),
3443
3594
  cursor: z.string().max(1024).optional()
3444
3595
  });
@@ -3510,6 +3661,7 @@ var zListAgentInteractionsPath = z.object({
3510
3661
  });
3511
3662
  var zListAgentInteractionsQuery = z.object({
3512
3663
  state: zAgentInteractionState.optional(),
3664
+ include_subagents: z.boolean().optional(),
3513
3665
  limit: z.int().gte(1).lte(100).optional().default(50),
3514
3666
  cursor: z.string().max(1024).optional()
3515
3667
  });
@@ -3933,7 +4085,6 @@ export {
3933
4085
  zCreatedResourceListSort,
3934
4086
  zAgentConfigErrorIssue,
3935
4087
  zError,
3936
- zWarning,
3937
4088
  zClientErrorCode,
3938
4089
  zServerErrorCode,
3939
4090
  zManagementKind,
@@ -3970,6 +4121,7 @@ export {
3970
4121
  zModelProviderApiVariantResponse,
3971
4122
  zModelApiVariantOptions,
3972
4123
  zModelCacheRetention,
4124
+ zDiscoveredModelPricing,
3973
4125
  zDiscoveredProviderModel,
3974
4126
  zModelCatalog,
3975
4127
  zCreateConfiguredModelRequest,
@@ -4033,9 +4185,12 @@ export {
4033
4185
  zSlackSetupIcon,
4034
4186
  zCreateSlackSetupRequest,
4035
4187
  zSlackSetup,
4188
+ zResolveAgentConfigToolsRequest,
4036
4189
  zCreateAgentConfigRequest,
4037
4190
  zUpdateAgentConfigRequest,
4038
4191
  zToolPermissionSelection,
4192
+ zResolvedAgentConfigTool,
4193
+ zResolvedAgentConfigTools,
4039
4194
  zToolPermissionMode,
4040
4195
  zToolPermissionProfile,
4041
4196
  zToolCatalogEntry,
@@ -4077,6 +4232,7 @@ export {
4077
4232
  zCronTrigger,
4078
4233
  zListCronTriggersResponse,
4079
4234
  zCreateAgentRequest,
4235
+ zAgentActivity,
4080
4236
  zAgentModel,
4081
4237
  zIntegrationTarget,
4082
4238
  zAgent,
@@ -4276,6 +4432,12 @@ export {
4276
4432
  zVisibleProject,
4277
4433
  zListProjectsResponse,
4278
4434
  zOrgOverviewResponse,
4435
+ zUsageTokenTotals,
4436
+ zUsageCostTotals,
4437
+ zUsageTotals,
4438
+ zUsageModel,
4439
+ zModelUsageTotals,
4440
+ zUsageReport,
4279
4441
  zCurrentUserIdentity,
4280
4442
  zCurrentUserOrg,
4281
4443
  zListOrganizationsResponse,
@@ -4287,6 +4449,10 @@ export {
4287
4449
  zSetProjectMembershipRequest,
4288
4450
  zProjectMembershipGrant,
4289
4451
  zListProjectMembershipGrantsResponse,
4452
+ zUsageSince,
4453
+ zUsageUntil,
4454
+ zUsageIncludeProjectIds,
4455
+ zUsageExcludeProjectIds,
4290
4456
  zIdempotencyKey,
4291
4457
  zPageLimit,
4292
4458
  zPageCursor,
@@ -4329,6 +4495,9 @@ export {
4329
4495
  zDeclineInvitationResponse,
4330
4496
  zGetOrgOverviewPath,
4331
4497
  zGetOrgOverviewResponse,
4498
+ zGetOrgUsagePath,
4499
+ zGetOrgUsageQuery,
4500
+ zGetOrgUsageResponse,
4332
4501
  zListVisibleProjectsPath,
4333
4502
  zListVisibleProjectsQuery,
4334
4503
  zListVisibleProjectsResponse,
@@ -4338,6 +4507,9 @@ export {
4338
4507
  zCreateProjectResponse,
4339
4508
  zDeleteProjectPath,
4340
4509
  zDeleteProjectResponse,
4510
+ zGetProjectUsagePath,
4511
+ zGetProjectUsageQuery,
4512
+ zGetProjectUsageResponse,
4341
4513
  zListOrgMembersPath,
4342
4514
  zListOrgMembersQuery,
4343
4515
  zListOrgMembersResponse2,
@@ -4437,6 +4609,9 @@ export {
4437
4609
  zListIntegrationInstallsResponse2,
4438
4610
  zDeleteIntegrationInstallPath,
4439
4611
  zDeleteIntegrationInstallResponse,
4612
+ zResolveAgentConfigToolsBody,
4613
+ zResolveAgentConfigToolsPath,
4614
+ zResolveAgentConfigToolsResponse,
4440
4615
  zCreateAgentConfigBody,
4441
4616
  zCreateAgentConfigPath,
4442
4617
  zCreateAgentConfigResponse,
@@ -4462,6 +4637,9 @@ export {
4462
4637
  zRenameAgentProfileBody,
4463
4638
  zRenameAgentProfilePath,
4464
4639
  zRenameAgentProfileResponse,
4640
+ zGetAgentProfileUsagePath,
4641
+ zGetAgentProfileUsageQuery,
4642
+ zGetAgentProfileUsageResponse,
4465
4643
  zUpdateAgentProfileBody,
4466
4644
  zUpdateAgentProfileHeaders,
4467
4645
  zUpdateAgentProfilePath,
@@ -4495,6 +4673,9 @@ export {
4495
4673
  zCreateAgentResponse,
4496
4674
  zGetAgentPath,
4497
4675
  zGetAgentResponse2,
4676
+ zGetAgentUsagePath,
4677
+ zGetAgentUsageQuery,
4678
+ zGetAgentUsageResponse,
4498
4679
  zArchiveAgentPath,
4499
4680
  zArchiveAgentResponse,
4500
4681
  zUpdateAgentConfigBody,
@@ -4682,4 +4863,4 @@ export {
4682
4863
  zDownloadDaemonArtifactResponse,
4683
4864
  zod_gen_exports
4684
4865
  };
4685
- //# sourceMappingURL=chunk-Q3PRWGZO.js.map
4866
+ //# sourceMappingURL=chunk-FLJ4TFP7.js.map