@seamapi/types 1.401.0 → 1.403.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 +652 -12
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +839 -69
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/phones/index.d.ts +2 -0
- package/lib/seam/connect/models/phones/index.js +3 -0
- package/lib/seam/connect/models/phones/index.js.map +1 -0
- package/lib/seam/connect/models/phones/phone-registration.d.ts +18 -0
- package/lib/seam/connect/models/phones/phone-registration.js +13 -0
- package/lib/seam/connect/models/phones/phone-registration.js.map +1 -0
- package/lib/seam/connect/models/phones/phone-session.d.ts +2060 -0
- package/lib/seam/connect/models/phones/phone-session.js +21 -0
- package/lib/seam/connect/models/phones/phone-session.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +561 -0
- package/lib/seam/connect/openapi.js +648 -9
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +215 -6
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +2 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/phones/index.ts +2 -0
- package/src/lib/seam/connect/models/phones/phone-registration.ts +15 -0
- package/src/lib/seam/connect/models/phones/phone-session.ts +27 -0
- package/src/lib/seam/connect/openapi.ts +715 -9
- package/src/lib/seam/connect/route-types.ts +269 -6
|
@@ -10257,8 +10257,10 @@ export interface Routes {
|
|
|
10257
10257
|
method: 'PATCH' | 'POST';
|
|
10258
10258
|
queryParams: {};
|
|
10259
10259
|
jsonBody: {
|
|
10260
|
-
/** ID of the access system user from which you want to unassign a credential. */
|
|
10261
|
-
acs_user_id
|
|
10260
|
+
/** ID of the access system user from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id. */
|
|
10261
|
+
acs_user_id?: string | undefined;
|
|
10262
|
+
/** ID of the user identity from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id. */
|
|
10263
|
+
user_identity_id?: string | undefined;
|
|
10262
10264
|
/** ID of the credential that you want to unassign from an access system user. */
|
|
10263
10265
|
acs_credential_id: string;
|
|
10264
10266
|
};
|
|
@@ -14394,8 +14396,10 @@ export interface Routes {
|
|
|
14394
14396
|
jsonBody: {
|
|
14395
14397
|
/** ID of the entrance to which you want to grant an access system user access. */
|
|
14396
14398
|
acs_entrance_id: string;
|
|
14397
|
-
/** ID of the
|
|
14398
|
-
|
|
14399
|
+
/** ID of the user identity to whom you want to grant access to an entrance. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the access group membership belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created. */
|
|
14400
|
+
user_identity_id?: string | undefined;
|
|
14401
|
+
/** ID of the access system user to whom you want to grant access to an entrance. You can only provide one of acs_user_id or user_identity_id. */
|
|
14402
|
+
acs_user_id?: string | undefined;
|
|
14399
14403
|
};
|
|
14400
14404
|
commonParams: {};
|
|
14401
14405
|
formData: {};
|
|
@@ -37432,6 +37436,211 @@ export interface Routes {
|
|
|
37432
37436
|
}>;
|
|
37433
37437
|
};
|
|
37434
37438
|
};
|
|
37439
|
+
'/seam/mobile_sdk/v1/phone_sessions/get_or_create': {
|
|
37440
|
+
route: '/seam/mobile_sdk/v1/phone_sessions/get_or_create';
|
|
37441
|
+
method: 'POST';
|
|
37442
|
+
queryParams: {};
|
|
37443
|
+
jsonBody: {
|
|
37444
|
+
custom_sdk_installation_id: string;
|
|
37445
|
+
phone_os: 'ios' | 'android';
|
|
37446
|
+
phone_device_metadata?: {
|
|
37447
|
+
os_version?: string | undefined;
|
|
37448
|
+
manufacturer?: string | undefined;
|
|
37449
|
+
model?: string | undefined;
|
|
37450
|
+
} | undefined;
|
|
37451
|
+
};
|
|
37452
|
+
commonParams: {};
|
|
37453
|
+
formData: {};
|
|
37454
|
+
jsonResponse: {
|
|
37455
|
+
/** */
|
|
37456
|
+
phone_session: {
|
|
37457
|
+
provider_sessions: Array<{
|
|
37458
|
+
/** */
|
|
37459
|
+
phone_registration: {
|
|
37460
|
+
phone_registration_id: string;
|
|
37461
|
+
provider_state?: any;
|
|
37462
|
+
provider_name: string | null;
|
|
37463
|
+
is_being_activated: boolean;
|
|
37464
|
+
};
|
|
37465
|
+
acs_credentials: Array<{
|
|
37466
|
+
/** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37467
|
+
acs_credential_id: string;
|
|
37468
|
+
/** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
|
|
37469
|
+
acs_user_id?: string | undefined;
|
|
37470
|
+
acs_credential_pool_id?: string | undefined;
|
|
37471
|
+
/** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37472
|
+
acs_system_id: string;
|
|
37473
|
+
/** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37474
|
+
parent_acs_credential_id?: string | undefined;
|
|
37475
|
+
/** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
|
|
37476
|
+
display_name: string;
|
|
37477
|
+
/** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37478
|
+
code?: (string | undefined) | null;
|
|
37479
|
+
/** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
|
|
37480
|
+
is_one_time_use?: boolean | undefined;
|
|
37481
|
+
/** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37482
|
+
card_number?: (string | undefined) | null;
|
|
37483
|
+
/** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
|
|
37484
|
+
is_issued?: boolean | undefined;
|
|
37485
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
|
|
37486
|
+
issued_at?: (string | undefined) | null;
|
|
37487
|
+
/** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
|
|
37488
|
+
access_method: 'code' | 'card' | 'mobile_key';
|
|
37489
|
+
/** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
|
|
37490
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access') | undefined;
|
|
37491
|
+
/** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
|
|
37492
|
+
external_type_display_name?: string | undefined;
|
|
37493
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
|
|
37494
|
+
created_at: string;
|
|
37495
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37496
|
+
workspace_id: string;
|
|
37497
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
37498
|
+
starts_at?: string | undefined;
|
|
37499
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
37500
|
+
ends_at?: string | undefined;
|
|
37501
|
+
/** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37502
|
+
errors: Array<{
|
|
37503
|
+
error_code: string;
|
|
37504
|
+
message: string;
|
|
37505
|
+
}>;
|
|
37506
|
+
/** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37507
|
+
warnings: Array<{
|
|
37508
|
+
/** Date and time at which Seam created the warning. */
|
|
37509
|
+
created_at: string;
|
|
37510
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37511
|
+
message: string;
|
|
37512
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37513
|
+
warning_code: 'waiting_to_be_issued';
|
|
37514
|
+
} | {
|
|
37515
|
+
/** Date and time at which Seam created the warning. */
|
|
37516
|
+
created_at: string;
|
|
37517
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37518
|
+
message: string;
|
|
37519
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37520
|
+
warning_code: 'schedule_externally_modified';
|
|
37521
|
+
} | {
|
|
37522
|
+
/** Date and time at which Seam created the warning. */
|
|
37523
|
+
created_at: string;
|
|
37524
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37525
|
+
message: string;
|
|
37526
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37527
|
+
warning_code: 'schedule_modified';
|
|
37528
|
+
} | {
|
|
37529
|
+
/** Date and time at which Seam created the warning. */
|
|
37530
|
+
created_at: string;
|
|
37531
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37532
|
+
message: string;
|
|
37533
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37534
|
+
warning_code: 'being_deleted';
|
|
37535
|
+
} | {
|
|
37536
|
+
/** Date and time at which Seam created the warning. */
|
|
37537
|
+
created_at: string;
|
|
37538
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37539
|
+
message: string;
|
|
37540
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37541
|
+
warning_code: 'unknown_issue_with_acs_credential';
|
|
37542
|
+
} | {
|
|
37543
|
+
/** Date and time at which Seam created the warning. */
|
|
37544
|
+
created_at: string;
|
|
37545
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37546
|
+
message: string;
|
|
37547
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37548
|
+
warning_code: 'needs_to_be_reissued';
|
|
37549
|
+
}>;
|
|
37550
|
+
/** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
|
|
37551
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
37552
|
+
/** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
|
|
37553
|
+
is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined;
|
|
37554
|
+
/** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
|
|
37555
|
+
latest_desired_state_synced_with_provider_at?: (string | null) | undefined;
|
|
37556
|
+
/** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37557
|
+
visionline_metadata?: {
|
|
37558
|
+
card_function_type: 'guest' | 'staff';
|
|
37559
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
37560
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
37561
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
37562
|
+
is_valid?: boolean | undefined;
|
|
37563
|
+
auto_join?: boolean | undefined;
|
|
37564
|
+
card_id?: string | undefined;
|
|
37565
|
+
credential_id?: string | undefined;
|
|
37566
|
+
} | undefined;
|
|
37567
|
+
/** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
37568
|
+
assa_abloy_vostio_metadata?: {
|
|
37569
|
+
auto_join?: boolean | undefined;
|
|
37570
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
37571
|
+
key_id?: string | undefined;
|
|
37572
|
+
key_issuing_request_id?: string | undefined;
|
|
37573
|
+
door_names?: string[] | undefined;
|
|
37574
|
+
endpoint_id?: string | undefined;
|
|
37575
|
+
} | undefined;
|
|
37576
|
+
is_managed: true;
|
|
37577
|
+
acs_entrances: Array<{
|
|
37578
|
+
/** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37579
|
+
acs_system_id: string;
|
|
37580
|
+
/** ID of the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37581
|
+
acs_entrance_id: string;
|
|
37582
|
+
/** Date and time at which the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) was created. */
|
|
37583
|
+
created_at: string;
|
|
37584
|
+
/** Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37585
|
+
display_name: string;
|
|
37586
|
+
/** Errors associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37587
|
+
errors: Array<{
|
|
37588
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
37589
|
+
error_code: string;
|
|
37590
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
37591
|
+
message: string;
|
|
37592
|
+
}>;
|
|
37593
|
+
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37594
|
+
latch_metadata?: {
|
|
37595
|
+
accessibility_type: string;
|
|
37596
|
+
door_name: string;
|
|
37597
|
+
door_type: string;
|
|
37598
|
+
is_connected: boolean;
|
|
37599
|
+
} | undefined;
|
|
37600
|
+
/** Visionline-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37601
|
+
visionline_metadata?: {
|
|
37602
|
+
door_name: string;
|
|
37603
|
+
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
37604
|
+
profiles?: Array<{
|
|
37605
|
+
visionline_door_profile_id: string;
|
|
37606
|
+
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
37607
|
+
}> | undefined;
|
|
37608
|
+
} | undefined;
|
|
37609
|
+
/** Salto KS-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37610
|
+
salto_ks_metadata?: {
|
|
37611
|
+
door_name: string;
|
|
37612
|
+
locked_state: string;
|
|
37613
|
+
lock_type: string;
|
|
37614
|
+
online?: boolean | undefined;
|
|
37615
|
+
battery_level: string;
|
|
37616
|
+
left_open_alarm?: boolean | undefined;
|
|
37617
|
+
intrusion_alarm?: boolean | undefined;
|
|
37618
|
+
privacy_mode?: boolean | undefined;
|
|
37619
|
+
} | undefined;
|
|
37620
|
+
/** dormakaba Community-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37621
|
+
dormakaba_community_metadata?: {
|
|
37622
|
+
access_point_name: string;
|
|
37623
|
+
} | undefined;
|
|
37624
|
+
/** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37625
|
+
assa_abloy_vostio_metadata?: {
|
|
37626
|
+
door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
|
|
37627
|
+
door_name: string;
|
|
37628
|
+
door_number?: number | undefined;
|
|
37629
|
+
stand_open?: boolean | undefined;
|
|
37630
|
+
pms_id?: string | undefined;
|
|
37631
|
+
} | undefined;
|
|
37632
|
+
/** Salto Space-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
37633
|
+
salto_space_metadata?: {
|
|
37634
|
+
door_name: string;
|
|
37635
|
+
ext_door_id: string;
|
|
37636
|
+
door_description?: string | undefined;
|
|
37637
|
+
} | undefined;
|
|
37638
|
+
}>;
|
|
37639
|
+
}>;
|
|
37640
|
+
}>;
|
|
37641
|
+
};
|
|
37642
|
+
};
|
|
37643
|
+
};
|
|
37435
37644
|
'/thermostats/activate_climate_preset': {
|
|
37436
37645
|
route: '/thermostats/activate_climate_preset';
|
|
37437
37646
|
method: 'POST';
|
|
@@ -39711,7 +39920,7 @@ export interface Routes {
|
|
|
39711
39920
|
/** ID of the thermostat device for which you want to create a daily program. */
|
|
39712
39921
|
device_id: string;
|
|
39713
39922
|
/** User-friendly name to identify the thermostat daily program. */
|
|
39714
|
-
name
|
|
39923
|
+
name: string;
|
|
39715
39924
|
/** Array of thermostat daily program periods. */
|
|
39716
39925
|
periods: Array<{
|
|
39717
39926
|
/** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
@@ -39765,7 +39974,7 @@ export interface Routes {
|
|
|
39765
39974
|
/** ID of the thermostat daily program that you want to update. */
|
|
39766
39975
|
thermostat_daily_program_id: string;
|
|
39767
39976
|
/** User-friendly name to identify the thermostat daily program that you want to update. */
|
|
39768
|
-
name
|
|
39977
|
+
name: string;
|
|
39769
39978
|
/** Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program. */
|
|
39770
39979
|
periods: Array<{
|
|
39771
39980
|
/** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.403.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.24.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.43.2",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -72,6 +72,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
72
72
|
'yale',
|
|
73
73
|
'nuki',
|
|
74
74
|
'salto',
|
|
75
|
+
'salto_space',
|
|
75
76
|
'controlbyweb',
|
|
76
77
|
'minut',
|
|
77
78
|
'my_2n',
|
|
@@ -92,6 +93,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
92
93
|
'latch',
|
|
93
94
|
'akiles',
|
|
94
95
|
'sensi',
|
|
96
|
+
'assa_abloy_vostio',
|
|
95
97
|
],
|
|
96
98
|
|
|
97
99
|
consumer_smartlocks: [
|
|
@@ -119,7 +121,6 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
119
121
|
'salto_ks',
|
|
120
122
|
'assa_abloy_vostio',
|
|
121
123
|
'salto_space',
|
|
122
|
-
'assa_abloy_vostio',
|
|
123
124
|
],
|
|
124
125
|
|
|
125
126
|
internal_beta: ALL_DEVICE_PROVIDERS,
|
|
@@ -15,6 +15,7 @@ export * from './locations/index.js'
|
|
|
15
15
|
export * from './noise-sensors/index.js'
|
|
16
16
|
export * from './pagination.js'
|
|
17
17
|
export * from './phone-number.js'
|
|
18
|
+
export * from './phones/index.js'
|
|
18
19
|
export * from './thermostats/index.js'
|
|
19
20
|
export * from './user-identities/index.js'
|
|
20
21
|
export * from './webhooks/index.js'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const phone_registration = z.object({
|
|
4
|
+
phone_registration_id: z.string(),
|
|
5
|
+
provider_state: z.any(),
|
|
6
|
+
provider_name: z.string().nullable(),
|
|
7
|
+
is_being_activated: z.boolean(),
|
|
8
|
+
}).describe(`
|
|
9
|
+
---
|
|
10
|
+
route_path: /seam/mobile_sdk/v1/phone_sessions
|
|
11
|
+
undocumented: Seam Mobile SDK only.
|
|
12
|
+
---
|
|
13
|
+
`)
|
|
14
|
+
|
|
15
|
+
export type PhoneRegistration = z.infer<typeof phone_registration>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { acs_credential } from '../acs/acs-credential.js'
|
|
4
|
+
import { acs_entrance } from '../acs/acs-entrance.js'
|
|
5
|
+
import { phone_registration } from './phone-registration.js'
|
|
6
|
+
|
|
7
|
+
const phone_provider_session = z.object({
|
|
8
|
+
phone_registration,
|
|
9
|
+
acs_credentials: acs_credential
|
|
10
|
+
.extend({
|
|
11
|
+
acs_entrances: acs_entrance.array(),
|
|
12
|
+
})
|
|
13
|
+
.array(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export const phone_session = z.object({
|
|
17
|
+
provider_sessions: phone_provider_session.array(),
|
|
18
|
+
}).describe(`
|
|
19
|
+
---
|
|
20
|
+
route_path: /seam/mobile_sdk/v1/phone_sessions
|
|
21
|
+
undocumented: Seam Mobile SDK only.
|
|
22
|
+
---
|
|
23
|
+
`)
|
|
24
|
+
|
|
25
|
+
export type PhoneProviderSession = z.infer<typeof phone_provider_session>
|
|
26
|
+
|
|
27
|
+
export type PhoneSession = z.infer<typeof phone_session>
|