@structured-id/proto 0.11.0 → 0.12.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 +8 -0
- package/dist/generated/sid/v1/account/account.d.ts +26 -12
- package/dist/generated/sid/v1/account/account.js +44 -48
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.client.d.ts +10 -8
- package/dist/generated/sid/v1/identity/identity.client.js +5 -4
- package/dist/generated/sid/v1/identity/identity.client.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +144 -111
- package/dist/generated/sid/v1/identity/identity.js +206 -264
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +10 -0
- package/dist/generated/sid/v1/ids/ids.js +5 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.11.0...typescript-proto-v0.12.0) (2026-11-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **ids:** identity and account reference identifiers ([c5c419b](https://github.com/structured-id/sdk/commit/c5c419bb353e9654b78e6b2eafe5eca947f237d6)), closes [#58](https://github.com/structured-id/sdk/issues/58)
|
|
9
|
+
* **ids:** identity and account reference identifiers ([#59](https://github.com/structured-id/sdk/issues/59)) ([c5c419b](https://github.com/structured-id/sdk/commit/c5c419bb353e9654b78e6b2eafe5eca947f237d6))
|
|
10
|
+
|
|
3
11
|
## [0.11.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.10.0...typescript-proto-v0.11.0) (2026-11-05)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -6,8 +6,10 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
8
|
import { ProfileEmail } from "../identity/identity.js";
|
|
9
|
+
import { ProfileEmailId } from "../ids/ids.js";
|
|
9
10
|
import { EmailLabel } from "../identity/identity.js";
|
|
10
11
|
import { ProfilePhone } from "../identity/identity.js";
|
|
12
|
+
import { ProfilePhoneId } from "../ids/ids.js";
|
|
11
13
|
import { PhoneLabel } from "../identity/identity.js";
|
|
12
14
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
13
15
|
/**
|
|
@@ -565,18 +567,22 @@ export interface AddPhoneRequest {
|
|
|
565
567
|
*/
|
|
566
568
|
export interface RemovePhoneRequest {
|
|
567
569
|
/**
|
|
568
|
-
*
|
|
570
|
+
* The phone to remove (`ProfilePhone.id`) of the caller's own Profile.
|
|
571
|
+
*
|
|
572
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 2
|
|
569
573
|
*/
|
|
570
|
-
phoneId
|
|
574
|
+
phoneId?: ProfilePhoneId;
|
|
571
575
|
}
|
|
572
576
|
/**
|
|
573
577
|
* @generated from protobuf message sid.v1.account.UpdatePhoneRequest
|
|
574
578
|
*/
|
|
575
579
|
export interface UpdatePhoneRequest {
|
|
576
580
|
/**
|
|
577
|
-
*
|
|
581
|
+
* The phone to update (`ProfilePhone.id`) of the caller's own Profile.
|
|
582
|
+
*
|
|
583
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 7
|
|
578
584
|
*/
|
|
579
|
-
phoneId
|
|
585
|
+
phoneId?: ProfilePhoneId;
|
|
580
586
|
/**
|
|
581
587
|
* @generated from protobuf field: optional sid.v1.identity.PhoneLabel label = 2
|
|
582
588
|
*/
|
|
@@ -603,9 +609,11 @@ export interface UpdatePhoneRequest {
|
|
|
603
609
|
*/
|
|
604
610
|
export interface SetPrimaryPhoneRequest {
|
|
605
611
|
/**
|
|
606
|
-
*
|
|
612
|
+
* The phone to make primary (`ProfilePhone.id`).
|
|
613
|
+
*
|
|
614
|
+
* @generated from protobuf field: sid.v1.ids.ProfilePhoneId phone_id = 2
|
|
607
615
|
*/
|
|
608
|
-
phoneId
|
|
616
|
+
phoneId?: ProfilePhoneId;
|
|
609
617
|
}
|
|
610
618
|
/**
|
|
611
619
|
* @generated from protobuf message sid.v1.account.ListPhonesResponse
|
|
@@ -642,18 +650,22 @@ export interface AddEmailRequest {
|
|
|
642
650
|
*/
|
|
643
651
|
export interface RemoveEmailRequest {
|
|
644
652
|
/**
|
|
645
|
-
*
|
|
653
|
+
* The email to remove (`ProfileEmail.id`) of the caller's own Profile.
|
|
654
|
+
*
|
|
655
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 2
|
|
646
656
|
*/
|
|
647
|
-
emailId
|
|
657
|
+
emailId?: ProfileEmailId;
|
|
648
658
|
}
|
|
649
659
|
/**
|
|
650
660
|
* @generated from protobuf message sid.v1.account.UpdateEmailRequest
|
|
651
661
|
*/
|
|
652
662
|
export interface UpdateEmailRequest {
|
|
653
663
|
/**
|
|
654
|
-
*
|
|
664
|
+
* The email to update (`ProfileEmail.id`) of the caller's own Profile.
|
|
665
|
+
*
|
|
666
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 4
|
|
655
667
|
*/
|
|
656
|
-
emailId
|
|
668
|
+
emailId?: ProfileEmailId;
|
|
657
669
|
/**
|
|
658
670
|
* @generated from protobuf field: optional sid.v1.identity.EmailLabel label = 2
|
|
659
671
|
*/
|
|
@@ -668,9 +680,11 @@ export interface UpdateEmailRequest {
|
|
|
668
680
|
*/
|
|
669
681
|
export interface SetPrimaryEmailRequest {
|
|
670
682
|
/**
|
|
671
|
-
*
|
|
683
|
+
* The email to make primary (`ProfileEmail.id`).
|
|
684
|
+
*
|
|
685
|
+
* @generated from protobuf field: sid.v1.ids.ProfileEmailId email_id = 2
|
|
672
686
|
*/
|
|
673
|
-
emailId
|
|
687
|
+
emailId?: ProfileEmailId;
|
|
674
688
|
}
|
|
675
689
|
/**
|
|
676
690
|
* @generated from protobuf message sid.v1.account.ListEmailsResponse
|
|
@@ -9,8 +9,10 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
10
10
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
11
11
|
import { ProfileEmail } from "../identity/identity.js";
|
|
12
|
+
import { ProfileEmailId } from "../ids/ids.js";
|
|
12
13
|
import { EmailLabel } from "../identity/identity.js";
|
|
13
14
|
import { ProfilePhone } from "../identity/identity.js";
|
|
15
|
+
import { ProfilePhoneId } from "../ids/ids.js";
|
|
14
16
|
import { PhoneLabel } from "../identity/identity.js";
|
|
15
17
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
16
18
|
/**
|
|
@@ -2034,12 +2036,11 @@ export const AddPhoneRequest = new AddPhoneRequest$Type();
|
|
|
2034
2036
|
class RemovePhoneRequest$Type extends MessageType {
|
|
2035
2037
|
constructor() {
|
|
2036
2038
|
super("sid.v1.account.RemovePhoneRequest", [
|
|
2037
|
-
{ no:
|
|
2039
|
+
{ no: 2, name: "phone_id", kind: "message", T: () => ProfilePhoneId }
|
|
2038
2040
|
]);
|
|
2039
2041
|
}
|
|
2040
2042
|
create(value) {
|
|
2041
2043
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2042
|
-
message.phoneId = "";
|
|
2043
2044
|
if (value !== undefined)
|
|
2044
2045
|
reflectionMergePartial(this, message, value);
|
|
2045
2046
|
return message;
|
|
@@ -2049,8 +2050,8 @@ class RemovePhoneRequest$Type extends MessageType {
|
|
|
2049
2050
|
while (reader.pos < end) {
|
|
2050
2051
|
let [fieldNo, wireType] = reader.tag();
|
|
2051
2052
|
switch (fieldNo) {
|
|
2052
|
-
case /*
|
|
2053
|
-
message.phoneId = reader.
|
|
2053
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 2:
|
|
2054
|
+
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2054
2055
|
break;
|
|
2055
2056
|
default:
|
|
2056
2057
|
let u = options.readUnknownField;
|
|
@@ -2064,9 +2065,9 @@ class RemovePhoneRequest$Type extends MessageType {
|
|
|
2064
2065
|
return message;
|
|
2065
2066
|
}
|
|
2066
2067
|
internalBinaryWrite(message, writer, options) {
|
|
2067
|
-
/*
|
|
2068
|
-
if (message.phoneId
|
|
2069
|
-
writer.tag(
|
|
2068
|
+
/* sid.v1.ids.ProfilePhoneId phone_id = 2; */
|
|
2069
|
+
if (message.phoneId)
|
|
2070
|
+
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2070
2071
|
let u = options.writeUnknownFields;
|
|
2071
2072
|
if (u !== false)
|
|
2072
2073
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2081,7 +2082,7 @@ export const RemovePhoneRequest = new RemovePhoneRequest$Type();
|
|
|
2081
2082
|
class UpdatePhoneRequest$Type extends MessageType {
|
|
2082
2083
|
constructor() {
|
|
2083
2084
|
super("sid.v1.account.UpdatePhoneRequest", [
|
|
2084
|
-
{ no:
|
|
2085
|
+
{ no: 7, name: "phone_id", kind: "message", T: () => ProfilePhoneId },
|
|
2085
2086
|
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.PhoneLabel", PhoneLabel, "PHONE_LABEL_"] },
|
|
2086
2087
|
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2087
2088
|
{ no: 4, name: "can_receive_sms", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -2091,7 +2092,6 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2091
2092
|
}
|
|
2092
2093
|
create(value) {
|
|
2093
2094
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2094
|
-
message.phoneId = "";
|
|
2095
2095
|
if (value !== undefined)
|
|
2096
2096
|
reflectionMergePartial(this, message, value);
|
|
2097
2097
|
return message;
|
|
@@ -2101,8 +2101,8 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2101
2101
|
while (reader.pos < end) {
|
|
2102
2102
|
let [fieldNo, wireType] = reader.tag();
|
|
2103
2103
|
switch (fieldNo) {
|
|
2104
|
-
case /*
|
|
2105
|
-
message.phoneId = reader.
|
|
2104
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 7:
|
|
2105
|
+
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2106
2106
|
break;
|
|
2107
2107
|
case /* optional sid.v1.identity.PhoneLabel label */ 2:
|
|
2108
2108
|
message.label = reader.int32();
|
|
@@ -2131,9 +2131,6 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2131
2131
|
return message;
|
|
2132
2132
|
}
|
|
2133
2133
|
internalBinaryWrite(message, writer, options) {
|
|
2134
|
-
/* string phone_id = 1; */
|
|
2135
|
-
if (message.phoneId !== "")
|
|
2136
|
-
writer.tag(1, WireType.LengthDelimited).string(message.phoneId);
|
|
2137
2134
|
/* optional sid.v1.identity.PhoneLabel label = 2; */
|
|
2138
2135
|
if (message.label !== undefined)
|
|
2139
2136
|
writer.tag(2, WireType.Varint).int32(message.label);
|
|
@@ -2149,6 +2146,9 @@ class UpdatePhoneRequest$Type extends MessageType {
|
|
|
2149
2146
|
/* optional bool can_receive_voice = 6; */
|
|
2150
2147
|
if (message.canReceiveVoice !== undefined)
|
|
2151
2148
|
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,12 +2163,11 @@ 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: 2, name: "phone_id", kind: "message", T: () => ProfilePhoneId }
|
|
2167
2167
|
]);
|
|
2168
2168
|
}
|
|
2169
2169
|
create(value) {
|
|
2170
2170
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2171
|
-
message.phoneId = "";
|
|
2172
2171
|
if (value !== undefined)
|
|
2173
2172
|
reflectionMergePartial(this, message, value);
|
|
2174
2173
|
return message;
|
|
@@ -2178,8 +2177,8 @@ class SetPrimaryPhoneRequest$Type extends MessageType {
|
|
|
2178
2177
|
while (reader.pos < end) {
|
|
2179
2178
|
let [fieldNo, wireType] = reader.tag();
|
|
2180
2179
|
switch (fieldNo) {
|
|
2181
|
-
case /*
|
|
2182
|
-
message.phoneId = reader.
|
|
2180
|
+
case /* sid.v1.ids.ProfilePhoneId phone_id */ 2:
|
|
2181
|
+
message.phoneId = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.phoneId);
|
|
2183
2182
|
break;
|
|
2184
2183
|
default:
|
|
2185
2184
|
let u = options.readUnknownField;
|
|
@@ -2193,9 +2192,9 @@ class SetPrimaryPhoneRequest$Type extends MessageType {
|
|
|
2193
2192
|
return message;
|
|
2194
2193
|
}
|
|
2195
2194
|
internalBinaryWrite(message, writer, options) {
|
|
2196
|
-
/*
|
|
2197
|
-
if (message.phoneId
|
|
2198
|
-
writer.tag(
|
|
2195
|
+
/* sid.v1.ids.ProfilePhoneId phone_id = 2; */
|
|
2196
|
+
if (message.phoneId)
|
|
2197
|
+
ProfilePhoneId.internalBinaryWrite(message.phoneId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2199
2198
|
let u = options.writeUnknownFields;
|
|
2200
2199
|
if (u !== false)
|
|
2201
2200
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2327,12 +2326,11 @@ export const AddEmailRequest = new AddEmailRequest$Type();
|
|
|
2327
2326
|
class RemoveEmailRequest$Type extends MessageType {
|
|
2328
2327
|
constructor() {
|
|
2329
2328
|
super("sid.v1.account.RemoveEmailRequest", [
|
|
2330
|
-
{ no:
|
|
2329
|
+
{ no: 2, name: "email_id", kind: "message", T: () => ProfileEmailId }
|
|
2331
2330
|
]);
|
|
2332
2331
|
}
|
|
2333
2332
|
create(value) {
|
|
2334
2333
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2335
|
-
message.emailId = "";
|
|
2336
2334
|
if (value !== undefined)
|
|
2337
2335
|
reflectionMergePartial(this, message, value);
|
|
2338
2336
|
return message;
|
|
@@ -2342,8 +2340,8 @@ class RemoveEmailRequest$Type extends MessageType {
|
|
|
2342
2340
|
while (reader.pos < end) {
|
|
2343
2341
|
let [fieldNo, wireType] = reader.tag();
|
|
2344
2342
|
switch (fieldNo) {
|
|
2345
|
-
case /*
|
|
2346
|
-
message.emailId = reader.
|
|
2343
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 2:
|
|
2344
|
+
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2347
2345
|
break;
|
|
2348
2346
|
default:
|
|
2349
2347
|
let u = options.readUnknownField;
|
|
@@ -2357,9 +2355,9 @@ class RemoveEmailRequest$Type extends MessageType {
|
|
|
2357
2355
|
return message;
|
|
2358
2356
|
}
|
|
2359
2357
|
internalBinaryWrite(message, writer, options) {
|
|
2360
|
-
/*
|
|
2361
|
-
if (message.emailId
|
|
2362
|
-
writer.tag(
|
|
2358
|
+
/* sid.v1.ids.ProfileEmailId email_id = 2; */
|
|
2359
|
+
if (message.emailId)
|
|
2360
|
+
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2363
2361
|
let u = options.writeUnknownFields;
|
|
2364
2362
|
if (u !== false)
|
|
2365
2363
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2374,14 +2372,13 @@ export const RemoveEmailRequest = new RemoveEmailRequest$Type();
|
|
|
2374
2372
|
class UpdateEmailRequest$Type extends MessageType {
|
|
2375
2373
|
constructor() {
|
|
2376
2374
|
super("sid.v1.account.UpdateEmailRequest", [
|
|
2377
|
-
{ no:
|
|
2375
|
+
{ no: 4, name: "email_id", kind: "message", T: () => ProfileEmailId },
|
|
2378
2376
|
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.EmailLabel", EmailLabel, "EMAIL_LABEL_"] },
|
|
2379
2377
|
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2380
2378
|
]);
|
|
2381
2379
|
}
|
|
2382
2380
|
create(value) {
|
|
2383
2381
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2384
|
-
message.emailId = "";
|
|
2385
2382
|
if (value !== undefined)
|
|
2386
2383
|
reflectionMergePartial(this, message, value);
|
|
2387
2384
|
return message;
|
|
@@ -2391,8 +2388,8 @@ class UpdateEmailRequest$Type extends MessageType {
|
|
|
2391
2388
|
while (reader.pos < end) {
|
|
2392
2389
|
let [fieldNo, wireType] = reader.tag();
|
|
2393
2390
|
switch (fieldNo) {
|
|
2394
|
-
case /*
|
|
2395
|
-
message.emailId = reader.
|
|
2391
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 4:
|
|
2392
|
+
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2396
2393
|
break;
|
|
2397
2394
|
case /* optional sid.v1.identity.EmailLabel label */ 2:
|
|
2398
2395
|
message.label = reader.int32();
|
|
@@ -2412,15 +2409,15 @@ class UpdateEmailRequest$Type extends MessageType {
|
|
|
2412
2409
|
return message;
|
|
2413
2410
|
}
|
|
2414
2411
|
internalBinaryWrite(message, writer, options) {
|
|
2415
|
-
/* string email_id = 1; */
|
|
2416
|
-
if (message.emailId !== "")
|
|
2417
|
-
writer.tag(1, WireType.LengthDelimited).string(message.emailId);
|
|
2418
2412
|
/* optional sid.v1.identity.EmailLabel label = 2; */
|
|
2419
2413
|
if (message.label !== undefined)
|
|
2420
2414
|
writer.tag(2, WireType.Varint).int32(message.label);
|
|
2421
2415
|
/* optional string custom_label = 3; */
|
|
2422
2416
|
if (message.customLabel !== undefined)
|
|
2423
2417
|
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();
|
|
2424
2421
|
let u = options.writeUnknownFields;
|
|
2425
2422
|
if (u !== false)
|
|
2426
2423
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2435,12 +2432,11 @@ export const UpdateEmailRequest = new UpdateEmailRequest$Type();
|
|
|
2435
2432
|
class SetPrimaryEmailRequest$Type extends MessageType {
|
|
2436
2433
|
constructor() {
|
|
2437
2434
|
super("sid.v1.account.SetPrimaryEmailRequest", [
|
|
2438
|
-
{ no:
|
|
2435
|
+
{ no: 2, name: "email_id", kind: "message", T: () => ProfileEmailId }
|
|
2439
2436
|
]);
|
|
2440
2437
|
}
|
|
2441
2438
|
create(value) {
|
|
2442
2439
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2443
|
-
message.emailId = "";
|
|
2444
2440
|
if (value !== undefined)
|
|
2445
2441
|
reflectionMergePartial(this, message, value);
|
|
2446
2442
|
return message;
|
|
@@ -2450,8 +2446,8 @@ class SetPrimaryEmailRequest$Type extends MessageType {
|
|
|
2450
2446
|
while (reader.pos < end) {
|
|
2451
2447
|
let [fieldNo, wireType] = reader.tag();
|
|
2452
2448
|
switch (fieldNo) {
|
|
2453
|
-
case /*
|
|
2454
|
-
message.emailId = reader.
|
|
2449
|
+
case /* sid.v1.ids.ProfileEmailId email_id */ 2:
|
|
2450
|
+
message.emailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.emailId);
|
|
2455
2451
|
break;
|
|
2456
2452
|
default:
|
|
2457
2453
|
let u = options.readUnknownField;
|
|
@@ -2465,9 +2461,9 @@ class SetPrimaryEmailRequest$Type extends MessageType {
|
|
|
2465
2461
|
return message;
|
|
2466
2462
|
}
|
|
2467
2463
|
internalBinaryWrite(message, writer, options) {
|
|
2468
|
-
/*
|
|
2469
|
-
if (message.emailId
|
|
2470
|
-
writer.tag(
|
|
2464
|
+
/* sid.v1.ids.ProfileEmailId email_id = 2; */
|
|
2465
|
+
if (message.emailId)
|
|
2466
|
+
ProfileEmailId.internalBinaryWrite(message.emailId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2471
2467
|
let u = options.writeUnknownFields;
|
|
2472
2468
|
if (u !== false)
|
|
2473
2469
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2548,14 +2544,14 @@ export const AccountService = new ServiceType("sid.v1.account.AccountService", [
|
|
|
2548
2544
|
{ name: "EnablePasswordless", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/passwordless/enable", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: Empty, O: Empty },
|
|
2549
2545
|
{ name: "DisablePasswordless", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/passwordless/disable", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: Empty, O: DisablePasswordlessResponse },
|
|
2550
2546
|
{ name: "AddPhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/phones", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddPhoneRequest, O: ProfilePhone },
|
|
2551
|
-
{ name: "RemovePhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/account/phones/{phone_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RemovePhoneRequest, O: Empty },
|
|
2552
|
-
{ name: "UpdatePhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/account/phones/{phone_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdatePhoneRequest, O: ProfilePhone },
|
|
2553
|
-
{ name: "SetPrimaryPhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/phones/{phone_id}/primary", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetPrimaryPhoneRequest, O: ProfilePhone },
|
|
2547
|
+
{ name: "RemovePhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/account/phones/{phone_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RemovePhoneRequest, O: Empty },
|
|
2548
|
+
{ name: "UpdatePhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/account/phones/{phone_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdatePhoneRequest, O: ProfilePhone },
|
|
2549
|
+
{ name: "SetPrimaryPhone", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/phones/{phone_id.value}/primary", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetPrimaryPhoneRequest, O: ProfilePhone },
|
|
2554
2550
|
{ name: "ListPhones", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/phones" } }, I: Empty, O: ListPhonesResponse },
|
|
2555
2551
|
{ name: "AddEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/emails", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddEmailRequest, O: ProfileEmail },
|
|
2556
|
-
{ name: "RemoveEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/account/emails/{email_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveEmailRequest, O: Empty },
|
|
2557
|
-
{ name: "UpdateEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/account/emails/{email_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateEmailRequest, O: ProfileEmail },
|
|
2558
|
-
{ name: "SetPrimaryEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/emails/{email_id}/primary", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetPrimaryEmailRequest, O: ProfileEmail },
|
|
2552
|
+
{ name: "RemoveEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/account/emails/{email_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveEmailRequest, O: Empty },
|
|
2553
|
+
{ name: "UpdateEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/account/emails/{email_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateEmailRequest, O: ProfileEmail },
|
|
2554
|
+
{ name: "SetPrimaryEmail", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/account/emails/{email_id.value}/primary", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetPrimaryEmailRequest, O: ProfileEmail },
|
|
2559
2555
|
{ name: "ListEmails", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/emails" } }, I: Empty, O: ListEmailsResponse }
|
|
2560
2556
|
]);
|
|
2561
2557
|
//# sourceMappingURL=account.js.map
|