@kusinta/iot-schema 0.1.0-beta.11 → 0.1.0-beta.13
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
CHANGED
|
@@ -67,10 +67,16 @@ export declare type AppTokenClaims = Message<"kusinta.iot.webrtc.v1.AppTokenClai
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Custom claims.
|
|
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.
|
|
70
76
|
*
|
|
71
|
-
* @generated from field: kusinta.iot.access.v1.Role
|
|
77
|
+
* @generated from field: repeated kusinta.iot.access.v1.Role roles = 6;
|
|
72
78
|
*/
|
|
73
|
-
|
|
79
|
+
roles: Role[];
|
|
74
80
|
};
|
|
75
81
|
|
|
76
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.
|