{"version":3,"file":"get-active-scheduled-maintenances.cjs","names":["z","action"],"sources":["../../src/actions/get-active-scheduled-maintenances.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 SnowflakeGetActiveScheduledMaintenancesInput = z.object({});\nconst SnowflakeGetActiveScheduledMaintenances_PageSchema = z.object({\n  id: z.string().describe(\"The unique identifier of the status page.\").nullable(),\n  url: z.string().describe(\"The URL of the status page.\").nullable(),\n  name: z.string().describe(\"The name of the status page.\").nullable(),\n  time_zone: z.string().describe(\"The time zone of the status page.\").nullable(),\n  updated_at: z.string().describe(\"The last update time of the status page.\").nullable(),\n}).passthrough();\nconst SnowflakeGetActiveScheduledMaintenances_IncidentUpdateSchema = z.object({\n  id: z.string().describe(\"The unique identifier 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 creation time of the incident update.\").nullable(),\n  display_at: z.string().describe(\"The display time of the incident update.\").nullable(),\n  updated_at: z.string().describe(\"The last update time of the incident update.\").nullable(),\n  incident_id: z.string().describe(\"The unique identifier of the incident.\").nullable(),\n}).passthrough();\nconst SnowflakeGetActiveScheduledMaintenances_ScheduledMaintenanceSchema = z.object({\n  id: z.string().describe(\"The unique identifier of the maintenance.\").nullable(),\n  name: z.string().describe(\"The name of the maintenance.\").nullable(),\n  impact: z.string().describe(\"The impact level of the maintenance.\").nullable(),\n  status: z.string().describe(\"The current status of the maintenance.\").nullable(),\n  page_id: z.string().describe(\"The unique identifier of the status page.\").nullable(),\n  shortlink: z.string().describe(\"A short URL link to the maintenance details.\").nullable(),\n  created_at: z.string().describe(\"The creation time of the maintenance.\").nullable(),\n  started_at: z.string().describe(\"The actual start time of the maintenance.\").nullable().optional(),\n  updated_at: z.string().describe(\"The last update time of the maintenance.\").nullable(),\n  resolved_at: z.string().describe(\"The time when the maintenance was resolved.\").nullable().optional(),\n  monitoring_at: z.string().describe(\"The time when monitoring started for the maintenance.\").nullable().optional(),\n  scheduled_for: z.string().describe(\"The scheduled start time of the maintenance.\").nullable(),\n  scheduled_until: z.string().describe(\"The scheduled end time of the maintenance.\").nullable(),\n  incident_updates: z.array(SnowflakeGetActiveScheduledMaintenances_IncidentUpdateSchema).describe(\"A list of updates related to the maintenance.\"),\n}).passthrough();\nexport const SnowflakeGetActiveScheduledMaintenancesOutput = z.object({\n  page: SnowflakeGetActiveScheduledMaintenances_PageSchema.nullable(),\n  scheduled_maintenances: z.array(SnowflakeGetActiveScheduledMaintenances_ScheduledMaintenanceSchema).describe(\"A list of active scheduled maintenances currently in progress or being verified.\"),\n}).passthrough();\n\nexport const snowflakeGetActiveScheduledMaintenances: AppAction<\n  typeof SnowflakeGetActiveScheduledMaintenancesInput,\n  typeof SnowflakeGetActiveScheduledMaintenancesOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_GET_ACTIVE_SCHEDULED_MAINTENANCES\", {\n  slug: \"snowflake-get-active-scheduled-maintenances\",\n  name: \"Get Active Scheduled Maintenances\",\n  description: \"Retrieves a list of any active scheduled maintenances currently in the In Progress or Verifying state.\",\n  input: SnowflakeGetActiveScheduledMaintenancesInput,\n  output: SnowflakeGetActiveScheduledMaintenancesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+CAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACvE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,m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