@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.
@@ -35692,6 +35692,76 @@ declare const _default: {
35692
35692
  'x-title': string;
35693
35693
  };
35694
35694
  };
35695
+ '/phones/get': {
35696
+ post: {
35697
+ description: string;
35698
+ operationId: string;
35699
+ requestBody: {
35700
+ content: {
35701
+ 'application/json': {
35702
+ schema: {
35703
+ properties: {
35704
+ device_id: {
35705
+ description: string;
35706
+ format: string;
35707
+ type: string;
35708
+ };
35709
+ };
35710
+ required: string[];
35711
+ type: string;
35712
+ };
35713
+ };
35714
+ };
35715
+ };
35716
+ responses: {
35717
+ 200: {
35718
+ content: {
35719
+ 'application/json': {
35720
+ schema: {
35721
+ properties: {
35722
+ ok: {
35723
+ type: string;
35724
+ };
35725
+ phone: {
35726
+ $ref: string;
35727
+ };
35728
+ };
35729
+ required: string[];
35730
+ type: string;
35731
+ };
35732
+ };
35733
+ };
35734
+ description: string;
35735
+ };
35736
+ 400: {
35737
+ description: string;
35738
+ };
35739
+ 401: {
35740
+ description: string;
35741
+ };
35742
+ };
35743
+ security: ({
35744
+ api_key: never[];
35745
+ pat_with_workspace?: never;
35746
+ console_session_with_workspace?: never;
35747
+ } | {
35748
+ pat_with_workspace: never[];
35749
+ api_key?: never;
35750
+ console_session_with_workspace?: never;
35751
+ } | {
35752
+ console_session_with_workspace: never[];
35753
+ api_key?: never;
35754
+ pat_with_workspace?: never;
35755
+ })[];
35756
+ summary: string;
35757
+ tags: string[];
35758
+ 'x-fern-sdk-group-name': string[];
35759
+ 'x-fern-sdk-method-name': string;
35760
+ 'x-fern-sdk-return-value': string;
35761
+ 'x-response-key': string;
35762
+ 'x-title': string;
35763
+ };
35764
+ };
35695
35765
  '/phones/list': {
35696
35766
  post: {
35697
35767
  description: string;
@@ -35982,6 +36052,7 @@ declare const _default: {
35982
36052
  required: string[];
35983
36053
  type: string;
35984
36054
  'x-route-path': string;
36055
+ 'x-undocumented': string;
35985
36056
  };
35986
36057
  ok: {
35987
36058
  type: string;
@@ -36011,6 +36082,7 @@ declare const _default: {
36011
36082
  'x-fern-sdk-return-value': string;
36012
36083
  'x-response-key': string;
36013
36084
  'x-title': string;
36085
+ 'x-undocumented': string;
36014
36086
  };
36015
36087
  };
36016
36088
  '/seam/bridge/v1/bridge_client_sessions/get': {
@@ -36065,6 +36137,7 @@ declare const _default: {
36065
36137
  required: string[];
36066
36138
  type: string;
36067
36139
  'x-route-path': string;
36140
+ 'x-undocumented': string;
36068
36141
  };
36069
36142
  ok: {
36070
36143
  type: string;
@@ -36092,6 +36165,7 @@ declare const _default: {
36092
36165
  'x-fern-ignore': boolean;
36093
36166
  'x-response-key': string;
36094
36167
  'x-title': string;
36168
+ 'x-undocumented': string;
36095
36169
  };
36096
36170
  post: {
36097
36171
  description: string;
@@ -36144,6 +36218,7 @@ declare const _default: {
36144
36218
  required: string[];
36145
36219
  type: string;
36146
36220
  'x-route-path': string;
36221
+ 'x-undocumented': string;
36147
36222
  };
36148
36223
  ok: {
36149
36224
  type: string;
@@ -36173,6 +36248,7 @@ declare const _default: {
36173
36248
  'x-fern-sdk-return-value': string;
36174
36249
  'x-response-key': string;
36175
36250
  'x-title': string;
36251
+ 'x-undocumented': string;
36176
36252
  };
36177
36253
  };
36178
36254
  '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
@@ -36227,6 +36303,7 @@ declare const _default: {
36227
36303
  required: string[];
36228
36304
  type: string;
36229
36305
  'x-route-path': string;
36306
+ 'x-undocumented': string;
36230
36307
  };
36231
36308
  ok: {
36232
36309
  type: string;
@@ -36256,6 +36333,7 @@ declare const _default: {
36256
36333
  'x-fern-sdk-return-value': string;
36257
36334
  'x-response-key': string;
36258
36335
  'x-title': string;
36336
+ 'x-undocumented': string;
36259
36337
  };
36260
36338
  };
36261
36339
  '/thermostats/activate_climate_preset': {
@@ -66951,6 +67029,66 @@ interface Routes {
66951
67029
  formData: {};
66952
67030
  jsonResponse: {};
66953
67031
  };
67032
+ '/phones/get': {
67033
+ route: '/phones/get';
67034
+ method: 'GET' | 'POST';
67035
+ queryParams: {};
67036
+ jsonBody: {};
67037
+ commonParams: {
67038
+ /** Device ID of the desired phone. */
67039
+ device_id: string;
67040
+ };
67041
+ formData: {};
67042
+ jsonResponse: {
67043
+ /** Represents an app user's mobile phone. */
67044
+ phone: {
67045
+ /** ID of the `phone`. */
67046
+ device_id: string;
67047
+ /** Optional nickname to describe the phone, settable through Seam. */
67048
+ nickname?: string | undefined;
67049
+ /** 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. */
67050
+ display_name: string;
67051
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
67052
+ workspace_id: string;
67053
+ /** Date and time at which the `phone` was created. */
67054
+ created_at: string;
67055
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
67056
+ custom_metadata: Record<string, string | boolean>;
67057
+ /** Errors associated with the `phone`. */
67058
+ errors: Array<{
67059
+ error_code: string;
67060
+ message: string;
67061
+ }>;
67062
+ /** Warnings associated with the `phone`. */
67063
+ warnings: Array<{
67064
+ warning_code: string;
67065
+ message: string;
67066
+ }>;
67067
+ /** Type of phone. */
67068
+ device_type: 'ios_phone' | 'android_phone';
67069
+ /** Properties of the phone. */
67070
+ properties: {
67071
+ /** ASSA ABLOY Credential Service metadata for the phone. */
67072
+ assa_abloy_credential_service_metadata?: {
67073
+ /** Indicates whether the credential service has active endpoints associated with the phone. */
67074
+ has_active_endpoint: boolean;
67075
+ /** Endpoints associated with the phone. */
67076
+ endpoints: Array<{
67077
+ /** ID of the associated endpoint. */
67078
+ endpoint_id: string;
67079
+ /** Indicated whether the endpoint is active. */
67080
+ is_active: boolean;
67081
+ }>;
67082
+ } | undefined;
67083
+ /** Salto Space credential service metadata for the phone. */
67084
+ salto_space_credential_service_metadata?: {
67085
+ /** Indicates whether the credential service has an active associated phone. */
67086
+ has_active_phone: boolean;
67087
+ } | undefined;
67088
+ };
67089
+ };
67090
+ };
67091
+ };
66954
67092
  '/phones/list': {
66955
67093
  route: '/phones/list';
66956
67094
  method: 'GET' | 'POST';
@@ -13,6 +13,7 @@ export const bridge_client_session = z.object({
13
13
  }).describe(`
14
14
  ---
15
15
  route_path: /seam/bridge/v1/bridge_client_sessions
16
+ undocumented: Seam Bridge Client only.
16
17
  ---
17
18
  `);
18
19
  //# sourceMappingURL=bridge_client_session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge_client_session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/bridges/bridge_client_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3C,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAClC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
1
+ {"version":3,"file":"bridge_client_session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/bridges/bridge_client_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3C,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAClC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -19091,6 +19091,76 @@ declare const _default: {
19091
19091
  'x-title': string;
19092
19092
  };
19093
19093
  };
19094
+ '/phones/get': {
19095
+ post: {
19096
+ description: string;
19097
+ operationId: string;
19098
+ requestBody: {
19099
+ content: {
19100
+ 'application/json': {
19101
+ schema: {
19102
+ properties: {
19103
+ device_id: {
19104
+ description: string;
19105
+ format: string;
19106
+ type: string;
19107
+ };
19108
+ };
19109
+ required: string[];
19110
+ type: string;
19111
+ };
19112
+ };
19113
+ };
19114
+ };
19115
+ responses: {
19116
+ 200: {
19117
+ content: {
19118
+ 'application/json': {
19119
+ schema: {
19120
+ properties: {
19121
+ ok: {
19122
+ type: string;
19123
+ };
19124
+ phone: {
19125
+ $ref: string;
19126
+ };
19127
+ };
19128
+ required: string[];
19129
+ type: string;
19130
+ };
19131
+ };
19132
+ };
19133
+ description: string;
19134
+ };
19135
+ 400: {
19136
+ description: string;
19137
+ };
19138
+ 401: {
19139
+ description: string;
19140
+ };
19141
+ };
19142
+ security: ({
19143
+ api_key: never[];
19144
+ pat_with_workspace?: never;
19145
+ console_session_with_workspace?: never;
19146
+ } | {
19147
+ pat_with_workspace: never[];
19148
+ api_key?: never;
19149
+ console_session_with_workspace?: never;
19150
+ } | {
19151
+ console_session_with_workspace: never[];
19152
+ api_key?: never;
19153
+ pat_with_workspace?: never;
19154
+ })[];
19155
+ summary: string;
19156
+ tags: string[];
19157
+ 'x-fern-sdk-group-name': string[];
19158
+ 'x-fern-sdk-method-name': string;
19159
+ 'x-fern-sdk-return-value': string;
19160
+ 'x-response-key': string;
19161
+ 'x-title': string;
19162
+ };
19163
+ };
19094
19164
  '/phones/list': {
19095
19165
  post: {
19096
19166
  description: string;
@@ -19381,6 +19451,7 @@ declare const _default: {
19381
19451
  required: string[];
19382
19452
  type: string;
19383
19453
  'x-route-path': string;
19454
+ 'x-undocumented': string;
19384
19455
  };
19385
19456
  ok: {
19386
19457
  type: string;
@@ -19410,6 +19481,7 @@ declare const _default: {
19410
19481
  'x-fern-sdk-return-value': string;
19411
19482
  'x-response-key': string;
19412
19483
  'x-title': string;
19484
+ 'x-undocumented': string;
19413
19485
  };
19414
19486
  };
19415
19487
  '/seam/bridge/v1/bridge_client_sessions/get': {
@@ -19464,6 +19536,7 @@ declare const _default: {
19464
19536
  required: string[];
19465
19537
  type: string;
19466
19538
  'x-route-path': string;
19539
+ 'x-undocumented': string;
19467
19540
  };
19468
19541
  ok: {
19469
19542
  type: string;
@@ -19491,6 +19564,7 @@ declare const _default: {
19491
19564
  'x-fern-ignore': boolean;
19492
19565
  'x-response-key': string;
19493
19566
  'x-title': string;
19567
+ 'x-undocumented': string;
19494
19568
  };
19495
19569
  post: {
19496
19570
  description: string;
@@ -19543,6 +19617,7 @@ declare const _default: {
19543
19617
  required: string[];
19544
19618
  type: string;
19545
19619
  'x-route-path': string;
19620
+ 'x-undocumented': string;
19546
19621
  };
19547
19622
  ok: {
19548
19623
  type: string;
@@ -19572,6 +19647,7 @@ declare const _default: {
19572
19647
  'x-fern-sdk-return-value': string;
19573
19648
  'x-response-key': string;
19574
19649
  'x-title': string;
19650
+ 'x-undocumented': string;
19575
19651
  };
19576
19652
  };
19577
19653
  '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
@@ -19626,6 +19702,7 @@ declare const _default: {
19626
19702
  required: string[];
19627
19703
  type: string;
19628
19704
  'x-route-path': string;
19705
+ 'x-undocumented': string;
19629
19706
  };
19630
19707
  ok: {
19631
19708
  type: string;
@@ -19655,6 +19732,7 @@ declare const _default: {
19655
19732
  'x-fern-sdk-return-value': string;
19656
19733
  'x-response-key': string;
19657
19734
  'x-title': string;
19735
+ 'x-undocumented': string;
19658
19736
  };
19659
19737
  };
19660
19738
  '/thermostats/activate_climate_preset': {
@@ -22056,6 +22056,60 @@ export default {
22056
22056
  'x-title': 'Deactivate a Phone',
22057
22057
  },
22058
22058
  },
22059
+ '/phones/get': {
22060
+ post: {
22061
+ description: 'Returns a single phone entry matching the provided `device_id`.',
22062
+ operationId: 'phonesGetPost',
22063
+ requestBody: {
22064
+ content: {
22065
+ 'application/json': {
22066
+ schema: {
22067
+ properties: {
22068
+ device_id: {
22069
+ description: 'Device ID of the desired phone.',
22070
+ format: 'uuid',
22071
+ type: 'string',
22072
+ },
22073
+ },
22074
+ required: ['device_id'],
22075
+ type: 'object',
22076
+ },
22077
+ },
22078
+ },
22079
+ },
22080
+ responses: {
22081
+ 200: {
22082
+ content: {
22083
+ 'application/json': {
22084
+ schema: {
22085
+ properties: {
22086
+ ok: { type: 'boolean' },
22087
+ phone: { $ref: '#/components/schemas/phone' },
22088
+ },
22089
+ required: ['phone', 'ok'],
22090
+ type: 'object',
22091
+ },
22092
+ },
22093
+ },
22094
+ description: 'OK',
22095
+ },
22096
+ 400: { description: 'Bad Request' },
22097
+ 401: { description: 'Unauthorized' },
22098
+ },
22099
+ security: [
22100
+ { api_key: [] },
22101
+ { pat_with_workspace: [] },
22102
+ { console_session_with_workspace: [] },
22103
+ ],
22104
+ summary: '/phones/get',
22105
+ tags: ['/phones'],
22106
+ 'x-fern-sdk-group-name': ['phones'],
22107
+ 'x-fern-sdk-method-name': 'get',
22108
+ 'x-fern-sdk-return-value': 'phone',
22109
+ 'x-response-key': 'phone',
22110
+ 'x-title': 'Get Phone',
22111
+ },
22112
+ },
22059
22113
  '/phones/list': {
22060
22114
  post: {
22061
22115
  description: 'Returns a list of all phones. To filter the list of returned phones by a specific owner user identity or credential, include the `owner_user_identity_id` or `acs_credential_id`, respectively, in the request body.',
@@ -22309,6 +22363,7 @@ export default {
22309
22363
  ],
22310
22364
  type: 'object',
22311
22365
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
22366
+ 'x-undocumented': 'Seam Bridge Client only.',
22312
22367
  },
22313
22368
  ok: { type: 'boolean' },
22314
22369
  },
@@ -22335,6 +22390,7 @@ export default {
22335
22390
  'x-fern-sdk-return-value': 'bridge_client_session',
22336
22391
  'x-response-key': 'bridge_client_session',
22337
22392
  'x-title': 'Create a Bridge Client Session',
22393
+ 'x-undocumented': 'Seam Bridge Client only.',
22338
22394
  },
22339
22395
  },
22340
22396
  '/seam/bridge/v1/bridge_client_sessions/get': {
@@ -22386,6 +22442,7 @@ export default {
22386
22442
  ],
22387
22443
  type: 'object',
22388
22444
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
22445
+ 'x-undocumented': 'Seam Bridge Client only.',
22389
22446
  },
22390
22447
  ok: { type: 'boolean' },
22391
22448
  },
@@ -22405,6 +22462,7 @@ export default {
22405
22462
  'x-fern-ignore': true,
22406
22463
  'x-response-key': 'bridge_client_session',
22407
22464
  'x-title': 'Get a Bridge Client Session',
22465
+ 'x-undocumented': 'Seam Bridge Client only.',
22408
22466
  },
22409
22467
  post: {
22410
22468
  description: 'Returns the bridge client session associated with the session token used.',
@@ -22454,6 +22512,7 @@ export default {
22454
22512
  ],
22455
22513
  type: 'object',
22456
22514
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
22515
+ 'x-undocumented': 'Seam Bridge Client only.',
22457
22516
  },
22458
22517
  ok: { type: 'boolean' },
22459
22518
  },
@@ -22480,6 +22539,7 @@ export default {
22480
22539
  'x-fern-sdk-return-value': 'bridge_client_session',
22481
22540
  'x-response-key': 'bridge_client_session',
22482
22541
  'x-title': 'Get a Bridge Client Session',
22542
+ 'x-undocumented': 'Seam Bridge Client only.',
22483
22543
  },
22484
22544
  },
22485
22545
  '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
@@ -22531,6 +22591,7 @@ export default {
22531
22591
  ],
22532
22592
  type: 'object',
22533
22593
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
22594
+ 'x-undocumented': 'Seam Bridge Client only.',
22534
22595
  },
22535
22596
  ok: { type: 'boolean' },
22536
22597
  },
@@ -22557,6 +22618,7 @@ export default {
22557
22618
  'x-fern-sdk-return-value': 'bridge_client_session',
22558
22619
  'x-response-key': 'bridge_client_session',
22559
22620
  'x-title': 'Regenerate a Bridge Client Session Pairing Code',
22621
+ 'x-undocumented': 'Seam Bridge Client only.',
22560
22622
  },
22561
22623
  },
22562
22624
  '/thermostats/activate_climate_preset': {