@seamapi/types 1.392.1 → 1.394.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.
package/dist/connect.cjs CHANGED
@@ -1838,6 +1838,7 @@ var acs_entrance_assa_abloy_vostio_metadata = zod.z.object({
1838
1838
  pms_id: zod.z.string().optional()
1839
1839
  });
1840
1840
  var acs_credential_vostio_metadata = zod.z.object({
1841
+ // auto_join does not exist in the Vostio API and is an abstraction made by Seam
1841
1842
  auto_join: zod.z.boolean().optional(),
1842
1843
  override_guest_acs_entrance_ids: zod.z.string().array().optional(),
1843
1844
  key_id: zod.z.string().optional(),
@@ -2610,12 +2611,18 @@ var acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
2610
2611
  }).describe(
2611
2612
  `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not deleted on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`
2612
2613
  );
2614
+ var acs_users_latch_conflict_with_resident_user = common_acs_user_error.extend({
2615
+ error_code: zod.z.literal("latch_conflict_with_resident_user")
2616
+ }).describe(
2617
+ `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).`
2618
+ );
2613
2619
  var acs_user_errors = zod.z.discriminatedUnion("error_code", [
2614
2620
  acs_users_deleted_externally,
2615
2621
  acs_users_salto_ks_subscription_limit_exceeded,
2616
2622
  acs_users_failed_to_create_on_acs_system,
2617
2623
  acs_users_failed_to_update_on_acs_system,
2618
- acs_users_failed_to_delete_on_acs_system
2624
+ acs_users_failed_to_delete_on_acs_system,
2625
+ acs_users_latch_conflict_with_resident_user
2619
2626
  ]).describe(
2620
2627
  "Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management)."
2621
2628
  );
@@ -2624,7 +2631,8 @@ zod.z.object({
2624
2631
  salto_ks_subscription_limit_exceeded: acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
2625
2632
  failed_to_create_on_acs_system: acs_users_failed_to_create_on_acs_system.optional().nullable(),
2626
2633
  failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system.optional().nullable(),
2627
- failed_to_delete_on_acs_system: acs_users_failed_to_delete_on_acs_system.optional().nullable()
2634
+ failed_to_delete_on_acs_system: acs_users_failed_to_delete_on_acs_system.optional().nullable(),
2635
+ latch_conflict_with_resident_user: acs_users_latch_conflict_with_resident_user.optional().nullable()
2628
2636
  });
2629
2637
  var common_acs_user_warning = zod.z.object({
2630
2638
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
@@ -2749,7 +2757,13 @@ var common_acs_user = zod.z.object({
2749
2757
  ),
2750
2758
  pending_mutations: zod.z.array(acs_user_pending_mutations).optional().describe(
2751
2759
  "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system."
2752
- )
2760
+ ),
2761
+ last_successful_sync_at: zod.z.string().datetime().nullable().describe(`
2762
+ ---
2763
+ undocumented: Only used internally.
2764
+ ---
2765
+ The last time an internal sync job completed for this ACS user.
2766
+ `)
2753
2767
  }).merge(user_fields);
2754
2768
  var acs_user = common_acs_user.merge(
2755
2769
  zod.z.object({
@@ -7087,6 +7101,26 @@ var openapi_default = {
7087
7101
  },
7088
7102
  required: ["created_at", "message", "error_code"],
7089
7103
  type: "object"
7104
+ },
7105
+ {
7106
+ description: "Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).",
7107
+ properties: {
7108
+ created_at: {
7109
+ description: "Date and time at which Seam created the error.",
7110
+ format: "date-time",
7111
+ type: "string"
7112
+ },
7113
+ error_code: {
7114
+ enum: ["latch_conflict_with_resident_user"],
7115
+ type: "string"
7116
+ },
7117
+ message: {
7118
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
7119
+ type: "string"
7120
+ }
7121
+ },
7122
+ required: ["created_at", "message", "error_code"],
7123
+ type: "object"
7090
7124
  }
7091
7125
  ]
7092
7126
  },
@@ -7120,6 +7154,13 @@ var openapi_default = {
7120
7154
  description: "Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).",
7121
7155
  type: "boolean"
7122
7156
  },
7157
+ last_successful_sync_at: {
7158
+ description: "The last time an internal sync job completed for this ACS user.",
7159
+ format: "date-time",
7160
+ nullable: true,
7161
+ type: "string",
7162
+ "x-undocumented": "Only used internally."
7163
+ },
7123
7164
  pending_mutations: {
7124
7165
  description: "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.",
7125
7166
  items: {
@@ -7482,6 +7523,7 @@ var openapi_default = {
7482
7523
  "display_name",
7483
7524
  "warnings",
7484
7525
  "errors",
7526
+ "last_successful_sync_at",
7485
7527
  "is_managed"
7486
7528
  ],
7487
7529
  type: "object",
@@ -20245,6 +20287,26 @@ var openapi_default = {
20245
20287
  },
20246
20288
  required: ["created_at", "message", "error_code"],
20247
20289
  type: "object"
20290
+ },
20291
+ {
20292
+ description: "Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).",
20293
+ properties: {
20294
+ created_at: {
20295
+ description: "Date and time at which Seam created the error.",
20296
+ format: "date-time",
20297
+ type: "string"
20298
+ },
20299
+ error_code: {
20300
+ enum: ["latch_conflict_with_resident_user"],
20301
+ type: "string"
20302
+ },
20303
+ message: {
20304
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
20305
+ type: "string"
20306
+ }
20307
+ },
20308
+ required: ["created_at", "message", "error_code"],
20309
+ type: "object"
20248
20310
  }
20249
20311
  ]
20250
20312
  },
@@ -20278,6 +20340,13 @@ var openapi_default = {
20278
20340
  description: "Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).",
20279
20341
  type: "boolean"
20280
20342
  },
20343
+ last_successful_sync_at: {
20344
+ description: "The last time an internal sync job completed for this ACS user.",
20345
+ format: "date-time",
20346
+ nullable: true,
20347
+ type: "string",
20348
+ "x-undocumented": "Only used internally."
20349
+ },
20281
20350
  pending_mutations: {
20282
20351
  description: "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.",
20283
20352
  items: {
@@ -20640,6 +20709,7 @@ var openapi_default = {
20640
20709
  "display_name",
20641
20710
  "warnings",
20642
20711
  "errors",
20712
+ "last_successful_sync_at",
20643
20713
  "is_managed"
20644
20714
  ],
20645
20715
  type: "object",
@@ -32349,6 +32419,54 @@ var openapi_default = {
32349
32419
  "x-undocumented": "Seam Instant Key only."
32350
32420
  }
32351
32421
  },
32422
+ "/seam/mobile_sdk/v1/acs/credentials/list": {
32423
+ post: {
32424
+ description: "Returns a list of all ACS credentials.",
32425
+ operationId: "seamMobileSdkV1AcsCredentialsListPost",
32426
+ requestBody: {
32427
+ content: {
32428
+ "application/json": { schema: { properties: {}, type: "object" } }
32429
+ }
32430
+ },
32431
+ responses: {
32432
+ 200: {
32433
+ content: {
32434
+ "application/json": {
32435
+ schema: {
32436
+ properties: {
32437
+ acs_credentials: {
32438
+ items: { $ref: "#/components/schemas/acs_credential" },
32439
+ type: "array"
32440
+ },
32441
+ ok: { type: "boolean" }
32442
+ },
32443
+ required: ["acs_credentials", "ok"],
32444
+ type: "object"
32445
+ }
32446
+ }
32447
+ },
32448
+ description: "OK"
32449
+ },
32450
+ 400: { description: "Bad Request" },
32451
+ 401: { description: "Unauthorized" }
32452
+ },
32453
+ security: [{ client_session: [] }],
32454
+ summary: "/seam/mobile_sdk/v1/acs/credentials/list",
32455
+ tags: ["/acs"],
32456
+ "x-fern-sdk-group-name": [
32457
+ "seam",
32458
+ "mobile_sdk",
32459
+ "v1",
32460
+ "acs",
32461
+ "credentials"
32462
+ ],
32463
+ "x-fern-sdk-method-name": "list",
32464
+ "x-fern-sdk-return-value": "acs_credentials",
32465
+ "x-response-key": "acs_credentials",
32466
+ "x-title": "List Credentials",
32467
+ "x-undocumented": "Mobile SDK only."
32468
+ }
32469
+ },
32352
32470
  "/thermostats/activate_climate_preset": {
32353
32471
  post: {
32354
32472
  description: "Activates a specified [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",