@seamapi/types 1.367.0 → 1.367.1

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.
@@ -37052,7 +37052,7 @@ export interface Routes {
37052
37052
  };
37053
37053
  '/unstable_locations/add_devices': {
37054
37054
  route: '/unstable_locations/add_devices';
37055
- method: 'POST';
37055
+ method: 'POST' | 'PUT';
37056
37056
  queryParams: {};
37057
37057
  jsonBody: {
37058
37058
  location_id: string;
@@ -37082,6 +37082,8 @@ export interface Routes {
37082
37082
  location_id: string;
37083
37083
  /** Unique identifier for the Seam workspace associated with the location. */
37084
37084
  workspace_id: string;
37085
+ /** Name of the location. */
37086
+ name: string;
37085
37087
  /** Display name of the location. */
37086
37088
  display_name: string;
37087
37089
  /** Geographical location of the location. */
@@ -37122,6 +37124,8 @@ export interface Routes {
37122
37124
  location_id: string;
37123
37125
  /** Unique identifier for the Seam workspace associated with the location. */
37124
37126
  workspace_id: string;
37127
+ /** Name of the location. */
37128
+ name: string;
37125
37129
  /** Display name of the location. */
37126
37130
  display_name: string;
37127
37131
  /** Geographical location of the location. */
@@ -37149,6 +37153,8 @@ export interface Routes {
37149
37153
  location_id: string;
37150
37154
  /** Unique identifier for the Seam workspace associated with the location. */
37151
37155
  workspace_id: string;
37156
+ /** Name of the location. */
37157
+ name: string;
37152
37158
  /** Display name of the location. */
37153
37159
  display_name: string;
37154
37160
  /** Geographical location of the location. */
@@ -37165,19 +37171,19 @@ export interface Routes {
37165
37171
  };
37166
37172
  '/unstable_locations/remove_devices': {
37167
37173
  route: '/unstable_locations/remove_devices';
37168
- method: 'POST';
37174
+ method: 'POST' | 'DELETE';
37169
37175
  queryParams: {};
37170
- jsonBody: {
37176
+ jsonBody: {};
37177
+ commonParams: {
37171
37178
  location_id: string;
37172
37179
  device_ids: string[];
37173
37180
  };
37174
- commonParams: {};
37175
37181
  formData: {};
37176
37182
  jsonResponse: {};
37177
37183
  };
37178
37184
  '/unstable_locations/update': {
37179
37185
  route: '/unstable_locations/update';
37180
- method: 'POST';
37186
+ method: 'POST' | 'PATCH';
37181
37187
  queryParams: {};
37182
37188
  jsonBody: {
37183
37189
  location_id: string;
@@ -37196,6 +37202,8 @@ export interface Routes {
37196
37202
  location_id: string;
37197
37203
  /** Unique identifier for the Seam workspace associated with the location. */
37198
37204
  workspace_id: string;
37205
+ /** Name of the location. */
37206
+ name: string;
37199
37207
  /** Display name of the location. */
37200
37208
  display_name: string;
37201
37209
  /** Geographical location of the location. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.367.0",
3
+ "version": "1.367.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -16,6 +16,7 @@ export const location = z.object({
16
16
  .describe(
17
17
  'Unique identifier for the Seam workspace associated with the location.',
18
18
  ),
19
+ name: z.string().describe('Name of the location.'),
19
20
  display_name: z.string().describe('Display name of the location.'),
20
21
  geolocation: geolocation
21
22
  .optional()
@@ -28093,6 +28093,7 @@ export default {
28093
28093
  properties: {
28094
28094
  device_ids: {
28095
28095
  items: { format: 'uuid', type: 'string' },
28096
+ minItems: 1,
28096
28097
  type: 'array',
28097
28098
  },
28098
28099
  location_id: { format: 'uuid', type: 'string' },
@@ -28132,6 +28133,56 @@ export default {
28132
28133
  'x-title': 'Add Location Devices',
28133
28134
  'x-undocumented': 'Experimental locations.',
28134
28135
  },
28136
+ put: {
28137
+ description:
28138
+ 'Add devices to a specific location. If a device already belongs to a location it will be moved.',
28139
+ operationId: 'unstableLocationsAddDevicesPut',
28140
+ requestBody: {
28141
+ content: {
28142
+ 'application/json': {
28143
+ schema: {
28144
+ properties: {
28145
+ device_ids: {
28146
+ items: { format: 'uuid', type: 'string' },
28147
+ minItems: 1,
28148
+ type: 'array',
28149
+ },
28150
+ location_id: { format: 'uuid', type: 'string' },
28151
+ },
28152
+ required: ['location_id', 'device_ids'],
28153
+ type: 'object',
28154
+ },
28155
+ },
28156
+ },
28157
+ },
28158
+ responses: {
28159
+ 200: {
28160
+ content: {
28161
+ 'application/json': {
28162
+ schema: {
28163
+ properties: { ok: { type: 'boolean' } },
28164
+ required: ['ok'],
28165
+ type: 'object',
28166
+ },
28167
+ },
28168
+ },
28169
+ description: 'OK',
28170
+ },
28171
+ 400: { description: 'Bad Request' },
28172
+ 401: { description: 'Unauthorized' },
28173
+ },
28174
+ security: [
28175
+ { pat_with_workspace: [] },
28176
+ { console_session_with_workspace: [] },
28177
+ { api_key: [] },
28178
+ ],
28179
+ summary: '/unstable_locations/add_devices',
28180
+ tags: [],
28181
+ 'x-fern-ignore': true,
28182
+ 'x-response-key': null,
28183
+ 'x-title': 'Add Location Devices',
28184
+ 'x-undocumented': 'Experimental locations.',
28185
+ },
28135
28186
  },
28136
28187
  '/unstable_locations/create': {
28137
28188
  post: {
@@ -28191,6 +28242,10 @@ export default {
28191
28242
  format: 'uuid',
28192
28243
  type: 'string',
28193
28244
  },
28245
+ name: {
28246
+ description: 'Name of the location.',
28247
+ type: 'string',
28248
+ },
28194
28249
  time_zone: {
28195
28250
  description: 'Time zone of the location.',
28196
28251
  type: 'string',
@@ -28205,6 +28260,7 @@ export default {
28205
28260
  required: [
28206
28261
  'location_id',
28207
28262
  'workspace_id',
28263
+ 'name',
28208
28264
  'display_name',
28209
28265
  'created_at',
28210
28266
  ],
@@ -28329,6 +28385,10 @@ export default {
28329
28385
  format: 'uuid',
28330
28386
  type: 'string',
28331
28387
  },
28388
+ name: {
28389
+ description: 'Name of the location.',
28390
+ type: 'string',
28391
+ },
28332
28392
  time_zone: {
28333
28393
  description: 'Time zone of the location.',
28334
28394
  type: 'string',
@@ -28343,6 +28403,7 @@ export default {
28343
28403
  required: [
28344
28404
  'location_id',
28345
28405
  'workspace_id',
28406
+ 'name',
28346
28407
  'display_name',
28347
28408
  'created_at',
28348
28409
  ],
@@ -28413,6 +28474,10 @@ export default {
28413
28474
  format: 'uuid',
28414
28475
  type: 'string',
28415
28476
  },
28477
+ name: {
28478
+ description: 'Name of the location.',
28479
+ type: 'string',
28480
+ },
28416
28481
  time_zone: {
28417
28482
  description: 'Time zone of the location.',
28418
28483
  type: 'string',
@@ -28427,6 +28492,7 @@ export default {
28427
28492
  required: [
28428
28493
  'location_id',
28429
28494
  'workspace_id',
28495
+ 'name',
28430
28496
  'display_name',
28431
28497
  'created_at',
28432
28498
  ],
@@ -28495,6 +28561,10 @@ export default {
28495
28561
  format: 'uuid',
28496
28562
  type: 'string',
28497
28563
  },
28564
+ name: {
28565
+ description: 'Name of the location.',
28566
+ type: 'string',
28567
+ },
28498
28568
  time_zone: {
28499
28569
  description: 'Time zone of the location.',
28500
28570
  type: 'string',
@@ -28509,6 +28579,7 @@ export default {
28509
28579
  required: [
28510
28580
  'location_id',
28511
28581
  'workspace_id',
28582
+ 'name',
28512
28583
  'display_name',
28513
28584
  'created_at',
28514
28585
  ],
@@ -28595,6 +28666,112 @@ export default {
28595
28666
  },
28596
28667
  },
28597
28668
  '/unstable_locations/update': {
28669
+ patch: {
28670
+ description: 'Update an existing location.',
28671
+ operationId: 'unstableLocationsUpdatePatch',
28672
+ requestBody: {
28673
+ content: {
28674
+ 'application/json': {
28675
+ schema: {
28676
+ properties: {
28677
+ geolocation: {
28678
+ properties: {
28679
+ latitude: { format: 'float', type: 'number' },
28680
+ longitude: { format: 'float', type: 'number' },
28681
+ },
28682
+ required: ['latitude', 'longitude'],
28683
+ type: 'object',
28684
+ },
28685
+ location_id: { format: 'uuid', type: 'string' },
28686
+ name: { type: 'string' },
28687
+ time_zone: { type: 'string' },
28688
+ },
28689
+ required: ['location_id'],
28690
+ type: 'object',
28691
+ },
28692
+ },
28693
+ },
28694
+ },
28695
+ responses: {
28696
+ 200: {
28697
+ content: {
28698
+ 'application/json': {
28699
+ schema: {
28700
+ properties: {
28701
+ location: {
28702
+ properties: {
28703
+ created_at: {
28704
+ description:
28705
+ 'Date and time at which the location object was created.',
28706
+ format: 'date-time',
28707
+ type: 'string',
28708
+ },
28709
+ display_name: {
28710
+ description: 'Display name of the location.',
28711
+ type: 'string',
28712
+ },
28713
+ geolocation: {
28714
+ description: 'Geographical location of the location.',
28715
+ properties: {
28716
+ latitude: { format: 'float', type: 'number' },
28717
+ longitude: { format: 'float', type: 'number' },
28718
+ },
28719
+ required: ['latitude', 'longitude'],
28720
+ type: 'object',
28721
+ },
28722
+ location_id: {
28723
+ description: 'Unique identifier for the location.',
28724
+ format: 'uuid',
28725
+ type: 'string',
28726
+ },
28727
+ name: {
28728
+ description: 'Name of the location.',
28729
+ type: 'string',
28730
+ },
28731
+ time_zone: {
28732
+ description: 'Time zone of the location.',
28733
+ type: 'string',
28734
+ },
28735
+ workspace_id: {
28736
+ description:
28737
+ 'Unique identifier for the Seam workspace associated with the location.',
28738
+ format: 'uuid',
28739
+ type: 'string',
28740
+ },
28741
+ },
28742
+ required: [
28743
+ 'location_id',
28744
+ 'workspace_id',
28745
+ 'name',
28746
+ 'display_name',
28747
+ 'created_at',
28748
+ ],
28749
+ type: 'object',
28750
+ },
28751
+ ok: { type: 'boolean' },
28752
+ },
28753
+ required: ['location', 'ok'],
28754
+ type: 'object',
28755
+ },
28756
+ },
28757
+ },
28758
+ description: 'OK',
28759
+ },
28760
+ 400: { description: 'Bad Request' },
28761
+ 401: { description: 'Unauthorized' },
28762
+ },
28763
+ security: [
28764
+ { pat_with_workspace: [] },
28765
+ { console_session_with_workspace: [] },
28766
+ { api_key: [] },
28767
+ ],
28768
+ summary: '/unstable_locations/update',
28769
+ tags: [],
28770
+ 'x-fern-ignore': true,
28771
+ 'x-response-key': 'location',
28772
+ 'x-title': 'Update Location',
28773
+ 'x-undocumented': 'Experimental locations.',
28774
+ },
28598
28775
  post: {
28599
28776
  description: 'Update an existing location.',
28600
28777
  operationId: 'unstableLocationsUpdatePost',
@@ -28653,6 +28830,10 @@ export default {
28653
28830
  format: 'uuid',
28654
28831
  type: 'string',
28655
28832
  },
28833
+ name: {
28834
+ description: 'Name of the location.',
28835
+ type: 'string',
28836
+ },
28656
28837
  time_zone: {
28657
28838
  description: 'Time zone of the location.',
28658
28839
  type: 'string',
@@ -28667,6 +28848,7 @@ export default {
28667
28848
  required: [
28668
28849
  'location_id',
28669
28850
  'workspace_id',
28851
+ 'name',
28670
28852
  'display_name',
28671
28853
  'created_at',
28672
28854
  ],
@@ -45499,7 +45499,7 @@ export interface Routes {
45499
45499
  }
45500
45500
  '/unstable_locations/add_devices': {
45501
45501
  route: '/unstable_locations/add_devices'
45502
- method: 'POST'
45502
+ method: 'POST' | 'PUT'
45503
45503
  queryParams: {}
45504
45504
  jsonBody: {
45505
45505
  location_id: string
@@ -45531,6 +45531,8 @@ export interface Routes {
45531
45531
  location_id: string
45532
45532
  /** Unique identifier for the Seam workspace associated with the location. */
45533
45533
  workspace_id: string
45534
+ /** Name of the location. */
45535
+ name: string
45534
45536
  /** Display name of the location. */
45535
45537
  display_name: string
45536
45538
  /** Geographical location of the location. */
@@ -45573,6 +45575,8 @@ export interface Routes {
45573
45575
  location_id: string
45574
45576
  /** Unique identifier for the Seam workspace associated with the location. */
45575
45577
  workspace_id: string
45578
+ /** Name of the location. */
45579
+ name: string
45576
45580
  /** Display name of the location. */
45577
45581
  display_name: string
45578
45582
  /** Geographical location of the location. */
@@ -45602,6 +45606,8 @@ export interface Routes {
45602
45606
  location_id: string
45603
45607
  /** Unique identifier for the Seam workspace associated with the location. */
45604
45608
  workspace_id: string
45609
+ /** Name of the location. */
45610
+ name: string
45605
45611
  /** Display name of the location. */
45606
45612
  display_name: string
45607
45613
  /** Geographical location of the location. */
@@ -45620,19 +45626,19 @@ export interface Routes {
45620
45626
  }
45621
45627
  '/unstable_locations/remove_devices': {
45622
45628
  route: '/unstable_locations/remove_devices'
45623
- method: 'POST'
45629
+ method: 'POST' | 'DELETE'
45624
45630
  queryParams: {}
45625
- jsonBody: {
45631
+ jsonBody: {}
45632
+ commonParams: {
45626
45633
  location_id: string
45627
45634
  device_ids: string[]
45628
45635
  }
45629
- commonParams: {}
45630
45636
  formData: {}
45631
45637
  jsonResponse: {}
45632
45638
  }
45633
45639
  '/unstable_locations/update': {
45634
45640
  route: '/unstable_locations/update'
45635
- method: 'POST'
45641
+ method: 'POST' | 'PATCH'
45636
45642
  queryParams: {}
45637
45643
  jsonBody: {
45638
45644
  location_id: string
@@ -45653,6 +45659,8 @@ export interface Routes {
45653
45659
  location_id: string
45654
45660
  /** Unique identifier for the Seam workspace associated with the location. */
45655
45661
  workspace_id: string
45662
+ /** Name of the location. */
45663
+ name: string
45656
45664
  /** Display name of the location. */
45657
45665
  display_name: string
45658
45666
  /** Geographical location of the location. */