Skip to content

Commit c259925

Browse files
feat(deps-dev): bump @seamapi/types from 1.377.0 to 1.380.1 in the seam group (#167)
* feat(deps-dev): bump @seamapi/types in the seam group Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.377.0 to 1.380.1 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](seamapi/types@v1.377.0...v1.380.1) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.380.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] <[email protected]> * ci: Generate code --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <[email protected]>
1 parent cda032d commit c259925

File tree

8 files changed

+179
-26
lines changed

8 files changed

+179
-26
lines changed

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

+94
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,100 @@ await EncodeCredentialAsync(
144144
);
145145
}
146146

147+
[DataContract(Name = "getRequest_request")]
148+
public class GetRequest
149+
{
150+
[JsonConstructorAttribute]
151+
protected GetRequest() { }
152+
153+
public GetRequest(string acsEncoderId = default)
154+
{
155+
AcsEncoderId = acsEncoderId;
156+
}
157+
158+
[DataMember(Name = "acs_encoder_id", IsRequired = true, EmitDefaultValue = false)]
159+
public string AcsEncoderId { get; set; }
160+
161+
public override string ToString()
162+
{
163+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
164+
165+
StringWriter stringWriter = new StringWriter(
166+
new StringBuilder(256),
167+
System.Globalization.CultureInfo.InvariantCulture
168+
);
169+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
170+
{
171+
jsonTextWriter.IndentChar = ' ';
172+
jsonTextWriter.Indentation = 2;
173+
jsonTextWriter.Formatting = Formatting.Indented;
174+
jsonSerializer.Serialize(jsonTextWriter, this, null);
175+
}
176+
177+
return stringWriter.ToString();
178+
}
179+
}
180+
181+
[DataContract(Name = "getResponse_response")]
182+
public class GetResponse
183+
{
184+
[JsonConstructorAttribute]
185+
protected GetResponse() { }
186+
187+
public GetResponse(AcsEncoder acsEncoder = default)
188+
{
189+
AcsEncoder = acsEncoder;
190+
}
191+
192+
[DataMember(Name = "acs_encoder", IsRequired = false, EmitDefaultValue = false)]
193+
public AcsEncoder AcsEncoder { get; set; }
194+
195+
public override string ToString()
196+
{
197+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
198+
199+
StringWriter stringWriter = new StringWriter(
200+
new StringBuilder(256),
201+
System.Globalization.CultureInfo.InvariantCulture
202+
);
203+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
204+
{
205+
jsonTextWriter.IndentChar = ' ';
206+
jsonTextWriter.Indentation = 2;
207+
jsonTextWriter.Formatting = Formatting.Indented;
208+
jsonSerializer.Serialize(jsonTextWriter, this, null);
209+
}
210+
211+
return stringWriter.ToString();
212+
}
213+
}
214+
215+
public AcsEncoder Get(GetRequest request)
216+
{
217+
var requestOptions = new RequestOptions();
218+
requestOptions.Data = request;
219+
return _seam.Post<GetResponse>("/acs/encoders/get", requestOptions).Data.AcsEncoder;
220+
}
221+
222+
public AcsEncoder Get(string acsEncoderId = default)
223+
{
224+
return Get(new GetRequest(acsEncoderId: acsEncoderId));
225+
}
226+
227+
public async Task<AcsEncoder> GetAsync(GetRequest request)
228+
{
229+
var requestOptions = new RequestOptions();
230+
requestOptions.Data = request;
231+
return (await _seam.PostAsync<GetResponse>("/acs/encoders/get", requestOptions))
232+
.Data
233+
.AcsEncoder;
234+
}
235+
236+
public async Task<AcsEncoder> GetAsync(string acsEncoderId = default)
237+
{
238+
return (await GetAsync(new GetRequest(acsEncoderId: acsEncoderId)));
239+
}
240+
147241
[DataContract(Name = "listRequest_request")]
148242
public class ListRequest
149243
{

output/csharp/src/Seam/Model/AcsUser.cs

+38-6
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ public abstract class AcsUserPendingMutations
379379

380380
public abstract string CreatedAt { get; set; }
381381

382+
public abstract string Message { get; set; }
383+
382384
public abstract override string ToString();
383385
}
384386

@@ -390,16 +392,21 @@ protected AcsUserPendingMutationsCreating() { }
390392

391393
public AcsUserPendingMutationsCreating(
392394
string createdAt = default,
395+
string message = default,
393396
string mutationCode = default
394397
)
395398
{
396399
CreatedAt = createdAt;
400+
Message = message;
397401
MutationCode = mutationCode;
398402
}
399403

400404
[DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)]
401405
public override string CreatedAt { get; set; }
402406

407+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
408+
public override string Message { get; set; }
409+
403410
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
404411
public override string MutationCode { get; } = "creating";
405412

@@ -431,16 +438,21 @@ protected AcsUserPendingMutationsDeleting() { }
431438

432439
public AcsUserPendingMutationsDeleting(
433440
string createdAt = default,
441+
string message = default,
434442
string mutationCode = default
435443
)
436444
{
437445
CreatedAt = createdAt;
446+
Message = message;
438447
MutationCode = mutationCode;
439448
}
440449

441450
[DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)]
442451
public override string CreatedAt { get; set; }
443452

453+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
454+
public override string Message { get; set; }
455+
444456
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
445457
public override string MutationCode { get; } = "deleting";
446458

@@ -473,12 +485,14 @@ protected AcsUserPendingMutationsUpdatingUserInformation() { }
473485
public AcsUserPendingMutationsUpdatingUserInformation(
474486
string createdAt = default,
475487
AcsUserPendingMutationsUpdatingUserInformationFrom from = default,
488+
string message = default,
476489
string mutationCode = default,
477490
AcsUserPendingMutationsUpdatingUserInformationTo to = default
478491
)
479492
{
480493
CreatedAt = createdAt;
481494
From = from;
495+
Message = message;
482496
MutationCode = mutationCode;
483497
To = to;
484498
}
@@ -489,6 +503,9 @@ public AcsUserPendingMutationsUpdatingUserInformation(
489503
[DataMember(Name = "from", IsRequired = true, EmitDefaultValue = false)]
490504
public AcsUserPendingMutationsUpdatingUserInformationFrom From { get; set; }
491505

506+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
507+
public override string Message { get; set; }
508+
492509
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
493510
public override string MutationCode { get; } = "updating_user_information";
494511

@@ -616,12 +633,14 @@ protected AcsUserPendingMutationsUpdatingAccessSchedule() { }
616633
public AcsUserPendingMutationsUpdatingAccessSchedule(
617634
string createdAt = default,
618635
AcsUserPendingMutationsUpdatingAccessScheduleFrom from = default,
636+
string message = default,
619637
string mutationCode = default,
620638
AcsUserPendingMutationsUpdatingAccessScheduleTo to = default
621639
)
622640
{
623641
CreatedAt = createdAt;
624642
From = from;
643+
Message = message;
625644
MutationCode = mutationCode;
626645
To = to;
627646
}
@@ -632,6 +651,9 @@ public AcsUserPendingMutationsUpdatingAccessSchedule(
632651
[DataMember(Name = "from", IsRequired = true, EmitDefaultValue = false)]
633652
public AcsUserPendingMutationsUpdatingAccessScheduleFrom From { get; set; }
634653

654+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
655+
public override string Message { get; set; }
656+
635657
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
636658
public override string MutationCode { get; } = "updating_access_schedule";
637659

@@ -666,7 +688,7 @@ protected AcsUserPendingMutationsUpdatingAccessScheduleFrom() { }
666688

667689
public AcsUserPendingMutationsUpdatingAccessScheduleFrom(
668690
string? endsAt = default,
669-
string startsAt = default
691+
string? startsAt = default
670692
)
671693
{
672694
EndsAt = endsAt;
@@ -676,8 +698,8 @@ public AcsUserPendingMutationsUpdatingAccessScheduleFrom(
676698
[DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)]
677699
public string? EndsAt { get; set; }
678700

679-
[DataMember(Name = "starts_at", IsRequired = true, EmitDefaultValue = false)]
680-
public string StartsAt { get; set; }
701+
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
702+
public string? StartsAt { get; set; }
681703

682704
public override string ToString()
683705
{
@@ -707,7 +729,7 @@ protected AcsUserPendingMutationsUpdatingAccessScheduleTo() { }
707729

708730
public AcsUserPendingMutationsUpdatingAccessScheduleTo(
709731
string? endsAt = default,
710-
string startsAt = default
732+
string? startsAt = default
711733
)
712734
{
713735
EndsAt = endsAt;
@@ -717,8 +739,8 @@ public AcsUserPendingMutationsUpdatingAccessScheduleTo(
717739
[DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)]
718740
public string? EndsAt { get; set; }
719741

720-
[DataMember(Name = "starts_at", IsRequired = true, EmitDefaultValue = false)]
721-
public string StartsAt { get; set; }
742+
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
743+
public string? StartsAt { get; set; }
722744

723745
public override string ToString()
724746
{
@@ -749,12 +771,14 @@ protected AcsUserPendingMutationsUpdatingSuspensionState() { }
749771
public AcsUserPendingMutationsUpdatingSuspensionState(
750772
string createdAt = default,
751773
AcsUserPendingMutationsUpdatingSuspensionStateFrom from = default,
774+
string message = default,
752775
string mutationCode = default,
753776
AcsUserPendingMutationsUpdatingSuspensionStateTo to = default
754777
)
755778
{
756779
CreatedAt = createdAt;
757780
From = from;
781+
Message = message;
758782
MutationCode = mutationCode;
759783
To = to;
760784
}
@@ -765,6 +789,9 @@ public AcsUserPendingMutationsUpdatingSuspensionState(
765789
[DataMember(Name = "from", IsRequired = true, EmitDefaultValue = false)]
766790
public AcsUserPendingMutationsUpdatingSuspensionStateFrom From { get; set; }
767791

792+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
793+
public override string Message { get; set; }
794+
768795
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
769796
public override string MutationCode { get; } = "updating_suspension_state";
770797

@@ -868,12 +895,14 @@ protected AcsUserPendingMutationsUpdatingGroupMembership() { }
868895
public AcsUserPendingMutationsUpdatingGroupMembership(
869896
string createdAt = default,
870897
AcsUserPendingMutationsUpdatingGroupMembershipFrom from = default,
898+
string message = default,
871899
string mutationCode = default,
872900
AcsUserPendingMutationsUpdatingGroupMembershipTo to = default
873901
)
874902
{
875903
CreatedAt = createdAt;
876904
From = from;
905+
Message = message;
877906
MutationCode = mutationCode;
878907
To = to;
879908
}
@@ -884,6 +913,9 @@ public AcsUserPendingMutationsUpdatingGroupMembership(
884913
[DataMember(Name = "from", IsRequired = true, EmitDefaultValue = false)]
885914
public AcsUserPendingMutationsUpdatingGroupMembershipFrom From { get; set; }
886915

916+
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
917+
public override string Message { get; set; }
918+
887919
[DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
888920
public override string MutationCode { get; } = "updating_group_membership";
889921

output/csharp/src/Seam/Model/Device.cs

-5
Original file line numberDiff line numberDiff line change
@@ -4524,21 +4524,16 @@ public class DevicePropertiesSchlageMetadata
45244524
protected DevicePropertiesSchlageMetadata() { }
45254525

45264526
public DevicePropertiesSchlageMetadata(
4527-
float? accessCodeLength = default,
45284527
string? deviceId = default,
45294528
string? deviceName = default,
45304529
string? model = default
45314530
)
45324531
{
4533-
AccessCodeLength = accessCodeLength;
45344532
DeviceId = deviceId;
45354533
DeviceName = deviceName;
45364534
Model = model;
45374535
}
45384536

4539-
[DataMember(Name = "access_code_length", IsRequired = false, EmitDefaultValue = false)]
4540-
public float? AccessCodeLength { get; set; }
4541-
45424537
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
45434538
public string? DeviceId { get; set; }
45444539

output/csharp/src/Seam/Model/ThermostatSchedule.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public ThermostatSchedule(
2020
string deviceId = default,
2121
string endsAt = default,
2222
List<ThermostatScheduleErrors> errors = default,
23-
int maxOverridePeriodMinutes = default,
23+
int? maxOverridePeriodMinutes = default,
2424
string? name = default,
2525
string startsAt = default,
2626
string thermostatScheduleId = default,
@@ -56,10 +56,10 @@ public ThermostatSchedule(
5656

5757
[DataMember(
5858
Name = "max_override_period_minutes",
59-
IsRequired = true,
59+
IsRequired = false,
6060
EmitDefaultValue = false
6161
)]
62-
public int MaxOverridePeriodMinutes { get; set; }
62+
public int? MaxOverridePeriodMinutes { get; set; }
6363

6464
[DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
6565
public string? Name { get; set; }

0 commit comments

Comments
 (0)