@seamapi/types 1.445.1 → 1.446.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.
@@ -9933,6 +9933,8 @@ export interface Routes {
9933
9933
  full_name?: (string | null) | undefined;
9934
9934
  };
9935
9935
  }) & {
9936
+ /** Unique key for the access grant within the workspace. */
9937
+ access_grant_key?: string | undefined;
9936
9938
  /**
9937
9939
  * @deprecated Use `space_ids`. */
9938
9940
  location_ids?: string[] | undefined;
@@ -9970,6 +9972,8 @@ export interface Routes {
9970
9972
  workspace_id: string;
9971
9973
  /** ID of the Access Grant. */
9972
9974
  access_grant_id: string;
9975
+ /** Unique key for the access grant within the workspace. */
9976
+ access_grant_key?: string | undefined;
9973
9977
  /** ID of user identity to which the Access Grant gives access. */
9974
9978
  user_identity_id: string;
9975
9979
  /**
@@ -10023,6 +10027,9 @@ export interface Routes {
10023
10027
  commonParams: {
10024
10028
  /** ID of Access Grant to get. */
10025
10029
  access_grant_id: string;
10030
+ } | {
10031
+ /** Unique key of Access Grant to get. */
10032
+ access_grant_key: string;
10026
10033
  };
10027
10034
  formData: {};
10028
10035
  jsonResponse: {
@@ -10032,6 +10039,8 @@ export interface Routes {
10032
10039
  workspace_id: string;
10033
10040
  /** ID of the Access Grant. */
10034
10041
  access_grant_id: string;
10042
+ /** Unique key for the access grant within the workspace. */
10043
+ access_grant_key?: string | undefined;
10035
10044
  /** ID of user identity to which the Access Grant gives access. */
10036
10045
  user_identity_id: string;
10037
10046
  /**
@@ -10082,6 +10091,8 @@ export interface Routes {
10082
10091
  location_id?: string | undefined;
10083
10092
  /** ID of the space by which you want to filter the list of Access Grants. */
10084
10093
  space_id?: string | undefined;
10094
+ /** Filter Access Grants by access_grant_key. */
10095
+ access_grant_key?: string | undefined;
10085
10096
  };
10086
10097
  formData: {};
10087
10098
  jsonResponse: {
@@ -10090,6 +10101,8 @@ export interface Routes {
10090
10101
  workspace_id: string;
10091
10102
  /** ID of the Access Grant. */
10092
10103
  access_grant_id: string;
10104
+ /** Unique key for the access grant within the workspace. */
10105
+ access_grant_key?: string | undefined;
10093
10106
  /** ID of user identity to which the Access Grant gives access. */
10094
10107
  user_identity_id: string;
10095
10108
  /**
@@ -46574,6 +46587,8 @@ export interface Routes {
46574
46587
  jsonBody: {
46575
46588
  /** Name of the space that you want to create. */
46576
46589
  name: string;
46590
+ /** Unique key for the space within the workspace. */
46591
+ space_key?: string | undefined;
46577
46592
  /** IDs of the devices that you want to add to the new space. */
46578
46593
  device_ids?: string[] | undefined;
46579
46594
  /** IDs of the entrances that you want to add to the new space. */
@@ -46588,6 +46603,8 @@ export interface Routes {
46588
46603
  space_id: string;
46589
46604
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
46590
46605
  workspace_id: string;
46606
+ /** Unique key for the space within the workspace. */
46607
+ space_key?: string | undefined;
46591
46608
  /** Name of the space. */
46592
46609
  name: string;
46593
46610
  /** Display name for the space. */
@@ -46621,6 +46638,9 @@ export interface Routes {
46621
46638
  commonParams: {
46622
46639
  /** ID of the space that you want to get. */
46623
46640
  space_id: string;
46641
+ } | {
46642
+ /** Unique key of the space that you want to get. */
46643
+ space_key: string;
46624
46644
  };
46625
46645
  formData: {};
46626
46646
  jsonResponse: {
@@ -46630,6 +46650,8 @@ export interface Routes {
46630
46650
  space_id: string;
46631
46651
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
46632
46652
  workspace_id: string;
46653
+ /** Unique key for the space within the workspace. */
46654
+ space_key?: string | undefined;
46633
46655
  /** Name of the space. */
46634
46656
  name: string;
46635
46657
  /** Display name for the space. */
@@ -46664,6 +46686,8 @@ export interface Routes {
46664
46686
  space_id: string;
46665
46687
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
46666
46688
  workspace_id: string;
46689
+ /** Unique key for the space within the workspace. */
46690
+ space_key?: string | undefined;
46667
46691
  /** Name of the space. */
46668
46692
  name: string;
46669
46693
  /** Display name for the space. */
@@ -47942,6 +47966,8 @@ export interface Routes {
47942
47966
  commonParams: {
47943
47967
  /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
47944
47968
  search?: string | undefined;
47969
+ /** Filter spaces by space_key. */
47970
+ space_key?: string | undefined;
47945
47971
  };
47946
47972
  formData: {};
47947
47973
  jsonResponse: {
@@ -47950,6 +47976,8 @@ export interface Routes {
47950
47976
  space_id: string;
47951
47977
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
47952
47978
  workspace_id: string;
47979
+ /** Unique key for the space within the workspace. */
47980
+ space_key?: string | undefined;
47953
47981
  /** Name of the space. */
47954
47982
  name: string;
47955
47983
  /** Display name for the space. */
@@ -48010,6 +48038,8 @@ export interface Routes {
48010
48038
  space_id: string;
48011
48039
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
48012
48040
  workspace_id: string;
48041
+ /** Unique key for the space within the workspace. */
48042
+ space_key?: string | undefined;
48013
48043
  /** Name of the space. */
48014
48044
  name: string;
48015
48045
  /** Display name for the space. */
@@ -63463,6 +63493,8 @@ export interface Routes {
63463
63493
  workspace_id: string;
63464
63494
  /** ID of the Access Grant. */
63465
63495
  access_grant_id: string;
63496
+ /** Unique key for the access grant within the workspace. */
63497
+ access_grant_key?: string | undefined;
63466
63498
  /** ID of user identity to which the Access Grant gives access. */
63467
63499
  user_identity_id: string;
63468
63500
  /**
@@ -63525,6 +63557,8 @@ export interface Routes {
63525
63557
  workspace_id: string;
63526
63558
  /** ID of the Access Grant. */
63527
63559
  access_grant_id: string;
63560
+ /** Unique key for the access grant within the workspace. */
63561
+ access_grant_key?: string | undefined;
63528
63562
  /** ID of user identity to which the Access Grant gives access. */
63529
63563
  user_identity_id: string;
63530
63564
  /**
@@ -63583,6 +63617,8 @@ export interface Routes {
63583
63617
  workspace_id: string;
63584
63618
  /** ID of the Access Grant. */
63585
63619
  access_grant_id: string;
63620
+ /** Unique key for the access grant within the workspace. */
63621
+ access_grant_key?: string | undefined;
63586
63622
  /** ID of user identity to which the Access Grant gives access. */
63587
63623
  user_identity_id: string;
63588
63624
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.445.1",
3
+ "version": "1.446.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,6 +8,10 @@ export const access_grant = z.object({
8
8
  .uuid()
9
9
  .describe('ID of the Seam workspace associated with the Access Grant.'),
10
10
  access_grant_id: z.string().uuid().describe('ID of the Access Grant.'),
11
+ access_grant_key: z
12
+ .string()
13
+ .optional()
14
+ .describe('Unique key for the access grant within the workspace.'),
11
15
  user_identity_id: z
12
16
  .string()
13
17
  .uuid()
@@ -8,6 +8,10 @@ export const space = z.object({
8
8
  .describe(
9
9
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space.',
10
10
  ),
11
+ space_key: z
12
+ .string()
13
+ .optional()
14
+ .describe('Unique key for the space within the workspace.'),
11
15
  name: z.string().describe('Name of the space.'),
12
16
  display_name: z.string().describe('Display name for the space.'),
13
17
  created_at: z
@@ -1822,6 +1822,11 @@ export default {
1822
1822
  format: 'uuid',
1823
1823
  type: 'string',
1824
1824
  },
1825
+ access_grant_key: {
1826
+ description:
1827
+ 'Unique key for the access grant within the workspace.',
1828
+ type: 'string',
1829
+ },
1825
1830
  access_method_ids: {
1826
1831
  description:
1827
1832
  'IDs of the access methods created for the Access Grant.',
@@ -20059,6 +20064,10 @@ export default {
20059
20064
  format: 'uuid',
20060
20065
  type: 'string',
20061
20066
  },
20067
+ space_key: {
20068
+ description: 'Unique key for the space within the workspace.',
20069
+ type: 'string',
20070
+ },
20062
20071
  workspace_id: {
20063
20072
  description:
20064
20073
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space.',
@@ -27559,6 +27568,11 @@ export default {
27559
27568
  },
27560
27569
  {
27561
27570
  properties: {
27571
+ access_grant_key: {
27572
+ description:
27573
+ 'Unique key for the access grant within the workspace.',
27574
+ type: 'string',
27575
+ },
27562
27576
  acs_entrance_ids: {
27563
27577
  default: [],
27564
27578
  description:
@@ -27782,18 +27796,6 @@ export default {
27782
27796
  get: {
27783
27797
  description: 'Get an Access Grant.',
27784
27798
  operationId: 'accessGrantsGetGet',
27785
- parameters: [
27786
- {
27787
- in: 'query',
27788
- name: 'access_grant_id',
27789
- required: true,
27790
- schema: {
27791
- description: 'ID of Access Grant to get.',
27792
- format: 'uuid',
27793
- type: 'string',
27794
- },
27795
- },
27796
- ],
27797
27799
  responses: {
27798
27800
  200: {
27799
27801
  content: {
@@ -27835,15 +27837,29 @@ export default {
27835
27837
  content: {
27836
27838
  'application/json': {
27837
27839
  schema: {
27838
- properties: {
27839
- access_grant_id: {
27840
- description: 'ID of Access Grant to get.',
27841
- format: 'uuid',
27842
- type: 'string',
27840
+ oneOf: [
27841
+ {
27842
+ properties: {
27843
+ access_grant_id: {
27844
+ description: 'ID of Access Grant to get.',
27845
+ format: 'uuid',
27846
+ type: 'string',
27847
+ },
27848
+ },
27849
+ required: ['access_grant_id'],
27850
+ type: 'object',
27843
27851
  },
27844
- },
27845
- required: ['access_grant_id'],
27846
- type: 'object',
27852
+ {
27853
+ properties: {
27854
+ access_grant_key: {
27855
+ description: 'Unique key of Access Grant to get.',
27856
+ type: 'string',
27857
+ },
27858
+ },
27859
+ required: ['access_grant_key'],
27860
+ type: 'object',
27861
+ },
27862
+ ],
27847
27863
  },
27848
27864
  },
27849
27865
  },
@@ -27938,6 +27954,14 @@ export default {
27938
27954
  type: 'string',
27939
27955
  },
27940
27956
  },
27957
+ {
27958
+ in: 'query',
27959
+ name: 'access_grant_key',
27960
+ schema: {
27961
+ description: 'Filter Access Grants by access_grant_key.',
27962
+ type: 'string',
27963
+ },
27964
+ },
27941
27965
  ],
27942
27966
  responses: {
27943
27967
  200: {
@@ -27984,6 +28008,10 @@ export default {
27984
28008
  'application/json': {
27985
28009
  schema: {
27986
28010
  properties: {
28011
+ access_grant_key: {
28012
+ description: 'Filter Access Grants by access_grant_key.',
28013
+ type: 'string',
28014
+ },
27987
28015
  acs_entrance_id: {
27988
28016
  description:
27989
28017
  'ID of the entrance by which you want to filter the list of Access Grants.',
@@ -47025,6 +47053,11 @@ export default {
47025
47053
  description: 'Name of the space that you want to create.',
47026
47054
  type: 'string',
47027
47055
  },
47056
+ space_key: {
47057
+ description:
47058
+ 'Unique key for the space within the workspace.',
47059
+ type: 'string',
47060
+ },
47028
47061
  },
47029
47062
  required: ['name'],
47030
47063
  type: 'object',
@@ -47170,18 +47203,6 @@ export default {
47170
47203
  get: {
47171
47204
  description: 'Gets a space.',
47172
47205
  operationId: 'spacesGetGet',
47173
- parameters: [
47174
- {
47175
- in: 'query',
47176
- name: 'space_id',
47177
- required: true,
47178
- schema: {
47179
- description: 'ID of the space that you want to get.',
47180
- format: 'uuid',
47181
- type: 'string',
47182
- },
47183
- },
47184
- ],
47185
47206
  responses: {
47186
47207
  200: {
47187
47208
  content: {
@@ -47222,15 +47243,30 @@ export default {
47222
47243
  content: {
47223
47244
  'application/json': {
47224
47245
  schema: {
47225
- properties: {
47226
- space_id: {
47227
- description: 'ID of the space that you want to get.',
47228
- format: 'uuid',
47229
- type: 'string',
47246
+ oneOf: [
47247
+ {
47248
+ properties: {
47249
+ space_id: {
47250
+ description: 'ID of the space that you want to get.',
47251
+ format: 'uuid',
47252
+ type: 'string',
47253
+ },
47254
+ },
47255
+ required: ['space_id'],
47256
+ type: 'object',
47230
47257
  },
47231
- },
47232
- required: ['space_id'],
47233
- type: 'object',
47258
+ {
47259
+ properties: {
47260
+ space_key: {
47261
+ description:
47262
+ 'Unique key of the space that you want to get.',
47263
+ type: 'string',
47264
+ },
47265
+ },
47266
+ required: ['space_key'],
47267
+ type: 'object',
47268
+ },
47269
+ ],
47234
47270
  },
47235
47271
  },
47236
47272
  },
@@ -47469,6 +47505,14 @@ export default {
47469
47505
  type: 'string',
47470
47506
  },
47471
47507
  },
47508
+ {
47509
+ in: 'query',
47510
+ name: 'space_key',
47511
+ schema: {
47512
+ description: 'Filter spaces by space_key.',
47513
+ type: 'string',
47514
+ },
47515
+ },
47472
47516
  ],
47473
47517
  responses: {
47474
47518
  200: {
@@ -47520,6 +47564,10 @@ export default {
47520
47564
  minLength: 1,
47521
47565
  type: 'string',
47522
47566
  },
47567
+ space_key: {
47568
+ description: 'Filter spaces by space_key.',
47569
+ type: 'string',
47570
+ },
47523
47571
  },
47524
47572
  type: 'object',
47525
47573
  },
@@ -11155,6 +11155,8 @@ export interface Routes {
11155
11155
  }
11156
11156
  }
11157
11157
  ) & {
11158
+ /** Unique key for the access grant within the workspace. */
11159
+ access_grant_key?: string | undefined
11158
11160
  /**
11159
11161
  * @deprecated Use `space_ids`. */
11160
11162
  location_ids?: string[] | undefined
@@ -11194,6 +11196,8 @@ export interface Routes {
11194
11196
  workspace_id: string
11195
11197
  /** ID of the Access Grant. */
11196
11198
  access_grant_id: string
11199
+ /** Unique key for the access grant within the workspace. */
11200
+ access_grant_key?: string | undefined
11197
11201
  /** ID of user identity to which the Access Grant gives access. */
11198
11202
  user_identity_id: string
11199
11203
  /**
@@ -11244,10 +11248,15 @@ export interface Routes {
11244
11248
  method: 'GET' | 'POST'
11245
11249
  queryParams: {}
11246
11250
  jsonBody: {}
11247
- commonParams: {
11248
- /** ID of Access Grant to get. */
11249
- access_grant_id: string
11250
- }
11251
+ commonParams:
11252
+ | {
11253
+ /** ID of Access Grant to get. */
11254
+ access_grant_id: string
11255
+ }
11256
+ | {
11257
+ /** Unique key of Access Grant to get. */
11258
+ access_grant_key: string
11259
+ }
11251
11260
  formData: {}
11252
11261
  jsonResponse: {
11253
11262
  /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
@@ -11256,6 +11265,8 @@ export interface Routes {
11256
11265
  workspace_id: string
11257
11266
  /** ID of the Access Grant. */
11258
11267
  access_grant_id: string
11268
+ /** Unique key for the access grant within the workspace. */
11269
+ access_grant_key?: string | undefined
11259
11270
  /** ID of user identity to which the Access Grant gives access. */
11260
11271
  user_identity_id: string
11261
11272
  /**
@@ -11306,6 +11317,8 @@ export interface Routes {
11306
11317
  location_id?: string | undefined
11307
11318
  /** ID of the space by which you want to filter the list of Access Grants. */
11308
11319
  space_id?: string | undefined
11320
+ /** Filter Access Grants by access_grant_key. */
11321
+ access_grant_key?: string | undefined
11309
11322
  }
11310
11323
  formData: {}
11311
11324
  jsonResponse: {
@@ -11314,6 +11327,8 @@ export interface Routes {
11314
11327
  workspace_id: string
11315
11328
  /** ID of the Access Grant. */
11316
11329
  access_grant_id: string
11330
+ /** Unique key for the access grant within the workspace. */
11331
+ access_grant_key?: string | undefined
11317
11332
  /** ID of user identity to which the Access Grant gives access. */
11318
11333
  user_identity_id: string
11319
11334
  /**
@@ -54931,6 +54946,8 @@ export interface Routes {
54931
54946
  jsonBody: {
54932
54947
  /** Name of the space that you want to create. */
54933
54948
  name: string
54949
+ /** Unique key for the space within the workspace. */
54950
+ space_key?: string | undefined
54934
54951
  /** IDs of the devices that you want to add to the new space. */
54935
54952
  device_ids?: string[] | undefined
54936
54953
  /** IDs of the entrances that you want to add to the new space. */
@@ -54945,6 +54962,8 @@ export interface Routes {
54945
54962
  space_id: string
54946
54963
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
54947
54964
  workspace_id: string
54965
+ /** Unique key for the space within the workspace. */
54966
+ space_key?: string | undefined
54948
54967
  /** Name of the space. */
54949
54968
  name: string
54950
54969
  /** Display name for the space. */
@@ -54975,10 +54994,15 @@ export interface Routes {
54975
54994
  method: 'GET' | 'POST'
54976
54995
  queryParams: {}
54977
54996
  jsonBody: {}
54978
- commonParams: {
54979
- /** ID of the space that you want to get. */
54980
- space_id: string
54981
- }
54997
+ commonParams:
54998
+ | {
54999
+ /** ID of the space that you want to get. */
55000
+ space_id: string
55001
+ }
55002
+ | {
55003
+ /** Unique key of the space that you want to get. */
55004
+ space_key: string
55005
+ }
54982
55006
  formData: {}
54983
55007
  jsonResponse: {
54984
55008
  /** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
@@ -54987,6 +55011,8 @@ export interface Routes {
54987
55011
  space_id: string
54988
55012
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
54989
55013
  workspace_id: string
55014
+ /** Unique key for the space within the workspace. */
55015
+ space_key?: string | undefined
54990
55016
  /** Name of the space. */
54991
55017
  name: string
54992
55018
  /** Display name for the space. */
@@ -55022,6 +55048,8 @@ export interface Routes {
55022
55048
  space_id: string
55023
55049
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
55024
55050
  workspace_id: string
55051
+ /** Unique key for the space within the workspace. */
55052
+ space_key?: string | undefined
55025
55053
  /** Name of the space. */
55026
55054
  name: string
55027
55055
  /** Display name for the space. */
@@ -56644,6 +56672,8 @@ export interface Routes {
56644
56672
  commonParams: {
56645
56673
  /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
56646
56674
  search?: string | undefined
56675
+ /** Filter spaces by space_key. */
56676
+ space_key?: string | undefined
56647
56677
  }
56648
56678
  formData: {}
56649
56679
  jsonResponse: {
@@ -56652,6 +56682,8 @@ export interface Routes {
56652
56682
  space_id: string
56653
56683
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
56654
56684
  workspace_id: string
56685
+ /** Unique key for the space within the workspace. */
56686
+ space_key?: string | undefined
56655
56687
  /** Name of the space. */
56656
56688
  name: string
56657
56689
  /** Display name for the space. */
@@ -56712,6 +56744,8 @@ export interface Routes {
56712
56744
  space_id: string
56713
56745
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
56714
56746
  workspace_id: string
56747
+ /** Unique key for the space within the workspace. */
56748
+ space_key?: string | undefined
56715
56749
  /** Name of the space. */
56716
56750
  name: string
56717
56751
  /** Display name for the space. */
@@ -74730,6 +74764,8 @@ export interface Routes {
74730
74764
  workspace_id: string
74731
74765
  /** ID of the Access Grant. */
74732
74766
  access_grant_id: string
74767
+ /** Unique key for the access grant within the workspace. */
74768
+ access_grant_key?: string | undefined
74733
74769
  /** ID of user identity to which the Access Grant gives access. */
74734
74770
  user_identity_id: string
74735
74771
  /**
@@ -74792,6 +74828,8 @@ export interface Routes {
74792
74828
  workspace_id: string
74793
74829
  /** ID of the Access Grant. */
74794
74830
  access_grant_id: string
74831
+ /** Unique key for the access grant within the workspace. */
74832
+ access_grant_key?: string | undefined
74795
74833
  /** ID of user identity to which the Access Grant gives access. */
74796
74834
  user_identity_id: string
74797
74835
  /**
@@ -74850,6 +74888,8 @@ export interface Routes {
74850
74888
  workspace_id: string
74851
74889
  /** ID of the Access Grant. */
74852
74890
  access_grant_id: string
74891
+ /** Unique key for the access grant within the workspace. */
74892
+ access_grant_key?: string | undefined
74853
74893
  /** ID of user identity to which the Access Grant gives access. */
74854
74894
  user_identity_id: string
74855
74895
  /**