@keystrokehq/_1password 0.1.0 → 0.1.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.
Files changed (57) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-item.cjs +3 -3
  4. package/dist/actions/create-item.cjs.map +1 -1
  5. package/dist/actions/create-item.d.cts +31 -3
  6. package/dist/actions/create-item.d.cts.map +1 -1
  7. package/dist/actions/create-item.d.mts +31 -3
  8. package/dist/actions/create-item.d.mts.map +1 -1
  9. package/dist/actions/create-item.mjs +3 -3
  10. package/dist/actions/create-item.mjs.map +1 -1
  11. package/dist/actions/delete-item.cjs +2 -2
  12. package/dist/actions/delete-item.cjs.map +1 -1
  13. package/dist/actions/delete-item.d.cts +15 -3
  14. package/dist/actions/delete-item.d.cts.map +1 -1
  15. package/dist/actions/delete-item.d.mts +15 -3
  16. package/dist/actions/delete-item.d.mts.map +1 -1
  17. package/dist/actions/delete-item.mjs +2 -2
  18. package/dist/actions/delete-item.mjs.map +1 -1
  19. package/dist/actions/get-item.cjs +10 -10
  20. package/dist/actions/get-item.cjs.map +1 -1
  21. package/dist/actions/get-item.d.cts +33 -3
  22. package/dist/actions/get-item.d.cts.map +1 -1
  23. package/dist/actions/get-item.d.mts +33 -3
  24. package/dist/actions/get-item.d.mts.map +1 -1
  25. package/dist/actions/get-item.mjs +10 -10
  26. package/dist/actions/get-item.mjs.map +1 -1
  27. package/dist/actions/list-items.cjs +4 -4
  28. package/dist/actions/list-items.cjs.map +1 -1
  29. package/dist/actions/list-items.d.cts +19 -3
  30. package/dist/actions/list-items.d.cts.map +1 -1
  31. package/dist/actions/list-items.d.mts +19 -3
  32. package/dist/actions/list-items.d.mts.map +1 -1
  33. package/dist/actions/list-items.mjs +4 -4
  34. package/dist/actions/list-items.mjs.map +1 -1
  35. package/dist/actions/list-vaults.cjs +4 -4
  36. package/dist/actions/list-vaults.cjs.map +1 -1
  37. package/dist/actions/list-vaults.d.cts +15 -3
  38. package/dist/actions/list-vaults.d.cts.map +1 -1
  39. package/dist/actions/list-vaults.d.mts +15 -3
  40. package/dist/actions/list-vaults.d.mts.map +1 -1
  41. package/dist/actions/list-vaults.mjs +4 -4
  42. package/dist/actions/list-vaults.mjs.map +1 -1
  43. package/dist/actions/update-item.cjs +3 -3
  44. package/dist/actions/update-item.cjs.map +1 -1
  45. package/dist/actions/update-item.d.cts +27 -3
  46. package/dist/actions/update-item.d.cts.map +1 -1
  47. package/dist/actions/update-item.d.mts +27 -3
  48. package/dist/actions/update-item.d.mts.map +1 -1
  49. package/dist/actions/update-item.mjs +3 -3
  50. package/dist/actions/update-item.mjs.map +1 -1
  51. package/dist/catalog.cjs +13 -1
  52. package/dist/catalog.cjs.map +1 -1
  53. package/dist/catalog.d.cts +12 -0
  54. package/dist/catalog.d.mts +12 -0
  55. package/dist/catalog.mjs +13 -1
  56. package/dist/catalog.mjs.map +1 -1
  57. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["_1password","execute_1passwordTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _1password } from \"./app\";\nimport { execute_1passwordTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return _1password.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await execute_1passwordTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["_1password","execute_1passwordTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _1password } from \"./app\";\nimport { execute_1passwordTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return _1password.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await execute_1passwordTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _1password } from \"./app\";\nimport { execute_1passwordTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return _1password.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await execute_1passwordTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _1password } from \"./app\";\nimport { execute_1passwordTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return _1password.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await execute_1passwordTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -13,9 +13,9 @@ const _1passwordCreateItemInput = zod.z.object({
13
13
  vault_id: zod.z.string().describe("ID of the vault to create the item in.")
14
14
  });
15
15
  const _1passwordCreateItemOutput = zod.z.object({
16
- id: zod.z.string().describe("ID of the newly created item."),
17
- title: zod.z.string().describe("Title of the created item."),
18
- vault_id: zod.z.string().describe("Vault ID the item was created in.")
16
+ id: zod.z.string().describe("ID of the newly created item.").nullable(),
17
+ title: zod.z.string().describe("Title of the created item.").nullable(),
18
+ vault_id: zod.z.string().describe("Vault ID the item was created in.").nullable()
19
19
  });
20
20
  const _1passwordCreateItem = require_action.action("_1PASSWORD_CREATE_ITEM", {
21
21
  slug: "_1password-create-item",
@@ -1 +1 @@
1
- {"version":3,"file":"create-item.cjs","names":["z","action"],"sources":["../../src/actions/create-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordCreateItemInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).default([]).describe(\"Optional tags to apply to the item.\").optional(),\n title: z.string().describe(\"Title for the new item.\"),\n fields: z.array(z.object({\n title: z.string().describe(\"Label for the field (e.g. 'username', 'password').\"),\n value: z.string().describe(\"Value to store in the field.\"),\n concealed: z.boolean().default(false).describe(\"Set to true for sensitive values like passwords (stored as CONCEALED type).\").optional(),\n})).default([]).describe(\"Fields to add to the item.\").optional(),\n category: z.string().default(\"LOGIN\").describe(\"Item category. One of: LOGIN, PASSWORD, SECURE_NOTE, API_CREDENTIAL, DATABASE.\").optional(),\n vault_id: z.string().describe(\"ID of the vault to create the item in.\"),\n});\nexport const _1passwordCreateItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the newly created item.\"),\n title: z.string().describe(\"Title of the created item.\"),\n vault_id: z.string().describe(\"Vault ID the item was created in.\"),\n});\n\nexport const _1passwordCreateItem = action(\"_1PASSWORD_CREATE_ITEM\", {\n slug: \"_1password-create-item\",\n name: \"Create Item\",\n description: \"Creates a new item in a 1Password vault.\",\n input: _1passwordCreateItemInput,\n output: _1passwordCreateItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACzD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACxE,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AACnE,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-item.cjs","names":["z","action"],"sources":["../../src/actions/create-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordCreateItemInput = z.object({\n tags: z.array(z.string()).default([]).describe(\"Optional tags to apply to the item.\").optional(),\n title: z.string().describe(\"Title for the new item.\"),\n fields: z.array(z.object({\n title: z.string().describe(\"Label for the field (e.g. 'username', 'password').\"),\n value: z.string().describe(\"Value to store in the field.\"),\n concealed: z.boolean().default(false).describe(\"Set to true for sensitive values like passwords (stored as CONCEALED type).\").optional(),\n})).default([]).describe(\"Fields to add to the item.\").optional(),\n category: z.string().default(\"LOGIN\").describe(\"Item category. One of: LOGIN, PASSWORD, SECURE_NOTE, API_CREDENTIAL, DATABASE.\").optional(),\n vault_id: z.string().describe(\"ID of the vault to create the item in.\"),\n});\nexport const _1passwordCreateItemOutput = z.object({\n id: z.string().describe(\"ID of the newly created item.\").nullable(),\n title: z.string().describe(\"Title of the created item.\").nullable(),\n vault_id: z.string().describe(\"Vault ID the item was created in.\").nullable(),\n});\n\nexport const _1passwordCreateItem = action(\"_1PASSWORD_CREATE_ITEM\", {\n slug: \"_1password-create-item\",\n name: \"Create Item\",\n description: \"Creates a new item in a 1Password vault.\",\n input: _1passwordCreateItemInput,\n output: _1passwordCreateItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACzD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACxE,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC9E,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-item.d.ts
4
- declare const _1passwordCreateItemInput: z.ZodTypeAny;
5
- declare const _1passwordCreateItemOutput: z.ZodTypeAny;
6
- declare const _1passwordCreateItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordCreateItemInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6
+ title: z.ZodString;
7
+ fields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
8
+ title: z.ZodString;
9
+ value: z.ZodString;
10
+ concealed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ }, z.core.$strip>>>>;
12
+ category: z.ZodOptional<z.ZodDefault<z.ZodString>>;
13
+ vault_id: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const _1passwordCreateItemOutput: z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ title: z.ZodNullable<z.ZodString>;
18
+ vault_id: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const _1passwordCreateItem: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ title: string;
22
+ vault_id: string;
23
+ tags?: string[] | undefined;
24
+ fields?: {
25
+ title: string;
26
+ value: string;
27
+ concealed?: boolean | undefined;
28
+ }[] | undefined;
29
+ category?: string | undefined;
30
+ }, {
31
+ id: string | null;
32
+ title: string | null;
33
+ vault_id: string | null;
34
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { _1passwordCreateItem };
9
37
  //# sourceMappingURL=create-item.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-item.d.cts","names":[],"sources":["../../src/actions/create-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAUxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-item.d.cts","names":[],"sources":["../../src/actions/create-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-item.d.ts
4
- declare const _1passwordCreateItemInput: z.ZodTypeAny;
5
- declare const _1passwordCreateItemOutput: z.ZodTypeAny;
6
- declare const _1passwordCreateItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordCreateItemInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6
+ title: z.ZodString;
7
+ fields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
8
+ title: z.ZodString;
9
+ value: z.ZodString;
10
+ concealed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ }, z.core.$strip>>>>;
12
+ category: z.ZodOptional<z.ZodDefault<z.ZodString>>;
13
+ vault_id: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const _1passwordCreateItemOutput: z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ title: z.ZodNullable<z.ZodString>;
18
+ vault_id: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const _1passwordCreateItem: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ title: string;
22
+ vault_id: string;
23
+ tags?: string[] | undefined;
24
+ fields?: {
25
+ title: string;
26
+ value: string;
27
+ concealed?: boolean | undefined;
28
+ }[] | undefined;
29
+ category?: string | undefined;
30
+ }, {
31
+ id: string | null;
32
+ title: string | null;
33
+ vault_id: string | null;
34
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { _1passwordCreateItem };
9
37
  //# sourceMappingURL=create-item.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-item.d.mts","names":[],"sources":["../../src/actions/create-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAUxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-item.d.mts","names":[],"sources":["../../src/actions/create-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -16,9 +16,9 @@ const _1passwordCreateItem = action("_1PASSWORD_CREATE_ITEM", {
16
16
  vault_id: z.string().describe("ID of the vault to create the item in.")
17
17
  }),
18
18
  output: z.object({
19
- id: z.string().describe("ID of the newly created item."),
20
- title: z.string().describe("Title of the created item."),
21
- vault_id: z.string().describe("Vault ID the item was created in.")
19
+ id: z.string().describe("ID of the newly created item.").nullable(),
20
+ title: z.string().describe("Title of the created item.").nullable(),
21
+ vault_id: z.string().describe("Vault ID the item was created in.").nullable()
22
22
  })
23
23
  });
24
24
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-item.mjs","names":[],"sources":["../../src/actions/create-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordCreateItemInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).default([]).describe(\"Optional tags to apply to the item.\").optional(),\n title: z.string().describe(\"Title for the new item.\"),\n fields: z.array(z.object({\n title: z.string().describe(\"Label for the field (e.g. 'username', 'password').\"),\n value: z.string().describe(\"Value to store in the field.\"),\n concealed: z.boolean().default(false).describe(\"Set to true for sensitive values like passwords (stored as CONCEALED type).\").optional(),\n})).default([]).describe(\"Fields to add to the item.\").optional(),\n category: z.string().default(\"LOGIN\").describe(\"Item category. One of: LOGIN, PASSWORD, SECURE_NOTE, API_CREDENTIAL, DATABASE.\").optional(),\n vault_id: z.string().describe(\"ID of the vault to create the item in.\"),\n});\nexport const _1passwordCreateItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the newly created item.\"),\n title: z.string().describe(\"Title of the created item.\"),\n vault_id: z.string().describe(\"Vault ID the item was created in.\"),\n});\n\nexport const _1passwordCreateItem = action(\"_1PASSWORD_CREATE_ITEM\", {\n slug: \"_1password-create-item\",\n name: \"Create Item\",\n description: \"Creates a new item in a 1Password vault.\",\n input: _1passwordCreateItemInput,\n output: _1passwordCreateItemOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;GAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;GACzD,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,CAWS;CACP,QAXsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACnE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-item.mjs","names":[],"sources":["../../src/actions/create-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordCreateItemInput = z.object({\n tags: z.array(z.string()).default([]).describe(\"Optional tags to apply to the item.\").optional(),\n title: z.string().describe(\"Title for the new item.\"),\n fields: z.array(z.object({\n title: z.string().describe(\"Label for the field (e.g. 'username', 'password').\"),\n value: z.string().describe(\"Value to store in the field.\"),\n concealed: z.boolean().default(false).describe(\"Set to true for sensitive values like passwords (stored as CONCEALED type).\").optional(),\n})).default([]).describe(\"Fields to add to the item.\").optional(),\n category: z.string().default(\"LOGIN\").describe(\"Item category. One of: LOGIN, PASSWORD, SECURE_NOTE, API_CREDENTIAL, DATABASE.\").optional(),\n vault_id: z.string().describe(\"ID of the vault to create the item in.\"),\n});\nexport const _1passwordCreateItemOutput = z.object({\n id: z.string().describe(\"ID of the newly created item.\").nullable(),\n title: z.string().describe(\"Title of the created item.\").nullable(),\n vault_id: z.string().describe(\"Vault ID the item was created in.\").nullable(),\n});\n\nexport const _1passwordCreateItem = action(\"_1PASSWORD_CREATE_ITEM\", {\n slug: \"_1password-create-item\",\n name: \"Create Item\",\n description: \"Creates a new item in a 1Password vault.\",\n input: _1passwordCreateItemInput,\n output: _1passwordCreateItemOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;GAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;GACzD,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,CAWS;CACP,QAXwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,CAOU;AACV,CAAC"}
@@ -6,8 +6,8 @@ const _1passwordDeleteItemInput = zod.z.object({
6
6
  vault_id: zod.z.string().describe("ID of the vault containing the item.")
7
7
  });
8
8
  const _1passwordDeleteItemOutput = zod.z.object({
9
- item_id: zod.z.string().describe("ID of the deleted item."),
10
- success: zod.z.boolean().describe("Whether the item was deleted successfully.")
9
+ item_id: zod.z.string().describe("ID of the deleted item.").nullable(),
10
+ success: zod.z.boolean().describe("Whether the item was deleted successfully.").nullable()
11
11
  });
12
12
  const _1passwordDeleteItem = require_action.action("_1PASSWORD_DELETE_ITEM", {
13
13
  slug: "_1password-delete-item",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.cjs","names":["z","action"],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordDeleteItemInput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the item to delete.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordDeleteItemOutput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the deleted item.\"),\n success: z.boolean().describe(\"Whether the item was deleted successfully.\"),\n});\n\nexport const _1passwordDeleteItem = action(\"_1PASSWORD_DELETE_ITEM\", {\n slug: \"_1password-delete-item\",\n name: \"Delete Item\",\n description: \"Permanently deletes an item from a 1Password vault.\",\n input: _1passwordDeleteItemInput,\n output: _1passwordDeleteItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;AAC5E,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-item.cjs","names":["z","action"],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordDeleteItemInput = z.object({\n item_id: z.string().describe(\"ID of the item to delete.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordDeleteItemOutput = z.object({\n item_id: z.string().describe(\"ID of the deleted item.\").nullable(),\n success: z.boolean().describe(\"Whether the item was deleted successfully.\").nullable(),\n});\n\nexport const _1passwordDeleteItem = action(\"_1PASSWORD_DELETE_ITEM\", {\n slug: \"_1password-delete-item\",\n name: \"Delete Item\",\n description: \"Permanently deletes an item from a 1Password vault.\",\n input: _1passwordDeleteItemInput,\n output: _1passwordDeleteItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-item.d.ts
4
- declare const _1passwordDeleteItemInput: z.ZodTypeAny;
5
- declare const _1passwordDeleteItemOutput: z.ZodTypeAny;
6
- declare const _1passwordDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordDeleteItemInput: z.ZodObject<{
5
+ item_id: z.ZodString;
6
+ vault_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const _1passwordDeleteItemOutput: z.ZodObject<{
9
+ item_id: z.ZodNullable<z.ZodString>;
10
+ success: z.ZodNullable<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ declare const _1passwordDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ item_id: string;
14
+ vault_id: string;
15
+ }, {
16
+ item_id: string | null;
17
+ success: boolean | null;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { _1passwordDeleteItem };
9
21
  //# sourceMappingURL=delete-item.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.d.cts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-item.d.cts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-item.d.ts
4
- declare const _1passwordDeleteItemInput: z.ZodTypeAny;
5
- declare const _1passwordDeleteItemOutput: z.ZodTypeAny;
6
- declare const _1passwordDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordDeleteItemInput: z.ZodObject<{
5
+ item_id: z.ZodString;
6
+ vault_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const _1passwordDeleteItemOutput: z.ZodObject<{
9
+ item_id: z.ZodNullable<z.ZodString>;
10
+ success: z.ZodNullable<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ declare const _1passwordDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ item_id: string;
14
+ vault_id: string;
15
+ }, {
16
+ item_id: string | null;
17
+ success: boolean | null;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { _1passwordDeleteItem };
9
21
  //# sourceMappingURL=delete-item.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.d.mts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-item.d.mts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -9,8 +9,8 @@ const _1passwordDeleteItem = action("_1PASSWORD_DELETE_ITEM", {
9
9
  vault_id: z.string().describe("ID of the vault containing the item.")
10
10
  }),
11
11
  output: z.object({
12
- item_id: z.string().describe("ID of the deleted item."),
13
- success: z.boolean().describe("Whether the item was deleted successfully.")
12
+ item_id: z.string().describe("ID of the deleted item.").nullable(),
13
+ success: z.boolean().describe("Whether the item was deleted successfully.").nullable()
14
14
  })
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.mjs","names":[],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordDeleteItemInput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the item to delete.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordDeleteItemOutput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the deleted item.\"),\n success: z.boolean().describe(\"Whether the item was deleted successfully.\"),\n});\n\nexport const _1passwordDeleteItem = action(\"_1PASSWORD_DELETE_ITEM\", {\n slug: \"_1password-delete-item\",\n name: \"Delete Item\",\n description: \"Permanently deletes an item from a 1Password vault.\",\n input: _1passwordDeleteItemInput,\n output: _1passwordDeleteItemOutput,\n});\n"],"mappings":";;AAaA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAUS;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC5E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-item.mjs","names":[],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordDeleteItemInput = z.object({\n item_id: z.string().describe(\"ID of the item to delete.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordDeleteItemOutput = z.object({\n item_id: z.string().describe(\"ID of the deleted item.\").nullable(),\n success: z.boolean().describe(\"Whether the item was deleted successfully.\").nullable(),\n});\n\nexport const _1passwordDeleteItem = action(\"_1PASSWORD_DELETE_ITEM\", {\n slug: \"_1password-delete-item\",\n name: \"Delete Item\",\n description: \"Permanently deletes an item from a 1Password vault.\",\n input: _1passwordDeleteItemInput,\n output: _1passwordDeleteItemOutput,\n});\n"],"mappings":";;AAaA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAUS;CACP,QAVwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,CAOU;AACV,CAAC"}
@@ -6,18 +6,18 @@ const _1passwordGetItemInput = zod.z.object({
6
6
  vault_id: zod.z.string().describe("ID of the vault containing the item.")
7
7
  });
8
8
  const _1passwordGetItem_ItemFieldSchema = zod.z.object({
9
- id: zod.z.string().describe("Field ID."),
10
- title: zod.z.string().describe("Field label."),
11
- value: zod.z.string().default("").describe("Field value.").nullable().optional(),
12
- field_type: zod.z.string().describe("Field type (e.g. TEXT, CONCEALED, URL).")
9
+ id: zod.z.string().describe("Field ID.").nullable(),
10
+ title: zod.z.string().describe("Field label.").nullable(),
11
+ value: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().default("").describe("Field value.").optional()),
12
+ field_type: zod.z.string().describe("Field type (e.g. TEXT, CONCEALED, URL).").nullable()
13
13
  });
14
14
  const _1passwordGetItemOutput = zod.z.object({
15
- id: zod.z.string().describe("Item ID."),
16
- tags: zod.z.array(zod.z.string()).default([]).describe("Tags applied to the item.").nullable().optional(),
17
- title: zod.z.string().describe("Item title."),
18
- fields: zod.z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe("Item fields including secrets.").nullable().optional(),
19
- category: zod.z.string().describe("Item category."),
20
- vault_id: zod.z.string().describe("Vault ID the item belongs to.")
15
+ id: zod.z.string().describe("Item ID.").nullable(),
16
+ tags: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).default([]).describe("Tags applied to the item.").optional()),
17
+ title: zod.z.string().describe("Item title.").nullable(),
18
+ fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe("Item fields including secrets.").optional()),
19
+ category: zod.z.string().describe("Item category.").nullable(),
20
+ vault_id: zod.z.string().describe("Vault ID the item belongs to.").nullable()
21
21
  });
22
22
  const _1passwordGetItem = require_action.action("_1PASSWORD_GET_ITEM", {
23
23
  slug: "_1password-get-item",
@@ -1 +1 @@
1
- {"version":3,"file":"get-item.cjs","names":["z","action"],"sources":["../../src/actions/get-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordGetItemInput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the item to retrieve.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nconst _1passwordGetItem_ItemFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Field ID.\"),\n title: z.string().describe(\"Field label.\"),\n value: z.string().default(\"\").describe(\"Field value.\").nullable().optional(),\n field_type: z.string().describe(\"Field type (e.g. TEXT, CONCEALED, URL).\"),\n});\nexport const _1passwordGetItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item ID.\"),\n tags: z.array(z.string()).default([]).describe(\"Tags applied to the item.\").nullable().optional(),\n title: z.string().describe(\"Item title.\"),\n fields: z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe(\"Item fields including secrets.\").nullable().optional(),\n category: z.string().describe(\"Item category.\"),\n vault_id: z.string().describe(\"Vault ID the item belongs to.\"),\n});\n\nexport const _1passwordGetItem = action(\"_1PASSWORD_GET_ITEM\", {\n slug: \"_1password-get-item\",\n name: \"Get Item\",\n description: \"Retrieves a specific item from a vault, including all fields and secrets.\",\n input: _1passwordGetItemInput,\n output: _1passwordGetItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACnC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC3E,CAAC;AACD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;CAClC,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACxC,QAAQA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC/D,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-item.cjs","names":["z","action"],"sources":["../../src/actions/get-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordGetItemInput = z.object({\n item_id: z.string().describe(\"ID of the item to retrieve.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nconst _1passwordGetItem_ItemFieldSchema = z.object({\n id: z.string().describe(\"Field ID.\").nullable(),\n title: z.string().describe(\"Field label.\").nullable(),\n value: z.preprocess((value) => (value === null ? undefined : value), z.string().default(\"\").describe(\"Field value.\").optional()),\n field_type: z.string().describe(\"Field type (e.g. TEXT, CONCEALED, URL).\").nullable(),\n});\nexport const _1passwordGetItemOutput = z.object({\n id: z.string().describe(\"Item ID.\").nullable(),\n tags: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).default([]).describe(\"Tags applied to the item.\").optional()),\n title: z.string().describe(\"Item title.\").nullable(),\n fields: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe(\"Item fields including secrets.\").optional()),\n category: z.string().describe(\"Item category.\").nullable(),\n vault_id: z.string().describe(\"Vault ID the item belongs to.\").nullable(),\n});\n\nexport const _1passwordGetItem = action(\"_1PASSWORD_GET_ITEM\", {\n slug: \"_1password-get-item\",\n name: \"Get Item\",\n description: \"Retrieves a specific item from a vault, including all fields and secrets.\",\n input: _1passwordGetItemInput,\n output: _1passwordGetItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CAC/H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACtF,CAAC;AACD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC7C,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CACpJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACnD,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CAClL,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC1E,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-item.d.ts
4
- declare const _1passwordGetItemInput: z.ZodTypeAny;
5
- declare const _1passwordGetItemOutput: z.ZodTypeAny;
6
- declare const _1passwordGetItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordGetItemInput: z.ZodObject<{
5
+ item_id: z.ZodString;
6
+ vault_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const _1passwordGetItemOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ tags: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>>;
11
+ title: z.ZodNullable<z.ZodString>;
12
+ fields: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ title: z.ZodNullable<z.ZodString>;
15
+ value: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
16
+ field_type: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>>>>;
18
+ category: z.ZodNullable<z.ZodString>;
19
+ vault_id: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ declare const _1passwordGetItem: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ item_id: string;
23
+ vault_id: string;
24
+ }, {
25
+ id: string | null;
26
+ title: string | null;
27
+ category: string | null;
28
+ vault_id: string | null;
29
+ tags?: string[] | undefined;
30
+ fields?: {
31
+ id: string | null;
32
+ title: string | null;
33
+ field_type: string | null;
34
+ value?: string | undefined;
35
+ }[] | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { _1passwordGetItem };
9
39
  //# sourceMappingURL=get-item.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-item.d.cts","names":[],"sources":["../../src/actions/get-item.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAOW,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-item.d.cts","names":[],"sources":["../../src/actions/get-item.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAUtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-item.d.ts
4
- declare const _1passwordGetItemInput: z.ZodTypeAny;
5
- declare const _1passwordGetItemOutput: z.ZodTypeAny;
6
- declare const _1passwordGetItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordGetItemInput: z.ZodObject<{
5
+ item_id: z.ZodString;
6
+ vault_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const _1passwordGetItemOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ tags: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>>;
11
+ title: z.ZodNullable<z.ZodString>;
12
+ fields: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ title: z.ZodNullable<z.ZodString>;
15
+ value: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
16
+ field_type: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>>>>;
18
+ category: z.ZodNullable<z.ZodString>;
19
+ vault_id: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ declare const _1passwordGetItem: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ item_id: string;
23
+ vault_id: string;
24
+ }, {
25
+ id: string | null;
26
+ title: string | null;
27
+ category: string | null;
28
+ vault_id: string | null;
29
+ tags?: string[] | undefined;
30
+ fields?: {
31
+ id: string | null;
32
+ title: string | null;
33
+ field_type: string | null;
34
+ value?: string | undefined;
35
+ }[] | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { _1passwordGetItem };
9
39
  //# sourceMappingURL=get-item.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-item.d.mts","names":[],"sources":["../../src/actions/get-item.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAOW,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-item.d.mts","names":[],"sources":["../../src/actions/get-item.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAUtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA"}
@@ -6,10 +6,10 @@ const _1passwordGetItemInput = z.object({
6
6
  vault_id: z.string().describe("ID of the vault containing the item.")
7
7
  });
8
8
  const _1passwordGetItem_ItemFieldSchema = z.object({
9
- id: z.string().describe("Field ID."),
10
- title: z.string().describe("Field label."),
11
- value: z.string().default("").describe("Field value.").nullable().optional(),
12
- field_type: z.string().describe("Field type (e.g. TEXT, CONCEALED, URL).")
9
+ id: z.string().describe("Field ID.").nullable(),
10
+ title: z.string().describe("Field label.").nullable(),
11
+ value: z.preprocess((value) => value === null ? void 0 : value, z.string().default("").describe("Field value.").optional()),
12
+ field_type: z.string().describe("Field type (e.g. TEXT, CONCEALED, URL).").nullable()
13
13
  });
14
14
  const _1passwordGetItem = action("_1PASSWORD_GET_ITEM", {
15
15
  slug: "_1password-get-item",
@@ -17,12 +17,12 @@ const _1passwordGetItem = action("_1PASSWORD_GET_ITEM", {
17
17
  description: "Retrieves a specific item from a vault, including all fields and secrets.",
18
18
  input: _1passwordGetItemInput,
19
19
  output: z.object({
20
- id: z.string().describe("Item ID."),
21
- tags: z.array(z.string()).default([]).describe("Tags applied to the item.").nullable().optional(),
22
- title: z.string().describe("Item title."),
23
- fields: z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe("Item fields including secrets.").nullable().optional(),
24
- category: z.string().describe("Item category."),
25
- vault_id: z.string().describe("Vault ID the item belongs to.")
20
+ id: z.string().describe("Item ID.").nullable(),
21
+ tags: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).default([]).describe("Tags applied to the item.").optional()),
22
+ title: z.string().describe("Item title.").nullable(),
23
+ fields: z.preprocess((value) => value === null ? void 0 : value, z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe("Item fields including secrets.").optional()),
24
+ category: z.string().describe("Item category.").nullable(),
25
+ vault_id: z.string().describe("Vault ID the item belongs to.").nullable()
26
26
  })
27
27
  });
28
28
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-item.mjs","names":[],"sources":["../../src/actions/get-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordGetItemInput: z.ZodTypeAny = z.object({\n item_id: z.string().describe(\"ID of the item to retrieve.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nconst _1passwordGetItem_ItemFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Field ID.\"),\n title: z.string().describe(\"Field label.\"),\n value: z.string().default(\"\").describe(\"Field value.\").nullable().optional(),\n field_type: z.string().describe(\"Field type (e.g. TEXT, CONCEALED, URL).\"),\n});\nexport const _1passwordGetItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item ID.\"),\n tags: z.array(z.string()).default([]).describe(\"Tags applied to the item.\").nullable().optional(),\n title: z.string().describe(\"Item title.\"),\n fields: z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe(\"Item fields including secrets.\").nullable().optional(),\n category: z.string().describe(\"Item category.\"),\n vault_id: z.string().describe(\"Vault ID the item belongs to.\"),\n});\n\nexport const _1passwordGetItem = action(\"_1PASSWORD_GET_ITEM\", {\n slug: \"_1password-get-item\",\n name: \"Get Item\",\n description: \"Retrieves a specific item from a vault, including all fields and secrets.\",\n input: _1passwordGetItemInput,\n output: _1passwordGetItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACnC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC3E,CAAC;AAUD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;EAClC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACxC,QAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-item.mjs","names":[],"sources":["../../src/actions/get-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordGetItemInput = z.object({\n item_id: z.string().describe(\"ID of the item to retrieve.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nconst _1passwordGetItem_ItemFieldSchema = z.object({\n id: z.string().describe(\"Field ID.\").nullable(),\n title: z.string().describe(\"Field label.\").nullable(),\n value: z.preprocess((value) => (value === null ? undefined : value), z.string().default(\"\").describe(\"Field value.\").optional()),\n field_type: z.string().describe(\"Field type (e.g. TEXT, CONCEALED, URL).\").nullable(),\n});\nexport const _1passwordGetItemOutput = z.object({\n id: z.string().describe(\"Item ID.\").nullable(),\n tags: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).default([]).describe(\"Tags applied to the item.\").optional()),\n title: z.string().describe(\"Item title.\").nullable(),\n fields: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordGetItem_ItemFieldSchema).default([]).describe(\"Item fields including secrets.\").optional()),\n category: z.string().describe(\"Item category.\").nullable(),\n vault_id: z.string().describe(\"Vault ID the item belongs to.\").nullable(),\n});\n\nexport const _1passwordGetItem = action(\"_1PASSWORD_GET_ITEM\", {\n slug: \"_1password-get-item\",\n name: \"Get Item\",\n description: \"Retrieves a specific item from a vault, including all fields and secrets.\",\n input: _1passwordGetItemInput,\n output: _1passwordGetItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACtF,CAAC;AAUD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EAC7C,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;EACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;EAClL,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,CAOU;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/list-items.ts
4
4
  const _1passwordListItemsInput = zod.z.object({ vault_id: zod.z.string().describe("ID of the vault to list items from.") });
5
5
  const _1passwordListItems_ItemSummarySchema = zod.z.object({
6
- id: zod.z.string().describe("Unique item ID."),
7
- title: zod.z.string().describe("Item title."),
8
- category: zod.z.string().describe("Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).")
6
+ id: zod.z.string().describe("Unique item ID.").nullable(),
7
+ title: zod.z.string().describe("Item title.").nullable(),
8
+ category: zod.z.string().describe("Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).").nullable()
9
9
  });
10
- const _1passwordListItemsOutput = zod.z.object({ items: zod.z.array(_1passwordListItems_ItemSummarySchema).default([]).describe("Items in the vault.").nullable().optional() });
10
+ const _1passwordListItemsOutput = zod.z.object({ items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(_1passwordListItems_ItemSummarySchema).default([]).describe("Items in the vault.").optional()) });
11
11
  const _1passwordListItems = require_action.action("_1PASSWORD_LIST_ITEMS", {
12
12
  slug: "_1password-list-items",
13
13
  name: "List Items",
@@ -1 +1 @@
1
- {"version":3,"file":"list-items.cjs","names":["z","action"],"sources":["../../src/actions/list-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListItemsInput: z.ZodTypeAny = z.object({\n vault_id: z.string().describe(\"ID of the vault to list items from.\"),\n});\nconst _1passwordListItems_ItemSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique item ID.\"),\n title: z.string().describe(\"Item title.\"),\n category: z.string().describe(\"Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).\"),\n});\nexport const _1passwordListItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(_1passwordListItems_ItemSummarySchema).default([]).describe(\"Items in the vault.\").nullable().optional(),\n});\n\nexport const _1passwordListItems = action(\"_1PASSWORD_LIST_ITEMS\", {\n slug: \"_1password-list-items\",\n name: \"List Items\",\n description: \"Lists all items in a given vault.\",\n input: _1passwordListItemsInput,\n output: _1passwordListItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACxC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACpF,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,OAAOA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-items.cjs","names":["z","action"],"sources":["../../src/actions/list-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListItemsInput = z.object({\n vault_id: z.string().describe(\"ID of the vault to list items from.\"),\n});\nconst _1passwordListItems_ItemSummarySchema = z.object({\n id: z.string().describe(\"Unique item ID.\").nullable(),\n title: z.string().describe(\"Item title.\").nullable(),\n category: z.string().describe(\"Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).\").nullable(),\n});\nexport const _1passwordListItemsOutput = z.object({\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordListItems_ItemSummarySchema).default([]).describe(\"Items in the vault.\").optional()),\n});\n\nexport const _1passwordListItems = action(\"_1PASSWORD_LIST_ITEMS\", {\n slug: \"_1password-list-items\",\n name: \"List Items\",\n description: \"Lists all items in a given vault.\",\n input: _1passwordListItemsInput,\n output: _1passwordListItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC;AACD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,EAC5K,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-items.d.ts
4
- declare const _1passwordListItemsInput: z.ZodTypeAny;
5
- declare const _1passwordListItemsOutput: z.ZodTypeAny;
6
- declare const _1passwordListItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordListItemsInput: z.ZodObject<{
5
+ vault_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const _1passwordListItemsOutput: z.ZodObject<{
8
+ items: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodNullable<z.ZodString>;
11
+ category: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>>>>;
13
+ }, z.core.$strip>;
14
+ declare const _1passwordListItems: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ vault_id: string;
16
+ }, {
17
+ items?: {
18
+ id: string | null;
19
+ title: string | null;
20
+ category: string | null;
21
+ }[] | undefined;
22
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { _1passwordListItems };
9
25
  //# sourceMappingURL=list-items.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-items.d.cts","names":[],"sources":["../../src/actions/list-items.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAMW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-items.d.cts","names":[],"sources":["../../src/actions/list-items.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-items.d.ts
4
- declare const _1passwordListItemsInput: z.ZodTypeAny;
5
- declare const _1passwordListItemsOutput: z.ZodTypeAny;
6
- declare const _1passwordListItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordListItemsInput: z.ZodObject<{
5
+ vault_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const _1passwordListItemsOutput: z.ZodObject<{
8
+ items: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodNullable<z.ZodString>;
11
+ category: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>>>>;
13
+ }, z.core.$strip>;
14
+ declare const _1passwordListItems: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ vault_id: string;
16
+ }, {
17
+ items?: {
18
+ id: string | null;
19
+ title: string | null;
20
+ category: string | null;
21
+ }[] | undefined;
22
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { _1passwordListItems };
9
25
  //# sourceMappingURL=list-items.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-items.d.mts","names":[],"sources":["../../src/actions/list-items.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAMW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-items.d.mts","names":[],"sources":["../../src/actions/list-items.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -3,16 +3,16 @@ import { z } from "zod";
3
3
  //#region src/actions/list-items.ts
4
4
  const _1passwordListItemsInput = z.object({ vault_id: z.string().describe("ID of the vault to list items from.") });
5
5
  const _1passwordListItems_ItemSummarySchema = z.object({
6
- id: z.string().describe("Unique item ID."),
7
- title: z.string().describe("Item title."),
8
- category: z.string().describe("Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).")
6
+ id: z.string().describe("Unique item ID.").nullable(),
7
+ title: z.string().describe("Item title.").nullable(),
8
+ category: z.string().describe("Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).").nullable()
9
9
  });
10
10
  const _1passwordListItems = action("_1PASSWORD_LIST_ITEMS", {
11
11
  slug: "_1password-list-items",
12
12
  name: "List Items",
13
13
  description: "Lists all items in a given vault.",
14
14
  input: _1passwordListItemsInput,
15
- output: z.object({ items: z.array(_1passwordListItems_ItemSummarySchema).default([]).describe("Items in the vault.").nullable().optional() })
15
+ output: z.object({ items: z.preprocess((value) => value === null ? void 0 : value, z.array(_1passwordListItems_ItemSummarySchema).default([]).describe("Items in the vault.").optional()) })
16
16
  });
17
17
  //#endregion
18
18
  export { _1passwordListItems };
@@ -1 +1 @@
1
- {"version":3,"file":"list-items.mjs","names":[],"sources":["../../src/actions/list-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListItemsInput: z.ZodTypeAny = z.object({\n vault_id: z.string().describe(\"ID of the vault to list items from.\"),\n});\nconst _1passwordListItems_ItemSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique item ID.\"),\n title: z.string().describe(\"Item title.\"),\n category: z.string().describe(\"Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).\"),\n});\nexport const _1passwordListItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(_1passwordListItems_ItemSummarySchema).default([]).describe(\"Items in the vault.\").nullable().optional(),\n});\n\nexport const _1passwordListItems = action(\"_1PASSWORD_LIST_ITEMS\", {\n slug: \"_1password-list-items\",\n name: \"List Items\",\n description: \"Lists all items in a given vault.\",\n input: _1passwordListItemsInput,\n output: _1passwordListItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACxC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACpF,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-items.mjs","names":[],"sources":["../../src/actions/list-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListItemsInput = z.object({\n vault_id: z.string().describe(\"ID of the vault to list items from.\"),\n});\nconst _1passwordListItems_ItemSummarySchema = z.object({\n id: z.string().describe(\"Unique item ID.\").nullable(),\n title: z.string().describe(\"Item title.\").nullable(),\n category: z.string().describe(\"Item category (e.g. LOGIN, PASSWORD, SECURE_NOTE).\").nullable(),\n});\nexport const _1passwordListItemsOutput = z.object({\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordListItems_ItemSummarySchema).default([]).describe(\"Items in the vault.\").optional()),\n});\n\nexport const _1passwordListItems = action(\"_1PASSWORD_LIST_ITEMS\", {\n slug: \"_1password-list-items\",\n name: \"List Items\",\n description: \"Lists all items in a given vault.\",\n input: _1passwordListItemsInput,\n output: _1passwordListItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC;AACD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,EAC5K,CAOU;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/list-vaults.ts
4
4
  const _1passwordListVaultsInput = zod.z.object({});
5
5
  const _1passwordListVaults_VaultItemSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique vault ID."),
7
- name: zod.z.string().describe("Display name of the vault."),
8
- description: zod.z.string().default("").describe("Optional vault description.").nullable().optional()
6
+ id: zod.z.string().describe("Unique vault ID.").nullable(),
7
+ name: zod.z.string().describe("Display name of the vault.").nullable(),
8
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().default("").describe("Optional vault description.").optional())
9
9
  });
10
- const _1passwordListVaultsOutput = zod.z.object({ vaults: zod.z.array(_1passwordListVaults_VaultItemSchema).default([]).describe("All vaults accessible to the service account.").nullable().optional() });
10
+ const _1passwordListVaultsOutput = zod.z.object({ vaults: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(_1passwordListVaults_VaultItemSchema).default([]).describe("All vaults accessible to the service account.").optional()) });
11
11
  const _1passwordListVaults = require_action.action("_1PASSWORD_LIST_VAULTS", {
12
12
  slug: "_1password-list-vaults",
13
13
  name: "List Vaults",
@@ -1 +1 @@
1
- {"version":3,"file":"list-vaults.cjs","names":["z","action"],"sources":["../../src/actions/list-vaults.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListVaultsInput: z.ZodTypeAny = z.object({});\nconst _1passwordListVaults_VaultItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique vault ID.\"),\n name: z.string().describe(\"Display name of the vault.\"),\n description: z.string().default(\"\").describe(\"Optional vault description.\").nullable().optional(),\n});\nexport const _1passwordListVaultsOutput: z.ZodTypeAny = z.object({\n vaults: z.array(_1passwordListVaults_VaultItemSchema).default([]).describe(\"All vaults accessible to the service account.\").nullable().optional(),\n});\n\nexport const _1passwordListVaults = action(\"_1PASSWORD_LIST_VAULTS\", {\n slug: \"_1password-list-vaults\",\n name: \"List Vaults\",\n description: \"Lists all vaults the service account has access to.\",\n input: _1passwordListVaultsInput,\n output: _1passwordListVaultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAClE,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClJ,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-vaults.cjs","names":["z","action"],"sources":["../../src/actions/list-vaults.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListVaultsInput = z.object({});\nconst _1passwordListVaults_VaultItemSchema = z.object({\n id: z.string().describe(\"Unique vault ID.\").nullable(),\n name: z.string().describe(\"Display name of the vault.\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().default(\"\").describe(\"Optional vault description.\").optional()),\n});\nexport const _1passwordListVaultsOutput = z.object({\n vaults: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordListVaults_VaultItemSchema).default([]).describe(\"All vaults accessible to the service account.\").optional()),\n});\n\nexport const _1passwordListVaults = action(\"_1PASSWORD_LIST_VAULTS\", {\n slug: \"_1password-list-vaults\",\n name: \"List Vaults\",\n description: \"Lists all vaults the service account has access to.\",\n input: _1passwordListVaultsInput,\n output: _1passwordListVaultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACpD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;AACtJ,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,EACtM,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-vaults.d.ts
4
- declare const _1passwordListVaultsInput: z.ZodTypeAny;
5
- declare const _1passwordListVaultsOutput: z.ZodTypeAny;
6
- declare const _1passwordListVaults: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordListVaultsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const _1passwordListVaultsOutput: z.ZodObject<{
6
+ vaults: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
10
+ }, z.core.$strip>>>>>;
11
+ }, z.core.$strip>;
12
+ declare const _1passwordListVaults: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
13
+ vaults?: {
14
+ id: string | null;
15
+ name: string | null;
16
+ description?: string | undefined;
17
+ }[] | undefined;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { _1passwordListVaults };
9
21
  //# sourceMappingURL=list-vaults.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-vaults.d.cts","names":[],"sources":["../../src/actions/list-vaults.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAyB;AAAA,cAMtD,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-vaults.d.cts","names":[],"sources":["../../src/actions/list-vaults.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-vaults.d.ts
4
- declare const _1passwordListVaultsInput: z.ZodTypeAny;
5
- declare const _1passwordListVaultsOutput: z.ZodTypeAny;
6
- declare const _1passwordListVaults: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordListVaultsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const _1passwordListVaultsOutput: z.ZodObject<{
6
+ vaults: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
10
+ }, z.core.$strip>>>>>;
11
+ }, z.core.$strip>;
12
+ declare const _1passwordListVaults: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
13
+ vaults?: {
14
+ id: string | null;
15
+ name: string | null;
16
+ description?: string | undefined;
17
+ }[] | undefined;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { _1passwordListVaults };
9
21
  //# sourceMappingURL=list-vaults.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-vaults.d.mts","names":[],"sources":["../../src/actions/list-vaults.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAyB;AAAA,cAMtD,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-vaults.d.mts","names":[],"sources":["../../src/actions/list-vaults.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA"}
@@ -3,16 +3,16 @@ import { z } from "zod";
3
3
  //#region src/actions/list-vaults.ts
4
4
  const _1passwordListVaultsInput = z.object({});
5
5
  const _1passwordListVaults_VaultItemSchema = z.object({
6
- id: z.string().describe("Unique vault ID."),
7
- name: z.string().describe("Display name of the vault."),
8
- description: z.string().default("").describe("Optional vault description.").nullable().optional()
6
+ id: z.string().describe("Unique vault ID.").nullable(),
7
+ name: z.string().describe("Display name of the vault.").nullable(),
8
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().default("").describe("Optional vault description.").optional())
9
9
  });
10
10
  const _1passwordListVaults = action("_1PASSWORD_LIST_VAULTS", {
11
11
  slug: "_1password-list-vaults",
12
12
  name: "List Vaults",
13
13
  description: "Lists all vaults the service account has access to.",
14
14
  input: _1passwordListVaultsInput,
15
- output: z.object({ vaults: z.array(_1passwordListVaults_VaultItemSchema).default([]).describe("All vaults accessible to the service account.").nullable().optional() })
15
+ output: z.object({ vaults: z.preprocess((value) => value === null ? void 0 : value, z.array(_1passwordListVaults_VaultItemSchema).default([]).describe("All vaults accessible to the service account.").optional()) })
16
16
  });
17
17
  //#endregion
18
18
  export { _1passwordListVaults };
@@ -1 +1 @@
1
- {"version":3,"file":"list-vaults.mjs","names":[],"sources":["../../src/actions/list-vaults.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListVaultsInput: z.ZodTypeAny = z.object({});\nconst _1passwordListVaults_VaultItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique vault ID.\"),\n name: z.string().describe(\"Display name of the vault.\"),\n description: z.string().default(\"\").describe(\"Optional vault description.\").nullable().optional(),\n});\nexport const _1passwordListVaultsOutput: z.ZodTypeAny = z.object({\n vaults: z.array(_1passwordListVaults_VaultItemSchema).default([]).describe(\"All vaults accessible to the service account.\").nullable().optional(),\n});\n\nexport const _1passwordListVaults = action(\"_1PASSWORD_LIST_VAULTS\", {\n slug: \"_1password-list-vaults\",\n name: \"List Vaults\",\n description: \"Lists all vaults the service account has access to.\",\n input: _1passwordListVaultsInput,\n output: _1passwordListVaultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,CAAC,CAAC;AAClE,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClJ,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-vaults.mjs","names":[],"sources":["../../src/actions/list-vaults.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordListVaultsInput = z.object({});\nconst _1passwordListVaults_VaultItemSchema = z.object({\n id: z.string().describe(\"Unique vault ID.\").nullable(),\n name: z.string().describe(\"Display name of the vault.\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().default(\"\").describe(\"Optional vault description.\").optional()),\n});\nexport const _1passwordListVaultsOutput = z.object({\n vaults: z.preprocess((value) => (value === null ? undefined : value), z.array(_1passwordListVaults_VaultItemSchema).default([]).describe(\"All vaults accessible to the service account.\").optional()),\n});\n\nexport const _1passwordListVaults = action(\"_1PASSWORD_LIST_VAULTS\", {\n slug: \"_1password-list-vaults\",\n name: \"List Vaults\",\n description: \"Lists all vaults the service account has access to.\",\n input: _1passwordListVaultsInput,\n output: _1passwordListVaultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC;AACpD,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;AACtJ,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,EACtM,CAOU;AACV,CAAC"}
@@ -11,9 +11,9 @@ const _1passwordUpdateItemInput = zod.z.object({
11
11
  vault_id: zod.z.string().describe("ID of the vault containing the item.")
12
12
  });
13
13
  const _1passwordUpdateItemOutput = zod.z.object({
14
- id: zod.z.string().describe("Item ID."),
15
- title: zod.z.string().describe("Updated item title."),
16
- vault_id: zod.z.string().describe("Vault ID.")
14
+ id: zod.z.string().describe("Item ID.").nullable(),
15
+ title: zod.z.string().describe("Updated item title.").nullable(),
16
+ vault_id: zod.z.string().describe("Vault ID.").nullable()
17
17
  });
18
18
  const _1passwordUpdateItem = require_action.action("_1PASSWORD_UPDATE_ITEM", {
19
19
  slug: "_1password-update-item",
@@ -1 +1 @@
1
- {"version":3,"file":"update-item.cjs","names":["z","action"],"sources":["../../src/actions/update-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordUpdateItemInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the item. Omit to keep existing title.\").optional(),\n fields: z.array(z.object({\n title: z.string().describe(\"Label of the field to update.\"),\n value: z.string().describe(\"New value for the field.\"),\n})).default([]).describe(\"Fields to update. Matched by title; updates value if found.\").optional(),\n item_id: z.string().describe(\"ID of the item to update.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordUpdateItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item ID.\"),\n title: z.string().describe(\"Updated item title.\"),\n vault_id: z.string().describe(\"Vault ID.\"),\n});\n\nexport const _1passwordUpdateItem = action(\"_1PASSWORD_UPDATE_ITEM\", {\n slug: \"_1password-update-item\",\n name: \"Update Item\",\n description: \"Updates an existing item's title or field values.\",\n input: _1passwordUpdateItemInput,\n output: _1passwordUpdateItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACvD,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;CAClC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC3C,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-item.cjs","names":["z","action"],"sources":["../../src/actions/update-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordUpdateItemInput = z.object({\n title: z.string().describe(\"New title for the item. Omit to keep existing title.\").optional(),\n fields: z.array(z.object({\n title: z.string().describe(\"Label of the field to update.\"),\n value: z.string().describe(\"New value for the field.\"),\n})).default([]).describe(\"Fields to update. Matched by title; updates value if found.\").optional(),\n item_id: z.string().describe(\"ID of the item to update.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordUpdateItemOutput = z.object({\n id: z.string().describe(\"Item ID.\").nullable(),\n title: z.string().describe(\"Updated item title.\").nullable(),\n vault_id: z.string().describe(\"Vault ID.\").nullable(),\n});\n\nexport const _1passwordUpdateItem = action(\"_1PASSWORD_UPDATE_ITEM\", {\n slug: \"_1password-update-item\",\n name: \"Update Item\",\n description: \"Updates an existing item's title or field values.\",\n input: _1passwordUpdateItemInput,\n output: _1passwordUpdateItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACvD,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-item.d.ts
4
- declare const _1passwordUpdateItemInput: z.ZodTypeAny;
5
- declare const _1passwordUpdateItemOutput: z.ZodTypeAny;
6
- declare const _1passwordUpdateItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordUpdateItemInput: z.ZodObject<{
5
+ title: z.ZodOptional<z.ZodString>;
6
+ fields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
7
+ title: z.ZodString;
8
+ value: z.ZodString;
9
+ }, z.core.$strip>>>>;
10
+ item_id: z.ZodString;
11
+ vault_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const _1passwordUpdateItemOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ title: z.ZodNullable<z.ZodString>;
16
+ vault_id: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ declare const _1passwordUpdateItem: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ item_id: string;
20
+ vault_id: string;
21
+ title?: string | undefined;
22
+ fields?: {
23
+ title: string;
24
+ value: string;
25
+ }[] | undefined;
26
+ }, {
27
+ id: string | null;
28
+ title: string | null;
29
+ vault_id: string | null;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { _1passwordUpdateItem };
9
33
  //# sourceMappingURL=update-item.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-item.d.cts","names":[],"sources":["../../src/actions/update-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-item.d.cts","names":[],"sources":["../../src/actions/update-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-item.d.ts
4
- declare const _1passwordUpdateItemInput: z.ZodTypeAny;
5
- declare const _1passwordUpdateItemOutput: z.ZodTypeAny;
6
- declare const _1passwordUpdateItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const _1passwordUpdateItemInput: z.ZodObject<{
5
+ title: z.ZodOptional<z.ZodString>;
6
+ fields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
7
+ title: z.ZodString;
8
+ value: z.ZodString;
9
+ }, z.core.$strip>>>>;
10
+ item_id: z.ZodString;
11
+ vault_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const _1passwordUpdateItemOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ title: z.ZodNullable<z.ZodString>;
16
+ vault_id: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ declare const _1passwordUpdateItem: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ item_id: string;
20
+ vault_id: string;
21
+ title?: string | undefined;
22
+ fields?: {
23
+ title: string;
24
+ value: string;
25
+ }[] | undefined;
26
+ }, {
27
+ id: string | null;
28
+ title: string | null;
29
+ vault_id: string | null;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { _1passwordUpdateItem };
9
33
  //# sourceMappingURL=update-item.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-item.d.mts","names":[],"sources":["../../src/actions/update-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-item.d.mts","names":[],"sources":["../../src/actions/update-item.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -14,9 +14,9 @@ const _1passwordUpdateItem = action("_1PASSWORD_UPDATE_ITEM", {
14
14
  vault_id: z.string().describe("ID of the vault containing the item.")
15
15
  }),
16
16
  output: z.object({
17
- id: z.string().describe("Item ID."),
18
- title: z.string().describe("Updated item title."),
19
- vault_id: z.string().describe("Vault ID.")
17
+ id: z.string().describe("Item ID.").nullable(),
18
+ title: z.string().describe("Updated item title.").nullable(),
19
+ vault_id: z.string().describe("Vault ID.").nullable()
20
20
  })
21
21
  });
22
22
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"update-item.mjs","names":[],"sources":["../../src/actions/update-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordUpdateItemInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the item. Omit to keep existing title.\").optional(),\n fields: z.array(z.object({\n title: z.string().describe(\"Label of the field to update.\"),\n value: z.string().describe(\"New value for the field.\"),\n})).default([]).describe(\"Fields to update. Matched by title; updates value if found.\").optional(),\n item_id: z.string().describe(\"ID of the item to update.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordUpdateItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item ID.\"),\n title: z.string().describe(\"Updated item title.\"),\n vault_id: z.string().describe(\"Vault ID.\"),\n});\n\nexport const _1passwordUpdateItem = action(\"_1PASSWORD_UPDATE_ITEM\", {\n slug: \"_1password-update-item\",\n name: \"Update Item\",\n description: \"Updates an existing item's title or field values.\",\n input: _1passwordUpdateItemInput,\n output: _1passwordUpdateItemOutput,\n});\n"],"mappings":";;AAmBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBqD,EAAE,OAAO;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACvD,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAWS;CACP,QAXsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;EAClC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CAC3C,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-item.mjs","names":[],"sources":["../../src/actions/update-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _1passwordUpdateItemInput = z.object({\n title: z.string().describe(\"New title for the item. Omit to keep existing title.\").optional(),\n fields: z.array(z.object({\n title: z.string().describe(\"Label of the field to update.\"),\n value: z.string().describe(\"New value for the field.\"),\n})).default([]).describe(\"Fields to update. Matched by title; updates value if found.\").optional(),\n item_id: z.string().describe(\"ID of the item to update.\"),\n vault_id: z.string().describe(\"ID of the vault containing the item.\"),\n});\nexport const _1passwordUpdateItemOutput = z.object({\n id: z.string().describe(\"Item ID.\").nullable(),\n title: z.string().describe(\"Updated item title.\").nullable(),\n vault_id: z.string().describe(\"Vault ID.\").nullable(),\n});\n\nexport const _1passwordUpdateItem = action(\"_1PASSWORD_UPDATE_ITEM\", {\n slug: \"_1password-update-item\",\n name: \"Update Item\",\n description: \"Updates an existing item's title or field values.\",\n input: _1passwordUpdateItemInput,\n output: _1passwordUpdateItemOutput,\n});\n"],"mappings":";;AAmBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACvD,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAWS;CACP,QAXwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACtD,CAOU;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,19 @@ const _1passwordCatalog = {
7
7
  "category": "Security & Identity Tools",
8
8
  "logo": "https://logos.composio.dev/api/1password",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "full": {
13
+ "label": "Base URL",
14
+ "description": "For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server."
15
+ },
16
+ "api_key": {
17
+ "label": "Bearer Token",
18
+ "secret": true,
19
+ "description": "Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  exports._1passwordCatalog = _1passwordCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const _1passwordCatalog = {\n \"slug\": \"_1password\",\n \"name\": \"1password\",\n \"description\": \"Password manager and digital vault for secure credential storage and team collaboration\",\n \"category\": \"Security & Identity Tools\",\n \"logo\": \"https://logos.composio.dev/api/1password\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const _1passwordCatalog = {\n \"slug\": \"_1password\",\n \"name\": \"1password\",\n \"description\": \"Password manager and digital vault for secure credential storage and team collaboration\",\n \"category\": \"Security & Identity Tools\",\n \"logo\": \"https://logos.composio.dev/api/1password\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Base URL\",\n \"description\": \"For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server.\"\n },\n \"api_key\": {\n \"label\": \"Bearer Token\",\n \"secret\": true,\n \"description\": \"Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,18 @@ declare const _1passwordCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/1password";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly full: {
13
+ readonly label: "Base URL";
14
+ readonly description: "For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server.";
15
+ };
16
+ readonly api_key: {
17
+ readonly label: "Bearer Token";
18
+ readonly secret: true;
19
+ readonly description: "Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { _1passwordCatalog };
@@ -8,6 +8,18 @@ declare const _1passwordCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/1password";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly full: {
13
+ readonly label: "Base URL";
14
+ readonly description: "For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server.";
15
+ };
16
+ readonly api_key: {
17
+ readonly label: "Bearer Token";
18
+ readonly secret: true;
19
+ readonly description: "Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { _1passwordCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,19 @@ const _1passwordCatalog = {
7
7
  "category": "Security & Identity Tools",
8
8
  "logo": "https://logos.composio.dev/api/1password",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "full": {
13
+ "label": "Base URL",
14
+ "description": "For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server."
15
+ },
16
+ "api_key": {
17
+ "label": "Bearer Token",
18
+ "secret": true,
19
+ "description": "Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  export { _1passwordCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const _1passwordCatalog = {\n \"slug\": \"_1password\",\n \"name\": \"1password\",\n \"description\": \"Password manager and digital vault for secure credential storage and team collaboration\",\n \"category\": \"Security & Identity Tools\",\n \"logo\": \"https://logos.composio.dev/api/1password\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const _1passwordCatalog = {\n \"slug\": \"_1password\",\n \"name\": \"1password\",\n \"description\": \"Password manager and digital vault for secure credential storage and team collaboration\",\n \"category\": \"Security & Identity Tools\",\n \"logo\": \"https://logos.composio.dev/api/1password\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Base URL\",\n \"description\": \"For Connect Server: your self-hosted server URL (e.g., https://connect.example.com). For Events API: https://events.1password.com, https://events.ent.1password.com, https://events.1password.ca, or https://events.1password.eu based on your account server.\"\n },\n \"api_key\": {\n \"label\": \"Bearer Token\",\n \"secret\": true,\n \"description\": \"Service Account Token (ops_* prefix), Connect Server Access Token, or Events API Bearer Token. Get it from your 1Password account settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/_1password",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -30,20 +30,20 @@
30
30
  "require": "./dist/actions/index.cjs"
31
31
  }
32
32
  },
33
+ "scripts": {
34
+ "build": "tsdown",
35
+ "dev": "tsdown --watch --no-clean",
36
+ "typecheck": "tsc --noEmit"
37
+ },
33
38
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
39
+ "@keystrokehq/keystroke": ">=0.1.4",
35
40
  "zod": "^4.4.3"
36
41
  },
37
42
  "devDependencies": {
38
43
  "@keystrokehq/keystroke": "link:../../keystroke",
39
- "@types/node": "^25.9.1",
40
- "tsdown": "^0.22.0",
41
- "typescript": "^6.0.3",
42
- "zod": "^4.4.3"
43
- },
44
- "scripts": {
45
- "build": "tsdown",
46
- "dev": "tsdown --watch --no-clean",
47
- "typecheck": "tsc --noEmit"
44
+ "@types/node": "catalog:",
45
+ "tsdown": "catalog:",
46
+ "typescript": "catalog:",
47
+ "zod": "catalog:"
48
48
  }
49
- }
49
+ }