@seamapi/types 1.188.0 → 1.189.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.
@@ -5576,6 +5576,64 @@ declare const device: z.ZodObject<{
5576
5576
  }>;
5577
5577
  type Device = z.infer<typeof device>;
5578
5578
 
5579
+ declare const DEVICE_PROVIDERS: {
5580
+ readonly AKUVOX: "akuvox";
5581
+ readonly AUGUST: "august";
5582
+ readonly AVIGILON_ALTA: "avigilon_alta";
5583
+ readonly BRIVO: "brivo";
5584
+ readonly BUTTERFLYMX: "butterflymx";
5585
+ readonly SCHLAGE: "schlage";
5586
+ readonly SMARTTHINGS: "smartthings";
5587
+ readonly YALE: "yale";
5588
+ readonly GENIE: "genie";
5589
+ readonly DOORKING: "doorking";
5590
+ readonly SALTO: "salto";
5591
+ readonly LOCKLY: "lockly";
5592
+ readonly TTLOCK: "ttlock";
5593
+ readonly LINEAR: "linear";
5594
+ readonly NOISEAWARE: "noiseaware";
5595
+ readonly NUKI: "nuki";
5596
+ readonly SEAM_RELAY_ADMIN: "seam_relay_admin";
5597
+ readonly IGLOO: "igloo";
5598
+ readonly KWIKSET: "kwikset";
5599
+ readonly MINUT: "minut";
5600
+ readonly MY_2N: "my_2n";
5601
+ readonly CONTROLBYWEB: "controlbyweb";
5602
+ readonly NEST: "nest";
5603
+ readonly IGLOOHOME: "igloohome";
5604
+ readonly ECOBEE: "ecobee";
5605
+ readonly HUBITAT: "hubitat";
5606
+ readonly FOUR_SUITES: "four_suites";
5607
+ readonly DORMAKABA_ORACODE: "dormakaba_oracode";
5608
+ readonly PTI: "pti";
5609
+ readonly WYZE: "wyze";
5610
+ readonly SEAM_PASSPORT: "seam_passport";
5611
+ readonly VISIONLINE: "visionline";
5612
+ readonly ASSA_ABLOY_CREDENTIAL_SERVICE: "assa_abloy_credential_service";
5613
+ readonly SEAM_BRIDGE: "seam_bridge";
5614
+ readonly TEDEE: "tedee";
5615
+ readonly HONEYWELL_RESIDEO: "honeywell_resideo";
5616
+ readonly LATCH: "latch";
5617
+ };
5618
+ type DeviceProviderName = (typeof DEVICE_PROVIDERS)[keyof typeof DEVICE_PROVIDERS];
5619
+ declare const device_provider: z.ZodObject<{
5620
+ device_provider_name: z.ZodEnum<[DeviceProviderName, ...DeviceProviderName[]]>;
5621
+ display_name: z.ZodString;
5622
+ image_url: z.ZodString;
5623
+ provider_categories: z.ZodArray<z.ZodEnum<["stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta", ...("stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta")[]]>, "many">;
5624
+ }, "strip", z.ZodTypeAny, {
5625
+ display_name: string;
5626
+ image_url: string;
5627
+ device_provider_name: "assa_abloy_credential_service" | "doorking" | "akuvox" | "august" | "avigilon_alta" | "brivo" | "butterflymx" | "schlage" | "smartthings" | "yale" | "genie" | "salto" | "lockly" | "ttlock" | "linear" | "noiseaware" | "nuki" | "seam_relay_admin" | "igloo" | "kwikset" | "minut" | "my_2n" | "controlbyweb" | "nest" | "igloohome" | "ecobee" | "hubitat" | "four_suites" | "dormakaba_oracode" | "pti" | "wyze" | "seam_passport" | "visionline" | "seam_bridge" | "tedee" | "honeywell_resideo" | "latch";
5628
+ provider_categories: ("stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta")[];
5629
+ }, {
5630
+ display_name: string;
5631
+ image_url: string;
5632
+ device_provider_name: "assa_abloy_credential_service" | "doorking" | "akuvox" | "august" | "avigilon_alta" | "brivo" | "butterflymx" | "schlage" | "smartthings" | "yale" | "genie" | "salto" | "lockly" | "ttlock" | "linear" | "noiseaware" | "nuki" | "seam_relay_admin" | "igloo" | "kwikset" | "minut" | "my_2n" | "controlbyweb" | "nest" | "igloohome" | "ecobee" | "hubitat" | "four_suites" | "dormakaba_oracode" | "pti" | "wyze" | "seam_passport" | "visionline" | "seam_bridge" | "tedee" | "honeywell_resideo" | "latch";
5633
+ provider_categories: ("stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta")[];
5634
+ }>;
5635
+ type DeviceProvider = z.infer<typeof device_provider>;
5636
+
5579
5637
  declare const unmanaged_device: z.ZodObject<{
5580
5638
  device_id: z.ZodString;
5581
5639
  created_at: z.ZodString;
@@ -7158,6 +7216,7 @@ declare const schemas_connect_webview: typeof connect_webview;
7158
7216
  declare const schemas_connected_account: typeof connected_account;
7159
7217
  declare const schemas_custom_metadata: typeof custom_metadata;
7160
7218
  declare const schemas_device: typeof device;
7219
+ declare const schemas_device_provider: typeof device_provider;
7161
7220
  declare const schemas_seam_event: typeof seam_event;
7162
7221
  declare const schemas_unmanaged_access_code: typeof unmanaged_access_code;
7163
7222
  declare const schemas_unmanaged_device: typeof unmanaged_device;
@@ -7165,7 +7224,7 @@ declare const schemas_user_identity: typeof user_identity;
7165
7224
  declare const schemas_webhook: typeof webhook;
7166
7225
  declare const schemas_workspace: typeof workspace;
7167
7226
  declare namespace schemas {
7168
- export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_client_session as client_session, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_device as device, schemas_seam_event as seam_event, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
7227
+ export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_client_session as client_session, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_device as device, schemas_device_provider as device_provider, schemas_seam_event as seam_event, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
7169
7228
  }
7170
7229
 
7171
7230
  declare const _default: {
@@ -42163,4 +42222,4 @@ type RouteRequestParams<Path extends keyof Routes> = Routes[Path]['queryParams']
42163
42222
 
42164
42223
  declare const routes: {};
42165
42224
 
42166
- export { type AccessCode, type AcsAccessGroup, type AcsCredential, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type ClientSession, type ConnectWebview, type ConnectedAccount, type CustomMetadata, type Device, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
42225
+ export { type AccessCode, type AcsAccessGroup, type AcsCredential, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type ClientSession, type ConnectWebview, type ConnectedAccount, type CustomMetadata, type Device, type DeviceProvider, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
@@ -1 +1 @@
1
- export type { AccessCode, AcsAccessGroup, AcsCredential, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, Device, SeamEvent, SeamEventType, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
1
+ export type { AccessCode, AcsAccessGroup, AcsCredential, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceProvider, SeamEvent, SeamEventType, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
@@ -38,8 +38,11 @@ export declare const DEVICE_PROVIDERS: {
38
38
  readonly HONEYWELL_RESIDEO: "honeywell_resideo";
39
39
  readonly LATCH: "latch";
40
40
  };
41
- export type DeviceProvider = (typeof DEVICE_PROVIDERS)[keyof typeof DEVICE_PROVIDERS];
42
- export declare const ALL_DEVICE_PROVIDERS: [DeviceProvider, ...DeviceProvider[]];
41
+ export type DeviceProviderName = (typeof DEVICE_PROVIDERS)[keyof typeof DEVICE_PROVIDERS];
42
+ export declare const ALL_DEVICE_PROVIDERS: [
43
+ DeviceProviderName,
44
+ ...DeviceProviderName[]
45
+ ];
43
46
  export type ProviderCategory = keyof typeof PROVIDER_CATEGORY_MAP;
44
47
  export declare const PROVIDER_CATEGORY_MAP: {
45
48
  readonly stable: readonly ["august", "avigilon_alta", "brivo", "schlage", "smartthings", "yale", "nuki", "salto", "controlbyweb", "minut", "my_2n", "kwikset", "ttlock", "noiseaware", "igloohome", "ecobee", "four_suites", "lockly", "wyze", "nest", "tedee", "seam_bridge", "honeywell_resideo", "visionline", "assa_abloy_credential_service", "latch"];
@@ -47,12 +50,12 @@ export declare const PROVIDER_CATEGORY_MAP: {
47
50
  readonly thermostats: readonly ["ecobee", "nest"];
48
51
  readonly noise_sensors: readonly ["minut", "noiseaware"];
49
52
  readonly access_control_systems: readonly ["pti", "visionline", "assa_abloy_credential_service", "latch"];
50
- readonly internal_beta: [DeviceProvider, ...DeviceProvider[]];
53
+ readonly internal_beta: [DeviceProviderName, ...DeviceProviderName[]];
51
54
  };
52
55
  export declare const PROVIDER_CATEGORIES: [ProviderCategory, ...ProviderCategory[]];
53
56
  export declare const PUBLIC_PROVIDER_CATEGORIES: typeof PROVIDER_CATEGORIES;
54
57
  export declare const device_provider: z.ZodObject<{
55
- device_provider_name: z.ZodEnum<[DeviceProvider, ...DeviceProvider[]]>;
58
+ device_provider_name: z.ZodEnum<[DeviceProviderName, ...DeviceProviderName[]]>;
56
59
  display_name: z.ZodString;
57
60
  image_url: z.ZodString;
58
61
  provider_categories: z.ZodArray<z.ZodEnum<["stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta", ...("stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta")[]]>, "many">;
@@ -67,3 +70,4 @@ export declare const device_provider: z.ZodObject<{
67
70
  device_provider_name: "linear" | "assa_abloy_credential_service" | "doorking" | "akuvox" | "august" | "avigilon_alta" | "brivo" | "butterflymx" | "schlage" | "smartthings" | "yale" | "genie" | "salto" | "lockly" | "ttlock" | "noiseaware" | "nuki" | "seam_relay_admin" | "igloo" | "kwikset" | "minut" | "my_2n" | "controlbyweb" | "nest" | "igloohome" | "ecobee" | "hubitat" | "four_suites" | "dormakaba_oracode" | "pti" | "wyze" | "seam_passport" | "visionline" | "seam_bridge" | "tedee" | "honeywell_resideo" | "latch";
68
71
  provider_categories: ("stable" | "consumer_smartlocks" | "thermostats" | "noise_sensors" | "access_control_systems" | "internal_beta")[];
69
72
  }>;
73
+ export type DeviceProvider = z.infer<typeof device_provider>;
@@ -1 +1 @@
1
- {"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,kBAAkB;IACpC,KAAK,EAAE,OAAO;IACd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a,EAAE,oBAAoB;CACyB,CAAA;AAE9D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,0BAA0B,GACrC,mBAAmB,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,eAAe,CAAQ,CAAA;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;CACjE,CAAC,CAAA"}
1
+ {"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,kBAAkB;IACpC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;I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AC,MAAM,mBAAmB,GAC9B,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,0BAA0B,GACrC,mBAAmB,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,eAAe,CAAQ,CAAA;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;CACjE,CAAC,CAAA"}
@@ -1 +1 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, device_provider, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
@@ -1,2 +1,2 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, device_provider, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
2
2
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.188.0",
3
+ "version": "1.189.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,6 +11,7 @@ export type {
11
11
  ConnectWebview,
12
12
  CustomMetadata,
13
13
  Device,
14
+ DeviceProvider,
14
15
  SeamEvent,
15
16
  SeamEventType,
16
17
  UnmanagedAccessCode,
@@ -40,11 +40,13 @@ export const DEVICE_PROVIDERS = {
40
40
  LATCH: 'latch',
41
41
  } as const
42
42
 
43
- export type DeviceProvider =
43
+ export type DeviceProviderName =
44
44
  (typeof DEVICE_PROVIDERS)[keyof typeof DEVICE_PROVIDERS]
45
45
 
46
- export const ALL_DEVICE_PROVIDERS: [DeviceProvider, ...DeviceProvider[]] =
47
- Object.values(DEVICE_PROVIDERS) as any
46
+ export const ALL_DEVICE_PROVIDERS: [
47
+ DeviceProviderName,
48
+ ...DeviceProviderName[],
49
+ ] = Object.values(DEVICE_PROVIDERS) as any
48
50
 
49
51
  export type ProviderCategory = keyof typeof PROVIDER_CATEGORY_MAP
50
52
 
@@ -100,7 +102,7 @@ export const PROVIDER_CATEGORY_MAP = {
100
102
  ],
101
103
 
102
104
  internal_beta: ALL_DEVICE_PROVIDERS,
103
- } as const satisfies Record<string, readonly DeviceProvider[]>
105
+ } as const satisfies Record<string, readonly DeviceProviderName[]>
104
106
 
105
107
  export const PROVIDER_CATEGORIES: [ProviderCategory, ...ProviderCategory[]] =
106
108
  Object.keys(PROVIDER_CATEGORY_MAP) as any
@@ -114,3 +116,5 @@ export const device_provider = z.object({
114
116
  image_url: z.string(),
115
117
  provider_categories: z.array(z.enum(PUBLIC_PROVIDER_CATEGORIES)),
116
118
  })
119
+
120
+ export type DeviceProvider = z.infer<typeof device_provider>
@@ -11,6 +11,7 @@ export {
11
11
  connected_account,
12
12
  custom_metadata,
13
13
  device,
14
+ device_provider,
14
15
  seam_event,
15
16
  unmanaged_access_code,
16
17
  unmanaged_device,