@seamapi/types 1.18.6 → 1.19.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 (42) hide show
  1. package/dist/connect.cjs +128 -5
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +236 -0
  4. package/dist/devicedb.cjs +1 -1
  5. package/dist/devicedb.cjs.map +1 -1
  6. package/dist/devicedb.d.cts +18 -18
  7. package/lib/seam/connect/openapi.d.ts +179 -0
  8. package/lib/seam/connect/openapi.js +128 -5
  9. package/lib/seam/connect/openapi.js.map +1 -1
  10. package/lib/seam/connect/route-types.d.ts +57 -0
  11. package/lib/seam/connect/unstable/model-types.d.ts +1 -1
  12. package/lib/seam/connect/unstable/models/acs/access_group.d.ts +8 -2
  13. package/lib/seam/connect/unstable/models/acs/access_group.js +7 -3
  14. package/lib/seam/connect/unstable/models/acs/access_group.js.map +1 -1
  15. package/lib/seam/connect/unstable/models/acs/credential.d.ts +8 -0
  16. package/lib/seam/connect/unstable/models/acs/credential.js +3 -0
  17. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  18. package/lib/seam/connect/unstable/models/acs/system.d.ts +8 -2
  19. package/lib/seam/connect/unstable/models/acs/system.js +7 -3
  20. package/lib/seam/connect/unstable/models/acs/system.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/acs/user.d.ts +8 -0
  22. package/lib/seam/connect/unstable/models/acs/user.js +3 -0
  23. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  24. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  25. package/lib/seam/connect/unstable/schemas.js +1 -1
  26. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  27. package/lib/seam/devicedb/public-models/device-model-v1.d.ts +10 -10
  28. package/lib/seam/devicedb/public-models/manufacturer.d.ts +3 -3
  29. package/lib/seam/devicedb/public-models/manufacturer.js +1 -1
  30. package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -1
  31. package/lib/seam/devicedb/route-types.d.ts +5 -5
  32. package/package.json +1 -1
  33. package/src/lib/seam/connect/openapi.ts +128 -5
  34. package/src/lib/seam/connect/route-types.ts +57 -0
  35. package/src/lib/seam/connect/unstable/model-types.ts +5 -2
  36. package/src/lib/seam/connect/unstable/models/acs/access_group.ts +12 -4
  37. package/src/lib/seam/connect/unstable/models/acs/credential.ts +8 -0
  38. package/src/lib/seam/connect/unstable/models/acs/system.ts +10 -4
  39. package/src/lib/seam/connect/unstable/models/acs/user.ts +6 -0
  40. package/src/lib/seam/connect/unstable/schemas.ts +4 -2
  41. package/src/lib/seam/devicedb/public-models/manufacturer.ts +1 -1
  42. package/src/lib/seam/devicedb/route-types.ts +10 -5
@@ -80,10 +80,12 @@ declare const _default: {
80
80
  acs_access_group: {
81
81
  properties: {
82
82
  access_group_type: {
83
+ description: string;
83
84
  enum: string[];
84
85
  type: string;
85
86
  };
86
87
  access_group_type_display_name: {
88
+ description: string;
87
89
  type: string;
88
90
  };
89
91
  acs_access_group_id: {
@@ -98,6 +100,13 @@ declare const _default: {
98
100
  format: string;
99
101
  type: string;
100
102
  };
103
+ external_type: {
104
+ enum: string[];
105
+ type: string;
106
+ };
107
+ external_type_display_name: {
108
+ type: string;
109
+ };
101
110
  name: {
102
111
  type: string;
103
112
  };
@@ -119,14 +128,23 @@ declare const _default: {
119
128
  format: string;
120
129
  type: string;
121
130
  };
131
+ external_type: {
132
+ enum: string[];
133
+ type: string;
134
+ };
135
+ external_type_display_name: {
136
+ type: string;
137
+ };
122
138
  name: {
123
139
  type: string;
124
140
  };
125
141
  system_type: {
142
+ description: string;
126
143
  enum: string[];
127
144
  type: string;
128
145
  };
129
146
  system_type_display_name: {
147
+ description: string;
130
148
  type: string;
131
149
  };
132
150
  };
@@ -154,6 +172,13 @@ declare const _default: {
154
172
  format: string;
155
173
  type: string;
156
174
  };
175
+ external_type: {
176
+ enum: string[];
177
+ type: string;
178
+ };
179
+ external_type_display_name: {
180
+ type: string;
181
+ };
157
182
  full_name: {
158
183
  type: string;
159
184
  };
@@ -3240,6 +3265,9 @@ declare const _default: {
3240
3265
  format: string;
3241
3266
  type: string;
3242
3267
  };
3268
+ user_identifier_key: {
3269
+ type: string;
3270
+ };
3243
3271
  };
3244
3272
  required: string[];
3245
3273
  type: string;
@@ -4455,6 +4483,13 @@ declare const _default: {
4455
4483
  format: string;
4456
4484
  type: string;
4457
4485
  };
4486
+ external_type: {
4487
+ enum: string[];
4488
+ type: string;
4489
+ };
4490
+ external_type_display_name: {
4491
+ type: string;
4492
+ };
4458
4493
  workspace_id: {
4459
4494
  format: string;
4460
4495
  type: string;
@@ -4615,6 +4650,13 @@ declare const _default: {
4615
4650
  format: string;
4616
4651
  type: string;
4617
4652
  };
4653
+ external_type: {
4654
+ enum: string[];
4655
+ type: string;
4656
+ };
4657
+ external_type_display_name: {
4658
+ type: string;
4659
+ };
4618
4660
  workspace_id: {
4619
4661
  format: string;
4620
4662
  type: string;
@@ -4711,6 +4753,13 @@ declare const _default: {
4711
4753
  format: string;
4712
4754
  type: string;
4713
4755
  };
4756
+ external_type: {
4757
+ enum: string[];
4758
+ type: string;
4759
+ };
4760
+ external_type_display_name: {
4761
+ type: string;
4762
+ };
4714
4763
  workspace_id: {
4715
4764
  format: string;
4716
4765
  type: string;
@@ -5355,6 +5404,136 @@ declare const _default: {
5355
5404
  'x-fern-sdk-method-name': string;
5356
5405
  };
5357
5406
  };
5407
+ '/acs/users/suspend': {
5408
+ post: {
5409
+ operationId: string;
5410
+ requestBody: {
5411
+ content: {
5412
+ 'application/json': {
5413
+ schema: {
5414
+ properties: {
5415
+ acs_user_id: {
5416
+ format: string;
5417
+ type: string;
5418
+ };
5419
+ };
5420
+ required: string[];
5421
+ type: string;
5422
+ };
5423
+ };
5424
+ };
5425
+ };
5426
+ responses: {
5427
+ 200: {
5428
+ content: {
5429
+ 'application/json': {
5430
+ schema: {
5431
+ properties: {
5432
+ ok: {
5433
+ type: string;
5434
+ };
5435
+ };
5436
+ required: string[];
5437
+ type: string;
5438
+ };
5439
+ };
5440
+ };
5441
+ description: string;
5442
+ };
5443
+ 400: {
5444
+ description: string;
5445
+ };
5446
+ 401: {
5447
+ description: string;
5448
+ };
5449
+ };
5450
+ security: ({
5451
+ access_token: never[];
5452
+ seam_workspace: never[];
5453
+ seam_client_session_token?: never;
5454
+ client_session_token?: never;
5455
+ } | {
5456
+ seam_client_session_token: never[];
5457
+ access_token?: never;
5458
+ seam_workspace?: never;
5459
+ client_session_token?: never;
5460
+ } | {
5461
+ client_session_token: never[];
5462
+ access_token?: never;
5463
+ seam_workspace?: never;
5464
+ seam_client_session_token?: never;
5465
+ })[];
5466
+ summary: string;
5467
+ tags: never[];
5468
+ 'x-fern-sdk-group-name': string[];
5469
+ 'x-fern-sdk-method-name': string;
5470
+ };
5471
+ };
5472
+ '/acs/users/unsuspend': {
5473
+ post: {
5474
+ operationId: string;
5475
+ requestBody: {
5476
+ content: {
5477
+ 'application/json': {
5478
+ schema: {
5479
+ properties: {
5480
+ acs_user_id: {
5481
+ format: string;
5482
+ type: string;
5483
+ };
5484
+ };
5485
+ required: string[];
5486
+ type: string;
5487
+ };
5488
+ };
5489
+ };
5490
+ };
5491
+ responses: {
5492
+ 200: {
5493
+ content: {
5494
+ 'application/json': {
5495
+ schema: {
5496
+ properties: {
5497
+ ok: {
5498
+ type: string;
5499
+ };
5500
+ };
5501
+ required: string[];
5502
+ type: string;
5503
+ };
5504
+ };
5505
+ };
5506
+ description: string;
5507
+ };
5508
+ 400: {
5509
+ description: string;
5510
+ };
5511
+ 401: {
5512
+ description: string;
5513
+ };
5514
+ };
5515
+ security: ({
5516
+ access_token: never[];
5517
+ seam_workspace: never[];
5518
+ seam_client_session_token?: never;
5519
+ client_session_token?: never;
5520
+ } | {
5521
+ seam_client_session_token: never[];
5522
+ access_token?: never;
5523
+ seam_workspace?: never;
5524
+ client_session_token?: never;
5525
+ } | {
5526
+ client_session_token: never[];
5527
+ access_token?: never;
5528
+ seam_workspace?: never;
5529
+ seam_client_session_token?: never;
5530
+ })[];
5531
+ summary: string;
5532
+ tags: never[];
5533
+ 'x-fern-sdk-group-name': string[];
5534
+ 'x-fern-sdk-method-name': string;
5535
+ };
5536
+ };
5358
5537
  '/acs/users/update': {
5359
5538
  patch: {
5360
5539
  operationId: string;
@@ -47,11 +47,20 @@ export default {
47
47
  },
48
48
  acs_access_group: {
49
49
  properties: {
50
- access_group_type: { enum: ['pti_unit'], type: 'string' },
51
- access_group_type_display_name: { type: 'string' },
50
+ access_group_type: {
51
+ description: 'deprecated: use external_type',
52
+ enum: ['pti_unit'],
53
+ type: 'string',
54
+ },
55
+ access_group_type_display_name: {
56
+ description: 'deprecated: use external_type_display_name',
57
+ type: 'string',
58
+ },
52
59
  acs_access_group_id: { format: 'uuid', type: 'string' },
53
60
  acs_system_id: { format: 'uuid', type: 'string' },
54
61
  created_at: { format: 'date-time', type: 'string' },
62
+ external_type: { enum: ['pti_unit'], type: 'string' },
63
+ external_type_display_name: { type: 'string' },
55
64
  name: { type: 'string' },
56
65
  workspace_id: { format: 'uuid', type: 'string' },
57
66
  },
@@ -62,6 +71,8 @@ export default {
62
71
  'name',
63
72
  'access_group_type',
64
73
  'access_group_type_display_name',
74
+ 'external_type',
75
+ 'external_type_display_name',
65
76
  'created_at',
66
77
  ],
67
78
  type: 'object',
@@ -70,12 +81,23 @@ export default {
70
81
  properties: {
71
82
  acs_system_id: { format: 'uuid', type: 'string' },
72
83
  created_at: { format: 'date-time', type: 'string' },
84
+ external_type: { enum: ['pti_site', 'alta_org'], type: 'string' },
85
+ external_type_display_name: { type: 'string' },
73
86
  name: { type: 'string' },
74
- system_type: { enum: ['pti_site', 'alta_org'], type: 'string' },
75
- system_type_display_name: { type: 'string' },
87
+ system_type: {
88
+ description: 'deprecated: use external_type',
89
+ enum: ['pti_site', 'alta_org'],
90
+ type: 'string',
91
+ },
92
+ system_type_display_name: {
93
+ description: 'deprecated: use external_type_display_name',
94
+ type: 'string',
95
+ },
76
96
  },
77
97
  required: [
78
98
  'acs_system_id',
99
+ 'external_type',
100
+ 'external_type_display_name',
79
101
  'system_type',
80
102
  'system_type_display_name',
81
103
  'name',
@@ -90,6 +112,8 @@ export default {
90
112
  created_at: { format: 'date-time', type: 'string' },
91
113
  display_name: { type: 'string' },
92
114
  email: { format: 'email', type: 'string' },
115
+ external_type: { enum: ['pti_user'], type: 'string' },
116
+ external_type_display_name: { type: 'string' },
93
117
  full_name: { type: 'string' },
94
118
  is_being_deleted: { type: 'boolean' },
95
119
  phone_number: { nullable: true, type: 'string' },
@@ -101,6 +125,8 @@ export default {
101
125
  'workspace_id',
102
126
  'created_at',
103
127
  'display_name',
128
+ 'external_type',
129
+ 'external_type_display_name',
104
130
  'is_being_deleted',
105
131
  ],
106
132
  type: 'object',
@@ -2269,7 +2295,10 @@ export default {
2269
2295
  content: {
2270
2296
  'application/json': {
2271
2297
  schema: {
2272
- properties: { device_id: { format: 'uuid', type: 'string' } },
2298
+ properties: {
2299
+ device_id: { format: 'uuid', type: 'string' },
2300
+ user_identifier_key: { type: 'string' },
2301
+ },
2273
2302
  required: ['device_id'],
2274
2303
  type: 'object',
2275
2304
  },
@@ -3054,6 +3083,8 @@ export default {
3054
3083
  acs_user_id: { format: 'uuid', type: 'string' },
3055
3084
  code: { nullable: true, type: 'string' },
3056
3085
  created_at: { format: 'date-time', type: 'string' },
3086
+ external_type: { enum: ['pti_card'], type: 'string' },
3087
+ external_type_display_name: { type: 'string' },
3057
3088
  workspace_id: { format: 'uuid', type: 'string' },
3058
3089
  },
3059
3090
  required: [
@@ -3061,6 +3092,8 @@ export default {
3061
3092
  'acs_user_id',
3062
3093
  'acs_system_id',
3063
3094
  'code',
3095
+ 'external_type',
3096
+ 'external_type_display_name',
3064
3097
  'created_at',
3065
3098
  'workspace_id',
3066
3099
  ],
@@ -3161,6 +3194,8 @@ export default {
3161
3194
  acs_user_id: { format: 'uuid', type: 'string' },
3162
3195
  code: { nullable: true, type: 'string' },
3163
3196
  created_at: { format: 'date-time', type: 'string' },
3197
+ external_type: { enum: ['pti_card'], type: 'string' },
3198
+ external_type_display_name: { type: 'string' },
3164
3199
  workspace_id: { format: 'uuid', type: 'string' },
3165
3200
  },
3166
3201
  required: [
@@ -3168,6 +3203,8 @@ export default {
3168
3203
  'acs_user_id',
3169
3204
  'acs_system_id',
3170
3205
  'code',
3206
+ 'external_type',
3207
+ 'external_type_display_name',
3171
3208
  'created_at',
3172
3209
  'workspace_id',
3173
3210
  ],
@@ -3224,6 +3261,8 @@ export default {
3224
3261
  acs_user_id: { format: 'uuid', type: 'string' },
3225
3262
  code: { nullable: true, type: 'string' },
3226
3263
  created_at: { format: 'date-time', type: 'string' },
3264
+ external_type: { enum: ['pti_card'], type: 'string' },
3265
+ external_type_display_name: { type: 'string' },
3227
3266
  workspace_id: { format: 'uuid', type: 'string' },
3228
3267
  },
3229
3268
  required: [
@@ -3231,6 +3270,8 @@ export default {
3231
3270
  'acs_user_id',
3232
3271
  'acs_system_id',
3233
3272
  'code',
3273
+ 'external_type',
3274
+ 'external_type_display_name',
3234
3275
  'created_at',
3235
3276
  'workspace_id',
3236
3277
  ],
@@ -3639,6 +3680,88 @@ export default {
3639
3680
  'x-fern-sdk-method-name': 'remove_from_access_group',
3640
3681
  },
3641
3682
  },
3683
+ '/acs/users/suspend': {
3684
+ post: {
3685
+ operationId: 'acsUsersSuspendPost',
3686
+ requestBody: {
3687
+ content: {
3688
+ 'application/json': {
3689
+ schema: {
3690
+ properties: { acs_user_id: { format: 'uuid', type: 'string' } },
3691
+ required: ['acs_user_id'],
3692
+ type: 'object',
3693
+ },
3694
+ },
3695
+ },
3696
+ },
3697
+ responses: {
3698
+ 200: {
3699
+ content: {
3700
+ 'application/json': {
3701
+ schema: {
3702
+ properties: { ok: { type: 'boolean' } },
3703
+ required: ['ok'],
3704
+ type: 'object',
3705
+ },
3706
+ },
3707
+ },
3708
+ description: 'OK',
3709
+ },
3710
+ 400: { description: 'Bad Request' },
3711
+ 401: { description: 'Unauthorized' },
3712
+ },
3713
+ security: [
3714
+ { access_token: [], seam_workspace: [] },
3715
+ { seam_client_session_token: [] },
3716
+ { client_session_token: [] },
3717
+ ],
3718
+ summary: '/acs/users/suspend',
3719
+ tags: [],
3720
+ 'x-fern-sdk-group-name': ['acs', 'users'],
3721
+ 'x-fern-sdk-method-name': 'suspend',
3722
+ },
3723
+ },
3724
+ '/acs/users/unsuspend': {
3725
+ post: {
3726
+ operationId: 'acsUsersUnsuspendPost',
3727
+ requestBody: {
3728
+ content: {
3729
+ 'application/json': {
3730
+ schema: {
3731
+ properties: { acs_user_id: { format: 'uuid', type: 'string' } },
3732
+ required: ['acs_user_id'],
3733
+ type: 'object',
3734
+ },
3735
+ },
3736
+ },
3737
+ },
3738
+ responses: {
3739
+ 200: {
3740
+ content: {
3741
+ 'application/json': {
3742
+ schema: {
3743
+ properties: { ok: { type: 'boolean' } },
3744
+ required: ['ok'],
3745
+ type: 'object',
3746
+ },
3747
+ },
3748
+ },
3749
+ description: 'OK',
3750
+ },
3751
+ 400: { description: 'Bad Request' },
3752
+ 401: { description: 'Unauthorized' },
3753
+ },
3754
+ security: [
3755
+ { access_token: [], seam_workspace: [] },
3756
+ { seam_client_session_token: [] },
3757
+ { client_session_token: [] },
3758
+ ],
3759
+ summary: '/acs/users/unsuspend',
3760
+ tags: [],
3761
+ 'x-fern-sdk-group-name': ['acs', 'users'],
3762
+ 'x-fern-sdk-method-name': 'unsuspend',
3763
+ },
3764
+ },
3642
3765
  '/acs/users/update': {
3643
3766
  patch: {
3644
3767
  operationId: 'acsUsersUpdatePatch',