@seamapi/types 1.350.0 → 1.351.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.
- package/dist/connect.cjs +54 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +130 -0
- package/lib/seam/connect/openapi.d.ts +70 -0
- package/lib/seam/connect/openapi.js +54 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +60 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +55 -0
- package/src/lib/seam/connect/route-types.ts +64 -0
|
@@ -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
|
@@ -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:
|
|
@@ -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'
|