@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.
@@ -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;
@@ -66951,6 +67021,66 @@ interface Routes {
66951
67021
  formData: {};
66952
67022
  jsonResponse: {};
66953
67023
  };
67024
+ '/phones/get': {
67025
+ route: '/phones/get';
67026
+ method: 'GET' | 'POST';
67027
+ queryParams: {};
67028
+ jsonBody: {};
67029
+ commonParams: {
67030
+ /** Device ID of the desired phone. */
67031
+ device_id: string;
67032
+ };
67033
+ formData: {};
67034
+ jsonResponse: {
67035
+ /** Represents an app user's mobile phone. */
67036
+ phone: {
67037
+ /** ID of the `phone`. */
67038
+ device_id: string;
67039
+ /** Optional nickname to describe the phone, settable through Seam. */
67040
+ nickname?: string | undefined;
67041
+ /** 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. */
67042
+ display_name: string;
67043
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
67044
+ workspace_id: string;
67045
+ /** Date and time at which the `phone` was created. */
67046
+ created_at: string;
67047
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
67048
+ custom_metadata: Record<string, string | boolean>;
67049
+ /** Errors associated with the `phone`. */
67050
+ errors: Array<{
67051
+ error_code: string;
67052
+ message: string;
67053
+ }>;
67054
+ /** Warnings associated with the `phone`. */
67055
+ warnings: Array<{
67056
+ warning_code: string;
67057
+ message: string;
67058
+ }>;
67059
+ /** Type of phone. */
67060
+ device_type: 'ios_phone' | 'android_phone';
67061
+ /** Properties of the phone. */
67062
+ properties: {
67063
+ /** ASSA ABLOY Credential Service metadata for the phone. */
67064
+ assa_abloy_credential_service_metadata?: {
67065
+ /** Indicates whether the credential service has active endpoints associated with the phone. */
67066
+ has_active_endpoint: boolean;
67067
+ /** Endpoints associated with the phone. */
67068
+ endpoints: Array<{
67069
+ /** ID of the associated endpoint. */
67070
+ endpoint_id: string;
67071
+ /** Indicated whether the endpoint is active. */
67072
+ is_active: boolean;
67073
+ }>;
67074
+ } | undefined;
67075
+ /** Salto Space credential service metadata for the phone. */
67076
+ salto_space_credential_service_metadata?: {
67077
+ /** Indicates whether the credential service has an active associated phone. */
67078
+ has_active_phone: boolean;
67079
+ } | undefined;
67080
+ };
67081
+ };
67082
+ };
67083
+ };
66954
67084
  '/phones/list': {
66955
67085
  route: '/phones/list';
66956
67086
  method: 'GET' | 'POST';
@@ -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;
@@ -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.',