@kohost/api-client 5.0.2 → 5.0.4
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/cjs/httpClient.d.cts +9 -3
- package/dist/cjs/{index-Dq7Ew3vT.d.cts → index-DnIHEtGu.d.cts} +14 -2
- package/dist/cjs/index.d.cts +8 -2
- package/dist/cjs/schemas/definitions.cjs +3 -0
- package/dist/cjs/schemas/definitions.cjs.map +1 -1
- package/dist/cjs/schemas/definitions.d.cts +1 -1
- package/dist/cjs/useCases/createDeviceCredential.cjs +72 -0
- package/dist/cjs/useCases/createDeviceCredential.cjs.map +1 -0
- package/dist/cjs/useCases/createDeviceCredential.d.cts +41 -0
- package/dist/cjs/useCases/createPwaHandoffToken.cjs +72 -0
- package/dist/cjs/useCases/createPwaHandoffToken.cjs.map +1 -0
- package/dist/cjs/useCases/createPwaHandoffToken.d.cts +29 -0
- package/dist/cjs/useCases/deleteDeviceCredential.cjs +72 -0
- package/dist/cjs/useCases/deleteDeviceCredential.cjs.map +1 -0
- package/dist/cjs/useCases/deleteDeviceCredential.d.cts +44 -0
- package/dist/cjs/useCases/index.cjs +19 -1
- package/dist/cjs/useCases/index.cjs.map +1 -1
- package/dist/cjs/useCases/index.d.cts +7 -1
- package/dist/cjs/useCases/listDeviceCredentials.cjs +72 -0
- package/dist/cjs/useCases/listDeviceCredentials.cjs.map +1 -0
- package/dist/cjs/useCases/listDeviceCredentials.d.cts +41 -0
- package/dist/cjs/useCases/listPropertyCredentials.cjs +72 -0
- package/dist/cjs/useCases/listPropertyCredentials.cjs.map +1 -0
- package/dist/cjs/useCases/listPropertyCredentials.d.cts +38 -0
- package/dist/cjs/useCases/updateDeviceCredential.cjs +72 -0
- package/dist/cjs/useCases/updateDeviceCredential.cjs.map +1 -0
- package/dist/cjs/useCases/updateDeviceCredential.d.cts +44 -0
- package/dist/cjs/validate.d.cts +6 -6
- package/dist/esm/httpClient.d.ts +9 -3
- package/dist/esm/{index-BBrKrDh4.d.ts → index-q0RAMvBh.d.ts} +14 -2
- package/dist/esm/index.d.ts +8 -2
- package/dist/esm/schemas/definitions.d.ts +1 -1
- package/dist/esm/schemas/definitions.js +3 -0
- package/dist/esm/schemas/definitions.js.map +1 -1
- package/dist/esm/useCases/createDeviceCredential.d.ts +41 -0
- package/dist/esm/useCases/createDeviceCredential.js +50 -0
- package/dist/esm/useCases/createDeviceCredential.js.map +1 -0
- package/dist/esm/useCases/createPwaHandoffToken.d.ts +29 -0
- package/dist/esm/useCases/createPwaHandoffToken.js +50 -0
- package/dist/esm/useCases/createPwaHandoffToken.js.map +1 -0
- package/dist/esm/useCases/deleteDeviceCredential.d.ts +44 -0
- package/dist/esm/useCases/deleteDeviceCredential.js +50 -0
- package/dist/esm/useCases/deleteDeviceCredential.js.map +1 -0
- package/dist/esm/useCases/index.d.ts +7 -1
- package/dist/esm/useCases/index.js +13 -1
- package/dist/esm/useCases/index.js.map +1 -1
- package/dist/esm/useCases/listDeviceCredentials.d.ts +41 -0
- package/dist/esm/useCases/listDeviceCredentials.js +50 -0
- package/dist/esm/useCases/listDeviceCredentials.js.map +1 -0
- package/dist/esm/useCases/listPropertyCredentials.d.ts +38 -0
- package/dist/esm/useCases/listPropertyCredentials.js +50 -0
- package/dist/esm/useCases/listPropertyCredentials.js.map +1 -0
- package/dist/esm/useCases/updateDeviceCredential.d.ts +44 -0
- package/dist/esm/useCases/updateDeviceCredential.js +50 -0
- package/dist/esm/useCases/updateDeviceCredential.js.map +1 -0
- package/dist/esm/validate.d.ts +6 -6
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatePwaHandoffTokenCommand } from './useCases/createPwaHandoffToken.cjs';
|
|
1
2
|
import { LogoutUserCommand } from './useCases/logoutUser.cjs';
|
|
2
3
|
import { DescribeMyAuthCommand } from './useCases/describeMyAuth.cjs';
|
|
3
4
|
import { ValidateAuthCommand } from './useCases/validateAuth.cjs';
|
|
@@ -26,14 +27,18 @@ import { CreateSpaceCommand } from './useCases/createSpace.cjs';
|
|
|
26
27
|
import { DescribeSpaceCommand } from './useCases/describeSpace.cjs';
|
|
27
28
|
import { DeleteSpaceCommand } from './useCases/deleteSpace.cjs';
|
|
28
29
|
import { CreateDeviceCommand } from './useCases/createDevice.cjs';
|
|
30
|
+
import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.cjs';
|
|
29
31
|
import { ListDevicesCommand } from './useCases/listDevices.cjs';
|
|
32
|
+
import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.cjs';
|
|
33
|
+
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.cjs';
|
|
30
34
|
import { DescribeDeviceCommand } from './useCases/describeDevice.cjs';
|
|
31
35
|
import { UpdateDeviceCommand } from './useCases/updateDevice.cjs';
|
|
36
|
+
import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.cjs';
|
|
32
37
|
import { SetDeviceCommand } from './useCases/setDevice.cjs';
|
|
33
38
|
import { DeleteDeviceCommand } from './useCases/deleteDevice.cjs';
|
|
39
|
+
import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.cjs';
|
|
34
40
|
import { MoveDeviceCommand } from './useCases/moveDevice.cjs';
|
|
35
41
|
import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.cjs';
|
|
36
|
-
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.cjs';
|
|
37
42
|
import { CreateCategoryCommand } from './useCases/createCategory.cjs';
|
|
38
43
|
import { DeleteCategoryCommand } from './useCases/deleteCategory.cjs';
|
|
39
44
|
import { DescribeCategoryCommand } from './useCases/describeCategory.cjs';
|
|
@@ -74,6 +79,7 @@ import { DeleteOrganizationCommand } from './useCases/deleteOrganization.cjs';
|
|
|
74
79
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.cjs';
|
|
75
80
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.cjs';
|
|
76
81
|
import { ListPropertiesCommand } from './useCases/listProperties.cjs';
|
|
82
|
+
import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.cjs';
|
|
77
83
|
import { ListMyPropertiesCommand } from './useCases/listMyProperties.cjs';
|
|
78
84
|
import { CreatePropertyCommand } from './useCases/createProperty.cjs';
|
|
79
85
|
import { DeletePropertyCommand } from './useCases/deleteProperty.cjs';
|
|
@@ -205,12 +211,12 @@ declare class KohostHTTPClient {
|
|
|
205
211
|
*
|
|
206
212
|
* @param {Command} command
|
|
207
213
|
*/
|
|
208
|
-
send(command: 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 ListDevicesCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof
|
|
214
|
+
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 DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertySettingsCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof CreateAnnouncementCommand | typeof UpdateAnnouncementCommand | typeof DescribeAnnouncementCommand | typeof DeleteAnnouncementCommand | typeof ListAnnouncementsCommand | 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 SendSMSCommand | 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>;
|
|
209
215
|
/**
|
|
210
216
|
* @param {Command} config
|
|
211
217
|
* @returns {Request}
|
|
212
218
|
*/
|
|
213
|
-
createRequest(config: 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 ListDevicesCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof
|
|
219
|
+
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 DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertySettingsCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof CreateAnnouncementCommand | typeof UpdateAnnouncementCommand | typeof DescribeAnnouncementCommand | typeof DeleteAnnouncementCommand | typeof ListAnnouncementsCommand | 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 SendSMSCommand | 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;
|
|
214
220
|
#private;
|
|
215
221
|
}
|
|
216
222
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatePwaHandoffTokenCommand } from './useCases/createPwaHandoffToken.cjs';
|
|
1
2
|
import { LogoutUserCommand } from './useCases/logoutUser.cjs';
|
|
2
3
|
import { DescribeMyAuthCommand } from './useCases/describeMyAuth.cjs';
|
|
3
4
|
import { ValidateAuthCommand } from './useCases/validateAuth.cjs';
|
|
@@ -26,14 +27,18 @@ import { CreateSpaceCommand } from './useCases/createSpace.cjs';
|
|
|
26
27
|
import { DescribeSpaceCommand } from './useCases/describeSpace.cjs';
|
|
27
28
|
import { DeleteSpaceCommand } from './useCases/deleteSpace.cjs';
|
|
28
29
|
import { CreateDeviceCommand } from './useCases/createDevice.cjs';
|
|
30
|
+
import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.cjs';
|
|
29
31
|
import { ListDevicesCommand } from './useCases/listDevices.cjs';
|
|
32
|
+
import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.cjs';
|
|
33
|
+
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.cjs';
|
|
30
34
|
import { DescribeDeviceCommand } from './useCases/describeDevice.cjs';
|
|
31
35
|
import { UpdateDeviceCommand } from './useCases/updateDevice.cjs';
|
|
36
|
+
import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.cjs';
|
|
32
37
|
import { SetDeviceCommand } from './useCases/setDevice.cjs';
|
|
33
38
|
import { DeleteDeviceCommand } from './useCases/deleteDevice.cjs';
|
|
39
|
+
import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.cjs';
|
|
34
40
|
import { MoveDeviceCommand } from './useCases/moveDevice.cjs';
|
|
35
41
|
import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.cjs';
|
|
36
|
-
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.cjs';
|
|
37
42
|
import { CreateCategoryCommand } from './useCases/createCategory.cjs';
|
|
38
43
|
import { DeleteCategoryCommand } from './useCases/deleteCategory.cjs';
|
|
39
44
|
import { DescribeCategoryCommand } from './useCases/describeCategory.cjs';
|
|
@@ -74,6 +79,7 @@ import { DeleteOrganizationCommand } from './useCases/deleteOrganization.cjs';
|
|
|
74
79
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.cjs';
|
|
75
80
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.cjs';
|
|
76
81
|
import { ListPropertiesCommand } from './useCases/listProperties.cjs';
|
|
82
|
+
import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.cjs';
|
|
77
83
|
import { ListMyPropertiesCommand } from './useCases/listMyProperties.cjs';
|
|
78
84
|
import { CreatePropertyCommand } from './useCases/createProperty.cjs';
|
|
79
85
|
import { DeletePropertyCommand } from './useCases/deleteProperty.cjs';
|
|
@@ -147,6 +153,7 @@ declare const index_CreateCategoryCommand: typeof CreateCategoryCommand;
|
|
|
147
153
|
declare const index_CreateDefaultAutomationsCommand: typeof CreateDefaultAutomationsCommand;
|
|
148
154
|
declare const index_CreateDepartmentCommand: typeof CreateDepartmentCommand;
|
|
149
155
|
declare const index_CreateDeviceCommand: typeof CreateDeviceCommand;
|
|
156
|
+
declare const index_CreateDeviceCredentialCommand: typeof CreateDeviceCredentialCommand;
|
|
150
157
|
declare const index_CreateDiscoveredDeviceAssociationCommand: typeof CreateDiscoveredDeviceAssociationCommand;
|
|
151
158
|
declare const index_CreateDiscoveredDeviceAssociationMapCommand: typeof CreateDiscoveredDeviceAssociationMapCommand;
|
|
152
159
|
declare const index_CreateDiscoveredDeviceCommand: typeof CreateDiscoveredDeviceCommand;
|
|
@@ -155,6 +162,7 @@ declare const index_CreateIssueCommand: typeof CreateIssueCommand;
|
|
|
155
162
|
declare const index_CreateOrganizationCommand: typeof CreateOrganizationCommand;
|
|
156
163
|
declare const index_CreatePolicyCommand: typeof CreatePolicyCommand;
|
|
157
164
|
declare const index_CreatePropertyCommand: typeof CreatePropertyCommand;
|
|
165
|
+
declare const index_CreatePwaHandoffTokenCommand: typeof CreatePwaHandoffTokenCommand;
|
|
158
166
|
declare const index_CreateServerCommand: typeof CreateServerCommand;
|
|
159
167
|
declare const index_CreateSpaceCommand: typeof CreateSpaceCommand;
|
|
160
168
|
declare const index_CreateSystemCommand: typeof CreateSystemCommand;
|
|
@@ -169,6 +177,7 @@ declare const index_DeleteAutomationCommand: typeof DeleteAutomationCommand;
|
|
|
169
177
|
declare const index_DeleteCategoryCommand: typeof DeleteCategoryCommand;
|
|
170
178
|
declare const index_DeleteDepartmentCommand: typeof DeleteDepartmentCommand;
|
|
171
179
|
declare const index_DeleteDeviceCommand: typeof DeleteDeviceCommand;
|
|
180
|
+
declare const index_DeleteDeviceCredentialCommand: typeof DeleteDeviceCredentialCommand;
|
|
172
181
|
declare const index_DeleteDiscoveredDeviceCommand: typeof DeleteDiscoveredDeviceCommand;
|
|
173
182
|
declare const index_DeleteIssueCommand: typeof DeleteIssueCommand;
|
|
174
183
|
declare const index_DeleteMediaFileCommand: typeof DeleteMediaFileCommand;
|
|
@@ -219,6 +228,7 @@ declare const index_ListAutomationsCommand: typeof ListAutomationsCommand;
|
|
|
219
228
|
declare const index_ListCameraStreamPreviewsCommand: typeof ListCameraStreamPreviewsCommand;
|
|
220
229
|
declare const index_ListCategoriesCommand: typeof ListCategoriesCommand;
|
|
221
230
|
declare const index_ListDepartmentsCommand: typeof ListDepartmentsCommand;
|
|
231
|
+
declare const index_ListDeviceCredentialsCommand: typeof ListDeviceCredentialsCommand;
|
|
222
232
|
declare const index_ListDevicesCommand: typeof ListDevicesCommand;
|
|
223
233
|
declare const index_ListDiscoveredDevicesCommand: typeof ListDiscoveredDevicesCommand;
|
|
224
234
|
declare const index_ListIntegrationsCommand: typeof ListIntegrationsCommand;
|
|
@@ -229,6 +239,7 @@ declare const index_ListMyTimeSheetsCommand: typeof ListMyTimeSheetsCommand;
|
|
|
229
239
|
declare const index_ListOrganizationsCommand: typeof ListOrganizationsCommand;
|
|
230
240
|
declare const index_ListPoliciesCommand: typeof ListPoliciesCommand;
|
|
231
241
|
declare const index_ListPropertiesCommand: typeof ListPropertiesCommand;
|
|
242
|
+
declare const index_ListPropertyCredentialsCommand: typeof ListPropertyCredentialsCommand;
|
|
232
243
|
declare const index_ListServersCommand: typeof ListServersCommand;
|
|
233
244
|
declare const index_ListSessionsCommand: typeof ListSessionsCommand;
|
|
234
245
|
declare const index_ListSpacesCommand: typeof ListSpacesCommand;
|
|
@@ -255,6 +266,7 @@ declare const index_UpdateAutomationCommand: typeof UpdateAutomationCommand;
|
|
|
255
266
|
declare const index_UpdateCategoryCommand: typeof UpdateCategoryCommand;
|
|
256
267
|
declare const index_UpdateDepartmentCommand: typeof UpdateDepartmentCommand;
|
|
257
268
|
declare const index_UpdateDeviceCommand: typeof UpdateDeviceCommand;
|
|
269
|
+
declare const index_UpdateDeviceCredentialCommand: typeof UpdateDeviceCredentialCommand;
|
|
258
270
|
declare const index_UpdateDiscoveredDeviceCommand: typeof UpdateDiscoveredDeviceCommand;
|
|
259
271
|
declare const index_UpdateIssueCommand: typeof UpdateIssueCommand;
|
|
260
272
|
declare const index_UpdateMessageReadStatusCommand: typeof UpdateMessageReadStatusCommand;
|
|
@@ -276,7 +288,7 @@ declare const index_UploadImageCommand: typeof UploadImageCommand;
|
|
|
276
288
|
declare const index_UpsertDiscoveredDeviceCommand: typeof UpsertDiscoveredDeviceCommand;
|
|
277
289
|
declare const index_ValidateAuthCommand: typeof ValidateAuthCommand;
|
|
278
290
|
declare namespace index {
|
|
279
|
-
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand, index_CreateAnnouncementCommand as CreateAnnouncementCommand, index_CreateAutomationCommand as CreateAutomationCommand, index_CreateCategoryCommand as CreateCategoryCommand, index_CreateDefaultAutomationsCommand as CreateDefaultAutomationsCommand, index_CreateDepartmentCommand as CreateDepartmentCommand, index_CreateDeviceCommand as CreateDeviceCommand, 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_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_DeleteAnnouncementCommand as DeleteAnnouncementCommand, index_DeleteAutomationCommand as DeleteAutomationCommand, index_DeleteCategoryCommand as DeleteCategoryCommand, index_DeleteDepartmentCommand as DeleteDepartmentCommand, index_DeleteDeviceCommand as DeleteDeviceCommand, 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_DescribeAnnouncementCommand as DescribeAnnouncementCommand, 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_LeaveTicketCommand as LeaveTicketCommand, index_ListAnnouncementsCommand as ListAnnouncementsCommand, index_ListAutomationsCommand as ListAutomationsCommand, index_ListCameraStreamPreviewsCommand as ListCameraStreamPreviewsCommand, index_ListCategoriesCommand as ListCategoriesCommand, index_ListDepartmentsCommand as ListDepartmentsCommand, 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_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_RunAutomationCommand as RunAutomationCommand, index_SelectOrganizationCommand as SelectOrganizationCommand, index_SendNotificationCommand as SendNotificationCommand, index_SendSMSCommand as SendSMSCommand, index_SendVerificationCodeCommand as SendVerificationCodeCommand, index_SetDeviceCommand as SetDeviceCommand, index_SetDevicesCommand as SetDevicesCommand, index_StartSOSCommand as StartSOSCommand, index_StopSOSCommand as StopSOSCommand, index_UpdateAnnouncementCommand as UpdateAnnouncementCommand, index_UpdateAutomationCommand as UpdateAutomationCommand, index_UpdateCategoryCommand as UpdateCategoryCommand, index_UpdateDepartmentCommand as UpdateDepartmentCommand, index_UpdateDeviceCommand as UpdateDeviceCommand, index_UpdateDiscoveredDeviceCommand as UpdateDiscoveredDeviceCommand, index_UpdateIssueCommand as UpdateIssueCommand, index_UpdateMessageReadStatusCommand as UpdateMessageReadStatusCommand, index_UpdateOrganizationCommand as UpdateOrganizationCommand, index_UpdatePolicyCommand as UpdatePolicyCommand, index_UpdatePropertyCommand as UpdatePropertyCommand, index_UpdatePropertySettingsCommand as UpdatePropertySettingsCommand, 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 };
|
|
291
|
+
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand, index_CreateAnnouncementCommand as CreateAnnouncementCommand, 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_DeleteAnnouncementCommand as DeleteAnnouncementCommand, 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_DescribeAnnouncementCommand as DescribeAnnouncementCommand, 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_LeaveTicketCommand as LeaveTicketCommand, index_ListAnnouncementsCommand as ListAnnouncementsCommand, 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_RunAutomationCommand as RunAutomationCommand, index_SelectOrganizationCommand as SelectOrganizationCommand, index_SendNotificationCommand as SendNotificationCommand, index_SendSMSCommand as SendSMSCommand, index_SendVerificationCodeCommand as SendVerificationCodeCommand, index_SetDeviceCommand as SetDeviceCommand, index_SetDevicesCommand as SetDevicesCommand, index_StartSOSCommand as StartSOSCommand, index_StopSOSCommand as StopSOSCommand, index_UpdateAnnouncementCommand as UpdateAnnouncementCommand, 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_UpdatePolicyCommand as UpdatePolicyCommand, index_UpdatePropertyCommand as UpdatePropertyCommand, index_UpdatePropertySettingsCommand as UpdatePropertySettingsCommand, 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 };
|
|
280
292
|
}
|
|
281
293
|
|
|
282
294
|
export { index as i };
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -4,8 +4,9 @@ export { i as Commands } from './index-CH4lP5Qn.cjs';
|
|
|
4
4
|
export { i as Errors } from './index-DXQ1T_T1.cjs';
|
|
5
5
|
export { i as Events } from './index-CVL51QsV.cjs';
|
|
6
6
|
export { i as Models } from './index-BUtSE3od.cjs';
|
|
7
|
-
export { i as UseCases } from './index-
|
|
7
|
+
export { i as UseCases } from './index-DnIHEtGu.cjs';
|
|
8
8
|
import 'node:buffer';
|
|
9
|
+
import './useCases/createPwaHandoffToken.cjs';
|
|
9
10
|
import './useCases/logoutUser.cjs';
|
|
10
11
|
import './useCases/describeMyAuth.cjs';
|
|
11
12
|
import './useCases/validateAuth.cjs';
|
|
@@ -34,14 +35,18 @@ import './useCases/createSpace.cjs';
|
|
|
34
35
|
import './useCases/describeSpace.cjs';
|
|
35
36
|
import './useCases/deleteSpace.cjs';
|
|
36
37
|
import './useCases/createDevice.cjs';
|
|
38
|
+
import './useCases/createDeviceCredential.cjs';
|
|
37
39
|
import './useCases/listDevices.cjs';
|
|
40
|
+
import './useCases/listDeviceCredentials.cjs';
|
|
41
|
+
import './useCases/listCameraStreamPreviews.cjs';
|
|
38
42
|
import './useCases/describeDevice.cjs';
|
|
39
43
|
import './useCases/updateDevice.cjs';
|
|
44
|
+
import './useCases/updateDeviceCredential.cjs';
|
|
40
45
|
import './useCases/setDevice.cjs';
|
|
41
46
|
import './useCases/deleteDevice.cjs';
|
|
47
|
+
import './useCases/deleteDeviceCredential.cjs';
|
|
42
48
|
import './useCases/moveDevice.cjs';
|
|
43
49
|
import './useCases/describeDeviceConfig.cjs';
|
|
44
|
-
import './useCases/listCameraStreamPreviews.cjs';
|
|
45
50
|
import './useCases/createCategory.cjs';
|
|
46
51
|
import './useCases/deleteCategory.cjs';
|
|
47
52
|
import './useCases/describeCategory.cjs';
|
|
@@ -82,6 +87,7 @@ import './useCases/deleteOrganization.cjs';
|
|
|
82
87
|
import './useCases/describeOrganization.cjs';
|
|
83
88
|
import './useCases/listOrganizations.cjs';
|
|
84
89
|
import './useCases/listProperties.cjs';
|
|
90
|
+
import './useCases/listPropertyCredentials.cjs';
|
|
85
91
|
import './useCases/listMyProperties.cjs';
|
|
86
92
|
import './useCases/createProperty.cjs';
|
|
87
93
|
import './useCases/deleteProperty.cjs';
|
|
@@ -134,8 +134,10 @@ const defs = {
|
|
|
134
134
|
"mht",
|
|
135
135
|
"mobile-mule",
|
|
136
136
|
"modbus",
|
|
137
|
+
"napco",
|
|
137
138
|
"newline",
|
|
138
139
|
"obix",
|
|
140
|
+
"one-roster",
|
|
139
141
|
"paxton",
|
|
140
142
|
"pdk",
|
|
141
143
|
"pelican-wireless",
|
|
@@ -149,6 +151,7 @@ const defs = {
|
|
|
149
151
|
"samsung",
|
|
150
152
|
"se",
|
|
151
153
|
"sendgrid",
|
|
154
|
+
"singlewire",
|
|
152
155
|
"smartboard",
|
|
153
156
|
"sonifi",
|
|
154
157
|
"stay-n-touch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"modbus\",\n \"newline\",\n \"obix\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,IAAI;AAAA,UACF,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,QACR;AAAA,QACA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,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";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,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
@@ -75,7 +75,7 @@ declare const defs: {
|
|
|
75
75
|
readonly driver: {
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly description: "Driver used to communicate with the object.";
|
|
78
|
-
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "newline", "obix", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "napco", "newline", "obix", "one-roster", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "singlewire", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var createDeviceCredential_exports = {};
|
|
20
|
+
__export(createDeviceCredential_exports, {
|
|
21
|
+
CreateDeviceCredentialCommand: () => CreateDeviceCredentialCommand
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(createDeviceCredential_exports);
|
|
24
|
+
class CreateDeviceCredentialCommand {
|
|
25
|
+
static {
|
|
26
|
+
__name(this, "CreateDeviceCredentialCommand");
|
|
27
|
+
}
|
|
28
|
+
url;
|
|
29
|
+
data;
|
|
30
|
+
query;
|
|
31
|
+
headers;
|
|
32
|
+
config;
|
|
33
|
+
static params = ["spaceId", "deviceId"];
|
|
34
|
+
static url = "/spaces/:spaceId/devices/:deviceId/credentials";
|
|
35
|
+
static method = "post";
|
|
36
|
+
constructor(commandConfig, options = {}) {
|
|
37
|
+
const pathParams = CreateDeviceCredentialCommand.params;
|
|
38
|
+
let { data, query, headers } = commandConfig ?? {};
|
|
39
|
+
if (typeof data === "undefined") data = null;
|
|
40
|
+
if (typeof query === "undefined") query = null;
|
|
41
|
+
if (typeof headers === "undefined") headers = null;
|
|
42
|
+
let url = CreateDeviceCredentialCommand.url;
|
|
43
|
+
if (pathParams && data) {
|
|
44
|
+
for (const param of pathParams) {
|
|
45
|
+
const urlParam = ":" + param;
|
|
46
|
+
url = url.replace(urlParam, data[param]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
50
|
+
if (missingParams) {
|
|
51
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
52
|
+
throw new Error("Missing parameters: " + missing.join(", "));
|
|
53
|
+
}
|
|
54
|
+
this.url = url;
|
|
55
|
+
this.data = data;
|
|
56
|
+
this.query = query;
|
|
57
|
+
this.headers = headers;
|
|
58
|
+
this.config = {
|
|
59
|
+
method: CreateDeviceCredentialCommand.method,
|
|
60
|
+
url,
|
|
61
|
+
data,
|
|
62
|
+
params: query,
|
|
63
|
+
headers,
|
|
64
|
+
...options
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
CreateDeviceCredentialCommand
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=createDeviceCredential.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.generated/useCases/createDeviceCredential.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface CreateDeviceCredentialCommandConfig {\n data?: { spaceId: string; deviceId: string; [key: string]: unknown } | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface CreateDeviceCredentialCommandRequestConfig {\n method: \"post\";\n url: string;\n data: { spaceId: string; deviceId: string; [key: string]: unknown } | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class CreateDeviceCredentialCommand {\n url: string;\n data: { spaceId: string; deviceId: string; [key: string]: unknown } | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: CreateDeviceCredentialCommandRequestConfig;\n\n static params = [\"spaceId\", \"deviceId\"] as const;\n static url = \"/spaces/:spaceId/devices/:deviceId/credentials\";\n static method = \"post\" as const;\n\n constructor(\n commandConfig: CreateDeviceCredentialCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = CreateDeviceCredentialCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = CreateDeviceCredentialCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: CreateDeviceCredentialCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\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|
+
[key: string]: unknown;
|
|
6
|
+
} | null;
|
|
7
|
+
headers?: Record<string, string> | null;
|
|
8
|
+
query?: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
10
|
+
interface CreateDeviceCredentialCommandRequestConfig {
|
|
11
|
+
method: "post";
|
|
12
|
+
url: string;
|
|
13
|
+
data: {
|
|
14
|
+
spaceId: string;
|
|
15
|
+
deviceId: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
params: Record<string, unknown> | null;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
declare class CreateDeviceCredentialCommand {
|
|
26
|
+
url: string;
|
|
27
|
+
data: {
|
|
28
|
+
spaceId: string;
|
|
29
|
+
deviceId: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | null;
|
|
32
|
+
query: Record<string, unknown> | null;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
|
+
config: CreateDeviceCredentialCommandRequestConfig;
|
|
35
|
+
static params: readonly ["spaceId", "deviceId"];
|
|
36
|
+
static url: string;
|
|
37
|
+
static method: "post";
|
|
38
|
+
constructor(commandConfig: CreateDeviceCredentialCommandConfig, options?: Record<string, unknown>);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CreateDeviceCredentialCommand, type CreateDeviceCredentialCommandConfig, type CreateDeviceCredentialCommandRequestConfig };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var createPwaHandoffToken_exports = {};
|
|
20
|
+
__export(createPwaHandoffToken_exports, {
|
|
21
|
+
CreatePwaHandoffTokenCommand: () => CreatePwaHandoffTokenCommand
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(createPwaHandoffToken_exports);
|
|
24
|
+
class CreatePwaHandoffTokenCommand {
|
|
25
|
+
static {
|
|
26
|
+
__name(this, "CreatePwaHandoffTokenCommand");
|
|
27
|
+
}
|
|
28
|
+
url;
|
|
29
|
+
data;
|
|
30
|
+
query;
|
|
31
|
+
headers;
|
|
32
|
+
config;
|
|
33
|
+
static params = [];
|
|
34
|
+
static url = "/auth/pwa-handoff";
|
|
35
|
+
static method = "post";
|
|
36
|
+
constructor(commandConfig, options = {}) {
|
|
37
|
+
const pathParams = CreatePwaHandoffTokenCommand.params;
|
|
38
|
+
let { data, query, headers } = commandConfig ?? {};
|
|
39
|
+
if (typeof data === "undefined") data = null;
|
|
40
|
+
if (typeof query === "undefined") query = null;
|
|
41
|
+
if (typeof headers === "undefined") headers = null;
|
|
42
|
+
let url = CreatePwaHandoffTokenCommand.url;
|
|
43
|
+
if (pathParams && data) {
|
|
44
|
+
for (const param of pathParams) {
|
|
45
|
+
const urlParam = ":" + param;
|
|
46
|
+
url = url.replace(urlParam, data[param]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
50
|
+
if (missingParams) {
|
|
51
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
52
|
+
throw new Error("Missing parameters: " + missing.join(", "));
|
|
53
|
+
}
|
|
54
|
+
this.url = url;
|
|
55
|
+
this.data = data;
|
|
56
|
+
this.query = query;
|
|
57
|
+
this.headers = headers;
|
|
58
|
+
this.config = {
|
|
59
|
+
method: CreatePwaHandoffTokenCommand.method,
|
|
60
|
+
url,
|
|
61
|
+
data,
|
|
62
|
+
params: query,
|
|
63
|
+
headers,
|
|
64
|
+
...options
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
CreatePwaHandoffTokenCommand
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=createPwaHandoffToken.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.generated/useCases/createPwaHandoffToken.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface CreatePwaHandoffTokenCommandConfig {\n data?: Record<string, unknown> | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface CreatePwaHandoffTokenCommandRequestConfig {\n method: \"post\";\n url: string;\n data: Record<string, unknown> | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class CreatePwaHandoffTokenCommand {\n url: string;\n data: Record<string, unknown> | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: CreatePwaHandoffTokenCommandRequestConfig;\n\n static params = [] as const;\n static url = \"/auth/pwa-handoff\";\n static method = \"post\" as const;\n\n constructor(\n commandConfig: CreatePwaHandoffTokenCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = CreatePwaHandoffTokenCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = CreatePwaHandoffTokenCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: CreatePwaHandoffTokenCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBO,MAAM,6BAA6B;AAAA,EApB1C,OAoB0C;AAAA;AAAA;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA,OAAO,SAAS,CAAC;AAAA,EACjB,OAAO,MAAM;AAAA,EACb,OAAO,SAAS;AAAA,EAEhB,YACE,eACA,UAAmC,CAAC,GACpC;AACA,UAAM,aAAa,6BAA6B;AAEhD,QAAI,EAAE,MAAM,OAAO,QAAQ,IAAI,iBAAiB,CAAC;AAEjD,QAAI,OAAO,SAAS,YAAa,QAAO;AACxC,QAAI,OAAO,UAAU,YAAa,SAAQ;AAC1C,QAAI,OAAO,YAAY,YAAa,WAAU;AAG9C,QAAI,MAAc,6BAA6B;AAE/C,QAAI,cAAc,MAAM;AACtB,iBAAW,SAAS,YAAY;AAC9B,cAAM,WAAW,MAAM;AACvB,cAAM,IAAI,QAAQ,UAAW,KAAgC,KAAK,CAAC;AAAA,MACrE;AAAA,IACF;AAGA,UAAM,gBAAgB,IAAI,MAAM,gBAAgB;AAChD,QAAI,eAAe;AACjB,YAAM,UAAU,cAAc,IAAI,CAAC,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;AACnE,YAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;AAAA,IAC7D;AAEA,SAAK,MAAM;AACX,SAAK,OAAO;AACZ,SAAK,QAAQ;AACb,SAAK,UAAU;AAEf,SAAK,SAAS;AAAA,MACZ,QAAQ,6BAA6B;AAAA,MACrC;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface CreatePwaHandoffTokenCommandConfig {
|
|
2
|
+
data?: Record<string, unknown> | null;
|
|
3
|
+
headers?: Record<string, string> | null;
|
|
4
|
+
query?: Record<string, unknown> | null;
|
|
5
|
+
}
|
|
6
|
+
interface CreatePwaHandoffTokenCommandRequestConfig {
|
|
7
|
+
method: "post";
|
|
8
|
+
url: string;
|
|
9
|
+
data: Record<string, unknown> | null;
|
|
10
|
+
params: Record<string, unknown> | null;
|
|
11
|
+
headers: Record<string, string> | null;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
declare class CreatePwaHandoffTokenCommand {
|
|
18
|
+
url: string;
|
|
19
|
+
data: Record<string, unknown> | null;
|
|
20
|
+
query: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
config: CreatePwaHandoffTokenCommandRequestConfig;
|
|
23
|
+
static params: readonly [];
|
|
24
|
+
static url: string;
|
|
25
|
+
static method: "post";
|
|
26
|
+
constructor(commandConfig: CreatePwaHandoffTokenCommandConfig, options?: Record<string, unknown>);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CreatePwaHandoffTokenCommand, type CreatePwaHandoffTokenCommandConfig, type CreatePwaHandoffTokenCommandRequestConfig };
|