nuki-api-js 1.2.0 → 3.0.1

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