@seamapi/types 1.350.0 → 1.351.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.
@@ -25917,6 +25917,66 @@ export interface Routes {
25917
25917
  formData: {};
25918
25918
  jsonResponse: {};
25919
25919
  };
25920
+ '/phones/get': {
25921
+ route: '/phones/get';
25922
+ method: 'GET' | 'POST';
25923
+ queryParams: {};
25924
+ jsonBody: {};
25925
+ commonParams: {
25926
+ /** Device ID of the desired phone. */
25927
+ device_id: string;
25928
+ };
25929
+ formData: {};
25930
+ jsonResponse: {
25931
+ /** Represents an app user's mobile phone. */
25932
+ phone: {
25933
+ /** ID of the `phone`. */
25934
+ device_id: string;
25935
+ /** Optional nickname to describe the phone, settable through Seam. */
25936
+ nickname?: string | undefined;
25937
+ /** Display name of the phone. Defaults to `nickname` (if it is set) or `properties.appearance.name` otherwise. Enables administrators and users to identify the phone easily, especially when there are numerous phones. */
25938
+ display_name: string;
25939
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
25940
+ workspace_id: string;
25941
+ /** Date and time at which the `phone` was created. */
25942
+ created_at: string;
25943
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
25944
+ custom_metadata: Record<string, string | boolean>;
25945
+ /** Errors associated with the `phone`. */
25946
+ errors: Array<{
25947
+ error_code: string;
25948
+ message: string;
25949
+ }>;
25950
+ /** Warnings associated with the `phone`. */
25951
+ warnings: Array<{
25952
+ warning_code: string;
25953
+ message: string;
25954
+ }>;
25955
+ /** Type of phone. */
25956
+ device_type: 'ios_phone' | 'android_phone';
25957
+ /** Properties of the phone. */
25958
+ properties: {
25959
+ /** ASSA ABLOY Credential Service metadata for the phone. */
25960
+ assa_abloy_credential_service_metadata?: {
25961
+ /** Indicates whether the credential service has active endpoints associated with the phone. */
25962
+ has_active_endpoint: boolean;
25963
+ /** Endpoints associated with the phone. */
25964
+ endpoints: Array<{
25965
+ /** ID of the associated endpoint. */
25966
+ endpoint_id: string;
25967
+ /** Indicated whether the endpoint is active. */
25968
+ is_active: boolean;
25969
+ }>;
25970
+ } | undefined;
25971
+ /** Salto Space credential service metadata for the phone. */
25972
+ salto_space_credential_service_metadata?: {
25973
+ /** Indicates whether the credential service has an active associated phone. */
25974
+ has_active_phone: boolean;
25975
+ } | undefined;
25976
+ };
25977
+ };
25978
+ };
25979
+ };
25920
25980
  '/phones/list': {
25921
25981
  route: '/phones/list';
25922
25982
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.350.0",
3
+ "version": "1.351.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -14,6 +14,7 @@ export const bridge_client_session = z.object({
14
14
  }).describe(`
15
15
  ---
16
16
  route_path: /seam/bridge/v1/bridge_client_sessions
17
+ undocumented: Seam Bridge Client only.
17
18
  ---
18
19
  `)
19
20
 
@@ -23280,6 +23280,61 @@ export default {
23280
23280
  'x-title': 'Deactivate a Phone',
23281
23281
  },
23282
23282
  },
23283
+ '/phones/get': {
23284
+ post: {
23285
+ description:
23286
+ 'Returns a single phone entry matching the provided `device_id`.',
23287
+ operationId: 'phonesGetPost',
23288
+ requestBody: {
23289
+ content: {
23290
+ 'application/json': {
23291
+ schema: {
23292
+ properties: {
23293
+ device_id: {
23294
+ description: 'Device ID of the desired phone.',
23295
+ format: 'uuid',
23296
+ type: 'string',
23297
+ },
23298
+ },
23299
+ required: ['device_id'],
23300
+ type: 'object',
23301
+ },
23302
+ },
23303
+ },
23304
+ },
23305
+ responses: {
23306
+ 200: {
23307
+ content: {
23308
+ 'application/json': {
23309
+ schema: {
23310
+ properties: {
23311
+ ok: { type: 'boolean' },
23312
+ phone: { $ref: '#/components/schemas/phone' },
23313
+ },
23314
+ required: ['phone', 'ok'],
23315
+ type: 'object',
23316
+ },
23317
+ },
23318
+ },
23319
+ description: 'OK',
23320
+ },
23321
+ 400: { description: 'Bad Request' },
23322
+ 401: { description: 'Unauthorized' },
23323
+ },
23324
+ security: [
23325
+ { api_key: [] },
23326
+ { pat_with_workspace: [] },
23327
+ { console_session_with_workspace: [] },
23328
+ ],
23329
+ summary: '/phones/get',
23330
+ tags: ['/phones'],
23331
+ 'x-fern-sdk-group-name': ['phones'],
23332
+ 'x-fern-sdk-method-name': 'get',
23333
+ 'x-fern-sdk-return-value': 'phone',
23334
+ 'x-response-key': 'phone',
23335
+ 'x-title': 'Get Phone',
23336
+ },
23337
+ },
23283
23338
  '/phones/list': {
23284
23339
  post: {
23285
23340
  description:
@@ -23551,6 +23606,7 @@ export default {
23551
23606
  ],
23552
23607
  type: 'object',
23553
23608
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
23609
+ 'x-undocumented': 'Seam Bridge Client only.',
23554
23610
  },
23555
23611
  ok: { type: 'boolean' },
23556
23612
  },
@@ -23577,6 +23633,7 @@ export default {
23577
23633
  'x-fern-sdk-return-value': 'bridge_client_session',
23578
23634
  'x-response-key': 'bridge_client_session',
23579
23635
  'x-title': 'Create a Bridge Client Session',
23636
+ 'x-undocumented': 'Seam Bridge Client only.',
23580
23637
  },
23581
23638
  },
23582
23639
  '/seam/bridge/v1/bridge_client_sessions/get': {
@@ -23629,6 +23686,7 @@ export default {
23629
23686
  ],
23630
23687
  type: 'object',
23631
23688
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
23689
+ 'x-undocumented': 'Seam Bridge Client only.',
23632
23690
  },
23633
23691
  ok: { type: 'boolean' },
23634
23692
  },
@@ -23648,6 +23706,7 @@ export default {
23648
23706
  'x-fern-ignore': true,
23649
23707
  'x-response-key': 'bridge_client_session',
23650
23708
  'x-title': 'Get a Bridge Client Session',
23709
+ 'x-undocumented': 'Seam Bridge Client only.',
23651
23710
  },
23652
23711
  post: {
23653
23712
  description:
@@ -23698,6 +23757,7 @@ export default {
23698
23757
  ],
23699
23758
  type: 'object',
23700
23759
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
23760
+ 'x-undocumented': 'Seam Bridge Client only.',
23701
23761
  },
23702
23762
  ok: { type: 'boolean' },
23703
23763
  },
@@ -23724,6 +23784,7 @@ export default {
23724
23784
  'x-fern-sdk-return-value': 'bridge_client_session',
23725
23785
  'x-response-key': 'bridge_client_session',
23726
23786
  'x-title': 'Get a Bridge Client Session',
23787
+ 'x-undocumented': 'Seam Bridge Client only.',
23727
23788
  },
23728
23789
  },
23729
23790
  '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
@@ -23777,6 +23838,7 @@ export default {
23777
23838
  ],
23778
23839
  type: 'object',
23779
23840
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
23841
+ 'x-undocumented': 'Seam Bridge Client only.',
23780
23842
  },
23781
23843
  ok: { type: 'boolean' },
23782
23844
  },
@@ -23804,6 +23866,7 @@ export default {
23804
23866
  'x-fern-sdk-return-value': 'bridge_client_session',
23805
23867
  'x-response-key': 'bridge_client_session',
23806
23868
  'x-title': 'Regenerate a Bridge Client Session Pairing Code',
23869
+ 'x-undocumented': 'Seam Bridge Client only.',
23807
23870
  },
23808
23871
  },
23809
23872
  '/thermostats/activate_climate_preset': {
@@ -32241,6 +32241,70 @@ export interface Routes {
32241
32241
  formData: {}
32242
32242
  jsonResponse: {}
32243
32243
  }
32244
+ '/phones/get': {
32245
+ route: '/phones/get'
32246
+ method: 'GET' | 'POST'
32247
+ queryParams: {}
32248
+ jsonBody: {}
32249
+ commonParams: {
32250
+ /** Device ID of the desired phone. */
32251
+ device_id: string
32252
+ }
32253
+ formData: {}
32254
+ jsonResponse: {
32255
+ /** Represents an app user's mobile phone. */
32256
+ phone: {
32257
+ /** ID of the `phone`. */
32258
+ device_id: string
32259
+ /** Optional nickname to describe the phone, settable through Seam. */
32260
+ nickname?: string | undefined
32261
+ /** Display name of the phone. Defaults to `nickname` (if it is set) or `properties.appearance.name` otherwise. Enables administrators and users to identify the phone easily, especially when there are numerous phones. */
32262
+ display_name: string
32263
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
32264
+ workspace_id: string
32265
+ /** Date and time at which the `phone` was created. */
32266
+ created_at: string
32267
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
32268
+ custom_metadata: Record<string, string | boolean>
32269
+ /** Errors associated with the `phone`. */
32270
+ errors: Array<{
32271
+ error_code: string
32272
+ message: string
32273
+ }>
32274
+ /** Warnings associated with the `phone`. */
32275
+ warnings: Array<{
32276
+ warning_code: string
32277
+ message: string
32278
+ }>
32279
+ /** Type of phone. */
32280
+ device_type: 'ios_phone' | 'android_phone'
32281
+ /** Properties of the phone. */
32282
+ properties: {
32283
+ /** ASSA ABLOY Credential Service metadata for the phone. */
32284
+ assa_abloy_credential_service_metadata?:
32285
+ | {
32286
+ /** Indicates whether the credential service has active endpoints associated with the phone. */
32287
+ has_active_endpoint: boolean
32288
+ /** Endpoints associated with the phone. */
32289
+ endpoints: Array<{
32290
+ /** ID of the associated endpoint. */
32291
+ endpoint_id: string
32292
+ /** Indicated whether the endpoint is active. */
32293
+ is_active: boolean
32294
+ }>
32295
+ }
32296
+ | undefined
32297
+ /** Salto Space credential service metadata for the phone. */
32298
+ salto_space_credential_service_metadata?:
32299
+ | {
32300
+ /** Indicates whether the credential service has an active associated phone. */
32301
+ has_active_phone: boolean
32302
+ }
32303
+ | undefined
32304
+ }
32305
+ }
32306
+ }
32307
+ }
32244
32308
  '/phones/list': {
32245
32309
  route: '/phones/list'
32246
32310
  method: 'GET' | 'POST'