@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
|
@@ -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 updateDeviceCredential_exports = {};
|
|
20
|
+
__export(updateDeviceCredential_exports, {
|
|
21
|
+
UpdateDeviceCredentialCommand: () => UpdateDeviceCredentialCommand
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(updateDeviceCredential_exports);
|
|
24
|
+
class UpdateDeviceCredentialCommand {
|
|
25
|
+
static {
|
|
26
|
+
__name(this, "UpdateDeviceCredentialCommand");
|
|
27
|
+
}
|
|
28
|
+
url;
|
|
29
|
+
data;
|
|
30
|
+
query;
|
|
31
|
+
headers;
|
|
32
|
+
config;
|
|
33
|
+
static params = ["spaceId", "deviceId", "credentialId"];
|
|
34
|
+
static url = "/spaces/:spaceId/devices/:deviceId/credentials/:credentialId";
|
|
35
|
+
static method = "put";
|
|
36
|
+
constructor(commandConfig, options = {}) {
|
|
37
|
+
const pathParams = UpdateDeviceCredentialCommand.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 = UpdateDeviceCredentialCommand.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: UpdateDeviceCredentialCommand.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
|
+
UpdateDeviceCredentialCommand
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=updateDeviceCredential.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.generated/useCases/updateDeviceCredential.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface UpdateDeviceCredentialCommandConfig {\n data?: {\n spaceId: string;\n deviceId: string;\n credentialId: string;\n [key: string]: unknown;\n } | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface UpdateDeviceCredentialCommandRequestConfig {\n method: \"put\";\n url: string;\n data: {\n spaceId: string;\n deviceId: string;\n credentialId: string;\n [key: string]: unknown;\n } | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class UpdateDeviceCredentialCommand {\n url: string;\n data: {\n spaceId: string;\n deviceId: string;\n credentialId: string;\n [key: string]: unknown;\n } | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: UpdateDeviceCredentialCommandRequestConfig;\n\n static params = [\"spaceId\", \"deviceId\", \"credentialId\"] as const;\n static url = \"/spaces/:spaceId/devices/:deviceId/credentials/:credentialId\";\n static method = \"put\" as const;\n\n constructor(\n commandConfig: UpdateDeviceCredentialCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = UpdateDeviceCredentialCommand.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 = UpdateDeviceCredentialCommand.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: UpdateDeviceCredentialCommand.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;AA8BO,MAAM,8BAA8B;AAAA,EA9B3C,OA8B2C;AAAA;AAAA;AAAA,EACzC;AAAA,EACA;AAAA,EAMA;AAAA,EACA;AAAA,EACA;AAAA,EAEA,OAAO,SAAS,CAAC,WAAW,YAAY,cAAc;AAAA,EACtD,OAAO,MAAM;AAAA,EACb,OAAO,SAAS;AAAA,EAEhB,YACE,eACA,UAAmC,CAAC,GACpC;AACA,UAAM,aAAa,8BAA8B;AAEjD,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,8BAA8B;AAEhD,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,8BAA8B;AAAA,MACtC;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
interface UpdateDeviceCredentialCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
spaceId: string;
|
|
4
|
+
deviceId: string;
|
|
5
|
+
credentialId: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
} | null;
|
|
8
|
+
headers?: Record<string, string> | null;
|
|
9
|
+
query?: Record<string, unknown> | null;
|
|
10
|
+
}
|
|
11
|
+
interface UpdateDeviceCredentialCommandRequestConfig {
|
|
12
|
+
method: "put";
|
|
13
|
+
url: string;
|
|
14
|
+
data: {
|
|
15
|
+
spaceId: string;
|
|
16
|
+
deviceId: string;
|
|
17
|
+
credentialId: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
} | null;
|
|
20
|
+
params: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
declare class UpdateDeviceCredentialCommand {
|
|
28
|
+
url: string;
|
|
29
|
+
data: {
|
|
30
|
+
spaceId: string;
|
|
31
|
+
deviceId: string;
|
|
32
|
+
credentialId: string;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
} | null;
|
|
35
|
+
query: Record<string, unknown> | null;
|
|
36
|
+
headers: Record<string, string> | null;
|
|
37
|
+
config: UpdateDeviceCredentialCommandRequestConfig;
|
|
38
|
+
static params: readonly ["spaceId", "deviceId", "credentialId"];
|
|
39
|
+
static url: string;
|
|
40
|
+
static method: "put";
|
|
41
|
+
constructor(commandConfig: UpdateDeviceCredentialCommandConfig, options?: Record<string, unknown>);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { UpdateDeviceCredentialCommand, type UpdateDeviceCredentialCommandConfig, type UpdateDeviceCredentialCommandRequestConfig };
|
package/dist/cjs/validate.d.cts
CHANGED
|
@@ -136,18 +136,18 @@ declare const validateDimmer: ajv.ValidateFunction<{
|
|
|
136
136
|
}>;
|
|
137
137
|
declare const validateDiscoveredDevice: ajv.ValidateFunction<{
|
|
138
138
|
id: any;
|
|
139
|
+
deviceId: any;
|
|
139
140
|
name: any;
|
|
140
141
|
discriminator: any;
|
|
141
|
-
deviceId: any;
|
|
142
142
|
deviceData: any;
|
|
143
143
|
} & {
|
|
144
144
|
id: any;
|
|
145
|
+
} & {
|
|
146
|
+
deviceId: any;
|
|
145
147
|
} & {
|
|
146
148
|
name: any;
|
|
147
149
|
} & {
|
|
148
150
|
discriminator: any;
|
|
149
|
-
} & {
|
|
150
|
-
deviceId: any;
|
|
151
151
|
} & {
|
|
152
152
|
deviceData: any;
|
|
153
153
|
}>;
|
|
@@ -198,18 +198,18 @@ declare const validateEnergyReport: ajv.ValidateFunction<{
|
|
|
198
198
|
costPerKw: any;
|
|
199
199
|
}>;
|
|
200
200
|
declare const validateEnergyReportShard: ajv.ValidateFunction<{
|
|
201
|
-
id: any;
|
|
202
201
|
data: any;
|
|
202
|
+
id: any;
|
|
203
203
|
type: any;
|
|
204
204
|
expires: any;
|
|
205
205
|
roomId: any;
|
|
206
206
|
first: any;
|
|
207
207
|
last: any;
|
|
208
208
|
ndata: any;
|
|
209
|
-
} & {
|
|
210
|
-
id: any;
|
|
211
209
|
} & {
|
|
212
210
|
data: any;
|
|
211
|
+
} & {
|
|
212
|
+
id: any;
|
|
213
213
|
} & {
|
|
214
214
|
type: any;
|
|
215
215
|
} & {
|
package/dist/esm/httpClient.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatePwaHandoffTokenCommand } from './useCases/createPwaHandoffToken.js';
|
|
1
2
|
import { LogoutUserCommand } from './useCases/logoutUser.js';
|
|
2
3
|
import { DescribeMyAuthCommand } from './useCases/describeMyAuth.js';
|
|
3
4
|
import { ValidateAuthCommand } from './useCases/validateAuth.js';
|
|
@@ -26,14 +27,18 @@ import { CreateSpaceCommand } from './useCases/createSpace.js';
|
|
|
26
27
|
import { DescribeSpaceCommand } from './useCases/describeSpace.js';
|
|
27
28
|
import { DeleteSpaceCommand } from './useCases/deleteSpace.js';
|
|
28
29
|
import { CreateDeviceCommand } from './useCases/createDevice.js';
|
|
30
|
+
import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.js';
|
|
29
31
|
import { ListDevicesCommand } from './useCases/listDevices.js';
|
|
32
|
+
import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.js';
|
|
33
|
+
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
|
|
30
34
|
import { DescribeDeviceCommand } from './useCases/describeDevice.js';
|
|
31
35
|
import { UpdateDeviceCommand } from './useCases/updateDevice.js';
|
|
36
|
+
import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.js';
|
|
32
37
|
import { SetDeviceCommand } from './useCases/setDevice.js';
|
|
33
38
|
import { DeleteDeviceCommand } from './useCases/deleteDevice.js';
|
|
39
|
+
import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.js';
|
|
34
40
|
import { MoveDeviceCommand } from './useCases/moveDevice.js';
|
|
35
41
|
import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.js';
|
|
36
|
-
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
|
|
37
42
|
import { CreateCategoryCommand } from './useCases/createCategory.js';
|
|
38
43
|
import { DeleteCategoryCommand } from './useCases/deleteCategory.js';
|
|
39
44
|
import { DescribeCategoryCommand } from './useCases/describeCategory.js';
|
|
@@ -74,6 +79,7 @@ import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
|
|
|
74
79
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
|
|
75
80
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
|
|
76
81
|
import { ListPropertiesCommand } from './useCases/listProperties.js';
|
|
82
|
+
import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.js';
|
|
77
83
|
import { ListMyPropertiesCommand } from './useCases/listMyProperties.js';
|
|
78
84
|
import { CreatePropertyCommand } from './useCases/createProperty.js';
|
|
79
85
|
import { DeletePropertyCommand } from './useCases/deleteProperty.js';
|
|
@@ -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.js';
|
|
1
2
|
import { LogoutUserCommand } from './useCases/logoutUser.js';
|
|
2
3
|
import { DescribeMyAuthCommand } from './useCases/describeMyAuth.js';
|
|
3
4
|
import { ValidateAuthCommand } from './useCases/validateAuth.js';
|
|
@@ -26,14 +27,18 @@ import { CreateSpaceCommand } from './useCases/createSpace.js';
|
|
|
26
27
|
import { DescribeSpaceCommand } from './useCases/describeSpace.js';
|
|
27
28
|
import { DeleteSpaceCommand } from './useCases/deleteSpace.js';
|
|
28
29
|
import { CreateDeviceCommand } from './useCases/createDevice.js';
|
|
30
|
+
import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.js';
|
|
29
31
|
import { ListDevicesCommand } from './useCases/listDevices.js';
|
|
32
|
+
import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.js';
|
|
33
|
+
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
|
|
30
34
|
import { DescribeDeviceCommand } from './useCases/describeDevice.js';
|
|
31
35
|
import { UpdateDeviceCommand } from './useCases/updateDevice.js';
|
|
36
|
+
import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.js';
|
|
32
37
|
import { SetDeviceCommand } from './useCases/setDevice.js';
|
|
33
38
|
import { DeleteDeviceCommand } from './useCases/deleteDevice.js';
|
|
39
|
+
import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.js';
|
|
34
40
|
import { MoveDeviceCommand } from './useCases/moveDevice.js';
|
|
35
41
|
import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.js';
|
|
36
|
-
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
|
|
37
42
|
import { CreateCategoryCommand } from './useCases/createCategory.js';
|
|
38
43
|
import { DeleteCategoryCommand } from './useCases/deleteCategory.js';
|
|
39
44
|
import { DescribeCategoryCommand } from './useCases/describeCategory.js';
|
|
@@ -74,6 +79,7 @@ import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
|
|
|
74
79
|
import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
|
|
75
80
|
import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
|
|
76
81
|
import { ListPropertiesCommand } from './useCases/listProperties.js';
|
|
82
|
+
import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.js';
|
|
77
83
|
import { ListMyPropertiesCommand } from './useCases/listMyProperties.js';
|
|
78
84
|
import { CreatePropertyCommand } from './useCases/createProperty.js';
|
|
79
85
|
import { DeletePropertyCommand } from './useCases/deleteProperty.js';
|
|
@@ -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/esm/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ export { i as Commands } from './index-PDa8BHjL.js';
|
|
|
4
4
|
export { i as Errors } from './index-7k9xaBaL.js';
|
|
5
5
|
export { i as Events } from './index-B1__8mca.js';
|
|
6
6
|
export { i as Models } from './index-Cfk0f-lt.js';
|
|
7
|
-
export { i as UseCases } from './index-
|
|
7
|
+
export { i as UseCases } from './index-q0RAMvBh.js';
|
|
8
8
|
import 'node:buffer';
|
|
9
|
+
import './useCases/createPwaHandoffToken.js';
|
|
9
10
|
import './useCases/logoutUser.js';
|
|
10
11
|
import './useCases/describeMyAuth.js';
|
|
11
12
|
import './useCases/validateAuth.js';
|
|
@@ -34,14 +35,18 @@ import './useCases/createSpace.js';
|
|
|
34
35
|
import './useCases/describeSpace.js';
|
|
35
36
|
import './useCases/deleteSpace.js';
|
|
36
37
|
import './useCases/createDevice.js';
|
|
38
|
+
import './useCases/createDeviceCredential.js';
|
|
37
39
|
import './useCases/listDevices.js';
|
|
40
|
+
import './useCases/listDeviceCredentials.js';
|
|
41
|
+
import './useCases/listCameraStreamPreviews.js';
|
|
38
42
|
import './useCases/describeDevice.js';
|
|
39
43
|
import './useCases/updateDevice.js';
|
|
44
|
+
import './useCases/updateDeviceCredential.js';
|
|
40
45
|
import './useCases/setDevice.js';
|
|
41
46
|
import './useCases/deleteDevice.js';
|
|
47
|
+
import './useCases/deleteDeviceCredential.js';
|
|
42
48
|
import './useCases/moveDevice.js';
|
|
43
49
|
import './useCases/describeDeviceConfig.js';
|
|
44
|
-
import './useCases/listCameraStreamPreviews.js';
|
|
45
50
|
import './useCases/createCategory.js';
|
|
46
51
|
import './useCases/deleteCategory.js';
|
|
47
52
|
import './useCases/describeCategory.js';
|
|
@@ -82,6 +87,7 @@ import './useCases/deleteOrganization.js';
|
|
|
82
87
|
import './useCases/describeOrganization.js';
|
|
83
88
|
import './useCases/listOrganizations.js';
|
|
84
89
|
import './useCases/listProperties.js';
|
|
90
|
+
import './useCases/listPropertyCredentials.js';
|
|
85
91
|
import './useCases/listMyProperties.js';
|
|
86
92
|
import './useCases/createProperty.js';
|
|
87
93
|
import './useCases/deleteProperty.js';
|
|
@@ -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";
|
|
@@ -111,8 +111,10 @@ const defs = {
|
|
|
111
111
|
"mht",
|
|
112
112
|
"mobile-mule",
|
|
113
113
|
"modbus",
|
|
114
|
+
"napco",
|
|
114
115
|
"newline",
|
|
115
116
|
"obix",
|
|
117
|
+
"one-roster",
|
|
116
118
|
"paxton",
|
|
117
119
|
"pdk",
|
|
118
120
|
"pelican-wireless",
|
|
@@ -126,6 +128,7 @@ const defs = {
|
|
|
126
128
|
"samsung",
|
|
127
129
|
"se",
|
|
128
130
|
"sendgrid",
|
|
131
|
+
"singlewire",
|
|
129
132
|
"smartboard",
|
|
130
133
|
"sonifi",
|
|
131
134
|
"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":"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","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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","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface CreateDeviceCredentialCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
spaceId: string;
|
|
4
|
+
deviceId: string;
|
|
5
|
+
[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,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
class CreateDeviceCredentialCommand {
|
|
4
|
+
static {
|
|
5
|
+
__name(this, "CreateDeviceCredentialCommand");
|
|
6
|
+
}
|
|
7
|
+
url;
|
|
8
|
+
data;
|
|
9
|
+
query;
|
|
10
|
+
headers;
|
|
11
|
+
config;
|
|
12
|
+
static params = ["spaceId", "deviceId"];
|
|
13
|
+
static url = "/spaces/:spaceId/devices/:deviceId/credentials";
|
|
14
|
+
static method = "post";
|
|
15
|
+
constructor(commandConfig, options = {}) {
|
|
16
|
+
const pathParams = CreateDeviceCredentialCommand.params;
|
|
17
|
+
let { data, query, headers } = commandConfig ?? {};
|
|
18
|
+
if (typeof data === "undefined") data = null;
|
|
19
|
+
if (typeof query === "undefined") query = null;
|
|
20
|
+
if (typeof headers === "undefined") headers = null;
|
|
21
|
+
let url = CreateDeviceCredentialCommand.url;
|
|
22
|
+
if (pathParams && data) {
|
|
23
|
+
for (const param of pathParams) {
|
|
24
|
+
const urlParam = ":" + param;
|
|
25
|
+
url = url.replace(urlParam, data[param]);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
29
|
+
if (missingParams) {
|
|
30
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
31
|
+
throw new Error("Missing parameters: " + missing.join(", "));
|
|
32
|
+
}
|
|
33
|
+
this.url = url;
|
|
34
|
+
this.data = data;
|
|
35
|
+
this.query = query;
|
|
36
|
+
this.headers = headers;
|
|
37
|
+
this.config = {
|
|
38
|
+
method: CreateDeviceCredentialCommand.method,
|
|
39
|
+
url,
|
|
40
|
+
data,
|
|
41
|
+
params: query,
|
|
42
|
+
headers,
|
|
43
|
+
...options
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
CreateDeviceCredentialCommand
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=createDeviceCredential.js.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}\n"],"mappings":";;AAoBO,MAAM,8BAA8B;AAAA,EApB3C,OAoB2C;AAAA;AAAA;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA,OAAO,SAAS,CAAC,WAAW,UAAU;AAAA,EACtC,OAAO,MAAM;AAAA,EACb,OAAO,SAAS;AAAA,EAEhB,YACE,eACA,UAAmC,CAAC,GACpC;AACA,UAAM,aAAa,8BAA8B;AAEjD,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,8BAA8B;AAEhD,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,8BAA8B;AAAA,MACtC;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|