@keystrokehq/plasmic 0.1.4 → 0.1.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["plasmic","executePlasmicTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plasmic } from \"./app\";\nimport { executePlasmicTool } 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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return plasmic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlasmicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["plasmic","executePlasmicTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plasmic } from \"./app\";\nimport { executePlasmicTool } 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plasmic.credential> {\n return plasmic.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 executePlasmicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plasmic } from \"./app\";\nimport { executePlasmicTool } 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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return plasmic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlasmicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plasmic } from \"./app\";\nimport { executePlasmicTool } 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plasmic.credential> {\n return plasmic.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 executePlasmicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/global-actions-provider.ts
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.cjs","names":["z","action"],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"global-actions-provider.cjs","names":["z","action"],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plasmic } from \"../app\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider: AppAction<\n typeof PlasmicGlobalActionsProviderInput,\n typeof PlasmicGlobalActionsProviderOutput,\n typeof plasmic.credential\n> = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { plasmic } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/global-actions-provider.d.ts
@@ -10,13 +12,7 @@ declare const PlasmicGlobalActionsProviderInput: z.ZodObject<{
10
12
  declare const PlasmicGlobalActionsProviderOutput: z.ZodObject<{
11
13
  snippet: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const plasmicGlobalActionsProvider: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contexts: {
15
- [x: string]: unknown;
16
- name: string;
17
- provider: string;
18
- }[];
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const plasmicGlobalActionsProvider: AppAction<typeof PlasmicGlobalActionsProviderInput, typeof PlasmicGlobalActionsProviderOutput, typeof plasmic.credential>;
20
16
  //#endregion
21
17
  export { plasmicGlobalActionsProvider };
22
18
  //# sourceMappingURL=global-actions-provider.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.d.cts","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAMjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"global-actions-provider.d.cts","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAMjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plasmic } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/global-actions-provider.d.ts
@@ -10,13 +12,7 @@ declare const PlasmicGlobalActionsProviderInput: z.ZodObject<{
10
12
  declare const PlasmicGlobalActionsProviderOutput: z.ZodObject<{
11
13
  snippet: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const plasmicGlobalActionsProvider: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contexts: {
15
- [x: string]: unknown;
16
- name: string;
17
- provider: string;
18
- }[];
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const plasmicGlobalActionsProvider: AppAction<typeof PlasmicGlobalActionsProviderInput, typeof PlasmicGlobalActionsProviderOutput, typeof plasmic.credential>;
20
16
  //#endregion
21
17
  export { plasmicGlobalActionsProvider };
22
18
  //# sourceMappingURL=global-actions-provider.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.d.mts","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAMjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"global-actions-provider.d.mts","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAMjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const plasmicGlobalActionsProvider = action("PLASMIC_GLOBAL_ACTIONS_PROVIDER", {
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.mjs","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"global-actions-provider.mjs","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plasmic } from \"../app\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider: AppAction<\n typeof PlasmicGlobalActionsProviderInput,\n typeof PlasmicGlobalActionsProviderOutput,\n typeof plasmic.credential\n> = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DAaH;CACP,QAbgD,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,14 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const plasmic = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const credential = {
5
+ generic_api_key: zod.z.string(),
6
+ generic_id: zod.z.string()
7
+ };
8
+ const plasmic = (0, _keystrokehq_keystroke_app.defineApp)({
3
9
  slug: "plasmic",
4
- auth: "keystroke"
10
+ auth: "keystroke",
11
+ credential
5
12
  });
6
13
  //#endregion
7
14
  exports.plasmic = plasmic;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plasmic = defineApp({\n slug: \"plasmic\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const plasmic: KeystrokeApp<\"plasmic\", typeof credential> = defineApp({\n slug: \"plasmic\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const plasmic: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const plasmic: KeystrokeApp<"plasmic", typeof credential>;
3
10
  //#endregion
4
11
  export { plasmic };
5
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const plasmic: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const plasmic: KeystrokeApp<"plasmic", typeof credential>;
3
10
  //#endregion
4
11
  export { plasmic };
5
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,12 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const plasmic = defineApp({
4
4
  slug: "plasmic",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: {
7
+ generic_api_key: z.string(),
8
+ generic_id: z.string()
9
+ }
6
10
  });
7
11
  //#endregion
8
12
  export { plasmic };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plasmic = defineApp({\n slug: \"plasmic\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const plasmic: KeystrokeApp<\"plasmic\", typeof credential> = defineApp({\n slug: \"plasmic\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { plasmicGlobalActionsProvider } from "./actions/global-actions-provider.cjs";
2
1
  import { plasmic } from "./app.cjs";
2
+ import { plasmicGlobalActionsProvider } from "./actions/global-actions-provider.cjs";
3
3
  import { plasmicCatalog } from "./catalog.cjs";
4
4
  export { plasmic, plasmicCatalog, plasmicGlobalActionsProvider };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { plasmicGlobalActionsProvider } from "./actions/global-actions-provider.mjs";
2
1
  import { plasmic } from "./app.mjs";
2
+ import { plasmicGlobalActionsProvider } from "./actions/global-actions-provider.mjs";
3
3
  import { plasmicCatalog } from "./catalog.mjs";
4
4
  export { plasmic, plasmicCatalog, plasmicGlobalActionsProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/plasmic",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {