@seamapi/types 1.584.0 → 1.586.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.
@@ -11819,6 +11819,131 @@ export type Routes = {
11819
11819
  }[];
11820
11820
  };
11821
11821
  };
11822
+ '/access_grants/unmanaged/get': {
11823
+ route: '/access_grants/unmanaged/get';
11824
+ method: 'GET' | 'POST';
11825
+ queryParams: {};
11826
+ jsonBody: {};
11827
+ commonParams: {
11828
+ /** ID of unmanaged Access Grant to get. */
11829
+ access_grant_id: string;
11830
+ };
11831
+ formData: {};
11832
+ jsonResponse: {
11833
+ /** Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys. */
11834
+ access_grant: {
11835
+ /** ID of the Seam workspace associated with the Access Grant. */
11836
+ workspace_id: string;
11837
+ /** ID of the Access Grant. */
11838
+ access_grant_id: string;
11839
+ /** ID of user identity to which the Access Grant gives access. */
11840
+ user_identity_id: string;
11841
+ /**
11842
+ * @deprecated Use `space_ids`.*/
11843
+ location_ids: string[];
11844
+ /** IDs of the spaces to which the Access Grant gives access. */
11845
+ space_ids: string[];
11846
+ /** Access methods that the user requested for the Access Grant. */
11847
+ requested_access_methods: {
11848
+ /** Display name of the access method. */
11849
+ display_name: string;
11850
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
11851
+ mode: 'code' | 'card' | 'mobile_key';
11852
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
11853
+ code?: string | undefined;
11854
+ /** Date and time at which the requested access method was added to the Access Grant. */
11855
+ created_at: string;
11856
+ /** IDs of the access methods created for the requested access method. */
11857
+ created_access_method_ids: string[];
11858
+ }[];
11859
+ /** IDs of the access methods created for the Access Grant. */
11860
+ access_method_ids: string[];
11861
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
11862
+ name: string | null;
11863
+ /** Display name of the Access Grant. */
11864
+ display_name: string;
11865
+ /** Date and time at which the Access Grant was created. */
11866
+ created_at: string;
11867
+ /** Date and time at which the Access Grant starts. */
11868
+ starts_at: string;
11869
+ /** Date and time at which the Access Grant ends. */
11870
+ ends_at: string | null;
11871
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
11872
+ warnings: {
11873
+ /** Date and time at which Seam created the warning. */
11874
+ created_at: string;
11875
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11876
+ message: string;
11877
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11878
+ warning_code: 'being_deleted';
11879
+ }[];
11880
+ };
11881
+ };
11882
+ };
11883
+ '/access_grants/unmanaged/list': {
11884
+ route: '/access_grants/unmanaged/list';
11885
+ method: 'GET' | 'POST';
11886
+ queryParams: {};
11887
+ jsonBody: {};
11888
+ commonParams: {
11889
+ /** ID of user identity by which you want to filter the list of unmanaged Access Grants. */
11890
+ user_identity_id?: string | undefined;
11891
+ /** ID of the access system by which you want to filter the list of unmanaged Access Grants. */
11892
+ acs_system_id?: string | undefined;
11893
+ /** ID of the entrance by which you want to filter the list of unmanaged Access Grants. */
11894
+ acs_entrance_id?: string | undefined;
11895
+ };
11896
+ formData: {};
11897
+ jsonResponse: {
11898
+ access_grants: {
11899
+ /** ID of the Seam workspace associated with the Access Grant. */
11900
+ workspace_id: string;
11901
+ /** ID of the Access Grant. */
11902
+ access_grant_id: string;
11903
+ /** ID of user identity to which the Access Grant gives access. */
11904
+ user_identity_id: string;
11905
+ /**
11906
+ * @deprecated Use `space_ids`.*/
11907
+ location_ids: string[];
11908
+ /** IDs of the spaces to which the Access Grant gives access. */
11909
+ space_ids: string[];
11910
+ /** Access methods that the user requested for the Access Grant. */
11911
+ requested_access_methods: {
11912
+ /** Display name of the access method. */
11913
+ display_name: string;
11914
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
11915
+ mode: 'code' | 'card' | 'mobile_key';
11916
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
11917
+ code?: string | undefined;
11918
+ /** Date and time at which the requested access method was added to the Access Grant. */
11919
+ created_at: string;
11920
+ /** IDs of the access methods created for the requested access method. */
11921
+ created_access_method_ids: string[];
11922
+ }[];
11923
+ /** IDs of the access methods created for the Access Grant. */
11924
+ access_method_ids: string[];
11925
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
11926
+ name: string | null;
11927
+ /** Display name of the Access Grant. */
11928
+ display_name: string;
11929
+ /** Date and time at which the Access Grant was created. */
11930
+ created_at: string;
11931
+ /** Date and time at which the Access Grant starts. */
11932
+ starts_at: string;
11933
+ /** Date and time at which the Access Grant ends. */
11934
+ ends_at: string | null;
11935
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
11936
+ warnings: {
11937
+ /** Date and time at which Seam created the warning. */
11938
+ created_at: string;
11939
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11940
+ message: string;
11941
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11942
+ warning_code: 'being_deleted';
11943
+ }[];
11944
+ }[];
11945
+ };
11946
+ };
11822
11947
  '/access_grants/update': {
11823
11948
  route: '/access_grants/update';
11824
11949
  method: 'POST' | 'PATCH';
@@ -20298,6 +20423,97 @@ export type Routes = {
20298
20423
  }[];
20299
20424
  };
20300
20425
  };
20426
+ '/access_methods/unmanaged/get': {
20427
+ route: '/access_methods/unmanaged/get';
20428
+ method: 'GET' | 'POST';
20429
+ queryParams: {};
20430
+ jsonBody: {};
20431
+ commonParams: {
20432
+ /** ID of unmanaged access method to get. */
20433
+ access_method_id: string;
20434
+ };
20435
+ formData: {};
20436
+ jsonResponse: {
20437
+ /** Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys. */
20438
+ access_method: {
20439
+ /** ID of the Seam workspace associated with the access method. */
20440
+ workspace_id: string;
20441
+ /** ID of the access method. */
20442
+ access_method_id: string;
20443
+ /** Display name of the access method. */
20444
+ display_name: string;
20445
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
20446
+ mode: 'code' | 'card' | 'mobile_key';
20447
+ /** Date and time at which the access method was created. */
20448
+ created_at: string;
20449
+ /** Date and time at which the access method was issued. */
20450
+ issued_at: string | null;
20451
+ /** Indicates whether the access method has been issued. */
20452
+ is_issued: boolean;
20453
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
20454
+ is_encoding_required?: boolean | undefined;
20455
+ /** The actual PIN code for code access methods. */
20456
+ code?: (string | null) | undefined;
20457
+ /** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
20458
+ warnings: {
20459
+ /** Date and time at which Seam created the warning. */
20460
+ created_at: string;
20461
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20462
+ message: string;
20463
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20464
+ warning_code: 'being_deleted';
20465
+ }[];
20466
+ };
20467
+ };
20468
+ };
20469
+ '/access_methods/unmanaged/list': {
20470
+ route: '/access_methods/unmanaged/list';
20471
+ method: 'GET' | 'POST';
20472
+ queryParams: {};
20473
+ jsonBody: {};
20474
+ commonParams: {
20475
+ /** ID of Access Grant to list unmanaged access methods for. */
20476
+ access_grant_id: string;
20477
+ /** ID of the device for which you want to retrieve all unmanaged access methods. */
20478
+ device_id?: string | undefined;
20479
+ /** ID of the entrance for which you want to retrieve all unmanaged access methods. */
20480
+ acs_entrance_id?: string | undefined;
20481
+ /** ID of the space for which you want to retrieve all unmanaged access methods. */
20482
+ space_id?: string | undefined;
20483
+ };
20484
+ formData: {};
20485
+ jsonResponse: {
20486
+ access_methods: {
20487
+ /** ID of the Seam workspace associated with the access method. */
20488
+ workspace_id: string;
20489
+ /** ID of the access method. */
20490
+ access_method_id: string;
20491
+ /** Display name of the access method. */
20492
+ display_name: string;
20493
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
20494
+ mode: 'code' | 'card' | 'mobile_key';
20495
+ /** Date and time at which the access method was created. */
20496
+ created_at: string;
20497
+ /** Date and time at which the access method was issued. */
20498
+ issued_at: string | null;
20499
+ /** Indicates whether the access method has been issued. */
20500
+ is_issued: boolean;
20501
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
20502
+ is_encoding_required?: boolean | undefined;
20503
+ /** The actual PIN code for code access methods. */
20504
+ code?: (string | null) | undefined;
20505
+ /** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
20506
+ warnings: {
20507
+ /** Date and time at which Seam created the warning. */
20508
+ created_at: string;
20509
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20510
+ message: string;
20511
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20512
+ warning_code: 'being_deleted';
20513
+ }[];
20514
+ }[];
20515
+ };
20516
+ };
20301
20517
  '/acs/access_groups/add_user': {
20302
20518
  route: '/acs/access_groups/add_user';
20303
20519
  method: 'PUT' | 'POST';
@@ -56209,6 +56425,10 @@ export type Routes = {
56209
56425
  rule: 'space_name_updated';
56210
56426
  config?: {} | undefined;
56211
56427
  } | undefined;
56428
+ user_identity_name_updated?: {
56429
+ rule: 'user_identity_name_updated';
56430
+ config?: {} | undefined;
56431
+ } | undefined;
56212
56432
  } | undefined;
56213
56433
  };
56214
56434
  };
@@ -56238,6 +56458,10 @@ export type Routes = {
56238
56458
  rule: 'space_name_updated';
56239
56459
  config?: {} | undefined;
56240
56460
  } | undefined;
56461
+ user_identity_name_updated?: {
56462
+ rule: 'user_identity_name_updated';
56463
+ config?: {} | undefined;
56464
+ } | undefined;
56241
56465
  } | undefined;
56242
56466
  };
56243
56467
  commonParams: {};
@@ -79625,6 +79849,123 @@ export type Routes = {
79625
79849
  formData: {};
79626
79850
  jsonResponse: {};
79627
79851
  };
79852
+ '/user_identities/unmanaged/get': {
79853
+ route: '/user_identities/unmanaged/get';
79854
+ method: 'GET' | 'POST';
79855
+ queryParams: {};
79856
+ jsonBody: {};
79857
+ commonParams: {
79858
+ /** ID of the unmanaged user identity that you want to get. */
79859
+ user_identity_id: string;
79860
+ };
79861
+ formData: {};
79862
+ jsonResponse: {
79863
+ /** Represents an unmanaged user identity. Unmanaged user identities do not have keys. */
79864
+ user_identity: {
79865
+ /** ID of the user identity. */
79866
+ user_identity_id: string;
79867
+ /** Unique email address for the user identity. */
79868
+ email_address: string | null;
79869
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
79870
+ phone_number: string | null;
79871
+ display_name: string;
79872
+ full_name: string | null;
79873
+ /** Date and time at which the user identity was created. */
79874
+ created_at: string;
79875
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
79876
+ workspace_id: string;
79877
+ /** Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
79878
+ errors: {
79879
+ /** Date and time at which Seam created the error. */
79880
+ created_at: string;
79881
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
79882
+ message: string;
79883
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
79884
+ error_code: 'issue_with_acs_user';
79885
+ /** ID of the access system user that has an issue. */
79886
+ acs_user_id: string;
79887
+ /** ID of the access system that the user identity is associated with. */
79888
+ acs_system_id: string;
79889
+ }[];
79890
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
79891
+ warnings: ({
79892
+ /** Date and time at which Seam created the warning. */
79893
+ created_at: string;
79894
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79895
+ message: string;
79896
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79897
+ warning_code: 'being_deleted';
79898
+ } | {
79899
+ /** Date and time at which Seam created the warning. */
79900
+ created_at: string;
79901
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79902
+ message: string;
79903
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79904
+ warning_code: 'acs_user_profile_does_not_match_user_identity';
79905
+ })[];
79906
+ /** Array of access system user IDs associated with the user identity. */
79907
+ acs_user_ids: string[];
79908
+ };
79909
+ };
79910
+ };
79911
+ '/user_identities/unmanaged/list': {
79912
+ route: '/user_identities/unmanaged/list';
79913
+ method: 'GET' | 'POST';
79914
+ queryParams: {};
79915
+ jsonBody: {};
79916
+ commonParams: {
79917
+ /** String for which to search. Filters returned unmanaged user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address` or `user_identity_id`. */
79918
+ search?: string | undefined;
79919
+ };
79920
+ formData: {};
79921
+ jsonResponse: {
79922
+ user_identities: {
79923
+ /** ID of the user identity. */
79924
+ user_identity_id: string;
79925
+ /** Unique email address for the user identity. */
79926
+ email_address: string | null;
79927
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
79928
+ phone_number: string | null;
79929
+ display_name: string;
79930
+ full_name: string | null;
79931
+ /** Date and time at which the user identity was created. */
79932
+ created_at: string;
79933
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
79934
+ workspace_id: string;
79935
+ /** Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
79936
+ errors: {
79937
+ /** Date and time at which Seam created the error. */
79938
+ created_at: string;
79939
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
79940
+ message: string;
79941
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
79942
+ error_code: 'issue_with_acs_user';
79943
+ /** ID of the access system user that has an issue. */
79944
+ acs_user_id: string;
79945
+ /** ID of the access system that the user identity is associated with. */
79946
+ acs_system_id: string;
79947
+ }[];
79948
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
79949
+ warnings: ({
79950
+ /** Date and time at which Seam created the warning. */
79951
+ created_at: string;
79952
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79953
+ message: string;
79954
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79955
+ warning_code: 'being_deleted';
79956
+ } | {
79957
+ /** Date and time at which Seam created the warning. */
79958
+ created_at: string;
79959
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79960
+ message: string;
79961
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79962
+ warning_code: 'acs_user_profile_does_not_match_user_identity';
79963
+ })[];
79964
+ /** Array of access system user IDs associated with the user identity. */
79965
+ acs_user_ids: string[];
79966
+ }[];
79967
+ };
79968
+ };
79628
79969
  '/user_identities/update': {
79629
79970
  route: '/user_identities/update';
79630
79971
  method: 'PATCH' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.584.0",
3
+ "version": "1.586.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -80,7 +80,10 @@ export {
80
80
  thermostat_schedule,
81
81
  unit_resource,
82
82
  unmanaged_access_code,
83
+ unmanaged_access_grant,
84
+ unmanaged_access_method,
83
85
  unmanaged_device,
86
+ unmanaged_user_identity,
84
87
  user_identity,
85
88
  user_identity_resource,
86
89
  user_resource,
@@ -119,3 +119,19 @@ export const access_grant = z.object({
119
119
  `)
120
120
 
121
121
  export type AccessGrant = z.infer<typeof access_grant>
122
+
123
+ // Unmanaged access grant schema - excludes client sessions, instant keys, customization profiles, and keys
124
+ export const unmanaged_access_grant = access_grant.omit({
125
+ client_session_token: true,
126
+ instant_key_url: true,
127
+ customization_profile_id: true,
128
+ access_grant_key: true,
129
+ }).describe(`
130
+ ---
131
+ draft: Early access.
132
+ route_path: /access_grants/unmanaged
133
+ ---
134
+ Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys.
135
+ `)
136
+
137
+ export type UnmanagedAccessGrant = z.infer<typeof unmanaged_access_grant>
@@ -100,3 +100,18 @@ export const access_method = z.object({
100
100
  `)
101
101
 
102
102
  export type AccessMethod = z.infer<typeof access_method>
103
+
104
+ // Unmanaged access method schema - excludes client sessions, instant keys, customization profiles, and keys
105
+ export const unmanaged_access_method = access_method.omit({
106
+ instant_key_url: true,
107
+ client_session_token: true,
108
+ customization_profile_id: true,
109
+ }).describe(`
110
+ ---
111
+ draft: Early access.
112
+ route_path: /access_methods/unmanaged
113
+ ---
114
+ Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys.
115
+ `)
116
+
117
+ export type UnmanagedAccessMethod = z.infer<typeof unmanaged_access_method>
@@ -156,3 +156,16 @@ export const user_identity = z.object({
156
156
  `)
157
157
 
158
158
  export type UserIdentity = z.output<typeof user_identity>
159
+
160
+ // Unmanaged user identity schema - excludes keys since unmanaged user identities cannot have keys
161
+ export const unmanaged_user_identity = user_identity.omit({
162
+ user_identity_key: true,
163
+ }).describe(`
164
+ ---
165
+ draft: Early access.
166
+ route_path: /user_identities/unmanaged
167
+ ---
168
+ Represents an unmanaged user identity. Unmanaged user identities do not have keys.
169
+ `)
170
+
171
+ export type UnmanagedUserIdentity = z.output<typeof unmanaged_user_identity>