dagger-env 0.2.1 → 0.3.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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './dagger-env';
1
+ export * from './dagger-env.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './dagger-env';
1
+ export * from './dagger-env.js';
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
package/dist/op.d.ts ADDED
@@ -0,0 +1,90 @@
1
+ import { z } from 'zod/v4';
2
+ /**
3
+ * 1Password vault information
4
+ */
5
+ export type OPVault = z.infer<typeof OPVault>;
6
+ export declare const OPVault: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ }, z.core.$strip>;
10
+ /**
11
+ * 1Password item section information
12
+ */
13
+ export type OPSection = z.infer<typeof OPSection>;
14
+ export declare const OPSection: z.ZodObject<{
15
+ id: z.ZodString;
16
+ label: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ /**
19
+ * 1Password item field
20
+ */
21
+ export type OPField = z.infer<typeof OPField>;
22
+ export declare const OPField: z.ZodObject<{
23
+ id: z.ZodString;
24
+ section: z.ZodOptional<z.ZodObject<{
25
+ id: z.ZodString;
26
+ label: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ type: z.ZodEnum<{
29
+ STRING: "STRING";
30
+ CONCEALED: "CONCEALED";
31
+ MONTH_YEAR: "MONTH_YEAR";
32
+ }>;
33
+ purpose: z.ZodOptional<z.ZodEnum<{
34
+ NOTES: "NOTES";
35
+ }>>;
36
+ label: z.ZodString;
37
+ value: z.ZodString;
38
+ reference: z.ZodString;
39
+ }, z.core.$strip>;
40
+ /**
41
+ * 1Password item category
42
+ */
43
+ export type OPCategory = z.infer<typeof OPCategory>;
44
+ export declare const OPCategory: z.ZodEnum<{
45
+ SECURE_NOTE: "SECURE_NOTE";
46
+ }>;
47
+ /**
48
+ * Complete 1Password item structure
49
+ */
50
+ export type OPItem = z.infer<typeof OPItem>;
51
+ export declare const OPItem: z.ZodObject<{
52
+ id: z.ZodString;
53
+ title: z.ZodString;
54
+ favorite: z.ZodBoolean;
55
+ version: z.ZodInt;
56
+ vault: z.ZodObject<{
57
+ id: z.ZodString;
58
+ name: z.ZodString;
59
+ }, z.core.$strip>;
60
+ category: z.ZodEnum<{
61
+ SECURE_NOTE: "SECURE_NOTE";
62
+ }>;
63
+ last_edited_by: z.ZodString;
64
+ created_at: z.ZodISODateTime;
65
+ updated_at: z.ZodISODateTime;
66
+ additional_information: z.ZodString;
67
+ sections: z.ZodArray<z.ZodObject<{
68
+ id: z.ZodString;
69
+ label: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>>;
71
+ fields: z.ZodArray<z.ZodObject<{
72
+ id: z.ZodString;
73
+ section: z.ZodOptional<z.ZodObject<{
74
+ id: z.ZodString;
75
+ label: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>>;
77
+ type: z.ZodEnum<{
78
+ STRING: "STRING";
79
+ CONCEALED: "CONCEALED";
80
+ MONTH_YEAR: "MONTH_YEAR";
81
+ }>;
82
+ purpose: z.ZodOptional<z.ZodEnum<{
83
+ NOTES: "NOTES";
84
+ }>>;
85
+ label: z.ZodString;
86
+ value: z.ZodString;
87
+ reference: z.ZodString;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ //# sourceMappingURL=op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"op.d.ts","sourceRoot":"","sources":["../src/op.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;AAC7C,eAAO,MAAM,OAAO;;;iBAGlB,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AACjD,eAAO,MAAM,SAAS;;;iBAGpB,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;AAC7C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;iBAQlB,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,eAAO,MAAM,UAAU;;EAA0B,CAAA;AAEjD;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA;AAC3C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAajB,CAAA"}
package/dist/op.js ADDED
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod/v4';
2
+ export const OPVault = z.object({
3
+ id: z.string(),
4
+ name: z.string(),
5
+ });
6
+ export const OPSection = z.object({
7
+ id: z.string(),
8
+ label: z.string().optional(),
9
+ });
10
+ export const OPField = z.object({
11
+ id: z.string(),
12
+ section: OPSection.optional(),
13
+ type: z.enum(['STRING', 'CONCEALED', 'MONTH_YEAR']),
14
+ purpose: z.enum(['NOTES']).optional(),
15
+ label: z.string(),
16
+ value: z.string(),
17
+ reference: z.string(),
18
+ });
19
+ export const OPCategory = z.enum(['SECURE_NOTE']);
20
+ export const OPItem = z.object({
21
+ id: z.string(),
22
+ title: z.string(),
23
+ favorite: z.boolean(),
24
+ version: z.int(),
25
+ vault: OPVault,
26
+ category: OPCategory,
27
+ last_edited_by: z.string(),
28
+ created_at: z.iso.datetime(),
29
+ updated_at: z.iso.datetime(),
30
+ additional_information: z.string(),
31
+ sections: z.array(OPSection),
32
+ fields: z.array(OPField),
33
+ });
34
+ //# sourceMappingURL=op.js.map
package/dist/op.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"op.js","sourceRoot":"","sources":["../src/op.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAM1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC,CAAA;AAMjD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAC5B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;CACxB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dagger-env",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "A type-safe, reusable environment configuration abstraction for Dagger modules.",
6
6
  "keywords": [
@@ -26,6 +26,12 @@
26
26
  "types": "./dist/index.d.ts",
27
27
  "default": "./dist/index.js"
28
28
  }
29
+ },
30
+ "./op": {
31
+ "import": {
32
+ "types": "./dist/op.d.ts",
33
+ "default": "./dist/op.js"
34
+ }
29
35
  }
30
36
  },
31
37
  "main": "./dist/index.js",
@@ -39,11 +45,11 @@
39
45
  "vitest": "3.1.4",
40
46
  "zod": "3.25.57",
41
47
  "zx": "8.5.4",
42
- "@repo/tools": "0.2.3",
48
+ "@repo/tools": "0.3.0",
43
49
  "@repo/typescript-config": "0.1.2"
44
50
  },
45
51
  "scripts": {
46
- "build": "runx build tsc ./src/index.ts",
52
+ "build": "runx build tsc ./src/index.ts ./src/op.ts",
47
53
  "check:exports": "runx check --exports",
48
54
  "check:lint": "run-eslint",
49
55
  "check:types": "run-tsc",