@structured-id/proto 0.15.0 → 0.16.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
  3. package/dist/generated/sid/v1/admin/admin.js +55 -62
  4. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
  6. package/dist/generated/sid/v1/admin/branding.js +87 -98
  7. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
  9. package/dist/generated/sid/v1/admin/enrollment.js +109 -107
  10. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
  12. package/dist/generated/sid/v1/admin/flow.js +143 -155
  13. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/security.d.ts +11 -4
  15. package/dist/generated/sid/v1/admin/security.js +14 -14
  16. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  17. package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
  18. package/dist/generated/sid/v1/admin/sessions.js +27 -29
  19. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
  21. package/dist/generated/sid/v1/authn/auth.js +20 -20
  22. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  23. package/dist/generated/sid/v1/common/types.d.ts +29 -0
  24. package/dist/generated/sid/v1/common/types.js +47 -0
  25. package/dist/generated/sid/v1/common/types.js.map +1 -1
  26. package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
  27. package/dist/generated/sid/v1/federation/upstream.js +53 -59
  28. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  29. package/dist/generated/sid/v1/ids/ids.d.ts +8 -0
  30. package/dist/generated/sid/v1/ids/ids.js +4 -0
  31. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  32. package/dist/ip.d.ts +31 -0
  33. package/dist/ip.js +84 -0
  34. package/dist/ip.js.map +1 -0
  35. package/package.json +6 -2
@@ -9,6 +9,8 @@ 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 { Timestamp } from "../../../google/protobuf/timestamp.js";
12
+ import { ProjectId } from "../ids/ids.js";
13
+ import { BrandingConfigId } from "../ids/ids.js";
12
14
  /**
13
15
  * @generated from protobuf enum sid.v1.admin.BrandingStatus
14
16
  */
@@ -79,8 +81,8 @@ export var WcagLevel;
79
81
  class BrandingConfig$Type extends MessageType {
80
82
  constructor() {
81
83
  super("sid.v1.admin.BrandingConfig", [
82
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
83
- { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
84
+ { no: 1, name: "id", kind: "message", T: () => BrandingConfigId },
85
+ { no: 2, name: "project_id", kind: "message", T: () => ProjectId },
84
86
  { no: 3, name: "status", kind: "enum", T: () => ["sid.v1.admin.BrandingStatus", BrandingStatus, "BRANDING_STATUS_"] },
85
87
  { no: 4, name: "tokens", kind: "message", T: () => DesignTokens },
86
88
  { no: 5, name: "assets", kind: "message", T: () => BrandingAssets },
@@ -92,8 +94,6 @@ class BrandingConfig$Type extends MessageType {
92
94
  }
93
95
  create(value) {
94
96
  const message = globalThis.Object.create((this.messagePrototype));
95
- message.id = "";
96
- message.projectId = "";
97
97
  message.status = 0;
98
98
  if (value !== undefined)
99
99
  reflectionMergePartial(this, message, value);
@@ -104,11 +104,11 @@ class BrandingConfig$Type extends MessageType {
104
104
  while (reader.pos < end) {
105
105
  let [fieldNo, wireType] = reader.tag();
106
106
  switch (fieldNo) {
107
- case /* string id */ 1:
108
- message.id = reader.string();
107
+ case /* sid.v1.ids.BrandingConfigId id */ 1:
108
+ message.id = BrandingConfigId.internalBinaryRead(reader, reader.uint32(), options, message.id);
109
109
  break;
110
- case /* string project_id */ 2:
111
- message.projectId = reader.string();
110
+ case /* sid.v1.ids.ProjectId project_id */ 2:
111
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
112
112
  break;
113
113
  case /* sid.v1.admin.BrandingStatus status */ 3:
114
114
  message.status = reader.int32();
@@ -143,12 +143,12 @@ class BrandingConfig$Type extends MessageType {
143
143
  return message;
144
144
  }
145
145
  internalBinaryWrite(message, writer, options) {
146
- /* string id = 1; */
147
- if (message.id !== "")
148
- writer.tag(1, WireType.LengthDelimited).string(message.id);
149
- /* string project_id = 2; */
150
- if (message.projectId !== "")
151
- writer.tag(2, WireType.LengthDelimited).string(message.projectId);
146
+ /* sid.v1.ids.BrandingConfigId id = 1; */
147
+ if (message.id)
148
+ BrandingConfigId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
149
+ /* sid.v1.ids.ProjectId project_id = 2; */
150
+ if (message.projectId)
151
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
152
152
  /* sid.v1.admin.BrandingStatus status = 3; */
153
153
  if (message.status !== 0)
154
154
  writer.tag(3, WireType.Varint).int32(message.status);
@@ -846,12 +846,11 @@ export const ContrastCheck = new ContrastCheck$Type();
846
846
  class GetPublishedBrandingRequest$Type extends MessageType {
847
847
  constructor() {
848
848
  super("sid.v1.admin.GetPublishedBrandingRequest", [
849
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
849
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId }
850
850
  ]);
851
851
  }
852
852
  create(value) {
853
853
  const message = globalThis.Object.create((this.messagePrototype));
854
- message.projectId = "";
855
854
  if (value !== undefined)
856
855
  reflectionMergePartial(this, message, value);
857
856
  return message;
@@ -861,8 +860,8 @@ class GetPublishedBrandingRequest$Type extends MessageType {
861
860
  while (reader.pos < end) {
862
861
  let [fieldNo, wireType] = reader.tag();
863
862
  switch (fieldNo) {
864
- case /* string project_id */ 1:
865
- message.projectId = reader.string();
863
+ case /* sid.v1.ids.ProjectId project_id */ 1:
864
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
866
865
  break;
867
866
  default:
868
867
  let u = options.readUnknownField;
@@ -876,9 +875,9 @@ class GetPublishedBrandingRequest$Type extends MessageType {
876
875
  return message;
877
876
  }
878
877
  internalBinaryWrite(message, writer, options) {
879
- /* string project_id = 1; */
880
- if (message.projectId !== "")
881
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
878
+ /* sid.v1.ids.ProjectId project_id = 1; */
879
+ if (message.projectId)
880
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
882
881
  let u = options.writeUnknownFields;
883
882
  if (u !== false)
884
883
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -893,14 +892,12 @@ export const GetPublishedBrandingRequest = new GetPublishedBrandingRequest$Type(
893
892
  class GetBrandingConfigRequest$Type extends MessageType {
894
893
  constructor() {
895
894
  super("sid.v1.admin.GetBrandingConfigRequest", [
896
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
897
- { no: 2, name: "config_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
895
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
896
+ { no: 2, name: "config_id", kind: "message", T: () => BrandingConfigId }
898
897
  ]);
899
898
  }
900
899
  create(value) {
901
900
  const message = globalThis.Object.create((this.messagePrototype));
902
- message.projectId = "";
903
- message.configId = "";
904
901
  if (value !== undefined)
905
902
  reflectionMergePartial(this, message, value);
906
903
  return message;
@@ -910,11 +907,11 @@ class GetBrandingConfigRequest$Type extends MessageType {
910
907
  while (reader.pos < end) {
911
908
  let [fieldNo, wireType] = reader.tag();
912
909
  switch (fieldNo) {
913
- case /* string project_id */ 1:
914
- message.projectId = reader.string();
910
+ case /* sid.v1.ids.ProjectId project_id */ 1:
911
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
915
912
  break;
916
- case /* string config_id */ 2:
917
- message.configId = reader.string();
913
+ case /* sid.v1.ids.BrandingConfigId config_id */ 2:
914
+ message.configId = BrandingConfigId.internalBinaryRead(reader, reader.uint32(), options, message.configId);
918
915
  break;
919
916
  default:
920
917
  let u = options.readUnknownField;
@@ -928,12 +925,12 @@ class GetBrandingConfigRequest$Type extends MessageType {
928
925
  return message;
929
926
  }
930
927
  internalBinaryWrite(message, writer, options) {
931
- /* string project_id = 1; */
932
- if (message.projectId !== "")
933
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
934
- /* string config_id = 2; */
935
- if (message.configId !== "")
936
- writer.tag(2, WireType.LengthDelimited).string(message.configId);
928
+ /* sid.v1.ids.ProjectId project_id = 1; */
929
+ if (message.projectId)
930
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
931
+ /* sid.v1.ids.BrandingConfigId config_id = 2; */
932
+ if (message.configId)
933
+ BrandingConfigId.internalBinaryWrite(message.configId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
937
934
  let u = options.writeUnknownFields;
938
935
  if (u !== false)
939
936
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -948,12 +945,11 @@ export const GetBrandingConfigRequest = new GetBrandingConfigRequest$Type();
948
945
  class ListBrandingConfigsRequest$Type extends MessageType {
949
946
  constructor() {
950
947
  super("sid.v1.admin.ListBrandingConfigsRequest", [
951
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
948
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId }
952
949
  ]);
953
950
  }
954
951
  create(value) {
955
952
  const message = globalThis.Object.create((this.messagePrototype));
956
- message.projectId = "";
957
953
  if (value !== undefined)
958
954
  reflectionMergePartial(this, message, value);
959
955
  return message;
@@ -963,8 +959,8 @@ class ListBrandingConfigsRequest$Type extends MessageType {
963
959
  while (reader.pos < end) {
964
960
  let [fieldNo, wireType] = reader.tag();
965
961
  switch (fieldNo) {
966
- case /* string project_id */ 1:
967
- message.projectId = reader.string();
962
+ case /* sid.v1.ids.ProjectId project_id */ 1:
963
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
968
964
  break;
969
965
  default:
970
966
  let u = options.readUnknownField;
@@ -978,9 +974,9 @@ class ListBrandingConfigsRequest$Type extends MessageType {
978
974
  return message;
979
975
  }
980
976
  internalBinaryWrite(message, writer, options) {
981
- /* string project_id = 1; */
982
- if (message.projectId !== "")
983
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
977
+ /* sid.v1.ids.ProjectId project_id = 1; */
978
+ if (message.projectId)
979
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
984
980
  let u = options.writeUnknownFields;
985
981
  if (u !== false)
986
982
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1042,7 +1038,7 @@ export const ListBrandingConfigsResponse = new ListBrandingConfigsResponse$Type(
1042
1038
  class CreateBrandingConfigRequest$Type extends MessageType {
1043
1039
  constructor() {
1044
1040
  super("sid.v1.admin.CreateBrandingConfigRequest", [
1045
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1041
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1046
1042
  { no: 2, name: "tokens", kind: "message", T: () => DesignTokens },
1047
1043
  { no: 3, name: "assets", kind: "message", T: () => BrandingAssets },
1048
1044
  { no: 4, name: "dark_mode", kind: "message", T: () => DarkModeConfig },
@@ -1051,7 +1047,6 @@ class CreateBrandingConfigRequest$Type extends MessageType {
1051
1047
  }
1052
1048
  create(value) {
1053
1049
  const message = globalThis.Object.create((this.messagePrototype));
1054
- message.projectId = "";
1055
1050
  if (value !== undefined)
1056
1051
  reflectionMergePartial(this, message, value);
1057
1052
  return message;
@@ -1061,8 +1056,8 @@ class CreateBrandingConfigRequest$Type extends MessageType {
1061
1056
  while (reader.pos < end) {
1062
1057
  let [fieldNo, wireType] = reader.tag();
1063
1058
  switch (fieldNo) {
1064
- case /* string project_id */ 1:
1065
- message.projectId = reader.string();
1059
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1060
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1066
1061
  break;
1067
1062
  case /* sid.v1.admin.DesignTokens tokens */ 2:
1068
1063
  message.tokens = DesignTokens.internalBinaryRead(reader, reader.uint32(), options, message.tokens);
@@ -1088,9 +1083,9 @@ class CreateBrandingConfigRequest$Type extends MessageType {
1088
1083
  return message;
1089
1084
  }
1090
1085
  internalBinaryWrite(message, writer, options) {
1091
- /* string project_id = 1; */
1092
- if (message.projectId !== "")
1093
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1086
+ /* sid.v1.ids.ProjectId project_id = 1; */
1087
+ if (message.projectId)
1088
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1094
1089
  /* sid.v1.admin.DesignTokens tokens = 2; */
1095
1090
  if (message.tokens)
1096
1091
  DesignTokens.internalBinaryWrite(message.tokens, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -1117,8 +1112,8 @@ export const CreateBrandingConfigRequest = new CreateBrandingConfigRequest$Type(
1117
1112
  class UpdateBrandingConfigRequest$Type extends MessageType {
1118
1113
  constructor() {
1119
1114
  super("sid.v1.admin.UpdateBrandingConfigRequest", [
1120
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1121
- { no: 2, name: "config_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1115
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1116
+ { no: 2, name: "config_id", kind: "message", T: () => BrandingConfigId },
1122
1117
  { no: 3, name: "tokens", kind: "message", T: () => DesignTokens },
1123
1118
  { no: 4, name: "assets", kind: "message", T: () => BrandingAssets },
1124
1119
  { no: 5, name: "dark_mode", kind: "message", T: () => DarkModeConfig },
@@ -1127,8 +1122,6 @@ class UpdateBrandingConfigRequest$Type extends MessageType {
1127
1122
  }
1128
1123
  create(value) {
1129
1124
  const message = globalThis.Object.create((this.messagePrototype));
1130
- message.projectId = "";
1131
- message.configId = "";
1132
1125
  if (value !== undefined)
1133
1126
  reflectionMergePartial(this, message, value);
1134
1127
  return message;
@@ -1138,11 +1131,11 @@ class UpdateBrandingConfigRequest$Type extends MessageType {
1138
1131
  while (reader.pos < end) {
1139
1132
  let [fieldNo, wireType] = reader.tag();
1140
1133
  switch (fieldNo) {
1141
- case /* string project_id */ 1:
1142
- message.projectId = reader.string();
1134
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1135
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1143
1136
  break;
1144
- case /* string config_id */ 2:
1145
- message.configId = reader.string();
1137
+ case /* sid.v1.ids.BrandingConfigId config_id */ 2:
1138
+ message.configId = BrandingConfigId.internalBinaryRead(reader, reader.uint32(), options, message.configId);
1146
1139
  break;
1147
1140
  case /* sid.v1.admin.DesignTokens tokens */ 3:
1148
1141
  message.tokens = DesignTokens.internalBinaryRead(reader, reader.uint32(), options, message.tokens);
@@ -1168,12 +1161,12 @@ class UpdateBrandingConfigRequest$Type extends MessageType {
1168
1161
  return message;
1169
1162
  }
1170
1163
  internalBinaryWrite(message, writer, options) {
1171
- /* string project_id = 1; */
1172
- if (message.projectId !== "")
1173
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1174
- /* string config_id = 2; */
1175
- if (message.configId !== "")
1176
- writer.tag(2, WireType.LengthDelimited).string(message.configId);
1164
+ /* sid.v1.ids.ProjectId project_id = 1; */
1165
+ if (message.projectId)
1166
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1167
+ /* sid.v1.ids.BrandingConfigId config_id = 2; */
1168
+ if (message.configId)
1169
+ BrandingConfigId.internalBinaryWrite(message.configId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1177
1170
  /* sid.v1.admin.DesignTokens tokens = 3; */
1178
1171
  if (message.tokens)
1179
1172
  DesignTokens.internalBinaryWrite(message.tokens, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
@@ -1200,14 +1193,12 @@ export const UpdateBrandingConfigRequest = new UpdateBrandingConfigRequest$Type(
1200
1193
  class PublishBrandingConfigRequest$Type extends MessageType {
1201
1194
  constructor() {
1202
1195
  super("sid.v1.admin.PublishBrandingConfigRequest", [
1203
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1204
- { no: 2, name: "config_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1196
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1197
+ { no: 2, name: "config_id", kind: "message", T: () => BrandingConfigId }
1205
1198
  ]);
1206
1199
  }
1207
1200
  create(value) {
1208
1201
  const message = globalThis.Object.create((this.messagePrototype));
1209
- message.projectId = "";
1210
- message.configId = "";
1211
1202
  if (value !== undefined)
1212
1203
  reflectionMergePartial(this, message, value);
1213
1204
  return message;
@@ -1217,11 +1208,11 @@ class PublishBrandingConfigRequest$Type extends MessageType {
1217
1208
  while (reader.pos < end) {
1218
1209
  let [fieldNo, wireType] = reader.tag();
1219
1210
  switch (fieldNo) {
1220
- case /* string project_id */ 1:
1221
- message.projectId = reader.string();
1211
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1212
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1222
1213
  break;
1223
- case /* string config_id */ 2:
1224
- message.configId = reader.string();
1214
+ case /* sid.v1.ids.BrandingConfigId config_id */ 2:
1215
+ message.configId = BrandingConfigId.internalBinaryRead(reader, reader.uint32(), options, message.configId);
1225
1216
  break;
1226
1217
  default:
1227
1218
  let u = options.readUnknownField;
@@ -1235,12 +1226,12 @@ class PublishBrandingConfigRequest$Type extends MessageType {
1235
1226
  return message;
1236
1227
  }
1237
1228
  internalBinaryWrite(message, writer, options) {
1238
- /* string project_id = 1; */
1239
- if (message.projectId !== "")
1240
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1241
- /* string config_id = 2; */
1242
- if (message.configId !== "")
1243
- writer.tag(2, WireType.LengthDelimited).string(message.configId);
1229
+ /* sid.v1.ids.ProjectId project_id = 1; */
1230
+ if (message.projectId)
1231
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1232
+ /* sid.v1.ids.BrandingConfigId config_id = 2; */
1233
+ if (message.configId)
1234
+ BrandingConfigId.internalBinaryWrite(message.configId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1244
1235
  let u = options.writeUnknownFields;
1245
1236
  if (u !== false)
1246
1237
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1255,14 +1246,12 @@ export const PublishBrandingConfigRequest = new PublishBrandingConfigRequest$Typ
1255
1246
  class DeleteBrandingConfigRequest$Type extends MessageType {
1256
1247
  constructor() {
1257
1248
  super("sid.v1.admin.DeleteBrandingConfigRequest", [
1258
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1259
- { no: 2, name: "config_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1249
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1250
+ { no: 2, name: "config_id", kind: "message", T: () => BrandingConfigId }
1260
1251
  ]);
1261
1252
  }
1262
1253
  create(value) {
1263
1254
  const message = globalThis.Object.create((this.messagePrototype));
1264
- message.projectId = "";
1265
- message.configId = "";
1266
1255
  if (value !== undefined)
1267
1256
  reflectionMergePartial(this, message, value);
1268
1257
  return message;
@@ -1272,11 +1261,11 @@ class DeleteBrandingConfigRequest$Type extends MessageType {
1272
1261
  while (reader.pos < end) {
1273
1262
  let [fieldNo, wireType] = reader.tag();
1274
1263
  switch (fieldNo) {
1275
- case /* string project_id */ 1:
1276
- message.projectId = reader.string();
1264
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1265
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1277
1266
  break;
1278
- case /* string config_id */ 2:
1279
- message.configId = reader.string();
1267
+ case /* sid.v1.ids.BrandingConfigId config_id */ 2:
1268
+ message.configId = BrandingConfigId.internalBinaryRead(reader, reader.uint32(), options, message.configId);
1280
1269
  break;
1281
1270
  default:
1282
1271
  let u = options.readUnknownField;
@@ -1290,12 +1279,12 @@ class DeleteBrandingConfigRequest$Type extends MessageType {
1290
1279
  return message;
1291
1280
  }
1292
1281
  internalBinaryWrite(message, writer, options) {
1293
- /* string project_id = 1; */
1294
- if (message.projectId !== "")
1295
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1296
- /* string config_id = 2; */
1297
- if (message.configId !== "")
1298
- writer.tag(2, WireType.LengthDelimited).string(message.configId);
1282
+ /* sid.v1.ids.ProjectId project_id = 1; */
1283
+ if (message.projectId)
1284
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1285
+ /* sid.v1.ids.BrandingConfigId config_id = 2; */
1286
+ if (message.configId)
1287
+ BrandingConfigId.internalBinaryWrite(message.configId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1299
1288
  let u = options.writeUnknownFields;
1300
1289
  if (u !== false)
1301
1290
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1459,13 +1448,13 @@ export const ValidateContrastResponse = new ValidateContrastResponse$Type();
1459
1448
  * @generated ServiceType for protobuf service sid.v1.admin.BrandingService
1460
1449
  */
1461
1450
  export const BrandingService = new ServiceType("sid.v1.admin.BrandingService", [
1462
- { name: "GetPublishedBranding", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/branding" } }, I: GetPublishedBrandingRequest, O: BrandingConfig },
1463
- { name: "GetBrandingConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/branding/{config_id}" } }, I: GetBrandingConfigRequest, O: BrandingConfig },
1464
- { name: "ListBrandingConfigs", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/branding/configs" } }, I: ListBrandingConfigsRequest, O: ListBrandingConfigsResponse },
1465
- { name: "CreateBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/branding/configs", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateBrandingConfigRequest, O: BrandingConfig },
1466
- { name: "UpdateBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{project_id}/branding/{config_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateBrandingConfigRequest, O: BrandingConfig },
1467
- { name: "PublishBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/branding/{config_id}/publish", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: PublishBrandingConfigRequest, O: BrandingConfig },
1468
- { name: "DeleteBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id}/branding/{config_id}" }, "sid.v1.common.retry": { natural: "a config id is never reused, so a deleted config stays deleted: a repeat finds none and answers as the first; a published config is refused either way" } }, I: DeleteBrandingConfigRequest, O: Empty },
1451
+ { name: "GetPublishedBranding", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/branding" } }, I: GetPublishedBrandingRequest, O: BrandingConfig },
1452
+ { name: "GetBrandingConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/branding/{config_id.value}" } }, I: GetBrandingConfigRequest, O: BrandingConfig },
1453
+ { name: "ListBrandingConfigs", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/branding/configs" } }, I: ListBrandingConfigsRequest, O: ListBrandingConfigsResponse },
1454
+ { name: "CreateBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/branding/configs", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateBrandingConfigRequest, O: BrandingConfig },
1455
+ { name: "UpdateBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{project_id.value}/branding/{config_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateBrandingConfigRequest, O: BrandingConfig },
1456
+ { name: "PublishBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/branding/{config_id.value}/publish", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: PublishBrandingConfigRequest, O: BrandingConfig },
1457
+ { name: "DeleteBrandingConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id.value}/branding/{config_id.value}" }, "sid.v1.common.retry": { natural: "a config id is never reused, so a deleted config stays deleted: a repeat finds none and answers as the first; a published config is refused either way" } }, I: DeleteBrandingConfigRequest, O: Empty },
1469
1458
  { name: "ValidateContrast", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/branding/validate-contrast", body: "*" } }, I: ValidateContrastRequest, O: ValidateContrastResponse }
1470
1459
  ]);
1471
1460
  //# sourceMappingURL=branding.js.map