nuki-api-js 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9475 -9462
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{schemas-ihzqrsub.cjs → schemas-fong721w.cjs} +277 -276
- package/dist/{schemas-e6jr28te.js → schemas-geox71wk.js} +277 -276
- package/dist/schemas.cjs +1 -1
- package/dist/schemas.d.mts +9360 -9354
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.d.mts +77 -70
- package/dist/types.d.mts.map +1 -1
- package/package.json +5 -5
|
@@ -49,13 +49,13 @@ const termsOfUseSchema = z__namespace.object({
|
|
|
49
49
|
acceptanceDate: z__namespace.iso.datetime().optional()
|
|
50
50
|
});
|
|
51
51
|
const accountSchema = z__namespace.object({
|
|
52
|
-
accountId: z__namespace.
|
|
53
|
-
type: z__namespace.
|
|
52
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
53
|
+
type: z__namespace.int32().describe("The type: 0 .. user, 1 .. company, 2 .. caretaker"),
|
|
54
54
|
email: z__namespace.string().describe("The email address"),
|
|
55
55
|
emailVerified: z__namespace.boolean().optional().describe("true, if the email is verified"),
|
|
56
56
|
name: z__namespace.string().describe("The name"),
|
|
57
|
-
masterAccountId: z__namespace.
|
|
58
|
-
rights: z__namespace.
|
|
57
|
+
masterAccountId: z__namespace.int32().optional().describe("The master account id if it's a sub account"),
|
|
58
|
+
rights: z__namespace.int32().optional().describe("The rights bitmask if it's a sub account: 1 .. manage smartlock, 2 .. operate smartlock, 4 .. manage smartlock config, 8 .. manage smartlock authorizations, 16 .. view smartlock logs, 32 .. manage sub accounts, 64 .. create smartlocks"),
|
|
59
59
|
language: z__namespace.string().optional().describe("The language code").meta({
|
|
60
60
|
examples: [
|
|
61
61
|
"de"
|
|
@@ -85,7 +85,7 @@ const accountIntegrationSchema = z__namespace.object({
|
|
|
85
85
|
]).describe("If the integration/device is an legacy or from the new oauth implementation"),
|
|
86
86
|
vendorKey: z__namespace.string().describe("Enum key identifying the integration/device, values are e.g. ALEXA, IOS, NUKI_WEB, API_TOKEN etc"),
|
|
87
87
|
subAccountName: z__namespace.string().optional().describe("Name of the sub-account or null if there is none, which is associated with this token"),
|
|
88
|
-
subAccountId: z__namespace.
|
|
88
|
+
subAccountId: z__namespace.int32().optional().describe("Id of the sub-account or null if there is none, which is associated with this token"),
|
|
89
89
|
subAccount: z__namespace.boolean().optional().describe("True if the integration is done via a sub-account"),
|
|
90
90
|
name: z__namespace.string().describe("Name of the token"),
|
|
91
91
|
description: z__namespace.string().optional().describe("Description given by the user, usually only set for api tokens"),
|
|
@@ -97,7 +97,7 @@ const accountIntegrationSchema = z__namespace.object({
|
|
|
97
97
|
advancedType: z__namespace.string().optional().describe("The enum advanced type (HEALTHCARE e.g.) if this integration is a advanced one"),
|
|
98
98
|
advancedState: z__namespace.string().optional().describe("The enum advanced state (TESTING e.g.) if this integration is a advanced one"),
|
|
99
99
|
clientId: z__namespace.string().describe("The clientId of this integration/device used for deleting the integration"),
|
|
100
|
-
sortOrder: z__namespace.
|
|
100
|
+
sortOrder: z__namespace.int32().optional().describe("Sort order by which the entry should be sorted, is being set by the vendor key enum"),
|
|
101
101
|
device: z__namespace.boolean().optional().describe("True this is a device and false this is an integration")
|
|
102
102
|
});
|
|
103
103
|
const accountOtpEnableSchema = z__namespace.object({
|
|
@@ -143,7 +143,7 @@ const accountSubCreateSchema = z__namespace.object({
|
|
|
143
143
|
}),
|
|
144
144
|
password: z__namespace.string().describe("The password (must be at least 7 chars long)"),
|
|
145
145
|
name: z__namespace.string().describe("The name of the sub account"),
|
|
146
|
-
rights: z__namespace.
|
|
146
|
+
rights: z__namespace.int32().describe("The right bitmask of the sub account: 1 .. operate smartlock, 2 .. change smartlock config, 4 .. manage smartlock users, 8 .. view smartlock logs, 16 .. manage sub accounts"),
|
|
147
147
|
language: z__namespace.string().describe("The language code").meta({
|
|
148
148
|
examples: [
|
|
149
149
|
"de"
|
|
@@ -159,7 +159,7 @@ const accountSubUpdateSchema = z__namespace.object({
|
|
|
159
159
|
}),
|
|
160
160
|
password: z__namespace.string().optional().describe("The new password (must be at least 7 chars long)"),
|
|
161
161
|
name: z__namespace.string().optional().describe("The new name of the sub account"),
|
|
162
|
-
rights: z__namespace.
|
|
162
|
+
rights: z__namespace.int32().optional().describe("The new right bitmask of the sub account: 1 .. operate smartlock, 2 .. change smartlock config, 4 .. manage smartlock users, 8 .. view smartlock logs, 16 .. manage sub accounts, 32 .. manage sub accounts, 64 .. create smartlocks"),
|
|
163
163
|
language: z__namespace.string().describe("The language code").meta({
|
|
164
164
|
examples: [
|
|
165
165
|
"de"
|
|
@@ -185,9 +185,9 @@ const accountUpdateSchema = z__namespace.object({
|
|
|
185
185
|
profile: accountProfileSchema.optional().describe("The optional profile")
|
|
186
186
|
});
|
|
187
187
|
const accountUserSchema = z__namespace.object({
|
|
188
|
-
accountUserId: z__namespace.
|
|
189
|
-
accountId: z__namespace.
|
|
190
|
-
type: z__namespace.
|
|
188
|
+
accountUserId: z__namespace.int32().describe("The account user id"),
|
|
189
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
190
|
+
type: z__namespace.int32().optional().describe("The optional type: 0 .. user, 1 .. company"),
|
|
191
191
|
email: z__namespace.string().describe("The email address"),
|
|
192
192
|
name: z__namespace.string().describe("The name"),
|
|
193
193
|
language: z__namespace.string().optional().describe("The language code").meta({
|
|
@@ -200,7 +200,7 @@ const accountUserSchema = z__namespace.object({
|
|
|
200
200
|
updateDate: z__namespace.iso.datetime().describe("The update date")
|
|
201
201
|
});
|
|
202
202
|
const accountUserCreateSchema = z__namespace.object({
|
|
203
|
-
type: z__namespace.
|
|
203
|
+
type: z__namespace.int32().optional().describe("The optional type - only allowed for caretakers: 0 .. user, 1 .. company"),
|
|
204
204
|
email: z__namespace.string().describe("The email address"),
|
|
205
205
|
name: z__namespace.string().describe("The name"),
|
|
206
206
|
language: z__namespace.enum([
|
|
@@ -233,8 +233,8 @@ const accountUserUpdateSchema = z__namespace.object({
|
|
|
233
233
|
]).optional().describe("The new language code")
|
|
234
234
|
});
|
|
235
235
|
const addressSchema = z__namespace.object({
|
|
236
|
-
addressId: z__namespace.
|
|
237
|
-
accountId: z__namespace.
|
|
236
|
+
addressId: z__namespace.int32().describe("The address id"),
|
|
237
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
238
238
|
name: z__namespace.string().describe("The name of the address"),
|
|
239
239
|
smartlockIds: z__namespace.array(z__namespace.coerce.bigint()).describe("The smartlocks for this address"),
|
|
240
240
|
serviceId: z__namespace.enum([
|
|
@@ -242,8 +242,8 @@ const addressSchema = z__namespace.object({
|
|
|
242
242
|
"bookingsync"
|
|
243
243
|
]).optional().describe("The optional service id if the address is from an partner service"),
|
|
244
244
|
timeZone: z__namespace.string().optional().describe("The timezone"),
|
|
245
|
-
checkInTime: z__namespace.
|
|
246
|
-
checkOutTime: z__namespace.
|
|
245
|
+
checkInTime: z__namespace.int32().optional().describe("The optional check in time (minutes of the day)"),
|
|
246
|
+
checkOutTime: z__namespace.int32().optional().describe("The optional check out time (minutes of the day)"),
|
|
247
247
|
settings: z__namespace.object({}).catchall(z__namespace.object({})).optional().describe("The optional settings object"),
|
|
248
248
|
creationDate: z__namespace.iso.datetime().describe("The creation date"),
|
|
249
249
|
updateDate: z__namespace.iso.datetime().describe("The update date")
|
|
@@ -254,12 +254,12 @@ const addressCreateSchema = z__namespace.object({
|
|
|
254
254
|
});
|
|
255
255
|
const addressReservationSchema = z__namespace.object({
|
|
256
256
|
id: z__namespace.string().describe("The id"),
|
|
257
|
-
addressId: z__namespace.
|
|
258
|
-
accountId: z__namespace.
|
|
257
|
+
addressId: z__namespace.int32().describe("The address id"),
|
|
258
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
259
259
|
email: z__namespace.string().describe("The email of the guest"),
|
|
260
260
|
name: z__namespace.string().describe("The name of the guest"),
|
|
261
|
-
guests: z__namespace.
|
|
262
|
-
guestsIssued: z__namespace.
|
|
261
|
+
guests: z__namespace.int32().describe("The number of guests"),
|
|
262
|
+
guestsIssued: z__namespace.int32().describe("The number of guests issued"),
|
|
263
263
|
keypadIssued: z__namespace.boolean().describe("True if a keypad authorization was issued"),
|
|
264
264
|
state: z__namespace.enum([
|
|
265
265
|
"canceled",
|
|
@@ -270,7 +270,7 @@ const addressReservationSchema = z__namespace.object({
|
|
|
270
270
|
"bookingsync"
|
|
271
271
|
]).optional().describe("The optional service id if the address is from an partner service"),
|
|
272
272
|
reference: z__namespace.string().optional().describe("The reference (booking code)"),
|
|
273
|
-
automation: z__namespace.
|
|
273
|
+
automation: z__namespace.int32().describe("The automation state"),
|
|
274
274
|
checkedIn: z__namespace.boolean().optional().describe("True if the user has checked in, false if the check in is pending, null if it isn't monitored"),
|
|
275
275
|
startDate: z__namespace.iso.datetime().describe("The start date"),
|
|
276
276
|
endDate: z__namespace.iso.datetime().describe("The end date"),
|
|
@@ -283,10 +283,10 @@ const addressReservationSchema = z__namespace.object({
|
|
|
283
283
|
});
|
|
284
284
|
const addressTokenSchema = z__namespace.object({
|
|
285
285
|
id: z__namespace.string().describe("The id"),
|
|
286
|
-
addressId: z__namespace.
|
|
286
|
+
addressId: z__namespace.int32().describe("The address id"),
|
|
287
287
|
creationDate: z__namespace.iso.datetime().describe("The creation date"),
|
|
288
288
|
redeemDate: z__namespace.iso.datetime().describe("The redeem date"),
|
|
289
|
-
redeemAccountId: z__namespace.
|
|
289
|
+
redeemAccountId: z__namespace.int32().describe("The redeem account id"),
|
|
290
290
|
inviteKeys: z__namespace.array(z__namespace.string()).optional().describe("The list of invite keys"),
|
|
291
291
|
redeemResult: z__namespace.enum([
|
|
292
292
|
"ok",
|
|
@@ -301,14 +301,14 @@ const addressTokenInfoSchema = z__namespace.object({
|
|
|
301
301
|
const addressUnitSchema = z__namespace.object({
|
|
302
302
|
id: z__namespace.string().optional().describe("The id"),
|
|
303
303
|
name: z__namespace.string().describe("The name of the address unit"),
|
|
304
|
-
addressId: z__namespace.
|
|
304
|
+
addressId: z__namespace.int32().optional().describe("The address id"),
|
|
305
305
|
addressTokenId: z__namespace.string().optional().describe("The address token id"),
|
|
306
306
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation")
|
|
307
307
|
});
|
|
308
308
|
const addressUnitResponseSchema = z__namespace.object({
|
|
309
309
|
id: z__namespace.string().optional().describe("The id"),
|
|
310
310
|
name: z__namespace.string().describe("The name of the address unit"),
|
|
311
|
-
addressId: z__namespace.
|
|
311
|
+
addressId: z__namespace.int32().optional().describe("The address id"),
|
|
312
312
|
addressTokenId: z__namespace.string().optional().describe("The address token id"),
|
|
313
313
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation"),
|
|
314
314
|
creationDate: z__namespace.iso.datetime().describe("The creation date"),
|
|
@@ -324,7 +324,7 @@ const addressUpdateSchema = z__namespace.object({
|
|
|
324
324
|
settings: z__namespace.object({}).catchall(z__namespace.object({})).optional().describe("The optional settings")
|
|
325
325
|
});
|
|
326
326
|
const advancedApiKeySchema = z__namespace.object({
|
|
327
|
-
name: z__namespace.string().describe("The name of the company for which you apply for access"),
|
|
327
|
+
name: z__namespace.string().describe("The name of the company for which you apply for access. Only the first 17 characters of your integration's name will be visible in the device's activity log."),
|
|
328
328
|
country: z__namespace.string().describe("The country of the headquarter or the country where you are mainly doing business in"),
|
|
329
329
|
description: z__namespace.string().describe("Describe the services and/or products you offer to your customers and how your customers would use Nuki devices in their processes"),
|
|
330
330
|
type: z__namespace.enum([
|
|
@@ -363,7 +363,7 @@ const advancedApiKeySchema = z__namespace.object({
|
|
|
363
363
|
updateDate: z__namespace.iso.datetime().describe("The update date")
|
|
364
364
|
});
|
|
365
365
|
const advancedApiKeyCreateSchema = z__namespace.object({
|
|
366
|
-
name: z__namespace.string().describe("The name of the company for which you apply for access"),
|
|
366
|
+
name: z__namespace.string().describe("The name of the company for which you apply for access. Only the first 17 characters of your integration's name will be visible in the device's activity log."),
|
|
367
367
|
country: z__namespace.string().describe("The country of the headquarter or the country where you are mainly doing business in"),
|
|
368
368
|
description: z__namespace.string().describe("Describe the services and/or products you offer to your customers and how your customers would use Nuki devices in their processes"),
|
|
369
369
|
type: z__namespace.enum([
|
|
@@ -410,8 +410,8 @@ const advancedConfirmationResponseSchema = z__namespace.object({
|
|
|
410
410
|
error: z__namespace.string().optional().describe("Contains error message and smartlock IDs, if auths can not be created because they need subscription.")
|
|
411
411
|
});
|
|
412
412
|
const apiKeySchema = z__namespace.object({
|
|
413
|
-
apiKeyId: z__namespace.
|
|
414
|
-
accountId: z__namespace.
|
|
413
|
+
apiKeyId: z__namespace.int32().describe("The id"),
|
|
414
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
415
415
|
description: z__namespace.string().optional().describe("The description"),
|
|
416
416
|
redirectUris: z__namespace.array(z__namespace.string()).optional().describe("The redirect uris"),
|
|
417
417
|
creationDate: z__namespace.iso.datetime().describe("The creation date"),
|
|
@@ -441,8 +441,8 @@ const apiKeyAdvancedSchema = z__namespace.object({
|
|
|
441
441
|
message: "Array entries must be unique"
|
|
442
442
|
}).optional(),
|
|
443
443
|
webhookUrl: z__namespace.string().optional(),
|
|
444
|
-
webhookSentSuccessfully: z__namespace.
|
|
445
|
-
webhookSentErroneous: z__namespace.
|
|
444
|
+
webhookSentSuccessfully: z__namespace.int32().optional(),
|
|
445
|
+
webhookSentErroneous: z__namespace.int32().optional(),
|
|
446
446
|
lastSuccessfulPost: z__namespace.iso.datetime().optional(),
|
|
447
447
|
lastPostDuration: z__namespace.coerce.bigint().optional(),
|
|
448
448
|
lastPostSuccesful: z__namespace.boolean().optional(),
|
|
@@ -466,7 +466,7 @@ const apiKeyCreateSchema = z__namespace.object({
|
|
|
466
466
|
});
|
|
467
467
|
const completableFutureListApiKeySchema = z__namespace.object({
|
|
468
468
|
completedExceptionally: z__namespace.boolean().optional(),
|
|
469
|
-
numberOfDependents: z__namespace.
|
|
469
|
+
numberOfDependents: z__namespace.int32().optional(),
|
|
470
470
|
done: z__namespace.boolean().optional(),
|
|
471
471
|
cancelled: z__namespace.boolean().optional()
|
|
472
472
|
});
|
|
@@ -475,7 +475,7 @@ const apiKeyServiceSchema = z__namespace.object({
|
|
|
475
475
|
});
|
|
476
476
|
const apiKeyTokenSchema = z__namespace.object({
|
|
477
477
|
id: z__namespace.string().describe("The id"),
|
|
478
|
-
accountId: z__namespace.
|
|
478
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
479
479
|
description: z__namespace.string().optional().describe("The description"),
|
|
480
480
|
accessToken: z__namespace.string().optional().describe("The access token"),
|
|
481
481
|
scopes: z__namespace.array(z__namespace.string()).describe("The list of scopes"),
|
|
@@ -560,10 +560,10 @@ const restletSchema = z__namespace.object({
|
|
|
560
560
|
get logger () {
|
|
561
561
|
return loggerSchema.optional();
|
|
562
562
|
},
|
|
563
|
+
stopped: z__namespace.boolean().optional(),
|
|
563
564
|
get application () {
|
|
564
565
|
return applicationSchema.optional();
|
|
565
|
-
}
|
|
566
|
-
stopped: z__namespace.boolean().optional()
|
|
566
|
+
}
|
|
567
567
|
});
|
|
568
568
|
const parameterSchema = z__namespace.object({
|
|
569
569
|
name: z__namespace.string().optional(),
|
|
@@ -626,6 +626,55 @@ const converterServiceSchema = z__namespace.object({
|
|
|
626
626
|
started: z__namespace.boolean().optional(),
|
|
627
627
|
stopped: z__namespace.boolean().optional()
|
|
628
628
|
});
|
|
629
|
+
const protocolSchema = z__namespace.object({
|
|
630
|
+
confidential: z__namespace.boolean().optional(),
|
|
631
|
+
defaultPort: z__namespace.int32().optional(),
|
|
632
|
+
description: z__namespace.string().optional(),
|
|
633
|
+
name: z__namespace.string().optional(),
|
|
634
|
+
schemeName: z__namespace.string().optional(),
|
|
635
|
+
technicalName: z__namespace.string().optional(),
|
|
636
|
+
version: z__namespace.string().optional()
|
|
637
|
+
});
|
|
638
|
+
const referenceSchema = z__namespace.object({
|
|
639
|
+
get baseRef () {
|
|
640
|
+
return referenceSchema.optional();
|
|
641
|
+
},
|
|
642
|
+
absolute: z__namespace.boolean().optional(),
|
|
643
|
+
scheme: z__namespace.string().optional(),
|
|
644
|
+
opaque: z__namespace.boolean().optional(),
|
|
645
|
+
authority: z__namespace.string().optional(),
|
|
646
|
+
relative: z__namespace.boolean().optional(),
|
|
647
|
+
query: z__namespace.string().optional(),
|
|
648
|
+
path: z__namespace.string().optional(),
|
|
649
|
+
userInfo: z__namespace.string().optional(),
|
|
650
|
+
schemeSpecificPart: z__namespace.string().optional(),
|
|
651
|
+
fragment: z__namespace.string().optional(),
|
|
652
|
+
extensions: z__namespace.string().optional(),
|
|
653
|
+
identifier: z__namespace.string().optional(),
|
|
654
|
+
matrix: z__namespace.string().optional(),
|
|
655
|
+
matrixAsForm: z__namespace.array(parameterSchema).optional(),
|
|
656
|
+
queryAsForm: z__namespace.array(parameterSchema).optional(),
|
|
657
|
+
extensionsAsArray: z__namespace.array(z__namespace.string()).optional(),
|
|
658
|
+
hierarchicalPart: z__namespace.string().optional(),
|
|
659
|
+
hostDomain: z__namespace.string().optional(),
|
|
660
|
+
hostIdentifier: z__namespace.string().optional(),
|
|
661
|
+
hostPort: z__namespace.int32().optional(),
|
|
662
|
+
lastSegment: z__namespace.string().optional(),
|
|
663
|
+
get parentRef () {
|
|
664
|
+
return referenceSchema.optional();
|
|
665
|
+
},
|
|
666
|
+
relativePart: z__namespace.string().optional(),
|
|
667
|
+
get relativeRef () {
|
|
668
|
+
return referenceSchema.optional();
|
|
669
|
+
},
|
|
670
|
+
remainingPart: z__namespace.string().optional(),
|
|
671
|
+
schemeProtocol: protocolSchema.optional(),
|
|
672
|
+
segments: z__namespace.array(z__namespace.string()).optional(),
|
|
673
|
+
get targetRef () {
|
|
674
|
+
return referenceSchema.optional();
|
|
675
|
+
},
|
|
676
|
+
hierarchical: z__namespace.boolean().optional()
|
|
677
|
+
});
|
|
629
678
|
const metadataSchema = z__namespace.object({
|
|
630
679
|
description: z__namespace.string().optional(),
|
|
631
680
|
name: z__namespace.string().optional(),
|
|
@@ -681,70 +730,13 @@ const metadataServiceSchema = z__namespace.object({
|
|
|
681
730
|
get defaultMediaType () {
|
|
682
731
|
return mediaTypeSchema.optional();
|
|
683
732
|
},
|
|
684
|
-
allCharacterSetExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
685
733
|
allEncodingExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
686
|
-
|
|
734
|
+
allCharacterSetExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
687
735
|
allExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
736
|
+
allLanguageExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
688
737
|
allMediaTypeExtensionNames: z__namespace.array(z__namespace.string()).optional(),
|
|
689
738
|
stopped: z__namespace.boolean().optional()
|
|
690
739
|
});
|
|
691
|
-
const rangeServiceSchema = z__namespace.object({
|
|
692
|
-
get context () {
|
|
693
|
-
return contextSchema.optional();
|
|
694
|
-
},
|
|
695
|
-
enabled: z__namespace.boolean().optional(),
|
|
696
|
-
started: z__namespace.boolean().optional(),
|
|
697
|
-
stopped: z__namespace.boolean().optional()
|
|
698
|
-
});
|
|
699
|
-
const protocolSchema = z__namespace.object({
|
|
700
|
-
confidential: z__namespace.boolean().optional(),
|
|
701
|
-
defaultPort: z__namespace.int().optional(),
|
|
702
|
-
description: z__namespace.string().optional(),
|
|
703
|
-
name: z__namespace.string().optional(),
|
|
704
|
-
schemeName: z__namespace.string().optional(),
|
|
705
|
-
technicalName: z__namespace.string().optional(),
|
|
706
|
-
version: z__namespace.string().optional()
|
|
707
|
-
});
|
|
708
|
-
const referenceSchema = z__namespace.object({
|
|
709
|
-
get baseRef () {
|
|
710
|
-
return referenceSchema.optional();
|
|
711
|
-
},
|
|
712
|
-
absolute: z__namespace.boolean().optional(),
|
|
713
|
-
scheme: z__namespace.string().optional(),
|
|
714
|
-
opaque: z__namespace.boolean().optional(),
|
|
715
|
-
authority: z__namespace.string().optional(),
|
|
716
|
-
relative: z__namespace.boolean().optional(),
|
|
717
|
-
query: z__namespace.string().optional(),
|
|
718
|
-
path: z__namespace.string().optional(),
|
|
719
|
-
userInfo: z__namespace.string().optional(),
|
|
720
|
-
schemeSpecificPart: z__namespace.string().optional(),
|
|
721
|
-
fragment: z__namespace.string().optional(),
|
|
722
|
-
extensions: z__namespace.string().optional(),
|
|
723
|
-
extensionsAsArray: z__namespace.array(z__namespace.string()).optional(),
|
|
724
|
-
hierarchicalPart: z__namespace.string().optional(),
|
|
725
|
-
hostDomain: z__namespace.string().optional(),
|
|
726
|
-
hostIdentifier: z__namespace.string().optional(),
|
|
727
|
-
hostPort: z__namespace.int().optional(),
|
|
728
|
-
lastSegment: z__namespace.string().optional(),
|
|
729
|
-
get parentRef () {
|
|
730
|
-
return referenceSchema.optional();
|
|
731
|
-
},
|
|
732
|
-
relativePart: z__namespace.string().optional(),
|
|
733
|
-
get relativeRef () {
|
|
734
|
-
return referenceSchema.optional();
|
|
735
|
-
},
|
|
736
|
-
remainingPart: z__namespace.string().optional(),
|
|
737
|
-
schemeProtocol: protocolSchema.optional(),
|
|
738
|
-
segments: z__namespace.array(z__namespace.string()).optional(),
|
|
739
|
-
get targetRef () {
|
|
740
|
-
return referenceSchema.optional();
|
|
741
|
-
},
|
|
742
|
-
hierarchical: z__namespace.boolean().optional(),
|
|
743
|
-
identifier: z__namespace.string().optional(),
|
|
744
|
-
matrix: z__namespace.string().optional(),
|
|
745
|
-
matrixAsForm: z__namespace.array(parameterSchema).optional(),
|
|
746
|
-
queryAsForm: z__namespace.array(parameterSchema).optional()
|
|
747
|
-
});
|
|
748
740
|
const statusServiceSchema = z__namespace.object({
|
|
749
741
|
get context () {
|
|
750
742
|
return contextSchema.optional();
|
|
@@ -767,13 +759,21 @@ const statusServiceSchema = z__namespace.object({
|
|
|
767
759
|
overwriting: z__namespace.boolean().optional(),
|
|
768
760
|
stopped: z__namespace.boolean().optional()
|
|
769
761
|
});
|
|
762
|
+
const rangeServiceSchema = z__namespace.object({
|
|
763
|
+
get context () {
|
|
764
|
+
return contextSchema.optional();
|
|
765
|
+
},
|
|
766
|
+
enabled: z__namespace.boolean().optional(),
|
|
767
|
+
started: z__namespace.boolean().optional(),
|
|
768
|
+
stopped: z__namespace.boolean().optional()
|
|
769
|
+
});
|
|
770
770
|
const taskServiceSchema = z__namespace.object({
|
|
771
771
|
get context () {
|
|
772
772
|
return contextSchema.optional();
|
|
773
773
|
},
|
|
774
774
|
enabled: z__namespace.boolean().optional(),
|
|
775
775
|
started: z__namespace.boolean().optional(),
|
|
776
|
-
corePoolSize: z__namespace.
|
|
776
|
+
corePoolSize: z__namespace.int32().optional(),
|
|
777
777
|
daemon: z__namespace.boolean().optional(),
|
|
778
778
|
shutdownAllowed: z__namespace.boolean().optional(),
|
|
779
779
|
terminated: z__namespace.boolean().optional(),
|
|
@@ -855,21 +855,21 @@ const applicationSchema = z__namespace.object({
|
|
|
855
855
|
get services () {
|
|
856
856
|
return z__namespace.array(serviceSchema).optional();
|
|
857
857
|
},
|
|
858
|
+
get statusService () {
|
|
859
|
+
return statusServiceSchema.optional();
|
|
860
|
+
},
|
|
858
861
|
get connegService () {
|
|
859
862
|
return connegServiceSchema.optional();
|
|
860
863
|
},
|
|
861
|
-
get converterService () {
|
|
862
|
-
return converterServiceSchema.optional();
|
|
863
|
-
},
|
|
864
864
|
get metadataService () {
|
|
865
865
|
return metadataServiceSchema.optional();
|
|
866
866
|
},
|
|
867
|
+
get converterService () {
|
|
868
|
+
return converterServiceSchema.optional();
|
|
869
|
+
},
|
|
867
870
|
get rangeService () {
|
|
868
871
|
return rangeServiceSchema.optional();
|
|
869
872
|
},
|
|
870
|
-
get statusService () {
|
|
871
|
-
return statusServiceSchema.optional();
|
|
872
|
-
},
|
|
873
873
|
get taskService () {
|
|
874
874
|
return taskServiceSchema.optional();
|
|
875
875
|
},
|
|
@@ -888,21 +888,21 @@ const applicationSchema = z__namespace.object({
|
|
|
888
888
|
get logger () {
|
|
889
889
|
return loggerSchema.optional();
|
|
890
890
|
},
|
|
891
|
+
stopped: z__namespace.boolean().optional(),
|
|
891
892
|
get application () {
|
|
892
893
|
return applicationSchema.optional();
|
|
893
|
-
}
|
|
894
|
-
stopped: z__namespace.boolean().optional()
|
|
894
|
+
}
|
|
895
895
|
});
|
|
896
896
|
const authenticationInfoSchema = z__namespace.object({
|
|
897
897
|
nextServerNonce: z__namespace.string().optional(),
|
|
898
|
-
nonceCount: z__namespace.
|
|
898
|
+
nonceCount: z__namespace.int32().optional(),
|
|
899
899
|
clientNonce: z__namespace.string().optional(),
|
|
900
900
|
quality: z__namespace.string().optional(),
|
|
901
901
|
responseDigest: z__namespace.string().optional()
|
|
902
902
|
});
|
|
903
903
|
const smartlockWebConfigSchema = z__namespace.object({
|
|
904
904
|
batteryWarningPerMailEnabled: z__namespace.boolean().optional().describe("True if a battery warning is send via email, if null/not send, the value is not being updated"),
|
|
905
|
-
dismissedLiftUpHandleWarning: z__namespace.array(z__namespace.
|
|
905
|
+
dismissedLiftUpHandleWarning: z__namespace.array(z__namespace.int32()).optional().describe("Contains the account ids which have dismissed the lift up handle warning, if null/not send, the value is not being updated. To clear send a empty array []")
|
|
906
906
|
});
|
|
907
907
|
const webConfigRequestSchema = z__namespace.object({
|
|
908
908
|
smartlockId: z__namespace.coerce.bigint().optional(),
|
|
@@ -964,7 +964,7 @@ const challengeResponseSchema = z__namespace.object({
|
|
|
964
964
|
quality: z__namespace.string().optional(),
|
|
965
965
|
secret: z__namespace.array(z__namespace.string()).optional(),
|
|
966
966
|
secretAlgorithm: z__namespace.string().optional(),
|
|
967
|
-
serverNounceCount: z__namespace.
|
|
967
|
+
serverNounceCount: z__namespace.int32().optional(),
|
|
968
968
|
timeIssued: z__namespace.coerce.bigint().optional(),
|
|
969
969
|
principal: principalSchema.optional(),
|
|
970
970
|
serverNounceCountAsHex: z__namespace.string().optional()
|
|
@@ -1027,16 +1027,16 @@ const clientInfoSchema = z__namespace.object({
|
|
|
1027
1027
|
expectations: z__namespace.array(expectationSchema).optional(),
|
|
1028
1028
|
forwardedAddresses: z__namespace.array(z__namespace.string()).optional(),
|
|
1029
1029
|
from: z__namespace.string().optional(),
|
|
1030
|
-
port: z__namespace.
|
|
1030
|
+
port: z__namespace.int32().optional(),
|
|
1031
1031
|
principals: z__namespace.array(principalSchema).optional(),
|
|
1032
1032
|
get roles () {
|
|
1033
1033
|
return z__namespace.array(roleSchema).optional();
|
|
1034
1034
|
},
|
|
1035
1035
|
user: userSchema.optional(),
|
|
1036
|
+
upstreamAddress: z__namespace.string().optional(),
|
|
1036
1037
|
agentName: z__namespace.string().optional(),
|
|
1037
1038
|
agentVersion: z__namespace.string().optional(),
|
|
1038
|
-
mainAgentProduct: productSchema.optional()
|
|
1039
|
-
upstreamAddress: z__namespace.string().optional()
|
|
1039
|
+
mainAgentProduct: productSchema.optional()
|
|
1040
1040
|
});
|
|
1041
1041
|
const companySchema = z__namespace.object({
|
|
1042
1042
|
name: z__namespace.string().optional(),
|
|
@@ -1044,7 +1044,7 @@ const companySchema = z__namespace.object({
|
|
|
1044
1044
|
});
|
|
1045
1045
|
const completableFutureSchema = z__namespace.object({
|
|
1046
1046
|
completedExceptionally: z__namespace.boolean().optional(),
|
|
1047
|
-
numberOfDependents: z__namespace.
|
|
1047
|
+
numberOfDependents: z__namespace.int32().optional(),
|
|
1048
1048
|
done: z__namespace.boolean().optional(),
|
|
1049
1049
|
cancelled: z__namespace.boolean().optional()
|
|
1050
1050
|
});
|
|
@@ -1065,22 +1065,22 @@ const cookieSchema = z__namespace.object({
|
|
|
1065
1065
|
name: z__namespace.string().optional(),
|
|
1066
1066
|
path: z__namespace.string().optional(),
|
|
1067
1067
|
value: z__namespace.string().optional(),
|
|
1068
|
-
version: z__namespace.
|
|
1068
|
+
version: z__namespace.int32().optional()
|
|
1069
1069
|
});
|
|
1070
1070
|
const cookieSettingSchema = z__namespace.object({
|
|
1071
1071
|
domain: z__namespace.string().optional(),
|
|
1072
1072
|
name: z__namespace.string().optional(),
|
|
1073
1073
|
path: z__namespace.string().optional(),
|
|
1074
1074
|
value: z__namespace.string().optional(),
|
|
1075
|
-
version: z__namespace.
|
|
1075
|
+
version: z__namespace.int32().optional(),
|
|
1076
1076
|
accessRestricted: z__namespace.boolean().optional(),
|
|
1077
1077
|
comment: z__namespace.string().optional(),
|
|
1078
|
-
maxAge: z__namespace.
|
|
1078
|
+
maxAge: z__namespace.int32().optional(),
|
|
1079
1079
|
secure: z__namespace.boolean().optional(),
|
|
1080
1080
|
description: z__namespace.string().optional()
|
|
1081
1081
|
});
|
|
1082
1082
|
const decentralWebhookSchema = z__namespace.object({
|
|
1083
|
-
id: z__namespace.
|
|
1083
|
+
id: z__namespace.int32().optional().describe("The identifier"),
|
|
1084
1084
|
secret: z__namespace.string().optional().describe("The secret to sign the webhook's payload"),
|
|
1085
1085
|
webhookUrl: z__namespace.string().describe("The URL where our webhooks (POST requests) should point to (needs to be https)"),
|
|
1086
1086
|
webhookFeatures: z__namespace.array(z__namespace.enum([
|
|
@@ -1118,13 +1118,13 @@ const methodSchema = z__namespace.object({
|
|
|
1118
1118
|
uri: z__namespace.string().optional()
|
|
1119
1119
|
});
|
|
1120
1120
|
const myAccountSchema = z__namespace.object({
|
|
1121
|
-
accountId: z__namespace.
|
|
1122
|
-
type: z__namespace.
|
|
1121
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
1122
|
+
type: z__namespace.int32().describe("The type: 0 .. user, 1 .. company, 2 .. caretaker"),
|
|
1123
1123
|
email: z__namespace.string().describe("The email address"),
|
|
1124
1124
|
emailVerified: z__namespace.boolean().optional().describe("true, if the email is verified"),
|
|
1125
1125
|
name: z__namespace.string().describe("The name"),
|
|
1126
|
-
masterAccountId: z__namespace.
|
|
1127
|
-
rights: z__namespace.
|
|
1126
|
+
masterAccountId: z__namespace.int32().optional().describe("The master account id if it's a sub account"),
|
|
1127
|
+
rights: z__namespace.int32().optional().describe("The rights bitmask if it's a sub account: 1 .. manage smartlock, 2 .. operate smartlock, 4 .. manage smartlock config, 8 .. manage smartlock authorizations, 16 .. view smartlock logs, 32 .. manage sub accounts, 64 .. create smartlocks"),
|
|
1128
1128
|
language: z__namespace.string().optional().describe("The language code").meta({
|
|
1129
1129
|
examples: [
|
|
1130
1130
|
"de"
|
|
@@ -1171,31 +1171,31 @@ const notificationSchema = z__namespace.object({
|
|
|
1171
1171
|
"8d41a187c3954f886f9de3a88c2ef22df0eac190"
|
|
1172
1172
|
]
|
|
1173
1173
|
}),
|
|
1174
|
-
os: z__namespace.
|
|
1174
|
+
os: z__namespace.int32().describe("The operating system: 0 .. Android, 1 .. iOS, 2 .. web hook"),
|
|
1175
1175
|
language: z__namespace.string().optional().describe("The language of push messages: cs, de, en (default), es, fr, it, nl, sk"),
|
|
1176
|
-
status: z__namespace.
|
|
1176
|
+
status: z__namespace.int32().optional().describe("Current state: 0 .. init, 1 .. active, 2 .. failed"),
|
|
1177
1177
|
lastActiveDate: z__namespace.iso.datetime().optional().describe("The last active date"),
|
|
1178
1178
|
settings: z__namespace.array(notificationSettingSchema).describe("Settings per Smart Lock")
|
|
1179
1179
|
});
|
|
1180
1180
|
const objectIdSchema = z__namespace.object({
|
|
1181
|
-
timestamp: z__namespace.
|
|
1182
|
-
counter: z__namespace.
|
|
1181
|
+
timestamp: z__namespace.int32().optional(),
|
|
1182
|
+
counter: z__namespace.int32().optional(),
|
|
1183
1183
|
time: z__namespace.coerce.bigint().optional(),
|
|
1184
1184
|
date: z__namespace.iso.datetime().optional(),
|
|
1185
|
-
machineIdentifier: z__namespace.
|
|
1186
|
-
processIdentifier: z__namespace.
|
|
1187
|
-
timeSecond: z__namespace.
|
|
1185
|
+
machineIdentifier: z__namespace.int32().optional(),
|
|
1186
|
+
processIdentifier: z__namespace.int32().optional(),
|
|
1187
|
+
timeSecond: z__namespace.int32().optional()
|
|
1188
1188
|
});
|
|
1189
1189
|
const openerIntercomBrandSchema = z__namespace.object({
|
|
1190
|
-
brandId: z__namespace.
|
|
1190
|
+
brandId: z__namespace.int32().describe("The brand ID"),
|
|
1191
1191
|
brand: z__namespace.string().describe("The brand name")
|
|
1192
1192
|
});
|
|
1193
1193
|
const openerIntercomModelSchema = z__namespace.object({
|
|
1194
|
-
intercomId: z__namespace.
|
|
1195
|
-
brandId: z__namespace.
|
|
1196
|
-
type: z__namespace.
|
|
1194
|
+
intercomId: z__namespace.int32().describe("The intercom ID"),
|
|
1195
|
+
brandId: z__namespace.int32().describe("The related brand ID"),
|
|
1196
|
+
type: z__namespace.int32().describe("The type of the model"),
|
|
1197
1197
|
model: z__namespace.string().describe("The model name"),
|
|
1198
|
-
verified: z__namespace.
|
|
1198
|
+
verified: z__namespace.int32().describe("Verified Nuki intercom: 1 .. verified to work, 2 .. may be compatible, but not verified, 3 .. not compatible"),
|
|
1199
1199
|
conGndBus: z__namespace.string().describe("Connection for ground BUS"),
|
|
1200
1200
|
conBusAudio: z__namespace.string().describe("Connection for audio BUS"),
|
|
1201
1201
|
conAudioout: z__namespace.string().describe("Connection for audio out"),
|
|
@@ -1203,18 +1203,18 @@ const openerIntercomModelSchema = z__namespace.object({
|
|
|
1203
1203
|
conDoorbellMinus: z__namespace.string().describe("Connection for doorbell minus"),
|
|
1204
1204
|
conOpendoor: z__namespace.string().describe("Connection for open the door"),
|
|
1205
1205
|
conGndAnalogue: z__namespace.string().describe("Connection for ground analogue"),
|
|
1206
|
-
busModeSwitch: z__namespace.
|
|
1207
|
-
busModeSwitchShortCircuitDuration: z__namespace.
|
|
1206
|
+
busModeSwitch: z__namespace.int32().describe("Settings value for BUS mode switch"),
|
|
1207
|
+
busModeSwitchShortCircuitDuration: z__namespace.int32().describe("Settings value for BUS mode switch short cicuit duration"),
|
|
1208
1208
|
creationDate: z__namespace.iso.datetime().optional().describe("The creation date"),
|
|
1209
1209
|
updateDate: z__namespace.iso.datetime().optional().describe("The update date")
|
|
1210
1210
|
});
|
|
1211
1211
|
const paginationSchema = z__namespace.object({
|
|
1212
1212
|
totalItems: z__namespace.coerce.bigint().optional(),
|
|
1213
|
-
totalPages: z__namespace.
|
|
1214
|
-
currentPage: z__namespace.
|
|
1213
|
+
totalPages: z__namespace.int32().optional(),
|
|
1214
|
+
currentPage: z__namespace.int32().optional(),
|
|
1215
1215
|
nextPage: z__namespace.string().optional(),
|
|
1216
1216
|
prevPage: z__namespace.string().optional(),
|
|
1217
|
-
pageSize: z__namespace.
|
|
1217
|
+
pageSize: z__namespace.int32().optional()
|
|
1218
1218
|
});
|
|
1219
1219
|
const paginatedResponseSchema = z__namespace.object({
|
|
1220
1220
|
results: z__namespace.array(z__namespace.object({})).optional(),
|
|
@@ -1251,9 +1251,9 @@ const selectableChannelSchema = z__namespace.object({
|
|
|
1251
1251
|
const wakeupListenerSchema = z__namespace.object({});
|
|
1252
1252
|
const selectionRegistrationSchema = z__namespace.object({
|
|
1253
1253
|
canceling: z__namespace.boolean().optional(),
|
|
1254
|
-
interestOperations: z__namespace.
|
|
1254
|
+
interestOperations: z__namespace.int32().optional(),
|
|
1255
1255
|
selectionListener: selectionListenerSchema.optional(),
|
|
1256
|
-
readyOperations: z__namespace.
|
|
1256
|
+
readyOperations: z__namespace.int32().optional(),
|
|
1257
1257
|
selectableChannel: selectableChannelSchema.optional(),
|
|
1258
1258
|
wakeupListener: wakeupListenerSchema.optional(),
|
|
1259
1259
|
readable: z__namespace.boolean().optional(),
|
|
@@ -1298,7 +1298,7 @@ const stackTraceElementSchema = z__namespace.object({
|
|
|
1298
1298
|
moduleVersion: z__namespace.string().optional(),
|
|
1299
1299
|
methodName: z__namespace.string().optional(),
|
|
1300
1300
|
fileName: z__namespace.string().optional(),
|
|
1301
|
-
lineNumber: z__namespace.
|
|
1301
|
+
lineNumber: z__namespace.int32().optional(),
|
|
1302
1302
|
className: z__namespace.string().optional(),
|
|
1303
1303
|
nativeMethod: z__namespace.boolean().optional()
|
|
1304
1304
|
});
|
|
@@ -1314,7 +1314,7 @@ const throwableSchema = z__namespace.object({
|
|
|
1314
1314
|
localizedMessage: z__namespace.string().optional()
|
|
1315
1315
|
});
|
|
1316
1316
|
const statusSchema = z__namespace.object({
|
|
1317
|
-
code: z__namespace.
|
|
1317
|
+
code: z__namespace.int32().optional(),
|
|
1318
1318
|
description: z__namespace.string().optional(),
|
|
1319
1319
|
reasonPhrase: z__namespace.string().optional(),
|
|
1320
1320
|
get throwable () {
|
|
@@ -1323,13 +1323,13 @@ const statusSchema = z__namespace.object({
|
|
|
1323
1323
|
uri: z__namespace.string().optional(),
|
|
1324
1324
|
error: z__namespace.boolean().optional(),
|
|
1325
1325
|
success: z__namespace.boolean().optional(),
|
|
1326
|
+
serverError: z__namespace.boolean().optional(),
|
|
1327
|
+
connectorError: z__namespace.boolean().optional(),
|
|
1328
|
+
clientError: z__namespace.boolean().optional(),
|
|
1326
1329
|
globalError: z__namespace.boolean().optional(),
|
|
1327
1330
|
informational: z__namespace.boolean().optional(),
|
|
1328
1331
|
redirection: z__namespace.boolean().optional(),
|
|
1329
|
-
recoverableError: z__namespace.boolean().optional()
|
|
1330
|
-
serverError: z__namespace.boolean().optional(),
|
|
1331
|
-
connectorError: z__namespace.boolean().optional(),
|
|
1332
|
-
clientError: z__namespace.boolean().optional()
|
|
1332
|
+
recoverableError: z__namespace.boolean().optional()
|
|
1333
1333
|
});
|
|
1334
1334
|
const warningSchema = z__namespace.object({
|
|
1335
1335
|
agent: z__namespace.string().optional(),
|
|
@@ -1358,7 +1358,7 @@ const requestSchema = z__namespace.object({
|
|
|
1358
1358
|
return referenceSchema.optional();
|
|
1359
1359
|
},
|
|
1360
1360
|
loggable: z__namespace.boolean().optional(),
|
|
1361
|
-
maxForwards: z__namespace.
|
|
1361
|
+
maxForwards: z__namespace.int32().optional(),
|
|
1362
1362
|
method: methodSchema.optional(),
|
|
1363
1363
|
onResponse: uniformSchema.optional(),
|
|
1364
1364
|
get originalRef () {
|
|
@@ -1376,23 +1376,23 @@ const requestSchema = z__namespace.object({
|
|
|
1376
1376
|
get rootRef () {
|
|
1377
1377
|
return referenceSchema.optional();
|
|
1378
1378
|
},
|
|
1379
|
+
confidential: z__namespace.boolean().optional(),
|
|
1379
1380
|
asynchronous: z__namespace.boolean().optional(),
|
|
1380
1381
|
entityAvailable: z__namespace.boolean().optional(),
|
|
1381
1382
|
expectingResponse: z__namespace.boolean().optional(),
|
|
1382
1383
|
synchronous: z__namespace.boolean().optional(),
|
|
1383
|
-
|
|
1384
|
-
entityAsText: z__namespace.string().optional()
|
|
1385
|
-
headers: z__namespace.array(headerSchema).optional()
|
|
1384
|
+
headers: z__namespace.array(headerSchema).optional(),
|
|
1385
|
+
entityAsText: z__namespace.string().optional()
|
|
1386
1386
|
});
|
|
1387
1387
|
const reservationAccessTimesUpdateSchema = z__namespace.object({
|
|
1388
|
-
checkInTime: z__namespace.
|
|
1389
|
-
checkOutTime: z__namespace.
|
|
1388
|
+
checkInTime: z__namespace.int32().optional().describe("Custom check in time in minutes from midnight"),
|
|
1389
|
+
checkOutTime: z__namespace.int32().optional().describe("Custom check out time in minutes from midnight")
|
|
1390
1390
|
});
|
|
1391
1391
|
const serverInfoSchema = z__namespace.object({
|
|
1392
1392
|
acceptingRanges: z__namespace.boolean().optional(),
|
|
1393
1393
|
address: z__namespace.string().optional(),
|
|
1394
1394
|
agent: z__namespace.string().optional(),
|
|
1395
|
-
port: z__namespace.
|
|
1395
|
+
port: z__namespace.int32().optional()
|
|
1396
1396
|
});
|
|
1397
1397
|
const responseSchema = z__namespace.object({
|
|
1398
1398
|
attributes: z__namespace.object({}).catchall(z__namespace.object({})).optional(),
|
|
@@ -1414,8 +1414,8 @@ const responseSchema = z__namespace.object({
|
|
|
1414
1414
|
accessControlExposeHeaders: z__namespace.array(z__namespace.string()).refine((items)=>new Set(items).size === items.length, {
|
|
1415
1415
|
message: "Array entries must be unique"
|
|
1416
1416
|
}).optional(),
|
|
1417
|
-
accessControlMaxAge: z__namespace.
|
|
1418
|
-
age: z__namespace.
|
|
1417
|
+
accessControlMaxAge: z__namespace.int32().optional(),
|
|
1418
|
+
age: z__namespace.int32().optional(),
|
|
1419
1419
|
allowedMethods: z__namespace.array(methodSchema).refine((items)=>new Set(items).size === items.length, {
|
|
1420
1420
|
message: "Array entries must be unique"
|
|
1421
1421
|
}).optional(),
|
|
@@ -1447,11 +1447,11 @@ const responseSchema = z__namespace.object({
|
|
|
1447
1447
|
serverInfo: serverInfoSchema.optional(),
|
|
1448
1448
|
status: statusSchema.optional(),
|
|
1449
1449
|
final: z__namespace.boolean().optional(),
|
|
1450
|
-
provisional: z__namespace.boolean().optional(),
|
|
1451
1450
|
confidential: z__namespace.boolean().optional(),
|
|
1451
|
+
provisional: z__namespace.boolean().optional(),
|
|
1452
|
+
headers: z__namespace.array(headerSchema).optional(),
|
|
1452
1453
|
entityAvailable: z__namespace.boolean().optional(),
|
|
1453
|
-
entityAsText: z__namespace.string().optional()
|
|
1454
|
-
headers: z__namespace.array(headerSchema).optional()
|
|
1454
|
+
entityAsText: z__namespace.string().optional()
|
|
1455
1455
|
});
|
|
1456
1456
|
const shsSubscriptionSchema = z__namespace.object({
|
|
1457
1457
|
type: z__namespace.enum([
|
|
@@ -1485,113 +1485,114 @@ const smartlockConfigSchema = z__namespace.object({
|
|
|
1485
1485
|
name: z__namespace.string().describe("The name of the smartlock for new users"),
|
|
1486
1486
|
latitude: z__namespace.number().describe("The latitude of the smartlock position"),
|
|
1487
1487
|
longitude: z__namespace.number().describe("The longitude of the smartlock position"),
|
|
1488
|
-
capabilities: z__namespace.
|
|
1488
|
+
capabilities: z__namespace.int32().optional().describe("The capabilities indicate whether door opening via app is possible, RTO is possible or both: 0 .. only door opening possible, 1 .. both possible, 2 .. only RTO possible (only for type=2)"),
|
|
1489
1489
|
autoUnlatch: z__namespace.boolean().optional().describe("True if the door should be unlatched on unlocking (knob) (only for type=1 and type=3)"),
|
|
1490
1490
|
liftUpHandle: z__namespace.boolean().optional().describe("True if the door has a lift up handle, which is required to be lifted up to lock the door"),
|
|
1491
1491
|
pairingEnabled: z__namespace.boolean().optional().describe("True if the pairing is allowed via the smartlock button"),
|
|
1492
1492
|
buttonEnabled: z__namespace.boolean().optional().describe("True if the button on the smartlock is enabled"),
|
|
1493
1493
|
ledEnabled: z__namespace.boolean().optional().describe("True if the LED on the smartlock is enabled"),
|
|
1494
|
-
ledBrightness: z__namespace.
|
|
1495
|
-
timezoneOffset: z__namespace.
|
|
1496
|
-
daylightSavingMode: z__namespace.
|
|
1494
|
+
ledBrightness: z__namespace.int32().optional().describe("The brightness of the LED: 0 .. off, 5 .. max (only for type=1 and type=3)"),
|
|
1495
|
+
timezoneOffset: z__namespace.int32().describe("[deprecated] The timezone offset (in minutes)"),
|
|
1496
|
+
daylightSavingMode: z__namespace.int32().optional().describe("[deprecated] The daylight saving mode: 0 .. off, 1 .. european"),
|
|
1497
1497
|
fobPaired: z__namespace.boolean().optional().describe("True if a fob is paired with the smartlock"),
|
|
1498
|
-
fobAction1: z__namespace.
|
|
1499
|
-
fobAction2: z__namespace.
|
|
1500
|
-
fobAction3: z__namespace.
|
|
1498
|
+
fobAction1: z__namespace.int32().optional().describe("The fob action if button is pressed once: type=0/3/4: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring"),
|
|
1499
|
+
fobAction2: z__namespace.int32().optional().describe("The fob action if button is pressed twice: type=0/3/4: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring"),
|
|
1500
|
+
fobAction3: z__namespace.int32().optional().describe("The fob action if button is pressed 3 times: type=0/3/4: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring"),
|
|
1501
1501
|
singleLock: z__namespace.boolean().describe("True if the smartlock should only lock once (instead of twice) (only for type=1)"),
|
|
1502
|
-
operatingMode: z__namespace.
|
|
1503
|
-
advertisingMode: z__namespace.
|
|
1502
|
+
operatingMode: z__namespace.int32().optional().describe("The operating mode of the opener (only for type=2): 0x00 .. generic door opener, 0x01 .. analogue intercom, 0x02 .. digital intercom, 0x03 .. digital intercom Siedle, 0x04 .. digital intercom TCS, 0x05 .. digital intercom Bticino, 0x06 .. analog intercom Siedle HTS, 0x07 .. digital intercom STR, 0x08 .. digital intercom Ritto, 0x09 .. digital intercom Fermax, 0x0A .. digital intercom Comelit, 0x0B .. digital intercom Urmet BiBus, 0x0C .. digital intercom Urmet 2Voice, 0x0D .. digital intercom Golmar, 0x0E .. digital intercom SKS, 0x0F .. digital intercom Spare"),
|
|
1503
|
+
advertisingMode: z__namespace.int32().describe("The advertising mode (battery saving): 0 .. automatic, 1 .. normal, 2 .. slow, 3 .. slowest"),
|
|
1504
1504
|
keypadPaired: z__namespace.boolean().optional().describe("True if a keypad is paired with the smartlock"),
|
|
1505
1505
|
keypad2Paired: z__namespace.boolean().optional().describe("True if a keypad 2 is paired with the smartlock"),
|
|
1506
|
-
homekitState: z__namespace.
|
|
1507
|
-
matterState: z__namespace.
|
|
1508
|
-
timezoneId: z__namespace.
|
|
1509
|
-
deviceType: z__namespace.
|
|
1506
|
+
homekitState: z__namespace.int32().optional().describe("The homekit state: 0 .. unavailable, 1 .. disabled, 2 .. enabled, 3 .. enabled & paired"),
|
|
1507
|
+
matterState: z__namespace.int32().optional().describe("The matter state: 0 .. not available, 1 .. disabled and no certificate available, 2 .. disabled, 3 .. enabled, 4 .. enabled & paired"),
|
|
1508
|
+
timezoneId: z__namespace.int32().describe("The timezone id (check https://developer.nuki.io for ids)"),
|
|
1509
|
+
deviceType: z__namespace.int32().optional().describe("The device type of a Nuki device"),
|
|
1510
1510
|
wifiEnabled: z__namespace.boolean().optional().describe("Flag that indicates if the devices internal WIFI module can be used"),
|
|
1511
1511
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation"),
|
|
1512
|
-
productVariant: z__namespace.
|
|
1512
|
+
productVariant: z__namespace.int32().optional().describe("The product variant for Smartlock 5: 1 .. Go, 2 .. Pro, 3 .. Ultra")
|
|
1513
1513
|
});
|
|
1514
1514
|
const smartlockAdvancedConfigSchema = z__namespace.object({
|
|
1515
|
-
lngTimeout: z__namespace.
|
|
1516
|
-
singleButtonPressAction: z__namespace.
|
|
1517
|
-
doubleButtonPressAction: z__namespace.
|
|
1515
|
+
lngTimeout: z__namespace.int32().optional().describe("Timeout in seconds for lock ‘n’ go"),
|
|
1516
|
+
singleButtonPressAction: z__namespace.int32().optional().describe("The desired action, if the button is pressed once: 0 .. no action, 1 .. intelligent, 2 .. unlock, 3 .. lock, 4 .. unlatch, 5 .. lock 'n' go, 6 .. show status"),
|
|
1517
|
+
doubleButtonPressAction: z__namespace.int32().optional().describe("The desired action, if the button is pressed twice: 0 .. no action, 1 .. intelligent, 2 .. unlock, 3 .. lock, 4 .. unlatch, 5 .. lock 'n' go, 6 .. show status"),
|
|
1518
1518
|
automaticBatteryTypeDetection: z__namespace.boolean().optional().describe("Flag that indicates if the automatic detection of the battery type is enabled"),
|
|
1519
|
-
unlatchDuration: z__namespace.
|
|
1519
|
+
unlatchDuration: z__namespace.int32().optional().describe("Duration in seconds for holding the latch in unlatched position"),
|
|
1520
1520
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation"),
|
|
1521
|
-
totalDegrees: z__namespace.
|
|
1522
|
-
singleLockedPositionOffsetDegrees: z__namespace.
|
|
1523
|
-
unlockedToLockedTransitionOffsetDegrees: z__namespace.
|
|
1524
|
-
unlockedPositionOffsetDegrees: z__namespace.
|
|
1525
|
-
lockedPositionOffsetDegrees: z__namespace.
|
|
1521
|
+
totalDegrees: z__namespace.int32().describe("The absolute total position in degrees that has been reached during calibration"),
|
|
1522
|
+
singleLockedPositionOffsetDegrees: z__namespace.int32().describe("Offset that alters the single locked position"),
|
|
1523
|
+
unlockedToLockedTransitionOffsetDegrees: z__namespace.int32().optional().describe("Offset that alters the position where transition from unlocked to locked happens"),
|
|
1524
|
+
unlockedPositionOffsetDegrees: z__namespace.int32().describe("Offset that alters the unlocked position"),
|
|
1525
|
+
lockedPositionOffsetDegrees: z__namespace.int32().describe("Offset that alters the locked position"),
|
|
1526
1526
|
detachedCylinder: z__namespace.boolean().optional().describe("Flag that indicates that the inner side of the used cylinder is detached from the outer side"),
|
|
1527
|
-
batteryType: z__namespace.
|
|
1527
|
+
batteryType: z__namespace.int32().describe("The type of the batteries present in the smart lock: 0 .. alkali, 1 .. accumulator, 2 .. lithium"),
|
|
1528
1528
|
autoLock: z__namespace.boolean().optional().describe("New separate flag with FW >= 2.7.8/1.9.1: The Auto Lock feature automatically locks your door when it has been unlocked for a certain period of time"),
|
|
1529
|
-
autoLockTimeout: z__namespace.
|
|
1529
|
+
autoLockTimeout: z__namespace.int32().optional().describe("Seconds until the smart lock relocks itself after it has been unlocked. FW < 2.7.8/1.9.1: No auto relock if value is 0, FW >= 2.7.8/1.9.1: has to be >=2 (defaults to 2 for values <2 if autoLock is set to true)"),
|
|
1530
1530
|
autoUpdateEnabled: z__namespace.boolean().optional().describe("Flag that indicates if available firmware updates for the deviceshould be installed automatically"),
|
|
1531
|
-
motorSpeed: z__namespace.
|
|
1531
|
+
motorSpeed: z__namespace.int32().optional().describe("Field used for setting the motor speed. 0x00 ... standard, 0x01 ... fast, 0x02 ... slow"),
|
|
1532
1532
|
enableSlowSpeedDuringNightmode: z__namespace.boolean().optional().describe("Flag indicating if the slow speed shall be applied during NightMode")
|
|
1533
1533
|
});
|
|
1534
1534
|
const smartlockOpenerAdvancedConfigSchema = z__namespace.object({
|
|
1535
|
-
intercomId: z__namespace.
|
|
1536
|
-
busModeSwitch: z__namespace.
|
|
1537
|
-
shortCircuitDuration: z__namespace.
|
|
1538
|
-
electricStrikeDelay: z__namespace.
|
|
1535
|
+
intercomId: z__namespace.int32().describe("The database ID of the connected intercom"),
|
|
1536
|
+
busModeSwitch: z__namespace.int32().describe("Method to switch between data and analogue mode"),
|
|
1537
|
+
shortCircuitDuration: z__namespace.int32().describe("Duration of the short circuit for BUS mode switching in ms"),
|
|
1538
|
+
electricStrikeDelay: z__namespace.int32().describe("Delay of electric strike activation in ms after lock action 3 'electric strike actuation'"),
|
|
1539
1539
|
randomElectricStrikeDelay: z__namespace.boolean().describe("Random electricStrikeDelay (range 3000 - 7000 ms) in order to simulate a person inside actuating the electric strike"),
|
|
1540
|
-
electricStrikeDuration: z__namespace.
|
|
1540
|
+
electricStrikeDuration: z__namespace.int32().describe("Duration in ms of electric strike actuation lock action 3 'electric strike actuation'"),
|
|
1541
1541
|
disableRtoAfterRing: z__namespace.boolean().describe("Flag to disable RTO after ring"),
|
|
1542
|
-
rtoTimeout: z__namespace.
|
|
1543
|
-
doorbellSuppression: z__namespace.
|
|
1544
|
-
doorbellSuppressionDuration: z__namespace.
|
|
1545
|
-
soundRing: z__namespace.
|
|
1546
|
-
soundOpen: z__namespace.
|
|
1547
|
-
soundRto: z__namespace.
|
|
1548
|
-
soundCm: z__namespace.
|
|
1549
|
-
soundConfirmation: z__namespace.
|
|
1550
|
-
soundLevel: z__namespace.
|
|
1551
|
-
singleButtonPressAction: z__namespace.
|
|
1552
|
-
doubleButtonPressAction: z__namespace.
|
|
1553
|
-
batteryType: z__namespace.
|
|
1542
|
+
rtoTimeout: z__namespace.int32().describe("After this period of time in minutes, RTO gets deactivated automatically"),
|
|
1543
|
+
doorbellSuppression: z__namespace.int32().describe("The doorbell supression bitmask: first bit (least significant) .. whenever the doorbell rings and CM and RTO are inactive, second bit .. RTO is active, third bit .. CM is active"),
|
|
1544
|
+
doorbellSuppressionDuration: z__namespace.int32().describe("Duration in ms of doorbell suppression (only in Operating mode 2 'digital Intercom')"),
|
|
1545
|
+
soundRing: z__namespace.int32().describe("The sound for ring: 0 .. no sound, 1 .. Sound1, 2 .. Sound2, 3 .. Sound3"),
|
|
1546
|
+
soundOpen: z__namespace.int32().describe("The sound for open: 0 .. no sound, 1 .. Sound1, 2 .. Sound2, 3 .. Sound3"),
|
|
1547
|
+
soundRto: z__namespace.int32().describe("The sound for RTO: 0 .. no sound, 1 .. Sound1, 2 .. Sound2, 3 .. Sound3"),
|
|
1548
|
+
soundCm: z__namespace.int32().describe("The sound for CM: 0 .. no sound, 1 .. Sound1, 2 .. Sound2, 3 .. Sound3"),
|
|
1549
|
+
soundConfirmation: z__namespace.int32().describe("The sound confirmation: 0 .. no sound, 1 .. sound"),
|
|
1550
|
+
soundLevel: z__namespace.int32().describe("The sound level"),
|
|
1551
|
+
singleButtonPressAction: z__namespace.int32().describe("The desired action, if the button is pressed once: 0 .. no action, 1 .. toggle RTO, 2 .. activate RTO, 3 .. deactivate RTO, 4 .. toggle CM, 5 .. activate CM, 6 .. deactivate CM, 7 .. open"),
|
|
1552
|
+
doubleButtonPressAction: z__namespace.int32().describe("The desired action, if the button is pressed twice: 0 .. no action, 1 .. toggle RTO, 2 .. activate RTO, 3 .. deactivate RTO, 4 .. toggle CM, 5 .. activate CM, 6 .. deactivate CM, 7 .. open"),
|
|
1553
|
+
batteryType: z__namespace.int32().describe("The type of the batteries present in the smart lock: 0 .. alkali, 1 .. accumulator, 2 .. lithium, 3 .. fixed"),
|
|
1554
1554
|
automaticBatteryTypeDetection: z__namespace.boolean().optional().describe("Flag that indicates if the automatic detection of the battery type is enabled"),
|
|
1555
1555
|
autoUpdateEnabled: z__namespace.boolean().optional().describe("Flag that indicates if available firmware updates for the deviceshould be installed automatically"),
|
|
1556
1556
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation")
|
|
1557
1557
|
});
|
|
1558
1558
|
const smartlockSmartdoorAdvancedConfigSchema = z__namespace.object({
|
|
1559
|
-
lngTimeout: z__namespace.
|
|
1560
|
-
singleButtonPressAction: z__namespace.
|
|
1561
|
-
doubleButtonPressAction: z__namespace.
|
|
1559
|
+
lngTimeout: z__namespace.int32().optional().describe("Timeout in seconds for lock ‘n’ go"),
|
|
1560
|
+
singleButtonPressAction: z__namespace.int32().optional().describe("The desired action, if the button is pressed once: 0 .. no action, 1 .. intelligent, 2 .. unlock, 3 .. lock, 4 .. unlatch, 5 .. lock 'n' go, 6 .. show status"),
|
|
1561
|
+
doubleButtonPressAction: z__namespace.int32().optional().describe("The desired action, if the button is pressed twice: 0 .. no action, 1 .. intelligent, 2 .. unlock, 3 .. lock, 4 .. unlatch, 5 .. lock 'n' go, 6 .. show status"),
|
|
1562
1562
|
automaticBatteryTypeDetection: z__namespace.boolean().optional().describe("Flag that indicates if the automatic detection of the battery type is enabled"),
|
|
1563
|
-
unlatchDuration: z__namespace.
|
|
1563
|
+
unlatchDuration: z__namespace.int32().optional().describe("Duration in seconds for holding the latch in unlatched position"),
|
|
1564
1564
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation"),
|
|
1565
|
-
buzzerVolume: z__namespace.
|
|
1566
|
-
supportedBatteryTypes: z__namespace.array(z__namespace.
|
|
1565
|
+
buzzerVolume: z__namespace.int32().optional().describe("The volume of the buzzer: 0 .. off, 1 .. low, 2 .. normal"),
|
|
1566
|
+
supportedBatteryTypes: z__namespace.array(z__namespace.int32()).refine((items)=>new Set(items).size === items.length, {
|
|
1567
1567
|
message: "Array entries must be unique"
|
|
1568
1568
|
}).optional().describe("Set of supported battery types: 0 .. alkali, 1 .. accumulator, 2 .. lithium, 3 .. fixed, 254 .. automatic, 255 .. unknown"),
|
|
1569
|
-
batteryType: z__namespace.
|
|
1570
|
-
autoLockTimeout: z__namespace.
|
|
1569
|
+
batteryType: z__namespace.int32().describe("The type of the batteries present in the smart lock: 0 .. alkali, 1 .. accumulator, 2 .. lithium, 3 .. fixed, 255 .. unknown"),
|
|
1570
|
+
autoLockTimeout: z__namespace.int32().optional().describe("Seconds until the smart lock relocks itself after it has been unlocked. No auto relock if value is 0"),
|
|
1571
1571
|
autoLock: z__namespace.boolean().describe("The Auto Lock feature automatically locks your door when it has been unlocked for a certain period of time")
|
|
1572
1572
|
});
|
|
1573
1573
|
const smartlockStateSchema = z__namespace.object({
|
|
1574
|
-
mode: z__namespace.
|
|
1575
|
-
state: z__namespace.
|
|
1576
|
-
trigger: z__namespace.
|
|
1577
|
-
lastAction: z__namespace.
|
|
1574
|
+
mode: z__namespace.int32().describe("The smartlock mode: 0 .. uninitialized, 1 .. pairing, 2 .. door (default), 3 .. continuous (type=2 only), 4 .. maintenance, 5 .. off-door charging"),
|
|
1575
|
+
state: z__namespace.int32().describe("The smartlock state: type=0/3/4: 0 .. uncalibrated, 1 .. locked, 2 .. unlocking, 3 .. unlocked, 4 .. locking, 5 .. unlatched, 6 .. unlocked (lock 'n' go), 7 .. unlatching, 224 .. Error wrong entry code, 225 .. Error wrong Fingerprint, 254 .. motor blocked, 255 .. undefined; type=2: 0 .. untrained, 1 .. online, 3 .. ring to open active, 5 .. open, 7 .. opening, 253 .. boot run, 255 .. undefined"),
|
|
1576
|
+
trigger: z__namespace.int32().describe(" The state trigger: 0 .. system, 1 .. manual, 2 .. button, 3 .. automatic, 4 .. web (type=1 only), 5 .. app (type=1 only), 6 .. continuous mode (type=2 only), 7 .. accessory (type=3 only)"),
|
|
1577
|
+
lastAction: z__namespace.int32().describe("The action: type=0/3/4: 1 .. unlock, 2 .. lock, 3 .. unlatch, 4 .. lock 'n' go, 5 .. lock 'n' go with unlatch; type=1: 1 .. unlock; type=2: 1 .. activate ring to open, 2 .. deactivate ring to open, 3 .. open (electric strike actuation)"),
|
|
1578
1578
|
batteryCritical: z__namespace.boolean().describe("True if the battery state of the device is critical"),
|
|
1579
1579
|
batteryCharging: z__namespace.boolean().optional().describe("True if a Nuki battery pack in a Smart Lock is currently charging"),
|
|
1580
|
-
batteryCharge: z__namespace.
|
|
1580
|
+
batteryCharge: z__namespace.int32().optional().describe("Remaining capacity of a Nuki battery pack in %"),
|
|
1581
1581
|
keypadBatteryCritical: z__namespace.boolean().optional().describe("True if the battery of a paired Keypad is critical (only available for supported devices)"),
|
|
1582
1582
|
doorsensorBatteryCritical: z__namespace.boolean().optional().describe("True if the battery of a paired doorsensor is critical (only available for supported devices)"),
|
|
1583
|
-
doorState: z__namespace.
|
|
1584
|
-
|
|
1583
|
+
doorState: z__namespace.int32().describe("The door state: 0 .. unavailable/not paired, 1 .. deactivated, 2 .. door closed, 3 .. door opened, 4 .. door state unknown, 5 .. calibrating, 16 .. uncalibrated, 240 .. removed, 255 .. unknown"),
|
|
1584
|
+
keypadMountingState: z__namespace.int32().optional().describe("The keypad mounting state: 0 .. unknown/disabled/n.a., 1 .. mounted, 2 .. moved (dismounted), 255 .. error (theft detection) (only available for supported devices)"),
|
|
1585
|
+
ringToOpenTimer: z__namespace.int32().describe("[deprecated] Remaining ring to open time; 0 if ring to open is not active (type=2 only)"),
|
|
1585
1586
|
ringToOpenEnd: z__namespace.iso.datetime().optional().describe("End date of ring to open timeout; null if ring to open is not active (type=2 only)"),
|
|
1586
1587
|
nightMode: z__namespace.boolean().describe("True if night mode currently active"),
|
|
1587
1588
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation")
|
|
1588
1589
|
});
|
|
1589
1590
|
const smartlockSchema = z__namespace.object({
|
|
1590
1591
|
smartlockId: z__namespace.coerce.bigint().describe("The smartlock id"),
|
|
1591
|
-
accountId: z__namespace.
|
|
1592
|
-
type: z__namespace.
|
|
1593
|
-
lmType: z__namespace.
|
|
1594
|
-
authId: z__namespace.
|
|
1592
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
1593
|
+
type: z__namespace.int32().describe("The type: 0 .. Smartlock 1/2, 1 .. Box, 2 .. Opener, 3 .. Smartdoor, 4 .. Smartlock 3/4, 5 .. Smartlock 5"),
|
|
1594
|
+
lmType: z__namespace.int32().optional().describe("The lock mechanism used in the smart door lock: 1 .. MyEVO, 2 .. KFV Genius (only for type = 3)"),
|
|
1595
|
+
authId: z__namespace.int32().describe("The authorization id"),
|
|
1595
1596
|
name: z__namespace.string().describe("The name of the smartlock"),
|
|
1596
1597
|
favorite: z__namespace.boolean().describe("The favorite flag"),
|
|
1597
1598
|
config: smartlockConfigSchema.optional().describe("The config"),
|
|
@@ -1600,107 +1601,107 @@ const smartlockSchema = z__namespace.object({
|
|
|
1600
1601
|
smartdoorAdvancedConfig: smartlockSmartdoorAdvancedConfigSchema.optional().describe("The smartdoor advanced config"),
|
|
1601
1602
|
webConfig: smartlockWebConfigSchema.optional().describe("The web config"),
|
|
1602
1603
|
state: smartlockStateSchema.optional().describe("The state"),
|
|
1603
|
-
firmwareVersion: z__namespace.
|
|
1604
|
-
hardwareVersion: z__namespace.
|
|
1604
|
+
firmwareVersion: z__namespace.int32().optional().describe("The firmware version"),
|
|
1605
|
+
hardwareVersion: z__namespace.int32().optional().describe("The hardware version"),
|
|
1605
1606
|
operationId: z__namespace.string().optional().describe("The operation id - if set it's locked for another operation"),
|
|
1606
|
-
serverState: z__namespace.
|
|
1607
|
-
adminPinState: z__namespace.
|
|
1607
|
+
serverState: z__namespace.int32().describe("The server state: 0 .. ok, 1 .. unregistered, 2 .. auth uuid invalid, 3 .. auth invalid, 4 .. offline"),
|
|
1608
|
+
adminPinState: z__namespace.int32().describe("The admin pin state: 0 .. ok, 1 .. missing, 2 .. invalid"),
|
|
1608
1609
|
virtualDevice: z__namespace.boolean().optional().describe("The flag indicating a virtual Smart Lock"),
|
|
1609
1610
|
creationDate: z__namespace.iso.datetime().optional().describe("The creation date"),
|
|
1610
1611
|
updateDate: z__namespace.iso.datetime().optional().describe("The update date"),
|
|
1611
1612
|
error: z__namespace.string().optional().describe("In case of any error, it contains the error message"),
|
|
1612
1613
|
previousSubscriptions: z__namespace.array(shsSubscriptionSchema).optional().describe("Previous Subscriptions"),
|
|
1613
1614
|
currentSubscription: shsSubscriptionSchema.optional().describe("Current Subscription"),
|
|
1614
|
-
region: z__namespace.
|
|
1615
|
-
mountingVariant: z__namespace.
|
|
1615
|
+
region: z__namespace.int32().optional().describe("The region"),
|
|
1616
|
+
mountingVariant: z__namespace.int32().optional().describe("The mounting variant"),
|
|
1616
1617
|
opener: z__namespace.boolean().optional(),
|
|
1617
1618
|
box: z__namespace.boolean().optional(),
|
|
1618
1619
|
smartDoor: z__namespace.boolean().optional(),
|
|
1619
1620
|
keyturner: z__namespace.boolean().optional()
|
|
1620
1621
|
});
|
|
1621
1622
|
const smartlockActionSchema = z__namespace.object({
|
|
1622
|
-
action: z__namespace.
|
|
1623
|
-
option: z__namespace.
|
|
1623
|
+
action: z__namespace.int32().describe("The action: type=0/3/4: 1 .. unlock, 2 .. lock, 3 .. unlatch, 4 .. lock 'n' go, 5 .. lock 'n' go with unlatch; type=1: 1 .. unlock; type=2: 1 activate ring to open, 2 .. deactivate ring to open, 3 .. open (electric strike actuation), 6 ... activate continuous mode, 7 ... deactivate continuous mode"),
|
|
1624
|
+
option: z__namespace.int32().optional().describe("The option mask: 0 .. none, 2 .. force, 4 .. full lock")
|
|
1624
1625
|
});
|
|
1625
1626
|
const smartlockAdminPinUpdateSchema = z__namespace.object({
|
|
1626
|
-
adminPin: z__namespace.
|
|
1627
|
+
adminPin: z__namespace.int32().describe("The admin pin")
|
|
1627
1628
|
});
|
|
1628
1629
|
const smartlockAuthSchema = z__namespace.object({
|
|
1629
1630
|
id: z__namespace.string().describe("The unique id for the smartlock authorization"),
|
|
1630
1631
|
smartlockId: z__namespace.coerce.bigint().describe("The smartlock id"),
|
|
1631
|
-
accountUserId: z__namespace.
|
|
1632
|
-
authId: z__namespace.
|
|
1633
|
-
code: z__namespace.
|
|
1632
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user"),
|
|
1633
|
+
authId: z__namespace.int32().optional().describe("The smartlock authorization id"),
|
|
1634
|
+
code: z__namespace.int32().optional().describe("The keypad code (only for type keypad)"),
|
|
1634
1635
|
fingerprints: z__namespace.object({}).catchall(z__namespace.string()).optional(),
|
|
1635
|
-
type: z__namespace.
|
|
1636
|
+
type: z__namespace.int32().describe("The type of the authorization: 0 .. app, 1 .. bridge, 2 .. fob, 3 .. keypad, 13 .. keypad code, 14 .. z-key, 15 .. virtual"),
|
|
1636
1637
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1637
1638
|
enabled: z__namespace.boolean().describe("True if the auth is enabled"),
|
|
1638
1639
|
remoteAllowed: z__namespace.boolean().describe("True if the auth has remote access"),
|
|
1639
|
-
lockCount: z__namespace.
|
|
1640
|
+
lockCount: z__namespace.int32().describe("The lock count"),
|
|
1640
1641
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1641
1642
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1642
|
-
allowedWeekDays: z__namespace.
|
|
1643
|
-
allowedFromTime: z__namespace.
|
|
1644
|
-
allowedUntilTime: z__namespace.
|
|
1643
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1644
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1645
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1645
1646
|
lastActiveDate: z__namespace.iso.datetime().optional().describe("The last active date"),
|
|
1646
1647
|
creationDate: z__namespace.iso.datetime().optional().describe("The creation date"),
|
|
1647
1648
|
updateDate: z__namespace.iso.datetime().optional().describe("The update date"),
|
|
1648
1649
|
operationId: objectIdSchema.optional().describe("The operation id - if set the auth is locked for another operations."),
|
|
1649
1650
|
error: z__namespace.string().optional().describe("In case of any error, it contains the error message"),
|
|
1650
|
-
appId: z__namespace.
|
|
1651
|
+
appId: z__namespace.int32().optional().describe("The ID of the Nuki App"),
|
|
1651
1652
|
authTypeAsString: z__namespace.string().optional()
|
|
1652
1653
|
});
|
|
1653
1654
|
const smartlockAuthCreateSchema = z__namespace.object({
|
|
1654
1655
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1655
1656
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1656
1657
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1657
|
-
allowedWeekDays: z__namespace.
|
|
1658
|
-
allowedFromTime: z__namespace.
|
|
1659
|
-
allowedUntilTime: z__namespace.
|
|
1660
|
-
accountUserId: z__namespace.
|
|
1658
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1659
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1660
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1661
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user (required if type is NOT 13 .. keypad)"),
|
|
1661
1662
|
remoteAllowed: z__namespace.boolean().describe("True if the auth has remote access"),
|
|
1662
1663
|
smartActionsEnabled: z__namespace.boolean().optional().describe("The smart actions enabled flag"),
|
|
1663
|
-
type: z__namespace.
|
|
1664
|
-
code: z__namespace.
|
|
1664
|
+
type: z__namespace.int32().optional().describe("The optional type of the auth 0 .. app (default), 2 .. fob, 13 .. keypad"),
|
|
1665
|
+
code: z__namespace.int32().optional().describe("The code of the keypad authorization (only for keypad)")
|
|
1665
1666
|
});
|
|
1666
1667
|
const smartlockAuthMultiUpdateSchema = z__namespace.object({
|
|
1667
1668
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1668
1669
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1669
1670
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1670
|
-
allowedWeekDays: z__namespace.
|
|
1671
|
-
allowedFromTime: z__namespace.
|
|
1672
|
-
allowedUntilTime: z__namespace.
|
|
1673
|
-
accountUserId: z__namespace.
|
|
1671
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1672
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1673
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1674
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user"),
|
|
1674
1675
|
enabled: z__namespace.boolean().optional().describe("True if the auth is enabled"),
|
|
1675
1676
|
remoteAllowed: z__namespace.boolean().optional().describe("True if the auth has remote access"),
|
|
1676
|
-
code: z__namespace.
|
|
1677
|
+
code: z__namespace.int32().optional().describe("The code of the keypad authorization (only for keypad)"),
|
|
1677
1678
|
id: z__namespace.string().describe("The unique id for the smartlock authorization")
|
|
1678
1679
|
});
|
|
1679
1680
|
const smartlockAuthUpdateSchema = z__namespace.object({
|
|
1680
1681
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1681
1682
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1682
1683
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1683
|
-
allowedWeekDays: z__namespace.
|
|
1684
|
-
allowedFromTime: z__namespace.
|
|
1685
|
-
allowedUntilTime: z__namespace.
|
|
1686
|
-
accountUserId: z__namespace.
|
|
1684
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1685
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1686
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1687
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user"),
|
|
1687
1688
|
enabled: z__namespace.boolean().optional().describe("True if the auth is enabled"),
|
|
1688
1689
|
remoteAllowed: z__namespace.boolean().optional().describe("True if the auth has remote access"),
|
|
1689
|
-
code: z__namespace.
|
|
1690
|
+
code: z__namespace.int32().optional().describe("The code of the keypad authorization (only for keypad)")
|
|
1690
1691
|
});
|
|
1691
1692
|
const smartlockAuthWithSharedKeyCreateSchema = z__namespace.object({
|
|
1692
1693
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1693
1694
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1694
1695
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1695
|
-
allowedWeekDays: z__namespace.
|
|
1696
|
-
allowedFromTime: z__namespace.
|
|
1697
|
-
allowedUntilTime: z__namespace.
|
|
1698
|
-
accountUserId: z__namespace.
|
|
1696
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1697
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1698
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1699
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user")
|
|
1699
1700
|
});
|
|
1700
1701
|
const smartlockLogOpenerLogSchema = z__namespace.object({
|
|
1701
1702
|
activeCm: z__namespace.boolean().describe("Flag indicating if continuous mode was active"),
|
|
1702
1703
|
activeRto: z__namespace.boolean().describe("Flag indicating if ring to open was active"),
|
|
1703
|
-
source: z__namespace.
|
|
1704
|
+
source: z__namespace.int32().describe("The cause of the activation of ring to open or continuous mode: 0 .. doorbell, 1 .. timecontrol, 2 .. app, 3 .. button, 4 .. fob, 5 .. bridge, 6 .. keypad"),
|
|
1704
1705
|
flagGeoFence: z__namespace.boolean().describe("Flag indicating a geo fence induced action"),
|
|
1705
1706
|
flagForce: z__namespace.boolean().describe("Flag indicating a force induced action"),
|
|
1706
1707
|
flagDoorbellSuppression: z__namespace.boolean().describe("Flag indicating if doorbell suppression was active")
|
|
@@ -1708,18 +1709,18 @@ const smartlockLogOpenerLogSchema = z__namespace.object({
|
|
|
1708
1709
|
const smartlockLogSchema = z__namespace.object({
|
|
1709
1710
|
id: z__namespace.string().describe("The unique id for the smartlock log"),
|
|
1710
1711
|
smartlockId: z__namespace.coerce.bigint().describe("The smartlock id"),
|
|
1711
|
-
deviceType: z__namespace.
|
|
1712
|
-
accountUserId: z__namespace.
|
|
1712
|
+
deviceType: z__namespace.int32().describe("The device type: 0 .. Smartlock 1/2 + Box, 2 .. Opener, 3 .. Smartdoor, 4 .. Smartlock 3/4, 5 .. Smartlock 5"),
|
|
1713
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user"),
|
|
1713
1714
|
authId: z__namespace.string().optional().describe("The id of the linked smartlock auth"),
|
|
1714
1715
|
name: z__namespace.string().describe("The name"),
|
|
1715
|
-
action: z__namespace.
|
|
1716
|
-
trigger: z__namespace.
|
|
1717
|
-
state: z__namespace.
|
|
1716
|
+
action: z__namespace.int32().describe("The action: 1 .. unlock, 2 .. lock, 3 .. unlatch, 4 .. lock'n'go, 5 .. lock'n'go with unlatch, 11 .. Restore reset to default setting, 208 .. door warning ajar, 209 door warning status mismatch, 224 .. doorbell recognition (only Opener), 240 .. door opened, 241 .. door closed, 242 .. door sensor jammed, 243 .. firmware update, 250 .. door log enabled, 251 .. door log disabled, 252 .. initialization, 253 .. calibration, 254 .. log enabled, 255 .. log disabled"),
|
|
1717
|
+
trigger: z__namespace.int32().describe("The trigger: 0 .. system, 1 .. manual, 2 .. button, 3 .. automatic, 4 .. web, 5 .. app, 6 .. auto lock, 7 .. accessory, 253 .. keypad error, 254 .. nuki mode, 255 .. keypad"),
|
|
1718
|
+
state: z__namespace.int32().describe("The completion state: 0 .. Success, 1 .. Motor blocked, 2 .. Canceled, 3 .. Too recent, 4 .. Busy, 5 .. Low motor voltage, 6 .. Clutch failure, 7 .. Motor power failure, 8 .. Incomplete, 9 .. Rejected, 10 .. Rejected night mode, 224 .. Invalid Code, 225 .. Invalid Fingerprint, 226 .. Invalid NFC Tag, 254 .. Other error, 255 .. Unknown error\nFor source=3 and trigger=253 the following states are used: 0 .. Access document revoked, 1 .. Send NFC failed, 2 .. Control flow, 3 .. Command time expired, 7 .. Invalid data content, 37 .. Invalid access rights, 255 .. Unknown"),
|
|
1718
1719
|
autoUnlock: z__namespace.boolean().describe("True if it was an auto unlock"),
|
|
1719
1720
|
date: z__namespace.iso.datetime().describe("The log date"),
|
|
1720
1721
|
openerLog: smartlockLogOpenerLogSchema.optional().describe("The opener specific log"),
|
|
1721
|
-
ajarTimeout: z__namespace.
|
|
1722
|
-
source: z__namespace.
|
|
1722
|
+
ajarTimeout: z__namespace.int32().optional().describe("The door sensor warning ajar timeout (in minutes, only for action = 208)"),
|
|
1723
|
+
source: z__namespace.int32().optional().describe("The source of action: 1 .. Keypad code, 2 .. Fingerprint, 3 .. Tap to Unlock, 0 .. Default"),
|
|
1723
1724
|
error: z__namespace.string().optional().describe("In case of any error, it contains the error message")
|
|
1724
1725
|
});
|
|
1725
1726
|
const smartlockUpdateSchema = z__namespace.object({
|
|
@@ -1730,10 +1731,10 @@ const smartlocksAuthAdvancedCreateSchema = z__namespace.object({
|
|
|
1730
1731
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1731
1732
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1732
1733
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1733
|
-
allowedWeekDays: z__namespace.
|
|
1734
|
-
allowedFromTime: z__namespace.
|
|
1735
|
-
allowedUntilTime: z__namespace.
|
|
1736
|
-
accountUserId: z__namespace.
|
|
1734
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1735
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1736
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1737
|
+
accountUserId: z__namespace.int32().describe("The id of the linked account user"),
|
|
1737
1738
|
smartlockIds: z__namespace.array(z__namespace.coerce.bigint()).describe("The list of smartlock ids"),
|
|
1738
1739
|
remoteAllowed: z__namespace.boolean().describe("True if the auth has remote access"),
|
|
1739
1740
|
smartActionsEnabled: z__namespace.boolean().optional().describe("The smart actions enabled flag")
|
|
@@ -1742,15 +1743,15 @@ const smartlocksAuthCreateSchema = z__namespace.object({
|
|
|
1742
1743
|
name: z__namespace.string().describe("The name of the authorization (max 32 chars)"),
|
|
1743
1744
|
allowedFromDate: z__namespace.iso.datetime().optional().describe("The allowed from date"),
|
|
1744
1745
|
allowedUntilDate: z__namespace.iso.datetime().optional().describe("The allowed until date"),
|
|
1745
|
-
allowedWeekDays: z__namespace.
|
|
1746
|
-
allowedFromTime: z__namespace.
|
|
1747
|
-
allowedUntilTime: z__namespace.
|
|
1748
|
-
accountUserId: z__namespace.
|
|
1746
|
+
allowedWeekDays: z__namespace.int32().optional().describe("The allowed weekdays bitmask: 64 .. monday, 32 .. tuesday, 16 .. wednesday, 8 .. thursday, 4 .. friday, 2 .. saturday, 1 .. sunday"),
|
|
1747
|
+
allowedFromTime: z__namespace.int32().optional().describe("The allowed from time (in minutes from midnight)"),
|
|
1748
|
+
allowedUntilTime: z__namespace.int32().optional().describe("The allowed until time (in minutes from midnight)"),
|
|
1749
|
+
accountUserId: z__namespace.int32().optional().describe("The id of the linked account user (required if type is NOT 13 .. keypad)"),
|
|
1749
1750
|
smartlockIds: z__namespace.array(z__namespace.coerce.bigint()).optional().describe("The list of smartlock ids"),
|
|
1750
1751
|
remoteAllowed: z__namespace.boolean().describe("True if the auth has remote access"),
|
|
1751
1752
|
smartActionsEnabled: z__namespace.boolean().optional().describe("The smart actions enabled flag"),
|
|
1752
|
-
type: z__namespace.
|
|
1753
|
-
code: z__namespace.
|
|
1753
|
+
type: z__namespace.int32().optional().describe("The optional type of the auth 0 .. app (default), 2 .. fob, 13 .. keypad"),
|
|
1754
|
+
code: z__namespace.int32().optional().describe("The code of the keypad authorization (only for keypad)")
|
|
1754
1755
|
});
|
|
1755
1756
|
const variantSchema = z__namespace.object({
|
|
1756
1757
|
characterSet: characterSetSchema.optional(),
|
|
@@ -1775,12 +1776,12 @@ const webhookLogSchema = z__namespace.object({
|
|
|
1775
1776
|
id: z__namespace.string().describe("The WebhookLog id"),
|
|
1776
1777
|
requestId: z__namespace.string().optional().describe("Request id, set when api-triggered request otherwise empty"),
|
|
1777
1778
|
succeeded: z__namespace.boolean().optional().describe("If the webhooks sends the data successfully"),
|
|
1778
|
-
responseStatus: z__namespace.
|
|
1779
|
+
responseStatus: z__namespace.int32().optional().describe("Http Status code of the webhook response"),
|
|
1779
1780
|
duration: z__namespace.coerce.bigint().optional().describe("The duration of the webhook in milli seconds"),
|
|
1780
|
-
accountId: z__namespace.
|
|
1781
|
+
accountId: z__namespace.int32().describe("The account id"),
|
|
1781
1782
|
request: webhookMessageSchema.optional().describe("Only set if webhook triggered by user"),
|
|
1782
1783
|
response: webhookMessageSchema.optional().describe("Set if webhook sent"),
|
|
1783
|
-
apiKeyId: z__namespace.
|
|
1784
|
+
apiKeyId: z__namespace.int32().describe("Used Api Key for the webhook"),
|
|
1784
1785
|
updated: z__namespace.iso.datetime().describe("last updated time"),
|
|
1785
1786
|
created: z__namespace.iso.datetime().describe("Creation Date")
|
|
1786
1787
|
});
|