@seamapi/types 1.48.0 → 1.49.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 (35) hide show
  1. package/dist/connect.cjs +252 -38
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +348 -17
  4. package/lib/seam/connect/openapi.d.ts +163 -3
  5. package/lib/seam/connect/openapi.js +251 -37
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +185 -14
  8. package/lib/seam/connect/unstable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +81 -21
  10. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -1
  11. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -4
  12. package/lib/seam/connect/unstable/models/acs/credential.js +2 -1
  13. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  14. package/lib/seam/connect/unstable/models/acs/credential_pool.d.ts +29 -0
  15. package/lib/seam/connect/unstable/models/acs/credential_pool.js +12 -0
  16. package/lib/seam/connect/unstable/models/acs/credential_pool.js.map +1 -0
  17. package/lib/seam/connect/unstable/models/acs/index.d.ts +1 -0
  18. package/lib/seam/connect/unstable/models/acs/index.js +1 -0
  19. package/lib/seam/connect/unstable/models/acs/index.js.map +1 -1
  20. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +14 -14
  21. package/lib/seam/connect/unstable/models/devices/managed-device.js +1 -1
  22. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  23. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  24. package/lib/seam/connect/unstable/schemas.js +1 -1
  25. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/openapi.ts +276 -37
  28. package/src/lib/seam/connect/route-types.ts +185 -14
  29. package/src/lib/seam/connect/unstable/model-types.ts +2 -0
  30. package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +113 -21
  31. package/src/lib/seam/connect/unstable/models/acs/credential.ts +2 -1
  32. package/src/lib/seam/connect/unstable/models/acs/credential_pool.ts +19 -0
  33. package/src/lib/seam/connect/unstable/models/acs/index.ts +1 -0
  34. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +1 -1
  35. package/src/lib/seam/connect/unstable/schemas.ts +2 -0
@@ -3,34 +3,122 @@ export default {
3
3
  schemas: {
4
4
  access_code: {
5
5
  properties: {
6
- access_code_id: { format: 'uuid', type: 'string' },
7
- code: { nullable: true, type: 'string' },
8
- common_code_key: { nullable: true, type: 'string' },
9
- created_at: { format: 'date-time', type: 'string' },
10
- device_id: { format: 'uuid', type: 'string' },
11
- ends_at: { format: 'date-time', nullable: true, type: 'string' },
12
- errors: { nullable: true },
13
- is_backup: { type: 'boolean' },
14
- is_backup_access_code_available: { type: 'boolean' },
15
- is_external_modification_allowed: { type: 'boolean' },
16
- is_managed: { enum: [true], type: 'boolean' },
17
- is_offline_access_code: { type: 'boolean' },
18
- is_one_time_use: { type: 'boolean' },
19
- is_scheduled_on_device: { type: 'boolean' },
20
- is_waiting_for_code_assignment: { type: 'boolean' },
21
- name: { nullable: true, type: 'string' },
6
+ access_code_id: {
7
+ description: 'Unique identifier for the access code.',
8
+ format: 'uuid',
9
+ type: 'string',
10
+ },
11
+ code: {
12
+ description:
13
+ 'Code used for access. Typically, a numeric or alphanumeric string.',
14
+ nullable: true,
15
+ type: 'string',
16
+ },
17
+ common_code_key: {
18
+ description:
19
+ 'Unique identifier for a group of access codes that share the same code.',
20
+ nullable: true,
21
+ type: 'string',
22
+ },
23
+ created_at: {
24
+ description: 'Date and time at which the access code was created.',
25
+ format: 'date-time',
26
+ type: 'string',
27
+ },
28
+ device_id: {
29
+ description:
30
+ 'Unique identifier for the device associated with the access code.',
31
+ format: 'uuid',
32
+ type: 'string',
33
+ },
34
+ ends_at: {
35
+ description:
36
+ 'Date and time after which the time-bound access code becomes inactive.',
37
+ format: 'date-time',
38
+ nullable: true,
39
+ type: 'string',
40
+ },
41
+ errors: {
42
+ description:
43
+ 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
44
+ nullable: true,
45
+ },
46
+ is_backup: {
47
+ description: 'Indicates whether the access code is a backup code.',
48
+ type: 'boolean',
49
+ },
50
+ is_backup_access_code_available: {
51
+ description:
52
+ 'Indicates whether a backup access code is available for use if the primary access code is lost or compromised.',
53
+ type: 'boolean',
54
+ },
55
+ is_external_modification_allowed: {
56
+ description:
57
+ 'Indicates whether changes to the access code from external sources are permitted.',
58
+ type: 'boolean',
59
+ },
60
+ is_managed: {
61
+ description: 'Indicates whether Seam manages the access code.',
62
+ enum: [true],
63
+ type: 'boolean',
64
+ },
65
+ is_offline_access_code: {
66
+ description:
67
+ 'Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection.',
68
+ type: 'boolean',
69
+ },
70
+ is_one_time_use: {
71
+ description:
72
+ 'Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use.',
73
+ type: 'boolean',
74
+ },
75
+ is_scheduled_on_device: {
76
+ description:
77
+ 'Indicates whether the code is set on the device according to a preconfigured schedule.',
78
+ type: 'boolean',
79
+ },
80
+ is_waiting_for_code_assignment: {
81
+ description:
82
+ 'Indicates whether the access code is waiting for a code assignment.',
83
+ type: 'boolean',
84
+ },
85
+ name: {
86
+ description:
87
+ 'Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.',
88
+ nullable: true,
89
+ type: 'string',
90
+ },
22
91
  pulled_backup_access_code_id: {
92
+ description:
93
+ 'Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.',
23
94
  format: 'uuid',
24
95
  nullable: true,
25
96
  type: 'string',
26
97
  },
27
- starts_at: { format: 'date-time', nullable: true, type: 'string' },
98
+ starts_at: {
99
+ description:
100
+ 'Date and time at which the time-bound access code becomes active.',
101
+ format: 'date-time',
102
+ nullable: true,
103
+ type: 'string',
104
+ },
28
105
  status: {
106
+ description:
107
+ '\n Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.\n ',
29
108
  enum: ['setting', 'set', 'unset', 'removing', 'unknown'],
30
109
  type: 'string',
31
110
  },
32
- type: { enum: ['time_bound', 'ongoing'], type: 'string' },
33
- warnings: { nullable: true },
111
+ type: {
112
+ description:
113
+ 'Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration.',
114
+ enum: ['time_bound', 'ongoing'],
115
+ type: 'string',
116
+ },
117
+ warnings: {
118
+ description:
119
+ 'Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention.',
120
+ nullable: true,
121
+ },
34
122
  },
35
123
  required: [
36
124
  'common_code_key',
@@ -503,11 +591,11 @@ export default {
503
591
  manufacturer: { type: 'string' },
504
592
  model: {
505
593
  properties: {
506
- access_codes_supported: { type: 'boolean' },
507
594
  accessory_keypad_supported: { type: 'boolean' },
508
595
  display_name: { type: 'string' },
509
596
  manufacturer_display_name: { type: 'string' },
510
597
  offline_access_codes_supported: { type: 'boolean' },
598
+ online_access_codes_supported: { type: 'boolean' },
511
599
  },
512
600
  required: ['display_name', 'manufacturer_display_name'],
513
601
  type: 'object',
@@ -1441,18 +1529,66 @@ export default {
1441
1529
  },
1442
1530
  unmanaged_access_code: {
1443
1531
  properties: {
1444
- access_code_id: { format: 'uuid', type: 'string' },
1445
- code: { nullable: true, type: 'string' },
1446
- created_at: { format: 'date-time', type: 'string' },
1447
- device_id: { format: 'uuid', type: 'string' },
1448
- ends_at: { format: 'date-time', nullable: true, type: 'string' },
1449
- errors: { nullable: true },
1532
+ access_code_id: {
1533
+ description: 'Unique identifier for the access code.',
1534
+ format: 'uuid',
1535
+ type: 'string',
1536
+ },
1537
+ code: {
1538
+ description:
1539
+ 'Code used for access. Typically, a numeric or alphanumeric string.',
1540
+ nullable: true,
1541
+ type: 'string',
1542
+ },
1543
+ created_at: {
1544
+ description: 'Date and time at which the access code was created.',
1545
+ format: 'date-time',
1546
+ type: 'string',
1547
+ },
1548
+ device_id: {
1549
+ description:
1550
+ 'Unique identifier for the device associated with the access code.',
1551
+ format: 'uuid',
1552
+ type: 'string',
1553
+ },
1554
+ ends_at: {
1555
+ description:
1556
+ 'Date and time after which the time-bound access code becomes inactive.',
1557
+ format: 'date-time',
1558
+ nullable: true,
1559
+ type: 'string',
1560
+ },
1561
+ errors: {
1562
+ description:
1563
+ 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
1564
+ nullable: true,
1565
+ },
1450
1566
  is_managed: { enum: [false], type: 'boolean' },
1451
- name: { nullable: true, type: 'string' },
1452
- starts_at: { format: 'date-time', nullable: true, type: 'string' },
1567
+ name: {
1568
+ description:
1569
+ 'Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.',
1570
+ nullable: true,
1571
+ type: 'string',
1572
+ },
1573
+ starts_at: {
1574
+ description:
1575
+ 'Date and time at which the time-bound access code becomes active.',
1576
+ format: 'date-time',
1577
+ nullable: true,
1578
+ type: 'string',
1579
+ },
1453
1580
  status: { enum: ['set'], type: 'string' },
1454
- type: { enum: ['time_bound', 'ongoing'], type: 'string' },
1455
- warnings: { nullable: true },
1581
+ type: {
1582
+ description:
1583
+ 'Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration.',
1584
+ enum: ['time_bound', 'ongoing'],
1585
+ type: 'string',
1586
+ },
1587
+ warnings: {
1588
+ description:
1589
+ 'Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention.',
1590
+ nullable: true,
1591
+ },
1456
1592
  },
1457
1593
  required: [
1458
1594
  'type',
@@ -3018,6 +3154,81 @@ export default {
3018
3154
  'x-fern-sdk-method-name': 'remove_user',
3019
3155
  },
3020
3156
  },
3157
+ '/acs/credential_pools/list': {
3158
+ post: {
3159
+ operationId: 'acsCredentialPoolsListPost',
3160
+ requestBody: {
3161
+ content: {
3162
+ 'application/json': {
3163
+ schema: {
3164
+ properties: {
3165
+ acs_system_id: { format: 'uuid', type: 'string' },
3166
+ },
3167
+ required: ['acs_system_id'],
3168
+ type: 'object',
3169
+ },
3170
+ },
3171
+ },
3172
+ },
3173
+ responses: {
3174
+ 200: {
3175
+ content: {
3176
+ 'application/json': {
3177
+ schema: {
3178
+ properties: {
3179
+ acs_credential_pools: {
3180
+ items: {
3181
+ properties: {
3182
+ acs_credential_pool_id: {
3183
+ format: 'uuid',
3184
+ type: 'string',
3185
+ },
3186
+ acs_system_id: { format: 'uuid', type: 'string' },
3187
+ created_at: { format: 'date-time', type: 'string' },
3188
+ display_name: { minLength: 1, type: 'string' },
3189
+ external_type: {
3190
+ enum: ['hid_part_number'],
3191
+ type: 'string',
3192
+ },
3193
+ external_type_display_name: { type: 'string' },
3194
+ workspace_id: { format: 'uuid', type: 'string' },
3195
+ },
3196
+ required: [
3197
+ 'acs_credential_pool_id',
3198
+ 'acs_system_id',
3199
+ 'display_name',
3200
+ 'external_type',
3201
+ 'external_type_display_name',
3202
+ 'created_at',
3203
+ 'workspace_id',
3204
+ ],
3205
+ type: 'object',
3206
+ },
3207
+ type: 'array',
3208
+ },
3209
+ ok: { type: 'boolean' },
3210
+ },
3211
+ required: ['acs_credential_pools', 'ok'],
3212
+ type: 'object',
3213
+ },
3214
+ },
3215
+ },
3216
+ description: 'OK',
3217
+ },
3218
+ 400: { description: 'Bad Request' },
3219
+ 401: { description: 'Unauthorized' },
3220
+ },
3221
+ security: [
3222
+ { access_token: [], seam_workspace: [] },
3223
+ { seam_client_session_token: [] },
3224
+ { client_session_token: [] },
3225
+ ],
3226
+ summary: '/acs/credential_pools/list',
3227
+ tags: [],
3228
+ 'x-fern-sdk-group-name': ['acs', 'credential_pools'],
3229
+ 'x-fern-sdk-method-name': 'list',
3230
+ },
3231
+ },
3021
3232
  '/acs/credentials/assign': {
3022
3233
  patch: {
3023
3234
  operationId: 'acsCredentialsAssignPatch',
@@ -3044,6 +3255,10 @@ export default {
3044
3255
  acs_credential: {
3045
3256
  properties: {
3046
3257
  acs_credential_id: { format: 'uuid', type: 'string' },
3258
+ acs_credential_pool_id: {
3259
+ format: 'uuid',
3260
+ type: 'string',
3261
+ },
3047
3262
  acs_system_id: { format: 'uuid', type: 'string' },
3048
3263
  acs_user_id: { format: 'uuid', type: 'string' },
3049
3264
  code: { nullable: true, type: 'string' },
@@ -3053,7 +3268,7 @@ export default {
3053
3268
  enum: [
3054
3269
  'pti_card',
3055
3270
  'brivo_credential',
3056
- 'hid_cm_credential',
3271
+ 'hid_credential',
3057
3272
  ],
3058
3273
  type: 'string',
3059
3274
  },
@@ -3118,6 +3333,10 @@ export default {
3118
3333
  acs_credential: {
3119
3334
  properties: {
3120
3335
  acs_credential_id: { format: 'uuid', type: 'string' },
3336
+ acs_credential_pool_id: {
3337
+ format: 'uuid',
3338
+ type: 'string',
3339
+ },
3121
3340
  acs_system_id: { format: 'uuid', type: 'string' },
3122
3341
  acs_user_id: { format: 'uuid', type: 'string' },
3123
3342
  code: { nullable: true, type: 'string' },
@@ -3127,7 +3346,7 @@ export default {
3127
3346
  enum: [
3128
3347
  'pti_card',
3129
3348
  'brivo_credential',
3130
- 'hid_cm_credential',
3349
+ 'hid_credential',
3131
3350
  ],
3132
3351
  type: 'string',
3133
3352
  },
@@ -3195,6 +3414,10 @@ export default {
3195
3414
  acs_credential: {
3196
3415
  properties: {
3197
3416
  acs_credential_id: { format: 'uuid', type: 'string' },
3417
+ acs_credential_pool_id: {
3418
+ format: 'uuid',
3419
+ type: 'string',
3420
+ },
3198
3421
  acs_system_id: { format: 'uuid', type: 'string' },
3199
3422
  acs_user_id: { format: 'uuid', type: 'string' },
3200
3423
  code: { nullable: true, type: 'string' },
@@ -3204,7 +3427,7 @@ export default {
3204
3427
  enum: [
3205
3428
  'pti_card',
3206
3429
  'brivo_credential',
3207
- 'hid_cm_credential',
3430
+ 'hid_credential',
3208
3431
  ],
3209
3432
  type: 'string',
3210
3433
  },
@@ -3314,6 +3537,10 @@ export default {
3314
3537
  acs_credential: {
3315
3538
  properties: {
3316
3539
  acs_credential_id: { format: 'uuid', type: 'string' },
3540
+ acs_credential_pool_id: {
3541
+ format: 'uuid',
3542
+ type: 'string',
3543
+ },
3317
3544
  acs_system_id: { format: 'uuid', type: 'string' },
3318
3545
  acs_user_id: { format: 'uuid', type: 'string' },
3319
3546
  code: { nullable: true, type: 'string' },
@@ -3323,7 +3550,7 @@ export default {
3323
3550
  enum: [
3324
3551
  'pti_card',
3325
3552
  'brivo_credential',
3326
- 'hid_cm_credential',
3553
+ 'hid_credential',
3327
3554
  ],
3328
3555
  type: 'string',
3329
3556
  },
@@ -3410,6 +3637,10 @@ export default {
3410
3637
  items: {
3411
3638
  properties: {
3412
3639
  acs_credential_id: { format: 'uuid', type: 'string' },
3640
+ acs_credential_pool_id: {
3641
+ format: 'uuid',
3642
+ type: 'string',
3643
+ },
3413
3644
  acs_system_id: { format: 'uuid', type: 'string' },
3414
3645
  acs_user_id: { format: 'uuid', type: 'string' },
3415
3646
  code: { nullable: true, type: 'string' },
@@ -3419,7 +3650,7 @@ export default {
3419
3650
  enum: [
3420
3651
  'pti_card',
3421
3652
  'brivo_credential',
3422
- 'hid_cm_credential',
3653
+ 'hid_credential',
3423
3654
  ],
3424
3655
  type: 'string',
3425
3656
  },
@@ -3489,6 +3720,10 @@ export default {
3489
3720
  acs_credential: {
3490
3721
  properties: {
3491
3722
  acs_credential_id: { format: 'uuid', type: 'string' },
3723
+ acs_credential_pool_id: {
3724
+ format: 'uuid',
3725
+ type: 'string',
3726
+ },
3492
3727
  acs_system_id: { format: 'uuid', type: 'string' },
3493
3728
  acs_user_id: { format: 'uuid', type: 'string' },
3494
3729
  code: { nullable: true, type: 'string' },
@@ -3498,7 +3733,7 @@ export default {
3498
3733
  enum: [
3499
3734
  'pti_card',
3500
3735
  'brivo_credential',
3501
- 'hid_cm_credential',
3736
+ 'hid_credential',
3502
3737
  ],
3503
3738
  type: 'string',
3504
3739
  },
@@ -3563,6 +3798,10 @@ export default {
3563
3798
  acs_credential: {
3564
3799
  properties: {
3565
3800
  acs_credential_id: { format: 'uuid', type: 'string' },
3801
+ acs_credential_pool_id: {
3802
+ format: 'uuid',
3803
+ type: 'string',
3804
+ },
3566
3805
  acs_system_id: { format: 'uuid', type: 'string' },
3567
3806
  acs_user_id: { format: 'uuid', type: 'string' },
3568
3807
  code: { nullable: true, type: 'string' },
@@ -3572,7 +3811,7 @@ export default {
3572
3811
  enum: [
3573
3812
  'pti_card',
3574
3813
  'brivo_credential',
3575
- 'hid_cm_credential',
3814
+ 'hid_credential',
3576
3815
  ],
3577
3816
  type: 'string',
3578
3817
  },