@seamapi/types 1.502.0 → 1.503.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.
@@ -561,6 +561,7 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
561
561
  }>]>;
562
562
  type AccessCodeWarning = z.infer<typeof access_code_warning>;
563
563
  declare const access_code: z.ZodObject<{
564
+ workspace_id: z.ZodString;
564
565
  common_code_key: z.ZodNullable<z.ZodString>;
565
566
  is_scheduled_on_device: z.ZodOptional<z.ZodBoolean>;
566
567
  type: z.ZodEnum<["time_bound", "ongoing"]>;
@@ -1498,6 +1499,7 @@ declare const access_code: z.ZodObject<{
1498
1499
  status: "unknown" | "set" | "setting" | "unset" | "removing";
1499
1500
  name: string | null;
1500
1501
  device_id: string;
1502
+ workspace_id: string;
1501
1503
  created_at: string;
1502
1504
  errors: ({
1503
1505
  message: string;
@@ -1797,6 +1799,7 @@ declare const access_code: z.ZodObject<{
1797
1799
  status: "unknown" | "set" | "setting" | "unset" | "removing";
1798
1800
  name: string | null;
1799
1801
  device_id: string;
1802
+ workspace_id: string;
1800
1803
  created_at: string;
1801
1804
  errors: ({
1802
1805
  message: string;
@@ -2098,6 +2101,7 @@ declare const unmanaged_access_code: z.ZodObject<{
2098
2101
  type: z.ZodEnum<["time_bound", "ongoing"]>;
2099
2102
  name: z.ZodNullable<z.ZodString>;
2100
2103
  device_id: z.ZodString;
2104
+ workspace_id: z.ZodString;
2101
2105
  created_at: z.ZodString;
2102
2106
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2103
2107
  ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3023,6 +3027,7 @@ declare const unmanaged_access_code: z.ZodObject<{
3023
3027
  status: "set";
3024
3028
  name: string | null;
3025
3029
  device_id: string;
3030
+ workspace_id: string;
3026
3031
  created_at: string;
3027
3032
  errors: ({
3028
3033
  message: string;
@@ -3313,6 +3318,7 @@ declare const unmanaged_access_code: z.ZodObject<{
3313
3318
  status: "set";
3314
3319
  name: string | null;
3315
3320
  device_id: string;
3321
+ workspace_id: string;
3316
3322
  created_at: string;
3317
3323
  errors: ({
3318
3324
  message: string;
@@ -27304,6 +27310,7 @@ declare const batch: z.ZodObject<{
27304
27310
  } | undefined;
27305
27311
  }>, "many">>;
27306
27312
  access_codes: z.ZodOptional<z.ZodArray<z.ZodObject<{
27313
+ workspace_id: z.ZodString;
27307
27314
  common_code_key: z.ZodNullable<z.ZodString>;
27308
27315
  is_scheduled_on_device: z.ZodOptional<z.ZodBoolean>;
27309
27316
  type: z.ZodEnum<["time_bound", "ongoing"]>;
@@ -28241,6 +28248,7 @@ declare const batch: z.ZodObject<{
28241
28248
  status: "unknown" | "set" | "setting" | "unset" | "removing";
28242
28249
  name: string | null;
28243
28250
  device_id: string;
28251
+ workspace_id: string;
28244
28252
  created_at: string;
28245
28253
  errors: ({
28246
28254
  message: string;
@@ -28540,6 +28548,7 @@ declare const batch: z.ZodObject<{
28540
28548
  status: "unknown" | "set" | "setting" | "unset" | "removing";
28541
28549
  name: string | null;
28542
28550
  device_id: string;
28551
+ workspace_id: string;
28543
28552
  created_at: string;
28544
28553
  errors: ({
28545
28554
  message: string;
@@ -28839,6 +28848,7 @@ declare const batch: z.ZodObject<{
28839
28848
  type: z.ZodEnum<["time_bound", "ongoing"]>;
28840
28849
  name: z.ZodNullable<z.ZodString>;
28841
28850
  device_id: z.ZodString;
28851
+ workspace_id: z.ZodString;
28842
28852
  created_at: z.ZodString;
28843
28853
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28844
28854
  ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -29764,6 +29774,7 @@ declare const batch: z.ZodObject<{
29764
29774
  status: "set";
29765
29775
  name: string | null;
29766
29776
  device_id: string;
29777
+ workspace_id: string;
29767
29778
  created_at: string;
29768
29779
  errors: ({
29769
29780
  message: string;
@@ -30054,6 +30065,7 @@ declare const batch: z.ZodObject<{
30054
30065
  status: "set";
30055
30066
  name: string | null;
30056
30067
  device_id: string;
30068
+ workspace_id: string;
30057
30069
  created_at: string;
30058
30070
  errors: ({
30059
30071
  message: string;
@@ -33692,6 +33704,7 @@ declare const batch: z.ZodObject<{
33692
33704
  status: "unknown" | "set" | "setting" | "unset" | "removing";
33693
33705
  name: string | null;
33694
33706
  device_id: string;
33707
+ workspace_id: string;
33695
33708
  created_at: string;
33696
33709
  errors: ({
33697
33710
  message: string;
@@ -33992,6 +34005,7 @@ declare const batch: z.ZodObject<{
33992
34005
  status: "set";
33993
34006
  name: string | null;
33994
34007
  device_id: string;
34008
+ workspace_id: string;
33995
34009
  created_at: string;
33996
34010
  errors: ({
33997
34011
  message: string;
@@ -37525,6 +37539,7 @@ declare const batch: z.ZodObject<{
37525
37539
  status: "unknown" | "set" | "setting" | "unset" | "removing";
37526
37540
  name: string | null;
37527
37541
  device_id: string;
37542
+ workspace_id: string;
37528
37543
  created_at: string;
37529
37544
  errors: ({
37530
37545
  message: string;
@@ -37825,6 +37840,7 @@ declare const batch: z.ZodObject<{
37825
37840
  status: "set";
37826
37841
  name: string | null;
37827
37842
  device_id: string;
37843
+ workspace_id: string;
37828
37844
  created_at: string;
37829
37845
  errors: ({
37830
37846
  message: string;
@@ -50825,6 +50841,11 @@ declare const _default: {
50825
50841
  };
50826
50842
  };
50827
50843
  };
50844
+ workspace_id: {
50845
+ description: string;
50846
+ format: string;
50847
+ type: string;
50848
+ };
50828
50849
  };
50829
50850
  required: string[];
50830
50851
  type: string;
@@ -62257,6 +62278,11 @@ declare const _default: {
62257
62278
  };
62258
62279
  };
62259
62280
  };
62281
+ workspace_id: {
62282
+ description: string;
62283
+ format: string;
62284
+ type: string;
62285
+ };
62260
62286
  };
62261
62287
  required: string[];
62262
62288
  type: string;
@@ -101312,6 +101338,8 @@ type Routes = {
101312
101338
 
101313
101339
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
101314
101340
  access_code: {
101341
+ /** Unique identifier for the Seam workspace associated with the access code. */
101342
+ workspace_id: string;
101315
101343
  /** Unique identifier for a group of access codes that share the same code. */
101316
101344
  common_code_key: string | null;
101317
101345
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -101866,6 +101894,8 @@ type Routes = {
101866
101894
  formData: {};
101867
101895
  jsonResponse: {
101868
101896
  access_codes: {
101897
+ /** Unique identifier for the Seam workspace associated with the access code. */
101898
+ workspace_id: string;
101869
101899
  /** Unique identifier for a group of access codes that share the same code. */
101870
101900
  common_code_key: string | null;
101871
101901
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -103674,6 +103704,8 @@ type Routes = {
103674
103704
 
103675
103705
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
103676
103706
  access_code: {
103707
+ /** Unique identifier for the Seam workspace associated with the access code. */
103708
+ workspace_id: string;
103677
103709
  /** Unique identifier for a group of access codes that share the same code. */
103678
103710
  common_code_key: string | null;
103679
103711
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -104201,6 +104233,8 @@ type Routes = {
104201
104233
  formData: {};
104202
104234
  jsonResponse: {
104203
104235
  access_codes: {
104236
+ /** Unique identifier for the Seam workspace associated with the access code. */
104237
+ workspace_id: string;
104204
104238
  /** Unique identifier for a group of access codes that share the same code. */
104205
104239
  common_code_key: string | null;
104206
104240
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -104735,6 +104769,8 @@ type Routes = {
104735
104769
 
104736
104770
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
104737
104771
  backup_access_code: {
104772
+ /** Unique identifier for the Seam workspace associated with the access code. */
104773
+ workspace_id: string;
104738
104774
  /** Unique identifier for a group of access codes that share the same code. */
104739
104775
  common_code_key: string | null;
104740
104776
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -105247,6 +105283,8 @@ type Routes = {
105247
105283
 
105248
105284
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
105249
105285
  access_code: {
105286
+ /** Unique identifier for the Seam workspace associated with the access code. */
105287
+ workspace_id: string;
105250
105288
  /** Unique identifier for a group of access codes that share the same code. */
105251
105289
  common_code_key: string | null;
105252
105290
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -105798,6 +105836,8 @@ type Routes = {
105798
105836
 
105799
105837
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
105800
105838
  access_code: {
105839
+ /** Unique identifier for the Seam workspace associated with the access code. */
105840
+ workspace_id: string;
105801
105841
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
105802
105842
  type: 'time_bound' | 'ongoing';
105803
105843
  /** Unique identifier for the access code. */
@@ -107593,6 +107633,8 @@ type Routes = {
107593
107633
 
107594
107634
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
107595
107635
  access_code: {
107636
+ /** Unique identifier for the Seam workspace associated with the access code. */
107637
+ workspace_id: string;
107596
107638
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
107597
107639
  type: 'time_bound' | 'ongoing';
107598
107640
  /** Unique identifier for the access code. */
@@ -108099,6 +108141,8 @@ type Routes = {
108099
108141
  formData: {};
108100
108142
  jsonResponse: {
108101
108143
  access_codes: {
108144
+ /** Unique identifier for the Seam workspace associated with the access code. */
108145
+ workspace_id: string;
108102
108146
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
108103
108147
  type: 'time_bound' | 'ongoing';
108104
108148
  /** Unique identifier for the access code. */
@@ -119041,6 +119085,8 @@ type Routes = {
119041
119085
  } | undefined;
119042
119086
  }[] | undefined;
119043
119087
  access_codes?: {
119088
+ /** Unique identifier for the Seam workspace associated with the access code. */
119089
+ workspace_id: string;
119044
119090
  /** Unique identifier for a group of access codes that share the same code. */
119045
119091
  common_code_key: string | null;
119046
119092
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -119546,6 +119592,8 @@ type Routes = {
119546
119592
  is_offline_access_code: boolean;
119547
119593
  }[] | undefined;
119548
119594
  unmanaged_access_codes?: {
119595
+ /** Unique identifier for the Seam workspace associated with the access code. */
119596
+ workspace_id: string;
119549
119597
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
119550
119598
  type: 'time_bound' | 'ongoing';
119551
119599
  /** Unique identifier for the access code. */
@@ -184446,6 +184494,8 @@ type Routes = {
184446
184494
  } | undefined;
184447
184495
  }[] | undefined;
184448
184496
  access_codes?: {
184497
+ /** Unique identifier for the Seam workspace associated with the access code. */
184498
+ workspace_id: string;
184449
184499
  /** Unique identifier for a group of access codes that share the same code. */
184450
184500
  common_code_key: string | null;
184451
184501
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -184951,6 +185001,8 @@ type Routes = {
184951
185001
  is_offline_access_code: boolean;
184952
185002
  }[] | undefined;
184953
185003
  unmanaged_access_codes?: {
185004
+ /** Unique identifier for the Seam workspace associated with the access code. */
185005
+ workspace_id: string;
184954
185006
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
184955
185007
  type: 'time_bound' | 'ongoing';
184956
185008
  /** Unique identifier for the access code. */
package/dist/index.cjs CHANGED
@@ -2112,6 +2112,9 @@ zod.z.object({
2112
2112
  kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning.optional().nullable()
2113
2113
  });
2114
2114
  var access_code = zod.z.object({
2115
+ workspace_id: zod.z.string().uuid().describe(
2116
+ "Unique identifier for the Seam workspace associated with the access code."
2117
+ ),
2115
2118
  common_code_key: zod.z.string().nullable().describe(
2116
2119
  "Unique identifier for a group of access codes that share the same code."
2117
2120
  ),
@@ -2219,6 +2222,7 @@ var access_code = zod.z.object({
2219
2222
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection\u2014and you do not need to be near the locks\u2014to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code.
2220
2223
  `);
2221
2224
  var unmanaged_access_code = access_code.pick({
2225
+ workspace_id: true,
2222
2226
  type: true,
2223
2227
  access_code_id: true,
2224
2228
  device_id: true,
@@ -7075,9 +7079,15 @@ var openapi_default = {
7075
7079
  provider_metadata: { name: "Provider Metadata" },
7076
7080
  thermostats: { name: "Thermostats" }
7077
7081
  }
7082
+ },
7083
+ workspace_id: {
7084
+ description: "Unique identifier for the Seam workspace associated with the access code.",
7085
+ format: "uuid",
7086
+ type: "string"
7078
7087
  }
7079
7088
  },
7080
7089
  required: [
7090
+ "workspace_id",
7081
7091
  "common_code_key",
7082
7092
  "type",
7083
7093
  "access_code_id",
@@ -25490,9 +25500,15 @@ var openapi_default = {
25490
25500
  provider_metadata: { name: "Provider Metadata" },
25491
25501
  thermostats: { name: "Thermostats" }
25492
25502
  }
25503
+ },
25504
+ workspace_id: {
25505
+ description: "Unique identifier for the Seam workspace associated with the access code.",
25506
+ format: "uuid",
25507
+ type: "string"
25493
25508
  }
25494
25509
  },
25495
25510
  required: [
25511
+ "workspace_id",
25496
25512
  "type",
25497
25513
  "access_code_id",
25498
25514
  "device_id",