nuki-api-js 0.2.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +2459 -0
- package/dist/components.d.mts +3321 -0
- package/dist/components.d.mts.map +1 -0
- package/dist/components.mjs +2351 -0
- package/dist/effect.cjs +2165 -0
- package/dist/effect.d.mts +3255 -0
- package/dist/effect.d.mts.map +1 -0
- package/dist/effect.mjs +2143 -0
- package/dist/index.cjs +6035 -594
- package/dist/index.d.ts +17062 -5081
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +5248 -594
- package/dist/schemas.cjs +3419 -0
- package/dist/schemas.d.mts +5098 -0
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +2665 -0
- package/dist/types.cjs +229 -0
- package/dist/types.d.mts +10858 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +197 -0
- package/package.json +67 -19
- package/.turbo/turbo-build.log +0 -14
- package/CHANGELOG.md +0 -61
- package/README.md +0 -13
- package/dist/index.d.cts +0 -5708
- package/dist/index.d.mts +0 -5708
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,2459 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
function notEmpty(value) {
|
|
4
|
+
return value !== null && value !== undefined;
|
|
5
|
+
}
|
|
6
|
+
function compactObject(obj) {
|
|
7
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value])=>notEmpty(value)));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const baseUrl = "https://api.nuki.io";
|
|
11
|
+
async function client({ url, method, body, headers, pathParams, queryParams, signal, token = null, fetchImpl = fetch }) {
|
|
12
|
+
try {
|
|
13
|
+
const requestHeaders = compactObject({
|
|
14
|
+
"Content-Type": "application/json",
|
|
15
|
+
Authorization: token ? `Bearer ${token}` : undefined,
|
|
16
|
+
...headers
|
|
17
|
+
});
|
|
18
|
+
if (requestHeaders["Content-Type"]?.toLowerCase().includes("multipart/form-data")) {
|
|
19
|
+
delete requestHeaders["Content-Type"];
|
|
20
|
+
}
|
|
21
|
+
const payload = body instanceof FormData ? body : requestHeaders["Content-Type"] === "application/json" ? JSON.stringify(body) : body;
|
|
22
|
+
const fullUrl = `${baseUrl}${resolveUrl(url, queryParams, pathParams)}`;
|
|
23
|
+
const response = await fetchImpl(fullUrl, {
|
|
24
|
+
signal,
|
|
25
|
+
method: method.toUpperCase(),
|
|
26
|
+
body: payload,
|
|
27
|
+
headers: requestHeaders
|
|
28
|
+
});
|
|
29
|
+
if (!response.ok) {
|
|
30
|
+
let error;
|
|
31
|
+
try {
|
|
32
|
+
error = await response.json();
|
|
33
|
+
} catch (e) {
|
|
34
|
+
error = {
|
|
35
|
+
status: "unknown",
|
|
36
|
+
payload: e instanceof Error ? `Unexpected error (${e.message})` : "Unexpected error"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
if (response.headers?.get("content-type")?.includes("json")) {
|
|
42
|
+
return await response.json();
|
|
43
|
+
} else {
|
|
44
|
+
return await response.text();
|
|
45
|
+
}
|
|
46
|
+
} catch (e) {
|
|
47
|
+
const errorObject = {
|
|
48
|
+
name: "unknown",
|
|
49
|
+
message: e instanceof Error ? `Network error (${e.message})` : "Network error",
|
|
50
|
+
stack: e
|
|
51
|
+
};
|
|
52
|
+
throw errorObject;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const resolveUrl = (url, queryParams = {}, pathParams = {})=>{
|
|
56
|
+
let query = new URLSearchParams(queryParams).toString();
|
|
57
|
+
if (query) query = `?${query}`;
|
|
58
|
+
return url.replace(/\{\w*\}/g, (key)=>pathParams[key.slice(1, -1)] ?? "") + query;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @summary Get an account
|
|
63
|
+
* @link /account
|
|
64
|
+
*/ async function getAccountsResource({ config } = {}) {
|
|
65
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
66
|
+
const data = await request({
|
|
67
|
+
method: "GET",
|
|
68
|
+
url: `/account`,
|
|
69
|
+
...requestConfig,
|
|
70
|
+
headers: {
|
|
71
|
+
...requestConfig.headers
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return data;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @summary Update an account
|
|
78
|
+
* @link /account
|
|
79
|
+
*/ async function postAccountsResource({ body, queryParams, config } = {}) {
|
|
80
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
81
|
+
const data = await request({
|
|
82
|
+
method: "POST",
|
|
83
|
+
url: `/account`,
|
|
84
|
+
queryParams,
|
|
85
|
+
body: body,
|
|
86
|
+
...requestConfig,
|
|
87
|
+
headers: {
|
|
88
|
+
...requestConfig.headers
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
return data;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @summary Delete an account
|
|
95
|
+
* @link /account
|
|
96
|
+
*/ async function deleteAccountsResource({ config } = {}) {
|
|
97
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
98
|
+
const data = await request({
|
|
99
|
+
method: "DELETE",
|
|
100
|
+
url: `/account`,
|
|
101
|
+
...requestConfig,
|
|
102
|
+
headers: {
|
|
103
|
+
...requestConfig.headers
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return data;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @summary Trigger the email change verification email
|
|
110
|
+
* @link /account/email/change
|
|
111
|
+
*/ async function postAccountEmailChangeResource({ body, config } = {}) {
|
|
112
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
113
|
+
const data = await request({
|
|
114
|
+
method: "POST",
|
|
115
|
+
url: `/account/email/change`,
|
|
116
|
+
body: body,
|
|
117
|
+
...requestConfig,
|
|
118
|
+
headers: {
|
|
119
|
+
...requestConfig.headers
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return data;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @summary Trigger the email change verification email
|
|
126
|
+
* @link /account/email/verify
|
|
127
|
+
*/ async function postAccountEmailVerifyResource({ config } = {}) {
|
|
128
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
129
|
+
const data = await request({
|
|
130
|
+
method: "POST",
|
|
131
|
+
url: `/account/email/verify`,
|
|
132
|
+
...requestConfig,
|
|
133
|
+
headers: {
|
|
134
|
+
...requestConfig.headers
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return data;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @summary Get all integrations for this account
|
|
141
|
+
* @link /account/integration
|
|
142
|
+
*/ async function getAccountIntegrationsResource({ config } = {}) {
|
|
143
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
144
|
+
const data = await request({
|
|
145
|
+
method: "GET",
|
|
146
|
+
url: `/account/integration`,
|
|
147
|
+
...requestConfig,
|
|
148
|
+
headers: {
|
|
149
|
+
...requestConfig.headers
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
return data;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @summary Delete an integration
|
|
156
|
+
* @link /account/integration
|
|
157
|
+
*/ async function deleteAccountIntegrationsResource({ queryParams, config } = {}) {
|
|
158
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
159
|
+
const data = await request({
|
|
160
|
+
method: "DELETE",
|
|
161
|
+
url: `/account/integration`,
|
|
162
|
+
queryParams,
|
|
163
|
+
...requestConfig,
|
|
164
|
+
headers: {
|
|
165
|
+
...requestConfig.headers
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return data;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @summary Enable one-time password for an account
|
|
172
|
+
* @link /account/otp
|
|
173
|
+
*/ async function postAccountOtpResource({ body, config } = {}) {
|
|
174
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
175
|
+
const data = await request({
|
|
176
|
+
method: "POST",
|
|
177
|
+
url: `/account/otp`,
|
|
178
|
+
body: body,
|
|
179
|
+
...requestConfig,
|
|
180
|
+
headers: {
|
|
181
|
+
...requestConfig.headers
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
return data;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @summary Create a one-time password secret
|
|
188
|
+
* @link /account/otp
|
|
189
|
+
*/ async function putAccountOtpResource({ config } = {}) {
|
|
190
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
191
|
+
const data = await request({
|
|
192
|
+
method: "PUT",
|
|
193
|
+
url: `/account/otp`,
|
|
194
|
+
...requestConfig,
|
|
195
|
+
headers: {
|
|
196
|
+
...requestConfig.headers
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return data;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @summary Disable one-time password for an account
|
|
203
|
+
* @link /account/otp
|
|
204
|
+
*/ async function deleteAccountOtpResource({ config } = {}) {
|
|
205
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
206
|
+
const data = await request({
|
|
207
|
+
method: "DELETE",
|
|
208
|
+
url: `/account/otp`,
|
|
209
|
+
...requestConfig,
|
|
210
|
+
headers: {
|
|
211
|
+
...requestConfig.headers
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
return data;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @summary Reset account password
|
|
218
|
+
* @link /account/password/reset
|
|
219
|
+
*/ async function postAccountPasswordResetResource({ body, config } = {}) {
|
|
220
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
221
|
+
const data = await request({
|
|
222
|
+
method: "POST",
|
|
223
|
+
url: `/account/password/reset`,
|
|
224
|
+
body: body,
|
|
225
|
+
...requestConfig,
|
|
226
|
+
headers: {
|
|
227
|
+
...requestConfig.headers
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
return data;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @summary Get account setting
|
|
234
|
+
* @link /account/setting
|
|
235
|
+
*/ async function getAccountSettingResource({ config } = {}) {
|
|
236
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
237
|
+
const data = await request({
|
|
238
|
+
method: "GET",
|
|
239
|
+
url: `/account/setting`,
|
|
240
|
+
...requestConfig,
|
|
241
|
+
headers: {
|
|
242
|
+
...requestConfig.headers
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
return data;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @summary Create or update account setting
|
|
249
|
+
* @link /account/setting
|
|
250
|
+
*/ async function putAccountSettingResource({ body, config } = {}) {
|
|
251
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
252
|
+
const data = await request({
|
|
253
|
+
method: "PUT",
|
|
254
|
+
url: `/account/setting`,
|
|
255
|
+
body: body,
|
|
256
|
+
...requestConfig,
|
|
257
|
+
headers: {
|
|
258
|
+
...requestConfig.headers
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
return data;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @summary Delete an account setting
|
|
265
|
+
* @link /account/setting
|
|
266
|
+
*/ async function deleteAccountSettingResource({ config } = {}) {
|
|
267
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
268
|
+
const data = await request({
|
|
269
|
+
method: "DELETE",
|
|
270
|
+
url: `/account/setting`,
|
|
271
|
+
...requestConfig,
|
|
272
|
+
headers: {
|
|
273
|
+
...requestConfig.headers
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
return data;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* @summary Get a list of sub accounts
|
|
280
|
+
* @link /account/sub
|
|
281
|
+
*/ async function getAccountSubsResource({ queryParams, config } = {}) {
|
|
282
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
283
|
+
const data = await request({
|
|
284
|
+
method: "GET",
|
|
285
|
+
url: `/account/sub`,
|
|
286
|
+
queryParams,
|
|
287
|
+
...requestConfig,
|
|
288
|
+
headers: {
|
|
289
|
+
...requestConfig.headers
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return data;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @summary Create a sub account
|
|
296
|
+
* @link /account/sub
|
|
297
|
+
*/ async function putAccountSubsResource({ body, config } = {}) {
|
|
298
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
299
|
+
const data = await request({
|
|
300
|
+
method: "PUT",
|
|
301
|
+
url: `/account/sub`,
|
|
302
|
+
body: body,
|
|
303
|
+
...requestConfig,
|
|
304
|
+
headers: {
|
|
305
|
+
...requestConfig.headers
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
return data;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @summary Get a sub account
|
|
312
|
+
* @link /account/sub/{accountId}
|
|
313
|
+
*/ async function getAccountSubResource({ pathParams, config } = {}) {
|
|
314
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
315
|
+
if (!pathParams.accountId) {
|
|
316
|
+
throw new Error(`Missing required path parameter: accountId`);
|
|
317
|
+
}
|
|
318
|
+
const data = await request({
|
|
319
|
+
method: "GET",
|
|
320
|
+
url: `/account/sub/${pathParams.accountId}`,
|
|
321
|
+
...requestConfig,
|
|
322
|
+
headers: {
|
|
323
|
+
...requestConfig.headers
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
return data;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @summary Update a sub account
|
|
330
|
+
* @link /account/sub/{accountId}
|
|
331
|
+
*/ async function postAccountSubResource({ pathParams, body, config } = {}) {
|
|
332
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
333
|
+
if (!pathParams.accountId) {
|
|
334
|
+
throw new Error(`Missing required path parameter: accountId`);
|
|
335
|
+
}
|
|
336
|
+
const data = await request({
|
|
337
|
+
method: "POST",
|
|
338
|
+
url: `/account/sub/${pathParams.accountId}`,
|
|
339
|
+
body: body,
|
|
340
|
+
...requestConfig,
|
|
341
|
+
headers: {
|
|
342
|
+
...requestConfig.headers
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
return data;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* @summary Delete a sub account
|
|
349
|
+
* @link /account/sub/{accountId}
|
|
350
|
+
*/ async function deleteAccountSubResource({ pathParams, config } = {}) {
|
|
351
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
352
|
+
if (!pathParams.accountId) {
|
|
353
|
+
throw new Error(`Missing required path parameter: accountId`);
|
|
354
|
+
}
|
|
355
|
+
const data = await request({
|
|
356
|
+
method: "DELETE",
|
|
357
|
+
url: `/account/sub/${pathParams.accountId}`,
|
|
358
|
+
...requestConfig,
|
|
359
|
+
headers: {
|
|
360
|
+
...requestConfig.headers
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
return data;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @summary Get a list of account users
|
|
367
|
+
* @link /account/user
|
|
368
|
+
*/ async function getAccountUsersResource({ queryParams, config } = {}) {
|
|
369
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
370
|
+
const data = await request({
|
|
371
|
+
method: "GET",
|
|
372
|
+
url: `/account/user`,
|
|
373
|
+
queryParams,
|
|
374
|
+
...requestConfig,
|
|
375
|
+
headers: {
|
|
376
|
+
...requestConfig.headers
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
return data;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @summary Create an account user
|
|
383
|
+
* @link /account/user
|
|
384
|
+
*/ async function putAccountUsersResource({ body, config } = {}) {
|
|
385
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
386
|
+
const data = await request({
|
|
387
|
+
method: "PUT",
|
|
388
|
+
url: `/account/user`,
|
|
389
|
+
body: body,
|
|
390
|
+
...requestConfig,
|
|
391
|
+
headers: {
|
|
392
|
+
...requestConfig.headers
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
return data;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @summary Get an account user
|
|
399
|
+
* @link /account/user/{accountUserId}
|
|
400
|
+
*/ async function getAccountUserResource({ pathParams, config } = {}) {
|
|
401
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
402
|
+
if (!pathParams.accountUserId) {
|
|
403
|
+
throw new Error(`Missing required path parameter: accountUserId`);
|
|
404
|
+
}
|
|
405
|
+
const data = await request({
|
|
406
|
+
method: "GET",
|
|
407
|
+
url: `/account/user/${pathParams.accountUserId}`,
|
|
408
|
+
...requestConfig,
|
|
409
|
+
headers: {
|
|
410
|
+
...requestConfig.headers
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
return data;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @summary Update an account user
|
|
417
|
+
* @link /account/user/{accountUserId}
|
|
418
|
+
*/ async function postAccountUserResource({ pathParams, body, config } = {}) {
|
|
419
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
420
|
+
if (!pathParams.accountUserId) {
|
|
421
|
+
throw new Error(`Missing required path parameter: accountUserId`);
|
|
422
|
+
}
|
|
423
|
+
const data = await request({
|
|
424
|
+
method: "POST",
|
|
425
|
+
url: `/account/user/${pathParams.accountUserId}`,
|
|
426
|
+
body: body,
|
|
427
|
+
...requestConfig,
|
|
428
|
+
headers: {
|
|
429
|
+
...requestConfig.headers
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
return data;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @summary Delete an account user asynchronously
|
|
436
|
+
* @link /account/user/{accountUserId}
|
|
437
|
+
*/ async function deleteAccountUserResource({ pathParams, config } = {}) {
|
|
438
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
439
|
+
if (!pathParams.accountUserId) {
|
|
440
|
+
throw new Error(`Missing required path parameter: accountUserId`);
|
|
441
|
+
}
|
|
442
|
+
const data = await request({
|
|
443
|
+
method: "DELETE",
|
|
444
|
+
url: `/account/user/${pathParams.accountUserId}`,
|
|
445
|
+
...requestConfig,
|
|
446
|
+
headers: {
|
|
447
|
+
...requestConfig.headers
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
return data;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @summary Get a list of addresses
|
|
454
|
+
* @link /address
|
|
455
|
+
*/ async function getAddressesResource({ config } = {}) {
|
|
456
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
457
|
+
const data = await request({
|
|
458
|
+
method: "GET",
|
|
459
|
+
url: `/address`,
|
|
460
|
+
...requestConfig,
|
|
461
|
+
headers: {
|
|
462
|
+
...requestConfig.headers
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
return data;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* @summary Create an address
|
|
469
|
+
* @link /address
|
|
470
|
+
*/ async function putAddressesResource({ body, config } = {}) {
|
|
471
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
472
|
+
const data = await request({
|
|
473
|
+
method: "PUT",
|
|
474
|
+
url: `/address`,
|
|
475
|
+
body: body,
|
|
476
|
+
...requestConfig,
|
|
477
|
+
headers: {
|
|
478
|
+
...requestConfig.headers
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return data;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @summary Get info about an address token
|
|
485
|
+
* @link /address/token/{id}
|
|
486
|
+
*/ async function getAddressTokenResource({ pathParams, config } = {}) {
|
|
487
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
488
|
+
if (!pathParams.id) {
|
|
489
|
+
throw new Error(`Missing required path parameter: id`);
|
|
490
|
+
}
|
|
491
|
+
const data = await request({
|
|
492
|
+
method: "GET",
|
|
493
|
+
url: `/address/token/${pathParams.id}`,
|
|
494
|
+
...requestConfig,
|
|
495
|
+
headers: {
|
|
496
|
+
...requestConfig.headers
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
return data;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* @summary Get a redeemed address token
|
|
503
|
+
* @link /address/token/{id}/redeem
|
|
504
|
+
*/ async function getAddressTokenRedeemResource({ pathParams, config } = {}) {
|
|
505
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
506
|
+
if (!pathParams.id) {
|
|
507
|
+
throw new Error(`Missing required path parameter: id`);
|
|
508
|
+
}
|
|
509
|
+
const data = await request({
|
|
510
|
+
method: "GET",
|
|
511
|
+
url: `/address/token/${pathParams.id}/redeem`,
|
|
512
|
+
...requestConfig,
|
|
513
|
+
headers: {
|
|
514
|
+
...requestConfig.headers
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
return data;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @summary Redeem an address token
|
|
521
|
+
* @link /address/token/{id}/redeem
|
|
522
|
+
*/ async function postAddressTokenRedeemResource({ pathParams, queryParams, config } = {}) {
|
|
523
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
524
|
+
if (!pathParams.id) {
|
|
525
|
+
throw new Error(`Missing required path parameter: id`);
|
|
526
|
+
}
|
|
527
|
+
const data = await request({
|
|
528
|
+
method: "POST",
|
|
529
|
+
url: `/address/token/${pathParams.id}/redeem`,
|
|
530
|
+
queryParams,
|
|
531
|
+
...requestConfig,
|
|
532
|
+
headers: {
|
|
533
|
+
...requestConfig.headers
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
return data;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @summary Update an address
|
|
540
|
+
* @link /address/{addressId}
|
|
541
|
+
*/ async function postAddressResource({ pathParams, body, config } = {}) {
|
|
542
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
543
|
+
if (!pathParams.addressId) {
|
|
544
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
545
|
+
}
|
|
546
|
+
const data = await request({
|
|
547
|
+
method: "POST",
|
|
548
|
+
url: `/address/${pathParams.addressId}`,
|
|
549
|
+
body: body,
|
|
550
|
+
...requestConfig,
|
|
551
|
+
headers: {
|
|
552
|
+
...requestConfig.headers
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
return data;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* @summary Delete an address
|
|
559
|
+
* @link /address/{addressId}
|
|
560
|
+
*/ async function deleteAddressResource({ pathParams, config } = {}) {
|
|
561
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
562
|
+
if (!pathParams.addressId) {
|
|
563
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
564
|
+
}
|
|
565
|
+
const data = await request({
|
|
566
|
+
method: "DELETE",
|
|
567
|
+
url: `/address/${pathParams.addressId}`,
|
|
568
|
+
...requestConfig,
|
|
569
|
+
headers: {
|
|
570
|
+
...requestConfig.headers
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
return data;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @summary Get a list of address reservations
|
|
577
|
+
* @link /address/{addressId}/reservation
|
|
578
|
+
*/ async function getAddressReservationsResource({ pathParams, config } = {}) {
|
|
579
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
580
|
+
if (!pathParams.addressId) {
|
|
581
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
582
|
+
}
|
|
583
|
+
const data = await request({
|
|
584
|
+
method: "GET",
|
|
585
|
+
url: `/address/${pathParams.addressId}/reservation`,
|
|
586
|
+
...requestConfig,
|
|
587
|
+
headers: {
|
|
588
|
+
...requestConfig.headers
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
return data;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* @summary Issues authorizations for an address reservation
|
|
595
|
+
* @link /address/{addressId}/reservation/{id}/issue
|
|
596
|
+
*/ async function postAddressReservationIssueResource({ pathParams, config } = {}) {
|
|
597
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
598
|
+
if (!pathParams.addressId) {
|
|
599
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
600
|
+
}
|
|
601
|
+
if (!pathParams.id) {
|
|
602
|
+
throw new Error(`Missing required path parameter: id`);
|
|
603
|
+
}
|
|
604
|
+
const data = await request({
|
|
605
|
+
method: "POST",
|
|
606
|
+
url: `/address/${pathParams.addressId}/reservation/${pathParams.id}/issue`,
|
|
607
|
+
...requestConfig,
|
|
608
|
+
headers: {
|
|
609
|
+
...requestConfig.headers
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
return data;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* @summary Revoke authorizations for an address reservation
|
|
616
|
+
* @link /address/{addressId}/reservation/{id}/revoke
|
|
617
|
+
*/ async function postAddressReservationRevokeResource({ pathParams, config } = {}) {
|
|
618
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
619
|
+
if (!pathParams.addressId) {
|
|
620
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
621
|
+
}
|
|
622
|
+
if (!pathParams.id) {
|
|
623
|
+
throw new Error(`Missing required path parameter: id`);
|
|
624
|
+
}
|
|
625
|
+
const data = await request({
|
|
626
|
+
method: "POST",
|
|
627
|
+
url: `/address/${pathParams.addressId}/reservation/${pathParams.id}/revoke`,
|
|
628
|
+
...requestConfig,
|
|
629
|
+
headers: {
|
|
630
|
+
...requestConfig.headers
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
return data;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @summary Update access times of a reservation
|
|
637
|
+
* @link /address/{addressId}/reservation/{id}/update/accesstimes
|
|
638
|
+
*/ async function postReservationAccessTimesUpdateResource({ pathParams, body, config } = {}) {
|
|
639
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
640
|
+
if (!pathParams.addressId) {
|
|
641
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
642
|
+
}
|
|
643
|
+
if (!pathParams.id) {
|
|
644
|
+
throw new Error(`Missing required path parameter: id`);
|
|
645
|
+
}
|
|
646
|
+
const data = await request({
|
|
647
|
+
method: "POST",
|
|
648
|
+
url: `/address/${pathParams.addressId}/reservation/${pathParams.id}/update/accesstimes`,
|
|
649
|
+
body: body,
|
|
650
|
+
...requestConfig,
|
|
651
|
+
headers: {
|
|
652
|
+
...requestConfig.headers
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
return data;
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* @summary Get a list of address tokens
|
|
659
|
+
* @link /address/{addressId}/token
|
|
660
|
+
*/ async function getAddressTokensResource({ pathParams, config } = {}) {
|
|
661
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
662
|
+
if (!pathParams.addressId) {
|
|
663
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
664
|
+
}
|
|
665
|
+
const data = await request({
|
|
666
|
+
method: "GET",
|
|
667
|
+
url: `/address/${pathParams.addressId}/token`,
|
|
668
|
+
...requestConfig,
|
|
669
|
+
headers: {
|
|
670
|
+
...requestConfig.headers
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
return data;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* @summary Get a list of address units
|
|
677
|
+
* @link /address/{addressId}/unit
|
|
678
|
+
*/ async function getAddressUnitsResource({ pathParams, config } = {}) {
|
|
679
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
680
|
+
if (!pathParams.addressId) {
|
|
681
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
682
|
+
}
|
|
683
|
+
const data = await request({
|
|
684
|
+
method: "GET",
|
|
685
|
+
url: `/address/${pathParams.addressId}/unit`,
|
|
686
|
+
...requestConfig,
|
|
687
|
+
headers: {
|
|
688
|
+
...requestConfig.headers
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
return data;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @summary Create an address unit
|
|
695
|
+
* @link /address/{addressId}/unit
|
|
696
|
+
*/ async function putAddressUnitsResource({ pathParams, body, config } = {}) {
|
|
697
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
698
|
+
if (!pathParams.addressId) {
|
|
699
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
700
|
+
}
|
|
701
|
+
const data = await request({
|
|
702
|
+
method: "PUT",
|
|
703
|
+
url: `/address/${pathParams.addressId}/unit`,
|
|
704
|
+
body: body,
|
|
705
|
+
...requestConfig,
|
|
706
|
+
headers: {
|
|
707
|
+
...requestConfig.headers
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
return data;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* @summary Delete address units asynchronously
|
|
714
|
+
* @link /address/{addressId}/unit
|
|
715
|
+
*/ async function deleteAddressUnitsResource({ pathParams, body, config } = {}) {
|
|
716
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
717
|
+
if (!pathParams.addressId) {
|
|
718
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
719
|
+
}
|
|
720
|
+
const data = await request({
|
|
721
|
+
method: "DELETE",
|
|
722
|
+
url: `/address/${pathParams.addressId}/unit`,
|
|
723
|
+
body: body,
|
|
724
|
+
...requestConfig,
|
|
725
|
+
headers: {
|
|
726
|
+
...requestConfig.headers
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
return data;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @summary Delete an address unit
|
|
733
|
+
* @link /address/{addressId}/unit/{id}
|
|
734
|
+
*/ async function deleteAddressUnitResource({ pathParams, config } = {}) {
|
|
735
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
736
|
+
if (!pathParams.addressId) {
|
|
737
|
+
throw new Error(`Missing required path parameter: addressId`);
|
|
738
|
+
}
|
|
739
|
+
if (!pathParams.id) {
|
|
740
|
+
throw new Error(`Missing required path parameter: id`);
|
|
741
|
+
}
|
|
742
|
+
const data = await request({
|
|
743
|
+
method: "DELETE",
|
|
744
|
+
url: `/address/${pathParams.addressId}/unit/${pathParams.id}`,
|
|
745
|
+
...requestConfig,
|
|
746
|
+
headers: {
|
|
747
|
+
...requestConfig.headers
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
return data;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @summary Get all registered decentral webhooks
|
|
754
|
+
* @link /api/decentralWebhook
|
|
755
|
+
*/ async function getDecentralWebhooksResource({ config } = {}) {
|
|
756
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
757
|
+
const data = await request({
|
|
758
|
+
method: "GET",
|
|
759
|
+
url: `/api/decentralWebhook`,
|
|
760
|
+
...requestConfig,
|
|
761
|
+
headers: {
|
|
762
|
+
...requestConfig.headers
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
return data;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* @summary Create decentral webhook
|
|
769
|
+
* @link /api/decentralWebhook
|
|
770
|
+
*/ async function putDecentralWebhooksResource({ body, config } = {}) {
|
|
771
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
772
|
+
const data = await request({
|
|
773
|
+
method: "PUT",
|
|
774
|
+
url: `/api/decentralWebhook`,
|
|
775
|
+
body: body,
|
|
776
|
+
...requestConfig,
|
|
777
|
+
headers: {
|
|
778
|
+
...requestConfig.headers
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
return data;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* @summary Unregister a decentral webhook
|
|
785
|
+
* @link /api/decentralWebhook/{id}
|
|
786
|
+
*/ async function deleteDecentralWebhookResource({ pathParams, config } = {}) {
|
|
787
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
788
|
+
if (!pathParams.id) {
|
|
789
|
+
throw new Error(`Missing required path parameter: id`);
|
|
790
|
+
}
|
|
791
|
+
const data = await request({
|
|
792
|
+
method: "DELETE",
|
|
793
|
+
url: `/api/decentralWebhook/${pathParams.id}`,
|
|
794
|
+
...requestConfig,
|
|
795
|
+
headers: {
|
|
796
|
+
...requestConfig.headers
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
return data;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* @summary Get a list of API keys
|
|
803
|
+
* @link /api/key
|
|
804
|
+
*/ async function getApiKeysResource({ config } = {}) {
|
|
805
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
806
|
+
const data = await request({
|
|
807
|
+
method: "GET",
|
|
808
|
+
url: `/api/key`,
|
|
809
|
+
...requestConfig,
|
|
810
|
+
headers: {
|
|
811
|
+
...requestConfig.headers
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
return data;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* @summary Create an API key
|
|
818
|
+
* @link /api/key
|
|
819
|
+
*/ async function putApiKeysResource({ body, config } = {}) {
|
|
820
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
821
|
+
const data = await request({
|
|
822
|
+
method: "PUT",
|
|
823
|
+
url: `/api/key`,
|
|
824
|
+
body: body,
|
|
825
|
+
...requestConfig,
|
|
826
|
+
headers: {
|
|
827
|
+
...requestConfig.headers
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
return data;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* @summary Update an API key
|
|
834
|
+
* @link /api/key/{apiKeyId}
|
|
835
|
+
*/ async function postApiKeyResource({ pathParams, body, config } = {}) {
|
|
836
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
837
|
+
if (!pathParams.apiKeyId) {
|
|
838
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
839
|
+
}
|
|
840
|
+
const data = await request({
|
|
841
|
+
method: "POST",
|
|
842
|
+
url: `/api/key/${pathParams.apiKeyId}`,
|
|
843
|
+
body: body,
|
|
844
|
+
...requestConfig,
|
|
845
|
+
headers: {
|
|
846
|
+
...requestConfig.headers
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
return data;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @summary Delete an API key
|
|
853
|
+
* @link /api/key/{apiKeyId}
|
|
854
|
+
*/ async function deleteApiKeyResource({ pathParams, config } = {}) {
|
|
855
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
856
|
+
if (!pathParams.apiKeyId) {
|
|
857
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
858
|
+
}
|
|
859
|
+
const data = await request({
|
|
860
|
+
method: "DELETE",
|
|
861
|
+
url: `/api/key/${pathParams.apiKeyId}`,
|
|
862
|
+
...requestConfig,
|
|
863
|
+
headers: {
|
|
864
|
+
...requestConfig.headers
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
return data;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* @summary Get an advanced API key
|
|
871
|
+
* @link /api/key/{apiKeyId}/advanced
|
|
872
|
+
*/ async function getApiKeyAdvancedResource({ pathParams, config } = {}) {
|
|
873
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
874
|
+
if (!pathParams.apiKeyId) {
|
|
875
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
876
|
+
}
|
|
877
|
+
const data = await request({
|
|
878
|
+
method: "GET",
|
|
879
|
+
url: `/api/key/${pathParams.apiKeyId}/advanced`,
|
|
880
|
+
...requestConfig,
|
|
881
|
+
headers: {
|
|
882
|
+
...requestConfig.headers
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
return data;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* @summary Update an advanced API key
|
|
889
|
+
* @link /api/key/{apiKeyId}/advanced
|
|
890
|
+
*/ async function postApiKeyAdvancedResource({ pathParams, body, config } = {}) {
|
|
891
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
892
|
+
if (!pathParams.apiKeyId) {
|
|
893
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
894
|
+
}
|
|
895
|
+
const data = await request({
|
|
896
|
+
method: "POST",
|
|
897
|
+
url: `/api/key/${pathParams.apiKeyId}/advanced`,
|
|
898
|
+
body: body,
|
|
899
|
+
...requestConfig,
|
|
900
|
+
headers: {
|
|
901
|
+
...requestConfig.headers
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
return data;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* @summary Create an advanced API key
|
|
908
|
+
* @link /api/key/{apiKeyId}/advanced
|
|
909
|
+
*/ async function putApiKeyAdvancedResource({ pathParams, body, config } = {}) {
|
|
910
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
911
|
+
if (!pathParams.apiKeyId) {
|
|
912
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
913
|
+
}
|
|
914
|
+
const data = await request({
|
|
915
|
+
method: "PUT",
|
|
916
|
+
url: `/api/key/${pathParams.apiKeyId}/advanced`,
|
|
917
|
+
body: body,
|
|
918
|
+
...requestConfig,
|
|
919
|
+
headers: {
|
|
920
|
+
...requestConfig.headers
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
return data;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* @summary Delete an advanced API key
|
|
927
|
+
* @link /api/key/{apiKeyId}/advanced
|
|
928
|
+
*/ async function deleteApiKeyAdvancedResource({ pathParams, config } = {}) {
|
|
929
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
930
|
+
if (!pathParams.apiKeyId) {
|
|
931
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
932
|
+
}
|
|
933
|
+
const data = await request({
|
|
934
|
+
method: "DELETE",
|
|
935
|
+
url: `/api/key/${pathParams.apiKeyId}/advanced`,
|
|
936
|
+
...requestConfig,
|
|
937
|
+
headers: {
|
|
938
|
+
...requestConfig.headers
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
return data;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* @summary Reactivate a deactivated advanced webhook integration
|
|
945
|
+
* @link /api/key/{apiKeyId}/advanced/reactivate
|
|
946
|
+
*/ async function postApiKeyAdvancedReactivateResource({ pathParams, config } = {}) {
|
|
947
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
948
|
+
if (!pathParams.apiKeyId) {
|
|
949
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
950
|
+
}
|
|
951
|
+
const data = await request({
|
|
952
|
+
method: "POST",
|
|
953
|
+
url: `/api/key/${pathParams.apiKeyId}/advanced/reactivate`,
|
|
954
|
+
...requestConfig,
|
|
955
|
+
headers: {
|
|
956
|
+
...requestConfig.headers
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
return data;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* @summary Get a list of API key tokens
|
|
963
|
+
* @link /api/key/{apiKeyId}/token
|
|
964
|
+
*/ async function getApiKeyTokensResource({ pathParams, config } = {}) {
|
|
965
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
966
|
+
if (!pathParams.apiKeyId) {
|
|
967
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
968
|
+
}
|
|
969
|
+
const data = await request({
|
|
970
|
+
method: "GET",
|
|
971
|
+
url: `/api/key/${pathParams.apiKeyId}/token`,
|
|
972
|
+
...requestConfig,
|
|
973
|
+
headers: {
|
|
974
|
+
...requestConfig.headers
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
return data;
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* @summary Create an API key token
|
|
981
|
+
* @link /api/key/{apiKeyId}/token
|
|
982
|
+
*/ async function putApiKeyTokensResource({ pathParams, body, config } = {}) {
|
|
983
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
984
|
+
if (!pathParams.apiKeyId) {
|
|
985
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
986
|
+
}
|
|
987
|
+
const data = await request({
|
|
988
|
+
method: "PUT",
|
|
989
|
+
url: `/api/key/${pathParams.apiKeyId}/token`,
|
|
990
|
+
body: body,
|
|
991
|
+
...requestConfig,
|
|
992
|
+
headers: {
|
|
993
|
+
...requestConfig.headers
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
return data;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* @summary Update an API key token
|
|
1000
|
+
* @link /api/key/{apiKeyId}/token/{id}
|
|
1001
|
+
*/ async function postApiKeyTokenResource({ pathParams, body, config } = {}) {
|
|
1002
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1003
|
+
if (!pathParams.apiKeyId) {
|
|
1004
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
1005
|
+
}
|
|
1006
|
+
if (!pathParams.id) {
|
|
1007
|
+
throw new Error(`Missing required path parameter: id`);
|
|
1008
|
+
}
|
|
1009
|
+
const data = await request({
|
|
1010
|
+
method: "POST",
|
|
1011
|
+
url: `/api/key/${pathParams.apiKeyId}/token/${pathParams.id}`,
|
|
1012
|
+
body: body,
|
|
1013
|
+
...requestConfig,
|
|
1014
|
+
headers: {
|
|
1015
|
+
...requestConfig.headers
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
return data;
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @summary Delete an API key token
|
|
1022
|
+
* @link /api/key/{apiKeyId}/token/{id}
|
|
1023
|
+
*/ async function deleteApiKeyTokenResource({ pathParams, config } = {}) {
|
|
1024
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1025
|
+
if (!pathParams.apiKeyId) {
|
|
1026
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
1027
|
+
}
|
|
1028
|
+
if (!pathParams.id) {
|
|
1029
|
+
throw new Error(`Missing required path parameter: id`);
|
|
1030
|
+
}
|
|
1031
|
+
const data = await request({
|
|
1032
|
+
method: "DELETE",
|
|
1033
|
+
url: `/api/key/${pathParams.apiKeyId}/token/${pathParams.id}`,
|
|
1034
|
+
...requestConfig,
|
|
1035
|
+
headers: {
|
|
1036
|
+
...requestConfig.headers
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
return data;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @summary Get a list of webhook logs (descending)
|
|
1043
|
+
* @link /api/key/{apiKeyId}/webhook/logs
|
|
1044
|
+
*/ async function getWebhookLogsResource({ pathParams, queryParams, config } = {}) {
|
|
1045
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1046
|
+
if (!pathParams.apiKeyId) {
|
|
1047
|
+
throw new Error(`Missing required path parameter: apiKeyId`);
|
|
1048
|
+
}
|
|
1049
|
+
const data = await request({
|
|
1050
|
+
method: "GET",
|
|
1051
|
+
url: `/api/key/${pathParams.apiKeyId}/webhook/logs`,
|
|
1052
|
+
queryParams,
|
|
1053
|
+
...requestConfig,
|
|
1054
|
+
headers: {
|
|
1055
|
+
...requestConfig.headers
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
return data;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* @summary Update the web config for a group of smartlocks
|
|
1062
|
+
* @link /bulk-web-config
|
|
1063
|
+
*/ async function postSmartlockBulkWebConfigResource({ body, config } = {}) {
|
|
1064
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1065
|
+
const data = await request({
|
|
1066
|
+
method: "POST",
|
|
1067
|
+
url: `/bulk-web-config`,
|
|
1068
|
+
body: body,
|
|
1069
|
+
...requestConfig,
|
|
1070
|
+
headers: {
|
|
1071
|
+
...requestConfig.headers
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
return data;
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* @summary Get a list of companies
|
|
1078
|
+
* @link /company
|
|
1079
|
+
*/ async function getCompaniesResource({ config } = {}) {
|
|
1080
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1081
|
+
const data = await request({
|
|
1082
|
+
method: "GET",
|
|
1083
|
+
url: `/company`,
|
|
1084
|
+
...requestConfig,
|
|
1085
|
+
headers: {
|
|
1086
|
+
...requestConfig.headers
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
return data;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* @summary Get all notifications attached to your account
|
|
1093
|
+
* @link /notification
|
|
1094
|
+
*/ async function getNotificationsResource({ queryParams, config } = {}) {
|
|
1095
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1096
|
+
const data = await request({
|
|
1097
|
+
method: "GET",
|
|
1098
|
+
url: `/notification`,
|
|
1099
|
+
queryParams,
|
|
1100
|
+
...requestConfig,
|
|
1101
|
+
headers: {
|
|
1102
|
+
...requestConfig.headers
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
return data;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @summary Create a notification configuration
|
|
1109
|
+
* @link /notification
|
|
1110
|
+
*/ async function putNotificationsResource({ body, config } = {}) {
|
|
1111
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1112
|
+
const data = await request({
|
|
1113
|
+
method: "PUT",
|
|
1114
|
+
url: `/notification`,
|
|
1115
|
+
body: body,
|
|
1116
|
+
...requestConfig,
|
|
1117
|
+
headers: {
|
|
1118
|
+
...requestConfig.headers
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
return data;
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* @summary Get a notification configuration
|
|
1125
|
+
* @link /notification/{notificationId}
|
|
1126
|
+
*/ async function getNotificationResource({ pathParams, config } = {}) {
|
|
1127
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1128
|
+
if (!pathParams.notificationId) {
|
|
1129
|
+
throw new Error(`Missing required path parameter: notificationId`);
|
|
1130
|
+
}
|
|
1131
|
+
const data = await request({
|
|
1132
|
+
method: "GET",
|
|
1133
|
+
url: `/notification/${pathParams.notificationId}`,
|
|
1134
|
+
...requestConfig,
|
|
1135
|
+
headers: {
|
|
1136
|
+
...requestConfig.headers
|
|
1137
|
+
}
|
|
1138
|
+
});
|
|
1139
|
+
return data;
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* @summary Update a notification configuration
|
|
1143
|
+
* @link /notification/{notificationId}
|
|
1144
|
+
*/ async function postNotificationResource({ pathParams, body, config } = {}) {
|
|
1145
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1146
|
+
if (!pathParams.notificationId) {
|
|
1147
|
+
throw new Error(`Missing required path parameter: notificationId`);
|
|
1148
|
+
}
|
|
1149
|
+
const data = await request({
|
|
1150
|
+
method: "POST",
|
|
1151
|
+
url: `/notification/${pathParams.notificationId}`,
|
|
1152
|
+
body: body,
|
|
1153
|
+
...requestConfig,
|
|
1154
|
+
headers: {
|
|
1155
|
+
...requestConfig.headers
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
return data;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* @summary Delete a notification configuration
|
|
1162
|
+
* @link /notification/{notificationId}
|
|
1163
|
+
*/ async function deleteNotificationResource({ pathParams, config } = {}) {
|
|
1164
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1165
|
+
if (!pathParams.notificationId) {
|
|
1166
|
+
throw new Error(`Missing required path parameter: notificationId`);
|
|
1167
|
+
}
|
|
1168
|
+
const data = await request({
|
|
1169
|
+
method: "DELETE",
|
|
1170
|
+
url: `/notification/${pathParams.notificationId}`,
|
|
1171
|
+
...requestConfig,
|
|
1172
|
+
headers: {
|
|
1173
|
+
...requestConfig.headers
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
return data;
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* @summary Get all intercom brands
|
|
1180
|
+
* @link /opener/brand
|
|
1181
|
+
*/ async function getOpenerBrandsResource({ config } = {}) {
|
|
1182
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1183
|
+
const data = await request({
|
|
1184
|
+
method: "GET",
|
|
1185
|
+
url: `/opener/brand`,
|
|
1186
|
+
...requestConfig,
|
|
1187
|
+
headers: {
|
|
1188
|
+
...requestConfig.headers
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
return data;
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* @summary Get an intercom brand
|
|
1195
|
+
* @link /opener/brand/{brandId}
|
|
1196
|
+
*/ async function getOpenerBrandResource({ pathParams, config } = {}) {
|
|
1197
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1198
|
+
if (!pathParams.brandId) {
|
|
1199
|
+
throw new Error(`Missing required path parameter: brandId`);
|
|
1200
|
+
}
|
|
1201
|
+
const data = await request({
|
|
1202
|
+
method: "GET",
|
|
1203
|
+
url: `/opener/brand/${pathParams.brandId}`,
|
|
1204
|
+
...requestConfig,
|
|
1205
|
+
headers: {
|
|
1206
|
+
...requestConfig.headers
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
return data;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* @summary Get a list of intercom models
|
|
1213
|
+
* @link /opener/intercom
|
|
1214
|
+
*/ async function getOpenerIntercomsResource({ queryParams, config } = {}) {
|
|
1215
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1216
|
+
const data = await request({
|
|
1217
|
+
method: "GET",
|
|
1218
|
+
url: `/opener/intercom`,
|
|
1219
|
+
queryParams,
|
|
1220
|
+
...requestConfig,
|
|
1221
|
+
headers: {
|
|
1222
|
+
...requestConfig.headers
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1225
|
+
return data;
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* @summary Get an intercom model
|
|
1229
|
+
* @link /opener/intercom/{intercomId}
|
|
1230
|
+
*/ async function getOpenerIntercomResource({ pathParams, config } = {}) {
|
|
1231
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1232
|
+
if (!pathParams.intercomId) {
|
|
1233
|
+
throw new Error(`Missing required path parameter: intercomId`);
|
|
1234
|
+
}
|
|
1235
|
+
const data = await request({
|
|
1236
|
+
method: "GET",
|
|
1237
|
+
url: `/opener/intercom/${pathParams.intercomId}`,
|
|
1238
|
+
...requestConfig,
|
|
1239
|
+
headers: {
|
|
1240
|
+
...requestConfig.headers
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
return data;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @summary Get a list of services
|
|
1247
|
+
* @link /service
|
|
1248
|
+
*/ async function getServicesResource({ queryParams, config } = {}) {
|
|
1249
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1250
|
+
const data = await request({
|
|
1251
|
+
method: "GET",
|
|
1252
|
+
url: `/service`,
|
|
1253
|
+
queryParams,
|
|
1254
|
+
...requestConfig,
|
|
1255
|
+
headers: {
|
|
1256
|
+
...requestConfig.headers
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
return data;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* @summary Get a service
|
|
1263
|
+
* @link /service/{serviceId}
|
|
1264
|
+
*/ async function getServiceResource({ pathParams, config } = {}) {
|
|
1265
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1266
|
+
if (!pathParams.serviceId) {
|
|
1267
|
+
throw new Error(`Missing required path parameter: serviceId`);
|
|
1268
|
+
}
|
|
1269
|
+
const data = await request({
|
|
1270
|
+
method: "GET",
|
|
1271
|
+
url: `/service/${pathParams.serviceId}`,
|
|
1272
|
+
...requestConfig,
|
|
1273
|
+
headers: {
|
|
1274
|
+
...requestConfig.headers
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
return data;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* @summary Link a service
|
|
1281
|
+
* @link /service/{serviceId}/link
|
|
1282
|
+
*/ async function postServiceLinkResource({ pathParams, config } = {}) {
|
|
1283
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1284
|
+
if (!pathParams.serviceId) {
|
|
1285
|
+
throw new Error(`Missing required path parameter: serviceId`);
|
|
1286
|
+
}
|
|
1287
|
+
const data = await request({
|
|
1288
|
+
method: "POST",
|
|
1289
|
+
url: `/service/${pathParams.serviceId}/link`,
|
|
1290
|
+
...requestConfig,
|
|
1291
|
+
headers: {
|
|
1292
|
+
...requestConfig.headers
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
return data;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* @summary Sync a service
|
|
1299
|
+
* @link /service/{serviceId}/sync
|
|
1300
|
+
*/ async function postServiceSyncResource({ pathParams, config } = {}) {
|
|
1301
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1302
|
+
if (!pathParams.serviceId) {
|
|
1303
|
+
throw new Error(`Missing required path parameter: serviceId`);
|
|
1304
|
+
}
|
|
1305
|
+
const data = await request({
|
|
1306
|
+
method: "POST",
|
|
1307
|
+
url: `/service/${pathParams.serviceId}/sync`,
|
|
1308
|
+
...requestConfig,
|
|
1309
|
+
headers: {
|
|
1310
|
+
...requestConfig.headers
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
return data;
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* @summary Unlink a service
|
|
1317
|
+
* @link /service/{serviceId}/unlink
|
|
1318
|
+
*/ async function postServiceUnlinkResource({ pathParams, config } = {}) {
|
|
1319
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1320
|
+
if (!pathParams.serviceId) {
|
|
1321
|
+
throw new Error(`Missing required path parameter: serviceId`);
|
|
1322
|
+
}
|
|
1323
|
+
const data = await request({
|
|
1324
|
+
method: "POST",
|
|
1325
|
+
url: `/service/${pathParams.serviceId}/unlink`,
|
|
1326
|
+
...requestConfig,
|
|
1327
|
+
headers: {
|
|
1328
|
+
...requestConfig.headers
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
return data;
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* @summary Get a list of smartlocks
|
|
1335
|
+
* @link /smartlock
|
|
1336
|
+
*/ async function getSmartlocksResource({ queryParams, config } = {}) {
|
|
1337
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1338
|
+
const data = await request({
|
|
1339
|
+
method: "GET",
|
|
1340
|
+
url: `/smartlock`,
|
|
1341
|
+
queryParams,
|
|
1342
|
+
...requestConfig,
|
|
1343
|
+
headers: {
|
|
1344
|
+
...requestConfig.headers
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
1347
|
+
return data;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* @summary Get a list of smartlock authorizations for your smartlocks
|
|
1351
|
+
* @link /smartlock/auth
|
|
1352
|
+
*/ async function getSmartlocksAuthsResource({ queryParams, config } = {}) {
|
|
1353
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1354
|
+
const data = await request({
|
|
1355
|
+
method: "GET",
|
|
1356
|
+
url: `/smartlock/auth`,
|
|
1357
|
+
queryParams,
|
|
1358
|
+
...requestConfig,
|
|
1359
|
+
headers: {
|
|
1360
|
+
...requestConfig.headers
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
return data;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* @summary Update smartlock authorizations asynchronously
|
|
1367
|
+
* @link /smartlock/auth
|
|
1368
|
+
*/ async function postSmartlocksAuthsResource({ body, config } = {}) {
|
|
1369
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1370
|
+
const data = await request({
|
|
1371
|
+
method: "POST",
|
|
1372
|
+
url: `/smartlock/auth`,
|
|
1373
|
+
body: body,
|
|
1374
|
+
...requestConfig,
|
|
1375
|
+
headers: {
|
|
1376
|
+
...requestConfig.headers
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
return data;
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* @summary Create smartlock authorizations asynchronously
|
|
1383
|
+
* @link /smartlock/auth
|
|
1384
|
+
*/ async function putSmartlocksAuthsResource({ body, config } = {}) {
|
|
1385
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1386
|
+
const data = await request({
|
|
1387
|
+
method: "PUT",
|
|
1388
|
+
url: `/smartlock/auth`,
|
|
1389
|
+
body: body,
|
|
1390
|
+
...requestConfig,
|
|
1391
|
+
headers: {
|
|
1392
|
+
...requestConfig.headers
|
|
1393
|
+
}
|
|
1394
|
+
});
|
|
1395
|
+
return data;
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* @summary Delete smartlock authorizations asynchronously
|
|
1399
|
+
* @link /smartlock/auth
|
|
1400
|
+
*/ async function deleteSmartlocksAuthsResource({ body, config } = {}) {
|
|
1401
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1402
|
+
const data = await request({
|
|
1403
|
+
method: "DELETE",
|
|
1404
|
+
url: `/smartlock/auth`,
|
|
1405
|
+
body: body,
|
|
1406
|
+
...requestConfig,
|
|
1407
|
+
headers: {
|
|
1408
|
+
...requestConfig.headers
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
return data;
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* @summary Create smartlock authorizations asynchronously
|
|
1415
|
+
* @link /smartlock/auth/advanced
|
|
1416
|
+
*/ async function putSmartlockAuthsAdvancedResource({ body, config } = {}) {
|
|
1417
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1418
|
+
const data = await request({
|
|
1419
|
+
method: "PUT",
|
|
1420
|
+
url: `/smartlock/auth/advanced`,
|
|
1421
|
+
body: body,
|
|
1422
|
+
...requestConfig,
|
|
1423
|
+
headers: {
|
|
1424
|
+
...requestConfig.headers
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
return data;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* @summary Get a paginated list of smartlock authorizations for your smartlocks
|
|
1431
|
+
* @link /smartlock/auth/paged
|
|
1432
|
+
*/ async function getSmartlocksAuthsPaginatedResource({ queryParams, config } = {}) {
|
|
1433
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1434
|
+
const data = await request({
|
|
1435
|
+
method: "GET",
|
|
1436
|
+
url: `/smartlock/auth/paged`,
|
|
1437
|
+
queryParams,
|
|
1438
|
+
...requestConfig,
|
|
1439
|
+
headers: {
|
|
1440
|
+
...requestConfig.headers
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
return data;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* @summary Get a list of smartlock logs for all of your smartlocks
|
|
1447
|
+
* @link /smartlock/log
|
|
1448
|
+
*/ async function getSmartlocksLogsResource({ queryParams, config } = {}) {
|
|
1449
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1450
|
+
const data = await request({
|
|
1451
|
+
method: "GET",
|
|
1452
|
+
url: `/smartlock/log`,
|
|
1453
|
+
queryParams,
|
|
1454
|
+
...requestConfig,
|
|
1455
|
+
headers: {
|
|
1456
|
+
...requestConfig.headers
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
return data;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* @summary Get a smartlock
|
|
1463
|
+
* @link /smartlock/{smartlockId}
|
|
1464
|
+
*/ async function getSmartlockResource({ pathParams, config } = {}) {
|
|
1465
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1466
|
+
if (!pathParams.smartlockId) {
|
|
1467
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1468
|
+
}
|
|
1469
|
+
const data = await request({
|
|
1470
|
+
method: "GET",
|
|
1471
|
+
url: `/smartlock/${pathParams.smartlockId}`,
|
|
1472
|
+
...requestConfig,
|
|
1473
|
+
headers: {
|
|
1474
|
+
...requestConfig.headers
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
return data;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* @summary Update a smartlock
|
|
1481
|
+
* @link /smartlock/{smartlockId}
|
|
1482
|
+
*/ async function postSmartlockResource({ pathParams, body, config } = {}) {
|
|
1483
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1484
|
+
if (!pathParams.smartlockId) {
|
|
1485
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1486
|
+
}
|
|
1487
|
+
const data = await request({
|
|
1488
|
+
method: "POST",
|
|
1489
|
+
url: `/smartlock/${pathParams.smartlockId}`,
|
|
1490
|
+
body: body,
|
|
1491
|
+
...requestConfig,
|
|
1492
|
+
headers: {
|
|
1493
|
+
...requestConfig.headers
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
return data;
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* @summary Delete a smartlock
|
|
1500
|
+
* @link /smartlock/{smartlockId}
|
|
1501
|
+
*/ async function deleteSmartlockResource({ pathParams, config } = {}) {
|
|
1502
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1503
|
+
if (!pathParams.smartlockId) {
|
|
1504
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1505
|
+
}
|
|
1506
|
+
const data = await request({
|
|
1507
|
+
method: "DELETE",
|
|
1508
|
+
url: `/smartlock/${pathParams.smartlockId}`,
|
|
1509
|
+
...requestConfig,
|
|
1510
|
+
headers: {
|
|
1511
|
+
...requestConfig.headers
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
return data;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* @summary Lock & unlock a smartlock with options
|
|
1518
|
+
* @link /smartlock/{smartlockId}/action
|
|
1519
|
+
*/ async function postSmartlockActionResource({ pathParams, body, config } = {}) {
|
|
1520
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1521
|
+
if (!pathParams.smartlockId) {
|
|
1522
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1523
|
+
}
|
|
1524
|
+
const data = await request({
|
|
1525
|
+
method: "POST",
|
|
1526
|
+
url: `/smartlock/${pathParams.smartlockId}/action`,
|
|
1527
|
+
body: body,
|
|
1528
|
+
...requestConfig,
|
|
1529
|
+
headers: {
|
|
1530
|
+
...requestConfig.headers
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
return data;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* @summary Lock & unlock a smartlock with callback
|
|
1537
|
+
* @link /smartlock/{smartlockId}/action/advanced
|
|
1538
|
+
*/ async function postSmartlockActionAdvancedResource({ pathParams, body, config } = {}) {
|
|
1539
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1540
|
+
if (!pathParams.smartlockId) {
|
|
1541
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1542
|
+
}
|
|
1543
|
+
const data = await request({
|
|
1544
|
+
method: "POST",
|
|
1545
|
+
url: `/smartlock/${pathParams.smartlockId}/action/advanced`,
|
|
1546
|
+
body: body,
|
|
1547
|
+
...requestConfig,
|
|
1548
|
+
headers: {
|
|
1549
|
+
...requestConfig.headers
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
return data;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* @summary Lock a smartlock
|
|
1556
|
+
* @link /smartlock/{smartlockId}/action/lock
|
|
1557
|
+
*/ async function postSmartlockLockActionResource({ pathParams, config } = {}) {
|
|
1558
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1559
|
+
if (!pathParams.smartlockId) {
|
|
1560
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1561
|
+
}
|
|
1562
|
+
const data = await request({
|
|
1563
|
+
method: "POST",
|
|
1564
|
+
url: `/smartlock/${pathParams.smartlockId}/action/lock`,
|
|
1565
|
+
...requestConfig,
|
|
1566
|
+
headers: {
|
|
1567
|
+
...requestConfig.headers
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
return data;
|
|
1571
|
+
}
|
|
1572
|
+
/**
|
|
1573
|
+
* @summary Lock a smartlock
|
|
1574
|
+
* @link /smartlock/{smartlockId}/action/lock/advanced
|
|
1575
|
+
*/ async function postSmartlockLockActionAdvancedResource({ pathParams, config } = {}) {
|
|
1576
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1577
|
+
if (!pathParams.smartlockId) {
|
|
1578
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1579
|
+
}
|
|
1580
|
+
const data = await request({
|
|
1581
|
+
method: "POST",
|
|
1582
|
+
url: `/smartlock/${pathParams.smartlockId}/action/lock/advanced`,
|
|
1583
|
+
...requestConfig,
|
|
1584
|
+
headers: {
|
|
1585
|
+
...requestConfig.headers
|
|
1586
|
+
}
|
|
1587
|
+
});
|
|
1588
|
+
return data;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* @summary Unlock a smartlock
|
|
1592
|
+
* @link /smartlock/{smartlockId}/action/unlock
|
|
1593
|
+
*/ async function postSmartlockUnlockActionResource({ pathParams, config } = {}) {
|
|
1594
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1595
|
+
if (!pathParams.smartlockId) {
|
|
1596
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1597
|
+
}
|
|
1598
|
+
const data = await request({
|
|
1599
|
+
method: "POST",
|
|
1600
|
+
url: `/smartlock/${pathParams.smartlockId}/action/unlock`,
|
|
1601
|
+
...requestConfig,
|
|
1602
|
+
headers: {
|
|
1603
|
+
...requestConfig.headers
|
|
1604
|
+
}
|
|
1605
|
+
});
|
|
1606
|
+
return data;
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* @summary Unlock a smartlock
|
|
1610
|
+
* @link /smartlock/{smartlockId}/action/unlock/advanced
|
|
1611
|
+
*/ async function postSmartlockUnlockActionAdvancedResource({ pathParams, config } = {}) {
|
|
1612
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1613
|
+
if (!pathParams.smartlockId) {
|
|
1614
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1615
|
+
}
|
|
1616
|
+
const data = await request({
|
|
1617
|
+
method: "POST",
|
|
1618
|
+
url: `/smartlock/${pathParams.smartlockId}/action/unlock/advanced`,
|
|
1619
|
+
...requestConfig,
|
|
1620
|
+
headers: {
|
|
1621
|
+
...requestConfig.headers
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
return data;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* @summary Update a smartlock admin PIN
|
|
1628
|
+
* @link /smartlock/{smartlockId}/admin/pin
|
|
1629
|
+
*/ async function postSmartlockAdminPinResource({ pathParams, body, config } = {}) {
|
|
1630
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1631
|
+
if (!pathParams.smartlockId) {
|
|
1632
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1633
|
+
}
|
|
1634
|
+
const data = await request({
|
|
1635
|
+
method: "POST",
|
|
1636
|
+
url: `/smartlock/${pathParams.smartlockId}/admin/pin`,
|
|
1637
|
+
body: body,
|
|
1638
|
+
...requestConfig,
|
|
1639
|
+
headers: {
|
|
1640
|
+
...requestConfig.headers
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
return data;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* @summary Update a smartlock advanced config
|
|
1647
|
+
* @link /smartlock/{smartlockId}/advanced/config
|
|
1648
|
+
*/ async function postSmartlockAdvancedConfigResource({ pathParams, body, config } = {}) {
|
|
1649
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1650
|
+
if (!pathParams.smartlockId) {
|
|
1651
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1652
|
+
}
|
|
1653
|
+
const data = await request({
|
|
1654
|
+
method: "POST",
|
|
1655
|
+
url: `/smartlock/${pathParams.smartlockId}/advanced/config`,
|
|
1656
|
+
body: body,
|
|
1657
|
+
...requestConfig,
|
|
1658
|
+
headers: {
|
|
1659
|
+
...requestConfig.headers
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
return data;
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* @summary Update an opener advanced config
|
|
1666
|
+
* @link /smartlock/{smartlockId}/advanced/openerconfig
|
|
1667
|
+
*/ async function postSmartlockOpenerAdvancedConfigResource({ pathParams, body, config } = {}) {
|
|
1668
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1669
|
+
if (!pathParams.smartlockId) {
|
|
1670
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1671
|
+
}
|
|
1672
|
+
const data = await request({
|
|
1673
|
+
method: "POST",
|
|
1674
|
+
url: `/smartlock/${pathParams.smartlockId}/advanced/openerconfig`,
|
|
1675
|
+
body: body,
|
|
1676
|
+
...requestConfig,
|
|
1677
|
+
headers: {
|
|
1678
|
+
...requestConfig.headers
|
|
1679
|
+
}
|
|
1680
|
+
});
|
|
1681
|
+
return data;
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
* @summary Update a smartdoor advanced config
|
|
1685
|
+
* @link /smartlock/{smartlockId}/advanced/smartdoorconfig
|
|
1686
|
+
*/ async function postSmartdoorAdvancedConfigResource({ pathParams, body, config } = {}) {
|
|
1687
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1688
|
+
if (!pathParams.smartlockId) {
|
|
1689
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1690
|
+
}
|
|
1691
|
+
const data = await request({
|
|
1692
|
+
method: "POST",
|
|
1693
|
+
url: `/smartlock/${pathParams.smartlockId}/advanced/smartdoorconfig`,
|
|
1694
|
+
body: body,
|
|
1695
|
+
...requestConfig,
|
|
1696
|
+
headers: {
|
|
1697
|
+
...requestConfig.headers
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
return data;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* @summary Get a list of smartlock authorizations
|
|
1704
|
+
* @link /smartlock/{smartlockId}/auth
|
|
1705
|
+
*/ async function getSmartlockAuthsResource({ pathParams, queryParams, config } = {}) {
|
|
1706
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1707
|
+
if (!pathParams.smartlockId) {
|
|
1708
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1709
|
+
}
|
|
1710
|
+
const data = await request({
|
|
1711
|
+
method: "GET",
|
|
1712
|
+
url: `/smartlock/${pathParams.smartlockId}/auth`,
|
|
1713
|
+
queryParams,
|
|
1714
|
+
...requestConfig,
|
|
1715
|
+
headers: {
|
|
1716
|
+
...requestConfig.headers
|
|
1717
|
+
}
|
|
1718
|
+
});
|
|
1719
|
+
return data;
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* @summary Create a smartlock authorization asynchronously
|
|
1723
|
+
* @link /smartlock/{smartlockId}/auth
|
|
1724
|
+
*/ async function putSmartlockAuthsResource({ pathParams, body, config } = {}) {
|
|
1725
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1726
|
+
if (!pathParams.smartlockId) {
|
|
1727
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1728
|
+
}
|
|
1729
|
+
const data = await request({
|
|
1730
|
+
method: "PUT",
|
|
1731
|
+
url: `/smartlock/${pathParams.smartlockId}/auth`,
|
|
1732
|
+
body: body,
|
|
1733
|
+
...requestConfig,
|
|
1734
|
+
headers: {
|
|
1735
|
+
...requestConfig.headers
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
return data;
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* @summary Generate a new smartlock auth with a shared key
|
|
1742
|
+
* @link /smartlock/{smartlockId}/auth/advanced/sharedkey
|
|
1743
|
+
*/ async function postSmartlockAuthWithSharedKeyResource({ pathParams, body, config } = {}) {
|
|
1744
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1745
|
+
if (!pathParams.smartlockId) {
|
|
1746
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1747
|
+
}
|
|
1748
|
+
const data = await request({
|
|
1749
|
+
method: "POST",
|
|
1750
|
+
url: `/smartlock/${pathParams.smartlockId}/auth/advanced/sharedkey`,
|
|
1751
|
+
body: body,
|
|
1752
|
+
...requestConfig,
|
|
1753
|
+
headers: {
|
|
1754
|
+
...requestConfig.headers
|
|
1755
|
+
}
|
|
1756
|
+
});
|
|
1757
|
+
return data;
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* @summary Get a smartlock authorization
|
|
1761
|
+
* @link /smartlock/{smartlockId}/auth/{id}
|
|
1762
|
+
*/ async function getSmartlockAuthResource({ pathParams, config } = {}) {
|
|
1763
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1764
|
+
if (!pathParams.smartlockId) {
|
|
1765
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1766
|
+
}
|
|
1767
|
+
if (!pathParams.id) {
|
|
1768
|
+
throw new Error(`Missing required path parameter: id`);
|
|
1769
|
+
}
|
|
1770
|
+
const data = await request({
|
|
1771
|
+
method: "GET",
|
|
1772
|
+
url: `/smartlock/${pathParams.smartlockId}/auth/${pathParams.id}`,
|
|
1773
|
+
...requestConfig,
|
|
1774
|
+
headers: {
|
|
1775
|
+
...requestConfig.headers
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
return data;
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* @summary Update a smartlock authorization asynchronously
|
|
1782
|
+
* @link /smartlock/{smartlockId}/auth/{id}
|
|
1783
|
+
*/ async function postSmartlockAuthResource({ pathParams, body, config } = {}) {
|
|
1784
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1785
|
+
if (!pathParams.smartlockId) {
|
|
1786
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1787
|
+
}
|
|
1788
|
+
if (!pathParams.id) {
|
|
1789
|
+
throw new Error(`Missing required path parameter: id`);
|
|
1790
|
+
}
|
|
1791
|
+
const data = await request({
|
|
1792
|
+
method: "POST",
|
|
1793
|
+
url: `/smartlock/${pathParams.smartlockId}/auth/${pathParams.id}`,
|
|
1794
|
+
body: body,
|
|
1795
|
+
...requestConfig,
|
|
1796
|
+
headers: {
|
|
1797
|
+
...requestConfig.headers
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
return data;
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @summary Delete a smartlock authorization asynchronously
|
|
1804
|
+
* @link /smartlock/{smartlockId}/auth/{id}
|
|
1805
|
+
*/ async function deleteSmartlockAuthResource({ pathParams, config } = {}) {
|
|
1806
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1807
|
+
if (!pathParams.smartlockId) {
|
|
1808
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1809
|
+
}
|
|
1810
|
+
if (!pathParams.id) {
|
|
1811
|
+
throw new Error(`Missing required path parameter: id`);
|
|
1812
|
+
}
|
|
1813
|
+
const data = await request({
|
|
1814
|
+
method: "DELETE",
|
|
1815
|
+
url: `/smartlock/${pathParams.smartlockId}/auth/${pathParams.id}`,
|
|
1816
|
+
...requestConfig,
|
|
1817
|
+
headers: {
|
|
1818
|
+
...requestConfig.headers
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
return data;
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* @summary Update a smartlock config
|
|
1825
|
+
* @link /smartlock/{smartlockId}/config
|
|
1826
|
+
*/ async function postSmartlockConfigResource({ pathParams, body, config } = {}) {
|
|
1827
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1828
|
+
if (!pathParams.smartlockId) {
|
|
1829
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1830
|
+
}
|
|
1831
|
+
const data = await request({
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
url: `/smartlock/${pathParams.smartlockId}/config`,
|
|
1834
|
+
body: body,
|
|
1835
|
+
...requestConfig,
|
|
1836
|
+
headers: {
|
|
1837
|
+
...requestConfig.headers
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
return data;
|
|
1841
|
+
}
|
|
1842
|
+
/**
|
|
1843
|
+
* @summary Get a list of smartlock logs
|
|
1844
|
+
* @link /smartlock/{smartlockId}/log
|
|
1845
|
+
*/ async function getSmartlockLogsResource({ pathParams, queryParams, config } = {}) {
|
|
1846
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1847
|
+
if (!pathParams.smartlockId) {
|
|
1848
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1849
|
+
}
|
|
1850
|
+
const data = await request({
|
|
1851
|
+
method: "GET",
|
|
1852
|
+
url: `/smartlock/${pathParams.smartlockId}/log`,
|
|
1853
|
+
queryParams,
|
|
1854
|
+
...requestConfig,
|
|
1855
|
+
headers: {
|
|
1856
|
+
...requestConfig.headers
|
|
1857
|
+
}
|
|
1858
|
+
});
|
|
1859
|
+
return data;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* @summary Sync a smartlock
|
|
1863
|
+
* @link /smartlock/{smartlockId}/sync
|
|
1864
|
+
*/ async function postSmartlockSyncResource({ pathParams, config } = {}) {
|
|
1865
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1866
|
+
if (!pathParams.smartlockId) {
|
|
1867
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1868
|
+
}
|
|
1869
|
+
const data = await request({
|
|
1870
|
+
method: "POST",
|
|
1871
|
+
url: `/smartlock/${pathParams.smartlockId}/sync`,
|
|
1872
|
+
...requestConfig,
|
|
1873
|
+
headers: {
|
|
1874
|
+
...requestConfig.headers
|
|
1875
|
+
}
|
|
1876
|
+
});
|
|
1877
|
+
return data;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* @summary Update a smartlock web config
|
|
1881
|
+
* @link /smartlock/{smartlockId}/web/config
|
|
1882
|
+
*/ async function postSmartlockWebConfigResource({ pathParams, body, config } = {}) {
|
|
1883
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1884
|
+
if (!pathParams.smartlockId) {
|
|
1885
|
+
throw new Error(`Missing required path parameter: smartlockId`);
|
|
1886
|
+
}
|
|
1887
|
+
const data = await request({
|
|
1888
|
+
method: "POST",
|
|
1889
|
+
url: `/smartlock/${pathParams.smartlockId}/web/config`,
|
|
1890
|
+
body: body,
|
|
1891
|
+
...requestConfig,
|
|
1892
|
+
headers: {
|
|
1893
|
+
...requestConfig.headers
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
return data;
|
|
1897
|
+
}
|
|
1898
|
+
const operationsByPath = {
|
|
1899
|
+
"GET /account": getAccountsResource,
|
|
1900
|
+
"POST /account": postAccountsResource,
|
|
1901
|
+
"DELETE /account": deleteAccountsResource,
|
|
1902
|
+
"POST /account/email/change": postAccountEmailChangeResource,
|
|
1903
|
+
"POST /account/email/verify": postAccountEmailVerifyResource,
|
|
1904
|
+
"GET /account/integration": getAccountIntegrationsResource,
|
|
1905
|
+
"DELETE /account/integration": deleteAccountIntegrationsResource,
|
|
1906
|
+
"POST /account/otp": postAccountOtpResource,
|
|
1907
|
+
"PUT /account/otp": putAccountOtpResource,
|
|
1908
|
+
"DELETE /account/otp": deleteAccountOtpResource,
|
|
1909
|
+
"POST /account/password/reset": postAccountPasswordResetResource,
|
|
1910
|
+
"GET /account/setting": getAccountSettingResource,
|
|
1911
|
+
"PUT /account/setting": putAccountSettingResource,
|
|
1912
|
+
"DELETE /account/setting": deleteAccountSettingResource,
|
|
1913
|
+
"GET /account/sub": getAccountSubsResource,
|
|
1914
|
+
"PUT /account/sub": putAccountSubsResource,
|
|
1915
|
+
"GET /account/sub/{accountId}": getAccountSubResource,
|
|
1916
|
+
"POST /account/sub/{accountId}": postAccountSubResource,
|
|
1917
|
+
"DELETE /account/sub/{accountId}": deleteAccountSubResource,
|
|
1918
|
+
"GET /account/user": getAccountUsersResource,
|
|
1919
|
+
"PUT /account/user": putAccountUsersResource,
|
|
1920
|
+
"GET /account/user/{accountUserId}": getAccountUserResource,
|
|
1921
|
+
"POST /account/user/{accountUserId}": postAccountUserResource,
|
|
1922
|
+
"DELETE /account/user/{accountUserId}": deleteAccountUserResource,
|
|
1923
|
+
"GET /address": getAddressesResource,
|
|
1924
|
+
"PUT /address": putAddressesResource,
|
|
1925
|
+
"GET /address/token/{id}": getAddressTokenResource,
|
|
1926
|
+
"GET /address/token/{id}/redeem": getAddressTokenRedeemResource,
|
|
1927
|
+
"POST /address/token/{id}/redeem": postAddressTokenRedeemResource,
|
|
1928
|
+
"POST /address/{addressId}": postAddressResource,
|
|
1929
|
+
"DELETE /address/{addressId}": deleteAddressResource,
|
|
1930
|
+
"GET /address/{addressId}/reservation": getAddressReservationsResource,
|
|
1931
|
+
"POST /address/{addressId}/reservation/{id}/issue": postAddressReservationIssueResource,
|
|
1932
|
+
"POST /address/{addressId}/reservation/{id}/revoke": postAddressReservationRevokeResource,
|
|
1933
|
+
"POST /address/{addressId}/reservation/{id}/update/accesstimes": postReservationAccessTimesUpdateResource,
|
|
1934
|
+
"GET /address/{addressId}/token": getAddressTokensResource,
|
|
1935
|
+
"GET /address/{addressId}/unit": getAddressUnitsResource,
|
|
1936
|
+
"PUT /address/{addressId}/unit": putAddressUnitsResource,
|
|
1937
|
+
"DELETE /address/{addressId}/unit": deleteAddressUnitsResource,
|
|
1938
|
+
"DELETE /address/{addressId}/unit/{id}": deleteAddressUnitResource,
|
|
1939
|
+
"GET /api/decentralWebhook": getDecentralWebhooksResource,
|
|
1940
|
+
"PUT /api/decentralWebhook": putDecentralWebhooksResource,
|
|
1941
|
+
"DELETE /api/decentralWebhook/{id}": deleteDecentralWebhookResource,
|
|
1942
|
+
"GET /api/key": getApiKeysResource,
|
|
1943
|
+
"PUT /api/key": putApiKeysResource,
|
|
1944
|
+
"POST /api/key/{apiKeyId}": postApiKeyResource,
|
|
1945
|
+
"DELETE /api/key/{apiKeyId}": deleteApiKeyResource,
|
|
1946
|
+
"GET /api/key/{apiKeyId}/advanced": getApiKeyAdvancedResource,
|
|
1947
|
+
"POST /api/key/{apiKeyId}/advanced": postApiKeyAdvancedResource,
|
|
1948
|
+
"PUT /api/key/{apiKeyId}/advanced": putApiKeyAdvancedResource,
|
|
1949
|
+
"DELETE /api/key/{apiKeyId}/advanced": deleteApiKeyAdvancedResource,
|
|
1950
|
+
"POST /api/key/{apiKeyId}/advanced/reactivate": postApiKeyAdvancedReactivateResource,
|
|
1951
|
+
"GET /api/key/{apiKeyId}/token": getApiKeyTokensResource,
|
|
1952
|
+
"PUT /api/key/{apiKeyId}/token": putApiKeyTokensResource,
|
|
1953
|
+
"POST /api/key/{apiKeyId}/token/{id}": postApiKeyTokenResource,
|
|
1954
|
+
"DELETE /api/key/{apiKeyId}/token/{id}": deleteApiKeyTokenResource,
|
|
1955
|
+
"GET /api/key/{apiKeyId}/webhook/logs": getWebhookLogsResource,
|
|
1956
|
+
"POST /bulk-web-config": postSmartlockBulkWebConfigResource,
|
|
1957
|
+
"GET /company": getCompaniesResource,
|
|
1958
|
+
"GET /notification": getNotificationsResource,
|
|
1959
|
+
"PUT /notification": putNotificationsResource,
|
|
1960
|
+
"GET /notification/{notificationId}": getNotificationResource,
|
|
1961
|
+
"POST /notification/{notificationId}": postNotificationResource,
|
|
1962
|
+
"DELETE /notification/{notificationId}": deleteNotificationResource,
|
|
1963
|
+
"GET /opener/brand": getOpenerBrandsResource,
|
|
1964
|
+
"GET /opener/brand/{brandId}": getOpenerBrandResource,
|
|
1965
|
+
"GET /opener/intercom": getOpenerIntercomsResource,
|
|
1966
|
+
"GET /opener/intercom/{intercomId}": getOpenerIntercomResource,
|
|
1967
|
+
"GET /service": getServicesResource,
|
|
1968
|
+
"GET /service/{serviceId}": getServiceResource,
|
|
1969
|
+
"POST /service/{serviceId}/link": postServiceLinkResource,
|
|
1970
|
+
"POST /service/{serviceId}/sync": postServiceSyncResource,
|
|
1971
|
+
"POST /service/{serviceId}/unlink": postServiceUnlinkResource,
|
|
1972
|
+
"GET /smartlock": getSmartlocksResource,
|
|
1973
|
+
"GET /smartlock/auth": getSmartlocksAuthsResource,
|
|
1974
|
+
"POST /smartlock/auth": postSmartlocksAuthsResource,
|
|
1975
|
+
"PUT /smartlock/auth": putSmartlocksAuthsResource,
|
|
1976
|
+
"DELETE /smartlock/auth": deleteSmartlocksAuthsResource,
|
|
1977
|
+
"PUT /smartlock/auth/advanced": putSmartlockAuthsAdvancedResource,
|
|
1978
|
+
"GET /smartlock/auth/paged": getSmartlocksAuthsPaginatedResource,
|
|
1979
|
+
"GET /smartlock/log": getSmartlocksLogsResource,
|
|
1980
|
+
"GET /smartlock/{smartlockId}": getSmartlockResource,
|
|
1981
|
+
"POST /smartlock/{smartlockId}": postSmartlockResource,
|
|
1982
|
+
"DELETE /smartlock/{smartlockId}": deleteSmartlockResource,
|
|
1983
|
+
"POST /smartlock/{smartlockId}/action": postSmartlockActionResource,
|
|
1984
|
+
"POST /smartlock/{smartlockId}/action/advanced": postSmartlockActionAdvancedResource,
|
|
1985
|
+
"POST /smartlock/{smartlockId}/action/lock": postSmartlockLockActionResource,
|
|
1986
|
+
"POST /smartlock/{smartlockId}/action/lock/advanced": postSmartlockLockActionAdvancedResource,
|
|
1987
|
+
"POST /smartlock/{smartlockId}/action/unlock": postSmartlockUnlockActionResource,
|
|
1988
|
+
"POST /smartlock/{smartlockId}/action/unlock/advanced": postSmartlockUnlockActionAdvancedResource,
|
|
1989
|
+
"POST /smartlock/{smartlockId}/admin/pin": postSmartlockAdminPinResource,
|
|
1990
|
+
"POST /smartlock/{smartlockId}/advanced/config": postSmartlockAdvancedConfigResource,
|
|
1991
|
+
"POST /smartlock/{smartlockId}/advanced/openerconfig": postSmartlockOpenerAdvancedConfigResource,
|
|
1992
|
+
"POST /smartlock/{smartlockId}/advanced/smartdoorconfig": postSmartdoorAdvancedConfigResource,
|
|
1993
|
+
"GET /smartlock/{smartlockId}/auth": getSmartlockAuthsResource,
|
|
1994
|
+
"PUT /smartlock/{smartlockId}/auth": putSmartlockAuthsResource,
|
|
1995
|
+
"POST /smartlock/{smartlockId}/auth/advanced/sharedkey": postSmartlockAuthWithSharedKeyResource,
|
|
1996
|
+
"GET /smartlock/{smartlockId}/auth/{id}": getSmartlockAuthResource,
|
|
1997
|
+
"POST /smartlock/{smartlockId}/auth/{id}": postSmartlockAuthResource,
|
|
1998
|
+
"DELETE /smartlock/{smartlockId}/auth/{id}": deleteSmartlockAuthResource,
|
|
1999
|
+
"POST /smartlock/{smartlockId}/config": postSmartlockConfigResource,
|
|
2000
|
+
"GET /smartlock/{smartlockId}/log": getSmartlockLogsResource,
|
|
2001
|
+
"POST /smartlock/{smartlockId}/sync": postSmartlockSyncResource,
|
|
2002
|
+
"POST /smartlock/{smartlockId}/web/config": postSmartlockWebConfigResource
|
|
2003
|
+
};
|
|
2004
|
+
const operationsByTag = {
|
|
2005
|
+
"account": {
|
|
2006
|
+
getAccountsResource,
|
|
2007
|
+
postAccountsResource,
|
|
2008
|
+
deleteAccountsResource,
|
|
2009
|
+
postAccountEmailChangeResource,
|
|
2010
|
+
postAccountEmailVerifyResource,
|
|
2011
|
+
getAccountIntegrationsResource,
|
|
2012
|
+
deleteAccountIntegrationsResource,
|
|
2013
|
+
postAccountOtpResource,
|
|
2014
|
+
putAccountOtpResource,
|
|
2015
|
+
deleteAccountOtpResource,
|
|
2016
|
+
postAccountPasswordResetResource,
|
|
2017
|
+
getAccountSettingResource,
|
|
2018
|
+
putAccountSettingResource,
|
|
2019
|
+
deleteAccountSettingResource,
|
|
2020
|
+
getAccountSubsResource,
|
|
2021
|
+
putAccountSubsResource,
|
|
2022
|
+
getAccountSubResource,
|
|
2023
|
+
postAccountSubResource,
|
|
2024
|
+
deleteAccountSubResource
|
|
2025
|
+
},
|
|
2026
|
+
"accountuser": {
|
|
2027
|
+
getAccountUsersResource,
|
|
2028
|
+
putAccountUsersResource,
|
|
2029
|
+
getAccountUserResource,
|
|
2030
|
+
postAccountUserResource,
|
|
2031
|
+
deleteAccountUserResource
|
|
2032
|
+
},
|
|
2033
|
+
"address": {
|
|
2034
|
+
getAddressesResource,
|
|
2035
|
+
putAddressesResource,
|
|
2036
|
+
postAddressResource,
|
|
2037
|
+
deleteAddressResource,
|
|
2038
|
+
getAddressUnitsResource,
|
|
2039
|
+
putAddressUnitsResource,
|
|
2040
|
+
deleteAddressUnitsResource,
|
|
2041
|
+
deleteAddressUnitResource
|
|
2042
|
+
},
|
|
2043
|
+
"addresstoken": {
|
|
2044
|
+
getAddressTokenResource,
|
|
2045
|
+
getAddressTokenRedeemResource,
|
|
2046
|
+
postAddressTokenRedeemResource,
|
|
2047
|
+
getAddressTokensResource
|
|
2048
|
+
},
|
|
2049
|
+
"addressreservation": {
|
|
2050
|
+
getAddressReservationsResource,
|
|
2051
|
+
postAddressReservationIssueResource,
|
|
2052
|
+
postAddressReservationRevokeResource,
|
|
2053
|
+
postReservationAccessTimesUpdateResource
|
|
2054
|
+
},
|
|
2055
|
+
"advancedapi": {
|
|
2056
|
+
getDecentralWebhooksResource,
|
|
2057
|
+
putDecentralWebhooksResource,
|
|
2058
|
+
deleteDecentralWebhookResource,
|
|
2059
|
+
getWebhookLogsResource,
|
|
2060
|
+
putSmartlockAuthsAdvancedResource,
|
|
2061
|
+
postSmartlockActionAdvancedResource,
|
|
2062
|
+
postSmartlockLockActionAdvancedResource,
|
|
2063
|
+
postSmartlockUnlockActionAdvancedResource
|
|
2064
|
+
},
|
|
2065
|
+
"apikey": {
|
|
2066
|
+
getApiKeysResource,
|
|
2067
|
+
putApiKeysResource,
|
|
2068
|
+
postApiKeyResource,
|
|
2069
|
+
deleteApiKeyResource,
|
|
2070
|
+
getApiKeyAdvancedResource,
|
|
2071
|
+
postApiKeyAdvancedResource,
|
|
2072
|
+
putApiKeyAdvancedResource,
|
|
2073
|
+
deleteApiKeyAdvancedResource,
|
|
2074
|
+
postApiKeyAdvancedReactivateResource,
|
|
2075
|
+
getApiKeyTokensResource,
|
|
2076
|
+
putApiKeyTokensResource,
|
|
2077
|
+
postApiKeyTokenResource,
|
|
2078
|
+
deleteApiKeyTokenResource
|
|
2079
|
+
},
|
|
2080
|
+
"smartlock": {
|
|
2081
|
+
postSmartlockBulkWebConfigResource,
|
|
2082
|
+
getSmartlocksResource,
|
|
2083
|
+
getSmartlockResource,
|
|
2084
|
+
postSmartlockResource,
|
|
2085
|
+
deleteSmartlockResource,
|
|
2086
|
+
postSmartlockActionResource,
|
|
2087
|
+
postSmartlockLockActionResource,
|
|
2088
|
+
postSmartlockUnlockActionResource,
|
|
2089
|
+
postSmartlockAdminPinResource,
|
|
2090
|
+
postSmartlockAdvancedConfigResource,
|
|
2091
|
+
postSmartlockOpenerAdvancedConfigResource,
|
|
2092
|
+
postSmartdoorAdvancedConfigResource,
|
|
2093
|
+
postSmartlockConfigResource,
|
|
2094
|
+
postSmartlockSyncResource,
|
|
2095
|
+
postSmartlockWebConfigResource
|
|
2096
|
+
},
|
|
2097
|
+
"company": {
|
|
2098
|
+
getCompaniesResource
|
|
2099
|
+
},
|
|
2100
|
+
"notification": {
|
|
2101
|
+
getNotificationsResource,
|
|
2102
|
+
putNotificationsResource,
|
|
2103
|
+
getNotificationResource,
|
|
2104
|
+
postNotificationResource,
|
|
2105
|
+
deleteNotificationResource
|
|
2106
|
+
},
|
|
2107
|
+
"opener": {
|
|
2108
|
+
getOpenerBrandsResource,
|
|
2109
|
+
getOpenerBrandResource,
|
|
2110
|
+
getOpenerIntercomsResource,
|
|
2111
|
+
getOpenerIntercomResource
|
|
2112
|
+
},
|
|
2113
|
+
"service": {
|
|
2114
|
+
getServicesResource,
|
|
2115
|
+
getServiceResource,
|
|
2116
|
+
postServiceLinkResource,
|
|
2117
|
+
postServiceSyncResource,
|
|
2118
|
+
postServiceUnlinkResource
|
|
2119
|
+
},
|
|
2120
|
+
"smartlockauth": {
|
|
2121
|
+
getSmartlocksAuthsResource,
|
|
2122
|
+
postSmartlocksAuthsResource,
|
|
2123
|
+
putSmartlocksAuthsResource,
|
|
2124
|
+
deleteSmartlocksAuthsResource,
|
|
2125
|
+
getSmartlocksAuthsPaginatedResource,
|
|
2126
|
+
getSmartlockAuthsResource,
|
|
2127
|
+
putSmartlockAuthsResource,
|
|
2128
|
+
postSmartlockAuthWithSharedKeyResource,
|
|
2129
|
+
getSmartlockAuthResource,
|
|
2130
|
+
postSmartlockAuthResource,
|
|
2131
|
+
deleteSmartlockAuthResource
|
|
2132
|
+
},
|
|
2133
|
+
"smartlocklog": {
|
|
2134
|
+
getSmartlocksLogsResource,
|
|
2135
|
+
getSmartlockLogsResource
|
|
2136
|
+
}
|
|
2137
|
+
};
|
|
2138
|
+
const tagDictionary = {
|
|
2139
|
+
"account": {
|
|
2140
|
+
"GET": [
|
|
2141
|
+
"getAccountsResource",
|
|
2142
|
+
"getAccountIntegrationsResource",
|
|
2143
|
+
"getAccountSettingResource",
|
|
2144
|
+
"getAccountSubsResource",
|
|
2145
|
+
"getAccountSubResource"
|
|
2146
|
+
],
|
|
2147
|
+
"POST": [
|
|
2148
|
+
"postAccountsResource",
|
|
2149
|
+
"postAccountEmailChangeResource",
|
|
2150
|
+
"postAccountEmailVerifyResource",
|
|
2151
|
+
"postAccountOtpResource",
|
|
2152
|
+
"postAccountPasswordResetResource",
|
|
2153
|
+
"postAccountSubResource"
|
|
2154
|
+
],
|
|
2155
|
+
"DELETE": [
|
|
2156
|
+
"deleteAccountsResource",
|
|
2157
|
+
"deleteAccountIntegrationsResource",
|
|
2158
|
+
"deleteAccountOtpResource",
|
|
2159
|
+
"deleteAccountSettingResource",
|
|
2160
|
+
"deleteAccountSubResource"
|
|
2161
|
+
],
|
|
2162
|
+
"PUT": [
|
|
2163
|
+
"putAccountOtpResource",
|
|
2164
|
+
"putAccountSettingResource",
|
|
2165
|
+
"putAccountSubsResource"
|
|
2166
|
+
]
|
|
2167
|
+
},
|
|
2168
|
+
"accountuser": {
|
|
2169
|
+
"GET": [
|
|
2170
|
+
"getAccountUsersResource",
|
|
2171
|
+
"getAccountUserResource"
|
|
2172
|
+
],
|
|
2173
|
+
"PUT": [
|
|
2174
|
+
"putAccountUsersResource"
|
|
2175
|
+
],
|
|
2176
|
+
"POST": [
|
|
2177
|
+
"postAccountUserResource"
|
|
2178
|
+
],
|
|
2179
|
+
"DELETE": [
|
|
2180
|
+
"deleteAccountUserResource"
|
|
2181
|
+
]
|
|
2182
|
+
},
|
|
2183
|
+
"address": {
|
|
2184
|
+
"GET": [
|
|
2185
|
+
"getAddressesResource",
|
|
2186
|
+
"getAddressUnitsResource"
|
|
2187
|
+
],
|
|
2188
|
+
"PUT": [
|
|
2189
|
+
"putAddressesResource",
|
|
2190
|
+
"putAddressUnitsResource"
|
|
2191
|
+
],
|
|
2192
|
+
"POST": [
|
|
2193
|
+
"postAddressResource"
|
|
2194
|
+
],
|
|
2195
|
+
"DELETE": [
|
|
2196
|
+
"deleteAddressResource",
|
|
2197
|
+
"deleteAddressUnitsResource",
|
|
2198
|
+
"deleteAddressUnitResource"
|
|
2199
|
+
]
|
|
2200
|
+
},
|
|
2201
|
+
"addresstoken": {
|
|
2202
|
+
"GET": [
|
|
2203
|
+
"getAddressTokenResource",
|
|
2204
|
+
"getAddressTokenRedeemResource",
|
|
2205
|
+
"getAddressTokensResource"
|
|
2206
|
+
],
|
|
2207
|
+
"POST": [
|
|
2208
|
+
"postAddressTokenRedeemResource"
|
|
2209
|
+
]
|
|
2210
|
+
},
|
|
2211
|
+
"addressreservation": {
|
|
2212
|
+
"GET": [
|
|
2213
|
+
"getAddressReservationsResource"
|
|
2214
|
+
],
|
|
2215
|
+
"POST": [
|
|
2216
|
+
"postAddressReservationIssueResource",
|
|
2217
|
+
"postAddressReservationRevokeResource",
|
|
2218
|
+
"postReservationAccessTimesUpdateResource"
|
|
2219
|
+
]
|
|
2220
|
+
},
|
|
2221
|
+
"advancedapi": {
|
|
2222
|
+
"GET": [
|
|
2223
|
+
"getDecentralWebhooksResource",
|
|
2224
|
+
"getWebhookLogsResource"
|
|
2225
|
+
],
|
|
2226
|
+
"PUT": [
|
|
2227
|
+
"putDecentralWebhooksResource",
|
|
2228
|
+
"putSmartlockAuthsAdvancedResource"
|
|
2229
|
+
],
|
|
2230
|
+
"DELETE": [
|
|
2231
|
+
"deleteDecentralWebhookResource"
|
|
2232
|
+
],
|
|
2233
|
+
"POST": [
|
|
2234
|
+
"postSmartlockActionAdvancedResource",
|
|
2235
|
+
"postSmartlockLockActionAdvancedResource",
|
|
2236
|
+
"postSmartlockUnlockActionAdvancedResource"
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2239
|
+
"apikey": {
|
|
2240
|
+
"GET": [
|
|
2241
|
+
"getApiKeysResource",
|
|
2242
|
+
"getApiKeyAdvancedResource",
|
|
2243
|
+
"getApiKeyTokensResource"
|
|
2244
|
+
],
|
|
2245
|
+
"PUT": [
|
|
2246
|
+
"putApiKeysResource",
|
|
2247
|
+
"putApiKeyAdvancedResource",
|
|
2248
|
+
"putApiKeyTokensResource"
|
|
2249
|
+
],
|
|
2250
|
+
"POST": [
|
|
2251
|
+
"postApiKeyResource",
|
|
2252
|
+
"postApiKeyAdvancedResource",
|
|
2253
|
+
"postApiKeyAdvancedReactivateResource",
|
|
2254
|
+
"postApiKeyTokenResource"
|
|
2255
|
+
],
|
|
2256
|
+
"DELETE": [
|
|
2257
|
+
"deleteApiKeyResource",
|
|
2258
|
+
"deleteApiKeyAdvancedResource",
|
|
2259
|
+
"deleteApiKeyTokenResource"
|
|
2260
|
+
]
|
|
2261
|
+
},
|
|
2262
|
+
"smartlock": {
|
|
2263
|
+
"POST": [
|
|
2264
|
+
"postSmartlockBulkWebConfigResource",
|
|
2265
|
+
"postSmartlockResource",
|
|
2266
|
+
"postSmartlockActionResource",
|
|
2267
|
+
"postSmartlockLockActionResource",
|
|
2268
|
+
"postSmartlockUnlockActionResource",
|
|
2269
|
+
"postSmartlockAdminPinResource",
|
|
2270
|
+
"postSmartlockAdvancedConfigResource",
|
|
2271
|
+
"postSmartlockOpenerAdvancedConfigResource",
|
|
2272
|
+
"postSmartdoorAdvancedConfigResource",
|
|
2273
|
+
"postSmartlockConfigResource",
|
|
2274
|
+
"postSmartlockSyncResource",
|
|
2275
|
+
"postSmartlockWebConfigResource"
|
|
2276
|
+
],
|
|
2277
|
+
"GET": [
|
|
2278
|
+
"getSmartlocksResource",
|
|
2279
|
+
"getSmartlockResource"
|
|
2280
|
+
],
|
|
2281
|
+
"DELETE": [
|
|
2282
|
+
"deleteSmartlockResource"
|
|
2283
|
+
]
|
|
2284
|
+
},
|
|
2285
|
+
"company": {
|
|
2286
|
+
"GET": [
|
|
2287
|
+
"getCompaniesResource"
|
|
2288
|
+
]
|
|
2289
|
+
},
|
|
2290
|
+
"notification": {
|
|
2291
|
+
"GET": [
|
|
2292
|
+
"getNotificationsResource",
|
|
2293
|
+
"getNotificationResource"
|
|
2294
|
+
],
|
|
2295
|
+
"PUT": [
|
|
2296
|
+
"putNotificationsResource"
|
|
2297
|
+
],
|
|
2298
|
+
"POST": [
|
|
2299
|
+
"postNotificationResource"
|
|
2300
|
+
],
|
|
2301
|
+
"DELETE": [
|
|
2302
|
+
"deleteNotificationResource"
|
|
2303
|
+
]
|
|
2304
|
+
},
|
|
2305
|
+
"opener": {
|
|
2306
|
+
"GET": [
|
|
2307
|
+
"getOpenerBrandsResource",
|
|
2308
|
+
"getOpenerBrandResource",
|
|
2309
|
+
"getOpenerIntercomsResource",
|
|
2310
|
+
"getOpenerIntercomResource"
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
"service": {
|
|
2314
|
+
"GET": [
|
|
2315
|
+
"getServicesResource",
|
|
2316
|
+
"getServiceResource"
|
|
2317
|
+
],
|
|
2318
|
+
"POST": [
|
|
2319
|
+
"postServiceLinkResource",
|
|
2320
|
+
"postServiceSyncResource",
|
|
2321
|
+
"postServiceUnlinkResource"
|
|
2322
|
+
]
|
|
2323
|
+
},
|
|
2324
|
+
"smartlockauth": {
|
|
2325
|
+
"GET": [
|
|
2326
|
+
"getSmartlocksAuthsResource",
|
|
2327
|
+
"getSmartlocksAuthsPaginatedResource",
|
|
2328
|
+
"getSmartlockAuthsResource",
|
|
2329
|
+
"getSmartlockAuthResource"
|
|
2330
|
+
],
|
|
2331
|
+
"POST": [
|
|
2332
|
+
"postSmartlocksAuthsResource",
|
|
2333
|
+
"postSmartlockAuthWithSharedKeyResource",
|
|
2334
|
+
"postSmartlockAuthResource"
|
|
2335
|
+
],
|
|
2336
|
+
"PUT": [
|
|
2337
|
+
"putSmartlocksAuthsResource",
|
|
2338
|
+
"putSmartlockAuthsResource"
|
|
2339
|
+
],
|
|
2340
|
+
"DELETE": [
|
|
2341
|
+
"deleteSmartlocksAuthsResource",
|
|
2342
|
+
"deleteSmartlockAuthResource"
|
|
2343
|
+
]
|
|
2344
|
+
},
|
|
2345
|
+
"smartlocklog": {
|
|
2346
|
+
"GET": [
|
|
2347
|
+
"getSmartlocksLogsResource",
|
|
2348
|
+
"getSmartlockLogsResource"
|
|
2349
|
+
]
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
|
+
exports.deleteAccountIntegrationsResource = deleteAccountIntegrationsResource;
|
|
2354
|
+
exports.deleteAccountOtpResource = deleteAccountOtpResource;
|
|
2355
|
+
exports.deleteAccountSettingResource = deleteAccountSettingResource;
|
|
2356
|
+
exports.deleteAccountSubResource = deleteAccountSubResource;
|
|
2357
|
+
exports.deleteAccountUserResource = deleteAccountUserResource;
|
|
2358
|
+
exports.deleteAccountsResource = deleteAccountsResource;
|
|
2359
|
+
exports.deleteAddressResource = deleteAddressResource;
|
|
2360
|
+
exports.deleteAddressUnitResource = deleteAddressUnitResource;
|
|
2361
|
+
exports.deleteAddressUnitsResource = deleteAddressUnitsResource;
|
|
2362
|
+
exports.deleteApiKeyAdvancedResource = deleteApiKeyAdvancedResource;
|
|
2363
|
+
exports.deleteApiKeyResource = deleteApiKeyResource;
|
|
2364
|
+
exports.deleteApiKeyTokenResource = deleteApiKeyTokenResource;
|
|
2365
|
+
exports.deleteDecentralWebhookResource = deleteDecentralWebhookResource;
|
|
2366
|
+
exports.deleteNotificationResource = deleteNotificationResource;
|
|
2367
|
+
exports.deleteSmartlockAuthResource = deleteSmartlockAuthResource;
|
|
2368
|
+
exports.deleteSmartlockResource = deleteSmartlockResource;
|
|
2369
|
+
exports.deleteSmartlocksAuthsResource = deleteSmartlocksAuthsResource;
|
|
2370
|
+
exports.getAccountIntegrationsResource = getAccountIntegrationsResource;
|
|
2371
|
+
exports.getAccountSettingResource = getAccountSettingResource;
|
|
2372
|
+
exports.getAccountSubResource = getAccountSubResource;
|
|
2373
|
+
exports.getAccountSubsResource = getAccountSubsResource;
|
|
2374
|
+
exports.getAccountUserResource = getAccountUserResource;
|
|
2375
|
+
exports.getAccountUsersResource = getAccountUsersResource;
|
|
2376
|
+
exports.getAccountsResource = getAccountsResource;
|
|
2377
|
+
exports.getAddressReservationsResource = getAddressReservationsResource;
|
|
2378
|
+
exports.getAddressTokenRedeemResource = getAddressTokenRedeemResource;
|
|
2379
|
+
exports.getAddressTokenResource = getAddressTokenResource;
|
|
2380
|
+
exports.getAddressTokensResource = getAddressTokensResource;
|
|
2381
|
+
exports.getAddressUnitsResource = getAddressUnitsResource;
|
|
2382
|
+
exports.getAddressesResource = getAddressesResource;
|
|
2383
|
+
exports.getApiKeyAdvancedResource = getApiKeyAdvancedResource;
|
|
2384
|
+
exports.getApiKeyTokensResource = getApiKeyTokensResource;
|
|
2385
|
+
exports.getApiKeysResource = getApiKeysResource;
|
|
2386
|
+
exports.getCompaniesResource = getCompaniesResource;
|
|
2387
|
+
exports.getDecentralWebhooksResource = getDecentralWebhooksResource;
|
|
2388
|
+
exports.getNotificationResource = getNotificationResource;
|
|
2389
|
+
exports.getNotificationsResource = getNotificationsResource;
|
|
2390
|
+
exports.getOpenerBrandResource = getOpenerBrandResource;
|
|
2391
|
+
exports.getOpenerBrandsResource = getOpenerBrandsResource;
|
|
2392
|
+
exports.getOpenerIntercomResource = getOpenerIntercomResource;
|
|
2393
|
+
exports.getOpenerIntercomsResource = getOpenerIntercomsResource;
|
|
2394
|
+
exports.getServiceResource = getServiceResource;
|
|
2395
|
+
exports.getServicesResource = getServicesResource;
|
|
2396
|
+
exports.getSmartlockAuthResource = getSmartlockAuthResource;
|
|
2397
|
+
exports.getSmartlockAuthsResource = getSmartlockAuthsResource;
|
|
2398
|
+
exports.getSmartlockLogsResource = getSmartlockLogsResource;
|
|
2399
|
+
exports.getSmartlockResource = getSmartlockResource;
|
|
2400
|
+
exports.getSmartlocksAuthsPaginatedResource = getSmartlocksAuthsPaginatedResource;
|
|
2401
|
+
exports.getSmartlocksAuthsResource = getSmartlocksAuthsResource;
|
|
2402
|
+
exports.getSmartlocksLogsResource = getSmartlocksLogsResource;
|
|
2403
|
+
exports.getSmartlocksResource = getSmartlocksResource;
|
|
2404
|
+
exports.getWebhookLogsResource = getWebhookLogsResource;
|
|
2405
|
+
exports.operationsByPath = operationsByPath;
|
|
2406
|
+
exports.operationsByTag = operationsByTag;
|
|
2407
|
+
exports.postAccountEmailChangeResource = postAccountEmailChangeResource;
|
|
2408
|
+
exports.postAccountEmailVerifyResource = postAccountEmailVerifyResource;
|
|
2409
|
+
exports.postAccountOtpResource = postAccountOtpResource;
|
|
2410
|
+
exports.postAccountPasswordResetResource = postAccountPasswordResetResource;
|
|
2411
|
+
exports.postAccountSubResource = postAccountSubResource;
|
|
2412
|
+
exports.postAccountUserResource = postAccountUserResource;
|
|
2413
|
+
exports.postAccountsResource = postAccountsResource;
|
|
2414
|
+
exports.postAddressReservationIssueResource = postAddressReservationIssueResource;
|
|
2415
|
+
exports.postAddressReservationRevokeResource = postAddressReservationRevokeResource;
|
|
2416
|
+
exports.postAddressResource = postAddressResource;
|
|
2417
|
+
exports.postAddressTokenRedeemResource = postAddressTokenRedeemResource;
|
|
2418
|
+
exports.postApiKeyAdvancedReactivateResource = postApiKeyAdvancedReactivateResource;
|
|
2419
|
+
exports.postApiKeyAdvancedResource = postApiKeyAdvancedResource;
|
|
2420
|
+
exports.postApiKeyResource = postApiKeyResource;
|
|
2421
|
+
exports.postApiKeyTokenResource = postApiKeyTokenResource;
|
|
2422
|
+
exports.postNotificationResource = postNotificationResource;
|
|
2423
|
+
exports.postReservationAccessTimesUpdateResource = postReservationAccessTimesUpdateResource;
|
|
2424
|
+
exports.postServiceLinkResource = postServiceLinkResource;
|
|
2425
|
+
exports.postServiceSyncResource = postServiceSyncResource;
|
|
2426
|
+
exports.postServiceUnlinkResource = postServiceUnlinkResource;
|
|
2427
|
+
exports.postSmartdoorAdvancedConfigResource = postSmartdoorAdvancedConfigResource;
|
|
2428
|
+
exports.postSmartlockActionAdvancedResource = postSmartlockActionAdvancedResource;
|
|
2429
|
+
exports.postSmartlockActionResource = postSmartlockActionResource;
|
|
2430
|
+
exports.postSmartlockAdminPinResource = postSmartlockAdminPinResource;
|
|
2431
|
+
exports.postSmartlockAdvancedConfigResource = postSmartlockAdvancedConfigResource;
|
|
2432
|
+
exports.postSmartlockAuthResource = postSmartlockAuthResource;
|
|
2433
|
+
exports.postSmartlockAuthWithSharedKeyResource = postSmartlockAuthWithSharedKeyResource;
|
|
2434
|
+
exports.postSmartlockBulkWebConfigResource = postSmartlockBulkWebConfigResource;
|
|
2435
|
+
exports.postSmartlockConfigResource = postSmartlockConfigResource;
|
|
2436
|
+
exports.postSmartlockLockActionAdvancedResource = postSmartlockLockActionAdvancedResource;
|
|
2437
|
+
exports.postSmartlockLockActionResource = postSmartlockLockActionResource;
|
|
2438
|
+
exports.postSmartlockOpenerAdvancedConfigResource = postSmartlockOpenerAdvancedConfigResource;
|
|
2439
|
+
exports.postSmartlockResource = postSmartlockResource;
|
|
2440
|
+
exports.postSmartlockSyncResource = postSmartlockSyncResource;
|
|
2441
|
+
exports.postSmartlockUnlockActionAdvancedResource = postSmartlockUnlockActionAdvancedResource;
|
|
2442
|
+
exports.postSmartlockUnlockActionResource = postSmartlockUnlockActionResource;
|
|
2443
|
+
exports.postSmartlockWebConfigResource = postSmartlockWebConfigResource;
|
|
2444
|
+
exports.postSmartlocksAuthsResource = postSmartlocksAuthsResource;
|
|
2445
|
+
exports.putAccountOtpResource = putAccountOtpResource;
|
|
2446
|
+
exports.putAccountSettingResource = putAccountSettingResource;
|
|
2447
|
+
exports.putAccountSubsResource = putAccountSubsResource;
|
|
2448
|
+
exports.putAccountUsersResource = putAccountUsersResource;
|
|
2449
|
+
exports.putAddressUnitsResource = putAddressUnitsResource;
|
|
2450
|
+
exports.putAddressesResource = putAddressesResource;
|
|
2451
|
+
exports.putApiKeyAdvancedResource = putApiKeyAdvancedResource;
|
|
2452
|
+
exports.putApiKeyTokensResource = putApiKeyTokensResource;
|
|
2453
|
+
exports.putApiKeysResource = putApiKeysResource;
|
|
2454
|
+
exports.putDecentralWebhooksResource = putDecentralWebhooksResource;
|
|
2455
|
+
exports.putNotificationsResource = putNotificationsResource;
|
|
2456
|
+
exports.putSmartlockAuthsAdvancedResource = putSmartlockAuthsAdvancedResource;
|
|
2457
|
+
exports.putSmartlockAuthsResource = putSmartlockAuthsResource;
|
|
2458
|
+
exports.putSmartlocksAuthsResource = putSmartlocksAuthsResource;
|
|
2459
|
+
exports.tagDictionary = tagDictionary;
|