@seamapi/types 1.502.0 → 1.504.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.
Files changed (33) hide show
  1. package/dist/connect.cjs +331 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +333 -0
  4. package/dist/index.cjs +331 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +3 -0
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +4 -0
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +3 -0
  10. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +1 -0
  11. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
  12. package/lib/seam/connect/models/batch.d.ts +20 -0
  13. package/lib/seam/connect/models/customer/customer-delete-data.d.ts +57 -0
  14. package/lib/seam/connect/models/customer/customer-delete-data.js +75 -0
  15. package/lib/seam/connect/models/customer/customer-delete-data.js.map +1 -0
  16. package/lib/seam/connect/models/customer/index.d.ts +1 -0
  17. package/lib/seam/connect/models/customer/index.js +1 -0
  18. package/lib/seam/connect/models/customer/index.js.map +1 -1
  19. package/lib/seam/connect/models/index.d.ts +1 -0
  20. package/lib/seam/connect/models/index.js +1 -0
  21. package/lib/seam/connect/models/index.js.map +1 -1
  22. package/lib/seam/connect/openapi.d.ts +247 -0
  23. package/lib/seam/connect/openapi.js +327 -0
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +70 -0
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +6 -0
  28. package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +1 -0
  29. package/src/lib/seam/connect/models/customer/customer-delete-data.ts +79 -0
  30. package/src/lib/seam/connect/models/customer/index.ts +1 -0
  31. package/src/lib/seam/connect/models/index.ts +1 -0
  32. package/src/lib/seam/connect/openapi.ts +331 -0
  33. package/src/lib/seam/connect/route-types.ts +70 -0
@@ -1301,6 +1301,8 @@ export type Routes = {
1301
1301
 
1302
1302
  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. */
1303
1303
  access_code: {
1304
+ /** Unique identifier for the Seam workspace associated with the access code. */
1305
+ workspace_id: string;
1304
1306
  /** Unique identifier for a group of access codes that share the same code. */
1305
1307
  common_code_key: string | null;
1306
1308
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -1855,6 +1857,8 @@ export type Routes = {
1855
1857
  formData: {};
1856
1858
  jsonResponse: {
1857
1859
  access_codes: {
1860
+ /** Unique identifier for the Seam workspace associated with the access code. */
1861
+ workspace_id: string;
1858
1862
  /** Unique identifier for a group of access codes that share the same code. */
1859
1863
  common_code_key: string | null;
1860
1864
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -3663,6 +3667,8 @@ export type Routes = {
3663
3667
 
3664
3668
  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. */
3665
3669
  access_code: {
3670
+ /** Unique identifier for the Seam workspace associated with the access code. */
3671
+ workspace_id: string;
3666
3672
  /** Unique identifier for a group of access codes that share the same code. */
3667
3673
  common_code_key: string | null;
3668
3674
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4190,6 +4196,8 @@ export type Routes = {
4190
4196
  formData: {};
4191
4197
  jsonResponse: {
4192
4198
  access_codes: {
4199
+ /** Unique identifier for the Seam workspace associated with the access code. */
4200
+ workspace_id: string;
4193
4201
  /** Unique identifier for a group of access codes that share the same code. */
4194
4202
  common_code_key: string | null;
4195
4203
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4724,6 +4732,8 @@ export type Routes = {
4724
4732
 
4725
4733
  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. */
4726
4734
  backup_access_code: {
4735
+ /** Unique identifier for the Seam workspace associated with the access code. */
4736
+ workspace_id: string;
4727
4737
  /** Unique identifier for a group of access codes that share the same code. */
4728
4738
  common_code_key: string | null;
4729
4739
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5236,6 +5246,8 @@ export type Routes = {
5236
5246
 
5237
5247
  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. */
5238
5248
  access_code: {
5249
+ /** Unique identifier for the Seam workspace associated with the access code. */
5250
+ workspace_id: string;
5239
5251
  /** Unique identifier for a group of access codes that share the same code. */
5240
5252
  common_code_key: string | null;
5241
5253
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5787,6 +5799,8 @@ export type Routes = {
5787
5799
 
5788
5800
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
5789
5801
  access_code: {
5802
+ /** Unique identifier for the Seam workspace associated with the access code. */
5803
+ workspace_id: string;
5790
5804
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
5791
5805
  type: 'time_bound' | 'ongoing';
5792
5806
  /** Unique identifier for the access code. */
@@ -7582,6 +7596,8 @@ export type Routes = {
7582
7596
 
7583
7597
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
7584
7598
  access_code: {
7599
+ /** Unique identifier for the Seam workspace associated with the access code. */
7600
+ workspace_id: string;
7585
7601
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
7586
7602
  type: 'time_bound' | 'ongoing';
7587
7603
  /** Unique identifier for the access code. */
@@ -8088,6 +8104,8 @@ export type Routes = {
8088
8104
  formData: {};
8089
8105
  jsonResponse: {
8090
8106
  access_codes: {
8107
+ /** Unique identifier for the Seam workspace associated with the access code. */
8108
+ workspace_id: string;
8091
8109
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
8092
8110
  type: 'time_bound' | 'ongoing';
8093
8111
  /** Unique identifier for the access code. */
@@ -19030,6 +19048,8 @@ export type Routes = {
19030
19048
  } | undefined;
19031
19049
  }[] | undefined;
19032
19050
  access_codes?: {
19051
+ /** Unique identifier for the Seam workspace associated with the access code. */
19052
+ workspace_id: string;
19033
19053
  /** Unique identifier for a group of access codes that share the same code. */
19034
19054
  common_code_key: string | null;
19035
19055
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -19535,6 +19555,8 @@ export type Routes = {
19535
19555
  is_offline_access_code: boolean;
19536
19556
  }[] | undefined;
19537
19557
  unmanaged_access_codes?: {
19558
+ /** Unique identifier for the Seam workspace associated with the access code. */
19559
+ workspace_id: string;
19538
19560
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
19539
19561
  type: 'time_bound' | 'ongoing';
19540
19562
  /** Unique identifier for the access code. */
@@ -31179,6 +31201,50 @@ export type Routes = {
31179
31201
  };
31180
31202
  };
31181
31203
  };
31204
+ '/customers/delete_data': {
31205
+ route: '/customers/delete_data';
31206
+ method: 'DELETE' | 'POST';
31207
+ queryParams: {};
31208
+ jsonBody: {};
31209
+ commonParams: {
31210
+ /** List of space keys to delete. */
31211
+ space_keys?: string[] | undefined;
31212
+ /** List of property keys to delete. */
31213
+ property_keys?: string[] | undefined;
31214
+ /** List of room keys to delete. */
31215
+ room_keys?: string[] | undefined;
31216
+ /** List of common area keys to delete. */
31217
+ common_area_keys?: string[] | undefined;
31218
+ /** List of unit keys to delete. */
31219
+ unit_keys?: string[] | undefined;
31220
+ /** List of facility keys to delete. */
31221
+ facility_keys?: string[] | undefined;
31222
+ /** List of building keys to delete. */
31223
+ building_keys?: string[] | undefined;
31224
+ /** List of listing keys to delete. */
31225
+ listing_keys?: string[] | undefined;
31226
+ /** List of property listing keys to delete. */
31227
+ property_listing_keys?: string[] | undefined;
31228
+ /** List of guest keys to delete. */
31229
+ guest_keys?: string[] | undefined;
31230
+ /** List of tenant keys to delete. */
31231
+ tenant_keys?: string[] | undefined;
31232
+ /** List of resident keys to delete. */
31233
+ resident_keys?: string[] | undefined;
31234
+ /** List of user keys to delete. */
31235
+ user_keys?: string[] | undefined;
31236
+ /** List of user identity keys to delete. */
31237
+ user_identity_keys?: string[] | undefined;
31238
+ /** List of reservation keys to delete. */
31239
+ reservation_keys?: string[] | undefined;
31240
+ /** List of booking keys to delete. */
31241
+ booking_keys?: string[] | undefined;
31242
+ /** List of access grant keys to delete. */
31243
+ access_grant_keys?: string[] | undefined;
31244
+ };
31245
+ formData: {};
31246
+ jsonResponse: {};
31247
+ };
31182
31248
  '/customers/push_data': {
31183
31249
  route: '/customers/push_data';
31184
31250
  method: 'POST';
@@ -84435,6 +84501,8 @@ export type Routes = {
84435
84501
  } | undefined;
84436
84502
  }[] | undefined;
84437
84503
  access_codes?: {
84504
+ /** Unique identifier for the Seam workspace associated with the access code. */
84505
+ workspace_id: string;
84438
84506
  /** Unique identifier for a group of access codes that share the same code. */
84439
84507
  common_code_key: string | null;
84440
84508
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -84940,6 +85008,8 @@ export type Routes = {
84940
85008
  is_offline_access_code: boolean;
84941
85009
  }[] | undefined;
84942
85010
  unmanaged_access_codes?: {
85011
+ /** Unique identifier for the Seam workspace associated with the access code. */
85012
+ workspace_id: string;
84943
85013
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
84944
85014
  type: 'time_bound' | 'ongoing';
84945
85015
  /** Unique identifier for the access code. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.502.0",
3
+ "version": "1.504.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -495,6 +495,12 @@ const _access_code_warning_map = z.object({
495
495
  export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
496
496
 
497
497
  export const access_code = z.object({
498
+ workspace_id: z
499
+ .string()
500
+ .uuid()
501
+ .describe(
502
+ 'Unique identifier for the Seam workspace associated with the access code.',
503
+ ),
498
504
  common_code_key: z
499
505
  .string()
500
506
  .nullable()
@@ -4,6 +4,7 @@ import { access_code } from './managed-access-code.js'
4
4
 
5
5
  export const unmanaged_access_code = access_code
6
6
  .pick({
7
+ workspace_id: true,
7
8
  type: true,
8
9
  access_code_id: true,
9
10
  device_id: true,
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod'
2
+
3
+ export const customer_delete_data = z.object({
4
+ // Location resources to delete
5
+ space_keys: z
6
+ .array(z.string())
7
+ .optional()
8
+ .describe('List of space keys to delete.'),
9
+ property_keys: z
10
+ .array(z.string())
11
+ .optional()
12
+ .describe('List of property keys to delete.'),
13
+ room_keys: z
14
+ .array(z.string())
15
+ .optional()
16
+ .describe('List of room keys to delete.'),
17
+ common_area_keys: z
18
+ .array(z.string())
19
+ .optional()
20
+ .describe('List of common area keys to delete.'),
21
+ unit_keys: z
22
+ .array(z.string())
23
+ .optional()
24
+ .describe('List of unit keys to delete.'),
25
+ facility_keys: z
26
+ .array(z.string())
27
+ .optional()
28
+ .describe('List of facility keys to delete.'),
29
+ building_keys: z
30
+ .array(z.string())
31
+ .optional()
32
+ .describe('List of building keys to delete.'),
33
+ listing_keys: z
34
+ .array(z.string())
35
+ .optional()
36
+ .describe('List of listing keys to delete.'),
37
+ property_listing_keys: z
38
+ .array(z.string())
39
+ .optional()
40
+ .describe('List of property listing keys to delete.'),
41
+
42
+ // User identity resources to delete
43
+ guest_keys: z
44
+ .array(z.string())
45
+ .optional()
46
+ .describe('List of guest keys to delete.'),
47
+ tenant_keys: z
48
+ .array(z.string())
49
+ .optional()
50
+ .describe('List of tenant keys to delete.'),
51
+ resident_keys: z
52
+ .array(z.string())
53
+ .optional()
54
+ .describe('List of resident keys to delete.'),
55
+ user_keys: z
56
+ .array(z.string())
57
+ .optional()
58
+ .describe('List of user keys to delete.'),
59
+ user_identity_keys: z
60
+ .array(z.string())
61
+ .optional()
62
+ .describe('List of user identity keys to delete.'),
63
+
64
+ // Access grant resources to delete
65
+ reservation_keys: z
66
+ .array(z.string())
67
+ .optional()
68
+ .describe('List of reservation keys to delete.'),
69
+ booking_keys: z
70
+ .array(z.string())
71
+ .optional()
72
+ .describe('List of booking keys to delete.'),
73
+ access_grant_keys: z
74
+ .array(z.string())
75
+ .optional()
76
+ .describe('List of access grant keys to delete.'),
77
+ })
78
+
79
+ export type CustomerDeleteData = z.infer<typeof customer_delete_data>
@@ -1,3 +1,4 @@
1
1
  export * from './business-vertical.js'
2
2
  export * from './customer-data.js'
3
+ export * from './customer-delete-data.js'
3
4
  export * from './customer-portal.js'
@@ -10,6 +10,7 @@ export * from './connect-webviews/index.js'
10
10
  export * from './connected-accounts/index.js'
11
11
  export * from './custom-metadata.js'
12
12
  export * from './customer/access-grant-resources.js'
13
+ export * from './customer/customer-delete-data.js'
13
14
  export * from './customer/index.js'
14
15
  export * from './customer/location-resources.js'
15
16
  export * from './customer/user-identity-resources.js'
@@ -1792,8 +1792,15 @@ export default {
1792
1792
  thermostats: { name: 'Thermostats' },
1793
1793
  },
1794
1794
  },
1795
+ workspace_id: {
1796
+ description:
1797
+ 'Unique identifier for the Seam workspace associated with the access code.',
1798
+ format: 'uuid',
1799
+ type: 'string',
1800
+ },
1795
1801
  },
1796
1802
  required: [
1803
+ 'workspace_id',
1797
1804
  'common_code_key',
1798
1805
  'type',
1799
1806
  'access_code_id',
@@ -22266,8 +22273,15 @@ export default {
22266
22273
  thermostats: { name: 'Thermostats' },
22267
22274
  },
22268
22275
  },
22276
+ workspace_id: {
22277
+ description:
22278
+ 'Unique identifier for the Seam workspace associated with the access code.',
22279
+ format: 'uuid',
22280
+ type: 'string',
22281
+ },
22269
22282
  },
22270
22283
  required: [
22284
+ 'workspace_id',
22271
22285
  'type',
22272
22286
  'access_code_id',
22273
22287
  'device_id',
@@ -38929,6 +38943,323 @@ export default {
38929
38943
  'x-title': 'Create Customer Portal',
38930
38944
  },
38931
38945
  },
38946
+ '/customers/delete_data': {
38947
+ delete: {
38948
+ description:
38949
+ 'Deletes customer data including resources like spaces, properties, rooms, users, etc.\nThis will delete the partner resources and any related Seam resources (user identities, access grants, spaces).',
38950
+ operationId: 'customersDeleteDataDelete',
38951
+ parameters: [
38952
+ {
38953
+ in: 'query',
38954
+ name: 'space_keys',
38955
+ schema: {
38956
+ description: 'List of space keys to delete.',
38957
+ items: { type: 'string' },
38958
+ type: 'array',
38959
+ },
38960
+ },
38961
+ {
38962
+ in: 'query',
38963
+ name: 'property_keys',
38964
+ schema: {
38965
+ description: 'List of property keys to delete.',
38966
+ items: { type: 'string' },
38967
+ type: 'array',
38968
+ },
38969
+ },
38970
+ {
38971
+ in: 'query',
38972
+ name: 'room_keys',
38973
+ schema: {
38974
+ description: 'List of room keys to delete.',
38975
+ items: { type: 'string' },
38976
+ type: 'array',
38977
+ },
38978
+ },
38979
+ {
38980
+ in: 'query',
38981
+ name: 'common_area_keys',
38982
+ schema: {
38983
+ description: 'List of common area keys to delete.',
38984
+ items: { type: 'string' },
38985
+ type: 'array',
38986
+ },
38987
+ },
38988
+ {
38989
+ in: 'query',
38990
+ name: 'unit_keys',
38991
+ schema: {
38992
+ description: 'List of unit keys to delete.',
38993
+ items: { type: 'string' },
38994
+ type: 'array',
38995
+ },
38996
+ },
38997
+ {
38998
+ in: 'query',
38999
+ name: 'facility_keys',
39000
+ schema: {
39001
+ description: 'List of facility keys to delete.',
39002
+ items: { type: 'string' },
39003
+ type: 'array',
39004
+ },
39005
+ },
39006
+ {
39007
+ in: 'query',
39008
+ name: 'building_keys',
39009
+ schema: {
39010
+ description: 'List of building keys to delete.',
39011
+ items: { type: 'string' },
39012
+ type: 'array',
39013
+ },
39014
+ },
39015
+ {
39016
+ in: 'query',
39017
+ name: 'listing_keys',
39018
+ schema: {
39019
+ description: 'List of listing keys to delete.',
39020
+ items: { type: 'string' },
39021
+ type: 'array',
39022
+ },
39023
+ },
39024
+ {
39025
+ in: 'query',
39026
+ name: 'property_listing_keys',
39027
+ schema: {
39028
+ description: 'List of property listing keys to delete.',
39029
+ items: { type: 'string' },
39030
+ type: 'array',
39031
+ },
39032
+ },
39033
+ {
39034
+ in: 'query',
39035
+ name: 'guest_keys',
39036
+ schema: {
39037
+ description: 'List of guest keys to delete.',
39038
+ items: { type: 'string' },
39039
+ type: 'array',
39040
+ },
39041
+ },
39042
+ {
39043
+ in: 'query',
39044
+ name: 'tenant_keys',
39045
+ schema: {
39046
+ description: 'List of tenant keys to delete.',
39047
+ items: { type: 'string' },
39048
+ type: 'array',
39049
+ },
39050
+ },
39051
+ {
39052
+ in: 'query',
39053
+ name: 'resident_keys',
39054
+ schema: {
39055
+ description: 'List of resident keys to delete.',
39056
+ items: { type: 'string' },
39057
+ type: 'array',
39058
+ },
39059
+ },
39060
+ {
39061
+ in: 'query',
39062
+ name: 'user_keys',
39063
+ schema: {
39064
+ description: 'List of user keys to delete.',
39065
+ items: { type: 'string' },
39066
+ type: 'array',
39067
+ },
39068
+ },
39069
+ {
39070
+ in: 'query',
39071
+ name: 'user_identity_keys',
39072
+ schema: {
39073
+ description: 'List of user identity keys to delete.',
39074
+ items: { type: 'string' },
39075
+ type: 'array',
39076
+ },
39077
+ },
39078
+ {
39079
+ in: 'query',
39080
+ name: 'reservation_keys',
39081
+ schema: {
39082
+ description: 'List of reservation keys to delete.',
39083
+ items: { type: 'string' },
39084
+ type: 'array',
39085
+ },
39086
+ },
39087
+ {
39088
+ in: 'query',
39089
+ name: 'booking_keys',
39090
+ schema: {
39091
+ description: 'List of booking keys to delete.',
39092
+ items: { type: 'string' },
39093
+ type: 'array',
39094
+ },
39095
+ },
39096
+ {
39097
+ in: 'query',
39098
+ name: 'access_grant_keys',
39099
+ schema: {
39100
+ description: 'List of access grant keys to delete.',
39101
+ items: { type: 'string' },
39102
+ type: 'array',
39103
+ },
39104
+ },
39105
+ ],
39106
+ responses: {
39107
+ 200: {
39108
+ content: {
39109
+ 'application/json': {
39110
+ schema: {
39111
+ properties: { ok: { type: 'boolean' } },
39112
+ required: ['ok'],
39113
+ type: 'object',
39114
+ },
39115
+ },
39116
+ },
39117
+ description: 'OK',
39118
+ },
39119
+ 400: { description: 'Bad Request' },
39120
+ 401: { description: 'Unauthorized' },
39121
+ },
39122
+ security: [
39123
+ { pat_with_workspace: [] },
39124
+ { console_session_with_workspace: [] },
39125
+ { api_key: [] },
39126
+ ],
39127
+ summary: '/customers/delete_data',
39128
+ tags: [],
39129
+ 'x-fern-sdk-group-name': ['customers'],
39130
+ 'x-fern-sdk-method-name': 'delete_data',
39131
+ 'x-response-key': null,
39132
+ 'x-title': 'Delete Customer Data',
39133
+ },
39134
+ post: {
39135
+ description:
39136
+ 'Deletes customer data including resources like spaces, properties, rooms, users, etc.\nThis will delete the partner resources and any related Seam resources (user identities, access grants, spaces).',
39137
+ operationId: 'customersDeleteDataPost',
39138
+ requestBody: {
39139
+ content: {
39140
+ 'application/json': {
39141
+ schema: {
39142
+ properties: {
39143
+ access_grant_keys: {
39144
+ description: 'List of access grant keys to delete.',
39145
+ items: { type: 'string' },
39146
+ type: 'array',
39147
+ },
39148
+ booking_keys: {
39149
+ description: 'List of booking keys to delete.',
39150
+ items: { type: 'string' },
39151
+ type: 'array',
39152
+ },
39153
+ building_keys: {
39154
+ description: 'List of building keys to delete.',
39155
+ items: { type: 'string' },
39156
+ type: 'array',
39157
+ },
39158
+ common_area_keys: {
39159
+ description: 'List of common area keys to delete.',
39160
+ items: { type: 'string' },
39161
+ type: 'array',
39162
+ },
39163
+ facility_keys: {
39164
+ description: 'List of facility keys to delete.',
39165
+ items: { type: 'string' },
39166
+ type: 'array',
39167
+ },
39168
+ guest_keys: {
39169
+ description: 'List of guest keys to delete.',
39170
+ items: { type: 'string' },
39171
+ type: 'array',
39172
+ },
39173
+ listing_keys: {
39174
+ description: 'List of listing keys to delete.',
39175
+ items: { type: 'string' },
39176
+ type: 'array',
39177
+ },
39178
+ property_keys: {
39179
+ description: 'List of property keys to delete.',
39180
+ items: { type: 'string' },
39181
+ type: 'array',
39182
+ },
39183
+ property_listing_keys: {
39184
+ description: 'List of property listing keys to delete.',
39185
+ items: { type: 'string' },
39186
+ type: 'array',
39187
+ },
39188
+ reservation_keys: {
39189
+ description: 'List of reservation keys to delete.',
39190
+ items: { type: 'string' },
39191
+ type: 'array',
39192
+ },
39193
+ resident_keys: {
39194
+ description: 'List of resident keys to delete.',
39195
+ items: { type: 'string' },
39196
+ type: 'array',
39197
+ },
39198
+ room_keys: {
39199
+ description: 'List of room keys to delete.',
39200
+ items: { type: 'string' },
39201
+ type: 'array',
39202
+ },
39203
+ space_keys: {
39204
+ description: 'List of space keys to delete.',
39205
+ items: { type: 'string' },
39206
+ type: 'array',
39207
+ },
39208
+ tenant_keys: {
39209
+ description: 'List of tenant keys to delete.',
39210
+ items: { type: 'string' },
39211
+ type: 'array',
39212
+ },
39213
+ unit_keys: {
39214
+ description: 'List of unit keys to delete.',
39215
+ items: { type: 'string' },
39216
+ type: 'array',
39217
+ },
39218
+ user_identity_keys: {
39219
+ description: 'List of user identity keys to delete.',
39220
+ items: { type: 'string' },
39221
+ type: 'array',
39222
+ },
39223
+ user_keys: {
39224
+ description: 'List of user keys to delete.',
39225
+ items: { type: 'string' },
39226
+ type: 'array',
39227
+ },
39228
+ },
39229
+ type: 'object',
39230
+ },
39231
+ },
39232
+ },
39233
+ },
39234
+ responses: {
39235
+ 200: {
39236
+ content: {
39237
+ 'application/json': {
39238
+ schema: {
39239
+ properties: { ok: { type: 'boolean' } },
39240
+ required: ['ok'],
39241
+ type: 'object',
39242
+ },
39243
+ },
39244
+ },
39245
+ description: 'OK',
39246
+ },
39247
+ 400: { description: 'Bad Request' },
39248
+ 401: { description: 'Unauthorized' },
39249
+ },
39250
+ security: [
39251
+ { pat_with_workspace: [] },
39252
+ { console_session_with_workspace: [] },
39253
+ { api_key: [] },
39254
+ ],
39255
+ summary: '/customers/delete_data',
39256
+ tags: [],
39257
+ 'x-fern-sdk-group-name': ['customers'],
39258
+ 'x-fern-sdk-method-name': 'delete_data',
39259
+ 'x-response-key': null,
39260
+ 'x-title': 'Delete Customer Data',
39261
+ },
39262
+ },
38932
39263
  '/customers/push_data': {
38933
39264
  post: {
38934
39265
  description: