Skip to content

Commit 190b5b4

Browse files
feat(deps-dev): bump @seamapi/types from 1.413.0 to 1.414.2 in the seam group (#209)
* 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.413.0 to 1.414.2 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](seamapi/types@v1.413.0...v1.414.2) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.414.2 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] <support@github.com> * ci: Generate code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <seambot@getseam.com>
1 parent 6fd3a5b commit 190b5b4

13 files changed

Lines changed: 1176 additions & 9 deletions

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

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,176 @@ public DailyProgramsThermostats(ISeamClient seam)
1818
_seam = seam;
1919
}
2020

21+
[DataContract(Name = "createRequest_request")]
22+
public class CreateRequest
23+
{
24+
[JsonConstructorAttribute]
25+
protected CreateRequest() { }
26+
27+
public CreateRequest(
28+
string deviceId = default,
29+
string name = default,
30+
List<CreateRequestPeriods> periods = default
31+
)
32+
{
33+
DeviceId = deviceId;
34+
Name = name;
35+
Periods = periods;
36+
}
37+
38+
[DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)]
39+
public string DeviceId { get; set; }
40+
41+
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
42+
public string Name { get; set; }
43+
44+
[DataMember(Name = "periods", IsRequired = true, EmitDefaultValue = false)]
45+
public List<CreateRequestPeriods> Periods { get; set; }
46+
47+
public override string ToString()
48+
{
49+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
50+
51+
StringWriter stringWriter = new StringWriter(
52+
new StringBuilder(256),
53+
System.Globalization.CultureInfo.InvariantCulture
54+
);
55+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
56+
{
57+
jsonTextWriter.IndentChar = ' ';
58+
jsonTextWriter.Indentation = 2;
59+
jsonTextWriter.Formatting = Formatting.Indented;
60+
jsonSerializer.Serialize(jsonTextWriter, this, null);
61+
}
62+
63+
return stringWriter.ToString();
64+
}
65+
}
66+
67+
[DataContract(Name = "createRequestPeriods_model")]
68+
public class CreateRequestPeriods
69+
{
70+
[JsonConstructorAttribute]
71+
protected CreateRequestPeriods() { }
72+
73+
public CreateRequestPeriods(
74+
string climatePresetKey = default,
75+
string startsAtTime = default
76+
)
77+
{
78+
ClimatePresetKey = climatePresetKey;
79+
StartsAtTime = startsAtTime;
80+
}
81+
82+
[DataMember(Name = "climate_preset_key", IsRequired = true, EmitDefaultValue = false)]
83+
public string ClimatePresetKey { get; set; }
84+
85+
[DataMember(Name = "starts_at_time", IsRequired = true, EmitDefaultValue = false)]
86+
public string StartsAtTime { get; set; }
87+
88+
public override string ToString()
89+
{
90+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
91+
92+
StringWriter stringWriter = new StringWriter(
93+
new StringBuilder(256),
94+
System.Globalization.CultureInfo.InvariantCulture
95+
);
96+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
97+
{
98+
jsonTextWriter.IndentChar = ' ';
99+
jsonTextWriter.Indentation = 2;
100+
jsonTextWriter.Formatting = Formatting.Indented;
101+
jsonSerializer.Serialize(jsonTextWriter, this, null);
102+
}
103+
104+
return stringWriter.ToString();
105+
}
106+
}
107+
108+
[DataContract(Name = "createResponse_response")]
109+
public class CreateResponse
110+
{
111+
[JsonConstructorAttribute]
112+
protected CreateResponse() { }
113+
114+
public CreateResponse(ThermostatDailyProgram thermostatDailyProgram = default)
115+
{
116+
ThermostatDailyProgram = thermostatDailyProgram;
117+
}
118+
119+
[DataMember(
120+
Name = "thermostat_daily_program",
121+
IsRequired = false,
122+
EmitDefaultValue = false
123+
)]
124+
public ThermostatDailyProgram ThermostatDailyProgram { get; set; }
125+
126+
public override string ToString()
127+
{
128+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
129+
130+
StringWriter stringWriter = new StringWriter(
131+
new StringBuilder(256),
132+
System.Globalization.CultureInfo.InvariantCulture
133+
);
134+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
135+
{
136+
jsonTextWriter.IndentChar = ' ';
137+
jsonTextWriter.Indentation = 2;
138+
jsonTextWriter.Formatting = Formatting.Indented;
139+
jsonSerializer.Serialize(jsonTextWriter, this, null);
140+
}
141+
142+
return stringWriter.ToString();
143+
}
144+
}
145+
146+
public ThermostatDailyProgram Create(CreateRequest request)
147+
{
148+
var requestOptions = new RequestOptions();
149+
requestOptions.Data = request;
150+
return _seam
151+
.Post<CreateResponse>("/thermostats/daily_programs/create", requestOptions)
152+
.Data.ThermostatDailyProgram;
153+
}
154+
155+
public ThermostatDailyProgram Create(
156+
string deviceId = default,
157+
string name = default,
158+
List<CreateRequestPeriods> periods = default
159+
)
160+
{
161+
return Create(new CreateRequest(deviceId: deviceId, name: name, periods: periods));
162+
}
163+
164+
public async Task<ThermostatDailyProgram> CreateAsync(CreateRequest request)
165+
{
166+
var requestOptions = new RequestOptions();
167+
requestOptions.Data = request;
168+
return (
169+
await _seam.PostAsync<CreateResponse>(
170+
"/thermostats/daily_programs/create",
171+
requestOptions
172+
)
173+
)
174+
.Data
175+
.ThermostatDailyProgram;
176+
}
177+
178+
public async Task<ThermostatDailyProgram> CreateAsync(
179+
string deviceId = default,
180+
string name = default,
181+
List<CreateRequestPeriods> periods = default
182+
)
183+
{
184+
return (
185+
await CreateAsync(
186+
new CreateRequest(deviceId: deviceId, name: name, periods: periods)
187+
)
188+
);
189+
}
190+
21191
[DataContract(Name = "deleteRequest_request")]
22192
public class DeleteRequest
23193
{

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

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,182 @@ public async Task<EnrollmentAutomation> GetAsync(string enrollmentAutomationId =
192192
return (await GetAsync(new GetRequest(enrollmentAutomationId: enrollmentAutomationId)));
193193
}
194194

195+
[DataContract(Name = "launchRequest_request")]
196+
public class LaunchRequest
197+
{
198+
[JsonConstructorAttribute]
199+
protected LaunchRequest() { }
200+
201+
public LaunchRequest(
202+
string? acsCredentialPoolId = default,
203+
bool? createCredentialManagerUser = default,
204+
string credentialManagerAcsSystemId = default,
205+
string? credentialManagerAcsUserId = default,
206+
string userIdentityId = default
207+
)
208+
{
209+
AcsCredentialPoolId = acsCredentialPoolId;
210+
CreateCredentialManagerUser = createCredentialManagerUser;
211+
CredentialManagerAcsSystemId = credentialManagerAcsSystemId;
212+
CredentialManagerAcsUserId = credentialManagerAcsUserId;
213+
UserIdentityId = userIdentityId;
214+
}
215+
216+
[DataMember(
217+
Name = "acs_credential_pool_id",
218+
IsRequired = false,
219+
EmitDefaultValue = false
220+
)]
221+
public string? AcsCredentialPoolId { get; set; }
222+
223+
[DataMember(
224+
Name = "create_credential_manager_user",
225+
IsRequired = false,
226+
EmitDefaultValue = false
227+
)]
228+
public bool? CreateCredentialManagerUser { get; set; }
229+
230+
[DataMember(
231+
Name = "credential_manager_acs_system_id",
232+
IsRequired = true,
233+
EmitDefaultValue = false
234+
)]
235+
public string CredentialManagerAcsSystemId { get; set; }
236+
237+
[DataMember(
238+
Name = "credential_manager_acs_user_id",
239+
IsRequired = false,
240+
EmitDefaultValue = false
241+
)]
242+
public string? CredentialManagerAcsUserId { get; set; }
243+
244+
[DataMember(Name = "user_identity_id", IsRequired = true, EmitDefaultValue = false)]
245+
public string UserIdentityId { get; set; }
246+
247+
public override string ToString()
248+
{
249+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
250+
251+
StringWriter stringWriter = new StringWriter(
252+
new StringBuilder(256),
253+
System.Globalization.CultureInfo.InvariantCulture
254+
);
255+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
256+
{
257+
jsonTextWriter.IndentChar = ' ';
258+
jsonTextWriter.Indentation = 2;
259+
jsonTextWriter.Formatting = Formatting.Indented;
260+
jsonSerializer.Serialize(jsonTextWriter, this, null);
261+
}
262+
263+
return stringWriter.ToString();
264+
}
265+
}
266+
267+
[DataContract(Name = "launchResponse_response")]
268+
public class LaunchResponse
269+
{
270+
[JsonConstructorAttribute]
271+
protected LaunchResponse() { }
272+
273+
public LaunchResponse(EnrollmentAutomation enrollmentAutomation = default)
274+
{
275+
EnrollmentAutomation = enrollmentAutomation;
276+
}
277+
278+
[DataMember(
279+
Name = "enrollment_automation",
280+
IsRequired = false,
281+
EmitDefaultValue = false
282+
)]
283+
public EnrollmentAutomation EnrollmentAutomation { get; set; }
284+
285+
public override string ToString()
286+
{
287+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
288+
289+
StringWriter stringWriter = new StringWriter(
290+
new StringBuilder(256),
291+
System.Globalization.CultureInfo.InvariantCulture
292+
);
293+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
294+
{
295+
jsonTextWriter.IndentChar = ' ';
296+
jsonTextWriter.Indentation = 2;
297+
jsonTextWriter.Formatting = Formatting.Indented;
298+
jsonSerializer.Serialize(jsonTextWriter, this, null);
299+
}
300+
301+
return stringWriter.ToString();
302+
}
303+
}
304+
305+
public EnrollmentAutomation Launch(LaunchRequest request)
306+
{
307+
var requestOptions = new RequestOptions();
308+
requestOptions.Data = request;
309+
return _seam
310+
.Post<LaunchResponse>(
311+
"/user_identities/enrollment_automations/launch",
312+
requestOptions
313+
)
314+
.Data.EnrollmentAutomation;
315+
}
316+
317+
public EnrollmentAutomation Launch(
318+
string? acsCredentialPoolId = default,
319+
bool? createCredentialManagerUser = default,
320+
string credentialManagerAcsSystemId = default,
321+
string? credentialManagerAcsUserId = default,
322+
string userIdentityId = default
323+
)
324+
{
325+
return Launch(
326+
new LaunchRequest(
327+
acsCredentialPoolId: acsCredentialPoolId,
328+
createCredentialManagerUser: createCredentialManagerUser,
329+
credentialManagerAcsSystemId: credentialManagerAcsSystemId,
330+
credentialManagerAcsUserId: credentialManagerAcsUserId,
331+
userIdentityId: userIdentityId
332+
)
333+
);
334+
}
335+
336+
public async Task<EnrollmentAutomation> LaunchAsync(LaunchRequest request)
337+
{
338+
var requestOptions = new RequestOptions();
339+
requestOptions.Data = request;
340+
return (
341+
await _seam.PostAsync<LaunchResponse>(
342+
"/user_identities/enrollment_automations/launch",
343+
requestOptions
344+
)
345+
)
346+
.Data
347+
.EnrollmentAutomation;
348+
}
349+
350+
public async Task<EnrollmentAutomation> LaunchAsync(
351+
string? acsCredentialPoolId = default,
352+
bool? createCredentialManagerUser = default,
353+
string credentialManagerAcsSystemId = default,
354+
string? credentialManagerAcsUserId = default,
355+
string userIdentityId = default
356+
)
357+
{
358+
return (
359+
await LaunchAsync(
360+
new LaunchRequest(
361+
acsCredentialPoolId: acsCredentialPoolId,
362+
createCredentialManagerUser: createCredentialManagerUser,
363+
credentialManagerAcsSystemId: credentialManagerAcsSystemId,
364+
credentialManagerAcsUserId: credentialManagerAcsUserId,
365+
userIdentityId: userIdentityId
366+
)
367+
)
368+
);
369+
}
370+
195371
[DataContract(Name = "listRequest_request")]
196372
public class ListRequest
197373
{

0 commit comments

Comments
 (0)