{"version":3,"file":"get-unresolved-incidents.cjs","names":["z","action"],"sources":["../../src/actions/get-unresolved-incidents.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 SnowflakeGetUnresolvedIncidentsInput = z.object({});\nconst SnowflakeGetUnresolvedIncidents_PageInfoSchema = z.object({\n  id: z.string().describe(\"The unique identifier of the Snowflake status page.\").nullable(),\n  url: z.string().describe(\"The URL of the status page.\").nullable(),\n  name: z.string().describe(\"The name of the service (Snowflake).\").nullable(),\n  time_zone: z.string().describe(\"The timezone used for the status page (e.g., Etc/UTC).\").nullable(),\n  updated_at: z.string().describe(\"The timestamp when the status page was last updated.\").nullable(),\n}).passthrough();\nconst SnowflakeGetUnresolvedIncidents_IncidentUpdateSchema = z.object({\n  id: z.string().describe(\"The ID of the incident update.\").nullable(),\n  body: z.string().describe(\"The body of the incident update.\").nullable(),\n  status: z.string().describe(\"The status of the incident update.\").nullable(),\n  created_at: z.string().describe(\"The timestamp when the incident update was created.\").nullable(),\n  display_at: z.string().describe(\"The timestamp when the incident update should be displayed.\").nullable(),\n  updated_at: z.string().describe(\"The timestamp when the incident update was last updated.\").nullable(),\n  incident_id: z.string().describe(\"The ID of the incident.\").nullable(),\n}).passthrough();\nconst SnowflakeGetUnresolvedIncidents_IncidentSchema = z.object({\n  id: z.string().describe(\"The ID of the incident.\").nullable(),\n  name: z.string().describe(\"The name of the incident.\").nullable(),\n  impact: z.string().describe(\"The impact of the incident.\").nullable(),\n  status: z.string().describe(\"The status of the incident.\").nullable(),\n  page_id: z.string().describe(\"The ID of the page.\").nullable(),\n  shortlink: z.string().describe(\"The shortlink for the incident.\").nullable(),\n  created_at: z.string().describe(\"The timestamp when the incident was created.\").nullable(),\n  updated_at: z.string().describe(\"The timestamp when the incident was last updated.\").nullable(),\n  resolved_at: z.string().describe(\"The timestamp when the incident was resolved.\").nullable().optional(),\n  monitoring_at: z.string().describe(\"The timestamp when the incident monitoring started.\").nullable().optional(),\n  incident_updates: z.array(SnowflakeGetUnresolvedIncidents_IncidentUpdateSchema).describe(\"A list of incident updates.\"),\n}).passthrough();\nexport const SnowflakeGetUnresolvedIncidentsOutput = z.object({\n  page: SnowflakeGetUnresolvedIncidents_PageInfoSchema.nullable(),\n  incidents: z.array(SnowflakeGetUnresolvedIncidents_IncidentSchema).describe(\"A list of unresolved incidents currently in the Investigating, Identified, or Monitoring state. Returns an empty list if there are no active incidents.\"),\n}).passthrough();\n\nexport const snowflakeGetUnresolvedIncidents: AppAction<\n  typeof SnowflakeGetUnresolvedIncidentsInput,\n  typeof SnowflakeGetUnresolvedIncidentsOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_GET_UNRESOLVED_INCIDENTS\", {\n  slug: \"snowflake-get-unresolved-incidents\",\n  name: \"Get Unresolved Incidents\",\n  description: \"Retrieves a list of any unresolved incidents from the Snowflake status page. This endpoint returns incidents currently in the Investigating, Identified, or Monitoring state. Returns an empty list if there are no active incidents. This is a public status page API that does not require authentication.\",\n  input: SnowflakeGetUnresolvedIncidentsInput,\n  output: SnowflakeGetUnresolvedIncidentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC/D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAA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