@seamapi/types 1.503.0 → 1.505.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.
@@ -31201,6 +31201,50 @@ export type Routes = {
31201
31201
  };
31202
31202
  };
31203
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
+ };
31204
31248
  '/customers/push_data': {
31205
31249
  route: '/customers/push_data';
31206
31250
  method: 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.503.0",
3
+ "version": "1.505.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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'
@@ -38943,6 +38943,323 @@ export default {
38943
38943
  'x-title': 'Create Customer Portal',
38944
38944
  },
38945
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
+ },
38946
39263
  '/customers/push_data': {
38947
39264
  post: {
38948
39265
  description:
@@ -57298,7 +57615,7 @@ export default {
57298
57615
  'x-fern-sdk-group-name': ['workspaces'],
57299
57616
  'x-fern-sdk-method-name': 'update',
57300
57617
  'x-response-key': null,
57301
- 'x-title': 'Udpate a Workspace',
57618
+ 'x-title': 'Update a Workspace',
57302
57619
  },
57303
57620
  post: {
57304
57621
  description:
@@ -57375,7 +57692,7 @@ export default {
57375
57692
  'x-fern-sdk-group-name': ['workspaces'],
57376
57693
  'x-fern-sdk-method-name': 'update',
57377
57694
  'x-response-key': null,
57378
- 'x-title': 'Udpate a Workspace',
57695
+ 'x-title': 'Update a Workspace',
57379
57696
  },
57380
57697
  },
57381
57698
  },
@@ -36139,6 +36139,50 @@ export type Routes = {
36139
36139
  }
36140
36140
  }
36141
36141
  }
36142
+ '/customers/delete_data': {
36143
+ route: '/customers/delete_data'
36144
+ method: 'DELETE' | 'POST'
36145
+ queryParams: {}
36146
+ jsonBody: {}
36147
+ commonParams: {
36148
+ /** List of space keys to delete. */
36149
+ space_keys?: string[] | undefined
36150
+ /** List of property keys to delete. */
36151
+ property_keys?: string[] | undefined
36152
+ /** List of room keys to delete. */
36153
+ room_keys?: string[] | undefined
36154
+ /** List of common area keys to delete. */
36155
+ common_area_keys?: string[] | undefined
36156
+ /** List of unit keys to delete. */
36157
+ unit_keys?: string[] | undefined
36158
+ /** List of facility keys to delete. */
36159
+ facility_keys?: string[] | undefined
36160
+ /** List of building keys to delete. */
36161
+ building_keys?: string[] | undefined
36162
+ /** List of listing keys to delete. */
36163
+ listing_keys?: string[] | undefined
36164
+ /** List of property listing keys to delete. */
36165
+ property_listing_keys?: string[] | undefined
36166
+ /** List of guest keys to delete. */
36167
+ guest_keys?: string[] | undefined
36168
+ /** List of tenant keys to delete. */
36169
+ tenant_keys?: string[] | undefined
36170
+ /** List of resident keys to delete. */
36171
+ resident_keys?: string[] | undefined
36172
+ /** List of user keys to delete. */
36173
+ user_keys?: string[] | undefined
36174
+ /** List of user identity keys to delete. */
36175
+ user_identity_keys?: string[] | undefined
36176
+ /** List of reservation keys to delete. */
36177
+ reservation_keys?: string[] | undefined
36178
+ /** List of booking keys to delete. */
36179
+ booking_keys?: string[] | undefined
36180
+ /** List of access grant keys to delete. */
36181
+ access_grant_keys?: string[] | undefined
36182
+ }
36183
+ formData: {}
36184
+ jsonResponse: {}
36185
+ }
36142
36186
  '/customers/push_data': {
36143
36187
  route: '/customers/push_data'
36144
36188
  method: 'POST'