@seamapi/types 1.253.1 → 1.255.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.
Files changed (27) hide show
  1. package/dist/connect.cjs +268 -69
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1324 -2
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +96 -0
  8. package/lib/seam/connect/models/action-attempts/encode-card.js +36 -0
  9. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
  10. package/lib/seam/connect/models/events/devices.d.ts +91 -1
  11. package/lib/seam/connect/models/events/devices.js +5 -2
  12. package/lib/seam/connect/models/events/devices.js.map +1 -1
  13. package/lib/seam/connect/models/events/seam-event.d.ts +86 -0
  14. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +29 -0
  15. package/lib/seam/connect/models/thermostats/climate-preset.js +8 -0
  16. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  17. package/lib/seam/connect/openapi.d.ts +116 -0
  18. package/lib/seam/connect/openapi.js +167 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +1056 -29
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  23. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +46 -0
  24. package/src/lib/seam/connect/models/events/devices.ts +5 -2
  25. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +11 -0
  26. package/src/lib/seam/connect/openapi.ts +169 -0
  27. package/src/lib/seam/connect/route-types.ts +1157 -13
@@ -2939,6 +2939,17 @@ declare const _default: {
2939
2939
  format: string;
2940
2940
  type: string;
2941
2941
  };
2942
+ climate_preset_key: {
2943
+ type: string;
2944
+ };
2945
+ cooling_set_point_celsius: {
2946
+ format: string;
2947
+ type: string;
2948
+ };
2949
+ cooling_set_point_fahrenheit: {
2950
+ format: string;
2951
+ type: string;
2952
+ };
2942
2953
  created_at: {
2943
2954
  format: string;
2944
2955
  type: string;
@@ -2961,10 +2972,31 @@ declare const _default: {
2961
2972
  event_type: {
2962
2973
  type: string;
2963
2974
  };
2975
+ fan_mode_setting: {
2976
+ type: string;
2977
+ };
2978
+ heating_set_point_celsius: {
2979
+ format: string;
2980
+ type: string;
2981
+ };
2982
+ heating_set_point_fahrenheit: {
2983
+ format: string;
2984
+ type: string;
2985
+ };
2986
+ hvac_mode_setting: {
2987
+ type: string;
2988
+ };
2989
+ is_fallback_climate_preset: {
2990
+ type: string;
2991
+ };
2964
2992
  occurred_at: {
2965
2993
  format: string;
2966
2994
  type: string;
2967
2995
  };
2996
+ thermostat_schedule_id: {
2997
+ format: string;
2998
+ type: string;
2999
+ };
2968
3000
  workspace_id: {
2969
3001
  format: string;
2970
3002
  type: string;
@@ -7867,6 +7899,90 @@ declare const _default: {
7867
7899
  'x-fern-sdk-method-name': string;
7868
7900
  };
7869
7901
  };
7902
+ '/acs/encoders/encode_card': {
7903
+ post: {
7904
+ operationId: string;
7905
+ requestBody: {
7906
+ content: {
7907
+ 'application/json': {
7908
+ schema: {
7909
+ oneOf: ({
7910
+ properties: {
7911
+ acs_system_id: {
7912
+ format: string;
7913
+ type: string;
7914
+ };
7915
+ device_name: {
7916
+ type: string;
7917
+ };
7918
+ device_id?: never;
7919
+ };
7920
+ required: string[];
7921
+ type: string;
7922
+ } | {
7923
+ properties: {
7924
+ device_id: {
7925
+ format: string;
7926
+ type: string;
7927
+ };
7928
+ acs_system_id?: never;
7929
+ device_name?: never;
7930
+ };
7931
+ required: string[];
7932
+ type: string;
7933
+ })[];
7934
+ };
7935
+ };
7936
+ };
7937
+ };
7938
+ responses: {
7939
+ 200: {
7940
+ content: {
7941
+ 'application/json': {
7942
+ schema: {
7943
+ properties: {
7944
+ action_attempt: {
7945
+ $ref: string;
7946
+ };
7947
+ ok: {
7948
+ type: string;
7949
+ };
7950
+ };
7951
+ required: string[];
7952
+ type: string;
7953
+ };
7954
+ };
7955
+ };
7956
+ description: string;
7957
+ };
7958
+ 400: {
7959
+ description: string;
7960
+ };
7961
+ 401: {
7962
+ description: string;
7963
+ };
7964
+ };
7965
+ security: ({
7966
+ pat_with_workspace: never[];
7967
+ console_session?: never;
7968
+ api_key?: never;
7969
+ } | {
7970
+ console_session: never[];
7971
+ pat_with_workspace?: never;
7972
+ api_key?: never;
7973
+ } | {
7974
+ api_key: never[];
7975
+ pat_with_workspace?: never;
7976
+ console_session?: never;
7977
+ })[];
7978
+ summary: string;
7979
+ tags: string[];
7980
+ 'x-fern-sdk-group-name': string[];
7981
+ 'x-fern-sdk-method-name': string;
7982
+ 'x-fern-sdk-return-value': string;
7983
+ 'x-undocumented': string;
7984
+ };
7985
+ };
7870
7986
  '/acs/encoders/read_card': {
7871
7987
  post: {
7872
7988
  operationId: string;
@@ -1190,6 +1190,98 @@ export default {
1190
1190
  ],
1191
1191
  type: 'object',
1192
1192
  },
1193
+ {
1194
+ description: 'Encoding card data from physical encoder.',
1195
+ properties: {
1196
+ action_attempt_id: {
1197
+ description: 'The ID of the action attempt.',
1198
+ format: 'uuid',
1199
+ type: 'string',
1200
+ 'x-title': 'Action Attempt ID',
1201
+ },
1202
+ action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1203
+ error: { nullable: true },
1204
+ result: { nullable: true },
1205
+ status: { enum: ['pending'], type: 'string' },
1206
+ },
1207
+ required: [
1208
+ 'action_attempt_id',
1209
+ 'status',
1210
+ 'result',
1211
+ 'error',
1212
+ 'action_type',
1213
+ ],
1214
+ type: 'object',
1215
+ },
1216
+ {
1217
+ description: 'Encoding card data from physical encoder succeeded.',
1218
+ properties: {
1219
+ action_attempt_id: {
1220
+ description: 'The ID of the action attempt.',
1221
+ format: 'uuid',
1222
+ type: 'string',
1223
+ 'x-title': 'Action Attempt ID',
1224
+ },
1225
+ action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1226
+ error: { nullable: true },
1227
+ result: {
1228
+ properties: {
1229
+ acs_credential_id: {
1230
+ description: 'Matching acs_credential currently encoded on this card.',
1231
+ format: 'uuid',
1232
+ nullable: true,
1233
+ type: 'string',
1234
+ },
1235
+ card_number: {
1236
+ description: 'A number or sting that physically identifies this card.',
1237
+ nullable: true,
1238
+ type: 'string',
1239
+ },
1240
+ },
1241
+ required: ['acs_credential_id', 'card_number'],
1242
+ type: 'object',
1243
+ },
1244
+ status: { enum: ['success'], type: 'string' },
1245
+ },
1246
+ required: [
1247
+ 'action_attempt_id',
1248
+ 'status',
1249
+ 'error',
1250
+ 'action_type',
1251
+ 'result',
1252
+ ],
1253
+ type: 'object',
1254
+ },
1255
+ {
1256
+ description: 'Encoding card data from physical encoder failed.',
1257
+ properties: {
1258
+ action_attempt_id: {
1259
+ description: 'The ID of the action attempt.',
1260
+ format: 'uuid',
1261
+ type: 'string',
1262
+ 'x-title': 'Action Attempt ID',
1263
+ },
1264
+ action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1265
+ error: {
1266
+ properties: {
1267
+ message: { type: 'string' },
1268
+ type: { type: 'string' },
1269
+ },
1270
+ required: ['type', 'message'],
1271
+ type: 'object',
1272
+ },
1273
+ result: { nullable: true },
1274
+ status: { enum: ['error'], type: 'string' },
1275
+ },
1276
+ required: [
1277
+ 'action_attempt_id',
1278
+ 'status',
1279
+ 'result',
1280
+ 'action_type',
1281
+ 'error',
1282
+ ],
1283
+ type: 'object',
1284
+ },
1193
1285
  {
1194
1286
  description: 'Resetting sandbox workspace.',
1195
1287
  properties: {
@@ -3715,13 +3807,22 @@ export default {
3715
3807
  acs_user_id: { format: 'uuid', type: 'string' },
3716
3808
  action_attempt_id: { format: 'uuid', type: 'string' },
3717
3809
  client_session_id: { format: 'uuid', type: 'string' },
3810
+ climate_preset_key: { type: 'string' },
3811
+ cooling_set_point_celsius: { format: 'float', type: 'number' },
3812
+ cooling_set_point_fahrenheit: { format: 'float', type: 'number' },
3718
3813
  created_at: { format: 'date-time', type: 'string' },
3719
3814
  device_id: { format: 'uuid', type: 'string' },
3720
3815
  enrollment_automation_id: { format: 'uuid', type: 'string' },
3721
3816
  event_description: { type: 'string' },
3722
3817
  event_id: { format: 'uuid', type: 'string' },
3723
3818
  event_type: { type: 'string' },
3819
+ fan_mode_setting: { type: 'string' },
3820
+ heating_set_point_celsius: { format: 'float', type: 'number' },
3821
+ heating_set_point_fahrenheit: { format: 'float', type: 'number' },
3822
+ hvac_mode_setting: { type: 'string' },
3823
+ is_fallback_climate_preset: { type: 'boolean' },
3724
3824
  occurred_at: { format: 'date-time', type: 'string' },
3825
+ thermostat_schedule_id: { format: 'uuid', type: 'string' },
3725
3826
  workspace_id: { format: 'uuid', type: 'string' },
3726
3827
  },
3727
3828
  required: [
@@ -7210,6 +7311,68 @@ export default {
7210
7311
  'x-fern-sdk-method-name': 'update',
7211
7312
  },
7212
7313
  },
7314
+ '/acs/encoders/encode_card': {
7315
+ post: {
7316
+ operationId: 'acsEncodersEncodeCardPost',
7317
+ requestBody: {
7318
+ content: {
7319
+ 'application/json': {
7320
+ schema: {
7321
+ oneOf: [
7322
+ {
7323
+ properties: {
7324
+ acs_system_id: { format: 'uuid', type: 'string' },
7325
+ device_name: { type: 'string' },
7326
+ },
7327
+ required: ['acs_system_id', 'device_name'],
7328
+ type: 'object',
7329
+ },
7330
+ {
7331
+ properties: {
7332
+ device_id: { format: 'uuid', type: 'string' },
7333
+ },
7334
+ required: ['device_id'],
7335
+ type: 'object',
7336
+ },
7337
+ ],
7338
+ },
7339
+ },
7340
+ },
7341
+ },
7342
+ responses: {
7343
+ 200: {
7344
+ content: {
7345
+ 'application/json': {
7346
+ schema: {
7347
+ properties: {
7348
+ action_attempt: {
7349
+ $ref: '#/components/schemas/action_attempt',
7350
+ },
7351
+ ok: { type: 'boolean' },
7352
+ },
7353
+ required: ['action_attempt', 'ok'],
7354
+ type: 'object',
7355
+ },
7356
+ },
7357
+ },
7358
+ description: 'OK',
7359
+ },
7360
+ 400: { description: 'Bad Request' },
7361
+ 401: { description: 'Unauthorized' },
7362
+ },
7363
+ security: [
7364
+ { pat_with_workspace: [] },
7365
+ { console_session: [] },
7366
+ { api_key: [] },
7367
+ ],
7368
+ summary: '/acs/encoders/encode_card',
7369
+ tags: ['/acs'],
7370
+ 'x-fern-sdk-group-name': ['acs', 'encoders'],
7371
+ 'x-fern-sdk-method-name': 'encode_card',
7372
+ 'x-fern-sdk-return-value': 'action_attempt',
7373
+ 'x-undocumented': 'Encoding a card is currently unimplemented.',
7374
+ },
7375
+ },
7213
7376
  '/acs/encoders/read_card': {
7214
7377
  post: {
7215
7378
  operationId: 'acsEncodersReadCardPost',
@@ -11422,6 +11585,8 @@ export default {
11422
11585
  'action_attempt.lock_door.failed',
11423
11586
  'action_attempt.unlock_door.succeeded',
11424
11587
  'action_attempt.unlock_door.failed',
11588
+ 'thermostat.climate_preset_activated',
11589
+ 'thermostat.manually_adjusted',
11425
11590
  ],
11426
11591
  type: 'string',
11427
11592
  },
@@ -11490,6 +11655,8 @@ export default {
11490
11655
  'action_attempt.lock_door.failed',
11491
11656
  'action_attempt.unlock_door.succeeded',
11492
11657
  'action_attempt.unlock_door.failed',
11658
+ 'thermostat.climate_preset_activated',
11659
+ 'thermostat.manually_adjusted',
11493
11660
  ],
11494
11661
  type: 'string',
11495
11662
  },