@seamapi/types 1.455.0 → 1.457.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 (33) hide show
  1. package/dist/connect.cjs +408 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +63342 -50965
  4. package/dist/index.cjs +408 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-method.d.ts +6 -3
  7. package/lib/seam/connect/models/access-grants/access-method.js +4 -1
  8. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +26 -26
  11. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  12. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
  13. package/lib/seam/connect/models/batches/access_methods.d.ts +5682 -0
  14. package/lib/seam/connect/models/batches/access_methods.js +11 -0
  15. package/lib/seam/connect/models/batches/access_methods.js.map +1 -0
  16. package/lib/seam/connect/models/batches/batch.d.ts +5679 -0
  17. package/lib/seam/connect/models/batches/batch.js +6 -1
  18. package/lib/seam/connect/models/batches/batch.js.map +1 -1
  19. package/lib/seam/connect/models/batches/index.d.ts +1 -0
  20. package/lib/seam/connect/models/batches/index.js +1 -0
  21. package/lib/seam/connect/models/batches/index.js.map +1 -1
  22. package/lib/seam/connect/models/phones/phone-session.d.ts +10 -10
  23. package/lib/seam/connect/openapi.d.ts +290 -0
  24. package/lib/seam/connect/openapi.js +396 -0
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +9312 -2907
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-grants/access-method.ts +4 -1
  29. package/src/lib/seam/connect/models/batches/access_methods.ts +14 -0
  30. package/src/lib/seam/connect/models/batches/batch.ts +6 -1
  31. package/src/lib/seam/connect/models/batches/index.ts +1 -0
  32. package/src/lib/seam/connect/openapi.ts +400 -0
  33. package/src/lib/seam/connect/route-types.ts +9280 -1025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.455.0",
3
+ "version": "1.457.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -19,8 +19,11 @@ export const access_method = z.object({
19
19
  issued_at: z
20
20
  .string()
21
21
  .datetime()
22
- .optional()
22
+ .nullable()
23
23
  .describe('Date and time at which the access method was issued.'),
24
+ is_issued: z
25
+ .boolean()
26
+ .describe('Indicates whether the access method has been issued.'),
24
27
  instant_key_url: z
25
28
  .string()
26
29
  .url()
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod'
2
+
3
+ import { acs_entrance } from '../acs/index.js'
4
+ import { device } from '../devices/index.js'
5
+ import { space } from '../spaces/index.js'
6
+
7
+ export const access_methods_batch = z.object({
8
+ batch_type: z.literal('access_methods'),
9
+ spaces: space.array().optional(),
10
+ devices: device.array().optional(),
11
+ acs_entrances: acs_entrance.array().optional(),
12
+ })
13
+
14
+ export type AccessMethodsBundle = z.infer<typeof access_methods_batch>
@@ -1,9 +1,14 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  import { access_grants_batch } from './access_grants.js'
4
+ import { access_methods_batch } from './access_methods.js'
4
5
  import { spaces_batch } from './spaces.js'
5
6
 
6
- export const batch = z.union([spaces_batch, access_grants_batch]).describe(`
7
+ export const batch = z.union([
8
+ spaces_batch,
9
+ access_grants_batch,
10
+ access_methods_batch,
11
+ ]).describe(`
7
12
  ---
8
13
  route_path: /
9
14
  ---
@@ -1,3 +1,4 @@
1
1
  export * from './access_grants.js'
2
+ export * from './access_methods.js'
2
3
  export * from './batch.js'
3
4
  export * from './spaces.js'
@@ -1987,9 +1987,14 @@ export default {
1987
1987
  'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
1988
1988
  type: 'boolean',
1989
1989
  },
1990
+ is_issued: {
1991
+ description: 'Indicates whether the access method has been issued.',
1992
+ type: 'boolean',
1993
+ },
1990
1994
  issued_at: {
1991
1995
  description: 'Date and time at which the access method was issued.',
1992
1996
  format: 'date-time',
1997
+ nullable: true,
1993
1998
  type: 'string',
1994
1999
  },
1995
2000
  mode: {
@@ -2011,6 +2016,8 @@ export default {
2011
2016
  'display_name',
2012
2017
  'mode',
2013
2018
  'created_at',
2019
+ 'issued_at',
2020
+ 'is_issued',
2014
2021
  ],
2015
2022
  type: 'object',
2016
2023
  'x-draft': 'Early access.',
@@ -28056,6 +28063,30 @@ export default {
28056
28063
  required: ['batch_type'],
28057
28064
  type: 'object',
28058
28065
  },
28066
+ {
28067
+ properties: {
28068
+ acs_entrances: {
28069
+ items: {
28070
+ $ref: '#/components/schemas/acs_entrance',
28071
+ },
28072
+ type: 'array',
28073
+ },
28074
+ batch_type: {
28075
+ enum: ['access_methods'],
28076
+ type: 'string',
28077
+ },
28078
+ devices: {
28079
+ items: { $ref: '#/components/schemas/device' },
28080
+ type: 'array',
28081
+ },
28082
+ spaces: {
28083
+ items: { $ref: '#/components/schemas/space' },
28084
+ type: 'array',
28085
+ },
28086
+ },
28087
+ required: ['batch_type'],
28088
+ type: 'object',
28089
+ },
28059
28090
  ],
28060
28091
  'x-route-path': '/',
28061
28092
  },
@@ -28177,6 +28208,30 @@ export default {
28177
28208
  required: ['batch_type'],
28178
28209
  type: 'object',
28179
28210
  },
28211
+ {
28212
+ properties: {
28213
+ acs_entrances: {
28214
+ items: {
28215
+ $ref: '#/components/schemas/acs_entrance',
28216
+ },
28217
+ type: 'array',
28218
+ },
28219
+ batch_type: {
28220
+ enum: ['access_methods'],
28221
+ type: 'string',
28222
+ },
28223
+ devices: {
28224
+ items: { $ref: '#/components/schemas/device' },
28225
+ type: 'array',
28226
+ },
28227
+ spaces: {
28228
+ items: { $ref: '#/components/schemas/space' },
28229
+ type: 'array',
28230
+ },
28231
+ },
28232
+ required: ['batch_type'],
28233
+ type: 'object',
28234
+ },
28180
28235
  ],
28181
28236
  'x-route-path': '/',
28182
28237
  },
@@ -28802,6 +28857,303 @@ export default {
28802
28857
  'x-title': 'Get an Access Method',
28803
28858
  },
28804
28859
  },
28860
+ '/access_methods/get_related': {
28861
+ get: {
28862
+ description:
28863
+ 'Gets all related resources for one or more Access Methods.',
28864
+ operationId: 'accessMethodsGetRelatedGet',
28865
+ parameters: [
28866
+ {
28867
+ in: 'query',
28868
+ name: 'access_method_ids',
28869
+ required: true,
28870
+ schema: {
28871
+ description:
28872
+ 'IDs of the access methods that you want to get along with their related resources.',
28873
+ items: { format: 'uuid', type: 'string' },
28874
+ type: 'array',
28875
+ },
28876
+ },
28877
+ {
28878
+ in: 'query',
28879
+ name: 'include',
28880
+ required: false,
28881
+ schema: {
28882
+ items: {
28883
+ enum: ['spaces', 'devices', 'acs_entrances'],
28884
+ type: 'string',
28885
+ },
28886
+ type: 'array',
28887
+ },
28888
+ },
28889
+ {
28890
+ in: 'query',
28891
+ name: 'exclude',
28892
+ required: false,
28893
+ schema: {
28894
+ items: {
28895
+ enum: ['spaces', 'devices', 'acs_entrances'],
28896
+ type: 'string',
28897
+ },
28898
+ type: 'array',
28899
+ },
28900
+ },
28901
+ ],
28902
+ responses: {
28903
+ 200: {
28904
+ content: {
28905
+ 'application/json': {
28906
+ schema: {
28907
+ properties: {
28908
+ batch: {
28909
+ description: 'Represents a resource batch.',
28910
+ oneOf: [
28911
+ {
28912
+ description: 'ID of the affected access system user.',
28913
+ properties: {
28914
+ acs_entrances: {
28915
+ items: {
28916
+ $ref: '#/components/schemas/acs_entrance',
28917
+ },
28918
+ type: 'array',
28919
+ },
28920
+ batch_type: { enum: ['spaces'], type: 'string' },
28921
+ devices: {
28922
+ items: { $ref: '#/components/schemas/device' },
28923
+ type: 'array',
28924
+ },
28925
+ spaces: {
28926
+ items: { $ref: '#/components/schemas/space' },
28927
+ type: 'array',
28928
+ },
28929
+ },
28930
+ required: ['batch_type'],
28931
+ type: 'object',
28932
+ },
28933
+ {
28934
+ properties: {
28935
+ acs_entrances: {
28936
+ items: {
28937
+ $ref: '#/components/schemas/acs_entrance',
28938
+ },
28939
+ type: 'array',
28940
+ },
28941
+ batch_type: {
28942
+ enum: ['access_grants'],
28943
+ type: 'string',
28944
+ },
28945
+ devices: {
28946
+ items: { $ref: '#/components/schemas/device' },
28947
+ type: 'array',
28948
+ },
28949
+ spaces: {
28950
+ items: { $ref: '#/components/schemas/space' },
28951
+ type: 'array',
28952
+ },
28953
+ },
28954
+ required: ['batch_type'],
28955
+ type: 'object',
28956
+ },
28957
+ {
28958
+ properties: {
28959
+ acs_entrances: {
28960
+ items: {
28961
+ $ref: '#/components/schemas/acs_entrance',
28962
+ },
28963
+ type: 'array',
28964
+ },
28965
+ batch_type: {
28966
+ enum: ['access_methods'],
28967
+ type: 'string',
28968
+ },
28969
+ devices: {
28970
+ items: { $ref: '#/components/schemas/device' },
28971
+ type: 'array',
28972
+ },
28973
+ spaces: {
28974
+ items: { $ref: '#/components/schemas/space' },
28975
+ type: 'array',
28976
+ },
28977
+ },
28978
+ required: ['batch_type'],
28979
+ type: 'object',
28980
+ },
28981
+ ],
28982
+ 'x-route-path': '/',
28983
+ },
28984
+ ok: { type: 'boolean' },
28985
+ },
28986
+ required: ['batch', 'ok'],
28987
+ type: 'object',
28988
+ },
28989
+ },
28990
+ },
28991
+ description: 'OK',
28992
+ },
28993
+ 400: { description: 'Bad Request' },
28994
+ 401: { description: 'Unauthorized' },
28995
+ },
28996
+ security: [
28997
+ { pat_with_workspace: [] },
28998
+ { console_session_with_workspace: [] },
28999
+ { api_key: [] },
29000
+ ],
29001
+ summary: '/access_methods/get_related',
29002
+ tags: [],
29003
+ 'x-batch-type': 'access_methods',
29004
+ 'x-draft': 'Early access.',
29005
+ 'x-fern-sdk-group-name': ['access_methods'],
29006
+ 'x-fern-sdk-method-name': 'get_related',
29007
+ 'x-fern-sdk-return-value': 'batch',
29008
+ 'x-response-key': 'batch',
29009
+ 'x-title': 'Get related Access Method resources',
29010
+ },
29011
+ post: {
29012
+ description:
29013
+ 'Gets all related resources for one or more Access Methods.',
29014
+ operationId: 'accessMethodsGetRelatedPost',
29015
+ requestBody: {
29016
+ content: {
29017
+ 'application/json': {
29018
+ schema: {
29019
+ properties: {
29020
+ access_method_ids: {
29021
+ description:
29022
+ 'IDs of the access methods that you want to get along with their related resources.',
29023
+ items: { format: 'uuid', type: 'string' },
29024
+ type: 'array',
29025
+ },
29026
+ exclude: {
29027
+ items: {
29028
+ enum: ['spaces', 'devices', 'acs_entrances'],
29029
+ type: 'string',
29030
+ },
29031
+ type: 'array',
29032
+ },
29033
+ include: {
29034
+ items: {
29035
+ enum: ['spaces', 'devices', 'acs_entrances'],
29036
+ type: 'string',
29037
+ },
29038
+ type: 'array',
29039
+ },
29040
+ },
29041
+ required: ['access_method_ids'],
29042
+ type: 'object',
29043
+ },
29044
+ },
29045
+ },
29046
+ },
29047
+ responses: {
29048
+ 200: {
29049
+ content: {
29050
+ 'application/json': {
29051
+ schema: {
29052
+ properties: {
29053
+ batch: {
29054
+ description: 'Represents a resource batch.',
29055
+ oneOf: [
29056
+ {
29057
+ description: 'ID of the affected access system user.',
29058
+ properties: {
29059
+ acs_entrances: {
29060
+ items: {
29061
+ $ref: '#/components/schemas/acs_entrance',
29062
+ },
29063
+ type: 'array',
29064
+ },
29065
+ batch_type: { enum: ['spaces'], type: 'string' },
29066
+ devices: {
29067
+ items: { $ref: '#/components/schemas/device' },
29068
+ type: 'array',
29069
+ },
29070
+ spaces: {
29071
+ items: { $ref: '#/components/schemas/space' },
29072
+ type: 'array',
29073
+ },
29074
+ },
29075
+ required: ['batch_type'],
29076
+ type: 'object',
29077
+ },
29078
+ {
29079
+ properties: {
29080
+ acs_entrances: {
29081
+ items: {
29082
+ $ref: '#/components/schemas/acs_entrance',
29083
+ },
29084
+ type: 'array',
29085
+ },
29086
+ batch_type: {
29087
+ enum: ['access_grants'],
29088
+ type: 'string',
29089
+ },
29090
+ devices: {
29091
+ items: { $ref: '#/components/schemas/device' },
29092
+ type: 'array',
29093
+ },
29094
+ spaces: {
29095
+ items: { $ref: '#/components/schemas/space' },
29096
+ type: 'array',
29097
+ },
29098
+ },
29099
+ required: ['batch_type'],
29100
+ type: 'object',
29101
+ },
29102
+ {
29103
+ properties: {
29104
+ acs_entrances: {
29105
+ items: {
29106
+ $ref: '#/components/schemas/acs_entrance',
29107
+ },
29108
+ type: 'array',
29109
+ },
29110
+ batch_type: {
29111
+ enum: ['access_methods'],
29112
+ type: 'string',
29113
+ },
29114
+ devices: {
29115
+ items: { $ref: '#/components/schemas/device' },
29116
+ type: 'array',
29117
+ },
29118
+ spaces: {
29119
+ items: { $ref: '#/components/schemas/space' },
29120
+ type: 'array',
29121
+ },
29122
+ },
29123
+ required: ['batch_type'],
29124
+ type: 'object',
29125
+ },
29126
+ ],
29127
+ 'x-route-path': '/',
29128
+ },
29129
+ ok: { type: 'boolean' },
29130
+ },
29131
+ required: ['batch', 'ok'],
29132
+ type: 'object',
29133
+ },
29134
+ },
29135
+ },
29136
+ description: 'OK',
29137
+ },
29138
+ 400: { description: 'Bad Request' },
29139
+ 401: { description: 'Unauthorized' },
29140
+ },
29141
+ security: [
29142
+ { pat_with_workspace: [] },
29143
+ { console_session_with_workspace: [] },
29144
+ { api_key: [] },
29145
+ ],
29146
+ summary: '/access_methods/get_related',
29147
+ tags: [],
29148
+ 'x-batch-type': 'access_methods',
29149
+ 'x-draft': 'Early access.',
29150
+ 'x-fern-sdk-group-name': ['access_methods'],
29151
+ 'x-fern-sdk-method-name': 'get_related',
29152
+ 'x-fern-sdk-return-value': 'batch',
29153
+ 'x-response-key': 'batch',
29154
+ 'x-title': 'Get related Access Method resources',
29155
+ },
29156
+ },
28805
29157
  '/access_methods/list': {
28806
29158
  get: {
28807
29159
  description:
@@ -47747,6 +48099,30 @@ export default {
47747
48099
  required: ['batch_type'],
47748
48100
  type: 'object',
47749
48101
  },
48102
+ {
48103
+ properties: {
48104
+ acs_entrances: {
48105
+ items: {
48106
+ $ref: '#/components/schemas/acs_entrance',
48107
+ },
48108
+ type: 'array',
48109
+ },
48110
+ batch_type: {
48111
+ enum: ['access_methods'],
48112
+ type: 'string',
48113
+ },
48114
+ devices: {
48115
+ items: { $ref: '#/components/schemas/device' },
48116
+ type: 'array',
48117
+ },
48118
+ spaces: {
48119
+ items: { $ref: '#/components/schemas/space' },
48120
+ type: 'array',
48121
+ },
48122
+ },
48123
+ required: ['batch_type'],
48124
+ type: 'object',
48125
+ },
47750
48126
  ],
47751
48127
  'x-route-path': '/',
47752
48128
  },
@@ -47867,6 +48243,30 @@ export default {
47867
48243
  required: ['batch_type'],
47868
48244
  type: 'object',
47869
48245
  },
48246
+ {
48247
+ properties: {
48248
+ acs_entrances: {
48249
+ items: {
48250
+ $ref: '#/components/schemas/acs_entrance',
48251
+ },
48252
+ type: 'array',
48253
+ },
48254
+ batch_type: {
48255
+ enum: ['access_methods'],
48256
+ type: 'string',
48257
+ },
48258
+ devices: {
48259
+ items: { $ref: '#/components/schemas/device' },
48260
+ type: 'array',
48261
+ },
48262
+ spaces: {
48263
+ items: { $ref: '#/components/schemas/space' },
48264
+ type: 'array',
48265
+ },
48266
+ },
48267
+ required: ['batch_type'],
48268
+ type: 'object',
48269
+ },
47870
48270
  ],
47871
48271
  'x-route-path': '/',
47872
48272
  },