@kohost/api-client 6.5.0 → 7.1.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.
- package/dist/httpClient.d.ts +8 -12
- package/dist/index-BnWbLEt_.d.ts +22 -0
- package/dist/{index-CwkLEwUB.d.ts → index-DJzBywIl.d.ts} +13 -21
- package/dist/index.d.ts +11 -11
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/deviceNotifications.d.ts +19 -0
- package/dist/lib/deviceNotifications.js +35 -0
- package/dist/lib/deviceNotifications.js.map +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +23 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/policy-resolvers.d.ts +12 -0
- package/dist/lib/policy-resolvers.js +75 -0
- package/dist/lib/policy-resolvers.js.map +1 -0
- package/dist/lib/systemCategories.d.ts +10 -0
- package/dist/lib/systemCategories.js +61 -0
- package/dist/lib/systemCategories.js.map +1 -0
- package/dist/models/alarm.js +1 -0
- package/dist/models/alarm.js.map +1 -1
- package/dist/models/announcement.js +1 -0
- package/dist/models/announcement.js.map +1 -1
- package/dist/models/automation.js +1 -0
- package/dist/models/automation.js.map +1 -1
- package/dist/models/camera.js +1 -0
- package/dist/models/camera.js.map +1 -1
- package/dist/models/category.js +1 -0
- package/dist/models/category.js.map +1 -1
- package/dist/models/courtesy.js +1 -0
- package/dist/models/courtesy.js.map +1 -1
- package/dist/models/credential.js +1 -0
- package/dist/models/credential.js.map +1 -1
- package/dist/models/dimmer.js +1 -0
- package/dist/models/dimmer.js.map +1 -1
- package/dist/models/emailMessage.js +1 -0
- package/dist/models/emailMessage.js.map +1 -1
- package/dist/models/energyReport.js +1 -0
- package/dist/models/energyReport.js.map +1 -1
- package/dist/models/gateway.js +1 -0
- package/dist/models/gateway.js.map +1 -1
- package/dist/models/issue.d.ts +1 -1
- package/dist/models/issue.js +2 -7
- package/dist/models/issue.js.map +1 -1
- package/dist/models/lock.js +1 -0
- package/dist/models/lock.js.map +1 -1
- package/dist/models/log.js +1 -0
- package/dist/models/log.js.map +1 -1
- package/dist/models/mediaFile.js +1 -0
- package/dist/models/mediaFile.js.map +1 -1
- package/dist/models/mediaSource.js +1 -0
- package/dist/models/mediaSource.js.map +1 -1
- package/dist/models/motionSensor.js +1 -0
- package/dist/models/motionSensor.js.map +1 -1
- package/dist/models/notification.js +1 -0
- package/dist/models/notification.js.map +1 -1
- package/dist/models/order.js +1 -0
- package/dist/models/order.js.map +1 -1
- package/dist/models/organization.js +1 -2
- package/dist/models/organization.js.map +1 -1
- package/dist/models/payment.js +1 -0
- package/dist/models/payment.js.map +1 -1
- package/dist/models/policy.js +1 -0
- package/dist/models/policy.js.map +1 -1
- package/dist/models/product.js +1 -0
- package/dist/models/product.js.map +1 -1
- package/dist/models/property.js +1 -1
- package/dist/models/property.js.map +1 -1
- package/dist/models/reservation.js +1 -0
- package/dist/models/reservation.js.map +1 -1
- package/dist/models/shortLink.js +1 -0
- package/dist/models/shortLink.js.map +1 -1
- package/dist/models/smsMessage.js +1 -0
- package/dist/models/smsMessage.js.map +1 -1
- package/dist/models/space.js +1 -0
- package/dist/models/space.js.map +1 -1
- package/dist/models/switch.js +1 -0
- package/dist/models/switch.js.map +1 -1
- package/dist/models/thermostat.js +1 -0
- package/dist/models/thermostat.js.map +1 -1
- package/dist/models/ticket.js +4 -0
- package/dist/models/ticket.js.map +1 -1
- package/dist/models/timeSheet.js +1 -0
- package/dist/models/timeSheet.js.map +1 -1
- package/dist/models/user.js +0 -1
- package/dist/models/user.js.map +1 -1
- package/dist/models/vendor.js +2 -0
- package/dist/models/vendor.js.map +1 -1
- package/dist/models/windowCovering.js +1 -0
- package/dist/models/windowCovering.js.map +1 -1
- package/dist/schemas/alarm.d.ts +4 -0
- package/dist/schemas/alarm.js +4 -0
- package/dist/schemas/alarm.js.map +1 -1
- package/dist/schemas/announcement.d.ts +4 -0
- package/dist/schemas/announcement.js +4 -0
- package/dist/schemas/announcement.js.map +1 -1
- package/dist/schemas/automation.d.ts +4 -0
- package/dist/schemas/automation.js +4 -0
- package/dist/schemas/automation.js.map +1 -1
- package/dist/schemas/camera.d.ts +4 -0
- package/dist/schemas/camera.js +4 -0
- package/dist/schemas/camera.js.map +1 -1
- package/dist/schemas/category.d.ts +4 -0
- package/dist/schemas/category.js +4 -0
- package/dist/schemas/category.js.map +1 -1
- package/dist/schemas/courtesy.d.ts +4 -0
- package/dist/schemas/courtesy.js +4 -0
- package/dist/schemas/courtesy.js.map +1 -1
- package/dist/schemas/credential.d.ts +4 -1
- package/dist/schemas/credential.js +5 -1
- package/dist/schemas/credential.js.map +1 -1
- package/dist/schemas/definitions.d.ts +1 -1
- package/dist/schemas/definitions.js +6 -1
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/dimmer.d.ts +4 -0
- package/dist/schemas/dimmer.js +4 -0
- package/dist/schemas/dimmer.js.map +1 -1
- package/dist/schemas/emailMessage.d.ts +4 -0
- package/dist/schemas/emailMessage.js +4 -0
- package/dist/schemas/emailMessage.js.map +1 -1
- package/dist/schemas/energyReport.d.ts +4 -0
- package/dist/schemas/energyReport.js +4 -0
- package/dist/schemas/energyReport.js.map +1 -1
- package/dist/schemas/gateway.d.ts +4 -0
- package/dist/schemas/gateway.js +4 -0
- package/dist/schemas/gateway.js.map +1 -1
- package/dist/schemas/issue.d.ts +126 -43
- package/dist/schemas/issue.js +88 -44
- package/dist/schemas/issue.js.map +1 -1
- package/dist/schemas/lock.d.ts +4 -0
- package/dist/schemas/lock.js +4 -0
- package/dist/schemas/lock.js.map +1 -1
- package/dist/schemas/log.d.ts +4 -0
- package/dist/schemas/log.js +4 -0
- package/dist/schemas/log.js.map +1 -1
- package/dist/schemas/mediaFile.d.ts +4 -0
- package/dist/schemas/mediaFile.js +4 -0
- package/dist/schemas/mediaFile.js.map +1 -1
- package/dist/schemas/mediaSource.d.ts +4 -0
- package/dist/schemas/mediaSource.js +4 -0
- package/dist/schemas/mediaSource.js.map +1 -1
- package/dist/schemas/motionSensor.d.ts +4 -0
- package/dist/schemas/motionSensor.js +4 -0
- package/dist/schemas/motionSensor.js.map +1 -1
- package/dist/schemas/notification.d.ts +4 -0
- package/dist/schemas/notification.js +4 -0
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/order.d.ts +4 -0
- package/dist/schemas/order.js +4 -0
- package/dist/schemas/order.js.map +1 -1
- package/dist/schemas/organization.d.ts +45 -13
- package/dist/schemas/organization.js +46 -10
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/payment.d.ts +4 -0
- package/dist/schemas/payment.js +4 -0
- package/dist/schemas/payment.js.map +1 -1
- package/dist/schemas/policy.d.ts +4 -0
- package/dist/schemas/policy.js +4 -0
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/product.d.ts +4 -0
- package/dist/schemas/product.js +4 -0
- package/dist/schemas/product.js.map +1 -1
- package/dist/schemas/property.d.ts +13 -11
- package/dist/schemas/property.js +13 -11
- package/dist/schemas/property.js.map +1 -1
- package/dist/schemas/reservation.d.ts +4 -0
- package/dist/schemas/reservation.js +4 -0
- package/dist/schemas/reservation.js.map +1 -1
- package/dist/schemas/shortLink.d.ts +4 -0
- package/dist/schemas/shortLink.js +4 -0
- package/dist/schemas/shortLink.js.map +1 -1
- package/dist/schemas/smsMessage.d.ts +4 -0
- package/dist/schemas/smsMessage.js +4 -0
- package/dist/schemas/smsMessage.js.map +1 -1
- package/dist/schemas/space.d.ts +4 -0
- package/dist/schemas/space.js +4 -0
- package/dist/schemas/space.js.map +1 -1
- package/dist/schemas/switch.d.ts +4 -0
- package/dist/schemas/switch.js +4 -0
- package/dist/schemas/switch.js.map +1 -1
- package/dist/schemas/thermostat.d.ts +4 -0
- package/dist/schemas/thermostat.js +4 -0
- package/dist/schemas/thermostat.js.map +1 -1
- package/dist/schemas/ticket.d.ts +14 -0
- package/dist/schemas/ticket.js +14 -0
- package/dist/schemas/ticket.js.map +1 -1
- package/dist/schemas/timeSheet.d.ts +4 -0
- package/dist/schemas/timeSheet.js +4 -0
- package/dist/schemas/timeSheet.js.map +1 -1
- package/dist/schemas/user.d.ts +0 -3
- package/dist/schemas/user.js +0 -3
- package/dist/schemas/user.js.map +1 -1
- package/dist/schemas/vendor.d.ts +12 -0
- package/dist/schemas/vendor.js +12 -0
- package/dist/schemas/vendor.js.map +1 -1
- package/dist/schemas/windowCovering.d.ts +4 -0
- package/dist/schemas/windowCovering.js +4 -0
- package/dist/schemas/windowCovering.js.map +1 -1
- package/dist/useCases/createApiKey.d.ts +38 -0
- package/dist/useCases/{sendSMS.js → createApiKey.js} +9 -9
- package/dist/useCases/createApiKey.js.map +1 -0
- package/dist/useCases/{describeIntegration.d.ts → getApiKey.d.ts} +10 -10
- package/dist/useCases/{listAnnouncements.js → getApiKey.js} +9 -9
- package/dist/useCases/getApiKey.js.map +1 -0
- package/dist/useCases/index.d.ts +6 -10
- package/dist/useCases/index.js +12 -20
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/{deleteAnnouncement.d.ts → revokeApiKey.d.ts} +10 -10
- package/dist/useCases/{deleteAnnouncement.js → revokeApiKey.js} +9 -9
- package/dist/useCases/revokeApiKey.js.map +1 -0
- package/dist/useCases/{updateAnnouncement.d.ts → rotateApiKey.d.ts} +10 -10
- package/dist/useCases/{updateIntegration.js → rotateApiKey.js} +9 -9
- package/dist/useCases/rotateApiKey.js.map +1 -0
- package/dist/useCases/{updateIntegration.d.ts → updateOrganizationFeatures.d.ts} +6 -6
- package/dist/useCases/{updateAnnouncement.js → updateOrganizationFeatures.js} +8 -8
- package/dist/useCases/updateOrganizationFeatures.js.map +1 -0
- package/dist/useCases/{updatePropertySettings.d.ts → updatePropertyFeatures.d.ts} +6 -6
- package/dist/useCases/{updatePropertySettings.js → updatePropertyFeatures.js} +8 -8
- package/dist/useCases/{updatePropertySettings.js.map → updatePropertyFeatures.js.map} +1 -1
- package/dist/validate.d.ts +160 -160
- package/package.json +26 -18
- package/dist/useCases/createAnnouncement.d.ts +0 -29
- package/dist/useCases/createAnnouncement.js +0 -50
- package/dist/useCases/createAnnouncement.js.map +0 -1
- package/dist/useCases/createIntegration.d.ts +0 -29
- package/dist/useCases/createIntegration.js +0 -50
- package/dist/useCases/createIntegration.js.map +0 -1
- package/dist/useCases/deleteAnnouncement.js.map +0 -1
- package/dist/useCases/describeAnnouncement.d.ts +0 -38
- package/dist/useCases/describeAnnouncement.js +0 -50
- package/dist/useCases/describeAnnouncement.js.map +0 -1
- package/dist/useCases/describeIntegration.js +0 -50
- package/dist/useCases/describeIntegration.js.map +0 -1
- package/dist/useCases/listAnnouncements.d.ts +0 -29
- package/dist/useCases/listAnnouncements.js.map +0 -1
- package/dist/useCases/sendSMS.d.ts +0 -29
- package/dist/useCases/sendSMS.js.map +0 -1
- package/dist/useCases/updateAnnouncement.js.map +0 -1
- package/dist/useCases/updateIntegration.js.map +0 -1
package/dist/httpClient.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ import { ListUsersCommand } from './useCases/listUsers.js';
|
|
|
11
11
|
import { UpdateSelfCommand } from './useCases/updateSelf.js';
|
|
12
12
|
import { UpdateUserCommand } from './useCases/updateUser.js';
|
|
13
13
|
import { DeleteUserCommand } from './useCases/deleteUser.js';
|
|
14
|
+
import { CreateApiKeyCommand } from './useCases/createApiKey.js';
|
|
15
|
+
import { GetApiKeyCommand } from './useCases/getApiKey.js';
|
|
16
|
+
import { RotateApiKeyCommand } from './useCases/rotateApiKey.js';
|
|
17
|
+
import { RevokeApiKeyCommand } from './useCases/revokeApiKey.js';
|
|
14
18
|
import { SendVerificationCodeCommand } from './useCases/sendVerificationCode.js';
|
|
15
19
|
import { CheckVerificationCodeCommand } from './useCases/checkVerificationCode.js';
|
|
16
20
|
import { ListUserSpacesCommand } from './useCases/listUserSpaces.js';
|
|
@@ -72,12 +76,10 @@ import { DescribeDiscoveredDeviceCommand } from './useCases/describeDiscoveredDe
|
|
|
72
76
|
import { UpsertDiscoveredDeviceCommand } from './useCases/upsertDiscoveredDevice.js';
|
|
73
77
|
import { CreateDiscoveredDeviceAssociationCommand } from './useCases/createDiscoveredDeviceAssociation.js';
|
|
74
78
|
import { ListIntegrationsCommand } from './useCases/listIntegrations.js';
|
|
75
|
-
import { DescribeIntegrationCommand } from './useCases/describeIntegration.js';
|
|
76
|
-
import { CreateIntegrationCommand } from './useCases/createIntegration.js';
|
|
77
|
-
import { UpdateIntegrationCommand } from './useCases/updateIntegration.js';
|
|
78
79
|
import { DescribeMyOrganizationCommand } from './useCases/describeMyOrganization.js';
|
|
79
80
|
import { CreateOrganizationCommand } from './useCases/createOrganization.js';
|
|
80
81
|
import { UpdateOrganizationCommand } from './useCases/updateOrganization.js';
|
|
82
|
+
import { UpdateOrganizationFeaturesCommand } from './useCases/updateOrganizationFeatures.js';
|
|
81
83
|
import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
|
|
82
84
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
|
|
83
85
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
|
|
@@ -88,16 +90,11 @@ import { CreatePropertyCommand } from './useCases/createProperty.js';
|
|
|
88
90
|
import { DeletePropertyCommand } from './useCases/deleteProperty.js';
|
|
89
91
|
import { UpdatePropertyCommand } from './useCases/updateProperty.js';
|
|
90
92
|
import { DescribePropertyCommand } from './useCases/describeProperty.js';
|
|
91
|
-
import {
|
|
93
|
+
import { UpdatePropertyFeaturesCommand } from './useCases/updatePropertyFeatures.js';
|
|
92
94
|
import { EmailUserAccountSetupCommand } from './useCases/emailUserAccountSetup.js';
|
|
93
95
|
import { CreateImageUploadEndpointCommand } from './useCases/createImageUploadEndpoint.js';
|
|
94
96
|
import { DeleteMediaFileCommand } from './useCases/deleteMediaFile.js';
|
|
95
97
|
import { UploadImageCommand } from './useCases/uploadImage.js';
|
|
96
|
-
import { CreateAnnouncementCommand } from './useCases/createAnnouncement.js';
|
|
97
|
-
import { UpdateAnnouncementCommand } from './useCases/updateAnnouncement.js';
|
|
98
|
-
import { DescribeAnnouncementCommand } from './useCases/describeAnnouncement.js';
|
|
99
|
-
import { DeleteAnnouncementCommand } from './useCases/deleteAnnouncement.js';
|
|
100
|
-
import { ListAnnouncementsCommand } from './useCases/listAnnouncements.js';
|
|
101
98
|
import { DescribeTimeSheetStatsCommand } from './useCases/describeTimeSheetStats.js';
|
|
102
99
|
import { ListMyTimeSheetsCommand } from './useCases/listMyTimeSheets.js';
|
|
103
100
|
import { DescribeTimeSheetCommand } from './useCases/describeTimeSheet.js';
|
|
@@ -130,7 +127,6 @@ import { DeleteAutomationCommand } from './useCases/deleteAutomation.js';
|
|
|
130
127
|
import { CreateDefaultAutomationsCommand } from './useCases/createDefaultAutomations.js';
|
|
131
128
|
import { RunAutomationCommand } from './useCases/runAutomation.js';
|
|
132
129
|
import { SendNotificationCommand } from './useCases/sendNotification.js';
|
|
133
|
-
import { SendSMSCommand } from './useCases/sendSMS.js';
|
|
134
130
|
import { ListSessionsCommand } from './useCases/listSessions.js';
|
|
135
131
|
import { DescribeSessionCommand } from './useCases/describeSession.js';
|
|
136
132
|
import { DeleteSessionCommand } from './useCases/deleteSession.js';
|
|
@@ -214,12 +210,12 @@ declare class KohostHTTPClient {
|
|
|
214
210
|
*
|
|
215
211
|
* @param {Command} command
|
|
216
212
|
*/
|
|
217
|
-
send(command: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof
|
|
213
|
+
send(command: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Promise<any>;
|
|
218
214
|
/**
|
|
219
215
|
* @param {Command} config
|
|
220
216
|
* @returns {Request}
|
|
221
217
|
*/
|
|
222
|
-
createRequest(config: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof
|
|
218
|
+
createRequest(config: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Request;
|
|
223
219
|
#private;
|
|
224
220
|
}
|
|
225
221
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeviceNotificationName, InferDeviceNotificationsInput, inferDeviceNotifications } from './lib/deviceNotifications.js';
|
|
2
|
+
import { CategoryForDeviceInput, SYSTEM_CATEGORIES, SYSTEM_CATEGORY_LABELS, SystemCategory, categoryForDevice } from './lib/systemCategories.js';
|
|
3
|
+
import { PolicyLike, PolicyPermissionLike, getAllowedDeviceTypes, getAllowedFeatures, getAllowedResourceIds } from './lib/policy-resolvers.js';
|
|
4
|
+
|
|
5
|
+
declare const index_CategoryForDeviceInput: typeof CategoryForDeviceInput;
|
|
6
|
+
declare const index_DeviceNotificationName: typeof DeviceNotificationName;
|
|
7
|
+
declare const index_InferDeviceNotificationsInput: typeof InferDeviceNotificationsInput;
|
|
8
|
+
declare const index_PolicyLike: typeof PolicyLike;
|
|
9
|
+
declare const index_PolicyPermissionLike: typeof PolicyPermissionLike;
|
|
10
|
+
declare const index_SYSTEM_CATEGORIES: typeof SYSTEM_CATEGORIES;
|
|
11
|
+
declare const index_SYSTEM_CATEGORY_LABELS: typeof SYSTEM_CATEGORY_LABELS;
|
|
12
|
+
declare const index_SystemCategory: typeof SystemCategory;
|
|
13
|
+
declare const index_categoryForDevice: typeof categoryForDevice;
|
|
14
|
+
declare const index_getAllowedDeviceTypes: typeof getAllowedDeviceTypes;
|
|
15
|
+
declare const index_getAllowedFeatures: typeof getAllowedFeatures;
|
|
16
|
+
declare const index_getAllowedResourceIds: typeof getAllowedResourceIds;
|
|
17
|
+
declare const index_inferDeviceNotifications: typeof inferDeviceNotifications;
|
|
18
|
+
declare namespace index {
|
|
19
|
+
export { index_CategoryForDeviceInput as CategoryForDeviceInput, index_DeviceNotificationName as DeviceNotificationName, index_InferDeviceNotificationsInput as InferDeviceNotificationsInput, index_PolicyLike as PolicyLike, index_PolicyPermissionLike as PolicyPermissionLike, index_SYSTEM_CATEGORIES as SYSTEM_CATEGORIES, index_SYSTEM_CATEGORY_LABELS as SYSTEM_CATEGORY_LABELS, index_SystemCategory as SystemCategory, index_categoryForDevice as categoryForDevice, index_getAllowedDeviceTypes as getAllowedDeviceTypes, index_getAllowedFeatures as getAllowedFeatures, index_getAllowedResourceIds as getAllowedResourceIds, index_inferDeviceNotifications as inferDeviceNotifications };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { index as i };
|
|
@@ -11,6 +11,10 @@ import { ListUsersCommand } from './useCases/listUsers.js';
|
|
|
11
11
|
import { UpdateSelfCommand } from './useCases/updateSelf.js';
|
|
12
12
|
import { UpdateUserCommand } from './useCases/updateUser.js';
|
|
13
13
|
import { DeleteUserCommand } from './useCases/deleteUser.js';
|
|
14
|
+
import { CreateApiKeyCommand } from './useCases/createApiKey.js';
|
|
15
|
+
import { GetApiKeyCommand } from './useCases/getApiKey.js';
|
|
16
|
+
import { RotateApiKeyCommand } from './useCases/rotateApiKey.js';
|
|
17
|
+
import { RevokeApiKeyCommand } from './useCases/revokeApiKey.js';
|
|
14
18
|
import { SendVerificationCodeCommand } from './useCases/sendVerificationCode.js';
|
|
15
19
|
import { CheckVerificationCodeCommand } from './useCases/checkVerificationCode.js';
|
|
16
20
|
import { ListUserSpacesCommand } from './useCases/listUserSpaces.js';
|
|
@@ -72,12 +76,10 @@ import { DescribeDiscoveredDeviceCommand } from './useCases/describeDiscoveredDe
|
|
|
72
76
|
import { UpsertDiscoveredDeviceCommand } from './useCases/upsertDiscoveredDevice.js';
|
|
73
77
|
import { CreateDiscoveredDeviceAssociationCommand } from './useCases/createDiscoveredDeviceAssociation.js';
|
|
74
78
|
import { ListIntegrationsCommand } from './useCases/listIntegrations.js';
|
|
75
|
-
import { DescribeIntegrationCommand } from './useCases/describeIntegration.js';
|
|
76
|
-
import { CreateIntegrationCommand } from './useCases/createIntegration.js';
|
|
77
|
-
import { UpdateIntegrationCommand } from './useCases/updateIntegration.js';
|
|
78
79
|
import { DescribeMyOrganizationCommand } from './useCases/describeMyOrganization.js';
|
|
79
80
|
import { CreateOrganizationCommand } from './useCases/createOrganization.js';
|
|
80
81
|
import { UpdateOrganizationCommand } from './useCases/updateOrganization.js';
|
|
82
|
+
import { UpdateOrganizationFeaturesCommand } from './useCases/updateOrganizationFeatures.js';
|
|
81
83
|
import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
|
|
82
84
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
|
|
83
85
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
|
|
@@ -88,16 +90,11 @@ import { CreatePropertyCommand } from './useCases/createProperty.js';
|
|
|
88
90
|
import { DeletePropertyCommand } from './useCases/deleteProperty.js';
|
|
89
91
|
import { UpdatePropertyCommand } from './useCases/updateProperty.js';
|
|
90
92
|
import { DescribePropertyCommand } from './useCases/describeProperty.js';
|
|
91
|
-
import {
|
|
93
|
+
import { UpdatePropertyFeaturesCommand } from './useCases/updatePropertyFeatures.js';
|
|
92
94
|
import { EmailUserAccountSetupCommand } from './useCases/emailUserAccountSetup.js';
|
|
93
95
|
import { CreateImageUploadEndpointCommand } from './useCases/createImageUploadEndpoint.js';
|
|
94
96
|
import { DeleteMediaFileCommand } from './useCases/deleteMediaFile.js';
|
|
95
97
|
import { UploadImageCommand } from './useCases/uploadImage.js';
|
|
96
|
-
import { CreateAnnouncementCommand } from './useCases/createAnnouncement.js';
|
|
97
|
-
import { UpdateAnnouncementCommand } from './useCases/updateAnnouncement.js';
|
|
98
|
-
import { DescribeAnnouncementCommand } from './useCases/describeAnnouncement.js';
|
|
99
|
-
import { DeleteAnnouncementCommand } from './useCases/deleteAnnouncement.js';
|
|
100
|
-
import { ListAnnouncementsCommand } from './useCases/listAnnouncements.js';
|
|
101
98
|
import { DescribeTimeSheetStatsCommand } from './useCases/describeTimeSheetStats.js';
|
|
102
99
|
import { ListMyTimeSheetsCommand } from './useCases/listMyTimeSheets.js';
|
|
103
100
|
import { DescribeTimeSheetCommand } from './useCases/describeTimeSheet.js';
|
|
@@ -130,7 +127,6 @@ import { DeleteAutomationCommand } from './useCases/deleteAutomation.js';
|
|
|
130
127
|
import { CreateDefaultAutomationsCommand } from './useCases/createDefaultAutomations.js';
|
|
131
128
|
import { RunAutomationCommand } from './useCases/runAutomation.js';
|
|
132
129
|
import { SendNotificationCommand } from './useCases/sendNotification.js';
|
|
133
|
-
import { SendSMSCommand } from './useCases/sendSMS.js';
|
|
134
130
|
import { ListSessionsCommand } from './useCases/listSessions.js';
|
|
135
131
|
import { DescribeSessionCommand } from './useCases/describeSession.js';
|
|
136
132
|
import { DeleteSessionCommand } from './useCases/deleteSession.js';
|
|
@@ -150,7 +146,7 @@ declare const index_AutoAssociateDiscoveredDevicesCommand: typeof AutoAssociateD
|
|
|
150
146
|
declare const index_AutoCloseTicketsCommand: typeof AutoCloseTicketsCommand;
|
|
151
147
|
declare const index_BulkUpdateIssueCommand: typeof BulkUpdateIssueCommand;
|
|
152
148
|
declare const index_CheckVerificationCodeCommand: typeof CheckVerificationCodeCommand;
|
|
153
|
-
declare const
|
|
149
|
+
declare const index_CreateApiKeyCommand: typeof CreateApiKeyCommand;
|
|
154
150
|
declare const index_CreateAutomationCommand: typeof CreateAutomationCommand;
|
|
155
151
|
declare const index_CreateCategoryCommand: typeof CreateCategoryCommand;
|
|
156
152
|
declare const index_CreateDefaultAutomationsCommand: typeof CreateDefaultAutomationsCommand;
|
|
@@ -161,7 +157,6 @@ declare const index_CreateDiscoveredDeviceAssociationCommand: typeof CreateDisco
|
|
|
161
157
|
declare const index_CreateDiscoveredDeviceAssociationMapCommand: typeof CreateDiscoveredDeviceAssociationMapCommand;
|
|
162
158
|
declare const index_CreateDiscoveredDeviceCommand: typeof CreateDiscoveredDeviceCommand;
|
|
163
159
|
declare const index_CreateImageUploadEndpointCommand: typeof CreateImageUploadEndpointCommand;
|
|
164
|
-
declare const index_CreateIntegrationCommand: typeof CreateIntegrationCommand;
|
|
165
160
|
declare const index_CreateIssueCommand: typeof CreateIssueCommand;
|
|
166
161
|
declare const index_CreateOrganizationCommand: typeof CreateOrganizationCommand;
|
|
167
162
|
declare const index_CreatePolicyCommand: typeof CreatePolicyCommand;
|
|
@@ -176,7 +171,6 @@ declare const index_CreateTimeSheetCommand: typeof CreateTimeSheetCommand;
|
|
|
176
171
|
declare const index_CreateTimeSheetTimeEntryCommand: typeof CreateTimeSheetTimeEntryCommand;
|
|
177
172
|
declare const index_CreateUserCommand: typeof CreateUserCommand;
|
|
178
173
|
declare const index_CreateVendorCommand: typeof CreateVendorCommand;
|
|
179
|
-
declare const index_DeleteAnnouncementCommand: typeof DeleteAnnouncementCommand;
|
|
180
174
|
declare const index_DeleteAutomationCommand: typeof DeleteAutomationCommand;
|
|
181
175
|
declare const index_DeleteCategoryCommand: typeof DeleteCategoryCommand;
|
|
182
176
|
declare const index_DeleteDepartmentCommand: typeof DeleteDepartmentCommand;
|
|
@@ -198,14 +192,12 @@ declare const index_DeleteTimeSheetTimeEntryCommand: typeof DeleteTimeSheetTimeE
|
|
|
198
192
|
declare const index_DeleteUserCommand: typeof DeleteUserCommand;
|
|
199
193
|
declare const index_DeleteUserCredentialCommand: typeof DeleteUserCredentialCommand;
|
|
200
194
|
declare const index_DeleteVendorCommand: typeof DeleteVendorCommand;
|
|
201
|
-
declare const index_DescribeAnnouncementCommand: typeof DescribeAnnouncementCommand;
|
|
202
195
|
declare const index_DescribeAutomationCommand: typeof DescribeAutomationCommand;
|
|
203
196
|
declare const index_DescribeCategoryCommand: typeof DescribeCategoryCommand;
|
|
204
197
|
declare const index_DescribeDepartmentCommand: typeof DescribeDepartmentCommand;
|
|
205
198
|
declare const index_DescribeDeviceCommand: typeof DescribeDeviceCommand;
|
|
206
199
|
declare const index_DescribeDeviceConfigCommand: typeof DescribeDeviceConfigCommand;
|
|
207
200
|
declare const index_DescribeDiscoveredDeviceCommand: typeof DescribeDiscoveredDeviceCommand;
|
|
208
|
-
declare const index_DescribeIntegrationCommand: typeof DescribeIntegrationCommand;
|
|
209
201
|
declare const index_DescribeIssueCommand: typeof DescribeIssueCommand;
|
|
210
202
|
declare const index_DescribeMyAuthCommand: typeof DescribeMyAuthCommand;
|
|
211
203
|
declare const index_DescribeMyOrganizationCommand: typeof DescribeMyOrganizationCommand;
|
|
@@ -227,8 +219,8 @@ declare const index_DescribeTimeSheetStatsCommand: typeof DescribeTimeSheetStats
|
|
|
227
219
|
declare const index_DescribeUserCommand: typeof DescribeUserCommand;
|
|
228
220
|
declare const index_DescribeVendorCommand: typeof DescribeVendorCommand;
|
|
229
221
|
declare const index_EmailUserAccountSetupCommand: typeof EmailUserAccountSetupCommand;
|
|
222
|
+
declare const index_GetApiKeyCommand: typeof GetApiKeyCommand;
|
|
230
223
|
declare const index_LeaveTicketCommand: typeof LeaveTicketCommand;
|
|
231
|
-
declare const index_ListAnnouncementsCommand: typeof ListAnnouncementsCommand;
|
|
232
224
|
declare const index_ListAutomationsCommand: typeof ListAutomationsCommand;
|
|
233
225
|
declare const index_ListCameraStreamPreviewsCommand: typeof ListCameraStreamPreviewsCommand;
|
|
234
226
|
declare const index_ListCategoriesCommand: typeof ListCategoriesCommand;
|
|
@@ -257,29 +249,29 @@ declare const index_ListUsersCommand: typeof ListUsersCommand;
|
|
|
257
249
|
declare const index_ListVendorsCommand: typeof ListVendorsCommand;
|
|
258
250
|
declare const index_LogoutUserCommand: typeof LogoutUserCommand;
|
|
259
251
|
declare const index_MoveDeviceCommand: typeof MoveDeviceCommand;
|
|
252
|
+
declare const index_RevokeApiKeyCommand: typeof RevokeApiKeyCommand;
|
|
253
|
+
declare const index_RotateApiKeyCommand: typeof RotateApiKeyCommand;
|
|
260
254
|
declare const index_RunAutomationCommand: typeof RunAutomationCommand;
|
|
261
255
|
declare const index_SelectOrganizationCommand: typeof SelectOrganizationCommand;
|
|
262
256
|
declare const index_SendNotificationCommand: typeof SendNotificationCommand;
|
|
263
|
-
declare const index_SendSMSCommand: typeof SendSMSCommand;
|
|
264
257
|
declare const index_SendVerificationCodeCommand: typeof SendVerificationCodeCommand;
|
|
265
258
|
declare const index_SetDeviceCommand: typeof SetDeviceCommand;
|
|
266
259
|
declare const index_SetDevicesCommand: typeof SetDevicesCommand;
|
|
267
260
|
declare const index_StartSOSCommand: typeof StartSOSCommand;
|
|
268
261
|
declare const index_StopSOSCommand: typeof StopSOSCommand;
|
|
269
|
-
declare const index_UpdateAnnouncementCommand: typeof UpdateAnnouncementCommand;
|
|
270
262
|
declare const index_UpdateAutomationCommand: typeof UpdateAutomationCommand;
|
|
271
263
|
declare const index_UpdateCategoryCommand: typeof UpdateCategoryCommand;
|
|
272
264
|
declare const index_UpdateDepartmentCommand: typeof UpdateDepartmentCommand;
|
|
273
265
|
declare const index_UpdateDeviceCommand: typeof UpdateDeviceCommand;
|
|
274
266
|
declare const index_UpdateDeviceCredentialCommand: typeof UpdateDeviceCredentialCommand;
|
|
275
267
|
declare const index_UpdateDiscoveredDeviceCommand: typeof UpdateDiscoveredDeviceCommand;
|
|
276
|
-
declare const index_UpdateIntegrationCommand: typeof UpdateIntegrationCommand;
|
|
277
268
|
declare const index_UpdateIssueCommand: typeof UpdateIssueCommand;
|
|
278
269
|
declare const index_UpdateMessageReadStatusCommand: typeof UpdateMessageReadStatusCommand;
|
|
279
270
|
declare const index_UpdateOrganizationCommand: typeof UpdateOrganizationCommand;
|
|
271
|
+
declare const index_UpdateOrganizationFeaturesCommand: typeof UpdateOrganizationFeaturesCommand;
|
|
280
272
|
declare const index_UpdatePolicyCommand: typeof UpdatePolicyCommand;
|
|
281
273
|
declare const index_UpdatePropertyCommand: typeof UpdatePropertyCommand;
|
|
282
|
-
declare const
|
|
274
|
+
declare const index_UpdatePropertyFeaturesCommand: typeof UpdatePropertyFeaturesCommand;
|
|
283
275
|
declare const index_UpdateSelfCommand: typeof UpdateSelfCommand;
|
|
284
276
|
declare const index_UpdateServerCommand: typeof UpdateServerCommand;
|
|
285
277
|
declare const index_UpdateSpaceCommand: typeof UpdateSpaceCommand;
|
|
@@ -294,7 +286,7 @@ declare const index_UploadImageCommand: typeof UploadImageCommand;
|
|
|
294
286
|
declare const index_UpsertDiscoveredDeviceCommand: typeof UpsertDiscoveredDeviceCommand;
|
|
295
287
|
declare const index_ValidateAuthCommand: typeof ValidateAuthCommand;
|
|
296
288
|
declare namespace index {
|
|
297
|
-
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand,
|
|
289
|
+
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand, index_CreateApiKeyCommand as CreateApiKeyCommand, index_CreateAutomationCommand as CreateAutomationCommand, index_CreateCategoryCommand as CreateCategoryCommand, index_CreateDefaultAutomationsCommand as CreateDefaultAutomationsCommand, index_CreateDepartmentCommand as CreateDepartmentCommand, index_CreateDeviceCommand as CreateDeviceCommand, index_CreateDeviceCredentialCommand as CreateDeviceCredentialCommand, index_CreateDiscoveredDeviceAssociationCommand as CreateDiscoveredDeviceAssociationCommand, index_CreateDiscoveredDeviceAssociationMapCommand as CreateDiscoveredDeviceAssociationMapCommand, index_CreateDiscoveredDeviceCommand as CreateDiscoveredDeviceCommand, index_CreateImageUploadEndpointCommand as CreateImageUploadEndpointCommand, index_CreateIssueCommand as CreateIssueCommand, index_CreateOrganizationCommand as CreateOrganizationCommand, index_CreatePolicyCommand as CreatePolicyCommand, index_CreatePropertyCommand as CreatePropertyCommand, index_CreatePwaHandoffTokenCommand as CreatePwaHandoffTokenCommand, index_CreateServerCommand as CreateServerCommand, index_CreateSpaceCommand as CreateSpaceCommand, index_CreateSystemCommand as CreateSystemCommand, index_CreateTicketCommand as CreateTicketCommand, index_CreateTicketMessageCommand as CreateTicketMessageCommand, index_CreateTimeSheetCommand as CreateTimeSheetCommand, index_CreateTimeSheetTimeEntryCommand as CreateTimeSheetTimeEntryCommand, index_CreateUserCommand as CreateUserCommand, index_CreateVendorCommand as CreateVendorCommand, index_DeleteAutomationCommand as DeleteAutomationCommand, index_DeleteCategoryCommand as DeleteCategoryCommand, index_DeleteDepartmentCommand as DeleteDepartmentCommand, index_DeleteDeviceCommand as DeleteDeviceCommand, index_DeleteDeviceCredentialCommand as DeleteDeviceCredentialCommand, index_DeleteDiscoveredDeviceCommand as DeleteDiscoveredDeviceCommand, index_DeleteIssueCommand as DeleteIssueCommand, index_DeleteMediaFileCommand as DeleteMediaFileCommand, index_DeleteOrganizationCommand as DeleteOrganizationCommand, index_DeletePolicyCommand as DeletePolicyCommand, index_DeletePropertyCommand as DeletePropertyCommand, index_DeleteServerCommand as DeleteServerCommand, index_DeleteSessionCommand as DeleteSessionCommand, index_DeleteSpaceCommand as DeleteSpaceCommand, index_DeleteSystemCommand as DeleteSystemCommand, index_DeleteTicketCommand as DeleteTicketCommand, index_DeleteTimeSheetCommand as DeleteTimeSheetCommand, index_DeleteTimeSheetTimeEntryCommand as DeleteTimeSheetTimeEntryCommand, index_DeleteUserCommand as DeleteUserCommand, index_DeleteUserCredentialCommand as DeleteUserCredentialCommand, index_DeleteVendorCommand as DeleteVendorCommand, index_DescribeAutomationCommand as DescribeAutomationCommand, index_DescribeCategoryCommand as DescribeCategoryCommand, index_DescribeDepartmentCommand as DescribeDepartmentCommand, index_DescribeDeviceCommand as DescribeDeviceCommand, index_DescribeDeviceConfigCommand as DescribeDeviceConfigCommand, index_DescribeDiscoveredDeviceCommand as DescribeDiscoveredDeviceCommand, index_DescribeIssueCommand as DescribeIssueCommand, index_DescribeMyAuthCommand as DescribeMyAuthCommand, index_DescribeMyOrganizationCommand as DescribeMyOrganizationCommand, index_DescribeMyPasskeyRegistrationsCommand as DescribeMyPasskeyRegistrationsCommand, index_DescribeOrganizationCommand as DescribeOrganizationCommand, index_DescribePolicyCommand as DescribePolicyCommand, index_DescribePropertyCommand as DescribePropertyCommand, index_DescribeSOSCommand as DescribeSOSCommand, index_DescribeSelfCommand as DescribeSelfCommand, index_DescribeServerCommand as DescribeServerCommand, index_DescribeSessionCommand as DescribeSessionCommand, index_DescribeSpaceCommand as DescribeSpaceCommand, index_DescribeSystemCommand as DescribeSystemCommand, index_DescribeTicketCommand as DescribeTicketCommand, index_DescribeTicketFiltersCommand as DescribeTicketFiltersCommand, index_DescribeTicketStatsCommand as DescribeTicketStatsCommand, index_DescribeTimeSheetCommand as DescribeTimeSheetCommand, index_DescribeTimeSheetStatsCommand as DescribeTimeSheetStatsCommand, index_DescribeUserCommand as DescribeUserCommand, index_DescribeVendorCommand as DescribeVendorCommand, index_EmailUserAccountSetupCommand as EmailUserAccountSetupCommand, index_GetApiKeyCommand as GetApiKeyCommand, index_LeaveTicketCommand as LeaveTicketCommand, index_ListAutomationsCommand as ListAutomationsCommand, index_ListCameraStreamPreviewsCommand as ListCameraStreamPreviewsCommand, index_ListCategoriesCommand as ListCategoriesCommand, index_ListDepartmentsCommand as ListDepartmentsCommand, index_ListDeviceCredentialsCommand as ListDeviceCredentialsCommand, index_ListDevicesCommand as ListDevicesCommand, index_ListDiscoveredDevicesCommand as ListDiscoveredDevicesCommand, index_ListIntegrationsCommand as ListIntegrationsCommand, index_ListIssuesCommand as ListIssuesCommand, index_ListMyOrganizationsCommand as ListMyOrganizationsCommand, index_ListMyPropertiesCommand as ListMyPropertiesCommand, index_ListMyTimeSheetsCommand as ListMyTimeSheetsCommand, index_ListOrganizationsCommand as ListOrganizationsCommand, index_ListPoliciesCommand as ListPoliciesCommand, index_ListPropertiesCommand as ListPropertiesCommand, index_ListPropertyCredentialsCommand as ListPropertyCredentialsCommand, index_ListServersCommand as ListServersCommand, index_ListSessionsCommand as ListSessionsCommand, index_ListSpacesCommand as ListSpacesCommand, index_ListSystemsCommand as ListSystemsCommand, index_ListTicketLocationsCommand as ListTicketLocationsCommand, index_ListTicketsCommand as ListTicketsCommand, index_ListTimeSheetsCommand as ListTimeSheetsCommand, index_ListUserSpacesCommand as ListUserSpacesCommand, index_ListUsersCommand as ListUsersCommand, index_ListVendorsCommand as ListVendorsCommand, index_LogoutUserCommand as LogoutUserCommand, index_MoveDeviceCommand as MoveDeviceCommand, index_RevokeApiKeyCommand as RevokeApiKeyCommand, index_RotateApiKeyCommand as RotateApiKeyCommand, index_RunAutomationCommand as RunAutomationCommand, index_SelectOrganizationCommand as SelectOrganizationCommand, index_SendNotificationCommand as SendNotificationCommand, index_SendVerificationCodeCommand as SendVerificationCodeCommand, index_SetDeviceCommand as SetDeviceCommand, index_SetDevicesCommand as SetDevicesCommand, index_StartSOSCommand as StartSOSCommand, index_StopSOSCommand as StopSOSCommand, index_UpdateAutomationCommand as UpdateAutomationCommand, index_UpdateCategoryCommand as UpdateCategoryCommand, index_UpdateDepartmentCommand as UpdateDepartmentCommand, index_UpdateDeviceCommand as UpdateDeviceCommand, index_UpdateDeviceCredentialCommand as UpdateDeviceCredentialCommand, index_UpdateDiscoveredDeviceCommand as UpdateDiscoveredDeviceCommand, index_UpdateIssueCommand as UpdateIssueCommand, index_UpdateMessageReadStatusCommand as UpdateMessageReadStatusCommand, index_UpdateOrganizationCommand as UpdateOrganizationCommand, index_UpdateOrganizationFeaturesCommand as UpdateOrganizationFeaturesCommand, index_UpdatePolicyCommand as UpdatePolicyCommand, index_UpdatePropertyCommand as UpdatePropertyCommand, index_UpdatePropertyFeaturesCommand as UpdatePropertyFeaturesCommand, index_UpdateSelfCommand as UpdateSelfCommand, index_UpdateServerCommand as UpdateServerCommand, index_UpdateSpaceCommand as UpdateSpaceCommand, index_UpdateSystemCommand as UpdateSystemCommand, index_UpdateTicketCommand as UpdateTicketCommand, index_UpdateTicketStatusCommand as UpdateTicketStatusCommand, index_UpdateTimeSheetCommand as UpdateTimeSheetCommand, index_UpdateTimeSheetTimeEntryCommand as UpdateTimeSheetTimeEntryCommand, index_UpdateUserCommand as UpdateUserCommand, index_UpdateVendorCommand as UpdateVendorCommand, index_UploadImageCommand as UploadImageCommand, index_UpsertDiscoveredDeviceCommand as UpsertDiscoveredDeviceCommand, index_ValidateAuthCommand as ValidateAuthCommand };
|
|
298
290
|
}
|
|
299
291
|
|
|
300
292
|
export { index as i };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ export { KohostHTTPClient as Client } from './httpClient.js';
|
|
|
2
2
|
export { i as Commands } from './index-PDa8BHjL.js';
|
|
3
3
|
export { i as Errors } from './index-7k9xaBaL.js';
|
|
4
4
|
export { i as Events } from './index-B1__8mca.js';
|
|
5
|
+
export { i as Lib } from './index-BnWbLEt_.js';
|
|
5
6
|
export { i as Models } from './index-BmUDCO4d.js';
|
|
6
|
-
export { i as UseCases } from './index-
|
|
7
|
+
export { i as UseCases } from './index-DJzBywIl.js';
|
|
7
8
|
import './useCases/createPwaHandoffToken.js';
|
|
8
9
|
import './useCases/logoutUser.js';
|
|
9
10
|
import './useCases/describeMyAuth.js';
|
|
@@ -17,6 +18,10 @@ import './useCases/listUsers.js';
|
|
|
17
18
|
import './useCases/updateSelf.js';
|
|
18
19
|
import './useCases/updateUser.js';
|
|
19
20
|
import './useCases/deleteUser.js';
|
|
21
|
+
import './useCases/createApiKey.js';
|
|
22
|
+
import './useCases/getApiKey.js';
|
|
23
|
+
import './useCases/rotateApiKey.js';
|
|
24
|
+
import './useCases/revokeApiKey.js';
|
|
20
25
|
import './useCases/sendVerificationCode.js';
|
|
21
26
|
import './useCases/checkVerificationCode.js';
|
|
22
27
|
import './useCases/listUserSpaces.js';
|
|
@@ -78,12 +83,10 @@ import './useCases/describeDiscoveredDevice.js';
|
|
|
78
83
|
import './useCases/upsertDiscoveredDevice.js';
|
|
79
84
|
import './useCases/createDiscoveredDeviceAssociation.js';
|
|
80
85
|
import './useCases/listIntegrations.js';
|
|
81
|
-
import './useCases/describeIntegration.js';
|
|
82
|
-
import './useCases/createIntegration.js';
|
|
83
|
-
import './useCases/updateIntegration.js';
|
|
84
86
|
import './useCases/describeMyOrganization.js';
|
|
85
87
|
import './useCases/createOrganization.js';
|
|
86
88
|
import './useCases/updateOrganization.js';
|
|
89
|
+
import './useCases/updateOrganizationFeatures.js';
|
|
87
90
|
import './useCases/deleteOrganization.js';
|
|
88
91
|
import './useCases/describeOrganization.js';
|
|
89
92
|
import './useCases/listOrganizations.js';
|
|
@@ -94,16 +97,11 @@ import './useCases/createProperty.js';
|
|
|
94
97
|
import './useCases/deleteProperty.js';
|
|
95
98
|
import './useCases/updateProperty.js';
|
|
96
99
|
import './useCases/describeProperty.js';
|
|
97
|
-
import './useCases/
|
|
100
|
+
import './useCases/updatePropertyFeatures.js';
|
|
98
101
|
import './useCases/emailUserAccountSetup.js';
|
|
99
102
|
import './useCases/createImageUploadEndpoint.js';
|
|
100
103
|
import './useCases/deleteMediaFile.js';
|
|
101
104
|
import './useCases/uploadImage.js';
|
|
102
|
-
import './useCases/createAnnouncement.js';
|
|
103
|
-
import './useCases/updateAnnouncement.js';
|
|
104
|
-
import './useCases/describeAnnouncement.js';
|
|
105
|
-
import './useCases/deleteAnnouncement.js';
|
|
106
|
-
import './useCases/listAnnouncements.js';
|
|
107
105
|
import './useCases/describeTimeSheetStats.js';
|
|
108
106
|
import './useCases/listMyTimeSheets.js';
|
|
109
107
|
import './useCases/describeTimeSheet.js';
|
|
@@ -136,7 +134,6 @@ import './useCases/deleteAutomation.js';
|
|
|
136
134
|
import './useCases/createDefaultAutomations.js';
|
|
137
135
|
import './useCases/runAutomation.js';
|
|
138
136
|
import './useCases/sendNotification.js';
|
|
139
|
-
import './useCases/sendSMS.js';
|
|
140
137
|
import './useCases/listSessions.js';
|
|
141
138
|
import './useCases/describeSession.js';
|
|
142
139
|
import './useCases/deleteSession.js';
|
|
@@ -208,6 +205,9 @@ import './events/systemSwitchUpdated.js';
|
|
|
208
205
|
import './events/systemThermostatUpdated.js';
|
|
209
206
|
import './events/systemUserUpdated.js';
|
|
210
207
|
import './events/systemWindowCoveringUpdated.js';
|
|
208
|
+
import './lib/deviceNotifications.js';
|
|
209
|
+
import './lib/systemCategories.js';
|
|
210
|
+
import './lib/policy-resolvers.js';
|
|
211
211
|
import './models/entity.js';
|
|
212
212
|
import 'ajv';
|
|
213
213
|
import './models/alarm.js';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { KohostHTTPClient } from "./httpClient.js";
|
|
|
2
2
|
import * as Commands from "./commands/index.js";
|
|
3
3
|
import * as Errors from "./errors/index.js";
|
|
4
4
|
import * as Events from "./events/index.js";
|
|
5
|
+
import * as Lib from "./lib/index.js";
|
|
5
6
|
import * as Models from "./models/index.js";
|
|
6
7
|
import * as UseCases from "./useCases/index.js";
|
|
7
8
|
export {
|
|
@@ -9,6 +10,7 @@ export {
|
|
|
9
10
|
Commands,
|
|
10
11
|
Errors,
|
|
11
12
|
Events,
|
|
13
|
+
Lib,
|
|
12
14
|
Models,
|
|
13
15
|
UseCases
|
|
14
16
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../.generated/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { KohostHTTPClient as Client } from \"./httpClient.js\";\n\nexport * as Commands from \"./commands/index.js\";\nexport * as Errors from \"./errors/index.js\";\nexport * as Events from \"./events/index.js\";\nexport * as Models from \"./models/index.js\";\nexport * as UseCases from \"./useCases/index.js\";\n"],"mappings":"AAEA,SAA6B,wBAAc;AAE3C,YAAY,cAAc;AAC1B,YAAY,YAAY;AACxB,YAAY,YAAY;AACxB,YAAY,YAAY;AACxB,YAAY,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../.generated/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { KohostHTTPClient as Client } from \"./httpClient.js\";\n\nexport * as Commands from \"./commands/index.js\";\nexport * as Errors from \"./errors/index.js\";\nexport * as Events from \"./events/index.js\";\nexport * as Lib from \"./lib/index.js\";\nexport * as Models from \"./models/index.js\";\nexport * as UseCases from \"./useCases/index.js\";\n"],"mappings":"AAEA,SAA6B,wBAAc;AAE3C,YAAY,cAAc;AAC1B,YAAY,YAAY;AACxB,YAAY,YAAY;AACxB,YAAY,SAAS;AACrB,YAAY,YAAY;AACxB,YAAY,cAAc;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type DeviceNotificationName = "communicationFailure" | "replaceBattery" | "hardwareFailure" | "airFilterNeedsCleaned" | "airFilterNeedsReplaced" | "scheduleMaintenance" | "outsideSafeTemperatureRange" | "outsideSafeHumidityRange" | "bellTrouble" | "monitoringTrouble" | "powerTrouble" | "burglarAlarm" | "fireAlarm" | "smokeDetected" | "doorAjar" | "configIssue" | "acMainsDisconnected";
|
|
2
|
+
interface InferDeviceNotificationsInput {
|
|
3
|
+
type?: string;
|
|
4
|
+
discriminator?: string;
|
|
5
|
+
offline?: unknown;
|
|
6
|
+
batteryLevel?: unknown;
|
|
7
|
+
bellTrouble?: unknown;
|
|
8
|
+
monitoringTrouble?: unknown;
|
|
9
|
+
powerLevel?: unknown;
|
|
10
|
+
equipment?: unknown;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns the canonical notifications a device can emit, derived from its
|
|
14
|
+
* shape. Replaces the legacy `device.supportedNotifications[]` reads — driver
|
|
15
|
+
* implementations no longer need to declare this list.
|
|
16
|
+
*/
|
|
17
|
+
declare function inferDeviceNotifications(device: InferDeviceNotificationsInput | null | undefined): DeviceNotificationName[];
|
|
18
|
+
|
|
19
|
+
export { type DeviceNotificationName, type InferDeviceNotificationsInput, inferDeviceNotifications };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const THERMOSTAT_INFERRED = [
|
|
4
|
+
"airFilterNeedsCleaned",
|
|
5
|
+
"airFilterNeedsReplaced",
|
|
6
|
+
"scheduleMaintenance",
|
|
7
|
+
"outsideSafeTemperatureRange",
|
|
8
|
+
"outsideSafeHumidityRange",
|
|
9
|
+
"hardwareFailure"
|
|
10
|
+
];
|
|
11
|
+
function inferDeviceNotifications(device) {
|
|
12
|
+
if (!device || !device.type) return [];
|
|
13
|
+
const set = /* @__PURE__ */ new Set();
|
|
14
|
+
if ("offline" in device) set.add("communicationFailure");
|
|
15
|
+
if ("batteryLevel" in device && device.batteryLevel != null) {
|
|
16
|
+
set.add("replaceBattery");
|
|
17
|
+
}
|
|
18
|
+
if ("bellTrouble" in device) set.add("bellTrouble");
|
|
19
|
+
if ("monitoringTrouble" in device) set.add("monitoringTrouble");
|
|
20
|
+
if ("powerLevel" in device) set.add("powerTrouble");
|
|
21
|
+
if ("equipment" in device) set.add("hardwareFailure");
|
|
22
|
+
switch (device.type) {
|
|
23
|
+
case "thermostat":
|
|
24
|
+
for (const n of THERMOSTAT_INFERRED) set.add(n);
|
|
25
|
+
break;
|
|
26
|
+
default:
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
return Array.from(set);
|
|
30
|
+
}
|
|
31
|
+
__name(inferDeviceNotifications, "inferDeviceNotifications");
|
|
32
|
+
export {
|
|
33
|
+
inferDeviceNotifications
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=deviceNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../.generated/lib/deviceNotifications.ts"],"sourcesContent":["export type DeviceNotificationName =\n | \"communicationFailure\"\n | \"replaceBattery\"\n | \"hardwareFailure\"\n | \"airFilterNeedsCleaned\"\n | \"airFilterNeedsReplaced\"\n | \"scheduleMaintenance\"\n | \"outsideSafeTemperatureRange\"\n | \"outsideSafeHumidityRange\"\n | \"bellTrouble\"\n | \"monitoringTrouble\"\n | \"powerTrouble\"\n | \"burglarAlarm\"\n | \"fireAlarm\"\n | \"smokeDetected\"\n | \"doorAjar\"\n | \"configIssue\"\n | \"acMainsDisconnected\";\n\nexport interface InferDeviceNotificationsInput {\n type?: string;\n discriminator?: string;\n offline?: unknown;\n batteryLevel?: unknown;\n bellTrouble?: unknown;\n monitoringTrouble?: unknown;\n powerLevel?: unknown;\n equipment?: unknown;\n}\n\nconst THERMOSTAT_INFERRED: DeviceNotificationName[] = [\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"scheduleMaintenance\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"hardwareFailure\",\n];\n\n/**\n * Returns the canonical notifications a device can emit, derived from its\n * shape. Replaces the legacy `device.supportedNotifications[]` reads — driver\n * implementations no longer need to declare this list.\n */\nexport function inferDeviceNotifications(\n device: InferDeviceNotificationsInput | null | undefined,\n): DeviceNotificationName[] {\n if (!device || !device.type) return [];\n const set = new Set<DeviceNotificationName>();\n\n if (\"offline\" in device) set.add(\"communicationFailure\");\n\n if (\"batteryLevel\" in device && device.batteryLevel != null) {\n set.add(\"replaceBattery\");\n }\n\n if (\"bellTrouble\" in device) set.add(\"bellTrouble\");\n if (\"monitoringTrouble\" in device) set.add(\"monitoringTrouble\");\n if (\"powerLevel\" in device) set.add(\"powerTrouble\");\n\n if (\"equipment\" in device) set.add(\"hardwareFailure\");\n\n switch (device.type) {\n case \"thermostat\":\n for (const n of THERMOSTAT_INFERRED) set.add(n);\n break;\n default:\n break;\n }\n\n return Array.from(set);\n}\n"],"mappings":";;AA8BA,MAAM,sBAAgD;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOO,SAAS,yBACd,QAC0B;AAC1B,MAAI,CAAC,UAAU,CAAC,OAAO,KAAM,QAAO,CAAC;AACrC,QAAM,MAAM,oBAAI,IAA4B;AAE5C,MAAI,aAAa,OAAQ,KAAI,IAAI,sBAAsB;AAEvD,MAAI,kBAAkB,UAAU,OAAO,gBAAgB,MAAM;AAC3D,QAAI,IAAI,gBAAgB;AAAA,EAC1B;AAEA,MAAI,iBAAiB,OAAQ,KAAI,IAAI,aAAa;AAClD,MAAI,uBAAuB,OAAQ,KAAI,IAAI,mBAAmB;AAC9D,MAAI,gBAAgB,OAAQ,KAAI,IAAI,cAAc;AAElD,MAAI,eAAe,OAAQ,KAAI,IAAI,iBAAiB;AAEpD,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AACH,iBAAW,KAAK,oBAAqB,KAAI,IAAI,CAAC;AAC9C;AAAA,IACF;AACE;AAAA,EACJ;AAEA,SAAO,MAAM,KAAK,GAAG;AACvB;AA3BgB;","names":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DeviceNotificationName, InferDeviceNotificationsInput, inferDeviceNotifications } from './deviceNotifications.js';
|
|
2
|
+
export { CategoryForDeviceInput, SYSTEM_CATEGORIES, SYSTEM_CATEGORY_LABELS, SystemCategory, categoryForDevice } from './systemCategories.js';
|
|
3
|
+
export { PolicyLike, PolicyPermissionLike, getAllowedDeviceTypes, getAllowedFeatures, getAllowedResourceIds } from './policy-resolvers.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inferDeviceNotifications
|
|
3
|
+
} from "./deviceNotifications.js";
|
|
4
|
+
import {
|
|
5
|
+
categoryForDevice,
|
|
6
|
+
SYSTEM_CATEGORIES,
|
|
7
|
+
SYSTEM_CATEGORY_LABELS
|
|
8
|
+
} from "./systemCategories.js";
|
|
9
|
+
import {
|
|
10
|
+
getAllowedResourceIds,
|
|
11
|
+
getAllowedDeviceTypes,
|
|
12
|
+
getAllowedFeatures
|
|
13
|
+
} from "./policy-resolvers.js";
|
|
14
|
+
export {
|
|
15
|
+
SYSTEM_CATEGORIES,
|
|
16
|
+
SYSTEM_CATEGORY_LABELS,
|
|
17
|
+
categoryForDevice,
|
|
18
|
+
getAllowedDeviceTypes,
|
|
19
|
+
getAllowedFeatures,
|
|
20
|
+
getAllowedResourceIds,
|
|
21
|
+
inferDeviceNotifications
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../.generated/lib/index.ts"],"sourcesContent":["export {\n inferDeviceNotifications,\n type DeviceNotificationName,\n type InferDeviceNotificationsInput,\n} from \"./deviceNotifications.js\";\nexport {\n categoryForDevice,\n SYSTEM_CATEGORIES,\n SYSTEM_CATEGORY_LABELS,\n type SystemCategory,\n type CategoryForDeviceInput,\n} from \"./systemCategories.js\";\nexport {\n getAllowedResourceIds,\n getAllowedDeviceTypes,\n getAllowedFeatures,\n type PolicyLike,\n type PolicyPermissionLike,\n} from \"./policy-resolvers.js\";\n"],"mappings":"AAAA;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface PolicyPermissionLike {
|
|
2
|
+
entities: string[];
|
|
3
|
+
effect: "Allow" | "Deny";
|
|
4
|
+
}
|
|
5
|
+
interface PolicyLike {
|
|
6
|
+
permissions: PolicyPermissionLike[];
|
|
7
|
+
}
|
|
8
|
+
declare function getAllowedResourceIds(policies: PolicyLike[], resource: string): string[];
|
|
9
|
+
declare function getAllowedDeviceTypes(policies: PolicyLike[], spaceId: string): string[];
|
|
10
|
+
declare function getAllowedFeatures(policies: PolicyLike[]): string[];
|
|
11
|
+
|
|
12
|
+
export { type PolicyLike, type PolicyPermissionLike, getAllowedDeviceTypes, getAllowedFeatures, getAllowedResourceIds };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const FEATURE_PREFIX = "feature:";
|
|
4
|
+
function getAllowedResourceIds(policies, resource) {
|
|
5
|
+
const allowed = [];
|
|
6
|
+
const denied = [];
|
|
7
|
+
for (const policy of policies) {
|
|
8
|
+
for (const permission of policy.permissions) {
|
|
9
|
+
for (const entity of permission.entities) {
|
|
10
|
+
if (!entity.startsWith(resource)) continue;
|
|
11
|
+
const [, id, subsystem, deviceId] = entity.split(":");
|
|
12
|
+
const hasFinerSegment = Boolean(subsystem) || Boolean(deviceId);
|
|
13
|
+
if (permission.effect === "Allow") {
|
|
14
|
+
allowed.push(id);
|
|
15
|
+
} else if (!hasFinerSegment) {
|
|
16
|
+
denied.push(id);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return denied.length > 0 ? allowed.filter((id) => !denied.includes(id)) : allowed;
|
|
22
|
+
}
|
|
23
|
+
__name(getAllowedResourceIds, "getAllowedResourceIds");
|
|
24
|
+
function getAllowedDeviceTypes(policies, spaceId) {
|
|
25
|
+
const prefix = `space:${spaceId}:`;
|
|
26
|
+
const exactMatch = `space:${spaceId}`;
|
|
27
|
+
const matchesSpace = /* @__PURE__ */ __name((res) => res === exactMatch || res.startsWith(prefix) || res.startsWith("space:*"), "matchesSpace");
|
|
28
|
+
const allowed = [];
|
|
29
|
+
const denied = [];
|
|
30
|
+
for (const policy of policies) {
|
|
31
|
+
for (const permission of policy.permissions) {
|
|
32
|
+
for (const entity of permission.entities) {
|
|
33
|
+
if (!matchesSpace(entity)) continue;
|
|
34
|
+
const [, , deviceType] = entity.split(":");
|
|
35
|
+
if (permission.effect === "Allow") {
|
|
36
|
+
if (!deviceType) {
|
|
37
|
+
if (!allowed.includes("*")) allowed.push("*");
|
|
38
|
+
} else {
|
|
39
|
+
allowed.push(deviceType);
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
denied.push(deviceType);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return allowed.filter((id) => !denied.includes(id));
|
|
48
|
+
}
|
|
49
|
+
__name(getAllowedDeviceTypes, "getAllowedDeviceTypes");
|
|
50
|
+
function getAllowedFeatures(policies) {
|
|
51
|
+
const allowed = [];
|
|
52
|
+
const denied = [];
|
|
53
|
+
for (const policy of policies) {
|
|
54
|
+
for (const permission of policy.permissions) {
|
|
55
|
+
for (const entity of permission.entities) {
|
|
56
|
+
if (!entity.startsWith(FEATURE_PREFIX)) continue;
|
|
57
|
+
const key = entity.slice(FEATURE_PREFIX.length);
|
|
58
|
+
if (!key) continue;
|
|
59
|
+
if (permission.effect === "Allow") {
|
|
60
|
+
if (!allowed.includes(key)) allowed.push(key);
|
|
61
|
+
} else if (!denied.includes(key)) {
|
|
62
|
+
denied.push(key);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return allowed.filter((key) => !denied.includes(key));
|
|
68
|
+
}
|
|
69
|
+
__name(getAllowedFeatures, "getAllowedFeatures");
|
|
70
|
+
export {
|
|
71
|
+
getAllowedDeviceTypes,
|
|
72
|
+
getAllowedFeatures,
|
|
73
|
+
getAllowedResourceIds
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=policy-resolvers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../.generated/lib/policy-resolvers.ts"],"sourcesContent":["export interface PolicyPermissionLike {\n entities: string[];\n effect: \"Allow\" | \"Deny\";\n}\n\nexport interface PolicyLike {\n permissions: PolicyPermissionLike[];\n}\n\nconst FEATURE_PREFIX = \"feature:\";\n\nexport function getAllowedResourceIds(\n policies: PolicyLike[],\n resource: string,\n): string[] {\n const allowed: string[] = [];\n const denied: string[] = [];\n\n for (const policy of policies) {\n for (const permission of policy.permissions) {\n for (const entity of permission.entities) {\n if (!entity.startsWith(resource)) continue;\n\n const [, id, subsystem, deviceId] = entity.split(\":\");\n const hasFinerSegment = Boolean(subsystem) || Boolean(deviceId);\n\n if (permission.effect === \"Allow\") {\n allowed.push(id);\n } else if (!hasFinerSegment) {\n denied.push(id);\n }\n }\n }\n }\n\n return denied.length > 0\n ? allowed.filter((id) => !denied.includes(id))\n : allowed;\n}\n\nexport function getAllowedDeviceTypes(\n policies: PolicyLike[],\n spaceId: string,\n): string[] {\n const prefix = `space:${spaceId}:`;\n const exactMatch = `space:${spaceId}`;\n const matchesSpace = (res: string) =>\n res === exactMatch || res.startsWith(prefix) || res.startsWith(\"space:*\");\n\n const allowed: string[] = [];\n const denied: string[] = [];\n\n for (const policy of policies) {\n for (const permission of policy.permissions) {\n for (const entity of permission.entities) {\n if (!matchesSpace(entity)) continue;\n\n const [, , deviceType] = entity.split(\":\");\n if (permission.effect === \"Allow\") {\n if (!deviceType) {\n if (!allowed.includes(\"*\")) allowed.push(\"*\");\n } else {\n allowed.push(deviceType);\n }\n } else {\n denied.push(deviceType);\n }\n }\n }\n }\n\n return allowed.filter((id) => !denied.includes(id));\n}\n\nexport function getAllowedFeatures(policies: PolicyLike[]): string[] {\n const allowed: string[] = [];\n const denied: string[] = [];\n\n for (const policy of policies) {\n for (const permission of policy.permissions) {\n for (const entity of permission.entities) {\n if (!entity.startsWith(FEATURE_PREFIX)) continue;\n\n const key = entity.slice(FEATURE_PREFIX.length);\n if (!key) continue;\n\n if (permission.effect === \"Allow\") {\n if (!allowed.includes(key)) allowed.push(key);\n } else if (!denied.includes(key)) {\n denied.push(key);\n }\n }\n }\n }\n\n return allowed.filter((key) => !denied.includes(key));\n}\n"],"mappings":";;AASA,MAAM,iBAAiB;AAEhB,SAAS,sBACd,UACA,UACU;AACV,QAAM,UAAoB,CAAC;AAC3B,QAAM,SAAmB,CAAC;AAE1B,aAAW,UAAU,UAAU;AAC7B,eAAW,cAAc,OAAO,aAAa;AAC3C,iBAAW,UAAU,WAAW,UAAU;AACxC,YAAI,CAAC,OAAO,WAAW,QAAQ,EAAG;AAElC,cAAM,CAAC,EAAE,IAAI,WAAW,QAAQ,IAAI,OAAO,MAAM,GAAG;AACpD,cAAM,kBAAkB,QAAQ,SAAS,KAAK,QAAQ,QAAQ;AAE9D,YAAI,WAAW,WAAW,SAAS;AACjC,kBAAQ,KAAK,EAAE;AAAA,QACjB,WAAW,CAAC,iBAAiB;AAC3B,iBAAO,KAAK,EAAE;AAAA,QAChB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,OAAO,SAAS,IACnB,QAAQ,OAAO,CAAC,OAAO,CAAC,OAAO,SAAS,EAAE,CAAC,IAC3C;AACN;AA3BgB;AA6BT,SAAS,sBACd,UACA,SACU;AACV,QAAM,SAAS,SAAS,OAAO;AAC/B,QAAM,aAAa,SAAS,OAAO;AACnC,QAAM,eAAe,wBAAC,QACpB,QAAQ,cAAc,IAAI,WAAW,MAAM,KAAK,IAAI,WAAW,SAAS,GADrD;AAGrB,QAAM,UAAoB,CAAC;AAC3B,QAAM,SAAmB,CAAC;AAE1B,aAAW,UAAU,UAAU;AAC7B,eAAW,cAAc,OAAO,aAAa;AAC3C,iBAAW,UAAU,WAAW,UAAU;AACxC,YAAI,CAAC,aAAa,MAAM,EAAG;AAE3B,cAAM,CAAC,EAAE,EAAE,UAAU,IAAI,OAAO,MAAM,GAAG;AACzC,YAAI,WAAW,WAAW,SAAS;AACjC,cAAI,CAAC,YAAY;AACf,gBAAI,CAAC,QAAQ,SAAS,GAAG,EAAG,SAAQ,KAAK,GAAG;AAAA,UAC9C,OAAO;AACL,oBAAQ,KAAK,UAAU;AAAA,UACzB;AAAA,QACF,OAAO;AACL,iBAAO,KAAK,UAAU;AAAA,QACxB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,QAAQ,OAAO,CAAC,OAAO,CAAC,OAAO,SAAS,EAAE,CAAC;AACpD;AAhCgB;AAkCT,SAAS,mBAAmB,UAAkC;AACnE,QAAM,UAAoB,CAAC;AAC3B,QAAM,SAAmB,CAAC;AAE1B,aAAW,UAAU,UAAU;AAC7B,eAAW,cAAc,OAAO,aAAa;AAC3C,iBAAW,UAAU,WAAW,UAAU;AACxC,YAAI,CAAC,OAAO,WAAW,cAAc,EAAG;AAExC,cAAM,MAAM,OAAO,MAAM,eAAe,MAAM;AAC9C,YAAI,CAAC,IAAK;AAEV,YAAI,WAAW,WAAW,SAAS;AACjC,cAAI,CAAC,QAAQ,SAAS,GAAG,EAAG,SAAQ,KAAK,GAAG;AAAA,QAC9C,WAAW,CAAC,OAAO,SAAS,GAAG,GAAG;AAChC,iBAAO,KAAK,GAAG;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,QAAQ,OAAO,CAAC,QAAQ,CAAC,OAAO,SAAS,GAAG,CAAC;AACtD;AAtBgB;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const SYSTEM_CATEGORIES: readonly ["hvac", "access-control", "lighting", "shades", "irrigation", "cameras", "alarms", "pa", "media"];
|
|
2
|
+
type SystemCategory = (typeof SYSTEM_CATEGORIES)[number];
|
|
3
|
+
declare const SYSTEM_CATEGORY_LABELS: Record<SystemCategory, string>;
|
|
4
|
+
interface CategoryForDeviceInput {
|
|
5
|
+
type?: string;
|
|
6
|
+
discriminator?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function categoryForDevice(device: CategoryForDeviceInput | null | undefined): SystemCategory | null;
|
|
9
|
+
|
|
10
|
+
export { type CategoryForDeviceInput, SYSTEM_CATEGORIES, SYSTEM_CATEGORY_LABELS, type SystemCategory, categoryForDevice };
|