diff --git a/src/lib/seam/connect/models/customer/customer-delete-data.ts b/src/lib/seam/connect/models/customer/customer-delete-data.ts index b43fb919..1cb5b8f7 100644 --- a/src/lib/seam/connect/models/customer/customer-delete-data.ts +++ b/src/lib/seam/connect/models/customer/customer-delete-data.ts @@ -1,87 +1,89 @@ import { z } from 'zod' +import { resource_key } from '../../models/resource-key.js' + export const customer_delete_data = z.object({ // Customer keys to delete all data for customer_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of customer keys to delete all data for.'), // Location resources to delete space_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of space keys to delete.'), property_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of property keys to delete.'), room_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of room keys to delete.'), common_area_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of common area keys to delete.'), unit_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of unit keys to delete.'), facility_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of facility keys to delete.'), building_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of building keys to delete.'), listing_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of listing keys to delete.'), property_listing_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of property listing keys to delete.'), // User identity resources to delete guest_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of guest keys to delete.'), tenant_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of tenant keys to delete.'), resident_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of resident keys to delete.'), user_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of user keys to delete.'), user_identity_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of user identity keys to delete.'), // Access grant resources to delete reservation_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of reservation keys to delete.'), booking_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of booking keys to delete.'), access_grant_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of access grant keys to delete.'), staff_member_keys: z - .array(z.string()) + .array(resource_key) .optional() .describe('List of staff member keys to delete.'), }) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 0cdd6b00..17751de2 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -53613,7 +53613,7 @@ const openapi: OpenAPISpec = { name: 'customer_keys', schema: { description: 'List of customer keys to delete all data for.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53622,7 +53622,7 @@ const openapi: OpenAPISpec = { name: 'space_keys', schema: { description: 'List of space keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53631,7 +53631,7 @@ const openapi: OpenAPISpec = { name: 'property_keys', schema: { description: 'List of property keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53640,7 +53640,7 @@ const openapi: OpenAPISpec = { name: 'room_keys', schema: { description: 'List of room keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53649,7 +53649,7 @@ const openapi: OpenAPISpec = { name: 'common_area_keys', schema: { description: 'List of common area keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53658,7 +53658,7 @@ const openapi: OpenAPISpec = { name: 'unit_keys', schema: { description: 'List of unit keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53667,7 +53667,7 @@ const openapi: OpenAPISpec = { name: 'facility_keys', schema: { description: 'List of facility keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53676,7 +53676,7 @@ const openapi: OpenAPISpec = { name: 'building_keys', schema: { description: 'List of building keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53685,7 +53685,7 @@ const openapi: OpenAPISpec = { name: 'listing_keys', schema: { description: 'List of listing keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53694,7 +53694,7 @@ const openapi: OpenAPISpec = { name: 'property_listing_keys', schema: { description: 'List of property listing keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53703,7 +53703,7 @@ const openapi: OpenAPISpec = { name: 'guest_keys', schema: { description: 'List of guest keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53712,7 +53712,7 @@ const openapi: OpenAPISpec = { name: 'tenant_keys', schema: { description: 'List of tenant keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53721,7 +53721,7 @@ const openapi: OpenAPISpec = { name: 'resident_keys', schema: { description: 'List of resident keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53730,7 +53730,7 @@ const openapi: OpenAPISpec = { name: 'user_keys', schema: { description: 'List of user keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53739,7 +53739,7 @@ const openapi: OpenAPISpec = { name: 'user_identity_keys', schema: { description: 'List of user identity keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53748,7 +53748,7 @@ const openapi: OpenAPISpec = { name: 'reservation_keys', schema: { description: 'List of reservation keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53757,7 +53757,7 @@ const openapi: OpenAPISpec = { name: 'booking_keys', schema: { description: 'List of booking keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53766,7 +53766,7 @@ const openapi: OpenAPISpec = { name: 'access_grant_keys', schema: { description: 'List of access grant keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53775,7 +53775,7 @@ const openapi: OpenAPISpec = { name: 'staff_member_keys', schema: { description: 'List of staff member keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, }, @@ -53820,98 +53820,98 @@ const openapi: OpenAPISpec = { properties: { access_grant_keys: { description: 'List of access grant keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, booking_keys: { description: 'List of booking keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, building_keys: { description: 'List of building keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, common_area_keys: { description: 'List of common area keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, customer_keys: { description: 'List of customer keys to delete all data for.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, facility_keys: { description: 'List of facility keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, guest_keys: { description: 'List of guest keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, listing_keys: { description: 'List of listing keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, property_keys: { description: 'List of property keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, property_listing_keys: { description: 'List of property listing keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, reservation_keys: { description: 'List of reservation keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, resident_keys: { description: 'List of resident keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, room_keys: { description: 'List of room keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, space_keys: { description: 'List of space keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, staff_member_keys: { description: 'List of staff member keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, tenant_keys: { description: 'List of tenant keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, unit_keys: { description: 'List of unit keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, user_identity_keys: { description: 'List of user identity keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, user_keys: { description: 'List of user keys to delete.', - items: { type: 'string' }, + items: { minLength: 1, type: 'string' }, type: 'array', }, },