@zixt/host 0.0.81 → 0.0.82

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 +52 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import { homedir as homedir3 } from "node:os";
31
31
  // package.json
32
32
  var package_default = {
33
33
  name: "@zixt/host",
34
- version: "0.0.81",
34
+ version: "0.0.82",
35
35
  type: "module",
36
36
  exports: {
37
37
  ".": "./src/client.ts",
@@ -14661,6 +14661,8 @@ var ID_PREFIXES = {
14661
14661
  conversationEvent: "cve",
14662
14662
  /** One human-confirmed integration action prepared by the Manager. */
14663
14663
  managerIntegrationAction: "mia",
14664
+ /** One Manager-prepared secure Credential entry card (MG-17). */
14665
+ managerCredentialRequest: "mcr",
14664
14666
  /** One Manager inference call's token-metering row (MG-8). */
14665
14667
  managerUsage: "mgu",
14666
14668
  /** One ordered Manager reply awaiting Slack delivery. */
@@ -14712,6 +14714,10 @@ var ManagerIntegrationActionId = idSchema(
14712
14714
  ID_PREFIXES.managerIntegrationAction,
14713
14715
  "Manager integration action id"
14714
14716
  );
14717
+ var ManagerCredentialRequestId = idSchema(
14718
+ ID_PREFIXES.managerCredentialRequest,
14719
+ "Manager credential request id"
14720
+ );
14715
14721
  var ManagerEmailInboxId = idSchema(
14716
14722
  ID_PREFIXES.managerEmailInbox,
14717
14723
  "Manager email inbox id"
@@ -18331,7 +18337,9 @@ var ConversationEventProjection = external_exports.discriminatedUnion("kind", [
18331
18337
  taskId: TaskId.nullable(),
18332
18338
  agentId: AgentId.nullable(),
18333
18339
  /** Present only for a confirmation card; OAuth authority never appears here. */
18334
- integrationActionId: ManagerIntegrationActionId.nullable().optional()
18340
+ integrationActionId: ManagerIntegrationActionId.nullable().optional(),
18341
+ /** Present only for a secure Credential entry card; never a value (MG-17). */
18342
+ credentialRequestId: ManagerCredentialRequestId.nullable().optional()
18335
18343
  }).strict(),
18336
18344
  /** A mirrored child-Task event: what the teammate wrote or became. */
18337
18345
  external_exports.object({
@@ -18397,6 +18405,48 @@ var ManagerIntegrationActionResponse = external_exports.object({
18397
18405
  action: ManagerIntegrationActionProjection,
18398
18406
  oauth: ManagerIntegrationOAuthStart.nullable()
18399
18407
  }).strict();
18408
+ var ManagerCredentialRequestStatus = external_exports.enum([
18409
+ "awaiting_entry",
18410
+ "storing",
18411
+ "stored",
18412
+ "cancelled",
18413
+ "expired",
18414
+ "failed"
18415
+ ]);
18416
+ var ManagerCredentialRequestProjection = external_exports.object({
18417
+ id: ManagerCredentialRequestId,
18418
+ conversationId: ConversationId,
18419
+ /** The Credential name, exactly as it will appear in Credentials. */
18420
+ name: external_exports.string().min(1).max(120),
18421
+ /** `env` reaches a Task as an environment variable; `web_login` fills a sign-in form. */
18422
+ kind: external_exports.enum(["env", "web_login"]),
18423
+ /** Saved as the Credential's description so teammates know what they hold. */
18424
+ purpose: external_exports.string().max(500).nullable(),
18425
+ scope: external_exports.enum(["organization", "teammates"]),
18426
+ /** Named teammates for a teammate-scoped Credential; empty for organization scope. */
18427
+ teammates: external_exports.array(external_exports.object({ agentId: AgentId, name: external_exports.string().min(1).max(200) }).strict()).max(100),
18428
+ /** Suggested sign-in page for a website login; the person can correct it. */
18429
+ loginUrl: external_exports.url().max(2e3).nullable(),
18430
+ status: ManagerCredentialRequestStatus,
18431
+ outcome: external_exports.string().max(1e3).nullable(),
18432
+ createdAt: external_exports.string(),
18433
+ expiresAt: external_exports.string()
18434
+ }).strict();
18435
+ var SubmitManagerCredentialRequest = external_exports.object({
18436
+ requestId: external_exports.uuid(),
18437
+ /** env kind. */
18438
+ value: external_exports.string().min(1).max(1e4).optional(),
18439
+ /** web_login kind. */
18440
+ webLogin: WebLoginValue.optional()
18441
+ }).strict().superRefine((request, ctx) => {
18442
+ if (request.value === void 0 === (request.webLogin === void 0)) {
18443
+ ctx.addIssue({
18444
+ code: "custom",
18445
+ path: ["value"],
18446
+ message: "submit exactly one of value or webLogin, matching the requested kind"
18447
+ });
18448
+ }
18449
+ });
18400
18450
  var NonEmptyTaskRunnerSelection = TaskRunnerSelection.refine(
18401
18451
  (selection) => selection.type !== void 0 || selection.model !== void 0 || selection.effort !== void 0,
18402
18452
  "choose at least one runtime preference"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",