{"version":3,"file":"get-component-status.cjs","names":["z","action"],"sources":["../../src/actions/get-component-status.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { snowflake } from \"../app\";\n\nexport const SnowflakeGetComponentStatusInput = z.object({\n  limit: z.number().int().describe(\"Limit number of components returned.\").optional(),\n});\nconst SnowflakeGetComponentStatus_PageSchema = z.object({\n  id: z.string().describe(\"The unique identifier of the page.\").nullable(),\n  url: z.string().describe(\"The URL of the page.\").nullable(),\n  name: z.string().describe(\"The name of the page.\").nullable(),\n  updated_at: z.string().describe(\"The timestamp when the page was last updated.\").nullable(),\n}).passthrough();\nconst SnowflakeGetComponentStatus_ComponentSchema = z.object({\n  id: z.string().describe(\"The unique identifier of the component.\").nullable(),\n  name: z.string().describe(\"The name of the component.\").nullable(),\n  group: z.boolean().describe(\"Indicates if the component is a group.\").nullable(),\n  status: z.string().describe(\"The current status of the component.\").nullable(),\n  page_id: z.string().describe(\"The unique identifier of the page the component belongs to.\").nullable(),\n  group_id: z.string().describe(\"The unique identifier of the group the component belongs to.\").nullable().optional(),\n  position: z.number().int().describe(\"The position of the component.\").nullable(),\n  showcase: z.boolean().describe(\"Indicates if the component is showcased.\").nullable(),\n  created_at: z.string().describe(\"The timestamp when the component was created.\").nullable(),\n  start_date: z.string().describe(\"The start date of the component.\").nullable().optional(),\n  updated_at: z.string().describe(\"The timestamp when the component was last updated.\").nullable(),\n  description: z.string().describe(\"A description of the component.\").nullable().optional(),\n  only_show_if_degraded: z.boolean().describe(\"Indicates if the component should only be shown if it is degraded.\").nullable(),\n}).passthrough();\nexport const SnowflakeGetComponentStatusOutput = z.object({\n  page: SnowflakeGetComponentStatus_PageSchema.nullable(),\n  components: z.array(SnowflakeGetComponentStatus_ComponentSchema).describe(\"A list of components and their current status.\"),\n}).passthrough();\n\nexport const snowflakeGetComponentStatus: AppAction<\n  typeof SnowflakeGetComponentStatusInput,\n  typeof SnowflakeGetComponentStatusOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_GET_COMPONENT_STATUS\", {\n  slug: \"snowflake-get-component-status\",\n  name: \"Get Component Status\",\n  description: \"Retrieves the status of individual components, each listed with its current status.\",\n  input: SnowflakeGetComponentStatusInput,\n  output: SnowflakeGetComponentStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACpF,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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