@camstack/types 1.2.297 → 1.2.298

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.
@@ -3279,6 +3279,45 @@ export declare const NcAlarmSettingsSchema: z.ZodObject<{
3279
3279
  }, z.core.$strip>>>;
3280
3280
  }, z.core.$strip>;
3281
3281
  export type NcAlarmSettings = z.infer<typeof NcAlarmSettingsSchema>;
3282
+ /**
3283
+ * One named alarm configuration profile — a full {@link NcAlarmSettings} blob
3284
+ * (memberships including secure-on-arm, delays, announce targets). The id is
3285
+ * assigned by the server; clients show the name.
3286
+ */
3287
+ export declare const NcAlarmProfileMetaSchema: z.ZodObject<{
3288
+ id: z.ZodString;
3289
+ name: z.ZodString;
3290
+ isDefault: z.ZodBoolean;
3291
+ }, z.core.$strip>;
3292
+ export type NcAlarmProfileMeta = z.infer<typeof NcAlarmProfileMetaSchema>;
3293
+ /**
3294
+ * Profiles ride on {@link NcAlarmConfig}: one globally active profile, whose
3295
+ * settings are what arm decisions and `settings` already expose. Switching
3296
+ * active applies that profile's blob onto the panel.
3297
+ */
3298
+ export declare const NcAlarmProfilesViewSchema: z.ZodObject<{
3299
+ activeId: z.ZodString;
3300
+ items: z.ZodArray<z.ZodObject<{
3301
+ id: z.ZodString;
3302
+ name: z.ZodString;
3303
+ isDefault: z.ZodBoolean;
3304
+ }, z.core.$strip>>;
3305
+ }, z.core.$strip>;
3306
+ export type NcAlarmProfilesView = z.infer<typeof NcAlarmProfilesViewSchema>;
3307
+ export declare const NcAlarmCreateProfileInputSchema: z.ZodObject<{
3308
+ name: z.ZodString;
3309
+ cloneFromId: z.ZodOptional<z.ZodString>;
3310
+ }, z.core.$strip>;
3311
+ export type NcAlarmCreateProfileInput = z.infer<typeof NcAlarmCreateProfileInputSchema>;
3312
+ export declare const NcAlarmRenameProfileInputSchema: z.ZodObject<{
3313
+ id: z.ZodString;
3314
+ name: z.ZodString;
3315
+ }, z.core.$strip>;
3316
+ export type NcAlarmRenameProfileInput = z.infer<typeof NcAlarmRenameProfileInputSchema>;
3317
+ export declare const NcAlarmProfileIdInputSchema: z.ZodObject<{
3318
+ id: z.ZodString;
3319
+ }, z.core.$strip>;
3320
+ export type NcAlarmProfileIdInput = z.infer<typeof NcAlarmProfileIdInputSchema>;
3282
3321
  /**
3283
3322
  * Every field optional — a tab edits one control at a time.
3284
3323
  *
@@ -3563,6 +3602,14 @@ export declare const NcAlarmConfigSchema: z.ZodObject<{
3563
3602
  triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
3564
3603
  }, z.core.$strip>>>;
3565
3604
  }, z.core.$strip>;
3605
+ profiles: z.ZodOptional<z.ZodObject<{
3606
+ activeId: z.ZodString;
3607
+ items: z.ZodArray<z.ZodObject<{
3608
+ id: z.ZodString;
3609
+ name: z.ZodString;
3610
+ isDefault: z.ZodBoolean;
3611
+ }, z.core.$strip>>;
3612
+ }, z.core.$strip>>;
3566
3613
  coverage: z.ZodArray<z.ZodObject<{
3567
3614
  mode: z.ZodEnum<{
3568
3615
  home: "home";
@@ -6866,6 +6913,14 @@ export declare const notificationRulesCapability: {
6866
6913
  triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
6867
6914
  }, z.core.$strip>>>;
6868
6915
  }, z.core.$strip>;
6916
+ profiles: z.ZodOptional<z.ZodObject<{
6917
+ activeId: z.ZodString;
6918
+ items: z.ZodArray<z.ZodObject<{
6919
+ id: z.ZodString;
6920
+ name: z.ZodString;
6921
+ isDefault: z.ZodBoolean;
6922
+ }, z.core.$strip>>;
6923
+ }, z.core.$strip>>;
6869
6924
  coverage: z.ZodArray<z.ZodObject<{
6870
6925
  mode: z.ZodEnum<{
6871
6926
  home: "home";
@@ -7083,6 +7138,570 @@ export declare const notificationRulesCapability: {
7083
7138
  triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
7084
7139
  }, z.core.$strip>>>;
7085
7140
  }, z.core.$strip>;
7141
+ profiles: z.ZodOptional<z.ZodObject<{
7142
+ activeId: z.ZodString;
7143
+ items: z.ZodArray<z.ZodObject<{
7144
+ id: z.ZodString;
7145
+ name: z.ZodString;
7146
+ isDefault: z.ZodBoolean;
7147
+ }, z.core.$strip>>;
7148
+ }, z.core.$strip>>;
7149
+ coverage: z.ZodArray<z.ZodObject<{
7150
+ mode: z.ZodEnum<{
7151
+ home: "home";
7152
+ away: "away";
7153
+ night: "night";
7154
+ vacation: "vacation";
7155
+ custom_bypass: "custom_bypass";
7156
+ }>;
7157
+ ruleCount: z.ZodNumber;
7158
+ allDevices: z.ZodBoolean;
7159
+ deviceIds: z.ZodArray<z.ZodNumber>;
7160
+ allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
7161
+ skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
7162
+ deviceId: z.ZodNumber;
7163
+ reason: z.ZodEnum<{
7164
+ offline: "offline";
7165
+ muted: "muted";
7166
+ "detection-off": "detection-off";
7167
+ }>;
7168
+ }, z.core.$strip>>>;
7169
+ }, z.core.$strip>>;
7170
+ live: z.ZodOptional<z.ZodObject<{
7171
+ state: z.ZodEnum<{
7172
+ pending: "pending";
7173
+ disarmed: "disarmed";
7174
+ armed_home: "armed_home";
7175
+ armed_away: "armed_away";
7176
+ armed_night: "armed_night";
7177
+ armed_vacation: "armed_vacation";
7178
+ armed_custom_bypass: "armed_custom_bypass";
7179
+ arming: "arming";
7180
+ disarming: "disarming";
7181
+ triggered: "triggered";
7182
+ }>;
7183
+ targetMode: z.ZodNullable<z.ZodEnum<{
7184
+ home: "home";
7185
+ away: "away";
7186
+ night: "night";
7187
+ vacation: "vacation";
7188
+ custom_bypass: "custom_bypass";
7189
+ }>>;
7190
+ availableModes: z.ZodArray<z.ZodEnum<{
7191
+ home: "home";
7192
+ away: "away";
7193
+ night: "night";
7194
+ vacation: "vacation";
7195
+ custom_bypass: "custom_bypass";
7196
+ }>>;
7197
+ openings: z.ZodArray<z.ZodObject<{
7198
+ mode: z.ZodEnum<{
7199
+ home: "home";
7200
+ away: "away";
7201
+ night: "night";
7202
+ vacation: "vacation";
7203
+ custom_bypass: "custom_bypass";
7204
+ }>;
7205
+ devices: z.ZodArray<z.ZodObject<{
7206
+ deviceId: z.ZodNumber;
7207
+ name: z.ZodString;
7208
+ state: z.ZodString;
7209
+ blocking: z.ZodBoolean;
7210
+ }, z.core.$strip>>;
7211
+ unknown: z.ZodArray<z.ZodNumber>;
7212
+ }, z.core.$strip>>;
7213
+ exclusions: z.ZodArray<z.ZodObject<{
7214
+ deviceId: z.ZodNumber;
7215
+ name: z.ZodString;
7216
+ phase: z.ZodEnum<{
7217
+ open: "open";
7218
+ closed: "closed";
7219
+ }>;
7220
+ }, z.core.$strip>>;
7221
+ }, z.core.$strip>>;
7222
+ }, z.core.$strip>, "mutation">;
7223
+ /**
7224
+ * Create a named profile. Without `cloneFromId` the new profile starts at
7225
+ * system defaults (empty memberships); with it, a copy of that profile.
7226
+ * Does not activate — the operator switches explicitly.
7227
+ */
7228
+ readonly createAlarmProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
7229
+ name: z.ZodString;
7230
+ cloneFromId: z.ZodOptional<z.ZodString>;
7231
+ }, z.core.$strip>, z.ZodObject<{
7232
+ deviceId: z.ZodNullable<z.ZodNumber>;
7233
+ settings: z.ZodObject<{
7234
+ exitDelaySec: z.ZodNumber;
7235
+ entryDelaySec: z.ZodNumber;
7236
+ triggeredDurationSec: z.ZodNumber;
7237
+ announceArm: z.ZodOptional<z.ZodBoolean>;
7238
+ announceTargets: z.ZodArray<z.ZodString>;
7239
+ nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7240
+ mode: z.ZodEnum<{
7241
+ home: "home";
7242
+ away: "away";
7243
+ night: "night";
7244
+ vacation: "vacation";
7245
+ custom_bypass: "custom_bypass";
7246
+ }>;
7247
+ deviceIds: z.ZodArray<z.ZodNumber>;
7248
+ }, z.core.$strip>>>;
7249
+ blocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7250
+ mode: z.ZodEnum<{
7251
+ home: "home";
7252
+ away: "away";
7253
+ night: "night";
7254
+ vacation: "vacation";
7255
+ custom_bypass: "custom_bypass";
7256
+ }>;
7257
+ deviceIds: z.ZodArray<z.ZodNumber>;
7258
+ }, z.core.$strip>>>;
7259
+ secureOnArmOff: z.ZodDefault<z.ZodArray<z.ZodObject<{
7260
+ mode: z.ZodEnum<{
7261
+ home: "home";
7262
+ away: "away";
7263
+ night: "night";
7264
+ vacation: "vacation";
7265
+ custom_bypass: "custom_bypass";
7266
+ }>;
7267
+ deviceIds: z.ZodArray<z.ZodNumber>;
7268
+ }, z.core.$strip>>>;
7269
+ modeDelays: z.ZodDefault<z.ZodArray<z.ZodObject<{
7270
+ mode: z.ZodEnum<{
7271
+ home: "home";
7272
+ away: "away";
7273
+ night: "night";
7274
+ vacation: "vacation";
7275
+ custom_bypass: "custom_bypass";
7276
+ }>;
7277
+ exitDelaySec: z.ZodOptional<z.ZodNumber>;
7278
+ entryDelaySec: z.ZodOptional<z.ZodNumber>;
7279
+ triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
7280
+ }, z.core.$strip>>>;
7281
+ }, z.core.$strip>;
7282
+ profiles: z.ZodOptional<z.ZodObject<{
7283
+ activeId: z.ZodString;
7284
+ items: z.ZodArray<z.ZodObject<{
7285
+ id: z.ZodString;
7286
+ name: z.ZodString;
7287
+ isDefault: z.ZodBoolean;
7288
+ }, z.core.$strip>>;
7289
+ }, z.core.$strip>>;
7290
+ coverage: z.ZodArray<z.ZodObject<{
7291
+ mode: z.ZodEnum<{
7292
+ home: "home";
7293
+ away: "away";
7294
+ night: "night";
7295
+ vacation: "vacation";
7296
+ custom_bypass: "custom_bypass";
7297
+ }>;
7298
+ ruleCount: z.ZodNumber;
7299
+ allDevices: z.ZodBoolean;
7300
+ deviceIds: z.ZodArray<z.ZodNumber>;
7301
+ allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
7302
+ skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
7303
+ deviceId: z.ZodNumber;
7304
+ reason: z.ZodEnum<{
7305
+ offline: "offline";
7306
+ muted: "muted";
7307
+ "detection-off": "detection-off";
7308
+ }>;
7309
+ }, z.core.$strip>>>;
7310
+ }, z.core.$strip>>;
7311
+ live: z.ZodOptional<z.ZodObject<{
7312
+ state: z.ZodEnum<{
7313
+ pending: "pending";
7314
+ disarmed: "disarmed";
7315
+ armed_home: "armed_home";
7316
+ armed_away: "armed_away";
7317
+ armed_night: "armed_night";
7318
+ armed_vacation: "armed_vacation";
7319
+ armed_custom_bypass: "armed_custom_bypass";
7320
+ arming: "arming";
7321
+ disarming: "disarming";
7322
+ triggered: "triggered";
7323
+ }>;
7324
+ targetMode: z.ZodNullable<z.ZodEnum<{
7325
+ home: "home";
7326
+ away: "away";
7327
+ night: "night";
7328
+ vacation: "vacation";
7329
+ custom_bypass: "custom_bypass";
7330
+ }>>;
7331
+ availableModes: z.ZodArray<z.ZodEnum<{
7332
+ home: "home";
7333
+ away: "away";
7334
+ night: "night";
7335
+ vacation: "vacation";
7336
+ custom_bypass: "custom_bypass";
7337
+ }>>;
7338
+ openings: z.ZodArray<z.ZodObject<{
7339
+ mode: z.ZodEnum<{
7340
+ home: "home";
7341
+ away: "away";
7342
+ night: "night";
7343
+ vacation: "vacation";
7344
+ custom_bypass: "custom_bypass";
7345
+ }>;
7346
+ devices: z.ZodArray<z.ZodObject<{
7347
+ deviceId: z.ZodNumber;
7348
+ name: z.ZodString;
7349
+ state: z.ZodString;
7350
+ blocking: z.ZodBoolean;
7351
+ }, z.core.$strip>>;
7352
+ unknown: z.ZodArray<z.ZodNumber>;
7353
+ }, z.core.$strip>>;
7354
+ exclusions: z.ZodArray<z.ZodObject<{
7355
+ deviceId: z.ZodNumber;
7356
+ name: z.ZodString;
7357
+ phase: z.ZodEnum<{
7358
+ open: "open";
7359
+ closed: "closed";
7360
+ }>;
7361
+ }, z.core.$strip>>;
7362
+ }, z.core.$strip>>;
7363
+ }, z.core.$strip>, "mutation">;
7364
+ /** Rename a profile (Default included — only the name, never the id). */
7365
+ readonly renameAlarmProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
7366
+ id: z.ZodString;
7367
+ name: z.ZodString;
7368
+ }, z.core.$strip>, z.ZodObject<{
7369
+ deviceId: z.ZodNullable<z.ZodNumber>;
7370
+ settings: z.ZodObject<{
7371
+ exitDelaySec: z.ZodNumber;
7372
+ entryDelaySec: z.ZodNumber;
7373
+ triggeredDurationSec: z.ZodNumber;
7374
+ announceArm: z.ZodOptional<z.ZodBoolean>;
7375
+ announceTargets: z.ZodArray<z.ZodString>;
7376
+ nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7377
+ mode: z.ZodEnum<{
7378
+ home: "home";
7379
+ away: "away";
7380
+ night: "night";
7381
+ vacation: "vacation";
7382
+ custom_bypass: "custom_bypass";
7383
+ }>;
7384
+ deviceIds: z.ZodArray<z.ZodNumber>;
7385
+ }, z.core.$strip>>>;
7386
+ blocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7387
+ mode: z.ZodEnum<{
7388
+ home: "home";
7389
+ away: "away";
7390
+ night: "night";
7391
+ vacation: "vacation";
7392
+ custom_bypass: "custom_bypass";
7393
+ }>;
7394
+ deviceIds: z.ZodArray<z.ZodNumber>;
7395
+ }, z.core.$strip>>>;
7396
+ secureOnArmOff: z.ZodDefault<z.ZodArray<z.ZodObject<{
7397
+ mode: z.ZodEnum<{
7398
+ home: "home";
7399
+ away: "away";
7400
+ night: "night";
7401
+ vacation: "vacation";
7402
+ custom_bypass: "custom_bypass";
7403
+ }>;
7404
+ deviceIds: z.ZodArray<z.ZodNumber>;
7405
+ }, z.core.$strip>>>;
7406
+ modeDelays: z.ZodDefault<z.ZodArray<z.ZodObject<{
7407
+ mode: z.ZodEnum<{
7408
+ home: "home";
7409
+ away: "away";
7410
+ night: "night";
7411
+ vacation: "vacation";
7412
+ custom_bypass: "custom_bypass";
7413
+ }>;
7414
+ exitDelaySec: z.ZodOptional<z.ZodNumber>;
7415
+ entryDelaySec: z.ZodOptional<z.ZodNumber>;
7416
+ triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
7417
+ }, z.core.$strip>>>;
7418
+ }, z.core.$strip>;
7419
+ profiles: z.ZodOptional<z.ZodObject<{
7420
+ activeId: z.ZodString;
7421
+ items: z.ZodArray<z.ZodObject<{
7422
+ id: z.ZodString;
7423
+ name: z.ZodString;
7424
+ isDefault: z.ZodBoolean;
7425
+ }, z.core.$strip>>;
7426
+ }, z.core.$strip>>;
7427
+ coverage: z.ZodArray<z.ZodObject<{
7428
+ mode: z.ZodEnum<{
7429
+ home: "home";
7430
+ away: "away";
7431
+ night: "night";
7432
+ vacation: "vacation";
7433
+ custom_bypass: "custom_bypass";
7434
+ }>;
7435
+ ruleCount: z.ZodNumber;
7436
+ allDevices: z.ZodBoolean;
7437
+ deviceIds: z.ZodArray<z.ZodNumber>;
7438
+ allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
7439
+ skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
7440
+ deviceId: z.ZodNumber;
7441
+ reason: z.ZodEnum<{
7442
+ offline: "offline";
7443
+ muted: "muted";
7444
+ "detection-off": "detection-off";
7445
+ }>;
7446
+ }, z.core.$strip>>>;
7447
+ }, z.core.$strip>>;
7448
+ live: z.ZodOptional<z.ZodObject<{
7449
+ state: z.ZodEnum<{
7450
+ pending: "pending";
7451
+ disarmed: "disarmed";
7452
+ armed_home: "armed_home";
7453
+ armed_away: "armed_away";
7454
+ armed_night: "armed_night";
7455
+ armed_vacation: "armed_vacation";
7456
+ armed_custom_bypass: "armed_custom_bypass";
7457
+ arming: "arming";
7458
+ disarming: "disarming";
7459
+ triggered: "triggered";
7460
+ }>;
7461
+ targetMode: z.ZodNullable<z.ZodEnum<{
7462
+ home: "home";
7463
+ away: "away";
7464
+ night: "night";
7465
+ vacation: "vacation";
7466
+ custom_bypass: "custom_bypass";
7467
+ }>>;
7468
+ availableModes: z.ZodArray<z.ZodEnum<{
7469
+ home: "home";
7470
+ away: "away";
7471
+ night: "night";
7472
+ vacation: "vacation";
7473
+ custom_bypass: "custom_bypass";
7474
+ }>>;
7475
+ openings: z.ZodArray<z.ZodObject<{
7476
+ mode: z.ZodEnum<{
7477
+ home: "home";
7478
+ away: "away";
7479
+ night: "night";
7480
+ vacation: "vacation";
7481
+ custom_bypass: "custom_bypass";
7482
+ }>;
7483
+ devices: z.ZodArray<z.ZodObject<{
7484
+ deviceId: z.ZodNumber;
7485
+ name: z.ZodString;
7486
+ state: z.ZodString;
7487
+ blocking: z.ZodBoolean;
7488
+ }, z.core.$strip>>;
7489
+ unknown: z.ZodArray<z.ZodNumber>;
7490
+ }, z.core.$strip>>;
7491
+ exclusions: z.ZodArray<z.ZodObject<{
7492
+ deviceId: z.ZodNumber;
7493
+ name: z.ZodString;
7494
+ phase: z.ZodEnum<{
7495
+ open: "open";
7496
+ closed: "closed";
7497
+ }>;
7498
+ }, z.core.$strip>>;
7499
+ }, z.core.$strip>>;
7500
+ }, z.core.$strip>, "mutation">;
7501
+ /**
7502
+ * Delete a non-default profile. If it was active, Default becomes active
7503
+ * and its settings are applied for arm decisions.
7504
+ */
7505
+ readonly deleteAlarmProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
7506
+ id: z.ZodString;
7507
+ }, z.core.$strip>, z.ZodObject<{
7508
+ deviceId: z.ZodNullable<z.ZodNumber>;
7509
+ settings: z.ZodObject<{
7510
+ exitDelaySec: z.ZodNumber;
7511
+ entryDelaySec: z.ZodNumber;
7512
+ triggeredDurationSec: z.ZodNumber;
7513
+ announceArm: z.ZodOptional<z.ZodBoolean>;
7514
+ announceTargets: z.ZodArray<z.ZodString>;
7515
+ nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7516
+ mode: z.ZodEnum<{
7517
+ home: "home";
7518
+ away: "away";
7519
+ night: "night";
7520
+ vacation: "vacation";
7521
+ custom_bypass: "custom_bypass";
7522
+ }>;
7523
+ deviceIds: z.ZodArray<z.ZodNumber>;
7524
+ }, z.core.$strip>>>;
7525
+ blocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7526
+ mode: z.ZodEnum<{
7527
+ home: "home";
7528
+ away: "away";
7529
+ night: "night";
7530
+ vacation: "vacation";
7531
+ custom_bypass: "custom_bypass";
7532
+ }>;
7533
+ deviceIds: z.ZodArray<z.ZodNumber>;
7534
+ }, z.core.$strip>>>;
7535
+ secureOnArmOff: z.ZodDefault<z.ZodArray<z.ZodObject<{
7536
+ mode: z.ZodEnum<{
7537
+ home: "home";
7538
+ away: "away";
7539
+ night: "night";
7540
+ vacation: "vacation";
7541
+ custom_bypass: "custom_bypass";
7542
+ }>;
7543
+ deviceIds: z.ZodArray<z.ZodNumber>;
7544
+ }, z.core.$strip>>>;
7545
+ modeDelays: z.ZodDefault<z.ZodArray<z.ZodObject<{
7546
+ mode: z.ZodEnum<{
7547
+ home: "home";
7548
+ away: "away";
7549
+ night: "night";
7550
+ vacation: "vacation";
7551
+ custom_bypass: "custom_bypass";
7552
+ }>;
7553
+ exitDelaySec: z.ZodOptional<z.ZodNumber>;
7554
+ entryDelaySec: z.ZodOptional<z.ZodNumber>;
7555
+ triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
7556
+ }, z.core.$strip>>>;
7557
+ }, z.core.$strip>;
7558
+ profiles: z.ZodOptional<z.ZodObject<{
7559
+ activeId: z.ZodString;
7560
+ items: z.ZodArray<z.ZodObject<{
7561
+ id: z.ZodString;
7562
+ name: z.ZodString;
7563
+ isDefault: z.ZodBoolean;
7564
+ }, z.core.$strip>>;
7565
+ }, z.core.$strip>>;
7566
+ coverage: z.ZodArray<z.ZodObject<{
7567
+ mode: z.ZodEnum<{
7568
+ home: "home";
7569
+ away: "away";
7570
+ night: "night";
7571
+ vacation: "vacation";
7572
+ custom_bypass: "custom_bypass";
7573
+ }>;
7574
+ ruleCount: z.ZodNumber;
7575
+ allDevices: z.ZodBoolean;
7576
+ deviceIds: z.ZodArray<z.ZodNumber>;
7577
+ allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
7578
+ skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
7579
+ deviceId: z.ZodNumber;
7580
+ reason: z.ZodEnum<{
7581
+ offline: "offline";
7582
+ muted: "muted";
7583
+ "detection-off": "detection-off";
7584
+ }>;
7585
+ }, z.core.$strip>>>;
7586
+ }, z.core.$strip>>;
7587
+ live: z.ZodOptional<z.ZodObject<{
7588
+ state: z.ZodEnum<{
7589
+ pending: "pending";
7590
+ disarmed: "disarmed";
7591
+ armed_home: "armed_home";
7592
+ armed_away: "armed_away";
7593
+ armed_night: "armed_night";
7594
+ armed_vacation: "armed_vacation";
7595
+ armed_custom_bypass: "armed_custom_bypass";
7596
+ arming: "arming";
7597
+ disarming: "disarming";
7598
+ triggered: "triggered";
7599
+ }>;
7600
+ targetMode: z.ZodNullable<z.ZodEnum<{
7601
+ home: "home";
7602
+ away: "away";
7603
+ night: "night";
7604
+ vacation: "vacation";
7605
+ custom_bypass: "custom_bypass";
7606
+ }>>;
7607
+ availableModes: z.ZodArray<z.ZodEnum<{
7608
+ home: "home";
7609
+ away: "away";
7610
+ night: "night";
7611
+ vacation: "vacation";
7612
+ custom_bypass: "custom_bypass";
7613
+ }>>;
7614
+ openings: z.ZodArray<z.ZodObject<{
7615
+ mode: z.ZodEnum<{
7616
+ home: "home";
7617
+ away: "away";
7618
+ night: "night";
7619
+ vacation: "vacation";
7620
+ custom_bypass: "custom_bypass";
7621
+ }>;
7622
+ devices: z.ZodArray<z.ZodObject<{
7623
+ deviceId: z.ZodNumber;
7624
+ name: z.ZodString;
7625
+ state: z.ZodString;
7626
+ blocking: z.ZodBoolean;
7627
+ }, z.core.$strip>>;
7628
+ unknown: z.ZodArray<z.ZodNumber>;
7629
+ }, z.core.$strip>>;
7630
+ exclusions: z.ZodArray<z.ZodObject<{
7631
+ deviceId: z.ZodNumber;
7632
+ name: z.ZodString;
7633
+ phase: z.ZodEnum<{
7634
+ open: "open";
7635
+ closed: "closed";
7636
+ }>;
7637
+ }, z.core.$strip>>;
7638
+ }, z.core.$strip>>;
7639
+ }, z.core.$strip>, "mutation">;
7640
+ /**
7641
+ * Make this profile active: its membership/delays blob is applied to the
7642
+ * panel so the next arm uses it.
7643
+ */
7644
+ readonly activateAlarmProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
7645
+ id: z.ZodString;
7646
+ }, z.core.$strip>, z.ZodObject<{
7647
+ deviceId: z.ZodNullable<z.ZodNumber>;
7648
+ settings: z.ZodObject<{
7649
+ exitDelaySec: z.ZodNumber;
7650
+ entryDelaySec: z.ZodNumber;
7651
+ triggeredDurationSec: z.ZodNumber;
7652
+ announceArm: z.ZodOptional<z.ZodBoolean>;
7653
+ announceTargets: z.ZodArray<z.ZodString>;
7654
+ nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7655
+ mode: z.ZodEnum<{
7656
+ home: "home";
7657
+ away: "away";
7658
+ night: "night";
7659
+ vacation: "vacation";
7660
+ custom_bypass: "custom_bypass";
7661
+ }>;
7662
+ deviceIds: z.ZodArray<z.ZodNumber>;
7663
+ }, z.core.$strip>>>;
7664
+ blocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
7665
+ mode: z.ZodEnum<{
7666
+ home: "home";
7667
+ away: "away";
7668
+ night: "night";
7669
+ vacation: "vacation";
7670
+ custom_bypass: "custom_bypass";
7671
+ }>;
7672
+ deviceIds: z.ZodArray<z.ZodNumber>;
7673
+ }, z.core.$strip>>>;
7674
+ secureOnArmOff: z.ZodDefault<z.ZodArray<z.ZodObject<{
7675
+ mode: z.ZodEnum<{
7676
+ home: "home";
7677
+ away: "away";
7678
+ night: "night";
7679
+ vacation: "vacation";
7680
+ custom_bypass: "custom_bypass";
7681
+ }>;
7682
+ deviceIds: z.ZodArray<z.ZodNumber>;
7683
+ }, z.core.$strip>>>;
7684
+ modeDelays: z.ZodDefault<z.ZodArray<z.ZodObject<{
7685
+ mode: z.ZodEnum<{
7686
+ home: "home";
7687
+ away: "away";
7688
+ night: "night";
7689
+ vacation: "vacation";
7690
+ custom_bypass: "custom_bypass";
7691
+ }>;
7692
+ exitDelaySec: z.ZodOptional<z.ZodNumber>;
7693
+ entryDelaySec: z.ZodOptional<z.ZodNumber>;
7694
+ triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
7695
+ }, z.core.$strip>>>;
7696
+ }, z.core.$strip>;
7697
+ profiles: z.ZodOptional<z.ZodObject<{
7698
+ activeId: z.ZodString;
7699
+ items: z.ZodArray<z.ZodObject<{
7700
+ id: z.ZodString;
7701
+ name: z.ZodString;
7702
+ isDefault: z.ZodBoolean;
7703
+ }, z.core.$strip>>;
7704
+ }, z.core.$strip>>;
7086
7705
  coverage: z.ZodArray<z.ZodObject<{
7087
7706
  mode: z.ZodEnum<{
7088
7707
  home: "home";
@@ -5175,6 +5175,34 @@ export type AppRouter = TrpcCoreRouter<{
5175
5175
  output: z.infer<typeof notificationRulesCapability.methods.setAlarmConfig.output>;
5176
5176
  meta: object;
5177
5177
  }>;
5178
+ createAlarmProfile: TRPCMutationProcedure<{
5179
+ input: {
5180
+ [x: string]: unknown;
5181
+ } & z.input<typeof notificationRulesCapability.methods.createAlarmProfile.input>;
5182
+ output: z.infer<typeof notificationRulesCapability.methods.createAlarmProfile.output>;
5183
+ meta: object;
5184
+ }>;
5185
+ renameAlarmProfile: TRPCMutationProcedure<{
5186
+ input: {
5187
+ [x: string]: unknown;
5188
+ } & z.input<typeof notificationRulesCapability.methods.renameAlarmProfile.input>;
5189
+ output: z.infer<typeof notificationRulesCapability.methods.renameAlarmProfile.output>;
5190
+ meta: object;
5191
+ }>;
5192
+ deleteAlarmProfile: TRPCMutationProcedure<{
5193
+ input: {
5194
+ [x: string]: unknown;
5195
+ } & z.input<typeof notificationRulesCapability.methods.deleteAlarmProfile.input>;
5196
+ output: z.infer<typeof notificationRulesCapability.methods.deleteAlarmProfile.output>;
5197
+ meta: object;
5198
+ }>;
5199
+ activateAlarmProfile: TRPCMutationProcedure<{
5200
+ input: {
5201
+ [x: string]: unknown;
5202
+ } & z.input<typeof notificationRulesCapability.methods.activateAlarmProfile.input>;
5203
+ output: z.infer<typeof notificationRulesCapability.methods.activateAlarmProfile.output>;
5204
+ meta: object;
5205
+ }>;
5178
5206
  getAlarmSensors: TRPCQueryProcedure<{
5179
5207
  input: {
5180
5208
  [x: string]: unknown;