@seamapi/types 1.1103.0 → 1.1105.0
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.
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +395 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +10 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.d.ts +87 -0
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js +37 -0
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.js +31 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.d.ts +87 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js +37 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.js +31 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.js +31 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.js.map +1 -0
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +3 -3
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -3
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +95 -1
- package/lib/seam/connect/models/devices/capability-properties/index.js +4 -2
- package/lib/seam/connect/models/devices/capability-properties/index.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/speaker.d.ts +98 -0
- package/lib/seam/connect/models/devices/capability-properties/speaker.js +61 -0
- package/lib/seam/connect/models/devices/capability-properties/speaker.js.map +1 -0
- package/lib/seam/connect/models/devices/device-metadata.d.ts +33 -0
- package/lib/seam/connect/models/devices/device-metadata.js +26 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +12 -0
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +7 -1
- package/lib/seam/connect/models/devices/device-type.js +8 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +200 -3
- package/lib/seam/connect/models/devices/device.js +16 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +144 -3
- package/lib/seam/connect/models/provider-capability.d.ts +1 -1
- package/lib/seam/connect/models/provider-capability.js +1 -0
- package/lib/seam/connect/models/provider-capability.js.map +1 -1
- package/lib/seam/connect/openapi.js +800 -45
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7127 -40
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/enums.ts +2 -0
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +10 -0
- package/src/lib/seam/connect/models/action-attempts/pause-speaker-playback.ts +54 -0
- package/src/lib/seam/connect/models/action-attempts/play-speaker-chime.ts +46 -0
- package/src/lib/seam/connect/models/action-attempts/resume-speaker-playback.ts +54 -0
- package/src/lib/seam/connect/models/action-attempts/set-speaker-mute.ts +43 -0
- package/src/lib/seam/connect/models/action-attempts/set-speaker-volume.ts +46 -0
- package/src/lib/seam/connect/models/devices/capability-properties/index.ts +9 -1
- package/src/lib/seam/connect/models/devices/capability-properties/speaker.ts +76 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +29 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +16 -0
- package/src/lib/seam/connect/models/devices/device.ts +18 -0
- package/src/lib/seam/connect/models/provider-capability.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +873 -45
- package/src/lib/seam/connect/route-types.ts +7879 -8
|
@@ -5263,6 +5263,401 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
5263
5263
|
status: z.ZodLiteral<"pending">;
|
|
5264
5264
|
result: z.ZodNull;
|
|
5265
5265
|
error: z.ZodNull;
|
|
5266
|
+
} & {
|
|
5267
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
|
|
5268
|
+
}, "strip", z.ZodTypeAny, {
|
|
5269
|
+
status: "pending";
|
|
5270
|
+
action_attempt_id: string;
|
|
5271
|
+
error: null;
|
|
5272
|
+
result: null;
|
|
5273
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5274
|
+
}, {
|
|
5275
|
+
status: "pending";
|
|
5276
|
+
action_attempt_id: string;
|
|
5277
|
+
error: null;
|
|
5278
|
+
result: null;
|
|
5279
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5280
|
+
}>, z.ZodObject<{
|
|
5281
|
+
action_attempt_id: z.ZodString;
|
|
5282
|
+
} & {
|
|
5283
|
+
status: z.ZodLiteral<"success">;
|
|
5284
|
+
error: z.ZodNull;
|
|
5285
|
+
} & {
|
|
5286
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
|
|
5287
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5288
|
+
}, "strip", z.ZodTypeAny, {
|
|
5289
|
+
status: "success";
|
|
5290
|
+
action_attempt_id: string;
|
|
5291
|
+
error: null;
|
|
5292
|
+
result: {};
|
|
5293
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5294
|
+
}, {
|
|
5295
|
+
status: "success";
|
|
5296
|
+
action_attempt_id: string;
|
|
5297
|
+
error: null;
|
|
5298
|
+
result: {};
|
|
5299
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5300
|
+
}>, z.ZodObject<{
|
|
5301
|
+
action_attempt_id: z.ZodString;
|
|
5302
|
+
} & {
|
|
5303
|
+
status: z.ZodLiteral<"error">;
|
|
5304
|
+
result: z.ZodNull;
|
|
5305
|
+
} & {
|
|
5306
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
|
|
5307
|
+
error: z.ZodObject<{
|
|
5308
|
+
type: z.ZodString;
|
|
5309
|
+
message: z.ZodString;
|
|
5310
|
+
}, "strip", z.ZodTypeAny, {
|
|
5311
|
+
message: string;
|
|
5312
|
+
type: string;
|
|
5313
|
+
}, {
|
|
5314
|
+
message: string;
|
|
5315
|
+
type: string;
|
|
5316
|
+
}>;
|
|
5317
|
+
}, "strip", z.ZodTypeAny, {
|
|
5318
|
+
status: "error";
|
|
5319
|
+
action_attempt_id: string;
|
|
5320
|
+
error: {
|
|
5321
|
+
message: string;
|
|
5322
|
+
type: string;
|
|
5323
|
+
};
|
|
5324
|
+
result: null;
|
|
5325
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5326
|
+
}, {
|
|
5327
|
+
status: "error";
|
|
5328
|
+
action_attempt_id: string;
|
|
5329
|
+
error: {
|
|
5330
|
+
message: string;
|
|
5331
|
+
type: string;
|
|
5332
|
+
};
|
|
5333
|
+
result: null;
|
|
5334
|
+
action_type: "SET_SPEAKER_VOLUME";
|
|
5335
|
+
}>, z.ZodObject<{
|
|
5336
|
+
action_attempt_id: z.ZodString;
|
|
5337
|
+
} & {
|
|
5338
|
+
status: z.ZodLiteral<"pending">;
|
|
5339
|
+
result: z.ZodNull;
|
|
5340
|
+
error: z.ZodNull;
|
|
5341
|
+
} & {
|
|
5342
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
|
|
5343
|
+
}, "strip", z.ZodTypeAny, {
|
|
5344
|
+
status: "pending";
|
|
5345
|
+
action_attempt_id: string;
|
|
5346
|
+
error: null;
|
|
5347
|
+
result: null;
|
|
5348
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5349
|
+
}, {
|
|
5350
|
+
status: "pending";
|
|
5351
|
+
action_attempt_id: string;
|
|
5352
|
+
error: null;
|
|
5353
|
+
result: null;
|
|
5354
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5355
|
+
}>, z.ZodObject<{
|
|
5356
|
+
action_attempt_id: z.ZodString;
|
|
5357
|
+
} & {
|
|
5358
|
+
status: z.ZodLiteral<"success">;
|
|
5359
|
+
error: z.ZodNull;
|
|
5360
|
+
} & {
|
|
5361
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
|
|
5362
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5363
|
+
}, "strip", z.ZodTypeAny, {
|
|
5364
|
+
status: "success";
|
|
5365
|
+
action_attempt_id: string;
|
|
5366
|
+
error: null;
|
|
5367
|
+
result: {};
|
|
5368
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5369
|
+
}, {
|
|
5370
|
+
status: "success";
|
|
5371
|
+
action_attempt_id: string;
|
|
5372
|
+
error: null;
|
|
5373
|
+
result: {};
|
|
5374
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5375
|
+
}>, z.ZodObject<{
|
|
5376
|
+
action_attempt_id: z.ZodString;
|
|
5377
|
+
} & {
|
|
5378
|
+
status: z.ZodLiteral<"error">;
|
|
5379
|
+
result: z.ZodNull;
|
|
5380
|
+
} & {
|
|
5381
|
+
action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
|
|
5382
|
+
error: z.ZodObject<{
|
|
5383
|
+
type: z.ZodString;
|
|
5384
|
+
message: z.ZodString;
|
|
5385
|
+
}, "strip", z.ZodTypeAny, {
|
|
5386
|
+
message: string;
|
|
5387
|
+
type: string;
|
|
5388
|
+
}, {
|
|
5389
|
+
message: string;
|
|
5390
|
+
type: string;
|
|
5391
|
+
}>;
|
|
5392
|
+
}, "strip", z.ZodTypeAny, {
|
|
5393
|
+
status: "error";
|
|
5394
|
+
action_attempt_id: string;
|
|
5395
|
+
error: {
|
|
5396
|
+
message: string;
|
|
5397
|
+
type: string;
|
|
5398
|
+
};
|
|
5399
|
+
result: null;
|
|
5400
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5401
|
+
}, {
|
|
5402
|
+
status: "error";
|
|
5403
|
+
action_attempt_id: string;
|
|
5404
|
+
error: {
|
|
5405
|
+
message: string;
|
|
5406
|
+
type: string;
|
|
5407
|
+
};
|
|
5408
|
+
result: null;
|
|
5409
|
+
action_type: "SET_SPEAKER_MUTE";
|
|
5410
|
+
}>, z.ZodObject<{
|
|
5411
|
+
action_attempt_id: z.ZodString;
|
|
5412
|
+
} & {
|
|
5413
|
+
status: z.ZodLiteral<"pending">;
|
|
5414
|
+
result: z.ZodNull;
|
|
5415
|
+
error: z.ZodNull;
|
|
5416
|
+
} & {
|
|
5417
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
5418
|
+
}, "strip", z.ZodTypeAny, {
|
|
5419
|
+
status: "pending";
|
|
5420
|
+
action_attempt_id: string;
|
|
5421
|
+
error: null;
|
|
5422
|
+
result: null;
|
|
5423
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5424
|
+
}, {
|
|
5425
|
+
status: "pending";
|
|
5426
|
+
action_attempt_id: string;
|
|
5427
|
+
error: null;
|
|
5428
|
+
result: null;
|
|
5429
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5430
|
+
}>, z.ZodObject<{
|
|
5431
|
+
action_attempt_id: z.ZodString;
|
|
5432
|
+
} & {
|
|
5433
|
+
status: z.ZodLiteral<"success">;
|
|
5434
|
+
error: z.ZodNull;
|
|
5435
|
+
} & {
|
|
5436
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
5437
|
+
result: z.ZodObject<{
|
|
5438
|
+
affected_device_ids: z.ZodArray<z.ZodString, "many">;
|
|
5439
|
+
}, "strip", z.ZodTypeAny, {
|
|
5440
|
+
affected_device_ids: string[];
|
|
5441
|
+
}, {
|
|
5442
|
+
affected_device_ids: string[];
|
|
5443
|
+
}>;
|
|
5444
|
+
}, "strip", z.ZodTypeAny, {
|
|
5445
|
+
status: "success";
|
|
5446
|
+
action_attempt_id: string;
|
|
5447
|
+
error: null;
|
|
5448
|
+
result: {
|
|
5449
|
+
affected_device_ids: string[];
|
|
5450
|
+
};
|
|
5451
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5452
|
+
}, {
|
|
5453
|
+
status: "success";
|
|
5454
|
+
action_attempt_id: string;
|
|
5455
|
+
error: null;
|
|
5456
|
+
result: {
|
|
5457
|
+
affected_device_ids: string[];
|
|
5458
|
+
};
|
|
5459
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5460
|
+
}>, z.ZodObject<{
|
|
5461
|
+
action_attempt_id: z.ZodString;
|
|
5462
|
+
} & {
|
|
5463
|
+
status: z.ZodLiteral<"error">;
|
|
5464
|
+
result: z.ZodNull;
|
|
5465
|
+
} & {
|
|
5466
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
5467
|
+
error: z.ZodObject<{
|
|
5468
|
+
type: z.ZodString;
|
|
5469
|
+
message: z.ZodString;
|
|
5470
|
+
}, "strip", z.ZodTypeAny, {
|
|
5471
|
+
message: string;
|
|
5472
|
+
type: string;
|
|
5473
|
+
}, {
|
|
5474
|
+
message: string;
|
|
5475
|
+
type: string;
|
|
5476
|
+
}>;
|
|
5477
|
+
}, "strip", z.ZodTypeAny, {
|
|
5478
|
+
status: "error";
|
|
5479
|
+
action_attempt_id: string;
|
|
5480
|
+
error: {
|
|
5481
|
+
message: string;
|
|
5482
|
+
type: string;
|
|
5483
|
+
};
|
|
5484
|
+
result: null;
|
|
5485
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5486
|
+
}, {
|
|
5487
|
+
status: "error";
|
|
5488
|
+
action_attempt_id: string;
|
|
5489
|
+
error: {
|
|
5490
|
+
message: string;
|
|
5491
|
+
type: string;
|
|
5492
|
+
};
|
|
5493
|
+
result: null;
|
|
5494
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
5495
|
+
}>, z.ZodObject<{
|
|
5496
|
+
action_attempt_id: z.ZodString;
|
|
5497
|
+
} & {
|
|
5498
|
+
status: z.ZodLiteral<"pending">;
|
|
5499
|
+
result: z.ZodNull;
|
|
5500
|
+
error: z.ZodNull;
|
|
5501
|
+
} & {
|
|
5502
|
+
action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
|
|
5503
|
+
}, "strip", z.ZodTypeAny, {
|
|
5504
|
+
status: "pending";
|
|
5505
|
+
action_attempt_id: string;
|
|
5506
|
+
error: null;
|
|
5507
|
+
result: null;
|
|
5508
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5509
|
+
}, {
|
|
5510
|
+
status: "pending";
|
|
5511
|
+
action_attempt_id: string;
|
|
5512
|
+
error: null;
|
|
5513
|
+
result: null;
|
|
5514
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5515
|
+
}>, z.ZodObject<{
|
|
5516
|
+
action_attempt_id: z.ZodString;
|
|
5517
|
+
} & {
|
|
5518
|
+
status: z.ZodLiteral<"success">;
|
|
5519
|
+
error: z.ZodNull;
|
|
5520
|
+
} & {
|
|
5521
|
+
action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
|
|
5522
|
+
result: z.ZodObject<{
|
|
5523
|
+
affected_device_ids: z.ZodArray<z.ZodString, "many">;
|
|
5524
|
+
}, "strip", z.ZodTypeAny, {
|
|
5525
|
+
affected_device_ids: string[];
|
|
5526
|
+
}, {
|
|
5527
|
+
affected_device_ids: string[];
|
|
5528
|
+
}>;
|
|
5529
|
+
}, "strip", z.ZodTypeAny, {
|
|
5530
|
+
status: "success";
|
|
5531
|
+
action_attempt_id: string;
|
|
5532
|
+
error: null;
|
|
5533
|
+
result: {
|
|
5534
|
+
affected_device_ids: string[];
|
|
5535
|
+
};
|
|
5536
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5537
|
+
}, {
|
|
5538
|
+
status: "success";
|
|
5539
|
+
action_attempt_id: string;
|
|
5540
|
+
error: null;
|
|
5541
|
+
result: {
|
|
5542
|
+
affected_device_ids: string[];
|
|
5543
|
+
};
|
|
5544
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5545
|
+
}>, z.ZodObject<{
|
|
5546
|
+
action_attempt_id: z.ZodString;
|
|
5547
|
+
} & {
|
|
5548
|
+
status: z.ZodLiteral<"error">;
|
|
5549
|
+
result: z.ZodNull;
|
|
5550
|
+
} & {
|
|
5551
|
+
action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
|
|
5552
|
+
error: z.ZodObject<{
|
|
5553
|
+
type: z.ZodString;
|
|
5554
|
+
message: z.ZodString;
|
|
5555
|
+
}, "strip", z.ZodTypeAny, {
|
|
5556
|
+
message: string;
|
|
5557
|
+
type: string;
|
|
5558
|
+
}, {
|
|
5559
|
+
message: string;
|
|
5560
|
+
type: string;
|
|
5561
|
+
}>;
|
|
5562
|
+
}, "strip", z.ZodTypeAny, {
|
|
5563
|
+
status: "error";
|
|
5564
|
+
action_attempt_id: string;
|
|
5565
|
+
error: {
|
|
5566
|
+
message: string;
|
|
5567
|
+
type: string;
|
|
5568
|
+
};
|
|
5569
|
+
result: null;
|
|
5570
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5571
|
+
}, {
|
|
5572
|
+
status: "error";
|
|
5573
|
+
action_attempt_id: string;
|
|
5574
|
+
error: {
|
|
5575
|
+
message: string;
|
|
5576
|
+
type: string;
|
|
5577
|
+
};
|
|
5578
|
+
result: null;
|
|
5579
|
+
action_type: "RESUME_SPEAKER_PLAYBACK";
|
|
5580
|
+
}>, z.ZodObject<{
|
|
5581
|
+
action_attempt_id: z.ZodString;
|
|
5582
|
+
} & {
|
|
5583
|
+
status: z.ZodLiteral<"pending">;
|
|
5584
|
+
result: z.ZodNull;
|
|
5585
|
+
error: z.ZodNull;
|
|
5586
|
+
} & {
|
|
5587
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
5588
|
+
}, "strip", z.ZodTypeAny, {
|
|
5589
|
+
status: "pending";
|
|
5590
|
+
action_attempt_id: string;
|
|
5591
|
+
error: null;
|
|
5592
|
+
result: null;
|
|
5593
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5594
|
+
}, {
|
|
5595
|
+
status: "pending";
|
|
5596
|
+
action_attempt_id: string;
|
|
5597
|
+
error: null;
|
|
5598
|
+
result: null;
|
|
5599
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5600
|
+
}>, z.ZodObject<{
|
|
5601
|
+
action_attempt_id: z.ZodString;
|
|
5602
|
+
} & {
|
|
5603
|
+
status: z.ZodLiteral<"success">;
|
|
5604
|
+
error: z.ZodNull;
|
|
5605
|
+
} & {
|
|
5606
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
5607
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5608
|
+
}, "strip", z.ZodTypeAny, {
|
|
5609
|
+
status: "success";
|
|
5610
|
+
action_attempt_id: string;
|
|
5611
|
+
error: null;
|
|
5612
|
+
result: {};
|
|
5613
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5614
|
+
}, {
|
|
5615
|
+
status: "success";
|
|
5616
|
+
action_attempt_id: string;
|
|
5617
|
+
error: null;
|
|
5618
|
+
result: {};
|
|
5619
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5620
|
+
}>, z.ZodObject<{
|
|
5621
|
+
action_attempt_id: z.ZodString;
|
|
5622
|
+
} & {
|
|
5623
|
+
status: z.ZodLiteral<"error">;
|
|
5624
|
+
result: z.ZodNull;
|
|
5625
|
+
} & {
|
|
5626
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
5627
|
+
error: z.ZodObject<{
|
|
5628
|
+
type: z.ZodString;
|
|
5629
|
+
message: z.ZodString;
|
|
5630
|
+
}, "strip", z.ZodTypeAny, {
|
|
5631
|
+
message: string;
|
|
5632
|
+
type: string;
|
|
5633
|
+
}, {
|
|
5634
|
+
message: string;
|
|
5635
|
+
type: string;
|
|
5636
|
+
}>;
|
|
5637
|
+
}, "strip", z.ZodTypeAny, {
|
|
5638
|
+
status: "error";
|
|
5639
|
+
action_attempt_id: string;
|
|
5640
|
+
error: {
|
|
5641
|
+
message: string;
|
|
5642
|
+
type: string;
|
|
5643
|
+
};
|
|
5644
|
+
result: null;
|
|
5645
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5646
|
+
}, {
|
|
5647
|
+
status: "error";
|
|
5648
|
+
action_attempt_id: string;
|
|
5649
|
+
error: {
|
|
5650
|
+
message: string;
|
|
5651
|
+
type: string;
|
|
5652
|
+
};
|
|
5653
|
+
result: null;
|
|
5654
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
5655
|
+
}>, z.ZodObject<{
|
|
5656
|
+
action_attempt_id: z.ZodString;
|
|
5657
|
+
} & {
|
|
5658
|
+
status: z.ZodLiteral<"pending">;
|
|
5659
|
+
result: z.ZodNull;
|
|
5660
|
+
error: z.ZodNull;
|
|
5266
5661
|
} & {
|
|
5267
5662
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
5268
5663
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7,12 +7,17 @@ import { convert_access_code_to_managed_action_attempt } from './convert-access-
|
|
|
7
7
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
8
8
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
9
9
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
10
|
+
import { pause_speaker_playback_action_attempt } from './pause-speaker-playback.js';
|
|
11
|
+
import { play_speaker_chime_action_attempt } from './play-speaker-chime.js';
|
|
10
12
|
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
|
|
11
13
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
14
|
+
import { resume_speaker_playback_action_attempt } from './resume-speaker-playback.js';
|
|
12
15
|
import { scan_credential_action_attempt } from './scan-credential.js';
|
|
13
16
|
import { scan_to_assign_credential_action_attempt } from './scan-to-assign-credential.js';
|
|
14
17
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
15
18
|
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js';
|
|
19
|
+
import { set_speaker_mute_action_attempt } from './set-speaker-mute.js';
|
|
20
|
+
import { set_speaker_volume_action_attempt } from './set-speaker-volume.js';
|
|
16
21
|
import { simulate_keypad_code_entry_action_attempt } from './simulate-keypad-code-entry.js';
|
|
17
22
|
import { simulate_manual_lock_via_keypad_action_attempt } from './simulate-manual-lock-via-keypad.js';
|
|
18
23
|
import { unlock_door_action_attempt } from './unlock-door.js';
|
|
@@ -33,6 +38,11 @@ export const action_attempt = z.union([
|
|
|
33
38
|
...push_thermostat_programs_action_attempt.options,
|
|
34
39
|
...configure_auto_lock_action_attempt.options,
|
|
35
40
|
...convert_access_code_to_managed_action_attempt.options,
|
|
41
|
+
...set_speaker_volume_action_attempt.options,
|
|
42
|
+
...set_speaker_mute_action_attempt.options,
|
|
43
|
+
...pause_speaker_playback_action_attempt.options,
|
|
44
|
+
...resume_speaker_playback_action_attempt.options,
|
|
45
|
+
...play_speaker_chime_action_attempt.options,
|
|
36
46
|
...deprecated_action_attempts,
|
|
37
47
|
]).describe(`
|
|
38
48
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAA;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,+BAA+B,CAAC,OAAO;IAC1C,GAAG,qCAAqC,CAAC,OAAO;IAChD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const pause_speaker_playback_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
} & {
|
|
5
|
+
status: z.ZodLiteral<"pending">;
|
|
6
|
+
result: z.ZodNull;
|
|
7
|
+
error: z.ZodNull;
|
|
8
|
+
} & {
|
|
9
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
} & {
|
|
25
|
+
status: z.ZodLiteral<"success">;
|
|
26
|
+
error: z.ZodNull;
|
|
27
|
+
} & {
|
|
28
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
29
|
+
result: z.ZodObject<{
|
|
30
|
+
affected_device_ids: z.ZodArray<z.ZodString, "many">;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
affected_device_ids: string[];
|
|
33
|
+
}, {
|
|
34
|
+
affected_device_ids: string[];
|
|
35
|
+
}>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
status: "success";
|
|
38
|
+
action_attempt_id: string;
|
|
39
|
+
error: null;
|
|
40
|
+
result: {
|
|
41
|
+
affected_device_ids: string[];
|
|
42
|
+
};
|
|
43
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
44
|
+
}, {
|
|
45
|
+
status: "success";
|
|
46
|
+
action_attempt_id: string;
|
|
47
|
+
error: null;
|
|
48
|
+
result: {
|
|
49
|
+
affected_device_ids: string[];
|
|
50
|
+
};
|
|
51
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
52
|
+
}>, z.ZodObject<{
|
|
53
|
+
action_attempt_id: z.ZodString;
|
|
54
|
+
} & {
|
|
55
|
+
status: z.ZodLiteral<"error">;
|
|
56
|
+
result: z.ZodNull;
|
|
57
|
+
} & {
|
|
58
|
+
action_type: z.ZodLiteral<"PAUSE_SPEAKER_PLAYBACK">;
|
|
59
|
+
error: z.ZodObject<{
|
|
60
|
+
type: z.ZodString;
|
|
61
|
+
message: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
message: string;
|
|
64
|
+
type: string;
|
|
65
|
+
}, {
|
|
66
|
+
message: string;
|
|
67
|
+
type: string;
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
status: "error";
|
|
71
|
+
action_attempt_id: string;
|
|
72
|
+
error: {
|
|
73
|
+
message: string;
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
result: null;
|
|
77
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
78
|
+
}, {
|
|
79
|
+
status: "error";
|
|
80
|
+
action_attempt_id: string;
|
|
81
|
+
error: {
|
|
82
|
+
message: string;
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
result: null;
|
|
86
|
+
action_type: "PAUSE_SPEAKER_PLAYBACK";
|
|
87
|
+
}>]>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('PAUSE_SPEAKER_PLAYBACK')
|
|
5
|
+
.describe('Action attempt to track the status of pausing playback on a speaker.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z
|
|
15
|
+
.object({
|
|
16
|
+
affected_device_ids: z
|
|
17
|
+
.array(z.string().uuid())
|
|
18
|
+
.describe('IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.'),
|
|
19
|
+
})
|
|
20
|
+
.describe('Result of the action.');
|
|
21
|
+
export const pause_speaker_playback_action_attempt = z.discriminatedUnion('status', [
|
|
22
|
+
common_pending_action_attempt
|
|
23
|
+
.extend({
|
|
24
|
+
action_type,
|
|
25
|
+
})
|
|
26
|
+
.describe('Pausing playback on the speaker is pending.'),
|
|
27
|
+
common_succeeded_action_attempt
|
|
28
|
+
.extend({
|
|
29
|
+
action_type,
|
|
30
|
+
result,
|
|
31
|
+
})
|
|
32
|
+
.describe('Pausing playback on the speaker succeeded.'),
|
|
33
|
+
common_failed_action_attempt
|
|
34
|
+
.extend({ action_type, error })
|
|
35
|
+
.describe('Pausing playback on the speaker failed.'),
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=pause-speaker-playback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause-speaker-playback.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/pause-speaker-playback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,wBAAwB,CAAC;KACjC,QAAQ,CACP,sEAAsE,CACvE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,CAAC;IACN,mBAAmB,EAAE,CAAC;SACnB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC;KACD,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEpC,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,kBAAkB,CACvE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,4CAA4C,CAAC;IACzD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,yCAAyC,CAAC;CACvD,CACF,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const play_speaker_chime_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
} & {
|
|
5
|
+
status: z.ZodLiteral<"pending">;
|
|
6
|
+
result: z.ZodNull;
|
|
7
|
+
error: z.ZodNull;
|
|
8
|
+
} & {
|
|
9
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
} & {
|
|
25
|
+
status: z.ZodLiteral<"success">;
|
|
26
|
+
error: z.ZodNull;
|
|
27
|
+
} & {
|
|
28
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
29
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
status: "success";
|
|
32
|
+
action_attempt_id: string;
|
|
33
|
+
error: null;
|
|
34
|
+
result: {};
|
|
35
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
36
|
+
}, {
|
|
37
|
+
status: "success";
|
|
38
|
+
action_attempt_id: string;
|
|
39
|
+
error: null;
|
|
40
|
+
result: {};
|
|
41
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
42
|
+
}>, z.ZodObject<{
|
|
43
|
+
action_attempt_id: z.ZodString;
|
|
44
|
+
} & {
|
|
45
|
+
status: z.ZodLiteral<"error">;
|
|
46
|
+
result: z.ZodNull;
|
|
47
|
+
} & {
|
|
48
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_CHIME">;
|
|
49
|
+
error: z.ZodObject<{
|
|
50
|
+
type: z.ZodString;
|
|
51
|
+
message: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
message: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
type: string;
|
|
58
|
+
}>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: "error";
|
|
61
|
+
action_attempt_id: string;
|
|
62
|
+
error: {
|
|
63
|
+
message: string;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
result: null;
|
|
67
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
68
|
+
}, {
|
|
69
|
+
status: "error";
|
|
70
|
+
action_attempt_id: string;
|
|
71
|
+
error: {
|
|
72
|
+
message: string;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
result: null;
|
|
76
|
+
action_type: "PLAY_SPEAKER_CHIME";
|
|
77
|
+
}>]>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('PLAY_SPEAKER_CHIME')
|
|
5
|
+
.describe('Action attempt to track the status of playing a chime on a speaker.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
15
|
+
export const play_speaker_chime_action_attempt = z.discriminatedUnion('status', [
|
|
16
|
+
common_pending_action_attempt
|
|
17
|
+
.extend({
|
|
18
|
+
action_type,
|
|
19
|
+
})
|
|
20
|
+
.describe('Playing a chime on the speaker is pending.'),
|
|
21
|
+
common_succeeded_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
result,
|
|
25
|
+
})
|
|
26
|
+
.describe('Playing a chime on the speaker succeeded.'),
|
|
27
|
+
common_failed_action_attempt
|
|
28
|
+
.extend({ action_type, error })
|
|
29
|
+
.describe('Playing a chime on the speaker failed.'),
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=play-speaker-chime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play-speaker-chime.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/play-speaker-chime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,oBAAoB,CAAC;KAC7B,QAAQ,CACP,qEAAqE,CACtE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,kBAAkB,CACnE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4CAA4C,CAAC;IACzD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CACF,CAAA"}
|