@opengeni/contracts 2.9.2 → 2.11.1-canary.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.
- package/dist/atlassian.js +11 -11
- package/dist/{chunk-AWNGBY5I.js → chunk-6HOHS44G.js} +230 -29
- package/dist/chunk-6HOHS44G.js.map +1 -0
- package/dist/{chunk-4IVHBXRI.js → chunk-7ABONTXE.js} +42 -2
- package/dist/chunk-7ABONTXE.js.map +1 -0
- package/dist/{chunk-7RMTKFJW.js → chunk-7Q6HPDY2.js} +8 -8
- package/dist/{chunk-N6GRVXAJ.js → chunk-NPBM4QSK.js} +2 -2
- package/dist/connection-authority.js +11 -11
- package/dist/editable-artifact-codec-registry.js +2 -2
- package/dist/editable-artifact-live.js +2 -2
- package/dist/editable-artifact-serialized-commit.js +3 -3
- package/dist/editable-artifacts.js +13 -13
- package/dist/github-repository-contracts.d.ts +36 -0
- package/dist/github-repository-contracts.js +59 -0
- package/dist/github-repository-contracts.js.map +1 -0
- package/dist/github-repository.d.ts +14 -0
- package/dist/github-repository.js +36 -0
- package/dist/github-repository.js.map +1 -0
- package/dist/google-drive.js +12 -12
- package/dist/index.d.ts +492 -17
- package/dist/index.js +191 -135
- package/dist/model-picker-order.d.ts +23 -0
- package/dist/model-picker-order.js +42 -0
- package/dist/model-picker-order.js.map +1 -0
- package/dist/organization-membership-lifecycle.d.ts +17 -0
- package/dist/personal-github.js +11 -11
- package/dist/session-titles.d.ts +35 -0
- package/dist/session-titles.js +9 -3
- package/dist/workspace-learning-policy.d.ts +1 -1
- package/package.json +13 -1
- package/src/github-repository-contracts.ts +85 -0
- package/src/github-repository.ts +59 -0
- package/src/index.ts +336 -49
- package/src/model-picker-order.ts +87 -0
- package/src/organization-membership-lifecycle.ts +20 -0
- package/src/session-titles.ts +100 -0
- package/src/workspace-learning-policy.ts +4 -3
- package/dist/chunk-4IVHBXRI.js.map +0 -1
- package/dist/chunk-AWNGBY5I.js.map +0 -1
- /package/dist/{chunk-7RMTKFJW.js.map → chunk-7Q6HPDY2.js.map} +0 -0
- /package/dist/{chunk-N6GRVXAJ.js.map → chunk-NPBM4QSK.js.map} +0 -0
package/dist/atlassian.js
CHANGED
|
@@ -17,26 +17,26 @@ import {
|
|
|
17
17
|
AtlassianSyncCadence,
|
|
18
18
|
SaveAtlassianSourcesRequest,
|
|
19
19
|
atlassianScopesAllowRead
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-WYBDERIY.js";
|
|
22
|
-
import "./chunk-MRWYRAS5.js";
|
|
23
|
-
import "./chunk-4IVHBXRI.js";
|
|
24
|
-
import "./chunk-CM6BMECR.js";
|
|
25
|
-
import "./chunk-JUFK3T4Q.js";
|
|
20
|
+
} from "./chunk-6HOHS44G.js";
|
|
26
21
|
import "./chunk-YBW5JSA3.js";
|
|
27
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NPBM4QSK.js";
|
|
23
|
+
import "./chunk-CM6BMECR.js";
|
|
24
|
+
import "./chunk-MRWYRAS5.js";
|
|
28
25
|
import "./chunk-3SIZGL3O.js";
|
|
26
|
+
import "./chunk-M5ZGRVIQ.js";
|
|
27
|
+
import "./chunk-BCS7WHCK.js";
|
|
28
|
+
import "./chunk-WYBDERIY.js";
|
|
29
|
+
import "./chunk-7ABONTXE.js";
|
|
29
30
|
import "./chunk-NVJMJWLL.js";
|
|
30
31
|
import "./chunk-YRKRZ6OF.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-7Q6HPDY2.js";
|
|
32
33
|
import "./chunk-Y3KNXVTD.js";
|
|
34
|
+
import "./chunk-TXTQIYCV.js";
|
|
33
35
|
import "./chunk-RIY7GYQS.js";
|
|
34
36
|
import "./chunk-D2HKF2EF.js";
|
|
35
37
|
import "./chunk-MYBZRDTY.js";
|
|
36
|
-
import "./chunk-TXTQIYCV.js";
|
|
37
38
|
import "./chunk-PX3VCKAU.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-M5ZGRVIQ.js";
|
|
39
|
+
import "./chunk-JUFK3T4Q.js";
|
|
40
40
|
export {
|
|
41
41
|
ATLASSIAN_CREDENTIAL_LABEL,
|
|
42
42
|
ATLASSIAN_CREDENTIAL_ROLE,
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConnectorDocumentDestination
|
|
3
|
-
} from "./chunk-WYBDERIY.js";
|
|
4
|
-
import {
|
|
5
|
-
normalizeAutomaticSessionTitle
|
|
6
|
-
} from "./chunk-4IVHBXRI.js";
|
|
7
1
|
import {
|
|
8
2
|
XaiProviderAccountAuthoritySnapshotV1
|
|
9
3
|
} from "./chunk-CM6BMECR.js";
|
|
@@ -14,6 +8,12 @@ import {
|
|
|
14
8
|
retainedOutputUnavailable,
|
|
15
9
|
validateRetainedOutputEvidence
|
|
16
10
|
} from "./chunk-M5ZGRVIQ.js";
|
|
11
|
+
import {
|
|
12
|
+
ConnectorDocumentDestination
|
|
13
|
+
} from "./chunk-WYBDERIY.js";
|
|
14
|
+
import {
|
|
15
|
+
normalizeAutomaticSessionTitle
|
|
16
|
+
} from "./chunk-7ABONTXE.js";
|
|
17
17
|
|
|
18
18
|
// src/atlassian.ts
|
|
19
19
|
import { z as z31 } from "zod";
|
|
@@ -6772,7 +6772,7 @@ var WORKSPACE_LEARNING_POLICY_MAX_SOURCE_OVERRIDES = 256;
|
|
|
6772
6772
|
var WORKSPACE_LEARNING_POLICY_SOURCE_KIND_MAX_CHARS = 96;
|
|
6773
6773
|
var WORKSPACE_LEARNING_POLICY_SOURCE_ID_MAX_CHARS = 1024;
|
|
6774
6774
|
var WORKSPACE_LEARNING_POLICY_REASON_MAX_CHARS = 4096;
|
|
6775
|
-
var
|
|
6775
|
+
var WORKSPACE_LEARNING_POLICY_DEFAULT_SUGGEST_REVISION_ID = "workspace-learning-policy:default-suggest:v1";
|
|
6776
6776
|
var WorkspaceLearningMode = z21.enum(["off", "suggest", "automatic"]);
|
|
6777
6777
|
var WorkspaceLearningOverrideMode = z21.enum(["inherit", "off", "suggest", "automatic"]);
|
|
6778
6778
|
function normalizeWorkspaceLearningSourceKind(value) {
|
|
@@ -6913,7 +6913,7 @@ function resolveWorkspaceLearningPolicyEffectiveMode(snapshot, source) {
|
|
|
6913
6913
|
policyRevision: parsedSnapshot.revision,
|
|
6914
6914
|
activationVersion: parsedSnapshot.activationVersion,
|
|
6915
6915
|
snapshotId: parsedSnapshot.id,
|
|
6916
|
-
revisionId: parsedSnapshot.revision?.id ??
|
|
6916
|
+
revisionId: parsedSnapshot.revision?.id ?? WORKSPACE_LEARNING_POLICY_DEFAULT_SUGGEST_REVISION_ID,
|
|
6917
6917
|
snapshotHash: parsedSnapshot.snapshotHash
|
|
6918
6918
|
});
|
|
6919
6919
|
}
|
|
@@ -7934,6 +7934,16 @@ var CreateOrganizationResponse = z28.object({
|
|
|
7934
7934
|
organization: OrganizationSummary,
|
|
7935
7935
|
workspaceId: z28.string().uuid()
|
|
7936
7936
|
});
|
|
7937
|
+
var CreateAdditionalOrganizationRequest = z28.object({
|
|
7938
|
+
name: z28.string().trim().min(1).max(120),
|
|
7939
|
+
workspaceName: z28.string().trim().min(1).max(120),
|
|
7940
|
+
operationId: z28.string().uuid()
|
|
7941
|
+
}).strict();
|
|
7942
|
+
var CreateAdditionalOrganizationResponse = z28.object({
|
|
7943
|
+
organization: OrganizationSummary,
|
|
7944
|
+
workspaceId: z28.string().uuid(),
|
|
7945
|
+
personalWorkspaceId: z28.string().uuid()
|
|
7946
|
+
});
|
|
7937
7947
|
var UpdateOrganizationNameRequest = z28.object({
|
|
7938
7948
|
name: z28.string().trim().min(1).max(120),
|
|
7939
7949
|
expectedUpdatedAt: z28.string().datetime({ offset: true }),
|
|
@@ -9731,8 +9741,8 @@ var WorkspaceSettingsSchema = z30.object({
|
|
|
9731
9741
|
slackOrchestrationNotices: WorkspaceSlackOrchestrationNoticeSettings.optional()
|
|
9732
9742
|
}).passthrough();
|
|
9733
9743
|
function resolveWorkspaceMemoryEnabled(settings) {
|
|
9734
|
-
const parsed = WorkspaceSettingsSchema.safeParse(settings
|
|
9735
|
-
return parsed.success ? parsed.data.memoryEnabled
|
|
9744
|
+
const parsed = WorkspaceSettingsSchema.safeParse(settings === void 0 ? {} : settings);
|
|
9745
|
+
return parsed.success ? parsed.data.memoryEnabled !== false : false;
|
|
9736
9746
|
}
|
|
9737
9747
|
function resolveWorkspaceSessionDefaults(settings) {
|
|
9738
9748
|
const parsed = WorkspaceSettingsSchema.safeParse(settings ?? {});
|
|
@@ -9813,6 +9823,57 @@ var UpdateWorkspaceModelPolicyRequest = z30.object({
|
|
|
9813
9823
|
allowedProviders: z30.array(z30.string().min(1).max(128)).max(64).nullable().optional(),
|
|
9814
9824
|
allowedModels: z30.array(z30.string().min(1).max(256)).max(256).nullable().optional()
|
|
9815
9825
|
});
|
|
9826
|
+
var WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH = 238;
|
|
9827
|
+
var CreateWorkspaceGatewayCustomModelRequest = z30.object({
|
|
9828
|
+
operationId: z30.string().uuid(),
|
|
9829
|
+
upstreamModelId: z30.string().max(WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH).regex(/^[!-{}-~]+$/),
|
|
9830
|
+
label: z30.string().min(1).max(128).refine((value) => new TextEncoder().encode(value).byteLength <= 128, {
|
|
9831
|
+
message: "label must be at most 128 UTF-8 bytes"
|
|
9832
|
+
}).refine((value) => !/[\r\n|]/u.test(value), {
|
|
9833
|
+
message: "label must not contain newlines or the | field separator"
|
|
9834
|
+
}).optional()
|
|
9835
|
+
}).strict();
|
|
9836
|
+
var DeleteWorkspaceGatewayCustomModelRequest = z30.object({
|
|
9837
|
+
expectedVersion: z30.number().int().positive(),
|
|
9838
|
+
operationId: z30.string().uuid()
|
|
9839
|
+
}).strict();
|
|
9840
|
+
var WorkspaceGatewayCustomModel = z30.object({
|
|
9841
|
+
id: z30.string().uuid(),
|
|
9842
|
+
upstreamModelId: z30.string(),
|
|
9843
|
+
label: z30.string().nullable(),
|
|
9844
|
+
version: z30.number().int().positive(),
|
|
9845
|
+
createdAt: z30.string().datetime(),
|
|
9846
|
+
updatedAt: z30.string().datetime()
|
|
9847
|
+
});
|
|
9848
|
+
var WorkspaceGatewayCustomModelsResponse = z30.object({
|
|
9849
|
+
models: z30.array(WorkspaceGatewayCustomModel)
|
|
9850
|
+
});
|
|
9851
|
+
var CreateWorkspaceOpenRouterCustomModelRequest = CreateWorkspaceGatewayCustomModelRequest;
|
|
9852
|
+
var DeleteWorkspaceOpenRouterCustomModelRequest = DeleteWorkspaceGatewayCustomModelRequest;
|
|
9853
|
+
var WorkspaceOpenRouterCustomModel = WorkspaceGatewayCustomModel;
|
|
9854
|
+
var WorkspaceOpenRouterCustomModelsResponse = z30.object({
|
|
9855
|
+
models: z30.array(WorkspaceOpenRouterCustomModel)
|
|
9856
|
+
});
|
|
9857
|
+
var CreateOrganizationProviderCustomModelRequest = CreateWorkspaceGatewayCustomModelRequest;
|
|
9858
|
+
var DeleteOrganizationProviderCustomModelRequest = DeleteWorkspaceGatewayCustomModelRequest;
|
|
9859
|
+
var OrganizationProviderCustomModel = WorkspaceGatewayCustomModel;
|
|
9860
|
+
var OrganizationProviderCustomModelsResponse = z30.object({
|
|
9861
|
+
models: z30.array(OrganizationProviderCustomModel)
|
|
9862
|
+
});
|
|
9863
|
+
var OrganizationModelProviderKind = z30.enum(["vercel_gateway", "openrouter"]);
|
|
9864
|
+
var OrganizationModelProviderConnectionResponse = z30.object({
|
|
9865
|
+
providerKind: OrganizationModelProviderKind,
|
|
9866
|
+
status: z30.enum(["active", "revoked"]),
|
|
9867
|
+
version: z30.number().int().positive(),
|
|
9868
|
+
createdAt: z30.string().datetime(),
|
|
9869
|
+
updatedAt: z30.string().datetime()
|
|
9870
|
+
});
|
|
9871
|
+
var UpsertOrganizationModelProviderConnectionRequest = z30.object({
|
|
9872
|
+
operationId: z30.string().uuid(),
|
|
9873
|
+
expectedVersion: z30.number().int().nonnegative().optional(),
|
|
9874
|
+
apiKey: z30.string().trim().min(1).max(8192)
|
|
9875
|
+
}).strict();
|
|
9876
|
+
var RevokeOrganizationModelProviderConnectionRequest = z30.object({ operationId: z30.string().uuid(), expectedVersion: z30.number().int().positive() }).strict();
|
|
9816
9877
|
var turnInitiatorIdentityFields = {
|
|
9817
9878
|
subjectId: z30.string().min(1),
|
|
9818
9879
|
/** Immutable display snapshot; never an authorization input. */
|
|
@@ -10466,7 +10527,10 @@ var InsightsModelUsageRow = z30.object({
|
|
|
10466
10527
|
creditUsd: z30.number().nonnegative(),
|
|
10467
10528
|
/** Hypothetical provider-rate USD; never an OpenGeni charge. */
|
|
10468
10529
|
estimatedProviderUsd: z30.number().nonnegative(),
|
|
10469
|
-
estimatedProviderCostKnownCalls: z30.number().int().nonnegative()
|
|
10530
|
+
estimatedProviderCostKnownCalls: z30.number().int().nonnegative(),
|
|
10531
|
+
/** OpenGeni credit price at the captured rate, whether or not credits paid for the call. */
|
|
10532
|
+
equivalentCreditUsd: z30.number().nonnegative(),
|
|
10533
|
+
equivalentCreditCostKnownCalls: z30.number().int().nonnegative()
|
|
10470
10534
|
});
|
|
10471
10535
|
var InsightsSeriesPoint = z30.object({
|
|
10472
10536
|
label: z30.string().min(1),
|
|
@@ -10475,6 +10539,9 @@ var InsightsSeriesPoint = z30.object({
|
|
|
10475
10539
|
/** UTC hour/day-bucketed hypothetical provider-rate USD for calls with captured pricing. */
|
|
10476
10540
|
estimatedProviderUsd: z30.number().nonnegative(),
|
|
10477
10541
|
estimatedProviderCostKnownCalls: z30.number().int().nonnegative(),
|
|
10542
|
+
/** UTC hour/day-bucketed equivalent OpenGeni credit price for calls with captured pricing. */
|
|
10543
|
+
equivalentCreditUsd: z30.number().nonnegative(),
|
|
10544
|
+
equivalentCreditCostKnownCalls: z30.number().int().nonnegative(),
|
|
10478
10545
|
warmSeconds: z30.number().nonnegative(),
|
|
10479
10546
|
inputTokens: z30.number().nonnegative(),
|
|
10480
10547
|
outputTokens: z30.number().nonnegative(),
|
|
@@ -10503,6 +10570,8 @@ var InsightsSpendDriver = z30.object({
|
|
|
10503
10570
|
creditUsd: z30.number().nonnegative(),
|
|
10504
10571
|
estimatedProviderUsd: z30.number().nonnegative(),
|
|
10505
10572
|
estimatedProviderCostKnownCalls: z30.number().int().nonnegative(),
|
|
10573
|
+
equivalentCreditUsd: z30.number().nonnegative(),
|
|
10574
|
+
equivalentCreditCostKnownCalls: z30.number().int().nonnegative(),
|
|
10506
10575
|
tokens: z30.number().nonnegative(),
|
|
10507
10576
|
cacheHitPct: z30.number().int().min(0).max(100),
|
|
10508
10577
|
pctOfCreditUsd: z30.number().int().min(0).max(100),
|
|
@@ -10547,6 +10616,8 @@ var InsightsScheduleRow = z30.object({
|
|
|
10547
10616
|
creditUsd: z30.number().nonnegative().nullable(),
|
|
10548
10617
|
estimatedProviderUsd: z30.number().nonnegative().nullable(),
|
|
10549
10618
|
estimatedProviderCostKnownCalls: z30.number().int().nonnegative().nullable(),
|
|
10619
|
+
equivalentCreditUsd: z30.number().nonnegative().nullable(),
|
|
10620
|
+
equivalentCreditCostKnownCalls: z30.number().int().nonnegative().nullable(),
|
|
10550
10621
|
tokens: z30.number().nonnegative().nullable(),
|
|
10551
10622
|
cacheHitPct: z30.number().int().min(0).max(100).nullable(),
|
|
10552
10623
|
billing: InsightsBillingPath.nullable()
|
|
@@ -10572,6 +10643,8 @@ var InsightsModelCallRow = z30.object({
|
|
|
10572
10643
|
creditUsd: z30.number().nonnegative(),
|
|
10573
10644
|
/** Hypothetical provider-rate USD; null when historical pricing is unavailable. */
|
|
10574
10645
|
estimatedProviderUsd: z30.number().nonnegative().nullable(),
|
|
10646
|
+
/** Equivalent OpenGeni credit price; null when historical pricing is unavailable. */
|
|
10647
|
+
equivalentCreditUsd: z30.number().nonnegative().nullable(),
|
|
10575
10648
|
pricingSource: InsightsPricingSource.nullable()
|
|
10576
10649
|
});
|
|
10577
10650
|
var WorkspaceInsightsSnapshot = z30.object({
|
|
@@ -10618,6 +10691,11 @@ var WorkspaceInsightsSnapshot = z30.object({
|
|
|
10618
10691
|
priorEstimatedProviderUsd: z30.number().nonnegative(),
|
|
10619
10692
|
estimatedProviderCostKnownCalls: z30.number().int().nonnegative(),
|
|
10620
10693
|
priorEstimatedProviderCostKnownCalls: z30.number().int().nonnegative(),
|
|
10694
|
+
/** Equivalent OpenGeni credit price across calls whose historical price was captured. */
|
|
10695
|
+
equivalentCreditUsd: z30.number().nonnegative(),
|
|
10696
|
+
priorEquivalentCreditUsd: z30.number().nonnegative(),
|
|
10697
|
+
equivalentCreditCostKnownCalls: z30.number().int().nonnegative(),
|
|
10698
|
+
priorEquivalentCreditCostKnownCalls: z30.number().int().nonnegative(),
|
|
10621
10699
|
modelCalls: z30.number().int().nonnegative(),
|
|
10622
10700
|
priorInputTokens: z30.number().nonnegative(),
|
|
10623
10701
|
priorTotalTokens: z30.number().nonnegative(),
|
|
@@ -10721,6 +10799,8 @@ var McpConnectionResourceScopes = z30.array(McpConnectionResourceScope).min(1).m
|
|
|
10721
10799
|
var McpServerConnectionRef = z30.object({
|
|
10722
10800
|
/** Opaque host or standalone connection identifier. */
|
|
10723
10801
|
connectionId: z30.string().min(1).optional(),
|
|
10802
|
+
/** Host-owned credential authority; omission keeps OpenGeni's native connection authority. */
|
|
10803
|
+
authoritySource: z30.literal("host").optional(),
|
|
10724
10804
|
/** Stable provider family (for example github, gitlab, or azure_devops). */
|
|
10725
10805
|
provider: z30.string().min(1).max(128).optional(),
|
|
10726
10806
|
/** Provider host or tenant domain. */
|
|
@@ -10733,6 +10813,13 @@ var McpServerConnectionRef = z30.object({
|
|
|
10733
10813
|
selectedResources: McpConnectionResourceScopes.optional(),
|
|
10734
10814
|
subjectScope: z30.enum(["workspace", "subject"]).optional()
|
|
10735
10815
|
}).strict().superRefine((reference, context) => {
|
|
10816
|
+
if (reference.authoritySource === "host" && !reference.connectionId) {
|
|
10817
|
+
context.addIssue({
|
|
10818
|
+
code: "custom",
|
|
10819
|
+
message: "host authority requires connectionId",
|
|
10820
|
+
path: ["connectionId"]
|
|
10821
|
+
});
|
|
10822
|
+
}
|
|
10736
10823
|
if (!reference.selectedResources) return;
|
|
10737
10824
|
if (!reference.connectionId) {
|
|
10738
10825
|
context.addIssue({
|
|
@@ -13984,6 +14071,10 @@ var ScheduledTaskRunAcceptedExecution = /* @__PURE__ */ z30.object({
|
|
|
13984
14071
|
resolvedModel: z30.string().min(1),
|
|
13985
14072
|
resolvedReasoningEffort: ReasoningEffort,
|
|
13986
14073
|
resolvedLatencyMode: LatencyMode,
|
|
14074
|
+
/** Secret-safe TurnExecutionPolicyV1 accepted with this occurrence. Kept
|
|
14075
|
+
* structurally open here because the canonical policy schema is declared
|
|
14076
|
+
* later in this package; consumers must parse it with TurnExecutionPolicyV1. */
|
|
14077
|
+
turnExecutionPolicy: z30.unknown().optional(),
|
|
13987
14078
|
resolvedSandboxBackend: SandboxBackend,
|
|
13988
14079
|
resolvedSandboxOs: SandboxOs,
|
|
13989
14080
|
resolvedTools: z30.array(ToolRef).max(SCHEDULED_TASK_TOOL_MAX_COUNT),
|
|
@@ -14540,6 +14631,12 @@ var CapabilityPackSkill = z30.object({
|
|
|
14540
14631
|
message: "skill name must be a single path segment of letters, digits, '.', '_' or '-'"
|
|
14541
14632
|
}),
|
|
14542
14633
|
description: z30.string().min(1).max(2048).optional(),
|
|
14634
|
+
// Workspace-managed Skills are available to every session in the
|
|
14635
|
+
// workspace. Session-selected Skills remain installed and inspectable, but
|
|
14636
|
+
// enter model context only when their immutable definition is attached to
|
|
14637
|
+
// a session explicitly. This is the hard contamination boundary for Packs
|
|
14638
|
+
// that guide implementation agents rather than customer-facing agents.
|
|
14639
|
+
activationMode: z30.enum(["workspace_managed", "session_selected"]).optional(),
|
|
14543
14640
|
files: z30.array(CapabilityPackSkillFile).min(1).max(64)
|
|
14544
14641
|
}).superRefine((skill, ctx) => {
|
|
14545
14642
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -14561,7 +14658,9 @@ var CapabilityPackSkill = z30.object({
|
|
|
14561
14658
|
});
|
|
14562
14659
|
}
|
|
14563
14660
|
});
|
|
14564
|
-
var SessionSkill = CapabilityPackSkill
|
|
14661
|
+
var SessionSkill = CapabilityPackSkill.transform(
|
|
14662
|
+
({ activationMode: _activationMode, ...skill }) => skill
|
|
14663
|
+
);
|
|
14565
14664
|
var SessionSkills = z30.array(SessionSkill).max(32).transform((skills, ctx) => {
|
|
14566
14665
|
const selected = /* @__PURE__ */ new Map();
|
|
14567
14666
|
for (const skill of skills) {
|
|
@@ -15218,6 +15317,10 @@ function compareDescending(left, right) {
|
|
|
15218
15317
|
return left > right ? -1 : 1;
|
|
15219
15318
|
}
|
|
15220
15319
|
var ConnectionCredentialBundle = z30.record(z30.string(), z30.unknown());
|
|
15320
|
+
var VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_ID_METADATA_KEY = "vercelAiGatewayCredentialOperationId";
|
|
15321
|
+
var VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY = "vercelAiGatewayCredentialOperationDigest";
|
|
15322
|
+
var OPENROUTER_CREDENTIAL_OPERATION_ID_METADATA_KEY = "openRouterCredentialOperationId";
|
|
15323
|
+
var OPENROUTER_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY = "openRouterCredentialOperationDigest";
|
|
15221
15324
|
var CreateConnectionRequest = z30.object({
|
|
15222
15325
|
providerDomain: z30.string().min(1),
|
|
15223
15326
|
kind: ConnectionKind,
|
|
@@ -15227,7 +15330,8 @@ var CreateConnectionRequest = z30.object({
|
|
|
15227
15330
|
credential: ConnectionCredentialBundle,
|
|
15228
15331
|
grantedScopes: z30.array(z30.string().min(1)).default([]),
|
|
15229
15332
|
expiresAt: z30.string().datetime({ offset: true }).nullable().optional(),
|
|
15230
|
-
metadata: z30.record(z30.string(), z30.unknown()).default({})
|
|
15333
|
+
metadata: z30.record(z30.string(), z30.unknown()).default({}),
|
|
15334
|
+
operationId: z30.string().uuid().optional()
|
|
15231
15335
|
});
|
|
15232
15336
|
var OpenGeniSlackBotInstallRequest = z30.object({
|
|
15233
15337
|
connectionId: z30.string().uuid().optional()
|
|
@@ -15268,7 +15372,9 @@ var UpdateConnectionRequest = z30.object({
|
|
|
15268
15372
|
credential: ConnectionCredentialBundle.optional(),
|
|
15269
15373
|
grantedScopes: z30.array(z30.string().min(1)).optional(),
|
|
15270
15374
|
expiresAt: z30.string().datetime({ offset: true }).nullable().optional(),
|
|
15271
|
-
metadata: z30.record(z30.string(), z30.unknown()).optional()
|
|
15375
|
+
metadata: z30.record(z30.string(), z30.unknown()).optional(),
|
|
15376
|
+
expectedVersion: z30.number().int().positive().optional(),
|
|
15377
|
+
operationId: z30.string().uuid().optional()
|
|
15272
15378
|
});
|
|
15273
15379
|
var ConnectionResponse = z30.object({
|
|
15274
15380
|
connection: ConnectionMetadata
|
|
@@ -15417,10 +15523,13 @@ var CapabilityCatalogItem = z30.object({
|
|
|
15417
15523
|
/** @deprecated Compatibility explanation paired with enabled. */
|
|
15418
15524
|
enabledReason: z30.string().nullable().default(null),
|
|
15419
15525
|
// The non-secret connection binding stored with an enabled installation.
|
|
15420
|
-
//
|
|
15421
|
-
// each caller resolves their own
|
|
15526
|
+
// Native workspace refs retain an exact row id. Native subject refs omit it
|
|
15527
|
+
// so each caller resolves their own row. The first-party catalog projects a
|
|
15528
|
+
// host-owned installation as null for old-browser safety; the schema remains
|
|
15529
|
+
// tolerant of additive host projections from embedding-specific catalogs.
|
|
15422
15530
|
connectionRef: z30.object({
|
|
15423
15531
|
connectionId: z30.string().min(1).optional(),
|
|
15532
|
+
authoritySource: z30.literal("host").optional(),
|
|
15424
15533
|
providerDomain: z30.string().min(1),
|
|
15425
15534
|
kind: z30.string().min(1),
|
|
15426
15535
|
subjectScope: z30.enum(["workspace", "subject"]).optional()
|
|
@@ -16605,6 +16714,15 @@ function resolveSessionEventTypeFilters(input) {
|
|
|
16605
16714
|
for (const type of excluded) included.delete(type);
|
|
16606
16715
|
return { includeTypes: [...included], excludeTypes: [...excluded] };
|
|
16607
16716
|
}
|
|
16717
|
+
var ToolAuthNeededReason = z30.enum([
|
|
16718
|
+
"missing_connection",
|
|
16719
|
+
"expired",
|
|
16720
|
+
"insufficient_scope",
|
|
16721
|
+
"refresh_failed",
|
|
16722
|
+
"personal_authority_unavailable",
|
|
16723
|
+
"unsupported_auth",
|
|
16724
|
+
"resource_scope_unavailable"
|
|
16725
|
+
]);
|
|
16608
16726
|
var ToolAuthNeededPayload = z30.object({
|
|
16609
16727
|
serverId: z30.string().min(1),
|
|
16610
16728
|
toolName: z30.string().min(1).nullable().optional(),
|
|
@@ -16613,15 +16731,16 @@ var ToolAuthNeededPayload = z30.object({
|
|
|
16613
16731
|
// Embedded hosts may use an opaque connection identity; never assume an
|
|
16614
16732
|
// OpenGeni UUID on the public event wire.
|
|
16615
16733
|
connectionId: z30.string().min(1).nullable().optional(),
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16734
|
+
/** The failed binding is owned by the embedding host, not OpenGeni's connection broker. */
|
|
16735
|
+
authoritySource: z30.literal("host").optional(),
|
|
16736
|
+
/**
|
|
16737
|
+
* Legacy-compatible reason. Host-owned event writers pin this to
|
|
16738
|
+
* unsupported_auth so a pre-host-authority browser cannot launch native
|
|
16739
|
+
* OAuth for the opaque id.
|
|
16740
|
+
*/
|
|
16741
|
+
reason: ToolAuthNeededReason,
|
|
16742
|
+
/** Exact host recovery reason consumed by host-aware clients. */
|
|
16743
|
+
hostReason: ToolAuthNeededReason.optional(),
|
|
16625
16744
|
scopes: z30.array(z30.string().min(1)).optional(),
|
|
16626
16745
|
resource: z30.string().min(1).optional(),
|
|
16627
16746
|
selectedResources: McpConnectionResourceScopes.optional(),
|
|
@@ -16640,6 +16759,29 @@ var ToolAuthNeededPayload = z30.object({
|
|
|
16640
16759
|
rationale: z30.string().min(1).max(2e3),
|
|
16641
16760
|
requiredVariables: z30.array(VariableSetVariableName).max(64).default([])
|
|
16642
16761
|
}).optional()
|
|
16762
|
+
}).superRefine((payload, context) => {
|
|
16763
|
+
if (payload.authoritySource === "host") {
|
|
16764
|
+
if (payload.reason !== "unsupported_auth") {
|
|
16765
|
+
context.addIssue({
|
|
16766
|
+
code: "custom",
|
|
16767
|
+
message: "host auth-needed events require the legacy-safe unsupported_auth reason",
|
|
16768
|
+
path: ["reason"]
|
|
16769
|
+
});
|
|
16770
|
+
}
|
|
16771
|
+
if (!payload.hostReason) {
|
|
16772
|
+
context.addIssue({
|
|
16773
|
+
code: "custom",
|
|
16774
|
+
message: "host auth-needed events require hostReason",
|
|
16775
|
+
path: ["hostReason"]
|
|
16776
|
+
});
|
|
16777
|
+
}
|
|
16778
|
+
} else if (payload.hostReason) {
|
|
16779
|
+
context.addIssue({
|
|
16780
|
+
code: "custom",
|
|
16781
|
+
message: "hostReason is reserved for host-owned auth-needed events",
|
|
16782
|
+
path: ["hostReason"]
|
|
16783
|
+
});
|
|
16784
|
+
}
|
|
16643
16785
|
});
|
|
16644
16786
|
var CredentialAuthNeededPayload = z30.object({
|
|
16645
16787
|
credentialClass: z30.literal("run"),
|
|
@@ -17226,6 +17368,8 @@ var SessionEvent = z30.object({
|
|
|
17226
17368
|
workspaceId: z30.string().uuid(),
|
|
17227
17369
|
sessionId: z30.string().uuid(),
|
|
17228
17370
|
sequence: z30.number().int().positive(),
|
|
17371
|
+
/** Server-owned durable high-water mark for a synthetic compact event. */
|
|
17372
|
+
coveredThrough: z30.number().int().positive().optional(),
|
|
17229
17373
|
type: SessionEventType,
|
|
17230
17374
|
payload: z30.unknown().default({}),
|
|
17231
17375
|
occurredAt: z30.string(),
|
|
@@ -17574,6 +17718,8 @@ function boundSessionEvent(event, options = {}) {
|
|
|
17574
17718
|
const turnGeneration = canonicalSessionEventGeneration(source.turnGeneration);
|
|
17575
17719
|
const turnAttemptId = canonicalOptionalSessionEventUuid(source.turnAttemptId);
|
|
17576
17720
|
const duplicateOfEventId = canonicalOptionalSessionEventUuid(source.duplicateOfEventId);
|
|
17721
|
+
const rawCoveredThrough = source.coveredThrough.readable ? source.coveredThrough.value : void 0;
|
|
17722
|
+
const coveredThrough = typeof rawCoveredThrough === "number" && Number.isSafeInteger(rawCoveredThrough) && rawCoveredThrough >= sequence ? rawCoveredThrough : void 0;
|
|
17577
17723
|
const envelopeFields = [
|
|
17578
17724
|
sessionEventCustomSerializerProjection(event),
|
|
17579
17725
|
sessionEventAdditionalTopLevelFieldProjection(event),
|
|
@@ -17601,6 +17747,12 @@ function boundSessionEvent(event, options = {}) {
|
|
|
17601
17747
|
duplicateReason,
|
|
17602
17748
|
source.duplicateReason.readable
|
|
17603
17749
|
) : null,
|
|
17750
|
+
!source.coveredThrough.readable || rawCoveredThrough !== coveredThrough ? sessionEventEnvelopeFieldProjection(
|
|
17751
|
+
"coveredThrough",
|
|
17752
|
+
rawCoveredThrough,
|
|
17753
|
+
coveredThrough,
|
|
17754
|
+
source.coveredThrough.readable
|
|
17755
|
+
) : null,
|
|
17604
17756
|
...sessionEventCanonicalFieldProjections(source, {
|
|
17605
17757
|
id,
|
|
17606
17758
|
workspaceId,
|
|
@@ -17636,6 +17788,7 @@ function boundSessionEvent(event, options = {}) {
|
|
|
17636
17788
|
workspaceId,
|
|
17637
17789
|
sessionId,
|
|
17638
17790
|
sequence,
|
|
17791
|
+
...coveredThrough === void 0 ? {} : { coveredThrough },
|
|
17639
17792
|
type: typeIsSafe ? rawType : "session.event.envelope_omitted",
|
|
17640
17793
|
payload,
|
|
17641
17794
|
occurredAt,
|
|
@@ -17653,6 +17806,7 @@ function boundSessionEvent(event, options = {}) {
|
|
|
17653
17806
|
workspaceId,
|
|
17654
17807
|
sessionId,
|
|
17655
17808
|
sequence,
|
|
17809
|
+
...coveredThrough === void 0 ? {} : { coveredThrough },
|
|
17656
17810
|
type: "session.event.envelope_omitted",
|
|
17657
17811
|
payload: boundSessionEventPayload(
|
|
17658
17812
|
{
|
|
@@ -17716,6 +17870,7 @@ var SESSION_EVENT_OWN_DATA_FIELDS = [
|
|
|
17716
17870
|
"workspaceId",
|
|
17717
17871
|
"sessionId",
|
|
17718
17872
|
"sequence",
|
|
17873
|
+
"coveredThrough",
|
|
17719
17874
|
"type",
|
|
17720
17875
|
"payload",
|
|
17721
17876
|
"occurredAt",
|
|
@@ -17891,6 +18046,13 @@ var CreateSessionRequest = withVariableSetIdAlias(
|
|
|
17891
18046
|
// Inline skills are fixed onto the session. Child omission inherits the
|
|
17892
18047
|
// trusted parent's selection; an explicit array, including [], wins.
|
|
17893
18048
|
skills: SessionSkills.default([]),
|
|
18049
|
+
// Immutable workspace Skill identities to copy onto this session at
|
|
18050
|
+
// creation. This is the explicit opt-in path for session-selected Pack
|
|
18051
|
+
// Skills: installation alone never exposes them to model context. Child
|
|
18052
|
+
// omission still inherits the parent's already-materialized session Skills.
|
|
18053
|
+
installedSkillIds: z30.array(z30.string().min(1).max(512)).max(32).refine((ids) => new Set(ids).size === ids.length, {
|
|
18054
|
+
message: "installed Skill identities must be unique"
|
|
18055
|
+
}).optional(),
|
|
17894
18056
|
// The same child omission rule applies to selected MCP tool refs. Top-level
|
|
17895
18057
|
// omission still applies workspace-default capability MCP tools; explicit []
|
|
17896
18058
|
// suppresses those defaults (the first-party OpenGeni server remains added).
|
|
@@ -18885,6 +19047,10 @@ var ModelCredentialSourceV1 = /* @__PURE__ */ defineModelContractSchema(
|
|
|
18885
19047
|
z30.object({
|
|
18886
19048
|
kind: z30.literal("workspace_connection"),
|
|
18887
19049
|
mechanism: z30.literal("api_key")
|
|
19050
|
+
}).strict(),
|
|
19051
|
+
z30.object({
|
|
19052
|
+
kind: z30.literal("organization_connection"),
|
|
19053
|
+
mechanism: z30.literal("api_key")
|
|
18888
19054
|
}).strict()
|
|
18889
19055
|
])
|
|
18890
19056
|
);
|
|
@@ -18897,10 +19063,18 @@ var TurnExecutionCredentialSourceV1 = z30.union([
|
|
|
18897
19063
|
]);
|
|
18898
19064
|
var ModelBillingAttributionV1 = /* @__PURE__ */ defineModelContractSchema(
|
|
18899
19065
|
() => z30.object({
|
|
18900
|
-
upstreamPayer: z30.enum([
|
|
19066
|
+
upstreamPayer: z30.enum([
|
|
19067
|
+
"deployment",
|
|
19068
|
+
"workspace",
|
|
19069
|
+
"organization",
|
|
19070
|
+
"connected_subscription"
|
|
19071
|
+
]),
|
|
18901
19072
|
metering: z30.enum(["opengeni_credits", "external"])
|
|
18902
19073
|
}).strict()
|
|
18903
19074
|
);
|
|
19075
|
+
var ModelCostClassV1 = /* @__PURE__ */ defineModelContractSchema(
|
|
19076
|
+
() => z30.enum(["free", "credits", "subscription", "workspace", "organization"])
|
|
19077
|
+
);
|
|
18904
19078
|
var TURN_EXECUTION_POLICY_METADATA_KEY = "turnExecutionPolicyV1";
|
|
18905
19079
|
var TurnExecutionModelSourceV1 = /* @__PURE__ */ defineModelContractSchema(
|
|
18906
19080
|
() => z30.enum(["explicit", "session", "deployment", "continuation"])
|
|
@@ -18997,6 +19171,7 @@ var ModelPricingV1 = /* @__PURE__ */ defineModelContractSchema(
|
|
|
18997
19171
|
() => z30.object({
|
|
18998
19172
|
inputMicrosPerMillionTokens: z30.number().int().nonnegative(),
|
|
18999
19173
|
cachedInputMicrosPerMillionTokens: z30.number().int().nonnegative().optional(),
|
|
19174
|
+
cacheWriteMicrosPerMillionTokens: z30.number().int().nonnegative().optional(),
|
|
19000
19175
|
outputMicrosPerMillionTokens: z30.number().int().nonnegative(),
|
|
19001
19176
|
marginBps: z30.number().int().min(0).max(1e5).optional()
|
|
19002
19177
|
})
|
|
@@ -19022,7 +19197,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
|
|
|
19022
19197
|
// provider id
|
|
19023
19198
|
providerLabel: z30.string(),
|
|
19024
19199
|
api: z30.enum(["responses", "chat"]),
|
|
19025
|
-
source: z30.enum(["opengeni", "codex", "supergrok", "workspace_gateway"]).optional(),
|
|
19200
|
+
source: z30.enum(["opengeni", "codex", "supergrok", "workspace_gateway", "openrouter"]).optional(),
|
|
19026
19201
|
contextWindowTokens: z30.number().int().positive().optional(),
|
|
19027
19202
|
// Additive normalized definition metadata. Optional so older server payloads
|
|
19028
19203
|
// remain parseable; current servers project the complete V1 set.
|
|
@@ -19040,6 +19215,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
|
|
|
19040
19215
|
}).optional(),
|
|
19041
19216
|
credentialSource: ModelCredentialSourceV1.optional(),
|
|
19042
19217
|
billing: ModelBillingAttributionV1.optional(),
|
|
19218
|
+
cost: ModelCostClassV1.optional(),
|
|
19043
19219
|
capabilities: ModelCapabilitiesV1.optional(),
|
|
19044
19220
|
pricing: ModelPricingScheduleV1.optional(),
|
|
19045
19221
|
definitionVersion: z30.string().regex(/^sha256:[a-f0-9]{64}$/u).optional()
|
|
@@ -19959,7 +20135,7 @@ export {
|
|
|
19959
20135
|
WORKSPACE_LEARNING_POLICY_SOURCE_KIND_MAX_CHARS,
|
|
19960
20136
|
WORKSPACE_LEARNING_POLICY_SOURCE_ID_MAX_CHARS,
|
|
19961
20137
|
WORKSPACE_LEARNING_POLICY_REASON_MAX_CHARS,
|
|
19962
|
-
|
|
20138
|
+
WORKSPACE_LEARNING_POLICY_DEFAULT_SUGGEST_REVISION_ID,
|
|
19963
20139
|
WorkspaceLearningMode,
|
|
19964
20140
|
WorkspaceLearningOverrideMode,
|
|
19965
20141
|
normalizeWorkspaceLearningSourceKind,
|
|
@@ -20105,6 +20281,8 @@ export {
|
|
|
20105
20281
|
RevokeOrganizationWorkspaceMemberResponse,
|
|
20106
20282
|
CreateOrganizationRequest,
|
|
20107
20283
|
CreateOrganizationResponse,
|
|
20284
|
+
CreateAdditionalOrganizationRequest,
|
|
20285
|
+
CreateAdditionalOrganizationResponse,
|
|
20108
20286
|
UpdateOrganizationNameRequest,
|
|
20109
20287
|
OrganizationRetentionPolicy,
|
|
20110
20288
|
OrganizationRetentionDeletionClaim,
|
|
@@ -20267,6 +20445,23 @@ export {
|
|
|
20267
20445
|
UpdateWorkspaceSettingsRequest,
|
|
20268
20446
|
SetWorkspaceDefaultRigRequest,
|
|
20269
20447
|
UpdateWorkspaceModelPolicyRequest,
|
|
20448
|
+
WORKSPACE_GATEWAY_CUSTOM_MODEL_UPSTREAM_ID_MAX_LENGTH,
|
|
20449
|
+
CreateWorkspaceGatewayCustomModelRequest,
|
|
20450
|
+
DeleteWorkspaceGatewayCustomModelRequest,
|
|
20451
|
+
WorkspaceGatewayCustomModel,
|
|
20452
|
+
WorkspaceGatewayCustomModelsResponse,
|
|
20453
|
+
CreateWorkspaceOpenRouterCustomModelRequest,
|
|
20454
|
+
DeleteWorkspaceOpenRouterCustomModelRequest,
|
|
20455
|
+
WorkspaceOpenRouterCustomModel,
|
|
20456
|
+
WorkspaceOpenRouterCustomModelsResponse,
|
|
20457
|
+
CreateOrganizationProviderCustomModelRequest,
|
|
20458
|
+
DeleteOrganizationProviderCustomModelRequest,
|
|
20459
|
+
OrganizationProviderCustomModel,
|
|
20460
|
+
OrganizationProviderCustomModelsResponse,
|
|
20461
|
+
OrganizationModelProviderKind,
|
|
20462
|
+
OrganizationModelProviderConnectionResponse,
|
|
20463
|
+
UpsertOrganizationModelProviderConnectionRequest,
|
|
20464
|
+
RevokeOrganizationModelProviderConnectionRequest,
|
|
20270
20465
|
UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID,
|
|
20271
20466
|
ServiceTurnInitiator,
|
|
20272
20467
|
TurnInitiatorContext,
|
|
@@ -20788,6 +20983,10 @@ export {
|
|
|
20788
20983
|
comparePersonalSlackCanonicalConnections,
|
|
20789
20984
|
selectCanonicalPersonalSlackConnection,
|
|
20790
20985
|
ConnectionCredentialBundle,
|
|
20986
|
+
VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_ID_METADATA_KEY,
|
|
20987
|
+
VERCEL_AI_GATEWAY_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY,
|
|
20988
|
+
OPENROUTER_CREDENTIAL_OPERATION_ID_METADATA_KEY,
|
|
20989
|
+
OPENROUTER_CREDENTIAL_OPERATION_DIGEST_METADATA_KEY,
|
|
20791
20990
|
CreateConnectionRequest,
|
|
20792
20991
|
OpenGeniSlackBotInstallRequest,
|
|
20793
20992
|
OpenGeniSlackBotInstallStart,
|
|
@@ -20898,6 +21097,7 @@ export {
|
|
|
20898
21097
|
SESSION_EVENT_RAW_DELTA_TYPES,
|
|
20899
21098
|
SESSION_EVENT_SEMANTIC_CLASS_TYPES,
|
|
20900
21099
|
resolveSessionEventTypeFilters,
|
|
21100
|
+
ToolAuthNeededReason,
|
|
20901
21101
|
ToolAuthNeededPayload,
|
|
20902
21102
|
CredentialAuthNeededPayload,
|
|
20903
21103
|
StreamUrlRotatedPayload,
|
|
@@ -21075,6 +21275,7 @@ export {
|
|
|
21075
21275
|
ModelCapabilitiesV1,
|
|
21076
21276
|
ModelCredentialSourceV1,
|
|
21077
21277
|
ModelBillingAttributionV1,
|
|
21278
|
+
ModelCostClassV1,
|
|
21078
21279
|
TURN_EXECUTION_POLICY_METADATA_KEY,
|
|
21079
21280
|
TurnExecutionModelSourceV1,
|
|
21080
21281
|
TurnExecutionReasoningSourceV1,
|
|
@@ -21096,4 +21297,4 @@ export {
|
|
|
21096
21297
|
ClientConfig,
|
|
21097
21298
|
evaluateWorkspaceModelPolicy
|
|
21098
21299
|
};
|
|
21099
|
-
//# sourceMappingURL=chunk-
|
|
21300
|
+
//# sourceMappingURL=chunk-6HOHS44G.js.map
|