@opengeni/contracts 0.31.0 → 0.31.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/google-drive.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -13516,6 +13516,19 @@ export declare const ModelCapabilitiesV1: z.ZodObject<{
|
|
|
13516
13516
|
runnable: z.ZodBoolean;
|
|
13517
13517
|
}, z.core.$strip>;
|
|
13518
13518
|
}, z.core.$strip>;
|
|
13519
|
+
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
13520
|
+
upstream: z.ZodEnum<{
|
|
13521
|
+
supported: "supported";
|
|
13522
|
+
unknown: "unknown";
|
|
13523
|
+
unsupported: "unsupported";
|
|
13524
|
+
}>;
|
|
13525
|
+
runnable: z.ZodBoolean;
|
|
13526
|
+
mode: z.ZodEnum<{
|
|
13527
|
+
automatic: "automatic";
|
|
13528
|
+
implicit: "implicit";
|
|
13529
|
+
none: "none";
|
|
13530
|
+
}>;
|
|
13531
|
+
}, z.core.$strip>>;
|
|
13519
13532
|
latencyModes: z.ZodArray<z.ZodObject<{
|
|
13520
13533
|
id: z.ZodEnum<{
|
|
13521
13534
|
fast: "fast";
|
|
@@ -13721,6 +13734,11 @@ export declare const ClientModel: z.ZodObject<{
|
|
|
13721
13734
|
chat: "chat";
|
|
13722
13735
|
responses: "responses";
|
|
13723
13736
|
}>;
|
|
13737
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
13738
|
+
codex: "codex";
|
|
13739
|
+
opengeni: "opengeni";
|
|
13740
|
+
workspace_gateway: "workspace_gateway";
|
|
13741
|
+
}>>;
|
|
13724
13742
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
13725
13743
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
13726
13744
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -13865,6 +13883,19 @@ export declare const ClientModel: z.ZodObject<{
|
|
|
13865
13883
|
runnable: z.ZodBoolean;
|
|
13866
13884
|
}, z.core.$strip>;
|
|
13867
13885
|
}, z.core.$strip>;
|
|
13886
|
+
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
13887
|
+
upstream: z.ZodEnum<{
|
|
13888
|
+
supported: "supported";
|
|
13889
|
+
unknown: "unknown";
|
|
13890
|
+
unsupported: "unsupported";
|
|
13891
|
+
}>;
|
|
13892
|
+
runnable: z.ZodBoolean;
|
|
13893
|
+
mode: z.ZodEnum<{
|
|
13894
|
+
automatic: "automatic";
|
|
13895
|
+
implicit: "implicit";
|
|
13896
|
+
none: "none";
|
|
13897
|
+
}>;
|
|
13898
|
+
}, z.core.$strip>>;
|
|
13868
13899
|
latencyModes: z.ZodArray<z.ZodObject<{
|
|
13869
13900
|
id: z.ZodEnum<{
|
|
13870
13901
|
fast: "fast";
|
|
@@ -13950,6 +13981,11 @@ export declare const WorkspaceModelCatalogModel: z.ZodObject<{
|
|
|
13950
13981
|
chat: "chat";
|
|
13951
13982
|
responses: "responses";
|
|
13952
13983
|
}>;
|
|
13984
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
13985
|
+
codex: "codex";
|
|
13986
|
+
opengeni: "opengeni";
|
|
13987
|
+
workspace_gateway: "workspace_gateway";
|
|
13988
|
+
}>>;
|
|
13953
13989
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
13954
13990
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
13955
13991
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -14094,6 +14130,19 @@ export declare const WorkspaceModelCatalogModel: z.ZodObject<{
|
|
|
14094
14130
|
runnable: z.ZodBoolean;
|
|
14095
14131
|
}, z.core.$strip>;
|
|
14096
14132
|
}, z.core.$strip>;
|
|
14133
|
+
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
14134
|
+
upstream: z.ZodEnum<{
|
|
14135
|
+
supported: "supported";
|
|
14136
|
+
unknown: "unknown";
|
|
14137
|
+
unsupported: "unsupported";
|
|
14138
|
+
}>;
|
|
14139
|
+
runnable: z.ZodBoolean;
|
|
14140
|
+
mode: z.ZodEnum<{
|
|
14141
|
+
automatic: "automatic";
|
|
14142
|
+
implicit: "implicit";
|
|
14143
|
+
none: "none";
|
|
14144
|
+
}>;
|
|
14145
|
+
}, z.core.$strip>>;
|
|
14097
14146
|
latencyModes: z.ZodArray<z.ZodObject<{
|
|
14098
14147
|
id: z.ZodEnum<{
|
|
14099
14148
|
fast: "fast";
|
|
@@ -14178,6 +14227,11 @@ export declare const WorkspaceModelCatalogResponse: z.ZodObject<{
|
|
|
14178
14227
|
chat: "chat";
|
|
14179
14228
|
responses: "responses";
|
|
14180
14229
|
}>;
|
|
14230
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
14231
|
+
codex: "codex";
|
|
14232
|
+
opengeni: "opengeni";
|
|
14233
|
+
workspace_gateway: "workspace_gateway";
|
|
14234
|
+
}>>;
|
|
14181
14235
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
14182
14236
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
14183
14237
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -14322,6 +14376,19 @@ export declare const WorkspaceModelCatalogResponse: z.ZodObject<{
|
|
|
14322
14376
|
runnable: z.ZodBoolean;
|
|
14323
14377
|
}, z.core.$strip>;
|
|
14324
14378
|
}, z.core.$strip>;
|
|
14379
|
+
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
14380
|
+
upstream: z.ZodEnum<{
|
|
14381
|
+
supported: "supported";
|
|
14382
|
+
unknown: "unknown";
|
|
14383
|
+
unsupported: "unsupported";
|
|
14384
|
+
}>;
|
|
14385
|
+
runnable: z.ZodBoolean;
|
|
14386
|
+
mode: z.ZodEnum<{
|
|
14387
|
+
automatic: "automatic";
|
|
14388
|
+
implicit: "implicit";
|
|
14389
|
+
none: "none";
|
|
14390
|
+
}>;
|
|
14391
|
+
}, z.core.$strip>>;
|
|
14325
14392
|
latencyModes: z.ZodArray<z.ZodObject<{
|
|
14326
14393
|
id: z.ZodEnum<{
|
|
14327
14394
|
fast: "fast";
|
|
@@ -14424,6 +14491,11 @@ export declare const ClientConfig: z.ZodObject<{
|
|
|
14424
14491
|
chat: "chat";
|
|
14425
14492
|
responses: "responses";
|
|
14426
14493
|
}>;
|
|
14494
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
14495
|
+
codex: "codex";
|
|
14496
|
+
opengeni: "opengeni";
|
|
14497
|
+
workspace_gateway: "workspace_gateway";
|
|
14498
|
+
}>>;
|
|
14427
14499
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
14428
14500
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
14429
14501
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -14568,6 +14640,19 @@ export declare const ClientConfig: z.ZodObject<{
|
|
|
14568
14640
|
runnable: z.ZodBoolean;
|
|
14569
14641
|
}, z.core.$strip>;
|
|
14570
14642
|
}, z.core.$strip>;
|
|
14643
|
+
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
14644
|
+
upstream: z.ZodEnum<{
|
|
14645
|
+
supported: "supported";
|
|
14646
|
+
unknown: "unknown";
|
|
14647
|
+
unsupported: "unsupported";
|
|
14648
|
+
}>;
|
|
14649
|
+
runnable: z.ZodBoolean;
|
|
14650
|
+
mode: z.ZodEnum<{
|
|
14651
|
+
automatic: "automatic";
|
|
14652
|
+
implicit: "implicit";
|
|
14653
|
+
none: "none";
|
|
14654
|
+
}>;
|
|
14655
|
+
}, z.core.$strip>>;
|
|
14571
14656
|
latencyModes: z.ZodArray<z.ZodObject<{
|
|
14572
14657
|
id: z.ZodEnum<{
|
|
14573
14658
|
fast: "fast";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -9124,6 +9124,9 @@ export const ModelCapabilitiesV1 = /* @__PURE__ */ defineModelContractSchema(()
|
|
|
9124
9124
|
responsesWebSocket: ModelCapabilityStateV1,
|
|
9125
9125
|
realtimeAudio: ModelCapabilityStateV1,
|
|
9126
9126
|
}),
|
|
9127
|
+
promptCaching: ModelCapabilityStateV1.extend({
|
|
9128
|
+
mode: z.enum(["implicit", "automatic", "none"]),
|
|
9129
|
+
}).optional(),
|
|
9127
9130
|
latencyModes: z.array(
|
|
9128
9131
|
z.object({
|
|
9129
9132
|
id: z.enum(["standard", "priority", "fast"]),
|
|
@@ -9339,6 +9342,7 @@ export const ClientModel = /* @__PURE__ */ defineModelContractSchema(() =>
|
|
|
9339
9342
|
provider: z.string(), // provider id
|
|
9340
9343
|
providerLabel: z.string(),
|
|
9341
9344
|
api: z.enum(["responses", "chat"]),
|
|
9345
|
+
source: z.enum(["opengeni", "codex", "workspace_gateway"]).optional(),
|
|
9342
9346
|
contextWindowTokens: z.number().int().positive().optional(),
|
|
9343
9347
|
// Additive normalized definition metadata. Optional so older server payloads
|
|
9344
9348
|
// remain parseable; current servers project the complete V1 set.
|