@seamapi/types 1.891.0 → 1.893.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 +191 -6
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +660 -2
  4. package/dist/index.cjs +191 -6
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +31 -0
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +31 -0
  8. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +162 -0
  9. package/lib/seam/connect/models/connected-accounts/connected-account.js +20 -0
  10. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  11. package/lib/seam/connect/models/devices/device-provider.d.ts +3 -2
  12. package/lib/seam/connect/models/devices/device-provider.js +3 -0
  13. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device.d.ts +50 -0
  15. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -0
  16. package/lib/seam/connect/models/user-identities/user-identity.d.ts +8 -8
  17. package/lib/seam/connect/models/user-identities/user-identity.js +1 -3
  18. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  19. package/lib/seam/connect/openapi.js +168 -0
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +451 -2
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +26 -0
  24. package/src/lib/seam/connect/models/devices/device-provider.ts +3 -0
  25. package/src/lib/seam/connect/models/user-identities/user-identity.ts +1 -3
  26. package/src/lib/seam/connect/openapi.ts +202 -0
  27. package/src/lib/seam/connect/route-types.ts +494 -0
package/dist/index.cjs CHANGED
@@ -636,15 +636,22 @@ var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend
636
636
  }).describe(
637
637
  "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
638
638
  );
639
+ var dormakaba_sites_disconnected = common_connected_account_error.extend({
640
+ error_code: zod.z.literal("dormakaba_sites_disconnected").describe(error_code_description)
641
+ }).describe(
642
+ "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support."
643
+ );
639
644
  var connected_account_error = zod.z.discriminatedUnion("error_code", [
640
645
  account_disconnected,
641
646
  bridge_disconnected,
642
- salto_ks_subscription_limit_exceeded
647
+ salto_ks_subscription_limit_exceeded,
648
+ dormakaba_sites_disconnected
643
649
  ]);
644
650
  zod.z.object({
645
651
  account_disconnected: account_disconnected.nullable().optional(),
646
652
  bridge_disconnected: bridge_disconnected.nullable().optional(),
647
- salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded.nullable().optional()
653
+ salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded.nullable().optional(),
654
+ dormakaba_sites_disconnected: dormakaba_sites_disconnected.nullable().optional()
648
655
  });
649
656
  var unknown_issue_with_connected_account = common_connected_account_warning.extend({
650
657
  warning_code: zod.z.literal("unknown_issue_with_connected_account").describe(warning_code_description)
@@ -705,6 +712,11 @@ var setup_required = common_connected_account_warning.extend({
705
712
  }).describe(
706
713
  "Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup."
707
714
  );
715
+ var dormakaba_sites_unapproved = common_connected_account_warning.extend({
716
+ warning_code: zod.z.literal("dormakaba_sites_unapproved").describe(warning_code_description)
717
+ }).describe(
718
+ "Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account."
719
+ );
708
720
  var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
709
721
  scheduled_maintenance_window,
710
722
  unknown_issue_with_connected_account,
@@ -712,7 +724,8 @@ var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
712
724
  account_reauthorization_requested,
713
725
  being_deleted,
714
726
  provider_service_unavailable,
715
- setup_required
727
+ setup_required,
728
+ dormakaba_sites_unapproved
716
729
  ]).describe("Warning associated with the connected account.");
717
730
  zod.z.object({
718
731
  scheduled_maintenance_window: scheduled_maintenance_window.nullable().optional(),
@@ -721,7 +734,8 @@ zod.z.object({
721
734
  account_reauthorization_requested: account_reauthorization_requested.nullable().optional(),
722
735
  being_deleted: being_deleted.nullable().optional(),
723
736
  provider_service_unavailable: provider_service_unavailable.nullable().optional(),
724
- setup_required: setup_required.nullable().optional()
737
+ setup_required: setup_required.nullable().optional(),
738
+ dormakaba_sites_unapproved: dormakaba_sites_unapproved.nullable().optional()
725
739
  });
726
740
  var connected_account = zod.z.object({
727
741
  connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
@@ -2070,6 +2084,7 @@ var DEVICE_PROVIDERS = {
2070
2084
  KEYINCODE: "keyincode",
2071
2085
  DORMAKABA_AMBIANCE: "dormakaba_ambiance",
2072
2086
  ULTRALOQ: "ultraloq",
2087
+ DUSAW: "dusaw",
2073
2088
  SIFELY: "sifely",
2074
2089
  RING: "ring",
2075
2090
  ICAL: "ical",
@@ -2119,7 +2134,8 @@ var PROVIDER_CATEGORY_MAP = {
2119
2134
  "korelock",
2120
2135
  "keyincode",
2121
2136
  "sifely",
2122
- "omnitec"
2137
+ "omnitec",
2138
+ "dusaw"
2123
2139
  ],
2124
2140
  consumer_smartlocks: [
2125
2141
  "akiles",
@@ -2137,6 +2153,7 @@ var PROVIDER_CATEGORY_MAP = {
2137
2153
  "ultraloq",
2138
2154
  "dormakaba_oracode",
2139
2155
  "korelock",
2156
+ "dusaw",
2140
2157
  "keyincode",
2141
2158
  "sifely"
2142
2159
  ],
@@ -6962,7 +6979,7 @@ var user_identity_warnings = zod.z.discriminatedUnion("warning_code", [
6962
6979
  acs_user_profile_does_not_match_user_identity
6963
6980
  ]).describe("Warnings associated with the user identity.");
6964
6981
  zod.z.object({
6965
- user_identity_being_deleted: user_identity_being_deleted.optional().nullable(),
6982
+ being_deleted: user_identity_being_deleted.optional().nullable(),
6966
6983
  acs_user_profile_does_not_match_user_identity: acs_user_profile_does_not_match_user_identity.optional().nullable()
6967
6984
  });
6968
6985
  var user_identity_errors = zod.z.discriminatedUnion("error_code", [user_identity_issue_with_acs_user]).describe("Errors associated with the user identity.");
@@ -8556,6 +8573,35 @@ var openapi = {
8556
8573
  },
8557
8574
  required: ["created_at", "message", "error_code"],
8558
8575
  type: "object"
8576
+ },
8577
+ {
8578
+ description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
8579
+ properties: {
8580
+ created_at: {
8581
+ description: "Date and time at which Seam created the error.",
8582
+ format: "date-time",
8583
+ type: "string"
8584
+ },
8585
+ error_code: {
8586
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
8587
+ enum: ["dormakaba_sites_disconnected"],
8588
+ type: "string"
8589
+ },
8590
+ is_bridge_error: {
8591
+ description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
8592
+ type: "boolean"
8593
+ },
8594
+ is_connected_account_error: {
8595
+ description: "Indicates whether the error is related specifically to the connected account.",
8596
+ type: "boolean"
8597
+ },
8598
+ message: {
8599
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
8600
+ type: "string"
8601
+ }
8602
+ },
8603
+ required: ["created_at", "message", "error_code"],
8604
+ type: "object"
8559
8605
  }
8560
8606
  ]
8561
8607
  },
@@ -18557,6 +18603,35 @@ var openapi = {
18557
18603
  "salto_ks_metadata"
18558
18604
  ],
18559
18605
  type: "object"
18606
+ },
18607
+ {
18608
+ description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
18609
+ properties: {
18610
+ created_at: {
18611
+ description: "Date and time at which Seam created the error.",
18612
+ format: "date-time",
18613
+ type: "string"
18614
+ },
18615
+ error_code: {
18616
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
18617
+ enum: ["dormakaba_sites_disconnected"],
18618
+ type: "string"
18619
+ },
18620
+ is_bridge_error: {
18621
+ description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
18622
+ type: "boolean"
18623
+ },
18624
+ is_connected_account_error: {
18625
+ description: "Indicates whether the error is related specifically to the connected account.",
18626
+ type: "boolean"
18627
+ },
18628
+ message: {
18629
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
18630
+ type: "string"
18631
+ }
18632
+ },
18633
+ required: ["created_at", "message", "error_code"],
18634
+ type: "object"
18560
18635
  }
18561
18636
  ]
18562
18637
  },
@@ -18805,6 +18880,27 @@ var openapi = {
18805
18880
  },
18806
18881
  required: ["created_at", "message", "warning_code"],
18807
18882
  type: "object"
18883
+ },
18884
+ {
18885
+ description: "Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.",
18886
+ properties: {
18887
+ created_at: {
18888
+ description: "Date and time at which Seam created the warning.",
18889
+ format: "date-time",
18890
+ type: "string"
18891
+ },
18892
+ message: {
18893
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
18894
+ type: "string"
18895
+ },
18896
+ warning_code: {
18897
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
18898
+ enum: ["dormakaba_sites_unapproved"],
18899
+ type: "string"
18900
+ }
18901
+ },
18902
+ required: ["created_at", "message", "warning_code"],
18903
+ type: "object"
18808
18904
  }
18809
18905
  ]
18810
18906
  },
@@ -19598,6 +19694,35 @@ var openapi = {
19598
19694
  },
19599
19695
  required: ["created_at", "message", "error_code"],
19600
19696
  type: "object"
19697
+ },
19698
+ {
19699
+ description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
19700
+ properties: {
19701
+ created_at: {
19702
+ description: "Date and time at which Seam created the error.",
19703
+ format: "date-time",
19704
+ type: "string"
19705
+ },
19706
+ error_code: {
19707
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
19708
+ enum: ["dormakaba_sites_disconnected"],
19709
+ type: "string"
19710
+ },
19711
+ is_bridge_error: {
19712
+ description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
19713
+ type: "boolean"
19714
+ },
19715
+ is_connected_account_error: {
19716
+ description: "Indicates whether the error is related specifically to the connected account.",
19717
+ type: "boolean"
19718
+ },
19719
+ message: {
19720
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
19721
+ type: "string"
19722
+ }
19723
+ },
19724
+ required: ["created_at", "message", "error_code"],
19725
+ type: "object"
19601
19726
  }
19602
19727
  ]
19603
19728
  },
@@ -22767,6 +22892,7 @@ var openapi = {
22767
22892
  "keyincode",
22768
22893
  "dormakaba_ambiance",
22769
22894
  "ultraloq",
22895
+ "dusaw",
22770
22896
  "sifely",
22771
22897
  "ring",
22772
22898
  "ical",
@@ -33837,6 +33963,35 @@ var openapi = {
33837
33963
  },
33838
33964
  required: ["created_at", "message", "error_code"],
33839
33965
  type: "object"
33966
+ },
33967
+ {
33968
+ description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
33969
+ properties: {
33970
+ created_at: {
33971
+ description: "Date and time at which Seam created the error.",
33972
+ format: "date-time",
33973
+ type: "string"
33974
+ },
33975
+ error_code: {
33976
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33977
+ enum: ["dormakaba_sites_disconnected"],
33978
+ type: "string"
33979
+ },
33980
+ is_bridge_error: {
33981
+ description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
33982
+ type: "boolean"
33983
+ },
33984
+ is_connected_account_error: {
33985
+ description: "Indicates whether the error is related specifically to the connected account.",
33986
+ type: "boolean"
33987
+ },
33988
+ message: {
33989
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33990
+ type: "string"
33991
+ }
33992
+ },
33993
+ required: ["created_at", "message", "error_code"],
33994
+ type: "object"
33840
33995
  }
33841
33996
  ]
33842
33997
  },
@@ -36584,6 +36739,35 @@ var openapi = {
36584
36739
  },
36585
36740
  required: ["created_at", "message", "error_code"],
36586
36741
  type: "object"
36742
+ },
36743
+ {
36744
+ description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
36745
+ properties: {
36746
+ created_at: {
36747
+ description: "Date and time at which Seam created the error.",
36748
+ format: "date-time",
36749
+ type: "string"
36750
+ },
36751
+ error_code: {
36752
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
36753
+ enum: ["dormakaba_sites_disconnected"],
36754
+ type: "string"
36755
+ },
36756
+ is_bridge_error: {
36757
+ description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
36758
+ type: "boolean"
36759
+ },
36760
+ is_connected_account_error: {
36761
+ description: "Indicates whether the error is related specifically to the connected account.",
36762
+ type: "boolean"
36763
+ },
36764
+ message: {
36765
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
36766
+ type: "string"
36767
+ }
36768
+ },
36769
+ required: ["created_at", "message", "error_code"],
36770
+ type: "object"
36587
36771
  }
36588
36772
  ]
36589
36773
  },
@@ -54435,6 +54619,7 @@ var openapi = {
54435
54619
  "keyincode",
54436
54620
  "dormakaba_ambiance",
54437
54621
  "ultraloq",
54622
+ "dusaw",
54438
54623
  "sifely",
54439
54624
  "ring",
54440
54625
  "ical",