@claudexor/schema 3.6.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 (58) hide show
  1. package/dist/agent-capabilities.d.ts +32 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +4 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/config.d.ts +10 -8
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +7 -6
  8. package/dist/config.js.map +1 -1
  9. package/dist/control-harness-list.d.ts +197 -1
  10. package/dist/control-harness-list.d.ts.map +1 -1
  11. package/dist/credential-profile-snapshot.d.ts +408 -16
  12. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  13. package/dist/credential-profile.d.ts +69 -42
  14. package/dist/credential-profile.d.ts.map +1 -1
  15. package/dist/credential-profile.js +47 -30
  16. package/dist/credential-profile.js.map +1 -1
  17. package/dist/harness.d.ts +247 -54
  18. package/dist/harness.d.ts.map +1 -1
  19. package/dist/harness.js +2 -32
  20. package/dist/harness.js.map +1 -1
  21. package/dist/platform-auth.d.ts +196 -0
  22. package/dist/platform-auth.d.ts.map +1 -0
  23. package/dist/platform-auth.js +142 -0
  24. package/dist/platform-auth.js.map +1 -0
  25. package/dist/quota.d.ts +9 -9
  26. package/dist/quota.d.ts.map +1 -1
  27. package/dist/quota.js +3 -0
  28. package/dist/quota.js.map +1 -1
  29. package/dist/readiness.d.ts +178 -1
  30. package/dist/readiness.d.ts.map +1 -1
  31. package/dist/readiness.js +12 -0
  32. package/dist/readiness.js.map +1 -1
  33. package/dist/setup-login.d.ts +5 -5
  34. package/dist/setup.d.ts +102 -95
  35. package/dist/setup.d.ts.map +1 -1
  36. package/dist/setup.js +29 -5
  37. package/dist/setup.js.map +1 -1
  38. package/generated/AgentCapabilityCatalog.schema.json +26 -0
  39. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  40. package/generated/ControlCredentialProfileCreateResponse.schema.json +4 -4
  41. package/generated/ControlCredentialProfileDeleteResponse.schema.json +27 -3
  42. package/generated/ControlCredentialProfileUpdateResponse.schema.json +4 -4
  43. package/generated/ControlCredentialProfilesQueryResponse.schema.json +130 -5
  44. package/generated/ControlCredentialProfilesResponse.schema.json +4 -4
  45. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +130 -5
  46. package/generated/ControlHarnessListResponse.schema.json +124 -0
  47. package/generated/ControlQuotaResponse.schema.json +2 -1
  48. package/generated/ControlSetupJob.schema.json +5 -1
  49. package/generated/ControlSetupJobCreateRequest.schema.json +1 -1
  50. package/generated/ControlSetupJobEvent.schema.json +5 -1
  51. package/generated/ControlSetupJobListResponse.schema.json +5 -1
  52. package/generated/ControlSetupJobSnapshot.schema.json +5 -1
  53. package/generated/CredentialProfile.schema.json +3 -3
  54. package/generated/CredentialProfileStatus.schema.json +1 -1
  55. package/generated/GlobalConfig.schema.json +4 -4
  56. package/generated/HarnessManifest.schema.json +98 -0
  57. package/generated/HarnessStatusDto.schema.json +124 -0
  58. package/package.json +2 -2
@@ -274,22 +274,51 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
274
274
  adapter_version: z.ZodOptional<z.ZodString>;
275
275
  provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
276
276
  capability_profile: z.ZodDefault<z.ZodObject<{
277
- auth: z.ZodDefault<z.ZodObject<{
277
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
278
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">>;
279
279
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
280
280
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
281
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
282
282
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
283
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>;
284
285
  }, "strip", z.ZodTypeAny, {
285
286
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
286
287
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
287
288
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
289
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
288
290
  }, {
289
291
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
290
292
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
291
293
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
294
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
292
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
+ }>>>;
293
322
  }, "strip", z.ZodTypeAny, {
294
323
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
295
324
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -297,7 +326,56 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
297
326
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
298
327
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
299
328
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
329
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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;
341
+ }, {
342
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
343
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
344
+ credential_transports?: {
345
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
346
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
347
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
348
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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;
300
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;
301
379
  }, {
302
380
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
303
381
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -305,7 +383,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
305
383
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
306
384
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
307
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";
308
394
  }[] | undefined;
395
+ managed_login?: {
396
+ stdin: "none" | "pipe" | "terminal";
397
+ } | null | undefined;
309
398
  }>>;
310
399
  access_control: z.ZodDefault<z.ZodObject<{
311
400
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -350,7 +439,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
350
439
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
351
440
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
352
441
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
442
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
353
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;
354
454
  };
355
455
  access_control: {
356
456
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -375,7 +475,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
375
475
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
376
476
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
377
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";
378
486
  }[] | undefined;
487
+ managed_login?: {
488
+ stdin: "none" | "pipe" | "terminal";
489
+ } | null | undefined;
379
490
  } | undefined;
380
491
  access_control?: {
381
492
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -507,7 +618,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
507
618
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
508
619
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
509
620
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
621
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
510
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;
511
633
  };
512
634
  access_control: {
513
635
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -571,7 +693,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
571
693
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
572
694
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
573
695
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
696
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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";
574
704
  }[] | undefined;
705
+ managed_login?: {
706
+ stdin: "none" | "pipe" | "terminal";
707
+ } | null | undefined;
575
708
  } | undefined;
576
709
  access_control?: {
577
710
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -713,6 +846,13 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
713
846
  remediation?: string | null | undefined;
714
847
  requiresFullAccess?: boolean | undefined;
715
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
+ }>>>;
716
856
  }, "strip", z.ZodTypeAny, {
717
857
  id: string;
718
858
  status: "degraded" | "ok" | "unavailable";
@@ -731,7 +871,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
731
871
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
732
872
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
733
873
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
874
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
734
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;
735
886
  };
736
887
  access_control: {
737
888
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -815,6 +966,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
815
966
  remediation: string | null;
816
967
  requiresFullAccess: boolean;
817
968
  } | null;
969
+ setupLogin?: {
970
+ mode: "external_terminal" | "in_app";
971
+ } | null | undefined;
818
972
  }, {
819
973
  id: string;
820
974
  status: "degraded" | "ok" | "unavailable";
@@ -833,7 +987,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
833
987
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
834
988
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
835
989
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
990
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
836
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";
998
+ }[] | undefined;
999
+ managed_login?: {
1000
+ stdin: "none" | "pipe" | "terminal";
1001
+ } | null | undefined;
837
1002
  } | undefined;
838
1003
  access_control?: {
839
1004
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -917,6 +1082,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
917
1082
  remediation?: string | null | undefined;
918
1083
  requiresFullAccess?: boolean | undefined;
919
1084
  } | null | undefined;
1085
+ setupLogin?: {
1086
+ mode: "external_terminal" | "in_app";
1087
+ } | null | undefined;
920
1088
  }>, "many">;
921
1089
  git: z.ZodObject<{
922
1090
  status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
@@ -1098,7 +1266,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1098
1266
  plan_label?: string | null | undefined;
1099
1267
  subject_id?: string | null | undefined;
1100
1268
  }>;
1101
- 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"]>;
1102
1270
  detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1103
1271
  observed_at: z.ZodString;
1104
1272
  }, "strict", z.ZodTypeAny, {
@@ -1108,7 +1276,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1108
1276
  plan_label: string | null;
1109
1277
  subject_id: string | null;
1110
1278
  };
1111
- 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";
1112
1280
  detail: string | null;
1113
1281
  observed_at: string;
1114
1282
  }, {
@@ -1118,7 +1286,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1118
1286
  plan_label?: string | null | undefined;
1119
1287
  subject_id?: string | null | undefined;
1120
1288
  };
1121
- 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";
1122
1290
  detail?: string | null | undefined;
1123
1291
  observed_at: string;
1124
1292
  }>, "many">>;
@@ -1162,7 +1330,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1162
1330
  plan_label: string | null;
1163
1331
  subject_id: string | null;
1164
1332
  };
1165
- 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";
1166
1334
  detail: string | null;
1167
1335
  observed_at: string;
1168
1336
  }[];
@@ -1206,7 +1374,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1206
1374
  plan_label?: string | null | undefined;
1207
1375
  subject_id?: string | null | undefined;
1208
1376
  };
1209
- 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";
1210
1378
  detail?: string | null | undefined;
1211
1379
  observed_at: string;
1212
1380
  }[] | undefined;
@@ -1288,7 +1456,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1288
1456
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1289
1457
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1290
1458
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
1459
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
1291
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;
1292
1471
  };
1293
1472
  access_control: {
1294
1473
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -1372,6 +1551,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1372
1551
  remediation: string | null;
1373
1552
  requiresFullAccess: boolean;
1374
1553
  } | null;
1554
+ setupLogin?: {
1555
+ mode: "external_terminal" | "in_app";
1556
+ } | null | undefined;
1375
1557
  }[];
1376
1558
  git: {
1377
1559
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -1418,7 +1600,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1418
1600
  plan_label: string | null;
1419
1601
  subject_id: string | null;
1420
1602
  };
1421
- 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";
1422
1604
  detail: string | null;
1423
1605
  observed_at: string;
1424
1606
  }[];
@@ -1500,7 +1682,18 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1500
1682
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
1501
1683
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
1502
1684
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
1685
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
1503
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;
1504
1697
  } | undefined;
1505
1698
  access_control?: {
1506
1699
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -1584,6 +1777,9 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1584
1777
  remediation?: string | null | undefined;
1585
1778
  requiresFullAccess?: boolean | undefined;
1586
1779
  } | null | undefined;
1780
+ setupLogin?: {
1781
+ mode: "external_terminal" | "in_app";
1782
+ } | null | undefined;
1587
1783
  }[];
1588
1784
  git: {
1589
1785
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -1630,7 +1826,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1630
1826
  plan_label?: string | null | undefined;
1631
1827
  subject_id?: string | null | undefined;
1632
1828
  };
1633
- 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";
1634
1830
  detail?: string | null | undefined;
1635
1831
  observed_at: string;
1636
1832
  }[] | undefined;
@@ -2290,22 +2486,51 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2290
2486
  adapter_version: z.ZodOptional<z.ZodString>;
2291
2487
  provider_family: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>>;
2292
2488
  capability_profile: z.ZodDefault<z.ZodObject<{
2293
- auth: z.ZodDefault<z.ZodObject<{
2489
+ auth: z.ZodDefault<z.ZodEffects<z.ZodObject<{
2294
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">>;
2295
2491
  preferred_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
2296
2492
  credential_transports: z.ZodDefault<z.ZodArray<z.ZodObject<{
2297
2493
  source: z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>;
2298
2494
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
2299
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>;
2300
2497
  }, "strip", z.ZodTypeAny, {
2301
2498
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2302
2499
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2303
2500
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2501
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2304
2502
  }, {
2305
2503
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2306
2504
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2307
2505
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2506
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2308
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";
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
+ }>>>;
2309
2534
  }, "strip", z.ZodTypeAny, {
2310
2535
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
2311
2536
  preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
@@ -2313,7 +2538,56 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2313
2538
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2314
2539
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2315
2540
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2541
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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;
2553
+ }, {
2554
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2555
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2556
+ credential_transports?: {
2557
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2558
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2559
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2560
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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;
2316
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;
2317
2591
  }, {
2318
2592
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
2319
2593
  preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
@@ -2321,7 +2595,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2321
2595
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2322
2596
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2323
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";
2324
2606
  }[] | undefined;
2607
+ managed_login?: {
2608
+ stdin: "none" | "pipe" | "terminal";
2609
+ } | null | undefined;
2325
2610
  }>>;
2326
2611
  access_control: z.ZodDefault<z.ZodObject<{
2327
2612
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
@@ -2366,7 +2651,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2366
2651
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2367
2652
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2368
2653
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2654
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2369
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;
2370
2666
  };
2371
2667
  access_control: {
2372
2668
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2391,7 +2687,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2391
2687
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2392
2688
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2393
2689
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2690
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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";
2394
2698
  }[] | undefined;
2699
+ managed_login?: {
2700
+ stdin: "none" | "pipe" | "terminal";
2701
+ } | null | undefined;
2395
2702
  } | undefined;
2396
2703
  access_control?: {
2397
2704
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2523,7 +2830,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2523
2830
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2524
2831
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2525
2832
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
2833
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2526
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;
2527
2845
  };
2528
2846
  access_control: {
2529
2847
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2587,7 +2905,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2587
2905
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2588
2906
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2589
2907
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
2908
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
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";
2590
2916
  }[] | undefined;
2917
+ managed_login?: {
2918
+ stdin: "none" | "pipe" | "terminal";
2919
+ } | null | undefined;
2591
2920
  } | undefined;
2592
2921
  access_control?: {
2593
2922
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2729,6 +3058,13 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2729
3058
  remediation?: string | null | undefined;
2730
3059
  requiresFullAccess?: boolean | undefined;
2731
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
+ }>>>;
2732
3068
  }, "strip", z.ZodTypeAny, {
2733
3069
  id: string;
2734
3070
  status: "degraded" | "ok" | "unavailable";
@@ -2747,7 +3083,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2747
3083
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2748
3084
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2749
3085
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
3086
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2750
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;
2751
3098
  };
2752
3099
  access_control: {
2753
3100
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -2831,6 +3178,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2831
3178
  remediation: string | null;
2832
3179
  requiresFullAccess: boolean;
2833
3180
  } | null;
3181
+ setupLogin?: {
3182
+ mode: "external_terminal" | "in_app";
3183
+ } | null | undefined;
2834
3184
  }, {
2835
3185
  id: string;
2836
3186
  status: "degraded" | "ok" | "unavailable";
@@ -2849,7 +3199,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2849
3199
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
2850
3200
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
2851
3201
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
3202
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
2852
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";
3210
+ }[] | undefined;
3211
+ managed_login?: {
3212
+ stdin: "none" | "pipe" | "terminal";
3213
+ } | null | undefined;
2853
3214
  } | undefined;
2854
3215
  access_control?: {
2855
3216
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -2933,6 +3294,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2933
3294
  remediation?: string | null | undefined;
2934
3295
  requiresFullAccess?: boolean | undefined;
2935
3296
  } | null | undefined;
3297
+ setupLogin?: {
3298
+ mode: "external_terminal" | "in_app";
3299
+ } | null | undefined;
2936
3300
  }>, "many">;
2937
3301
  git: z.ZodObject<{
2938
3302
  status: z.ZodEnum<["available", "missing", "developer_tools_stub", "failed"]>;
@@ -3114,7 +3478,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3114
3478
  plan_label?: string | null | undefined;
3115
3479
  subject_id?: string | null | undefined;
3116
3480
  }>;
3117
- 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"]>;
3118
3482
  detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3119
3483
  observed_at: z.ZodString;
3120
3484
  }, "strict", z.ZodTypeAny, {
@@ -3124,7 +3488,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3124
3488
  plan_label: string | null;
3125
3489
  subject_id: string | null;
3126
3490
  };
3127
- 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";
3128
3492
  detail: string | null;
3129
3493
  observed_at: string;
3130
3494
  }, {
@@ -3134,7 +3498,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3134
3498
  plan_label?: string | null | undefined;
3135
3499
  subject_id?: string | null | undefined;
3136
3500
  };
3137
- 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";
3138
3502
  detail?: string | null | undefined;
3139
3503
  observed_at: string;
3140
3504
  }>, "many">>;
@@ -3178,7 +3542,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3178
3542
  plan_label: string | null;
3179
3543
  subject_id: string | null;
3180
3544
  };
3181
- 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";
3182
3546
  detail: string | null;
3183
3547
  observed_at: string;
3184
3548
  }[];
@@ -3222,7 +3586,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3222
3586
  plan_label?: string | null | undefined;
3223
3587
  subject_id?: string | null | undefined;
3224
3588
  };
3225
- 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";
3226
3590
  detail?: string | null | undefined;
3227
3591
  observed_at: string;
3228
3592
  }[] | undefined;
@@ -3304,7 +3668,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3304
3668
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3305
3669
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
3306
3670
  relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
3671
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
3307
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;
3308
3683
  };
3309
3684
  access_control: {
3310
3685
  readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
@@ -3388,6 +3763,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3388
3763
  remediation: string | null;
3389
3764
  requiresFullAccess: boolean;
3390
3765
  } | null;
3766
+ setupLogin?: {
3767
+ mode: "external_terminal" | "in_app";
3768
+ } | null | undefined;
3391
3769
  }[];
3392
3770
  git: {
3393
3771
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -3434,7 +3812,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3434
3812
  plan_label: string | null;
3435
3813
  subject_id: string | null;
3436
3814
  };
3437
- 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";
3438
3816
  detail: string | null;
3439
3817
  observed_at: string;
3440
3818
  }[];
@@ -3516,7 +3894,18 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3516
3894
  source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
3517
3895
  kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
3518
3896
  relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
3897
+ platforms?: ("darwin" | "linux" | "win32")[] | undefined;
3519
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";
3905
+ }[] | undefined;
3906
+ managed_login?: {
3907
+ stdin: "none" | "pipe" | "terminal";
3908
+ } | null | undefined;
3520
3909
  } | undefined;
3521
3910
  access_control?: {
3522
3911
  readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
@@ -3600,6 +3989,9 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3600
3989
  remediation?: string | null | undefined;
3601
3990
  requiresFullAccess?: boolean | undefined;
3602
3991
  } | null | undefined;
3992
+ setupLogin?: {
3993
+ mode: "external_terminal" | "in_app";
3994
+ } | null | undefined;
3603
3995
  }[];
3604
3996
  git: {
3605
3997
  status: "available" | "developer_tools_stub" | "failed" | "missing";
@@ -3646,7 +4038,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3646
4038
  plan_label?: string | null | undefined;
3647
4039
  subject_id?: string | null | undefined;
3648
4040
  };
3649
- 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";
3650
4042
  detail?: string | null | undefined;
3651
4043
  observed_at: string;
3652
4044
  }[] | undefined;