@zixt/host 0.0.12 → 0.0.13

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 (2) hide show
  1. package/dist/index.js +21 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import { homedir } from "node:os";
31
31
  // package.json
32
32
  var package_default = {
33
33
  name: "@zixt/host",
34
- version: "0.0.12",
34
+ version: "0.0.13",
35
35
  type: "module",
36
36
  exports: {
37
37
  ".": "./src/client.ts",
@@ -17232,6 +17232,9 @@ var SecretMeta = external_exports.object({
17232
17232
  /** Absent on legacy rows/clients means `env`. */
17233
17233
  kind: SecretKind.default("env"),
17234
17234
  scope: SecretScope,
17235
+ /** Canonical availability set for teammate-scoped credentials. */
17236
+ agentIds: external_exports.array(AgentId).min(1).nullable().default(null),
17237
+ /** Legacy single-teammate projection, retained while older clients migrate. */
17235
17238
  agentId: AgentId.nullable(),
17236
17239
  /**
17237
17240
  * What this credential is for — rendered into the agent's system prompt
@@ -17279,7 +17282,23 @@ var requireKindMatchingValue = (request, ctx) => {
17279
17282
  };
17280
17283
  var PutSecretRequest = external_exports.discriminatedUnion("scope", [
17281
17284
  external_exports.object({ ...PutSecretFields, scope: external_exports.literal("org") }).strict().superRefine(requireKindMatchingValue),
17282
- external_exports.object({ ...PutSecretFields, scope: external_exports.literal("agent"), agentId: AgentId }).strict().superRefine(requireKindMatchingValue)
17285
+ external_exports.object({
17286
+ ...PutSecretFields,
17287
+ scope: external_exports.literal("agent"),
17288
+ agentIds: external_exports.array(AgentId).min(1).max(100).optional(),
17289
+ agentId: AgentId.optional()
17290
+ }).strict().superRefine((request, ctx) => {
17291
+ if (request.agentIds === void 0 === (request.agentId === void 0)) {
17292
+ ctx.addIssue({
17293
+ code: "custom",
17294
+ path: ["agentIds"],
17295
+ message: "teammate credentials require exactly one of agentIds or legacy agentId"
17296
+ });
17297
+ }
17298
+ if (request.agentIds && new Set(request.agentIds).size !== request.agentIds.length) {
17299
+ ctx.addIssue({ code: "custom", path: ["agentIds"], message: "duplicate AI teammate" });
17300
+ }
17301
+ }).superRefine(requireKindMatchingValue)
17283
17302
  ]);
17284
17303
  var AdminSecretsProjection = external_exports.object({
17285
17304
  metadataRedacted: external_exports.literal(false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",