@claudexor/schema 3.5.0 → 3.8.0

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 (106) hide show
  1. package/dist/accounts-migration.d.ts +112 -0
  2. package/dist/accounts-migration.d.ts.map +1 -0
  3. package/dist/accounts-migration.js +74 -0
  4. package/dist/accounts-migration.js.map +1 -0
  5. package/dist/agent-capabilities.d.ts +32 -0
  6. package/dist/agent-capabilities.d.ts.map +1 -1
  7. package/dist/agent-capabilities.js +4 -0
  8. package/dist/agent-capabilities.js.map +1 -1
  9. package/dist/config.d.ts +48 -30
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +32 -11
  12. package/dist/config.js.map +1 -1
  13. package/dist/control-harness-list.d.ts +197 -1
  14. package/dist/control-harness-list.d.ts.map +1 -1
  15. package/dist/control-operation-responses.d.ts +7 -7
  16. package/dist/control-run-detail.d.ts +19 -19
  17. package/dist/control-run-failure.d.ts +4 -4
  18. package/dist/control-run-failure.d.ts.map +1 -1
  19. package/dist/control-run-failure.js +7 -1
  20. package/dist/control-run-failure.js.map +1 -1
  21. package/dist/control.d.ts +23 -23
  22. package/dist/control.d.ts.map +1 -1
  23. package/dist/control.js +8 -8
  24. package/dist/control.js.map +1 -1
  25. package/dist/credential-profile-snapshot.d.ts +644 -30
  26. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  27. package/dist/credential-profile.d.ts +365 -38
  28. package/dist/credential-profile.d.ts.map +1 -1
  29. package/dist/credential-profile.js +140 -28
  30. package/dist/credential-profile.js.map +1 -1
  31. package/dist/credential-store.d.ts +19 -6
  32. package/dist/credential-store.d.ts.map +1 -1
  33. package/dist/credential-store.js +21 -6
  34. package/dist/credential-store.js.map +1 -1
  35. package/dist/events.d.ts +44 -4
  36. package/dist/events.d.ts.map +1 -1
  37. package/dist/events.js +34 -0
  38. package/dist/events.js.map +1 -1
  39. package/dist/harness.d.ts +252 -59
  40. package/dist/harness.d.ts.map +1 -1
  41. package/dist/harness.js +2 -32
  42. package/dist/harness.js.map +1 -1
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1 -0
  46. package/dist/index.js.map +1 -1
  47. package/dist/mcp-run-result.d.ts +10 -10
  48. package/dist/platform-auth.d.ts +196 -0
  49. package/dist/platform-auth.d.ts.map +1 -0
  50. package/dist/platform-auth.js +142 -0
  51. package/dist/platform-auth.js.map +1 -0
  52. package/dist/quota.d.ts +42 -21
  53. package/dist/quota.d.ts.map +1 -1
  54. package/dist/quota.js +35 -0
  55. package/dist/quota.js.map +1 -1
  56. package/dist/rate-limit.d.ts +9 -0
  57. package/dist/rate-limit.d.ts.map +1 -1
  58. package/dist/rate-limit.js +21 -0
  59. package/dist/rate-limit.js.map +1 -1
  60. package/dist/readiness.d.ts +178 -1
  61. package/dist/readiness.d.ts.map +1 -1
  62. package/dist/readiness.js +12 -0
  63. package/dist/readiness.js.map +1 -1
  64. package/dist/setup-login.d.ts +5 -5
  65. package/dist/setup.d.ts +102 -95
  66. package/dist/setup.d.ts.map +1 -1
  67. package/dist/setup.js +29 -5
  68. package/dist/setup.js.map +1 -1
  69. package/generated/AccountsUnifiedMigrationFile.schema.json +61 -0
  70. package/generated/AgentCapabilityCatalog.schema.json +26 -0
  71. package/generated/ControlAccountPoolsResponse.schema.json +93 -0
  72. package/generated/ControlAccountsMigrationRollbackRequest.schema.json +18 -0
  73. package/generated/ControlAccountsMigrationRollbackResponse.schema.json +63 -0
  74. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  75. package/generated/ControlCredentialProfileCreateResponse.schema.json +4 -4
  76. package/generated/ControlCredentialProfileDeleteResponse.schema.json +28 -4
  77. package/generated/ControlCredentialProfileUpdateResponse.schema.json +4 -4
  78. package/generated/ControlCredentialProfilesQueryResponse.schema.json +212 -7
  79. package/generated/ControlCredentialProfilesResponse.schema.json +81 -5
  80. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +209 -7
  81. package/generated/ControlHarnessAccountPool.schema.json +79 -0
  82. package/generated/ControlHarnessListResponse.schema.json +124 -0
  83. package/generated/ControlHarnessSettingsPatch.schema.json +2 -1
  84. package/generated/ControlPoolNextUp.schema.json +63 -0
  85. package/generated/ControlQuotaResponse.schema.json +4 -2
  86. package/generated/ControlRunDetail.schema.json +2 -1
  87. package/generated/ControlRunListResponse.schema.json +2 -1
  88. package/generated/ControlRunSummary.schema.json +2 -1
  89. package/generated/ControlSettingsSnapshot.schema.json +3 -2
  90. package/generated/ControlSettingsUpdateRequest.schema.json +2 -1
  91. package/generated/ControlSetupJob.schema.json +5 -1
  92. package/generated/ControlSetupJobCreateRequest.schema.json +1 -1
  93. package/generated/ControlSetupJobEvent.schema.json +5 -1
  94. package/generated/ControlSetupJobListResponse.schema.json +5 -1
  95. package/generated/ControlSetupJobSnapshot.schema.json +5 -1
  96. package/generated/CredentialProfile.schema.json +3 -3
  97. package/generated/CredentialProfileStatus.schema.json +1 -1
  98. package/generated/GlobalConfig.schema.json +7 -6
  99. package/generated/HarnessEvent.schema.json +2 -1
  100. package/generated/HarnessManifest.schema.json +98 -0
  101. package/generated/HarnessStatusDto.schema.json +124 -0
  102. package/generated/McpRunHandleResult.schema.json +2 -1
  103. package/generated/McpRunToolResult.schema.json +2 -1
  104. package/generated/RunEvent.schema.json +4 -0
  105. package/generated/RunFailure.schema.json +2 -1
  106. package/package.json +2 -2
@@ -212,6 +212,56 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
212
212
  reason: string;
213
213
  };
214
214
  }>, "many">>;
215
+ accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
216
+ harness_id: z.ZodString;
217
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
218
+ kind: z.ZodLiteral<"profile">;
219
+ profileId: z.ZodString;
220
+ }, "strict", z.ZodTypeAny, {
221
+ kind: "profile";
222
+ profileId: string;
223
+ }, {
224
+ kind: "profile";
225
+ profileId: string;
226
+ }>, z.ZodObject<{
227
+ kind: z.ZodLiteral<"api_key_route">;
228
+ }, "strict", z.ZodTypeAny, {
229
+ kind: "api_key_route";
230
+ }, {
231
+ kind: "api_key_route";
232
+ }>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"none">;
234
+ reason: z.ZodString;
235
+ }, "strict", z.ZodTypeAny, {
236
+ kind: "none";
237
+ reason: string;
238
+ }, {
239
+ kind: "none";
240
+ reason: string;
241
+ }>]>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ harness_id: string;
244
+ next_up: {
245
+ kind: "profile";
246
+ profileId: string;
247
+ } | {
248
+ kind: "api_key_route";
249
+ } | {
250
+ kind: "none";
251
+ reason: string;
252
+ };
253
+ }, {
254
+ harness_id: string;
255
+ next_up: {
256
+ kind: "profile";
257
+ profileId: string;
258
+ } | {
259
+ kind: "api_key_route";
260
+ } | {
261
+ kind: "none";
262
+ reason: string;
263
+ };
264
+ }>, "many">>;
215
265
  } & {
216
266
  harnesses: z.ZodArray<z.ZodObject<{
217
267
  id: z.ZodString;
@@ -224,22 +274,51 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
224
274
  adapter_version: z.ZodOptional<z.ZodString>;
225
275
  provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
226
276
  capability_profile: z.ZodDefault<z.ZodObject<{
227
- auth: z.ZodDefault<z.ZodObject<{
277
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
228
278
  supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
229
279
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
230
280
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
231
281
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
232
282
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
233
283
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
284
+ platforms: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">>, ("darwin" | "linux" | "win32")[] | undefined, ("darwin" | "linux" | "win32")[] | undefined>;
234
285
  }, "strip", z.ZodTypeAny, {
235
286
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
236
287
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
237
288
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
289
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
238
290
  }, {
239
291
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
240
292
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
241
293
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
294
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
242
295
  }>, "many">>;
296
+ credential_profile_policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
298
+ platforms: z.ZodEffects<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">, ("darwin" | "linux" | "win32")[], ("darwin" | "linux" | "win32")[]>;
299
+ identity_scope: z.ZodEnum<["profile", "os_user"]>;
300
+ max_enabled_profiles: z.ZodNullable<z.ZodNumber>;
301
+ cleanup_owner: z.ZodEnum<["claudexor", "vendor"]>;
302
+ }, "strict", z.ZodTypeAny, {
303
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
304
+ platforms: ("darwin" | "linux" | "win32")[];
305
+ identity_scope: "os_user" | "profile";
306
+ max_enabled_profiles: number | null;
307
+ cleanup_owner: "claudexor" | "vendor";
308
+ }, {
309
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
310
+ platforms: ("darwin" | "linux" | "win32")[];
311
+ identity_scope: "os_user" | "profile";
312
+ max_enabled_profiles: number | null;
313
+ cleanup_owner: "claudexor" | "vendor";
314
+ }>, "many">>;
315
+ managed_login: z.ZodOptional<z.ZodNullable<z.ZodObject<{
316
+ stdin: z.ZodEnum<["none", "pipe", "terminal"]>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ stdin: "none" | "pipe" | "terminal";
319
+ }, {
320
+ stdin: "none" | "pipe" | "terminal";
321
+ }>>>;
243
322
  }, "strip", z.ZodTypeAny, {
244
323
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
245
324
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -247,7 +326,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
247
326
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
248
327
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
249
328
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
329
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
250
330
  }[];
331
+ credential_profile_policies?: {
332
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
333
+ platforms: ("darwin" | "linux" | "win32")[];
334
+ identity_scope: "os_user" | "profile";
335
+ max_enabled_profiles: number | null;
336
+ cleanup_owner: "claudexor" | "vendor";
337
+ }[] | undefined;
338
+ managed_login?: {
339
+ stdin: "none" | "pipe" | "terminal";
340
+ } | null | undefined;
251
341
  }, {
252
342
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
253
343
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -255,7 +345,56 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
255
345
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
256
346
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
257
347
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
348
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
258
349
  }[] | undefined;
350
+ credential_profile_policies?: {
351
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
352
+ platforms: ("darwin" | "linux" | "win32")[];
353
+ identity_scope: "os_user" | "profile";
354
+ max_enabled_profiles: number | null;
355
+ cleanup_owner: "claudexor" | "vendor";
356
+ }[] | undefined;
357
+ managed_login?: {
358
+ stdin: "none" | "pipe" | "terminal";
359
+ } | null | undefined;
360
+ }>, {
361
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
362
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
363
+ credential_transports: {
364
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
365
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
366
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
367
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
368
+ }[];
369
+ credential_profile_policies?: {
370
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
371
+ platforms: ("darwin" | "linux" | "win32")[];
372
+ identity_scope: "os_user" | "profile";
373
+ max_enabled_profiles: number | null;
374
+ cleanup_owner: "claudexor" | "vendor";
375
+ }[] | undefined;
376
+ managed_login?: {
377
+ stdin: "none" | "pipe" | "terminal";
378
+ } | null | undefined;
379
+ }, {
380
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
381
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
382
+ credential_transports?: {
383
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
384
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
385
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
386
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
387
+ }[] | undefined;
388
+ credential_profile_policies?: {
389
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
390
+ platforms: ("darwin" | "linux" | "win32")[];
391
+ identity_scope: "os_user" | "profile";
392
+ max_enabled_profiles: number | null;
393
+ cleanup_owner: "claudexor" | "vendor";
394
+ }[] | undefined;
395
+ managed_login?: {
396
+ stdin: "none" | "pipe" | "terminal";
397
+ } | null | undefined;
259
398
  }>>;
260
399
  access_control: z.ZodDefault<z.ZodObject<{
261
400
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -300,7 +439,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
300
439
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
301
440
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
302
441
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
442
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
303
443
  }[];
444
+ credential_profile_policies?: {
445
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
446
+ platforms: ("darwin" | "linux" | "win32")[];
447
+ identity_scope: "os_user" | "profile";
448
+ max_enabled_profiles: number | null;
449
+ cleanup_owner: "claudexor" | "vendor";
450
+ }[] | undefined;
451
+ managed_login?: {
452
+ stdin: "none" | "pipe" | "terminal";
453
+ } | null | undefined;
304
454
  };
305
455
  access_control: {
306
456
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -325,7 +475,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
325
475
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
326
476
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
327
477
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
478
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
479
+ }[] | undefined;
480
+ credential_profile_policies?: {
481
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
482
+ platforms: ("darwin" | "linux" | "win32")[];
483
+ identity_scope: "os_user" | "profile";
484
+ max_enabled_profiles: number | null;
485
+ cleanup_owner: "claudexor" | "vendor";
328
486
  }[] | undefined;
487
+ managed_login?: {
488
+ stdin: "none" | "pipe" | "terminal";
489
+ } | null | undefined;
329
490
  } | undefined;
330
491
  access_control?: {
331
492
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -457,7 +618,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
457
618
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
458
619
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
459
620
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
621
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
460
622
  }[];
623
+ credential_profile_policies?: {
624
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
625
+ platforms: ("darwin" | "linux" | "win32")[];
626
+ identity_scope: "os_user" | "profile";
627
+ max_enabled_profiles: number | null;
628
+ cleanup_owner: "claudexor" | "vendor";
629
+ }[] | undefined;
630
+ managed_login?: {
631
+ stdin: "none" | "pipe" | "terminal";
632
+ } | null | undefined;
461
633
  };
462
634
  access_control: {
463
635
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -521,7 +693,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
521
693
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
522
694
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
523
695
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
696
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
524
697
  }[] | undefined;
698
+ credential_profile_policies?: {
699
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
700
+ platforms: ("darwin" | "linux" | "win32")[];
701
+ identity_scope: "os_user" | "profile";
702
+ max_enabled_profiles: number | null;
703
+ cleanup_owner: "claudexor" | "vendor";
704
+ }[] | undefined;
705
+ managed_login?: {
706
+ stdin: "none" | "pipe" | "terminal";
707
+ } | null | undefined;
525
708
  } | undefined;
526
709
  access_control?: {
527
710
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -663,6 +846,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
663
846
  remediation?: string | null | undefined;
664
847
  requiresFullAccess?: boolean | undefined;
665
848
  }>>>;
849
+ setupLogin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
850
+ mode: z.ZodEnum<["in_app", "external_terminal"]>;
851
+ }, "strict", z.ZodTypeAny, {
852
+ mode: "external_terminal" | "in_app";
853
+ }, {
854
+ mode: "external_terminal" | "in_app";
855
+ }>>>;
666
856
  }, "strip", z.ZodTypeAny, {
667
857
  id: string;
668
858
  status: "degraded" | "ok" | "unavailable";
@@ -681,7 +871,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
681
871
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
682
872
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
683
873
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
874
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
684
875
  }[];
876
+ credential_profile_policies?: {
877
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
878
+ platforms: ("darwin" | "linux" | "win32")[];
879
+ identity_scope: "os_user" | "profile";
880
+ max_enabled_profiles: number | null;
881
+ cleanup_owner: "claudexor" | "vendor";
882
+ }[] | undefined;
883
+ managed_login?: {
884
+ stdin: "none" | "pipe" | "terminal";
885
+ } | null | undefined;
685
886
  };
686
887
  access_control: {
687
888
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -765,6 +966,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
765
966
  remediation: string | null;
766
967
  requiresFullAccess: boolean;
767
968
  } | null;
969
+ setupLogin?: {
970
+ mode: "external_terminal" | "in_app";
971
+ } | null | undefined;
768
972
  }, {
769
973
  id: string;
770
974
  status: "degraded" | "ok" | "unavailable";
@@ -783,7 +987,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
783
987
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
784
988
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
785
989
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
990
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
991
+ }[] | undefined;
992
+ credential_profile_policies?: {
993
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
994
+ platforms: ("darwin" | "linux" | "win32")[];
995
+ identity_scope: "os_user" | "profile";
996
+ max_enabled_profiles: number | null;
997
+ cleanup_owner: "claudexor" | "vendor";
786
998
  }[] | undefined;
999
+ managed_login?: {
1000
+ stdin: "none" | "pipe" | "terminal";
1001
+ } | null | undefined;
787
1002
  } | undefined;
788
1003
  access_control?: {
789
1004
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -867,6 +1082,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
867
1082
  remediation?: string | null | undefined;
868
1083
  requiresFullAccess?: boolean | undefined;
869
1084
  } | null | undefined;
1085
+ setupLogin?: {
1086
+ mode: "external_terminal" | "in_app";
1087
+ } | null | undefined;
870
1088
  }>, "many">;
871
1089
  git: z.ZodObject<{
872
1090
  status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
@@ -930,7 +1148,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
930
1148
  resets_at: string | null;
931
1149
  cooldown_until?: string | null | undefined;
932
1150
  }>, "many">;
933
- source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
1151
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
934
1152
  observed_at: z.ZodString;
935
1153
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
936
1154
  } & {
@@ -987,7 +1205,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
987
1205
  resets_at: string | null;
988
1206
  cooldown_until: string | null;
989
1207
  }[];
990
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1208
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
991
1209
  observed_at: string;
992
1210
  freshness: "fresh" | "stale" | "unknown";
993
1211
  availability?: {
@@ -1017,7 +1235,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1017
1235
  resets_at: string | null;
1018
1236
  cooldown_until?: string | null | undefined;
1019
1237
  }[];
1020
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1238
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1021
1239
  observed_at: string;
1022
1240
  freshness: "fresh" | "stale" | "unknown";
1023
1241
  availability?: {
@@ -1048,7 +1266,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1048
1266
  plan_label?: string | null | undefined;
1049
1267
  subject_id?: string | null | undefined;
1050
1268
  }>;
1051
- reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
1269
+ reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "credential_profile_ambiguous"]>;
1052
1270
  detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1053
1271
  observed_at: z.ZodString;
1054
1272
  }, "strict", z.ZodTypeAny, {
@@ -1058,7 +1276,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1058
1276
  plan_label: string | null;
1059
1277
  subject_id: string | null;
1060
1278
  };
1061
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1279
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1062
1280
  detail: string | null;
1063
1281
  observed_at: string;
1064
1282
  }, {
@@ -1068,7 +1286,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1068
1286
  plan_label?: string | null | undefined;
1069
1287
  subject_id?: string | null | undefined;
1070
1288
  };
1071
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1289
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1072
1290
  detail?: string | null | undefined;
1073
1291
  observed_at: string;
1074
1292
  }>, "many">>;
@@ -1091,7 +1309,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1091
1309
  resets_at: string | null;
1092
1310
  cooldown_until: string | null;
1093
1311
  }[];
1094
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1312
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1095
1313
  observed_at: string;
1096
1314
  freshness: "fresh" | "stale" | "unknown";
1097
1315
  availability?: {
@@ -1112,7 +1330,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1112
1330
  plan_label: string | null;
1113
1331
  subject_id: string | null;
1114
1332
  };
1115
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1333
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1116
1334
  detail: string | null;
1117
1335
  observed_at: string;
1118
1336
  }[];
@@ -1135,7 +1353,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1135
1353
  resets_at: string | null;
1136
1354
  cooldown_until?: string | null | undefined;
1137
1355
  }[];
1138
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1356
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1139
1357
  observed_at: string;
1140
1358
  freshness: "fresh" | "stale" | "unknown";
1141
1359
  availability?: {
@@ -1156,7 +1374,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1156
1374
  plan_label?: string | null | undefined;
1157
1375
  subject_id?: string | null | undefined;
1158
1376
  };
1159
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1377
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1160
1378
  detail?: string | null | undefined;
1161
1379
  observed_at: string;
1162
1380
  }[] | undefined;
@@ -1208,6 +1426,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1208
1426
  reason: string;
1209
1427
  };
1210
1428
  }[];
1429
+ accountPools: {
1430
+ harness_id: string;
1431
+ next_up: {
1432
+ kind: "profile";
1433
+ profileId: string;
1434
+ } | {
1435
+ kind: "api_key_route";
1436
+ } | {
1437
+ kind: "none";
1438
+ reason: string;
1439
+ };
1440
+ }[];
1211
1441
  harnesses: {
1212
1442
  id: string;
1213
1443
  status: "degraded" | "ok" | "unavailable";
@@ -1226,7 +1456,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1226
1456
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1227
1457
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1228
1458
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
1459
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
1229
1460
  }[];
1461
+ credential_profile_policies?: {
1462
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1463
+ platforms: ("darwin" | "linux" | "win32")[];
1464
+ identity_scope: "os_user" | "profile";
1465
+ max_enabled_profiles: number | null;
1466
+ cleanup_owner: "claudexor" | "vendor";
1467
+ }[] | undefined;
1468
+ managed_login?: {
1469
+ stdin: "none" | "pipe" | "terminal";
1470
+ } | null | undefined;
1230
1471
  };
1231
1472
  access_control: {
1232
1473
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -1310,6 +1551,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1310
1551
  remediation: string | null;
1311
1552
  requiresFullAccess: boolean;
1312
1553
  } | null;
1554
+ setupLogin?: {
1555
+ mode: "external_terminal" | "in_app";
1556
+ } | null | undefined;
1313
1557
  }[];
1314
1558
  git: {
1315
1559
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -1335,7 +1579,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1335
1579
  resets_at: string | null;
1336
1580
  cooldown_until: string | null;
1337
1581
  }[];
1338
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1582
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1339
1583
  observed_at: string;
1340
1584
  freshness: "fresh" | "stale" | "unknown";
1341
1585
  availability?: {
@@ -1356,7 +1600,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1356
1600
  plan_label: string | null;
1357
1601
  subject_id: string | null;
1358
1602
  };
1359
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1603
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1360
1604
  detail: string | null;
1361
1605
  observed_at: string;
1362
1606
  }[];
@@ -1408,6 +1652,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1408
1652
  reason: string;
1409
1653
  };
1410
1654
  }[] | undefined;
1655
+ accountPools?: {
1656
+ harness_id: string;
1657
+ next_up: {
1658
+ kind: "profile";
1659
+ profileId: string;
1660
+ } | {
1661
+ kind: "api_key_route";
1662
+ } | {
1663
+ kind: "none";
1664
+ reason: string;
1665
+ };
1666
+ }[] | undefined;
1411
1667
  harnesses: {
1412
1668
  id: string;
1413
1669
  status: "degraded" | "ok" | "unavailable";
@@ -1426,7 +1682,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1426
1682
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1427
1683
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1428
1684
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
1685
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
1429
1686
  }[] | undefined;
1687
+ credential_profile_policies?: {
1688
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1689
+ platforms: ("darwin" | "linux" | "win32")[];
1690
+ identity_scope: "os_user" | "profile";
1691
+ max_enabled_profiles: number | null;
1692
+ cleanup_owner: "claudexor" | "vendor";
1693
+ }[] | undefined;
1694
+ managed_login?: {
1695
+ stdin: "none" | "pipe" | "terminal";
1696
+ } | null | undefined;
1430
1697
  } | undefined;
1431
1698
  access_control?: {
1432
1699
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -1510,6 +1777,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1510
1777
  remediation?: string | null | undefined;
1511
1778
  requiresFullAccess?: boolean | undefined;
1512
1779
  } | null | undefined;
1780
+ setupLogin?: {
1781
+ mode: "external_terminal" | "in_app";
1782
+ } | null | undefined;
1513
1783
  }[];
1514
1784
  git: {
1515
1785
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -1535,7 +1805,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1535
1805
  resets_at: string | null;
1536
1806
  cooldown_until?: string | null | undefined;
1537
1807
  }[];
1538
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1808
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
1539
1809
  observed_at: string;
1540
1810
  freshness: "fresh" | "stale" | "unknown";
1541
1811
  availability?: {
@@ -1556,7 +1826,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1556
1826
  plan_label?: string | null | undefined;
1557
1827
  subject_id?: string | null | undefined;
1558
1828
  };
1559
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1829
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
1560
1830
  detail?: string | null | undefined;
1561
1831
  observed_at: string;
1562
1832
  }[] | undefined;
@@ -1779,6 +2049,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
1779
2049
  reason: string;
1780
2050
  };
1781
2051
  }>, "many">>;
2052
+ accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2053
+ harness_id: z.ZodString;
2054
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2055
+ kind: z.ZodLiteral<"profile">;
2056
+ profileId: z.ZodString;
2057
+ }, "strict", z.ZodTypeAny, {
2058
+ kind: "profile";
2059
+ profileId: string;
2060
+ }, {
2061
+ kind: "profile";
2062
+ profileId: string;
2063
+ }>, z.ZodObject<{
2064
+ kind: z.ZodLiteral<"api_key_route">;
2065
+ }, "strict", z.ZodTypeAny, {
2066
+ kind: "api_key_route";
2067
+ }, {
2068
+ kind: "api_key_route";
2069
+ }>, z.ZodObject<{
2070
+ kind: z.ZodLiteral<"none">;
2071
+ reason: z.ZodString;
2072
+ }, "strict", z.ZodTypeAny, {
2073
+ kind: "none";
2074
+ reason: string;
2075
+ }, {
2076
+ kind: "none";
2077
+ reason: string;
2078
+ }>]>;
2079
+ }, "strict", z.ZodTypeAny, {
2080
+ harness_id: string;
2081
+ next_up: {
2082
+ kind: "profile";
2083
+ profileId: string;
2084
+ } | {
2085
+ kind: "api_key_route";
2086
+ } | {
2087
+ kind: "none";
2088
+ reason: string;
2089
+ };
2090
+ }, {
2091
+ harness_id: string;
2092
+ next_up: {
2093
+ kind: "profile";
2094
+ profileId: string;
2095
+ } | {
2096
+ kind: "api_key_route";
2097
+ } | {
2098
+ kind: "none";
2099
+ reason: string;
2100
+ };
2101
+ }>, "many">>;
1782
2102
  }, "strict", z.ZodTypeAny, {
1783
2103
  profiles: {
1784
2104
  profile: {
@@ -1824,6 +2144,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
1824
2144
  reason: string;
1825
2145
  };
1826
2146
  }[];
2147
+ accountPools: {
2148
+ harness_id: string;
2149
+ next_up: {
2150
+ kind: "profile";
2151
+ profileId: string;
2152
+ } | {
2153
+ kind: "api_key_route";
2154
+ } | {
2155
+ kind: "none";
2156
+ reason: string;
2157
+ };
2158
+ }[];
1827
2159
  }, {
1828
2160
  profiles: {
1829
2161
  profile: {
@@ -1869,6 +2201,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
1869
2201
  reason: string;
1870
2202
  };
1871
2203
  }[] | undefined;
2204
+ accountPools?: {
2205
+ harness_id: string;
2206
+ next_up: {
2207
+ kind: "profile";
2208
+ profileId: string;
2209
+ } | {
2210
+ kind: "api_key_route";
2211
+ } | {
2212
+ kind: "none";
2213
+ reason: string;
2214
+ };
2215
+ }[] | undefined;
1872
2216
  }>, z.ZodObject<{
1873
2217
  profiles: z.ZodArray<z.ZodObject<{
1874
2218
  profile: z.ZodEffects<z.ZodObject<{
@@ -2080,6 +2424,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2080
2424
  reason: string;
2081
2425
  };
2082
2426
  }>, "many">>;
2427
+ accountPools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2428
+ harness_id: z.ZodString;
2429
+ next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2430
+ kind: z.ZodLiteral<"profile">;
2431
+ profileId: z.ZodString;
2432
+ }, "strict", z.ZodTypeAny, {
2433
+ kind: "profile";
2434
+ profileId: string;
2435
+ }, {
2436
+ kind: "profile";
2437
+ profileId: string;
2438
+ }>, z.ZodObject<{
2439
+ kind: z.ZodLiteral<"api_key_route">;
2440
+ }, "strict", z.ZodTypeAny, {
2441
+ kind: "api_key_route";
2442
+ }, {
2443
+ kind: "api_key_route";
2444
+ }>, z.ZodObject<{
2445
+ kind: z.ZodLiteral<"none">;
2446
+ reason: z.ZodString;
2447
+ }, "strict", z.ZodTypeAny, {
2448
+ kind: "none";
2449
+ reason: string;
2450
+ }, {
2451
+ kind: "none";
2452
+ reason: string;
2453
+ }>]>;
2454
+ }, "strict", z.ZodTypeAny, {
2455
+ harness_id: string;
2456
+ next_up: {
2457
+ kind: "profile";
2458
+ profileId: string;
2459
+ } | {
2460
+ kind: "api_key_route";
2461
+ } | {
2462
+ kind: "none";
2463
+ reason: string;
2464
+ };
2465
+ }, {
2466
+ harness_id: string;
2467
+ next_up: {
2468
+ kind: "profile";
2469
+ profileId: string;
2470
+ } | {
2471
+ kind: "api_key_route";
2472
+ } | {
2473
+ kind: "none";
2474
+ reason: string;
2475
+ };
2476
+ }>, "many">>;
2083
2477
  } & {
2084
2478
  harnesses: z.ZodArray<z.ZodObject<{
2085
2479
  id: z.ZodString;
@@ -2092,22 +2486,51 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2092
2486
  adapter_version: z.ZodOptional<z.ZodString>;
2093
2487
  provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
2094
2488
  capability_profile: z.ZodDefault<z.ZodObject<{
2095
- auth: z.ZodDefault<z.ZodObject<{
2489
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
2096
2490
  supported_sources: z.ZodDefault<z.ZodArray<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>, "many">>;
2097
2491
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
2098
2492
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
2099
2493
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
2100
2494
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
2101
2495
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
2496
+ platforms: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">>, ("darwin" | "linux" | "win32")[] | undefined, ("darwin" | "linux" | "win32")[] | undefined>;
2102
2497
  }, "strip", z.ZodTypeAny, {
2103
2498
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2104
2499
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2105
2500
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2501
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2106
2502
  }, {
2107
2503
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2108
2504
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2109
2505
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2506
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2507
+ }>, "many">>;
2508
+ credential_profile_policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2509
+ source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
2510
+ platforms: z.ZodEffects<z.ZodArray<z.ZodEnum<["darwin", "linux", "win32"]>, "many">, ("darwin" | "linux" | "win32")[], ("darwin" | "linux" | "win32")[]>;
2511
+ identity_scope: z.ZodEnum<["profile", "os_user"]>;
2512
+ max_enabled_profiles: z.ZodNullable<z.ZodNumber>;
2513
+ cleanup_owner: z.ZodEnum<["claudexor", "vendor"]>;
2514
+ }, "strict", z.ZodTypeAny, {
2515
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2516
+ platforms: ("darwin" | "linux" | "win32")[];
2517
+ identity_scope: "os_user" | "profile";
2518
+ max_enabled_profiles: number | null;
2519
+ cleanup_owner: "claudexor" | "vendor";
2520
+ }, {
2521
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2522
+ platforms: ("darwin" | "linux" | "win32")[];
2523
+ identity_scope: "os_user" | "profile";
2524
+ max_enabled_profiles: number | null;
2525
+ cleanup_owner: "claudexor" | "vendor";
2110
2526
  }>, "many">>;
2527
+ managed_login: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2528
+ stdin: z.ZodEnum<["none", "pipe", "terminal"]>;
2529
+ }, "strict", z.ZodTypeAny, {
2530
+ stdin: "none" | "pipe" | "terminal";
2531
+ }, {
2532
+ stdin: "none" | "pipe" | "terminal";
2533
+ }>>>;
2111
2534
  }, "strip", z.ZodTypeAny, {
2112
2535
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2113
2536
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -2115,7 +2538,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2115
2538
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2116
2539
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2117
2540
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2541
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2118
2542
  }[];
2543
+ credential_profile_policies?: {
2544
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2545
+ platforms: ("darwin" | "linux" | "win32")[];
2546
+ identity_scope: "os_user" | "profile";
2547
+ max_enabled_profiles: number | null;
2548
+ cleanup_owner: "claudexor" | "vendor";
2549
+ }[] | undefined;
2550
+ managed_login?: {
2551
+ stdin: "none" | "pipe" | "terminal";
2552
+ } | null | undefined;
2119
2553
  }, {
2120
2554
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2121
2555
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -2123,7 +2557,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2123
2557
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2124
2558
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2125
2559
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2560
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2126
2561
  }[] | undefined;
2562
+ credential_profile_policies?: {
2563
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2564
+ platforms: ("darwin" | "linux" | "win32")[];
2565
+ identity_scope: "os_user" | "profile";
2566
+ max_enabled_profiles: number | null;
2567
+ cleanup_owner: "claudexor" | "vendor";
2568
+ }[] | undefined;
2569
+ managed_login?: {
2570
+ stdin: "none" | "pipe" | "terminal";
2571
+ } | null | undefined;
2572
+ }>, {
2573
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2574
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
2575
+ credential_transports: {
2576
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2577
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2578
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2579
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2580
+ }[];
2581
+ credential_profile_policies?: {
2582
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2583
+ platforms: ("darwin" | "linux" | "win32")[];
2584
+ identity_scope: "os_user" | "profile";
2585
+ max_enabled_profiles: number | null;
2586
+ cleanup_owner: "claudexor" | "vendor";
2587
+ }[] | undefined;
2588
+ managed_login?: {
2589
+ stdin: "none" | "pipe" | "terminal";
2590
+ } | null | undefined;
2591
+ }, {
2592
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2593
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2594
+ credential_transports?: {
2595
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2596
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2597
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2598
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2599
+ }[] | undefined;
2600
+ credential_profile_policies?: {
2601
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2602
+ platforms: ("darwin" | "linux" | "win32")[];
2603
+ identity_scope: "os_user" | "profile";
2604
+ max_enabled_profiles: number | null;
2605
+ cleanup_owner: "claudexor" | "vendor";
2606
+ }[] | undefined;
2607
+ managed_login?: {
2608
+ stdin: "none" | "pipe" | "terminal";
2609
+ } | null | undefined;
2127
2610
  }>>;
2128
2611
  access_control: z.ZodDefault<z.ZodObject<{
2129
2612
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -2168,7 +2651,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2168
2651
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2169
2652
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2170
2653
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2654
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2171
2655
  }[];
2656
+ credential_profile_policies?: {
2657
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2658
+ platforms: ("darwin" | "linux" | "win32")[];
2659
+ identity_scope: "os_user" | "profile";
2660
+ max_enabled_profiles: number | null;
2661
+ cleanup_owner: "claudexor" | "vendor";
2662
+ }[] | undefined;
2663
+ managed_login?: {
2664
+ stdin: "none" | "pipe" | "terminal";
2665
+ } | null | undefined;
2172
2666
  };
2173
2667
  access_control: {
2174
2668
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2193,7 +2687,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2193
2687
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2194
2688
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2195
2689
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2690
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2196
2691
  }[] | undefined;
2692
+ credential_profile_policies?: {
2693
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2694
+ platforms: ("darwin" | "linux" | "win32")[];
2695
+ identity_scope: "os_user" | "profile";
2696
+ max_enabled_profiles: number | null;
2697
+ cleanup_owner: "claudexor" | "vendor";
2698
+ }[] | undefined;
2699
+ managed_login?: {
2700
+ stdin: "none" | "pipe" | "terminal";
2701
+ } | null | undefined;
2197
2702
  } | undefined;
2198
2703
  access_control?: {
2199
2704
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2325,7 +2830,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2325
2830
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2326
2831
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2327
2832
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2833
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2328
2834
  }[];
2835
+ credential_profile_policies?: {
2836
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2837
+ platforms: ("darwin" | "linux" | "win32")[];
2838
+ identity_scope: "os_user" | "profile";
2839
+ max_enabled_profiles: number | null;
2840
+ cleanup_owner: "claudexor" | "vendor";
2841
+ }[] | undefined;
2842
+ managed_login?: {
2843
+ stdin: "none" | "pipe" | "terminal";
2844
+ } | null | undefined;
2329
2845
  };
2330
2846
  access_control: {
2331
2847
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2389,7 +2905,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2389
2905
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2390
2906
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2391
2907
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2908
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2392
2909
  }[] | undefined;
2910
+ credential_profile_policies?: {
2911
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2912
+ platforms: ("darwin" | "linux" | "win32")[];
2913
+ identity_scope: "os_user" | "profile";
2914
+ max_enabled_profiles: number | null;
2915
+ cleanup_owner: "claudexor" | "vendor";
2916
+ }[] | undefined;
2917
+ managed_login?: {
2918
+ stdin: "none" | "pipe" | "terminal";
2919
+ } | null | undefined;
2393
2920
  } | undefined;
2394
2921
  access_control?: {
2395
2922
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2531,6 +3058,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2531
3058
  remediation?: string | null | undefined;
2532
3059
  requiresFullAccess?: boolean | undefined;
2533
3060
  }>>>;
3061
+ setupLogin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3062
+ mode: z.ZodEnum<["in_app", "external_terminal"]>;
3063
+ }, "strict", z.ZodTypeAny, {
3064
+ mode: "external_terminal" | "in_app";
3065
+ }, {
3066
+ mode: "external_terminal" | "in_app";
3067
+ }>>>;
2534
3068
  }, "strip", z.ZodTypeAny, {
2535
3069
  id: string;
2536
3070
  status: "degraded" | "ok" | "unavailable";
@@ -2549,7 +3083,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2549
3083
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2550
3084
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2551
3085
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
3086
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2552
3087
  }[];
3088
+ credential_profile_policies?: {
3089
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3090
+ platforms: ("darwin" | "linux" | "win32")[];
3091
+ identity_scope: "os_user" | "profile";
3092
+ max_enabled_profiles: number | null;
3093
+ cleanup_owner: "claudexor" | "vendor";
3094
+ }[] | undefined;
3095
+ managed_login?: {
3096
+ stdin: "none" | "pipe" | "terminal";
3097
+ } | null | undefined;
2553
3098
  };
2554
3099
  access_control: {
2555
3100
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2633,6 +3178,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2633
3178
  remediation: string | null;
2634
3179
  requiresFullAccess: boolean;
2635
3180
  } | null;
3181
+ setupLogin?: {
3182
+ mode: "external_terminal" | "in_app";
3183
+ } | null | undefined;
2636
3184
  }, {
2637
3185
  id: string;
2638
3186
  status: "degraded" | "ok" | "unavailable";
@@ -2651,7 +3199,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2651
3199
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2652
3200
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2653
3201
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
3202
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
3203
+ }[] | undefined;
3204
+ credential_profile_policies?: {
3205
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3206
+ platforms: ("darwin" | "linux" | "win32")[];
3207
+ identity_scope: "os_user" | "profile";
3208
+ max_enabled_profiles: number | null;
3209
+ cleanup_owner: "claudexor" | "vendor";
2654
3210
  }[] | undefined;
3211
+ managed_login?: {
3212
+ stdin: "none" | "pipe" | "terminal";
3213
+ } | null | undefined;
2655
3214
  } | undefined;
2656
3215
  access_control?: {
2657
3216
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2735,6 +3294,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2735
3294
  remediation?: string | null | undefined;
2736
3295
  requiresFullAccess?: boolean | undefined;
2737
3296
  } | null | undefined;
3297
+ setupLogin?: {
3298
+ mode: "external_terminal" | "in_app";
3299
+ } | null | undefined;
2738
3300
  }>, "many">;
2739
3301
  git: z.ZodObject<{
2740
3302
  status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
@@ -2798,7 +3360,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2798
3360
  resets_at: string | null;
2799
3361
  cooldown_until?: string | null | undefined;
2800
3362
  }>, "many">;
2801
- source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
3363
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
2802
3364
  observed_at: z.ZodString;
2803
3365
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
2804
3366
  } & {
@@ -2855,7 +3417,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2855
3417
  resets_at: string | null;
2856
3418
  cooldown_until: string | null;
2857
3419
  }[];
2858
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3420
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
2859
3421
  observed_at: string;
2860
3422
  freshness: "fresh" | "stale" | "unknown";
2861
3423
  availability?: {
@@ -2885,7 +3447,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2885
3447
  resets_at: string | null;
2886
3448
  cooldown_until?: string | null | undefined;
2887
3449
  }[];
2888
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3450
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
2889
3451
  observed_at: string;
2890
3452
  freshness: "fresh" | "stale" | "unknown";
2891
3453
  availability?: {
@@ -2916,7 +3478,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2916
3478
  plan_label?: string | null | undefined;
2917
3479
  subject_id?: string | null | undefined;
2918
3480
  }>;
2919
- reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
3481
+ reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "credential_profile_ambiguous"]>;
2920
3482
  detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2921
3483
  observed_at: z.ZodString;
2922
3484
  }, "strict", z.ZodTypeAny, {
@@ -2926,7 +3488,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2926
3488
  plan_label: string | null;
2927
3489
  subject_id: string | null;
2928
3490
  };
2929
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3491
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2930
3492
  detail: string | null;
2931
3493
  observed_at: string;
2932
3494
  }, {
@@ -2936,7 +3498,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2936
3498
  plan_label?: string | null | undefined;
2937
3499
  subject_id?: string | null | undefined;
2938
3500
  };
2939
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3501
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2940
3502
  detail?: string | null | undefined;
2941
3503
  observed_at: string;
2942
3504
  }>, "many">>;
@@ -2959,7 +3521,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2959
3521
  resets_at: string | null;
2960
3522
  cooldown_until: string | null;
2961
3523
  }[];
2962
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3524
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
2963
3525
  observed_at: string;
2964
3526
  freshness: "fresh" | "stale" | "unknown";
2965
3527
  availability?: {
@@ -2980,7 +3542,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2980
3542
  plan_label: string | null;
2981
3543
  subject_id: string | null;
2982
3544
  };
2983
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3545
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
2984
3546
  detail: string | null;
2985
3547
  observed_at: string;
2986
3548
  }[];
@@ -3003,7 +3565,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3003
3565
  resets_at: string | null;
3004
3566
  cooldown_until?: string | null | undefined;
3005
3567
  }[];
3006
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3568
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
3007
3569
  observed_at: string;
3008
3570
  freshness: "fresh" | "stale" | "unknown";
3009
3571
  availability?: {
@@ -3024,7 +3586,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3024
3586
  plan_label?: string | null | undefined;
3025
3587
  subject_id?: string | null | undefined;
3026
3588
  };
3027
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3589
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3028
3590
  detail?: string | null | undefined;
3029
3591
  observed_at: string;
3030
3592
  }[] | undefined;
@@ -3076,6 +3638,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3076
3638
  reason: string;
3077
3639
  };
3078
3640
  }[];
3641
+ accountPools: {
3642
+ harness_id: string;
3643
+ next_up: {
3644
+ kind: "profile";
3645
+ profileId: string;
3646
+ } | {
3647
+ kind: "api_key_route";
3648
+ } | {
3649
+ kind: "none";
3650
+ reason: string;
3651
+ };
3652
+ }[];
3079
3653
  harnesses: {
3080
3654
  id: string;
3081
3655
  status: "degraded" | "ok" | "unavailable";
@@ -3094,7 +3668,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3094
3668
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3095
3669
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
3096
3670
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
3671
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
3097
3672
  }[];
3673
+ credential_profile_policies?: {
3674
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3675
+ platforms: ("darwin" | "linux" | "win32")[];
3676
+ identity_scope: "os_user" | "profile";
3677
+ max_enabled_profiles: number | null;
3678
+ cleanup_owner: "claudexor" | "vendor";
3679
+ }[] | undefined;
3680
+ managed_login?: {
3681
+ stdin: "none" | "pipe" | "terminal";
3682
+ } | null | undefined;
3098
3683
  };
3099
3684
  access_control: {
3100
3685
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -3178,6 +3763,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3178
3763
  remediation: string | null;
3179
3764
  requiresFullAccess: boolean;
3180
3765
  } | null;
3766
+ setupLogin?: {
3767
+ mode: "external_terminal" | "in_app";
3768
+ } | null | undefined;
3181
3769
  }[];
3182
3770
  git: {
3183
3771
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -3203,7 +3791,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3203
3791
  resets_at: string | null;
3204
3792
  cooldown_until: string | null;
3205
3793
  }[];
3206
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
3794
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
3207
3795
  observed_at: string;
3208
3796
  freshness: "fresh" | "stale" | "unknown";
3209
3797
  availability?: {
@@ -3224,7 +3812,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3224
3812
  plan_label: string | null;
3225
3813
  subject_id: string | null;
3226
3814
  };
3227
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3815
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3228
3816
  detail: string | null;
3229
3817
  observed_at: string;
3230
3818
  }[];
@@ -3276,6 +3864,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3276
3864
  reason: string;
3277
3865
  };
3278
3866
  }[] | undefined;
3867
+ accountPools?: {
3868
+ harness_id: string;
3869
+ next_up: {
3870
+ kind: "profile";
3871
+ profileId: string;
3872
+ } | {
3873
+ kind: "api_key_route";
3874
+ } | {
3875
+ kind: "none";
3876
+ reason: string;
3877
+ };
3878
+ }[] | undefined;
3279
3879
  harnesses: {
3280
3880
  id: string;
3281
3881
  status: "degraded" | "ok" | "unavailable";
@@ -3294,7 +3894,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3294
3894
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3295
3895
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
3296
3896
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
3897
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
3898
+ }[] | undefined;
3899
+ credential_profile_policies?: {
3900
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3901
+ platforms: ("darwin" | "linux" | "win32")[];
3902
+ identity_scope: "os_user" | "profile";
3903
+ max_enabled_profiles: number | null;
3904
+ cleanup_owner: "claudexor" | "vendor";
3297
3905
  }[] | undefined;
3906
+ managed_login?: {
3907
+ stdin: "none" | "pipe" | "terminal";
3908
+ } | null | undefined;
3298
3909
  } | undefined;
3299
3910
  access_control?: {
3300
3911
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -3378,6 +3989,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3378
3989
  remediation?: string | null | undefined;
3379
3990
  requiresFullAccess?: boolean | undefined;
3380
3991
  } | null | undefined;
3992
+ setupLogin?: {
3993
+ mode: "external_terminal" | "in_app";
3994
+ } | null | undefined;
3381
3995
  }[];
3382
3996
  git: {
3383
3997
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -3403,7 +4017,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3403
4017
  resets_at: string | null;
3404
4018
  cooldown_until?: string | null | undefined;
3405
4019
  }[];
3406
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
4020
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
3407
4021
  observed_at: string;
3408
4022
  freshness: "fresh" | "stale" | "unknown";
3409
4023
  availability?: {
@@ -3424,7 +4038,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3424
4038
  plan_label?: string | null | undefined;
3425
4039
  subject_id?: string | null | undefined;
3426
4040
  };
3427
- reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
4041
+ reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
3428
4042
  detail?: string | null | undefined;
3429
4043
  observed_at: string;
3430
4044
  }[] | undefined;