@kusinta/iot-schema 0.1.0-beta.12 → 0.1.0-beta.14
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/package.json +1 -1
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +19 -19
- package/src/kusinta/iot/connector/v1/connector_pb.js +10 -10
- package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +5 -5
- package/src/kusinta/iot/connector/v1/connector_service_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +8 -6
- package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +1 -1
package/package.json
CHANGED
|
@@ -216,9 +216,9 @@ export declare type GatewayError = Message<"kusinta.iot.connector.v1.GatewayErro
|
|
|
216
216
|
export declare const GatewayErrorSchema: GenMessage<GatewayError>;
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
* @generated from message kusinta.iot.connector.v1.
|
|
219
|
+
* @generated from message kusinta.iot.connector.v1.ConnectorCommandResult
|
|
220
220
|
*/
|
|
221
|
-
export declare type
|
|
221
|
+
export declare type ConnectorCommandResult = Message<"kusinta.iot.connector.v1.ConnectorCommandResult"> & {
|
|
222
222
|
/**
|
|
223
223
|
* @generated from field: string command_id = 1;
|
|
224
224
|
*/
|
|
@@ -241,15 +241,15 @@ export declare type CommandResult = Message<"kusinta.iot.connector.v1.CommandRes
|
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
245
|
-
* Use `create(
|
|
244
|
+
* Describes the message kusinta.iot.connector.v1.ConnectorCommandResult.
|
|
245
|
+
* Use `create(ConnectorCommandResultSchema)` to create a new message.
|
|
246
246
|
*/
|
|
247
|
-
export declare const
|
|
247
|
+
export declare const ConnectorCommandResultSchema: GenMessage<ConnectorCommandResult>;
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* @generated from message kusinta.iot.connector.v1.
|
|
250
|
+
* @generated from message kusinta.iot.connector.v1.SessionRequest
|
|
251
251
|
*/
|
|
252
|
-
export declare type
|
|
252
|
+
export declare type SessionRequest = Message<"kusinta.iot.connector.v1.SessionRequest"> & {
|
|
253
253
|
/**
|
|
254
254
|
* @generated from field: string message_id = 1;
|
|
255
255
|
*/
|
|
@@ -261,7 +261,7 @@ export declare type ConnectRequest = Message<"kusinta.iot.connector.v1.ConnectRe
|
|
|
261
261
|
sentAt?: Timestamp | undefined;
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
|
-
* @generated from oneof kusinta.iot.connector.v1.
|
|
264
|
+
* @generated from oneof kusinta.iot.connector.v1.SessionRequest.payload
|
|
265
265
|
*/
|
|
266
266
|
payload: {
|
|
267
267
|
/**
|
|
@@ -289,9 +289,9 @@ export declare type ConnectRequest = Message<"kusinta.iot.connector.v1.ConnectRe
|
|
|
289
289
|
case: "deviceRemoved";
|
|
290
290
|
} | {
|
|
291
291
|
/**
|
|
292
|
-
* @generated from field: kusinta.iot.connector.v1.
|
|
292
|
+
* @generated from field: kusinta.iot.connector.v1.ConnectorCommandResult command_result = 7;
|
|
293
293
|
*/
|
|
294
|
-
value:
|
|
294
|
+
value: ConnectorCommandResult;
|
|
295
295
|
case: "commandResult";
|
|
296
296
|
} | {
|
|
297
297
|
/**
|
|
@@ -303,15 +303,15 @@ export declare type ConnectRequest = Message<"kusinta.iot.connector.v1.ConnectRe
|
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
307
|
-
* Use `create(
|
|
306
|
+
* Describes the message kusinta.iot.connector.v1.SessionRequest.
|
|
307
|
+
* Use `create(SessionRequestSchema)` to create a new message.
|
|
308
308
|
*/
|
|
309
|
-
export declare const
|
|
309
|
+
export declare const SessionRequestSchema: GenMessage<SessionRequest>;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* @generated from message kusinta.iot.connector.v1.
|
|
312
|
+
* @generated from message kusinta.iot.connector.v1.SessionResponse
|
|
313
313
|
*/
|
|
314
|
-
export declare type
|
|
314
|
+
export declare type SessionResponse = Message<"kusinta.iot.connector.v1.SessionResponse"> & {
|
|
315
315
|
/**
|
|
316
316
|
* @generated from field: string message_id = 1;
|
|
317
317
|
*/
|
|
@@ -323,7 +323,7 @@ export declare type ConnectResponse = Message<"kusinta.iot.connector.v1.ConnectR
|
|
|
323
323
|
sentAt?: Timestamp | undefined;
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
* @generated from oneof kusinta.iot.connector.v1.
|
|
326
|
+
* @generated from oneof kusinta.iot.connector.v1.SessionResponse.payload
|
|
327
327
|
*/
|
|
328
328
|
payload: {
|
|
329
329
|
/**
|
|
@@ -359,8 +359,8 @@ export declare type ConnectResponse = Message<"kusinta.iot.connector.v1.ConnectR
|
|
|
359
359
|
};
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
363
|
-
* Use `create(
|
|
362
|
+
* Describes the message kusinta.iot.connector.v1.SessionResponse.
|
|
363
|
+
* Use `create(SessionResponseSchema)` to create a new message.
|
|
364
364
|
*/
|
|
365
|
-
export declare const
|
|
365
|
+
export declare const SessionResponseSchema: GenMessage<SessionResponse>;
|
|
366
366
|
|
|
@@ -14,7 +14,7 @@ import { file_kusinta_iot_webrtc_v1_command } from "../../webrtc/v1/command_pb.j
|
|
|
14
14
|
* Describes the file kusinta/iot/connector/v1/connector.proto.
|
|
15
15
|
*/
|
|
16
16
|
export const file_kusinta_iot_connector_v1_connector = /*@__PURE__*/
|
|
17
|
-
fileDesc("
|
|
17
|
+
fileDesc("CihrdXNpbnRhL2lvdC9jb25uZWN0b3IvdjEvY29ubmVjdG9yLnByb3RvEhhrdXNpbnRhLmlvdC5jb25uZWN0b3IudjEi5QEKDUNvbm5lY3RvckluZm8SOgoMY29ubmVjdG9yX2lkGAEgASgLMiQua3V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iYua3VzaW50YS5pb3QuY29ubmVjdG9yLnYxLkhhbmRzaGFrZUFja0gAEj4KCXN1YnNjcmliZRgFIAEoCzIpLmt1c2ludGEuaW90LmNvbm5lY3Rvci52MS5TdWJzY3JpYmVEZXZpY2VIABJCCgt1bnN1YnNjcmliZRgGIAEoCzIrLmt1c2ludGEuaW90LmNvbm5lY3Rvci52MS5VbnN1YnNjcmliZURldmljZUgAEjcKBWVycm9yGAcgASgLMiYua3VzaW50YS5pb3QuY29ubmVjdG9yLnYxLkdhdGV3YXlFcnJvckgAEj8KD2V4ZWN1dGVfY29tbWFuZBgIIAEoCzIkLmt1c2ludGEuaW90LndlYnJ0Yy52MS5EZXZpY2VDb21tYW5kSABCCQoHcGF5bG9hZEoECAQQBUICSAFiBnByb3RvMw", [file_google_protobuf_timestamp, file_kusinta_iot_common_v1_types, file_kusinta_iot_identity_v1_identity, file_kusinta_iot_device_v1_descriptor, file_kusinta_iot_device_v1_property_update, file_kusinta_iot_webrtc_v1_command]);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Describes the message kusinta.iot.connector.v1.ConnectorInfo.
|
|
@@ -80,23 +80,23 @@ export const GatewayErrorSchema = /*@__PURE__*/
|
|
|
80
80
|
messageDesc(file_kusinta_iot_connector_v1_connector, 8);
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
84
|
-
* Use `create(
|
|
83
|
+
* Describes the message kusinta.iot.connector.v1.ConnectorCommandResult.
|
|
84
|
+
* Use `create(ConnectorCommandResultSchema)` to create a new message.
|
|
85
85
|
*/
|
|
86
|
-
export const
|
|
86
|
+
export const ConnectorCommandResultSchema = /*@__PURE__*/
|
|
87
87
|
messageDesc(file_kusinta_iot_connector_v1_connector, 9);
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
91
|
-
* Use `create(
|
|
90
|
+
* Describes the message kusinta.iot.connector.v1.SessionRequest.
|
|
91
|
+
* Use `create(SessionRequestSchema)` to create a new message.
|
|
92
92
|
*/
|
|
93
|
-
export const
|
|
93
|
+
export const SessionRequestSchema = /*@__PURE__*/
|
|
94
94
|
messageDesc(file_kusinta_iot_connector_v1_connector, 10);
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Describes the message kusinta.iot.connector.v1.
|
|
98
|
-
* Use `create(
|
|
97
|
+
* Describes the message kusinta.iot.connector.v1.SessionResponse.
|
|
98
|
+
* Use `create(SessionResponseSchema)` to create a new message.
|
|
99
99
|
*/
|
|
100
|
-
export const
|
|
100
|
+
export const SessionResponseSchema = /*@__PURE__*/
|
|
101
101
|
messageDesc(file_kusinta_iot_connector_v1_connector, 11);
|
|
102
102
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import type {
|
|
6
|
+
import type { SessionRequestSchema, SessionResponseSchema } from "./connector_pb.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file kusinta/iot/connector/v1/connector_service.proto.
|
|
@@ -18,12 +18,12 @@ export declare const file_kusinta_iot_connector_v1_connector_service: GenFile;
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const ConnectorGatewayService: GenService<{
|
|
20
20
|
/**
|
|
21
|
-
* @generated from rpc kusinta.iot.connector.v1.ConnectorGatewayService.
|
|
21
|
+
* @generated from rpc kusinta.iot.connector.v1.ConnectorGatewayService.Session
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
session: {
|
|
24
24
|
methodKind: "bidi_streaming";
|
|
25
|
-
input: typeof
|
|
26
|
-
output: typeof
|
|
25
|
+
input: typeof SessionRequestSchema;
|
|
26
|
+
output: typeof SessionResponseSchema;
|
|
27
27
|
},
|
|
28
28
|
}>;
|
|
29
29
|
|
|
@@ -9,7 +9,7 @@ import { file_kusinta_iot_connector_v1_connector } from "./connector_pb.js";
|
|
|
9
9
|
* Describes the file kusinta/iot/connector/v1/connector_service.proto.
|
|
10
10
|
*/
|
|
11
11
|
export const file_kusinta_iot_connector_v1_connector_service = /*@__PURE__*/
|
|
12
|
-
fileDesc("
|
|
12
|
+
fileDesc("CjBrdXNpbnRhL2lvdC9jb25uZWN0b3IvdjEvY29ubmVjdG9yX3NlcnZpY2UucHJvdG8SGGt1c2ludGEuaW90LmNvbm5lY3Rvci52MTJ9ChdDb25uZWN0b3JHYXRld2F5U2VydmljZRJiCgdTZXNzaW9uEigua3VzaW50YS5pb3QuY29ubmVjdG9yLnYxLlNlc3Npb25SZXF1ZXN0Gikua3VzaW50YS5pb3QuY29ubmVjdG9yLnYxLlNlc3Npb25SZXNwb25zZSgBMAFCAkgBYgZwcm90bzM", [file_kusinta_iot_connector_v1_connector]);
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* ConnectorGatewayService: connector dials the gateway on startup.
|
|
@@ -67,14 +67,16 @@ export declare type AppTokenClaims = Message<"kusinta.iot.webrtc.v1.AppTokenClai
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Custom claims.
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
70
|
+
* A user may hold several roles at once (e.g. resident + gateway admin), so
|
|
71
|
+
* this is a list. Carried in the JWT as an array of enum NAME strings
|
|
72
|
+
* (e.g. ["ROLE_RESIDENT", "ROLE_GATEWAY_ADMIN"]), matching proto3 canonical
|
|
73
|
+
* JSON enum encoding — not integer values. This keeps the claim
|
|
74
|
+
* self-describing and aligns with text-typed role storage in
|
|
75
|
+
* mykusinta-api-server.
|
|
74
76
|
*
|
|
75
|
-
* @generated from field: kusinta.iot.access.v1.Role
|
|
77
|
+
* @generated from field: repeated kusinta.iot.access.v1.Role roles = 6;
|
|
76
78
|
*/
|
|
77
|
-
|
|
79
|
+
roles: Role[];
|
|
78
80
|
};
|
|
79
81
|
|
|
80
82
|
/**
|
|
@@ -10,7 +10,7 @@ import { file_kusinta_iot_access_v1_roles } from "../../access/v1/roles_pb.js";
|
|
|
10
10
|
* Describes the file kusinta/iot/webrtc/v1/app_token.proto.
|
|
11
11
|
*/
|
|
12
12
|
export const file_kusinta_iot_webrtc_v1_app_token = /*@__PURE__*/
|
|
13
|
-
fileDesc("
|
|
13
|
+
fileDesc("CiVrdXNpbnRhL2lvdC93ZWJydGMvdjEvYXBwX3Rva2VuLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEitQEKDkFwcFRva2VuQ2xhaW1zEgsKA2lzcxgBIAEoCRILCgNhdWQYAiABKAkSCwoDc3ViGAMgASgJEicKA2lhdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoDZXhwGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIqCgVyb2xlcxgGIAMoDjIbLmt1c2ludGEuaW90LmFjY2Vzcy52MS5Sb2xlQgJIAWIGcHJvdG8z", [file_google_protobuf_timestamp, file_kusinta_iot_access_v1_roles]);
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Describes the message kusinta.iot.webrtc.v1.AppTokenClaims.
|
|
@@ -237,7 +237,7 @@ export declare const CommandErrorSchema: GenMessage<CommandError>;
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* CommandResult travels gateway → Flutter app (GatewayMessage) and
|
|
240
|
-
* connector → gateway (
|
|
240
|
+
* connector → gateway (SessionRequest via connector.proto import).
|
|
241
241
|
*
|
|
242
242
|
* @generated from message kusinta.iot.webrtc.v1.CommandResult
|
|
243
243
|
*/
|