@opengeni/contracts 2.9.2-canary.0 → 2.9.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/atlassian.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  AtlassianSyncCadence,
18
18
  SaveAtlassianSourcesRequest,
19
19
  atlassianScopesAllowRead
20
- } from "./chunk-AWNGBY5I.js";
20
+ } from "./chunk-UGGTRQNU.js";
21
21
  import "./chunk-WYBDERIY.js";
22
22
  import "./chunk-MRWYRAS5.js";
23
23
  import "./chunk-4IVHBXRI.js";
@@ -9813,6 +9813,37 @@ var UpdateWorkspaceModelPolicyRequest = z30.object({
9813
9813
  allowedProviders: z30.array(z30.string().min(1).max(128)).max(64).nullable().optional(),
9814
9814
  allowedModels: z30.array(z30.string().min(1).max(256)).max(256).nullable().optional()
9815
9815
  });
9816
+ var WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH = 238;
9817
+ var CreateWorkspaceGatewayCustomModelRequest = z30.object({
9818
+ operationId: z30.string().uuid(),
9819
+ upstreamModelId: z30.string().max(WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH).regex(/^[!-{}-~]+$/),
9820
+ label: z30.string().min(1).max(128).refine((value) => new TextEncoder().encode(value).byteLength <= 128, {
9821
+ message: "label must be at most 128 UTF-8 bytes"
9822
+ }).refine((value) => !/[\r\n|]/u.test(value), {
9823
+ message: "label must not contain newlines or the | field separator"
9824
+ }).optional()
9825
+ }).strict();
9826
+ var DeleteWorkspaceGatewayCustomModelRequest = z30.object({
9827
+ expectedVersion: z30.number().int().positive(),
9828
+ operationId: z30.string().uuid()
9829
+ }).strict();
9830
+ var WorkspaceGatewayCustomModel = z30.object({
9831
+ id: z30.string().uuid(),
9832
+ upstreamModelId: z30.string(),
9833
+ label: z30.string().nullable(),
9834
+ version: z30.number().int().positive(),
9835
+ createdAt: z30.string().datetime(),
9836
+ updatedAt: z30.string().datetime()
9837
+ });
9838
+ var WorkspaceGatewayCustomModelsResponse = z30.object({
9839
+ models: z30.array(WorkspaceGatewayCustomModel)
9840
+ });
9841
+ var CreateWorkspaceOpenRouterCustomModelRequest = CreateWorkspaceGatewayCustomModelRequest;
9842
+ var DeleteWorkspaceOpenRouterCustomModelRequest = DeleteWorkspaceGatewayCustomModelRequest;
9843
+ var WorkspaceOpenRouterCustomModel = WorkspaceGatewayCustomModel;
9844
+ var WorkspaceOpenRouterCustomModelsResponse = z30.object({
9845
+ models: z30.array(WorkspaceOpenRouterCustomModel)
9846
+ });
9816
9847
  var turnInitiatorIdentityFields = {
9817
9848
  subjectId: z30.string().min(1),
9818
9849
  /** Immutable display snapshot; never an authorization input. */
@@ -13984,6 +14015,10 @@ var ScheduledTaskRunAcceptedExecution = /* @__PURE__ */ z30.object({
13984
14015
  resolvedModel: z30.string().min(1),
13985
14016
  resolvedReasoningEffort: ReasoningEffort,
13986
14017
  resolvedLatencyMode: LatencyMode,
14018
+ /** Secret-safe TurnExecutionPolicyV1 accepted with this occurrence. Kept
14019
+ * structurally open here because the canonical policy schema is declared
14020
+ * later in this package; consumers must parse it with TurnExecutionPolicyV1. */
14021
+ turnExecutionPolicy: z30.unknown().optional(),
13987
14022
  resolvedSandboxBackend: SandboxBackend,
13988
14023
  resolvedSandboxOs: SandboxOs,
13989
14024
  resolvedTools: z30.array(ToolRef).max(SCHEDULED_TASK_TOOL_MAX_COUNT),
@@ -15218,6 +15253,10 @@ function compareDescending(left, right) {
15218
15253
  return left > right ? -1 : 1;
15219
15254
  }
15220
15255
  var ConnectionCredentialBundle = z30.record(z30.string(), z30.unknown());
15256
+ var VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_ID_METADATA_KEY = "vercelAiGatewayCredentialOperationId";
15257
+ var VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY = "vercelAiGatewayCredentialOperationDigest";
15258
+ var OPENROUTER_CREDENTIAL_OPERATION_ID_METADATA_KEY = "openRouterCredentialOperationId";
15259
+ var OPENROUTER_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY = "openRouterCredentialOperationDigest";
15221
15260
  var CreateConnectionRequest = z30.object({
15222
15261
  providerDomain: z30.string().min(1),
15223
15262
  kind: ConnectionKind,
@@ -15227,7 +15266,8 @@ var CreateConnectionRequest = z30.object({
15227
15266
  credential: ConnectionCredentialBundle,
15228
15267
  grantedScopes: z30.array(z30.string().min(1)).default([]),
15229
15268
  expiresAt: z30.string().datetime({ offset: true }).nullable().optional(),
15230
- metadata: z30.record(z30.string(), z30.unknown()).default({})
15269
+ metadata: z30.record(z30.string(), z30.unknown()).default({}),
15270
+ operationId: z30.string().uuid().optional()
15231
15271
  });
15232
15272
  var OpenGeniSlackBotInstallRequest = z30.object({
15233
15273
  connectionId: z30.string().uuid().optional()
@@ -15268,7 +15308,9 @@ var UpdateConnectionRequest = z30.object({
15268
15308
  credential: ConnectionCredentialBundle.optional(),
15269
15309
  grantedScopes: z30.array(z30.string().min(1)).optional(),
15270
15310
  expiresAt: z30.string().datetime({ offset: true }).nullable().optional(),
15271
- metadata: z30.record(z30.string(), z30.unknown()).optional()
15311
+ metadata: z30.record(z30.string(), z30.unknown()).optional(),
15312
+ expectedVersion: z30.number().int().positive().optional(),
15313
+ operationId: z30.string().uuid().optional()
15272
15314
  });
15273
15315
  var ConnectionResponse = z30.object({
15274
15316
  connection: ConnectionMetadata
@@ -18901,6 +18943,9 @@ var ModelBillingAttributionV1 = /* @__PURE__ */ defineModelContractSchema(
18901
18943
  metering: z30.enum(["opengeni_credits", "external"])
18902
18944
  }).strict()
18903
18945
  );
18946
+ var ModelCostClassV1 = /* @__PURE__ */ defineModelContractSchema(
18947
+ () => z30.enum(["free", "credits", "subscription", "workspace"])
18948
+ );
18904
18949
  var TURN_EXECUTION_POLICY_METADATA_KEY = "turnExecutionPolicyV1";
18905
18950
  var TurnExecutionModelSourceV1 = /* @__PURE__ */ defineModelContractSchema(
18906
18951
  () => z30.enum(["explicit", "session", "deployment", "continuation"])
@@ -19022,7 +19067,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
19022
19067
  // provider id
19023
19068
  providerLabel: z30.string(),
19024
19069
  api: z30.enum(["responses", "chat"]),
19025
- source: z30.enum(["opengeni", "codex", "supergrok", "workspace_gateway"]).optional(),
19070
+ source: z30.enum(["opengeni", "codex", "supergrok", "workspace_gateway", "openrouter"]).optional(),
19026
19071
  contextWindowTokens: z30.number().int().positive().optional(),
19027
19072
  // Additive normalized definition metadata. Optional so older server payloads
19028
19073
  // remain parseable; current servers project the complete V1 set.
@@ -19040,6 +19085,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
19040
19085
  }).optional(),
19041
19086
  credentialSource: ModelCredentialSourceV1.optional(),
19042
19087
  billing: ModelBillingAttributionV1.optional(),
19088
+ cost: ModelCostClassV1.optional(),
19043
19089
  capabilities: ModelCapabilitiesV1.optional(),
19044
19090
  pricing: ModelPricingScheduleV1.optional(),
19045
19091
  definitionVersion: z30.string().regex(/^sha256:[a-f0-9]{64}$/u).optional()
@@ -20267,6 +20313,15 @@ export {
20267
20313
  UpdateWorkspaceSettingsRequest,
20268
20314
  SetWorkspaceDefaultRigRequest,
20269
20315
  UpdateWorkspaceModelPolicyRequest,
20316
+ WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH,
20317
+ CreateWorkspaceGatewayCustomModelRequest,
20318
+ DeleteWorkspaceGatewayCustomModelRequest,
20319
+ WorkspaceGatewayCustomModel,
20320
+ WorkspaceGatewayCustomModelsResponse,
20321
+ CreateWorkspaceOpenRouterCustomModelRequest,
20322
+ DeleteWorkspaceOpenRouterCustomModelRequest,
20323
+ WorkspaceOpenRouterCustomModel,
20324
+ WorkspaceOpenRouterCustomModelsResponse,
20270
20325
  UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID,
20271
20326
  ServiceTurnInitiator,
20272
20327
  TurnInitiatorContext,
@@ -20788,6 +20843,10 @@ export {
20788
20843
  comparePersonalSlackCanonicalConnections,
20789
20844
  selectCanonicalPersonalSlackConnection,
20790
20845
  ConnectionCredentialBundle,
20846
+ VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_ID_METADATA_KEY,
20847
+ VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY,
20848
+ OPENROUTER_CREDENTIAL_OPERATION_ID_METADATA_KEY,
20849
+ OPENROUTER_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY,
20791
20850
  CreateConnectionRequest,
20792
20851
  OpenGeniSlackBotInstallRequest,
20793
20852
  OpenGeniSlackBotInstallStart,
@@ -21075,6 +21134,7 @@ export {
21075
21134
  ModelCapabilitiesV1,
21076
21135
  ModelCredentialSourceV1,
21077
21136
  ModelBillingAttributionV1,
21137
+ ModelCostClassV1,
21078
21138
  TURN_EXECUTION_POLICY_METADATA_KEY,
21079
21139
  TurnExecutionModelSourceV1,
21080
21140
  TurnExecutionReasoningSourceV1,
@@ -21096,4 +21156,4 @@ export {
21096
21156
  ClientConfig,
21097
21157
  evaluateWorkspaceModelPolicy
21098
21158
  };
21099
- //# sourceMappingURL=chunk-AWNGBY5I.js.map
21159
+ //# sourceMappingURL=chunk-UGGTRQNU.js.map