@kohost/api-client 7.2.0 → 7.4.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 (38) hide show
  1. package/dist/httpClient.d.ts +2 -2
  2. package/dist/models/index.d.ts +1 -0
  3. package/dist/models/index.js +3 -1
  4. package/dist/models/index.js.map +1 -1
  5. package/dist/models/sosType.d.ts +17 -0
  6. package/dist/models/sosType.js +25 -0
  7. package/dist/models/sosType.js.map +1 -0
  8. package/dist/models/ticket.js +1 -0
  9. package/dist/models/ticket.js.map +1 -1
  10. package/dist/schemas/index.d.ts +1 -0
  11. package/dist/schemas/index.js +2 -1
  12. package/dist/schemas/organization.d.ts +19 -0
  13. package/dist/schemas/organization.js +42 -27
  14. package/dist/schemas/organization.js.map +1 -1
  15. package/dist/schemas/property.d.ts +1 -2
  16. package/dist/schemas/property.js +2 -12
  17. package/dist/schemas/property.js.map +1 -1
  18. package/dist/schemas/sosType.d.ts +76 -0
  19. package/dist/schemas/sosType.js +76 -0
  20. package/dist/schemas/sosType.js.map +1 -0
  21. package/dist/schemas/ticket.d.ts +24 -0
  22. package/dist/schemas/ticket.js +34 -0
  23. package/dist/schemas/ticket.js.map +1 -1
  24. package/dist/useCases/copyIssueRouting.d.ts +27 -0
  25. package/dist/useCases/{updateTicketStatus.js → copyIssueRouting.js} +10 -10
  26. package/dist/useCases/copyIssueRouting.js.map +1 -0
  27. package/dist/useCases/index.d.ts +2 -1
  28. package/dist/useCases/index.js +5 -3
  29. package/dist/useCases/index.js.map +1 -1
  30. package/dist/useCases/mergeIssue.d.ts +27 -0
  31. package/dist/useCases/mergeIssue.js +47 -0
  32. package/dist/useCases/mergeIssue.js.map +1 -0
  33. package/dist/validate.d.ts +17 -0
  34. package/dist/validate.js +4 -1
  35. package/dist/validate.js.map +1 -1
  36. package/package.json +7 -6
  37. package/dist/useCases/updateTicketStatus.d.ts +0 -36
  38. package/dist/useCases/updateTicketStatus.js.map +0 -1
@@ -66,11 +66,11 @@ export class KohostHTTPClient {
66
66
  *
67
67
  * @param {Command} command
68
68
  */
69
- send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
69
+ send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
70
70
  /**
71
71
  * @param {Command} config
72
72
  * @returns {Request}
73
73
  */
74
- createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
74
+ createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
75
75
  #private;
76
76
  }
@@ -34,6 +34,7 @@ export { Server, type ServerData } from "./server.js";
34
34
  export { Session, type SessionData } from "./session.js";
35
35
  export { ShortLink, type ShortLinkData } from "./shortLink.js";
36
36
  export { SmsMessage, type SmsMessageData } from "./smsMessage.js";
37
+ export { SOSType, type SOSTypeData } from "./sosType.js";
37
38
  export { Space, type SpaceData } from "./space.js";
38
39
  export { Switch, type SwitchData } from "./switch.js";
39
40
  export { System, type SystemData } from "./system.js";
@@ -35,6 +35,7 @@ import { Server } from "./server.js";
35
35
  import { Session } from "./session.js";
36
36
  import { ShortLink } from "./shortLink.js";
37
37
  import { SmsMessage } from "./smsMessage.js";
38
+ import { SOSType } from "./sosType.js";
38
39
  import { Space } from "./space.js";
39
40
  import { Switch } from "./switch.js";
40
41
  import { System } from "./system.js";
@@ -79,6 +80,7 @@ var models_exports = /* @__PURE__ */ __exportAll({
79
80
  Product: () => Product,
80
81
  Property: () => Property,
81
82
  Reservation: () => Reservation,
83
+ SOSType: () => SOSType,
82
84
  Server: () => Server,
83
85
  Session: () => Session,
84
86
  ShortLink: () => ShortLink,
@@ -95,6 +97,6 @@ var models_exports = /* @__PURE__ */ __exportAll({
95
97
  WindowCovering: () => WindowCovering
96
98
  });
97
99
  //#endregion
98
- export { Alarm, Announcement, Automation, Camera, Category, Courtesy, Credential, Department, Dimmer, DiscoveredDevice, EmailMessage, EnergyReport, EnergyReportShard, Entity, Gateway, Group, Identification, Integration, Issue, Lock, Log, MediaFile, MediaSource, MotionSensor, Notification, Order, Organization, Payment, Policy, Product, Property, Reservation, Server, Session, ShortLink, SmsMessage, Space, Switch, System, SystemUser, Thermostat, Ticket, TimeSheet, User, Vendor, WindowCovering, models_exports };
100
+ export { Alarm, Announcement, Automation, Camera, Category, Courtesy, Credential, Department, Dimmer, DiscoveredDevice, EmailMessage, EnergyReport, EnergyReportShard, Entity, Gateway, Group, Identification, Integration, Issue, Lock, Log, MediaFile, MediaSource, MotionSensor, Notification, Order, Organization, Payment, Policy, Product, Property, Reservation, SOSType, Server, Session, ShortLink, SmsMessage, Space, Switch, System, SystemUser, Thermostat, Ticket, TimeSheet, User, Vendor, WindowCovering, models_exports };
99
101
 
100
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport {\n DiscoveredDevice,\n type DiscoveredDeviceData,\n} from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport {\n EnergyReportShard,\n type EnergyReportShardData,\n} from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport {\n DiscoveredDevice,\n type DiscoveredDeviceData,\n} from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport {\n EnergyReportShard,\n type EnergyReportShardData,\n} from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { SOSType, type SOSTypeData } from \"./sosType.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { Entity } from "./entity.js";
2
+ import { validateSOSType as validate } from "../validate.js";
3
+ import { sosTypeSchema, type SOSTypeSchema } from "../schemas/sosType.js";
4
+ /**
5
+ * Data type for SOSType constructor - exported for backwards compatibility
6
+ */
7
+ export type SOSTypeData = SOSTypeSchema;
8
+ /**
9
+ * A customizable emergency category in an organization's SOS library.
10
+ */
11
+ export interface SOSType extends SOSTypeSchema {
12
+ }
13
+ export declare class SOSType extends Entity {
14
+ schema: typeof sosTypeSchema;
15
+ validator: typeof validate;
16
+ constructor(data: SOSTypeSchema);
17
+ }
@@ -0,0 +1,25 @@
1
+ import { Entity } from "./entity.js";
2
+ import { sosTypeSchema } from "../schemas/sosType.js";
3
+ import { validateSOSType } from "../validate.js";
4
+ //#region .generated/models/sosType.ts
5
+ var SOSType = class extends Entity {
6
+ constructor(data) {
7
+ super(data);
8
+ this.id = data.id;
9
+ this.name = data.name;
10
+ this.nameKey = data.nameKey;
11
+ this.iconKey = data.iconKey;
12
+ this.scope = data.scope;
13
+ if (data.createdAt !== void 0) this.createdAt = data.createdAt;
14
+ if (data.updatedAt !== void 0) this.updatedAt = data.updatedAt;
15
+ if (data.deletedAt !== void 0) this.deletedAt = data.deletedAt;
16
+ }
17
+ };
18
+ Object.defineProperty(SOSType.prototype, "schema", { value: sosTypeSchema });
19
+ Object.defineProperty(SOSType.prototype, "validator", { get: function() {
20
+ return validateSOSType;
21
+ } });
22
+ //#endregion
23
+ export { SOSType };
24
+
25
+ //# sourceMappingURL=sosType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sosType.js","names":["validate"],"sources":["../../.generated/models/sosType.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateSOSType as validate } from \"../validate.js\";\nimport { sosTypeSchema, type SOSTypeSchema } from \"../schemas/sosType.js\";\n\n/**\n * Data type for SOSType constructor - exported for backwards compatibility\n */\nexport type SOSTypeData = SOSTypeSchema;\n\n/**\n * A customizable emergency category in an organization's SOS library.\n */\nexport interface SOSType extends SOSTypeSchema {}\nexport class SOSType extends Entity {\n declare schema: typeof sosTypeSchema;\n declare validator: typeof validate;\n\n constructor(data: SOSTypeSchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.nameKey = data.nameKey;\n this.iconKey = data.iconKey;\n this.scope = data.scope;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(SOSType.prototype, \"schema\", {\n value: sosTypeSchema,\n});\n\nObject.defineProperty(SOSType.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,UAAb,cAA6B,OAAO;CAIlC,YAAY,MAAqB;EAC/B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,UAAU,KAAK;EACpB,KAAK,UAAU,KAAK;EACpB,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,QAAQ,WAAW,UAAU,EACjD,OAAO,cACT,CAAC;AAED,OAAO,eAAe,QAAQ,WAAW,aAAa,EACpD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
@@ -22,6 +22,7 @@ var Ticket = class extends Entity {
22
22
  this.status = data.status;
23
23
  this.priority = data.priority;
24
24
  if (data.priorityRank !== void 0) this.priorityRank = data.priorityRank;
25
+ if (data.reopenCount !== void 0) this.reopenCount = data.reopenCount;
25
26
  this.tags = data.tags;
26
27
  if (data.rating !== void 0) this.rating = data.rating;
27
28
  if (data.ratingComment !== void 0) this.ratingComment = data.ratingComment;
@@ -1 +1 @@
1
- {"version":3,"file":"ticket.js","names":["validate"],"sources":["../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n if (data.parentAutomationId !== undefined)\n this.parentAutomationId = data.parentAutomationId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n if (data.priorityRank !== undefined) this.priorityRank = data.priorityRank;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.lastMessageAt !== undefined)\n this.lastMessageAt = data.lastMessageAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,uBAAuB,KAAA,GAC9B,KAAK,qBAAqB,KAAK;EACjC,KAAK,eAAe,KAAK;EACzB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,WAAW,KAAK;EACrB,KAAK,YAAY,KAAK;EACtB,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,YAAY,KAAK;EACtB,KAAK,YAAY,KAAK;EACtB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"ticket.js","names":["validate"],"sources":["../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n if (data.parentAutomationId !== undefined)\n this.parentAutomationId = data.parentAutomationId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n if (data.priorityRank !== undefined) this.priorityRank = data.priorityRank;\n if (data.reopenCount !== undefined) this.reopenCount = data.reopenCount;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.lastMessageAt !== undefined)\n this.lastMessageAt = data.lastMessageAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,uBAAuB,KAAA,GAC9B,KAAK,qBAAqB,KAAK;EACjC,KAAK,eAAe,KAAK;EACzB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,WAAW,KAAK;EACrB,KAAK,YAAY,KAAK;EACtB,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,YAAY,KAAK;EACtB,KAAK,YAAY,KAAK;EACtB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
@@ -33,6 +33,7 @@ export { serverSchema, type ServerSchema } from "./server.js";
33
33
  export { sessionSchema, type SessionSchema } from "./session.js";
34
34
  export { shortLinkSchema, type ShortLinkSchema } from "./shortLink.js";
35
35
  export { smsMessageSchema, type SmsMessageSchema } from "./smsMessage.js";
36
+ export { sosTypeSchema, type SOSTypeSchema } from "./sosType.js";
36
37
  export { spaceSchema, type SpaceSchema } from "./space.js";
37
38
  export { switchSchema, type SwitchSchema } from "./switch.js";
38
39
  export { systemSchema, type SystemSchema } from "./system.js";
@@ -33,6 +33,7 @@ import { serverSchema } from "./server.js";
33
33
  import { sessionSchema } from "./session.js";
34
34
  import { shortLinkSchema } from "./shortLink.js";
35
35
  import { smsMessageSchema } from "./smsMessage.js";
36
+ import { sosTypeSchema } from "./sosType.js";
36
37
  import { spaceSchema } from "./space.js";
37
38
  import { switchSchema } from "./switch.js";
38
39
  import { systemSchema } from "./system.js";
@@ -43,4 +44,4 @@ import { timeSheetSchema } from "./timeSheet.js";
43
44
  import { getters, userSchema } from "./user.js";
44
45
  import { vendorSchema } from "./vendor.js";
45
46
  import { windowCoveringSchema } from "./windowCovering.js";
46
- export { alarmSchema, announcementSchema, automationSchema, cameraSchema, categorySchema, courtesySchema, credentialSchema, departmentSchema, dimmerSchema, discoveredDeviceSchema, emailMessageSchema, energyReportSchema, energyReportShardSchema, gatewaySchema, groupSchema, identificationSchema, integrationSchema, issueSchema, lockSchema, logSchema, methods as mediaFileMethods, mediaFileSchema, mediaSourceSchema, motionSensorSchema, notificationSchema, orderSchema, organizationSchema, paymentSchema, policySchema, productSchema, propertySchema, reservationSchema, serverSchema, sessionSchema, shortLinkSchema, smsMessageSchema, spaceSchema, switchSchema, systemSchema, systemUserSchema, thermostatSchema, ticketSchema, timeSheetSchema, getters as userGetters, userSchema, vendorSchema, windowCoveringSchema };
47
+ export { alarmSchema, announcementSchema, automationSchema, cameraSchema, categorySchema, courtesySchema, credentialSchema, departmentSchema, dimmerSchema, discoveredDeviceSchema, emailMessageSchema, energyReportSchema, energyReportShardSchema, gatewaySchema, groupSchema, identificationSchema, integrationSchema, issueSchema, lockSchema, logSchema, methods as mediaFileMethods, mediaFileSchema, mediaSourceSchema, motionSensorSchema, notificationSchema, orderSchema, organizationSchema, paymentSchema, policySchema, productSchema, propertySchema, reservationSchema, serverSchema, sessionSchema, shortLinkSchema, smsMessageSchema, sosTypeSchema, spaceSchema, switchSchema, systemSchema, systemUserSchema, thermostatSchema, ticketSchema, timeSheetSchema, getters as userGetters, userSchema, vendorSchema, windowCoveringSchema };
@@ -183,6 +183,25 @@ export declare const organizationSchema: {
183
183
  };
184
184
  };
185
185
  };
186
+ readonly SOS: {
187
+ readonly type: "object";
188
+ readonly additionalProperties: false;
189
+ readonly properties: {
190
+ readonly types: {
191
+ readonly type: "object";
192
+ readonly additionalProperties: false;
193
+ readonly properties: {
194
+ readonly order: {
195
+ readonly type: "array";
196
+ readonly description: string;
197
+ readonly items: {
198
+ readonly type: "string";
199
+ };
200
+ };
201
+ };
202
+ };
203
+ };
204
+ };
186
205
  };
187
206
  };
188
207
  readonly credentials: {
@@ -107,40 +107,55 @@ const organizationSchema = {
107
107
  features: {
108
108
  type: "object",
109
109
  additionalProperties: false,
110
- properties: { Concierge: {
111
- type: "object",
112
- additionalProperties: false,
113
- properties: {
114
- tickets: {
115
- type: "object",
116
- properties: { nextTicketNumber: {
117
- type: ["string", "integer"],
118
- default: 1
119
- } }
120
- },
121
- departments: {
110
+ properties: {
111
+ Concierge: {
112
+ type: "object",
113
+ additionalProperties: false,
114
+ properties: {
115
+ tickets: {
116
+ type: "object",
117
+ properties: { nextTicketNumber: {
118
+ type: ["string", "integer"],
119
+ default: 1
120
+ } }
121
+ },
122
+ departments: {
123
+ type: "object",
124
+ additionalProperties: false,
125
+ properties: { order: {
126
+ type: "array",
127
+ description: "Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.",
128
+ items: { type: "string" }
129
+ } }
130
+ },
131
+ issues: {
132
+ type: "object",
133
+ additionalProperties: false,
134
+ properties: { order: {
135
+ type: "object",
136
+ description: "Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.",
137
+ additionalProperties: {
138
+ type: "array",
139
+ items: { type: "string" }
140
+ }
141
+ } }
142
+ }
143
+ }
144
+ },
145
+ SOS: {
146
+ type: "object",
147
+ additionalProperties: false,
148
+ properties: { types: {
122
149
  type: "object",
123
150
  additionalProperties: false,
124
151
  properties: { order: {
125
152
  type: "array",
126
- description: "Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.",
153
+ description: "Org-wide curated SOS Type ID order. Each Property renders its subset of SOS Types in this order; org-wide and per-property-selected types share one order. IDs for deleted SOS Types are ignored on read; SOS Types not yet listed sort to the end alphabetically.",
127
154
  items: { type: "string" }
128
155
  } }
129
- },
130
- issues: {
131
- type: "object",
132
- additionalProperties: false,
133
- properties: { order: {
134
- type: "object",
135
- description: "Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.",
136
- additionalProperties: {
137
- type: "array",
138
- items: { type: "string" }
139
- }
140
- } }
141
- }
156
+ } }
142
157
  }
143
- } }
158
+ }
144
159
  },
145
160
  credentials: {
146
161
  type: "object",
@@ -1 +1 @@
1
- {"version":3,"file":"organization.js","names":[],"sources":["../../.generated/schemas/organization.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const organizationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"organization.json\",\n title: \"Organization\",\n type: \"object\",\n description:\n \"An organization is a group or entity that subscribes to Kohost software.\",\n required: [\"id\", \"type\", \"accountNumber\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"organization\",\n enum: [\"organization\"],\n },\n accountNumber: {\n type: [\"number\", \"null\"],\n },\n name: {\n type: \"string\",\n },\n smsNumber: {\n type: \"string\",\n },\n properties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n appManifest: {\n type: \"object\",\n\n properties: {\n name: {\n type: \"string\",\n },\n short_name: {\n type: \"string\",\n },\n scope: {\n type: \"string\",\n },\n start_url: {\n type: \"string\",\n },\n themeColor: {\n type: \"string\",\n },\n backgroundColor: {\n type: \"string\",\n },\n display: {\n type: \"string\",\n enum: [\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"],\n default: \"fullscreen\",\n },\n orientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"],\n default: \"portrait\",\n },\n splash: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n icons: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n },\n },\n },\n logo: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n },\n default: {\n name: \"Kohost\",\n short_name: \"Kohost\",\n start_url: \"/\",\n scope: \"/\",\n display: \"fullscreen\",\n orientation: \"portrait\",\n theme_color: \"#1d1f22\",\n background_color: \"#1d1f22\",\n icons: [\n {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/9c85047f-ccba-4b1c-3070-5463fbe93b00/w=512\",\n sizes: \"512x512\",\n type: \"image/png\",\n },\n ],\n splash: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/034fb112-5326-4d37-373e-d1cc2a4d0400/w=1500\",\n sizes: \"1500x800\",\n type: \"image/jpg\",\n },\n logo: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/1e54c54d-3bac-4745-f46f-c2f98036af00/h=75\",\n sizes: \"300x75\",\n type: \"image/png\",\n },\n },\n },\n features: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n Concierge: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n tickets: {\n type: \"object\",\n properties: {\n nextTicketNumber: {\n type: [\"string\", \"integer\"],\n default: 1,\n },\n },\n },\n departments: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n issues: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"object\",\n description:\n \"Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.\",\n additionalProperties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n },\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n properties: {\n webhookToken: { type: \"string\" },\n },\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type OrganizationSchema = FromSchema<\n typeof organizationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAM;EAAQ;EAAiB;CAAM;CAChD,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,eAAe,EACb,MAAM,CAAC,UAAU,MAAM,EACzB;EACA,MAAM,EACJ,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,YAAY;GACV,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,aAAa;GACX,MAAM;GAEN,YAAY;IACV,MAAM,EACJ,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,WAAW,EACT,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,iBAAiB,EACf,MAAM,SACR;IACA,SAAS;KACP,MAAM;KACN,MAAM;MAAC;MAAc;MAAc;MAAc;KAAS;KAC1D,SAAS;IACX;IACA,aAAa;KACX,MAAM;KACN,MAAM,CAAC,YAAY,WAAW;KAC9B,SAAS;IACX;IACA,QAAQ;KACN,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;IACA,OAAO;KACL,MAAM;KACN,OAAO;MACL,MAAM;MACN,YAAY;OACV,KAAK,EACH,MAAM,SACR;OACA,OAAO,EACL,MAAM,SACR;OACA,MAAM,EACJ,MAAM,SACR;MACF;KACF;IACF;IACA,MAAM;KACJ,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;GACF;GACA,SAAS;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,OAAO,CACL;KACE,KAAK;KACL,OAAO;KACP,MAAM;IACR,CACF;IACA,QAAQ;KACN,KAAK;KACL,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,KAAK;KACL,OAAO;KACP,MAAM;IACR;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,sBAAsB;GACtB,YAAY,EACV,WAAW;IACT,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,SAAS;MACP,MAAM;MACN,YAAY,EACV,kBAAkB;OAChB,MAAM,CAAC,UAAU,SAAS;OAC1B,SAAS;MACX,EACF;KACF;KACA,aAAa;MACX,MAAM;MACN,sBAAsB;MACtB,YAAY,EACV,OAAO;OACL,MAAM;OACN,aACE;OACF,OAAO,EACL,MAAM,SACR;MACF,EACF;KACF;KACA,QAAQ;MACN,MAAM;MACN,sBAAsB;MACtB,YAAY,EACV,OAAO;OACL,MAAM;OACN,aACE;OACF,sBAAsB;QACpB,MAAM;QACN,OAAO,EACL,MAAM,SACR;OACF;MACF,EACF;KACF;IACF;GACF,EACF;EACF;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;GACtB,YAAY,EACV,cAAc,EAAE,MAAM,SAAS,EACjC;EACF;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;CACF;AACF"}
1
+ {"version":3,"file":"organization.js","names":[],"sources":["../../.generated/schemas/organization.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const organizationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"organization.json\",\n title: \"Organization\",\n type: \"object\",\n description:\n \"An organization is a group or entity that subscribes to Kohost software.\",\n required: [\"id\", \"type\", \"accountNumber\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"organization\",\n enum: [\"organization\"],\n },\n accountNumber: {\n type: [\"number\", \"null\"],\n },\n name: {\n type: \"string\",\n },\n smsNumber: {\n type: \"string\",\n },\n properties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n appManifest: {\n type: \"object\",\n\n properties: {\n name: {\n type: \"string\",\n },\n short_name: {\n type: \"string\",\n },\n scope: {\n type: \"string\",\n },\n start_url: {\n type: \"string\",\n },\n themeColor: {\n type: \"string\",\n },\n backgroundColor: {\n type: \"string\",\n },\n display: {\n type: \"string\",\n enum: [\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"],\n default: \"fullscreen\",\n },\n orientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"],\n default: \"portrait\",\n },\n splash: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n icons: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n },\n },\n },\n logo: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n },\n default: {\n name: \"Kohost\",\n short_name: \"Kohost\",\n start_url: \"/\",\n scope: \"/\",\n display: \"fullscreen\",\n orientation: \"portrait\",\n theme_color: \"#1d1f22\",\n background_color: \"#1d1f22\",\n icons: [\n {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/9c85047f-ccba-4b1c-3070-5463fbe93b00/w=512\",\n sizes: \"512x512\",\n type: \"image/png\",\n },\n ],\n splash: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/034fb112-5326-4d37-373e-d1cc2a4d0400/w=1500\",\n sizes: \"1500x800\",\n type: \"image/jpg\",\n },\n logo: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/1e54c54d-3bac-4745-f46f-c2f98036af00/h=75\",\n sizes: \"300x75\",\n type: \"image/png\",\n },\n },\n },\n features: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n Concierge: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n tickets: {\n type: \"object\",\n properties: {\n nextTicketNumber: {\n type: [\"string\", \"integer\"],\n default: 1,\n },\n },\n },\n departments: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n issues: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"object\",\n description:\n \"Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.\",\n additionalProperties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n types: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated SOS Type ID order. Each Property renders its subset of \" +\n \"SOS Types in this order; org-wide and per-property-selected types share one \" +\n \"order. IDs for deleted SOS Types are ignored on read; SOS Types not yet listed \" +\n \"sort to the end alphabetically.\",\n items: { type: \"string\" },\n },\n },\n },\n },\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n properties: {\n webhookToken: { type: \"string\" },\n },\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type OrganizationSchema = FromSchema<\n typeof organizationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAM;EAAQ;EAAiB;CAAM;CAChD,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,eAAe,EACb,MAAM,CAAC,UAAU,MAAM,EACzB;EACA,MAAM,EACJ,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,YAAY;GACV,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,aAAa;GACX,MAAM;GAEN,YAAY;IACV,MAAM,EACJ,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,WAAW,EACT,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,iBAAiB,EACf,MAAM,SACR;IACA,SAAS;KACP,MAAM;KACN,MAAM;MAAC;MAAc;MAAc;MAAc;KAAS;KAC1D,SAAS;IACX;IACA,aAAa;KACX,MAAM;KACN,MAAM,CAAC,YAAY,WAAW;KAC9B,SAAS;IACX;IACA,QAAQ;KACN,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;IACA,OAAO;KACL,MAAM;KACN,OAAO;MACL,MAAM;MACN,YAAY;OACV,KAAK,EACH,MAAM,SACR;OACA,OAAO,EACL,MAAM,SACR;OACA,MAAM,EACJ,MAAM,SACR;MACF;KACF;IACF;IACA,MAAM;KACJ,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;GACF;GACA,SAAS;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,OAAO,CACL;KACE,KAAK;KACL,OAAO;KACP,MAAM;IACR,CACF;IACA,QAAQ;KACN,KAAK;KACL,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,KAAK;KACL,OAAO;KACP,MAAM;IACR;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,WAAW;KACT,MAAM;KACN,sBAAsB;KACtB,YAAY;MACV,SAAS;OACP,MAAM;OACN,YAAY,EACV,kBAAkB;QAChB,MAAM,CAAC,UAAU,SAAS;QAC1B,SAAS;OACX,EACF;MACF;MACA,aAAa;OACX,MAAM;OACN,sBAAsB;OACtB,YAAY,EACV,OAAO;QACL,MAAM;QACN,aACE;QACF,OAAO,EACL,MAAM,SACR;OACF,EACF;MACF;MACA,QAAQ;OACN,MAAM;OACN,sBAAsB;OACtB,YAAY,EACV,OAAO;QACL,MAAM;QACN,aACE;QACF,sBAAsB;SACpB,MAAM;SACN,OAAO,EACL,MAAM,SACR;QACF;OACF,EACF;MACF;KACF;IACF;IACA,KAAK;KACH,MAAM;KACN,sBAAsB;KACtB,YAAY,EACV,OAAO;MACL,MAAM;MACN,sBAAsB;MACtB,YAAY,EACV,OAAO;OACL,MAAM;OACN,aACE;OAIF,OAAO,EAAE,MAAM,SAAS;MAC1B,EACF;KACF,EACF;IACF;GACF;EACF;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;GACtB,YAAY,EACV,cAAc,EAAE,MAAM,SAAS,EACjC;EACF;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;CACF;AACF"}
@@ -196,11 +196,10 @@ export declare const propertySchema: {
196
196
  readonly activatedMessage: {
197
197
  readonly type: readonly ["string", "null"];
198
198
  };
199
- readonly activeEmergencies: {
199
+ readonly activeSOSTypeIds: {
200
200
  readonly type: "array";
201
201
  readonly items: {
202
202
  readonly type: "string";
203
- readonly enum: readonly ["medical", "fire", "suspiciousPerson", "other", "conflict", "shooter"];
204
203
  };
205
204
  };
206
205
  readonly deactivatedAt: {
@@ -156,19 +156,9 @@ const propertySchema = {
156
156
  }
157
157
  },
158
158
  activatedMessage: { type: ["string", "null"] },
159
- activeEmergencies: {
159
+ activeSOSTypeIds: {
160
160
  type: "array",
161
- items: {
162
- type: "string",
163
- enum: [
164
- "medical",
165
- "fire",
166
- "suspiciousPerson",
167
- "other",
168
- "conflict",
169
- "shooter"
170
- ]
171
- }
161
+ items: { type: "string" }
172
162
  },
173
163
  deactivatedAt: {
174
164
  type: ["string", "null"],
@@ -1 +1 @@
1
- {"version":3,"file":"property.js","names":[],"sources":["../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"education\", \"commercial\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n features: {\n type: \"object\",\n properties: {\n SmartBuilding: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeEmergencies: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"medical\",\n \"fire\",\n \"suspiciousPerson\",\n \"other\",\n \"conflict\",\n \"shooter\",\n ],\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n Resources: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n SmartBuilding: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,iBAAiB;CAC5B,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aAAa;CACb,UAAU;EAAC;EAAM;EAAQ;EAAQ;EAAgB;EAAY;CAAe;CAC5E,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM,EACJ,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,UAAU;EACnB;EACA,eAAe;GACb,MAAM;GACN,MAAM,CAAC,aAAa,YAAY;EAClC;EACA,cAAc;GACZ,MAAM;GACN,aAAa;EACf;EACA,iBAAiB,EACf,MAAM,UACR;EACA,UAAU;GACR,MAAM;GACN,YAAY;IACV,oBAAoB;KAClB,MAAM;KACN,OAAO,EACL,MAAM,SACR;KACA,aACE;IACJ;IACA,0BAA0B;KACxB,MAAM;KACN,OAAO,EACL,MAAM,SACR;KACA,aACE;IACJ;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,aAAa;GACb,SAAS;GACT,UAAU,CAAC,oBAAoB,qBAAqB;EACtD;EACA,WAAW,EACT,MAAM,SACR;EACA,aAAa,EACX,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,SAAS,EACP,MAAM,wCACR;EACA,UAAU,EACR,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,UAAU;GACR,MAAM;GACN,YAAY;IACV,eAAe;KACb,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,aAAa;OACX,MAAM;OACN,mBAAmB,EACjB,kBAAkB;QAChB,MAAM;QACN,YAAY,EACV,aAAa;SACX,MAAM;SACN,aAAa;SACb,sBAAsB,EAAE,MAAM,SAAS;QACzC,EACF;OACF,EACF;OACA,UAAU,CACR,EACE,UAAU,EACR,aAAa;QACX,GAAG;QACH,GAAG;QACH,GAAG;OACL,EACF,EACF,CACF;MACF;MACA,cAAc;OACZ,MAAM;OACN,mBAAmB;QACjB,MAAM;QACN,mBAAmB,EACjB,kBAAkB;SAChB,MAAM;SACN,YAAY,EACV,SAAS;UACP,MAAM;UACN,OAAO,EACL,MAAM,SACR;UACA,SAAS,CAAC;UACV,aACE;SACJ,EACF;QACF,EACF;OACF;OACA,UAAU,CACR,EACE,UAAU,EACR,SAAS,CAAC,YAAY,UAAU,EAClC,EACF,CACF;MACF;KACF;KACA,sBAAsB;IACxB;IACA,WAAW;KACT,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,cAAc;OACZ,MAAM;OACN,SAAS;MACX;MACA,UAAU;OACR,MAAM;OACN,SAAS;MACX;MACA,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,mBAAmB;OACjB,MAAM,CAAC,UAAU,MAAM;OACvB,MAAM,CAAC,OAAO,OAAO;OACrB,SAAS;OACT,aACE;MACJ;KACF;IACF;IACA,KAAK;KACH,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,QAAQ,EACN,MAAM,UACR;MACA,aAAa;OACX,MAAM,CAAC,UAAU,MAAM;OACvB,QAAQ;MACV;MACA,aAAa;OACX,MAAM,CAAC,UAAU,MAAM;OACvB,YAAY;QACV,IAAI,EACF,MAAM,SACR;QACA,eAAe,EACb,MAAM;SAAC;SAAQ;SAAU;QAAY,EACvC;OACF;MACF;MACA,kBAAkB,EAChB,MAAM,CAAC,UAAU,MAAM,EACzB;MACA,mBAAmB;OACjB,MAAM;OACN,OAAO;QACL,MAAM;QACN,MAAM;SACJ;SACA;SACA;SACA;SACA;SACA;QACF;OACF;MACF;MACA,eAAe;OACb,MAAM,CAAC,UAAU,MAAM;OACvB,QAAQ;MACV;MACA,eAAe;OACb,MAAM,CAAC,UAAU,MAAM;OACvB,YAAY;QACV,IAAI,EACF,MAAM,SACR;QACA,eAAe,EACb,MAAM;SAAC;SAAQ;SAAU;QAAY,EACvC;OACF;MACF;KACF;IACF;IACA,aAAa;KACX,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,WAAW;KACT,MAAM;KACN,YAAY,EACV,SAAS;MACP,MAAM;MACN,SAAS;KACX,EACF;KACA,sBAAsB;IACxB;GACF;GACA,sBAAsB;GACtB,SAAS,EACP,eAAe,CAAC,EAClB;EACF;EACA,eAAe;GACb,MAAM;GACN,YAAY;IACV,OAAO;KACL,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,KAAK;KACH,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,MAAM;KACJ,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;GACF;GACA,sBAAsB;GACtB,SAAS;IACP,OAAO,EACL,SAAS,MACX;IACA,KAAK,EACH,SAAS,MACX;IACA,MAAM,EACJ,SAAS,MACX;GACF;EACF;EACA,WAAW,EACT,MAAM,qCACR;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;EACxB;CACF;AACF"}
1
+ {"version":3,"file":"property.js","names":[],"sources":["../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"education\", \"commercial\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n features: {\n type: \"object\",\n properties: {\n SmartBuilding: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeSOSTypeIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n Resources: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n SmartBuilding: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,iBAAiB;CAC5B,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aAAa;CACb,UAAU;EAAC;EAAM;EAAQ;EAAQ;EAAgB;EAAY;CAAe;CAC5E,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM,EACJ,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,UAAU;EACnB;EACA,eAAe;GACb,MAAM;GACN,MAAM,CAAC,aAAa,YAAY;EAClC;EACA,cAAc;GACZ,MAAM;GACN,aAAa;EACf;EACA,iBAAiB,EACf,MAAM,UACR;EACA,UAAU;GACR,MAAM;GACN,YAAY;IACV,oBAAoB;KAClB,MAAM;KACN,OAAO,EACL,MAAM,SACR;KACA,aACE;IACJ;IACA,0BAA0B;KACxB,MAAM;KACN,OAAO,EACL,MAAM,SACR;KACA,aACE;IACJ;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,aAAa;GACb,SAAS;GACT,UAAU,CAAC,oBAAoB,qBAAqB;EACtD;EACA,WAAW,EACT,MAAM,SACR;EACA,aAAa,EACX,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,SAAS,EACP,MAAM,wCACR;EACA,UAAU,EACR,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,UAAU;GACR,MAAM;GACN,YAAY;IACV,eAAe;KACb,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,aAAa;OACX,MAAM;OACN,mBAAmB,EACjB,kBAAkB;QAChB,MAAM;QACN,YAAY,EACV,aAAa;SACX,MAAM;SACN,aAAa;SACb,sBAAsB,EAAE,MAAM,SAAS;QACzC,EACF;OACF,EACF;OACA,UAAU,CACR,EACE,UAAU,EACR,aAAa;QACX,GAAG;QACH,GAAG;QACH,GAAG;OACL,EACF,EACF,CACF;MACF;MACA,cAAc;OACZ,MAAM;OACN,mBAAmB;QACjB,MAAM;QACN,mBAAmB,EACjB,kBAAkB;SAChB,MAAM;SACN,YAAY,EACV,SAAS;UACP,MAAM;UACN,OAAO,EACL,MAAM,SACR;UACA,SAAS,CAAC;UACV,aACE;SACJ,EACF;QACF,EACF;OACF;OACA,UAAU,CACR,EACE,UAAU,EACR,SAAS,CAAC,YAAY,UAAU,EAClC,EACF,CACF;MACF;KACF;KACA,sBAAsB;IACxB;IACA,WAAW;KACT,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,cAAc;OACZ,MAAM;OACN,SAAS;MACX;MACA,UAAU;OACR,MAAM;OACN,SAAS;MACX;MACA,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,mBAAmB;OACjB,MAAM,CAAC,UAAU,MAAM;OACvB,MAAM,CAAC,OAAO,OAAO;OACrB,SAAS;OACT,aACE;MACJ;KACF;IACF;IACA,KAAK;KACH,MAAM;KACN,YAAY;MACV,SAAS;OACP,MAAM;OACN,SAAS;MACX;MACA,QAAQ,EACN,MAAM,UACR;MACA,aAAa;OACX,MAAM,CAAC,UAAU,MAAM;OACvB,QAAQ;MACV;MACA,aAAa;OACX,MAAM,CAAC,UAAU,MAAM;OACvB,YAAY;QACV,IAAI,EACF,MAAM,SACR;QACA,eAAe,EACb,MAAM;SAAC;SAAQ;SAAU;QAAY,EACvC;OACF;MACF;MACA,kBAAkB,EAChB,MAAM,CAAC,UAAU,MAAM,EACzB;MACA,kBAAkB;OAChB,MAAM;OACN,OAAO,EACL,MAAM,SACR;MACF;MACA,eAAe;OACb,MAAM,CAAC,UAAU,MAAM;OACvB,QAAQ;MACV;MACA,eAAe;OACb,MAAM,CAAC,UAAU,MAAM;OACvB,YAAY;QACV,IAAI,EACF,MAAM,SACR;QACA,eAAe,EACb,MAAM;SAAC;SAAQ;SAAU;QAAY,EACvC;OACF;MACF;KACF;IACF;IACA,aAAa;KACX,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,WAAW;KACT,MAAM;KACN,YAAY,EACV,SAAS;MACP,MAAM;MACN,SAAS;KACX,EACF;KACA,sBAAsB;IACxB;GACF;GACA,sBAAsB;GACtB,SAAS,EACP,eAAe,CAAC,EAClB;EACF;EACA,eAAe;GACb,MAAM;GACN,YAAY;IACV,OAAO;KACL,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,KAAK;KACH,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;IACA,MAAM;KACJ,MAAM;KACN,YAAY,EACV,SAAS,EACP,MAAM,UACR,EACF;KACA,sBAAsB;IACxB;GACF;GACA,sBAAsB;GACtB,SAAS;IACP,OAAO,EACL,SAAS,MACX;IACA,KAAK,EACH,SAAS,MACX;IACA,MAAM,EACJ,SAAS,MACX;GACF;EACF;EACA,WAAW,EACT,MAAM,qCACR;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;EACxB;CACF;AACF"}
@@ -0,0 +1,76 @@
1
+ import defs, { ISODateString } from "./definitions.js";
2
+ import type { FromSchema } from "json-schema-to-ts";
3
+ export declare const sosTypeSchema: {
4
+ readonly $schema: "http://json-schema.org/draft-07/schema";
5
+ readonly $id: "sosType.json";
6
+ readonly title: "SOS Type";
7
+ readonly description: "A customizable emergency category in an organization's SOS library.";
8
+ readonly type: "object";
9
+ readonly required: readonly ["id", "name", "nameKey", "iconKey", "scope"];
10
+ readonly additionalProperties: false;
11
+ readonly properties: {
12
+ readonly id: {
13
+ readonly $ref: "definitions.json#/definitions/id";
14
+ readonly description: "Unique identifier for the SOS Type.";
15
+ };
16
+ readonly name: {
17
+ readonly type: "string";
18
+ readonly minLength: 1;
19
+ readonly description: "Display name of the emergency category, rendered on the panic-grid tile (e.g. \"Medical\", \"Lockdown\").";
20
+ };
21
+ readonly nameKey: {
22
+ readonly type: "string";
23
+ readonly minLength: 1;
24
+ readonly description: "Normalized name (trimmed, whitespace-collapsed, lowercased) used for case-insensitive uniqueness within the organization's library. Derived from `name` on create; unique among non-deleted types.";
25
+ };
26
+ readonly iconKey: {
27
+ readonly type: "string";
28
+ readonly minLength: 1;
29
+ readonly description: "Key into the app's curated SOS icon gallery, selecting the glyph shown on the tile.";
30
+ };
31
+ readonly scope: {
32
+ readonly type: "object";
33
+ readonly description: "Where this SOS Type is offered: an org-wide `default` plus a sparse map of per-Property overrides. Mirrors an Issue's routing shape; `false` suppresses, an absent key inherits `default`.";
34
+ readonly additionalProperties: false;
35
+ readonly properties: {
36
+ readonly default: {
37
+ readonly type: "boolean";
38
+ readonly default: false;
39
+ readonly description: "Org-wide baseline: whether the type is offered at Properties with no override, including Properties added later.";
40
+ };
41
+ readonly properties: {
42
+ readonly type: "object";
43
+ readonly additionalProperties: {
44
+ readonly type: "boolean";
45
+ };
46
+ readonly default: {};
47
+ readonly description: "Sparse per-Property overrides keyed by Property ID: `true` opts in, `false` opts out, an absent key inherits `default`.";
48
+ };
49
+ };
50
+ };
51
+ readonly createdAt: {
52
+ readonly $ref: "definitions.json#/definitions/date";
53
+ readonly description: "When the SOS Type was created.";
54
+ };
55
+ readonly updatedAt: {
56
+ readonly $ref: "definitions.json#/definitions/date";
57
+ readonly description: "When the SOS Type was last modified.";
58
+ };
59
+ readonly deletedAt: {
60
+ readonly type: readonly ["string", "object", "null"];
61
+ readonly format: "date-time";
62
+ readonly description: "Soft-delete tombstone. Deleted types are hidden from the library and release their `nameKey` for reuse.";
63
+ };
64
+ };
65
+ };
66
+ export type SOSTypeSchema = FromSchema<typeof sosTypeSchema, {
67
+ references: [typeof defs];
68
+ deserialize: [
69
+ {
70
+ pattern: {
71
+ format: "date-time";
72
+ };
73
+ output: Date | ISODateString;
74
+ }
75
+ ];
76
+ }>;