Skip to content

Commit 512c473

Browse files
feat: Bump types to 1.575.0, fix tests (#261)
Co-authored-by: Seam Bot <[email protected]>
1 parent 380a2d1 commit 512c473

File tree

16 files changed

+407
-430
lines changed

16 files changed

+407
-430
lines changed

output/csharp/src/Seam.Test/Client/SeamTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public void TestUnknownEnumValue()
112112
properties: {
113113
""available_fan_mode_settings"": [""unknown_mode"", ""auto""]
114114
},
115-
custom_metadata: {}
115+
custom_metadata: {},
116+
space_ids: []
116117
}";
117118

118119
var settings = new JsonSerializerSettings

output/csharp/src/Seam/Api/Customers.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,21 @@ public class CreatePortalRequestFeaturesConnect
180180
[JsonConstructorAttribute]
181181
protected CreatePortalRequestFeaturesConnect() { }
182182

183-
public CreatePortalRequestFeaturesConnect(bool? exclude = default)
183+
public CreatePortalRequestFeaturesConnect(
184+
bool? exclude = default,
185+
List<string>? excludedProviders = default
186+
)
184187
{
185188
Exclude = exclude;
189+
ExcludedProviders = excludedProviders;
186190
}
187191

188192
[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
189193
public bool? Exclude { get; set; }
190194

195+
[DataMember(Name = "excluded_providers", IsRequired = false, EmitDefaultValue = false)]
196+
public List<string>? ExcludedProviders { get; set; }
197+
191198
public override string ToString()
192199
{
193200
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

output/csharp/src/Seam/Api/Events.cs

Lines changed: 88 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -333,128 +333,131 @@ public enum EventTypeEnum
333333
[EnumMember(Value = "connected_account.completed_first_sync_after_reconnection")]
334334
ConnectedAccountCompletedFirstSyncAfterReconnection = 50,
335335

336+
[EnumMember(Value = "connected_account.reauthorization_requested")]
337+
ConnectedAccountReauthorizationRequested = 51,
338+
336339
[EnumMember(Value = "action_attempt.lock_door.succeeded")]
337-
ActionAttemptLockDoorSucceeded = 51,
340+
ActionAttemptLockDoorSucceeded = 52,
338341

339342
[EnumMember(Value = "action_attempt.lock_door.failed")]
340-
ActionAttemptLockDoorFailed = 52,
343+
ActionAttemptLockDoorFailed = 53,
341344

342345
[EnumMember(Value = "action_attempt.unlock_door.succeeded")]
343-
ActionAttemptUnlockDoorSucceeded = 53,
346+
ActionAttemptUnlockDoorSucceeded = 54,
344347

345348
[EnumMember(Value = "action_attempt.unlock_door.failed")]
346-
ActionAttemptUnlockDoorFailed = 54,
349+
ActionAttemptUnlockDoorFailed = 55,
347350

348351
[EnumMember(Value = "connect_webview.login_succeeded")]
349-
ConnectWebviewLoginSucceeded = 55,
352+
ConnectWebviewLoginSucceeded = 56,
350353

351354
[EnumMember(Value = "connect_webview.login_failed")]
352-
ConnectWebviewLoginFailed = 56,
355+
ConnectWebviewLoginFailed = 57,
353356

354357
[EnumMember(Value = "device.connected")]
355-
DeviceConnected = 57,
358+
DeviceConnected = 58,
356359

357360
[EnumMember(Value = "device.added")]
358-
DeviceAdded = 58,
361+
DeviceAdded = 59,
359362

360363
[EnumMember(Value = "device.converted_to_unmanaged")]
361-
DeviceConvertedToUnmanaged = 59,
364+
DeviceConvertedToUnmanaged = 60,
362365

363366
[EnumMember(Value = "device.unmanaged.converted_to_managed")]
364-
DeviceUnmanagedConvertedToManaged = 60,
367+
DeviceUnmanagedConvertedToManaged = 61,
365368

366369
[EnumMember(Value = "device.unmanaged.connected")]
367-
DeviceUnmanagedConnected = 61,
370+
DeviceUnmanagedConnected = 62,
368371

369372
[EnumMember(Value = "device.disconnected")]
370-
DeviceDisconnected = 62,
373+
DeviceDisconnected = 63,
371374

372375
[EnumMember(Value = "device.unmanaged.disconnected")]
373-
DeviceUnmanagedDisconnected = 63,
376+
DeviceUnmanagedDisconnected = 64,
374377

375378
[EnumMember(Value = "device.tampered")]
376-
DeviceTampered = 64,
379+
DeviceTampered = 65,
377380

378381
[EnumMember(Value = "device.low_battery")]
379-
DeviceLowBattery = 65,
382+
DeviceLowBattery = 66,
380383

381384
[EnumMember(Value = "device.battery_status_changed")]
382-
DeviceBatteryStatusChanged = 66,
385+
DeviceBatteryStatusChanged = 67,
383386

384387
[EnumMember(Value = "device.removed")]
385-
DeviceRemoved = 67,
388+
DeviceRemoved = 68,
386389

387390
[EnumMember(Value = "device.deleted")]
388-
DeviceDeleted = 68,
391+
DeviceDeleted = 69,
389392

390393
[EnumMember(Value = "device.third_party_integration_detected")]
391-
DeviceThirdPartyIntegrationDetected = 69,
394+
DeviceThirdPartyIntegrationDetected = 70,
392395

393396
[EnumMember(Value = "device.third_party_integration_no_longer_detected")]
394-
DeviceThirdPartyIntegrationNoLongerDetected = 70,
397+
DeviceThirdPartyIntegrationNoLongerDetected = 71,
395398

396399
[EnumMember(Value = "device.salto.privacy_mode_activated")]
397-
DeviceSaltoPrivacyModeActivated = 71,
400+
DeviceSaltoPrivacyModeActivated = 72,
398401

399402
[EnumMember(Value = "device.salto.privacy_mode_deactivated")]
400-
DeviceSaltoPrivacyModeDeactivated = 72,
403+
DeviceSaltoPrivacyModeDeactivated = 73,
401404

402405
[EnumMember(Value = "device.connection_became_flaky")]
403-
DeviceConnectionBecameFlaky = 73,
406+
DeviceConnectionBecameFlaky = 74,
404407

405408
[EnumMember(Value = "device.connection_stabilized")]
406-
DeviceConnectionStabilized = 74,
409+
DeviceConnectionStabilized = 75,
407410

408411
[EnumMember(Value = "device.error.subscription_required")]
409-
DeviceErrorSubscriptionRequired = 75,
412+
DeviceErrorSubscriptionRequired = 76,
410413

411414
[EnumMember(Value = "device.error.subscription_required.resolved")]
412-
DeviceErrorSubscriptionRequiredResolved = 76,
415+
DeviceErrorSubscriptionRequiredResolved = 77,
413416

414417
[EnumMember(Value = "device.accessory_keypad_connected")]
415-
DeviceAccessoryKeypadConnected = 77,
418+
DeviceAccessoryKeypadConnected = 78,
416419

417420
[EnumMember(Value = "device.accessory_keypad_disconnected")]
418-
DeviceAccessoryKeypadDisconnected = 78,
421+
DeviceAccessoryKeypadDisconnected = 79,
419422

420423
[EnumMember(Value = "noise_sensor.noise_threshold_triggered")]
421-
NoiseSensorNoiseThresholdTriggered = 79,
424+
NoiseSensorNoiseThresholdTriggered = 80,
422425

423426
[EnumMember(Value = "lock.locked")]
424-
LockLocked = 80,
427+
LockLocked = 81,
425428

426429
[EnumMember(Value = "lock.unlocked")]
427-
LockUnlocked = 81,
430+
LockUnlocked = 82,
428431

429432
[EnumMember(Value = "lock.access_denied")]
430-
LockAccessDenied = 82,
433+
LockAccessDenied = 83,
431434

432435
[EnumMember(Value = "thermostat.climate_preset_activated")]
433-
ThermostatClimatePresetActivated = 83,
436+
ThermostatClimatePresetActivated = 84,
434437

435438
[EnumMember(Value = "thermostat.manually_adjusted")]
436-
ThermostatManuallyAdjusted = 84,
439+
ThermostatManuallyAdjusted = 85,
437440

438441
[EnumMember(Value = "thermostat.temperature_threshold_exceeded")]
439-
ThermostatTemperatureThresholdExceeded = 85,
442+
ThermostatTemperatureThresholdExceeded = 86,
440443

441444
[EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")]
442-
ThermostatTemperatureThresholdNoLongerExceeded = 86,
445+
ThermostatTemperatureThresholdNoLongerExceeded = 87,
443446

444447
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
445-
ThermostatTemperatureReachedSetPoint = 87,
448+
ThermostatTemperatureReachedSetPoint = 88,
446449

447450
[EnumMember(Value = "thermostat.temperature_changed")]
448-
ThermostatTemperatureChanged = 88,
451+
ThermostatTemperatureChanged = 89,
449452

450453
[EnumMember(Value = "device.name_changed")]
451-
DeviceNameChanged = 89,
454+
DeviceNameChanged = 90,
452455

453456
[EnumMember(Value = "enrollment_automation.deleted")]
454-
EnrollmentAutomationDeleted = 90,
457+
EnrollmentAutomationDeleted = 91,
455458

456459
[EnumMember(Value = "phone.deactivated")]
457-
PhoneDeactivated = 91,
460+
PhoneDeactivated = 92,
458461
}
459462

460463
[JsonConverter(typeof(SafeStringEnumConverter))]
@@ -613,128 +616,131 @@ public enum EventTypesEnum
613616
[EnumMember(Value = "connected_account.completed_first_sync_after_reconnection")]
614617
ConnectedAccountCompletedFirstSyncAfterReconnection = 50,
615618

619+
[EnumMember(Value = "connected_account.reauthorization_requested")]
620+
ConnectedAccountReauthorizationRequested = 51,
621+
616622
[EnumMember(Value = "action_attempt.lock_door.succeeded")]
617-
ActionAttemptLockDoorSucceeded = 51,
623+
ActionAttemptLockDoorSucceeded = 52,
618624

619625
[EnumMember(Value = "action_attempt.lock_door.failed")]
620-
ActionAttemptLockDoorFailed = 52,
626+
ActionAttemptLockDoorFailed = 53,
621627

622628
[EnumMember(Value = "action_attempt.unlock_door.succeeded")]
623-
ActionAttemptUnlockDoorSucceeded = 53,
629+
ActionAttemptUnlockDoorSucceeded = 54,
624630

625631
[EnumMember(Value = "action_attempt.unlock_door.failed")]
626-
ActionAttemptUnlockDoorFailed = 54,
632+
ActionAttemptUnlockDoorFailed = 55,
627633

628634
[EnumMember(Value = "connect_webview.login_succeeded")]
629-
ConnectWebviewLoginSucceeded = 55,
635+
ConnectWebviewLoginSucceeded = 56,
630636

631637
[EnumMember(Value = "connect_webview.login_failed")]
632-
ConnectWebviewLoginFailed = 56,
638+
ConnectWebviewLoginFailed = 57,
633639

634640
[EnumMember(Value = "device.connected")]
635-
DeviceConnected = 57,
641+
DeviceConnected = 58,
636642

637643
[EnumMember(Value = "device.added")]
638-
DeviceAdded = 58,
644+
DeviceAdded = 59,
639645

640646
[EnumMember(Value = "device.converted_to_unmanaged")]
641-
DeviceConvertedToUnmanaged = 59,
647+
DeviceConvertedToUnmanaged = 60,
642648

643649
[EnumMember(Value = "device.unmanaged.converted_to_managed")]
644-
DeviceUnmanagedConvertedToManaged = 60,
650+
DeviceUnmanagedConvertedToManaged = 61,
645651

646652
[EnumMember(Value = "device.unmanaged.connected")]
647-
DeviceUnmanagedConnected = 61,
653+
DeviceUnmanagedConnected = 62,
648654

649655
[EnumMember(Value = "device.disconnected")]
650-
DeviceDisconnected = 62,
656+
DeviceDisconnected = 63,
651657

652658
[EnumMember(Value = "device.unmanaged.disconnected")]
653-
DeviceUnmanagedDisconnected = 63,
659+
DeviceUnmanagedDisconnected = 64,
654660

655661
[EnumMember(Value = "device.tampered")]
656-
DeviceTampered = 64,
662+
DeviceTampered = 65,
657663

658664
[EnumMember(Value = "device.low_battery")]
659-
DeviceLowBattery = 65,
665+
DeviceLowBattery = 66,
660666

661667
[EnumMember(Value = "device.battery_status_changed")]
662-
DeviceBatteryStatusChanged = 66,
668+
DeviceBatteryStatusChanged = 67,
663669

664670
[EnumMember(Value = "device.removed")]
665-
DeviceRemoved = 67,
671+
DeviceRemoved = 68,
666672

667673
[EnumMember(Value = "device.deleted")]
668-
DeviceDeleted = 68,
674+
DeviceDeleted = 69,
669675

670676
[EnumMember(Value = "device.third_party_integration_detected")]
671-
DeviceThirdPartyIntegrationDetected = 69,
677+
DeviceThirdPartyIntegrationDetected = 70,
672678

673679
[EnumMember(Value = "device.third_party_integration_no_longer_detected")]
674-
DeviceThirdPartyIntegrationNoLongerDetected = 70,
680+
DeviceThirdPartyIntegrationNoLongerDetected = 71,
675681

676682
[EnumMember(Value = "device.salto.privacy_mode_activated")]
677-
DeviceSaltoPrivacyModeActivated = 71,
683+
DeviceSaltoPrivacyModeActivated = 72,
678684

679685
[EnumMember(Value = "device.salto.privacy_mode_deactivated")]
680-
DeviceSaltoPrivacyModeDeactivated = 72,
686+
DeviceSaltoPrivacyModeDeactivated = 73,
681687

682688
[EnumMember(Value = "device.connection_became_flaky")]
683-
DeviceConnectionBecameFlaky = 73,
689+
DeviceConnectionBecameFlaky = 74,
684690

685691
[EnumMember(Value = "device.connection_stabilized")]
686-
DeviceConnectionStabilized = 74,
692+
DeviceConnectionStabilized = 75,
687693

688694
[EnumMember(Value = "device.error.subscription_required")]
689-
DeviceErrorSubscriptionRequired = 75,
695+
DeviceErrorSubscriptionRequired = 76,
690696

691697
[EnumMember(Value = "device.error.subscription_required.resolved")]
692-
DeviceErrorSubscriptionRequiredResolved = 76,
698+
DeviceErrorSubscriptionRequiredResolved = 77,
693699

694700
[EnumMember(Value = "device.accessory_keypad_connected")]
695-
DeviceAccessoryKeypadConnected = 77,
701+
DeviceAccessoryKeypadConnected = 78,
696702

697703
[EnumMember(Value = "device.accessory_keypad_disconnected")]
698-
DeviceAccessoryKeypadDisconnected = 78,
704+
DeviceAccessoryKeypadDisconnected = 79,
699705

700706
[EnumMember(Value = "noise_sensor.noise_threshold_triggered")]
701-
NoiseSensorNoiseThresholdTriggered = 79,
707+
NoiseSensorNoiseThresholdTriggered = 80,
702708

703709
[EnumMember(Value = "lock.locked")]
704-
LockLocked = 80,
710+
LockLocked = 81,
705711

706712
[EnumMember(Value = "lock.unlocked")]
707-
LockUnlocked = 81,
713+
LockUnlocked = 82,
708714

709715
[EnumMember(Value = "lock.access_denied")]
710-
LockAccessDenied = 82,
716+
LockAccessDenied = 83,
711717

712718
[EnumMember(Value = "thermostat.climate_preset_activated")]
713-
ThermostatClimatePresetActivated = 83,
719+
ThermostatClimatePresetActivated = 84,
714720

715721
[EnumMember(Value = "thermostat.manually_adjusted")]
716-
ThermostatManuallyAdjusted = 84,
722+
ThermostatManuallyAdjusted = 85,
717723

718724
[EnumMember(Value = "thermostat.temperature_threshold_exceeded")]
719-
ThermostatTemperatureThresholdExceeded = 85,
725+
ThermostatTemperatureThresholdExceeded = 86,
720726

721727
[EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")]
722-
ThermostatTemperatureThresholdNoLongerExceeded = 86,
728+
ThermostatTemperatureThresholdNoLongerExceeded = 87,
723729

724730
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
725-
ThermostatTemperatureReachedSetPoint = 87,
731+
ThermostatTemperatureReachedSetPoint = 88,
726732

727733
[EnumMember(Value = "thermostat.temperature_changed")]
728-
ThermostatTemperatureChanged = 88,
734+
ThermostatTemperatureChanged = 89,
729735

730736
[EnumMember(Value = "device.name_changed")]
731-
DeviceNameChanged = 89,
737+
DeviceNameChanged = 90,
732738

733739
[EnumMember(Value = "enrollment_automation.deleted")]
734-
EnrollmentAutomationDeleted = 90,
740+
EnrollmentAutomationDeleted = 91,
735741

736742
[EnumMember(Value = "phone.deactivated")]
737-
PhoneDeactivated = 91,
743+
PhoneDeactivated = 92,
738744
}
739745

740746
[DataMember(Name = "access_code_id", IsRequired = false, EmitDefaultValue = false)]

0 commit comments

Comments
 (0)