@structured-id/proto 0.13.0 → 0.15.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/CHANGELOG.md +15 -0
- package/dist/generated/sid/v1/account/account.d.ts +8 -8
- package/dist/generated/sid/v1/account/account.js +34 -34
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +4 -4
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
- package/dist/generated/sid/v1/admin/operations.js +32 -32
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
- package/dist/generated/sid/v1/admin/organizations.js +16 -16
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
- package/dist/generated/sid/v1/admin/provisioning.js +13 -13
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
- package/dist/generated/sid/v1/authn/auth.js +315 -315
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
- package/dist/generated/sid/v1/authn/flows.js +4 -4
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
- package/dist/generated/sid/v1/authn/native_session.js +5 -5
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
- package/dist/generated/sid/v1/authn/password_history.js +35 -35
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +229 -137
- package/dist/generated/sid/v1/authz/authz.js +404 -426
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
- package/dist/generated/sid/v1/authz/governance.js +65 -71
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/operation.d.ts +3 -3
- package/dist/generated/sid/v1/common/operation.js +13 -13
- package/dist/generated/sid/v1/common/operation.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
- package/dist/generated/sid/v1/federation/upstream.js +48 -48
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
- package/dist/generated/sid/v1/identity/identity.js +367 -367
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +16 -0
- package/dist/generated/sid/v1/ids/ids.js +8 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +115 -56
- package/dist/generated/sid/v1/machine/machine_user.js +260 -211
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
- package/dist/generated/sid/v1/machine/pat.js +41 -45
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
- package/dist/generated/sid/v1/projects/projects.js +293 -271
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.15.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.14.0...typescript-proto-v0.15.0) (2026-11-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **ids:** initial access token and PAT ids ([#78](https://github.com/structured-id/sdk/issues/78)) ([d86a949](https://github.com/structured-id/sdk/commit/d86a949632da8d593cdf1b43b94158f6633a4b86)), closes [#77](https://github.com/structured-id/sdk/issues/77)
|
|
9
|
+
* **ids:** store identifiers as 16-byte BLOBs in SQLite ([#80](https://github.com/structured-id/sdk/issues/80)) ([07fd7de](https://github.com/structured-id/sdk/commit/07fd7de1274b02078013eb736375b4433b6bb290)), closes [#79](https://github.com/structured-id/sdk/issues/79)
|
|
10
|
+
|
|
11
|
+
## [0.14.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.13.0...typescript-proto-v0.14.0) (2026-11-05)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **ids:** project, role, group, assignment, policy and request ids ([#70](https://github.com/structured-id/sdk/issues/70)) ([d92269c](https://github.com/structured-id/sdk/commit/d92269c8ec702f648d3179befc1eb0cc2401388a)), closes [#69](https://github.com/structured-id/sdk/issues/69)
|
|
17
|
+
|
|
3
18
|
## [0.13.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.12.0...typescript-proto-v0.13.0) (2026-11-05)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -280,11 +280,11 @@ export interface ListActivityEventsRequest {
|
|
|
280
280
|
/**
|
|
281
281
|
* Pagination.
|
|
282
282
|
*
|
|
283
|
-
* @generated from protobuf field: int32 page_size =
|
|
283
|
+
* @generated from protobuf field: int32 page_size = 7
|
|
284
284
|
*/
|
|
285
285
|
pageSize: number;
|
|
286
286
|
/**
|
|
287
|
-
* @generated from protobuf field: string page_token =
|
|
287
|
+
* @generated from protobuf field: string page_token = 8
|
|
288
288
|
*/
|
|
289
289
|
pageToken: string;
|
|
290
290
|
}
|
|
@@ -569,7 +569,7 @@ export interface RemovePhoneRequest {
|
|
|
569
569
|
/**
|
|
570
570
|
* The phone to remove (`ProfilePhone.id`) of the caller's own Profile.
|
|
571
571
|
*
|
|
572
|
-
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id =
|
|
572
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 1
|
|
573
573
|
*/
|
|
574
574
|
phoneId?: ProfilePhoneId;
|
|
575
575
|
}
|
|
@@ -580,7 +580,7 @@ export interface UpdatePhoneRequest {
|
|
|
580
580
|
/**
|
|
581
581
|
* The phone to update (`ProfilePhone.id`) of the caller's own Profile.
|
|
582
582
|
*
|
|
583
|
-
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id =
|
|
583
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 1
|
|
584
584
|
*/
|
|
585
585
|
phoneId?: ProfilePhoneId;
|
|
586
586
|
/**
|
|
@@ -611,7 +611,7 @@ export interface SetPrimaryPhoneRequest {
|
|
|
611
611
|
/**
|
|
612
612
|
* The phone to make primary (`ProfilePhone.id`).
|
|
613
613
|
*
|
|
614
|
-
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id =
|
|
614
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 1
|
|
615
615
|
*/
|
|
616
616
|
phoneId?: ProfilePhoneId;
|
|
617
617
|
}
|
|
@@ -652,7 +652,7 @@ export interface RemoveEmailRequest {
|
|
|
652
652
|
/**
|
|
653
653
|
* The email to remove (`ProfileEmail.id`) of the caller's own Profile.
|
|
654
654
|
*
|
|
655
|
-
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id =
|
|
655
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 1
|
|
656
656
|
*/
|
|
657
657
|
emailId?: ProfileEmailId;
|
|
658
658
|
}
|
|
@@ -663,7 +663,7 @@ export interface UpdateEmailRequest {
|
|
|
663
663
|
/**
|
|
664
664
|
* The email to update (`ProfileEmail.id`) of the caller's own Profile.
|
|
665
665
|
*
|
|
666
|
-
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id =
|
|
666
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 1
|
|
667
667
|
*/
|
|
668
668
|
emailId?: ProfileEmailId;
|
|
669
669
|
/**
|
|
@@ -682,7 +682,7 @@ export interface SetPrimaryEmailRequest {
|
|
|
682
682
|
/**
|
|
683
683
|
* The email to make primary (`ProfileEmail.id`).
|
|
684
684
|
*
|
|
685
|
-
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id =
|
|
685
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 1
|
|
686
686
|
*/
|
|
687
687
|
emailId?: ProfileEmailId;
|
|
688
688
|
}
|
|
@@ -865,8 +865,8 @@ class ListActivityEventsRequest$Type extends MessageType {
|
|
|
865
865
|
{ no: 4, name: "date_from", kind: "message", T: () => Timestamp },
|
|
866
866
|
{ no: 5, name: "date_to", kind: "message", T: () => Timestamp },
|
|
867
867
|
{ no: 6, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
868
|
-
{ no:
|
|
869
|
-
{ no:
|
|
868
|
+
{ no: 7, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
869
|
+
{ no: 8, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
870
870
|
]);
|
|
871
871
|
}
|
|
872
872
|
create(value) {
|
|
@@ -901,10 +901,10 @@ class ListActivityEventsRequest$Type extends MessageType {
|
|
|
901
901
|
case /* optional string search */ 6:
|
|
902
902
|
message.search = reader.string();
|
|
903
903
|
break;
|
|
904
|
-
case /* int32 page_size */
|
|
904
|
+
case /* int32 page_size */ 7:
|
|
905
905
|
message.pageSize = reader.int32();
|
|
906
906
|
break;
|
|
907
|
-
case /* string page_token */
|
|
907
|
+
case /* string page_token */ 8:
|
|
908
908
|
message.pageToken = reader.string();
|
|
909
909
|
break;
|
|
910
910
|
default:
|
|
@@ -937,12 +937,12 @@ class ListActivityEventsRequest$Type extends MessageType {
|
|
|
937
937
|
/* optional string search = 6; */
|
|
938
938
|
if (message.search !== undefined)
|
|
939
939
|
writer.tag(6, WireType.LengthDelimited).string(message.search);
|
|
940
|
-
/* int32 page_size =
|
|
940
|
+
/* int32 page_size = 7; */
|
|
941
941
|
if (message.pageSize !== 0)
|
|
942
|
-
writer.tag(
|
|
943
|
-
/* string page_token =
|
|
942
|
+
writer.tag(7, WireType.Varint).int32(message.pageSize);
|
|
943
|
+
/* string page_token = 8; */
|
|
944
944
|
if (message.pageToken !== "")
|
|
945
|
-
writer.tag(
|
|
945
|
+
writer.tag(8, WireType.LengthDelimited).string(message.pageToken);
|
|
946
946
|
let u = options.writeUnknownFields;
|
|
947
947
|
if (u !== false)
|
|
948
948
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2036,7 +2036,7 @@ export const AddPhoneRequest = new AddPhoneRequest$Type();
|
|
|
2036
2036
|
class RemovePhoneRequest$Type extends MessageType {
|
|
2037
2037
|
constructor() {
|
|
2038
2038
|
super("sid.v1.account.RemovePhoneRequest", [
|
|
2039
|
-
{ no:
|
|
2039
|
+
{ no: 1, name: "phone_id", kind: "message", T: () => ProfilePhoneId }
|
|
2040
2040
|
]);
|
|
2041
2041
|
}
|
|
2042
2042
|
create(value) {
|
|
@@ -2050,7 +2050,7 @@ class RemovePhoneRequest$Type extends MessageType {
|
|
|
2050
2050
|
while (reader.pos < end) {
|
|
2051
2051
|
let [fieldNo, wireType] = reader.tag();
|
|
2052
2052
|
switch (fieldNo) {
|
|
2053
|
-
case /* sid.v1.ids.ProfilePhoneId phone_id */
|
|
2053
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 1:
|
|
2054
2054
|
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2055
2055
|
break;
|
|
2056
2056
|
default:
|
|
@@ -2065,9 +2065,9 @@ class RemovePhoneRequest$Type extends MessageType {
|
|
|
2065
2065
|
return message;
|
|
2066
2066
|
}
|
|
2067
2067
|
internalBinaryWrite(message, writer, options) {
|
|
2068
|
-
/* sid.v1.ids.ProfilePhoneId phone_id =
|
|
2068
|
+
/* sid.v1.ids.ProfilePhoneId phone_id = 1; */
|
|
2069
2069
|
if (message.phoneId)
|
|
2070
|
-
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(
|
|
2070
|
+
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2071
2071
|
let u = options.writeUnknownFields;
|
|
2072
2072
|
if (u !== false)
|
|
2073
2073
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2082,7 +2082,7 @@ export const RemovePhoneRequest = new RemovePhoneRequest$Type();
|
|
|
2082
2082
|
class UpdatePhoneRequest$Type extends MessageType {
|
|
2083
2083
|
constructor() {
|
|
2084
2084
|
super("sid.v1.account.UpdatePhoneRequest", [
|
|
2085
|
-
{ no:
|
|
2085
|
+
{ no: 1, name: "phone_id", kind: "message", T: () => ProfilePhoneId },
|
|
2086
2086
|
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.PhoneLabel", PhoneLabel, "PHONE_LABEL_"] },
|
|
2087
2087
|
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2088
2088
|
{ no: 4, name: "can_receive_sms", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -2101,7 +2101,7 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2101
2101
|
while (reader.pos < end) {
|
|
2102
2102
|
let [fieldNo, wireType] = reader.tag();
|
|
2103
2103
|
switch (fieldNo) {
|
|
2104
|
-
case /* sid.v1.ids.ProfilePhoneId phone_id */
|
|
2104
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 1:
|
|
2105
2105
|
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2106
2106
|
break;
|
|
2107
2107
|
case /* optional sid.v1.identity.PhoneLabel label */ 2:
|
|
@@ -2131,6 +2131,9 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2131
2131
|
return message;
|
|
2132
2132
|
}
|
|
2133
2133
|
internalBinaryWrite(message, writer, options) {
|
|
2134
|
+
/* sid.v1.ids.ProfilePhoneId phone_id = 1; */
|
|
2135
|
+
if (message.phoneId)
|
|
2136
|
+
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2134
2137
|
/* optional sid.v1.identity.PhoneLabel label = 2; */
|
|
2135
2138
|
if (message.label !== undefined)
|
|
2136
2139
|
writer.tag(2, WireType.Varint).int32(message.label);
|
|
@@ -2146,9 +2149,6 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2146
2149
|
/* optional bool can_receive_voice = 6; */
|
|
2147
2150
|
if (message.canReceiveVoice !== undefined)
|
|
2148
2151
|
writer.tag(6, WireType.Varint).bool(message.canReceiveVoice);
|
|
2149
|
-
/* sid.v1.ids.ProfilePhoneId phone_id = 7; */
|
|
2150
|
-
if (message.phoneId)
|
|
2151
|
-
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
2152
2152
|
let u = options.writeUnknownFields;
|
|
2153
2153
|
if (u !== false)
|
|
2154
2154
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2163,7 +2163,7 @@ export const UpdatePhoneRequest = new UpdatePhoneRequest$Type();
|
|
|
2163
2163
|
class SetPrimaryPhoneRequest$Type extends MessageType {
|
|
2164
2164
|
constructor() {
|
|
2165
2165
|
super("sid.v1.account.SetPrimaryPhoneRequest", [
|
|
2166
|
-
{ no:
|
|
2166
|
+
{ no: 1, name: "phone_id", kind: "message", T: () => ProfilePhoneId }
|
|
2167
2167
|
]);
|
|
2168
2168
|
}
|
|
2169
2169
|
create(value) {
|
|
@@ -2177,7 +2177,7 @@ class SetPrimaryPhoneRequest$Type extends MessageType {
|
|
|
2177
2177
|
while (reader.pos < end) {
|
|
2178
2178
|
let [fieldNo, wireType] = reader.tag();
|
|
2179
2179
|
switch (fieldNo) {
|
|
2180
|
-
case /* sid.v1.ids.ProfilePhoneId phone_id */
|
|
2180
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 1:
|
|
2181
2181
|
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2182
2182
|
break;
|
|
2183
2183
|
default:
|
|
@@ -2192,9 +2192,9 @@ class SetPrimaryPhoneRequest$Type extends MessageType {
|
|
|
2192
2192
|
return message;
|
|
2193
2193
|
}
|
|
2194
2194
|
internalBinaryWrite(message, writer, options) {
|
|
2195
|
-
/* sid.v1.ids.ProfilePhoneId phone_id =
|
|
2195
|
+
/* sid.v1.ids.ProfilePhoneId phone_id = 1; */
|
|
2196
2196
|
if (message.phoneId)
|
|
2197
|
-
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(
|
|
2197
|
+
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2198
2198
|
let u = options.writeUnknownFields;
|
|
2199
2199
|
if (u !== false)
|
|
2200
2200
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2326,7 +2326,7 @@ export const AddEmailRequest = new AddEmailRequest$Type();
|
|
|
2326
2326
|
class RemoveEmailRequest$Type extends MessageType {
|
|
2327
2327
|
constructor() {
|
|
2328
2328
|
super("sid.v1.account.RemoveEmailRequest", [
|
|
2329
|
-
{ no:
|
|
2329
|
+
{ no: 1, name: "email_id", kind: "message", T: () => ProfileEmailId }
|
|
2330
2330
|
]);
|
|
2331
2331
|
}
|
|
2332
2332
|
create(value) {
|
|
@@ -2340,7 +2340,7 @@ class RemoveEmailRequest$Type extends MessageType {
|
|
|
2340
2340
|
while (reader.pos < end) {
|
|
2341
2341
|
let [fieldNo, wireType] = reader.tag();
|
|
2342
2342
|
switch (fieldNo) {
|
|
2343
|
-
case /* sid.v1.ids.ProfileEmailId email_id */
|
|
2343
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 1:
|
|
2344
2344
|
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2345
2345
|
break;
|
|
2346
2346
|
default:
|
|
@@ -2355,9 +2355,9 @@ class RemoveEmailRequest$Type extends MessageType {
|
|
|
2355
2355
|
return message;
|
|
2356
2356
|
}
|
|
2357
2357
|
internalBinaryWrite(message, writer, options) {
|
|
2358
|
-
/* sid.v1.ids.ProfileEmailId email_id =
|
|
2358
|
+
/* sid.v1.ids.ProfileEmailId email_id = 1; */
|
|
2359
2359
|
if (message.emailId)
|
|
2360
|
-
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(
|
|
2360
|
+
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2361
2361
|
let u = options.writeUnknownFields;
|
|
2362
2362
|
if (u !== false)
|
|
2363
2363
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2372,7 +2372,7 @@ export const RemoveEmailRequest = new RemoveEmailRequest$Type();
|
|
|
2372
2372
|
class UpdateEmailRequest$Type extends MessageType {
|
|
2373
2373
|
constructor() {
|
|
2374
2374
|
super("sid.v1.account.UpdateEmailRequest", [
|
|
2375
|
-
{ no:
|
|
2375
|
+
{ no: 1, name: "email_id", kind: "message", T: () => ProfileEmailId },
|
|
2376
2376
|
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.EmailLabel", EmailLabel, "EMAIL_LABEL_"] },
|
|
2377
2377
|
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2378
2378
|
]);
|
|
@@ -2388,7 +2388,7 @@ class UpdateEmailRequest$Type extends MessageType {
|
|
|
2388
2388
|
while (reader.pos < end) {
|
|
2389
2389
|
let [fieldNo, wireType] = reader.tag();
|
|
2390
2390
|
switch (fieldNo) {
|
|
2391
|
-
case /* sid.v1.ids.ProfileEmailId email_id */
|
|
2391
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 1:
|
|
2392
2392
|
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2393
2393
|
break;
|
|
2394
2394
|
case /* optional sid.v1.identity.EmailLabel label */ 2:
|
|
@@ -2409,15 +2409,15 @@ class UpdateEmailRequest$Type extends MessageType {
|
|
|
2409
2409
|
return message;
|
|
2410
2410
|
}
|
|
2411
2411
|
internalBinaryWrite(message, writer, options) {
|
|
2412
|
+
/* sid.v1.ids.ProfileEmailId email_id = 1; */
|
|
2413
|
+
if (message.emailId)
|
|
2414
|
+
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2412
2415
|
/* optional sid.v1.identity.EmailLabel label = 2; */
|
|
2413
2416
|
if (message.label !== undefined)
|
|
2414
2417
|
writer.tag(2, WireType.Varint).int32(message.label);
|
|
2415
2418
|
/* optional string custom_label = 3; */
|
|
2416
2419
|
if (message.customLabel !== undefined)
|
|
2417
2420
|
writer.tag(3, WireType.LengthDelimited).string(message.customLabel);
|
|
2418
|
-
/* sid.v1.ids.ProfileEmailId email_id = 4; */
|
|
2419
|
-
if (message.emailId)
|
|
2420
|
-
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2421
2421
|
let u = options.writeUnknownFields;
|
|
2422
2422
|
if (u !== false)
|
|
2423
2423
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2432,7 +2432,7 @@ export const UpdateEmailRequest = new UpdateEmailRequest$Type();
|
|
|
2432
2432
|
class SetPrimaryEmailRequest$Type extends MessageType {
|
|
2433
2433
|
constructor() {
|
|
2434
2434
|
super("sid.v1.account.SetPrimaryEmailRequest", [
|
|
2435
|
-
{ no:
|
|
2435
|
+
{ no: 1, name: "email_id", kind: "message", T: () => ProfileEmailId }
|
|
2436
2436
|
]);
|
|
2437
2437
|
}
|
|
2438
2438
|
create(value) {
|
|
@@ -2446,7 +2446,7 @@ class SetPrimaryEmailRequest$Type extends MessageType {
|
|
|
2446
2446
|
while (reader.pos < end) {
|
|
2447
2447
|
let [fieldNo, wireType] = reader.tag();
|
|
2448
2448
|
switch (fieldNo) {
|
|
2449
|
-
case /* sid.v1.ids.ProfileEmailId email_id */
|
|
2449
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 1:
|
|
2450
2450
|
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2451
2451
|
break;
|
|
2452
2452
|
default:
|
|
@@ -2461,9 +2461,9 @@ class SetPrimaryEmailRequest$Type extends MessageType {
|
|
|
2461
2461
|
return message;
|
|
2462
2462
|
}
|
|
2463
2463
|
internalBinaryWrite(message, writer, options) {
|
|
2464
|
-
/* sid.v1.ids.ProfileEmailId email_id =
|
|
2464
|
+
/* sid.v1.ids.ProfileEmailId email_id = 1; */
|
|
2465
2465
|
if (message.emailId)
|
|
2466
|
-
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(
|
|
2466
|
+
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2467
2467
|
let u = options.writeUnknownFields;
|
|
2468
2468
|
if (u !== false)
|
|
2469
2469
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|