nuki-api-js 1.2.0 → 3.0.2

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