@opengeni/config 3.1.1 → 3.2.0-canary.36927100590001

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.
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ /** Claude Code 2.1.285's installed OAuth flow; model calls and profile reads only. */
3
+ export declare const CLAUDE_OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
4
+ export declare const CLAUDE_OAUTH_AUTHORIZE_URL = "https://claude.com/cai/oauth/authorize";
5
+ export declare const CLAUDE_OAUTH_TOKEN_URL = "https://platform.claude.com/v1/oauth/token";
6
+ export declare const CLAUDE_OAUTH_REDIRECT_URL = "https://platform.claude.com/oauth/code/callback";
7
+ export declare const CLAUDE_OAUTH_SCOPES: readonly ["user:inference", "user:profile"];
8
+ export declare const ClaudeOAuthTokenResponse: z.ZodObject<{
9
+ access_token: z.ZodString;
10
+ refresh_token: z.ZodOptional<z.ZodString>;
11
+ expires_in: z.ZodNumber;
12
+ scope: z.ZodString;
13
+ }, z.core.$loose>;
14
+ export declare function claudeAuthorizationUrl(input: {
15
+ challenge: string;
16
+ state: string;
17
+ }): string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { managedUserEmailAllowed } from "./managed-user-admission.js";
2
- import { Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1, type VideoGenerationResolution, type FirstPartyMcpToolName as FirstPartyMcpToolNameType } from "@opengeni/contracts";
2
+ import { type AgentConfigDeploymentLimits, Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1, type VideoGenerationResolution, type FirstPartyMcpToolName as FirstPartyMcpToolNameType } from "@opengeni/contracts";
3
3
  import type { CodeSearchDeploymentPolicy } from "@opengeni/contracts/code-search";
4
4
  export { XAI_SUBSCRIPTION_MODEL_ID_PREFIX } from "@opengeni/xai-subscription";
5
5
  import { z } from "zod";
@@ -160,6 +160,7 @@ declare const SettingsSchema: z.ZodObject<{
160
160
  none: "none";
161
161
  static: "static";
162
162
  }>>;
163
+ usageAllowancesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
163
164
  staticEntitlementsJson: z.ZodDefault<z.ZodString>;
164
165
  staticUsageLimitsJson: z.ZodDefault<z.ZodString>;
165
166
  delegationSecret: z.ZodOptional<z.ZodString>;
@@ -675,6 +676,8 @@ declare const SettingsSchema: z.ZodObject<{
675
676
  openaiReasoningEncryptedContent: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
676
677
  openaiMaxRetries: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
677
678
  webSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
679
+ agentConfigAdmissionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
680
+ agentConfigDefaultForNewSessions: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
678
681
  jevApiKey: z.ZodOptional<z.ZodString>;
679
682
  jevBaseUrl: z.ZodDefault<z.ZodString>;
680
683
  jevModel: z.ZodDefault<z.ZodString>;
@@ -1120,6 +1123,11 @@ export type VoiceInputProviderConfig = {
1120
1123
  };
1121
1124
  /** The deployment's Jev key, or undefined when it is missing or a placeholder. */
1122
1125
  export declare function usableJevApiKey(settings: Pick<Settings, "jevApiKey">): string | undefined;
1126
+ /** Deployment half of agent configuration: rollout switches plus hard capability limits. */
1127
+ export declare function agentConfigDeploymentPolicy(settings: Pick<Settings, "agentConfigAdmissionEnabled" | "agentConfigDefaultForNewSessions" | "webSearchEnabled" | "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools">): AgentConfigDeploymentLimits & {
1128
+ admissionEnabled: boolean;
1129
+ defaultForNewSessions: boolean;
1130
+ };
1123
1131
  /**
1124
1132
  * Deployment half of the `code_search` decision. `available` is false when
1125
1133
  * the mode is off or no usable Jev key is configured; workspaces then cannot
@@ -1426,12 +1434,21 @@ export declare const ClaudeSubscriptionCredential: z.ZodObject<{
1426
1434
  accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1427
1435
  deviceId: z.ZodString;
1428
1436
  }, z.core.$strict>;
1437
+ oauth: z.ZodOptional<z.ZodObject<{
1438
+ refreshToken: z.ZodString;
1439
+ expiresAt: z.ZodString;
1440
+ scopes: z.ZodArray<z.ZodString>;
1441
+ }, z.core.$strict>>;
1429
1442
  }, z.core.$strict>;
1430
1443
  declare const AnthropicProviderOptions: z.ZodObject<{
1431
1444
  identity: z.ZodOptional<z.ZodObject<{
1432
1445
  accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1433
1446
  deviceId: z.ZodString;
1434
1447
  }, z.core.$strict>>;
1448
+ credentialBinding: z.ZodOptional<z.ZodObject<{
1449
+ connectionId: z.ZodString;
1450
+ credentialVersion: z.ZodNumber;
1451
+ }, z.core.$strict>>;
1435
1452
  auth: z.ZodDefault<z.ZodEnum<{
1436
1453
  "api-key": "api-key";
1437
1454
  oauth: "oauth";
@@ -1472,6 +1489,10 @@ declare const RegistryProviderSchema: z.ZodObject<{
1472
1489
  accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1473
1490
  deviceId: z.ZodString;
1474
1491
  }, z.core.$strict>>;
1492
+ credentialBinding: z.ZodOptional<z.ZodObject<{
1493
+ connectionId: z.ZodString;
1494
+ credentialVersion: z.ZodNumber;
1495
+ }, z.core.$strict>>;
1475
1496
  auth: z.ZodDefault<z.ZodEnum<{
1476
1497
  "api-key": "api-key";
1477
1498
  oauth: "oauth";
@@ -1928,6 +1949,10 @@ export declare const ModelCatalogDocument: z.ZodObject<{
1928
1949
  accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1929
1950
  deviceId: z.ZodString;
1930
1951
  }, z.core.$strict>>;
1952
+ credentialBinding: z.ZodOptional<z.ZodObject<{
1953
+ connectionId: z.ZodString;
1954
+ credentialVersion: z.ZodNumber;
1955
+ }, z.core.$strict>>;
1931
1956
  auth: z.ZodDefault<z.ZodEnum<{
1932
1957
  "api-key": "api-key";
1933
1958
  oauth: "oauth";
@@ -3206,5 +3231,9 @@ export type ClaudeConnectionCatalog = Partial<Record<ClaudeConnectionKind, {
3206
3231
  }[];
3207
3232
  }>>;
3208
3233
  export declare function withClaudeConnectionCatalog(settings: Settings, connections: ClaudeConnectionCatalog, scope?: "workspace" | "organization"): Settings;
3209
- export declare function withClaudeConnectionCredential(settings: Settings, kind: ClaudeConnectionKind, credential: string, scope?: "workspace" | "organization"): Settings;
3234
+ export declare function withClaudeConnectionCredential(settings: Settings, kind: ClaudeConnectionKind, credential: string, scope?: "workspace" | "organization", credentialBinding?: {
3235
+ connectionId: string;
3236
+ credentialVersion: number;
3237
+ }): Settings;
3210
3238
  export * from "./claude-subscription-usage.js";
3239
+ export * from "./claude-subscription-oauth.js";