@cargo-ai/types 1.0.87 → 1.0.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargo-ai/types",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "Shared TypeScript types and domain models for Cargo.",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",
@@ -27,7 +27,7 @@
27
27
  "format:check": "prettier --check ."
28
28
  },
29
29
  "dependencies": {
30
- "@cargo-ai/utils": "^1.0.31"
30
+ "@cargo-ai/utils": "^1.0.32"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "zod": "^4.4.3"
@@ -1,30 +0,0 @@
1
- export type EncryptionValue = {
2
- type: "encryption";
3
- isEncrypted: boolean;
4
- value: string;
5
- };
6
- /**
7
- * A pointer to a workspace environment variable, stored in place of a value and
8
- * resolved on every use — so rotating the variable reaches every consumer
9
- * without a redeploy. Written by `workspaceEnv("NAME")` in the CDK, or by the
10
- * product UI when someone names a variable instead of typing a value.
11
- */
12
- export type WorkspaceEnvVarValue = {
13
- type: "workspaceEnvVar";
14
- key: string;
15
- };
16
- /**
17
- * What may sit in a credential field: the encryption envelope, or a workspace
18
- * env-var value. Both arms need resolving before use, so never read one
19
- * directly — the backend's `workspaceManagement.envVar.decrypt` yields the
20
- * plaintext.
21
- *
22
- * Named for the field's purpose, not either arm's mechanism: a workspace
23
- * env-var value points at a variable nothing requires to be secret, and an
24
- * envelope is not an environment variable at all when someone typed it in.
25
- */
26
- export type CredentialValue = EncryptionValue | WorkspaceEnvVarValue;
27
- export type PlainTextEncryptionValue<T> = T extends EncryptionValue ? string : T extends object ? {
28
- [K in keyof T]: PlainTextEncryptionValue<T[K]>;
29
- } : T;
30
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAErE,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,GAC/D,MAAM,GACN,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/C,GACD,CAAC,CAAC"}
File without changes