@seamapi/types 1.389.0 → 1.390.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.
@@ -3286,6 +3286,84 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
3286
3286
  status: z.ZodLiteral<"pending">;
3287
3287
  result: z.ZodNull;
3288
3288
  error: z.ZodNull;
3289
+ }>, {
3290
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
3291
+ }>, "strip", z.ZodTypeAny, {
3292
+ error: null;
3293
+ status: "pending";
3294
+ action_attempt_id: string;
3295
+ result: null;
3296
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3297
+ }, {
3298
+ error: null;
3299
+ status: "pending";
3300
+ action_attempt_id: string;
3301
+ result: null;
3302
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3303
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3304
+ action_attempt_id: z.ZodString;
3305
+ status: z.ZodEnum<["pending", "success", "error"]>;
3306
+ }, {
3307
+ status: z.ZodLiteral<"success">;
3308
+ error: z.ZodNull;
3309
+ }>, {
3310
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
3311
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3312
+ }>, "strip", z.ZodTypeAny, {
3313
+ error: null;
3314
+ status: "success";
3315
+ action_attempt_id: string;
3316
+ result: {};
3317
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3318
+ }, {
3319
+ error: null;
3320
+ status: "success";
3321
+ action_attempt_id: string;
3322
+ result: {};
3323
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3324
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3325
+ action_attempt_id: z.ZodString;
3326
+ status: z.ZodEnum<["pending", "success", "error"]>;
3327
+ }, {
3328
+ status: z.ZodLiteral<"error">;
3329
+ result: z.ZodNull;
3330
+ }>, {
3331
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
3332
+ error: z.ZodObject<{
3333
+ type: z.ZodString;
3334
+ message: z.ZodString;
3335
+ }, "strip", z.ZodTypeAny, {
3336
+ type: string;
3337
+ message: string;
3338
+ }, {
3339
+ type: string;
3340
+ message: string;
3341
+ }>;
3342
+ }>, "strip", z.ZodTypeAny, {
3343
+ error: {
3344
+ type: string;
3345
+ message: string;
3346
+ };
3347
+ status: "error";
3348
+ action_attempt_id: string;
3349
+ result: null;
3350
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3351
+ }, {
3352
+ error: {
3353
+ type: string;
3354
+ message: string;
3355
+ };
3356
+ status: "error";
3357
+ action_attempt_id: string;
3358
+ result: null;
3359
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
3360
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3361
+ action_attempt_id: z.ZodString;
3362
+ status: z.ZodEnum<["pending", "success", "error"]>;
3363
+ }, {
3364
+ status: z.ZodLiteral<"pending">;
3365
+ result: z.ZodNull;
3366
+ error: z.ZodNull;
3289
3367
  }>, {
3290
3368
  action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
3291
3369
  }>, "strip", z.ZodTypeAny, {
@@ -4,6 +4,7 @@ import { deprecated_action_attempts } from './deprecated.js';
4
4
  import { encode_access_method_action_attempt } from './encode-access-method.js';
5
5
  import { encode_credential_action_attempt } from './encode-credential.js';
6
6
  import { lock_door_action_attempt } from './lock-door.js';
7
+ import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
7
8
  import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
8
9
  import { scan_credential_action_attempt } from './scan-credential.js';
9
10
  import { set_fan_mode_action_attempt } from './set-fan-mode.js';
@@ -23,6 +24,7 @@ export const action_attempt = z.union([
23
24
  ...activate_climate_preset_action_attempt.options,
24
25
  ...simulate_keypad_code_entry_action_attempt.options,
25
26
  ...simulate_manual_lock_via_keypad_action_attempt.options,
27
+ ...push_thermostat_programs_action_attempt.options,
26
28
  ...deprecated_action_attempts,
27
29
  ]).describe(`
28
30
  ---
@@ -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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,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,mCAAmC,CAAC,OAAO;IAC9C,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,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,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,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,mCAAmC,CAAC,OAAO;IAC9C,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,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ export declare const push_thermostat_programs_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ action_attempt_id: z.ZodString;
4
+ status: z.ZodEnum<["pending", "success", "error"]>;
5
+ }, {
6
+ status: z.ZodLiteral<"pending">;
7
+ result: z.ZodNull;
8
+ error: z.ZodNull;
9
+ }>, {
10
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ error: null;
13
+ status: "pending";
14
+ action_attempt_id: string;
15
+ result: null;
16
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
17
+ }, {
18
+ error: null;
19
+ status: "pending";
20
+ action_attempt_id: string;
21
+ result: null;
22
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
23
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ action_attempt_id: z.ZodString;
25
+ status: z.ZodEnum<["pending", "success", "error"]>;
26
+ }, {
27
+ status: z.ZodLiteral<"success">;
28
+ error: z.ZodNull;
29
+ }>, {
30
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
31
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
32
+ }>, "strip", z.ZodTypeAny, {
33
+ error: null;
34
+ status: "success";
35
+ action_attempt_id: string;
36
+ result: {};
37
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
38
+ }, {
39
+ error: null;
40
+ status: "success";
41
+ action_attempt_id: string;
42
+ result: {};
43
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
44
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
45
+ action_attempt_id: z.ZodString;
46
+ status: z.ZodEnum<["pending", "success", "error"]>;
47
+ }, {
48
+ status: z.ZodLiteral<"error">;
49
+ result: z.ZodNull;
50
+ }>, {
51
+ action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
52
+ error: z.ZodObject<{
53
+ type: z.ZodString;
54
+ message: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: string;
57
+ message: string;
58
+ }, {
59
+ type: string;
60
+ message: string;
61
+ }>;
62
+ }>, "strip", z.ZodTypeAny, {
63
+ error: {
64
+ type: string;
65
+ message: string;
66
+ };
67
+ status: "error";
68
+ action_attempt_id: string;
69
+ result: null;
70
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
71
+ }, {
72
+ error: {
73
+ type: string;
74
+ message: string;
75
+ };
76
+ status: "error";
77
+ action_attempt_id: string;
78
+ result: null;
79
+ action_type: "PUSH_THERMOSTAT_PROGRAMS";
80
+ }>]>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z.literal('PUSH_THERMOSTAT_PROGRAMS');
4
+ const error = z.object({
5
+ type: z.string(),
6
+ message: z.string(),
7
+ });
8
+ const result = z.object({});
9
+ export const push_thermostat_programs_action_attempt = z.discriminatedUnion('status', [
10
+ common_pending_action_attempt
11
+ .extend({
12
+ action_type,
13
+ })
14
+ .describe('Pushing thermostat weekly programs.'),
15
+ common_succeeded_action_attempt
16
+ .extend({
17
+ action_type,
18
+ result,
19
+ })
20
+ .describe('Pushing thermostat weekly programs succeeded.'),
21
+ common_failed_action_attempt
22
+ .extend({ action_type, error })
23
+ .describe('Pushing thermostat weekly programs failed.'),
24
+ ]);
25
+ //# sourceMappingURL=push-thermostat-programs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push-thermostat-programs.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAEzD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,kBAAkB,CACzE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,qCAAqC,CAAC;IAClD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CACF,CAAA"}
@@ -23259,65 +23259,10 @@ declare const _default: {
23259
23259
  'application/json': {
23260
23260
  schema: {
23261
23261
  properties: {
23262
- ok: {
23263
- type: string;
23262
+ action_attempt: {
23263
+ $ref: string;
23264
23264
  };
23265
- thermostat_weekly_program: {
23266
- properties: {
23267
- created_at: {
23268
- description: string;
23269
- format: string;
23270
- type: string;
23271
- };
23272
- device_id: {
23273
- description: string;
23274
- format: string;
23275
- type: string;
23276
- };
23277
- friday_program_id: {
23278
- description: string;
23279
- format: string;
23280
- nullable: boolean;
23281
- type: string;
23282
- };
23283
- monday_program_id: {
23284
- description: string;
23285
- format: string;
23286
- nullable: boolean;
23287
- type: string;
23288
- };
23289
- saturday_program_id: {
23290
- description: string;
23291
- format: string;
23292
- nullable: boolean;
23293
- type: string;
23294
- };
23295
- sunday_program_id: {
23296
- description: string;
23297
- format: string;
23298
- nullable: boolean;
23299
- type: string;
23300
- };
23301
- thursday_program_id: {
23302
- description: string;
23303
- format: string;
23304
- nullable: boolean;
23305
- type: string;
23306
- };
23307
- tuesday_program_id: {
23308
- description: string;
23309
- format: string;
23310
- nullable: boolean;
23311
- type: string;
23312
- };
23313
- wednesday_program_id: {
23314
- description: string;
23315
- format: string;
23316
- nullable: boolean;
23317
- type: string;
23318
- };
23319
- };
23320
- required: string[];
23265
+ ok: {
23321
23266
  type: string;
23322
23267
  };
23323
23268
  };
@@ -23358,6 +23303,7 @@ declare const _default: {
23358
23303
  })[];
23359
23304
  summary: string;
23360
23305
  tags: string[];
23306
+ 'x-action-attempt-type': string;
23361
23307
  'x-fern-sdk-group-name': string[];
23362
23308
  'x-fern-sdk-method-name': string;
23363
23309
  'x-fern-sdk-return-value': string;
@@ -23393,6 +23339,9 @@ declare const _default: {
23393
23339
  'application/json': {
23394
23340
  schema: {
23395
23341
  properties: {
23342
+ action_attempt: {
23343
+ $ref: string;
23344
+ };
23396
23345
  ok: {
23397
23346
  type: string;
23398
23347
  };
@@ -23434,9 +23383,11 @@ declare const _default: {
23434
23383
  })[];
23435
23384
  summary: string;
23436
23385
  tags: string[];
23386
+ 'x-action-attempt-type': string;
23437
23387
  'x-fern-sdk-group-name': string[];
23438
23388
  'x-fern-sdk-method-name': string;
23439
- 'x-response-key': null;
23389
+ 'x-fern-sdk-return-value': string;
23390
+ 'x-response-key': string;
23440
23391
  'x-title': string;
23441
23392
  'x-undocumented': string;
23442
23393
  };
@@ -23924,6 +23875,9 @@ declare const _default: {
23924
23875
  'application/json': {
23925
23876
  schema: {
23926
23877
  properties: {
23878
+ action_attempt: {
23879
+ $ref: string;
23880
+ };
23927
23881
  ok: {
23928
23882
  type: string;
23929
23883
  };
@@ -23965,8 +23919,9 @@ declare const _default: {
23965
23919
  })[];
23966
23920
  summary: string;
23967
23921
  tags: string[];
23922
+ 'x-action-attempt-type': string;
23968
23923
  'x-fern-ignore': boolean;
23969
- 'x-response-key': null;
23924
+ 'x-response-key': string;
23970
23925
  'x-title': string;
23971
23926
  'x-undocumented': string;
23972
23927
  };
@@ -24019,6 +23974,9 @@ declare const _default: {
24019
23974
  'application/json': {
24020
23975
  schema: {
24021
23976
  properties: {
23977
+ action_attempt: {
23978
+ $ref: string;
23979
+ };
24022
23980
  ok: {
24023
23981
  type: string;
24024
23982
  };
@@ -24060,9 +24018,11 @@ declare const _default: {
24060
24018
  })[];
24061
24019
  summary: string;
24062
24020
  tags: string[];
24021
+ 'x-action-attempt-type': string;
24063
24022
  'x-fern-sdk-group-name': string[];
24064
24023
  'x-fern-sdk-method-name': string;
24065
- 'x-response-key': null;
24024
+ 'x-fern-sdk-return-value': string;
24025
+ 'x-response-key': string;
24066
24026
  'x-title': string;
24067
24027
  'x-undocumented': string;
24068
24028
  };
@@ -5672,6 +5672,100 @@ export default {
5672
5672
  ],
5673
5673
  type: 'object',
5674
5674
  },
5675
+ {
5676
+ description: 'Pushing thermostat weekly programs.',
5677
+ properties: {
5678
+ action_attempt_id: {
5679
+ description: 'ID of the action attempt.',
5680
+ format: 'uuid',
5681
+ type: 'string',
5682
+ },
5683
+ action_type: {
5684
+ enum: ['PUSH_THERMOSTAT_PROGRAMS'],
5685
+ type: 'string',
5686
+ },
5687
+ error: {
5688
+ description: 'Errors associated with the action attempt. Null for pending action attempts.',
5689
+ nullable: true,
5690
+ },
5691
+ result: {
5692
+ description: 'Result of the action attempt. Null for pending action attempts.',
5693
+ nullable: true,
5694
+ },
5695
+ status: { enum: ['pending'], type: 'string' },
5696
+ },
5697
+ required: [
5698
+ 'action_attempt_id',
5699
+ 'status',
5700
+ 'result',
5701
+ 'error',
5702
+ 'action_type',
5703
+ ],
5704
+ type: 'object',
5705
+ },
5706
+ {
5707
+ description: 'Pushing thermostat weekly programs succeeded.',
5708
+ properties: {
5709
+ action_attempt_id: {
5710
+ description: 'ID of the action attempt.',
5711
+ format: 'uuid',
5712
+ type: 'string',
5713
+ },
5714
+ action_type: {
5715
+ enum: ['PUSH_THERMOSTAT_PROGRAMS'],
5716
+ type: 'string',
5717
+ },
5718
+ error: {
5719
+ description: 'Errors associated with the action attempt. Null for successful action attempts.',
5720
+ nullable: true,
5721
+ },
5722
+ result: { properties: {}, type: 'object' },
5723
+ status: { enum: ['success'], type: 'string' },
5724
+ },
5725
+ required: [
5726
+ 'action_attempt_id',
5727
+ 'status',
5728
+ 'error',
5729
+ 'action_type',
5730
+ 'result',
5731
+ ],
5732
+ type: 'object',
5733
+ },
5734
+ {
5735
+ description: 'Pushing thermostat weekly programs failed.',
5736
+ properties: {
5737
+ action_attempt_id: {
5738
+ description: 'ID of the action attempt.',
5739
+ format: 'uuid',
5740
+ type: 'string',
5741
+ },
5742
+ action_type: {
5743
+ enum: ['PUSH_THERMOSTAT_PROGRAMS'],
5744
+ type: 'string',
5745
+ },
5746
+ error: {
5747
+ properties: {
5748
+ message: { type: 'string' },
5749
+ type: { type: 'string' },
5750
+ },
5751
+ required: ['type', 'message'],
5752
+ type: 'object',
5753
+ },
5754
+ result: {
5755
+ description: 'Result of the action attempt. Null for failed action attempts.',
5756
+ nullable: true,
5757
+ },
5758
+ status: { enum: ['error'], type: 'string' },
5759
+ },
5760
+ required: [
5761
+ 'action_attempt_id',
5762
+ 'status',
5763
+ 'result',
5764
+ 'action_type',
5765
+ 'error',
5766
+ ],
5767
+ type: 'object',
5768
+ },
5675
5769
  {
5676
5770
  properties: {
5677
5771
  action_attempt_id: {
@@ -27826,77 +27920,12 @@ export default {
27826
27920
  'application/json': {
27827
27921
  schema: {
27828
27922
  properties: {
27829
- ok: { type: 'boolean' },
27830
- thermostat_weekly_program: {
27831
- properties: {
27832
- created_at: {
27833
- description: 'Date and time at which the thermostat weekly program was created.',
27834
- format: 'date-time',
27835
- type: 'string',
27836
- },
27837
- device_id: {
27838
- description: 'ID of the thermostat device the weekly program is for.',
27839
- format: 'uuid',
27840
- type: 'string',
27841
- },
27842
- friday_program_id: {
27843
- description: 'ID of the thermostat daily program to run on Fridays.',
27844
- format: 'uuid',
27845
- nullable: true,
27846
- type: 'string',
27847
- },
27848
- monday_program_id: {
27849
- description: 'ID of the thermostat daily program to run on Mondays.',
27850
- format: 'uuid',
27851
- nullable: true,
27852
- type: 'string',
27853
- },
27854
- saturday_program_id: {
27855
- description: 'ID of the thermostat daily program to run on Saturdays.',
27856
- format: 'uuid',
27857
- nullable: true,
27858
- type: 'string',
27859
- },
27860
- sunday_program_id: {
27861
- description: 'ID of the thermostat daily program to run on Sundays.',
27862
- format: 'uuid',
27863
- nullable: true,
27864
- type: 'string',
27865
- },
27866
- thursday_program_id: {
27867
- description: 'ID of the thermostat daily program to run on Thursdays.',
27868
- format: 'uuid',
27869
- nullable: true,
27870
- type: 'string',
27871
- },
27872
- tuesday_program_id: {
27873
- description: 'ID of the thermostat daily program to run on Tuesdays.',
27874
- format: 'uuid',
27875
- nullable: true,
27876
- type: 'string',
27877
- },
27878
- wednesday_program_id: {
27879
- description: 'ID of the thermostat daily program to run on Wednesdays.',
27880
- format: 'uuid',
27881
- nullable: true,
27882
- type: 'string',
27883
- },
27884
- },
27885
- required: [
27886
- 'device_id',
27887
- 'monday_program_id',
27888
- 'tuesday_program_id',
27889
- 'wednesday_program_id',
27890
- 'thursday_program_id',
27891
- 'friday_program_id',
27892
- 'saturday_program_id',
27893
- 'sunday_program_id',
27894
- 'created_at',
27895
- ],
27896
- type: 'object',
27923
+ action_attempt: {
27924
+ $ref: '#/components/schemas/action_attempt',
27897
27925
  },
27926
+ ok: { type: 'boolean' },
27898
27927
  },
27899
- required: ['thermostat_weekly_program', 'ok'],
27928
+ required: ['action_attempt', 'ok'],
27900
27929
  type: 'object',
27901
27930
  },
27902
27931
  },
@@ -27914,10 +27943,11 @@ export default {
27914
27943
  ],
27915
27944
  summary: '/thermostats/activate_weekly_program',
27916
27945
  tags: ['/thermostats'],
27946
+ 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
27917
27947
  'x-fern-sdk-group-name': ['thermostats'],
27918
27948
  'x-fern-sdk-method-name': 'activate_weekly_program',
27919
- 'x-fern-sdk-return-value': 'thermostat_weekly_program',
27920
- 'x-response-key': 'thermostat_weekly_program',
27949
+ 'x-fern-sdk-return-value': 'action_attempt',
27950
+ 'x-response-key': 'action_attempt',
27921
27951
  'x-title': 'Activate a Thermostat Weekly Program',
27922
27952
  'x-undocumented': 'Unreleased.',
27923
27953
  },
@@ -27948,8 +27978,13 @@ export default {
27948
27978
  content: {
27949
27979
  'application/json': {
27950
27980
  schema: {
27951
- properties: { ok: { type: 'boolean' } },
27952
- required: ['ok'],
27981
+ properties: {
27982
+ action_attempt: {
27983
+ $ref: '#/components/schemas/action_attempt',
27984
+ },
27985
+ ok: { type: 'boolean' },
27986
+ },
27987
+ required: ['action_attempt', 'ok'],
27953
27988
  type: 'object',
27954
27989
  },
27955
27990
  },
@@ -27967,9 +28002,11 @@ export default {
27967
28002
  ],
27968
28003
  summary: '/thermostats/clear_weekly_program',
27969
28004
  tags: ['/thermostats'],
28005
+ 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
27970
28006
  'x-fern-sdk-group-name': ['thermostats'],
27971
28007
  'x-fern-sdk-method-name': 'clear_weekly_program',
27972
- 'x-response-key': null,
28008
+ 'x-fern-sdk-return-value': 'action_attempt',
28009
+ 'x-response-key': 'action_attempt',
27973
28010
  'x-title': 'Clear a Thermostat Weekly Program',
27974
28011
  'x-undocumented': 'Unreleased.',
27975
28012
  },
@@ -28373,8 +28410,13 @@ export default {
28373
28410
  content: {
28374
28411
  'application/json': {
28375
28412
  schema: {
28376
- properties: { ok: { type: 'boolean' } },
28377
- required: ['ok'],
28413
+ properties: {
28414
+ action_attempt: {
28415
+ $ref: '#/components/schemas/action_attempt',
28416
+ },
28417
+ ok: { type: 'boolean' },
28418
+ },
28419
+ required: ['action_attempt', 'ok'],
28378
28420
  type: 'object',
28379
28421
  },
28380
28422
  },
@@ -28392,8 +28434,9 @@ export default {
28392
28434
  ],
28393
28435
  summary: '/thermostats/daily_programs/update',
28394
28436
  tags: ['/thermostats'],
28437
+ 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
28395
28438
  'x-fern-ignore': true,
28396
- 'x-response-key': null,
28439
+ 'x-response-key': 'action_attempt',
28397
28440
  'x-title': 'Update a Thermostat Daily Program',
28398
28441
  'x-undocumented': 'Unreleased.',
28399
28442
  },
@@ -28445,8 +28488,13 @@ export default {
28445
28488
  content: {
28446
28489
  'application/json': {
28447
28490
  schema: {
28448
- properties: { ok: { type: 'boolean' } },
28449
- required: ['ok'],
28491
+ properties: {
28492
+ action_attempt: {
28493
+ $ref: '#/components/schemas/action_attempt',
28494
+ },
28495
+ ok: { type: 'boolean' },
28496
+ },
28497
+ required: ['action_attempt', 'ok'],
28450
28498
  type: 'object',
28451
28499
  },
28452
28500
  },
@@ -28464,9 +28512,11 @@ export default {
28464
28512
  ],
28465
28513
  summary: '/thermostats/daily_programs/update',
28466
28514
  tags: ['/thermostats'],
28515
+ 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
28467
28516
  'x-fern-sdk-group-name': ['thermostats', 'daily_programs'],
28468
28517
  'x-fern-sdk-method-name': 'update',
28469
- 'x-response-key': null,
28518
+ 'x-fern-sdk-return-value': 'action_attempt',
28519
+ 'x-response-key': 'action_attempt',
28470
28520
  'x-title': 'Update a Thermostat Daily Program',
28471
28521
  'x-undocumented': 'Unreleased.',
28472
28522
  },