@seamapi/types 1.234.0 → 1.235.1

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
@@ -16,7 +16,6 @@ __export(schemas_exports, {
16
16
  acs_credential: () => acs_credential,
17
17
  acs_entrance: () => acs_entrance,
18
18
  acs_system: () => acs_system,
19
- acs_unmanaged_user: () => acs_unmanaged_user,
20
19
  acs_user: () => acs_user,
21
20
  action_attempt: () => action_attempt,
22
21
  client_session: () => client_session,
@@ -29,7 +28,9 @@ __export(schemas_exports, {
29
28
  noise_threshold: () => noise_threshold,
30
29
  seam_event: () => seam_event,
31
30
  unmanaged_access_code: () => unmanaged_access_code,
31
+ unmanaged_acs_access_group: () => unmanaged_acs_access_group,
32
32
  unmanaged_acs_credential: () => unmanaged_acs_credential,
33
+ unmanaged_acs_user: () => unmanaged_acs_user,
33
34
  unmanaged_device: () => unmanaged_device,
34
35
  user_identity: () => user_identity,
35
36
  webhook: () => webhook,
@@ -1032,7 +1033,7 @@ var acs_access_group_external_type = zod.z.enum([
1032
1033
  "salto_access_group",
1033
1034
  "brivo_group"
1034
1035
  ]);
1035
- var acs_access_group = zod.z.object({
1036
+ var common_acs_access_group = zod.z.object({
1036
1037
  acs_access_group_id: zod.z.string().uuid(),
1037
1038
  acs_system_id: zod.z.string().uuid(),
1038
1039
  workspace_id: zod.z.string().uuid(),
@@ -1052,6 +1053,12 @@ var acs_access_group = zod.z.object({
1052
1053
  external_type_display_name: zod.z.string(),
1053
1054
  created_at: zod.z.string().datetime()
1054
1055
  });
1056
+ var acs_access_group = common_acs_access_group.extend({
1057
+ is_managed: zod.z.literal(true)
1058
+ });
1059
+ var unmanaged_acs_access_group = common_acs_access_group.extend({
1060
+ is_managed: zod.z.literal(false)
1061
+ });
1055
1062
  var acs_entrance_latch_metadata = zod.z.object({
1056
1063
  accessibility_type: zod.z.string(),
1057
1064
  door_name: zod.z.string(),
@@ -1336,7 +1343,7 @@ var acs_user = common_acs_user.merge(
1336
1343
  is_managed: zod.z.literal(true)
1337
1344
  })
1338
1345
  );
1339
- var acs_unmanaged_user = common_acs_user.merge(
1346
+ var unmanaged_acs_user = common_acs_user.merge(
1340
1347
  zod.z.object({
1341
1348
  is_managed: zod.z.literal(false)
1342
1349
  })
@@ -2431,6 +2438,7 @@ var openapi_default = {
2431
2438
  type: "string"
2432
2439
  },
2433
2440
  external_type_display_name: { type: "string" },
2441
+ is_managed: { enum: [true], type: "boolean" },
2434
2442
  name: { type: "string" },
2435
2443
  workspace_id: { format: "uuid", type: "string" }
2436
2444
  },
@@ -2444,7 +2452,8 @@ var openapi_default = {
2444
2452
  "display_name",
2445
2453
  "external_type",
2446
2454
  "external_type_display_name",
2447
- "created_at"
2455
+ "created_at",
2456
+ "is_managed"
2448
2457
  ],
2449
2458
  type: "object"
2450
2459
  },
@@ -7608,6 +7617,206 @@ var openapi_default = {
7608
7617
  "x-fern-sdk-method-name": "remove_user"
7609
7618
  }
7610
7619
  },
7620
+ "/acs/access_groups/unmanaged/get": {
7621
+ post: {
7622
+ operationId: "acsAccessGroupsUnmanagedGetPost",
7623
+ requestBody: {
7624
+ content: {
7625
+ "application/json": {
7626
+ schema: {
7627
+ properties: {
7628
+ acs_access_group_id: { format: "uuid", type: "string" }
7629
+ },
7630
+ required: ["acs_access_group_id"],
7631
+ type: "object"
7632
+ }
7633
+ }
7634
+ }
7635
+ },
7636
+ responses: {
7637
+ 200: {
7638
+ content: {
7639
+ "application/json": {
7640
+ schema: {
7641
+ properties: {
7642
+ acs_access_group: {
7643
+ properties: {
7644
+ access_group_type: {
7645
+ deprecated: true,
7646
+ enum: [
7647
+ "pti_unit",
7648
+ "pti_access_level",
7649
+ "salto_access_group",
7650
+ "brivo_group"
7651
+ ],
7652
+ type: "string",
7653
+ "x-deprecated": "use external_type"
7654
+ },
7655
+ access_group_type_display_name: {
7656
+ deprecated: true,
7657
+ type: "string",
7658
+ "x-deprecated": "use external_type_display_name"
7659
+ },
7660
+ acs_access_group_id: { format: "uuid", type: "string" },
7661
+ acs_system_id: { format: "uuid", type: "string" },
7662
+ created_at: { format: "date-time", type: "string" },
7663
+ display_name: { type: "string" },
7664
+ external_type: {
7665
+ enum: [
7666
+ "pti_unit",
7667
+ "pti_access_level",
7668
+ "salto_access_group",
7669
+ "brivo_group"
7670
+ ],
7671
+ type: "string"
7672
+ },
7673
+ external_type_display_name: { type: "string" },
7674
+ is_managed: { enum: [false], type: "boolean" },
7675
+ name: { type: "string" },
7676
+ workspace_id: { format: "uuid", type: "string" }
7677
+ },
7678
+ required: [
7679
+ "acs_access_group_id",
7680
+ "acs_system_id",
7681
+ "workspace_id",
7682
+ "name",
7683
+ "access_group_type",
7684
+ "access_group_type_display_name",
7685
+ "display_name",
7686
+ "external_type",
7687
+ "external_type_display_name",
7688
+ "created_at",
7689
+ "is_managed"
7690
+ ],
7691
+ type: "object"
7692
+ },
7693
+ ok: { type: "boolean" }
7694
+ },
7695
+ required: ["acs_access_group", "ok"],
7696
+ type: "object"
7697
+ }
7698
+ }
7699
+ },
7700
+ description: "OK"
7701
+ },
7702
+ 400: { description: "Bad Request" },
7703
+ 401: { description: "Unauthorized" }
7704
+ },
7705
+ security: [
7706
+ { pat_with_workspace: [] },
7707
+ { console_session: [] },
7708
+ { api_key: [] }
7709
+ ],
7710
+ summary: "/acs/access_groups/unmanaged/get",
7711
+ tags: ["/acs"],
7712
+ "x-fern-sdk-group-name": ["acs", "access_groups", "unmanaged"],
7713
+ "x-fern-sdk-method-name": "get",
7714
+ "x-fern-sdk-return-value": "acs_access_group"
7715
+ }
7716
+ },
7717
+ "/acs/access_groups/unmanaged/list": {
7718
+ post: {
7719
+ operationId: "acsAccessGroupsUnmanagedListPost",
7720
+ requestBody: {
7721
+ content: {
7722
+ "application/json": {
7723
+ schema: {
7724
+ properties: {
7725
+ acs_system_id: { format: "uuid", type: "string" },
7726
+ acs_user_id: { format: "uuid", type: "string" }
7727
+ },
7728
+ type: "object"
7729
+ }
7730
+ }
7731
+ }
7732
+ },
7733
+ responses: {
7734
+ 200: {
7735
+ content: {
7736
+ "application/json": {
7737
+ schema: {
7738
+ properties: {
7739
+ acs_access_groups: {
7740
+ items: {
7741
+ properties: {
7742
+ access_group_type: {
7743
+ deprecated: true,
7744
+ enum: [
7745
+ "pti_unit",
7746
+ "pti_access_level",
7747
+ "salto_access_group",
7748
+ "brivo_group"
7749
+ ],
7750
+ type: "string",
7751
+ "x-deprecated": "use external_type"
7752
+ },
7753
+ access_group_type_display_name: {
7754
+ deprecated: true,
7755
+ type: "string",
7756
+ "x-deprecated": "use external_type_display_name"
7757
+ },
7758
+ acs_access_group_id: {
7759
+ format: "uuid",
7760
+ type: "string"
7761
+ },
7762
+ acs_system_id: { format: "uuid", type: "string" },
7763
+ created_at: { format: "date-time", type: "string" },
7764
+ display_name: { type: "string" },
7765
+ external_type: {
7766
+ enum: [
7767
+ "pti_unit",
7768
+ "pti_access_level",
7769
+ "salto_access_group",
7770
+ "brivo_group"
7771
+ ],
7772
+ type: "string"
7773
+ },
7774
+ external_type_display_name: { type: "string" },
7775
+ is_managed: { enum: [false], type: "boolean" },
7776
+ name: { type: "string" },
7777
+ workspace_id: { format: "uuid", type: "string" }
7778
+ },
7779
+ required: [
7780
+ "acs_access_group_id",
7781
+ "acs_system_id",
7782
+ "workspace_id",
7783
+ "name",
7784
+ "access_group_type",
7785
+ "access_group_type_display_name",
7786
+ "display_name",
7787
+ "external_type",
7788
+ "external_type_display_name",
7789
+ "created_at",
7790
+ "is_managed"
7791
+ ],
7792
+ type: "object"
7793
+ },
7794
+ type: "array"
7795
+ },
7796
+ ok: { type: "boolean" }
7797
+ },
7798
+ required: ["acs_access_groups", "ok"],
7799
+ type: "object"
7800
+ }
7801
+ }
7802
+ },
7803
+ description: "OK"
7804
+ },
7805
+ 400: { description: "Bad Request" },
7806
+ 401: { description: "Unauthorized" }
7807
+ },
7808
+ security: [
7809
+ { pat_with_workspace: [] },
7810
+ { console_session: [] },
7811
+ { api_key: [] }
7812
+ ],
7813
+ summary: "/acs/access_groups/unmanaged/list",
7814
+ tags: ["/acs"],
7815
+ "x-fern-sdk-group-name": ["acs", "access_groups", "unmanaged"],
7816
+ "x-fern-sdk-method-name": "list",
7817
+ "x-fern-sdk-return-value": "acs_access_groups"
7818
+ }
7819
+ },
7611
7820
  "/acs/credential_pools/list": {
7612
7821
  post: {
7613
7822
  operationId: "acsCredentialPoolsListPost",
@@ -9526,7 +9735,95 @@ var openapi_default = {
9526
9735
  "application/json": {
9527
9736
  schema: {
9528
9737
  properties: {
9529
- acs_user: { $ref: "#/components/schemas/acs_user" },
9738
+ acs_user: {
9739
+ properties: {
9740
+ access_schedule: {
9741
+ properties: {
9742
+ ends_at: { format: "date-time", type: "string" },
9743
+ starts_at: { format: "date-time", type: "string" }
9744
+ },
9745
+ required: ["starts_at", "ends_at"],
9746
+ type: "object"
9747
+ },
9748
+ acs_system_id: { format: "uuid", type: "string" },
9749
+ acs_user_id: { format: "uuid", type: "string" },
9750
+ created_at: { format: "date-time", type: "string" },
9751
+ display_name: { type: "string" },
9752
+ email: {
9753
+ deprecated: true,
9754
+ format: "email",
9755
+ type: "string",
9756
+ "x-deprecated": "use email_address."
9757
+ },
9758
+ email_address: { format: "email", type: "string" },
9759
+ external_type: {
9760
+ enum: [
9761
+ "pti_user",
9762
+ "brivo_user",
9763
+ "hid_credential_manager_user",
9764
+ "salto_site_user",
9765
+ "latch_user"
9766
+ ],
9767
+ type: "string"
9768
+ },
9769
+ external_type_display_name: { type: "string" },
9770
+ full_name: { type: "string" },
9771
+ hid_acs_system_id: { format: "uuid", type: "string" },
9772
+ is_latest_desired_state_synced_with_provider: {
9773
+ type: "boolean"
9774
+ },
9775
+ is_managed: { enum: [false], type: "boolean" },
9776
+ is_suspended: { type: "boolean" },
9777
+ latest_desired_state_synced_with_provider_at: {
9778
+ format: "date-time",
9779
+ type: "string"
9780
+ },
9781
+ phone_number: { type: "string" },
9782
+ user_identity_email_address: {
9783
+ nullable: true,
9784
+ type: "string"
9785
+ },
9786
+ user_identity_full_name: {
9787
+ nullable: true,
9788
+ type: "string"
9789
+ },
9790
+ user_identity_id: { type: "string" },
9791
+ user_identity_phone_number: {
9792
+ nullable: true,
9793
+ type: "string"
9794
+ },
9795
+ warnings: {
9796
+ items: {
9797
+ properties: {
9798
+ created_at: {
9799
+ format: "date-time",
9800
+ type: "string"
9801
+ },
9802
+ message: { type: "string" },
9803
+ warning_code: {
9804
+ enum: ["being_deleted"],
9805
+ type: "string"
9806
+ }
9807
+ },
9808
+ required: ["created_at", "message", "warning_code"],
9809
+ type: "object"
9810
+ },
9811
+ type: "array"
9812
+ },
9813
+ workspace_id: { format: "uuid", type: "string" }
9814
+ },
9815
+ required: [
9816
+ "acs_user_id",
9817
+ "acs_system_id",
9818
+ "workspace_id",
9819
+ "created_at",
9820
+ "display_name",
9821
+ "is_suspended",
9822
+ "warnings",
9823
+ "is_managed"
9824
+ ],
9825
+ type: "object"
9826
+ },
9530
9827
  ok: { type: "boolean" }
9531
9828
  },
9532
9829
  required: ["acs_user", "ok"],