@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.
- package/CHANGELOG.md +9 -0
- package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
- package/dist/generated/sid/v1/admin/admin.js +55 -62
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
- package/dist/generated/sid/v1/admin/branding.js +87 -98
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
- package/dist/generated/sid/v1/admin/enrollment.js +109 -107
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
- package/dist/generated/sid/v1/admin/flow.js +143 -155
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.d.ts +11 -4
- package/dist/generated/sid/v1/admin/security.js +14 -14
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
- package/dist/generated/sid/v1/admin/sessions.js +27 -29
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
- package/dist/generated/sid/v1/authn/auth.js +20 -20
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/common/types.d.ts +29 -0
- package/dist/generated/sid/v1/common/types.js +47 -0
- package/dist/generated/sid/v1/common/types.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
- package/dist/generated/sid/v1/federation/upstream.js +53 -59
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +8 -0
- package/dist/generated/sid/v1/ids/ids.js +4 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/ip.d.ts +31 -0
- package/dist/ip.js +84 -0
- package/dist/ip.js.map +1 -0
- package/package.json +6 -2
|
@@ -35,6 +35,25 @@ export interface SortOrder {
|
|
|
35
35
|
*/
|
|
36
36
|
descending: boolean;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* One IP host address as API data, such as the address a stored session or
|
|
40
|
+
* audit record holds. It is never a client's statement about its own
|
|
41
|
+
* address. A field of this type that is absent means the address is unknown
|
|
42
|
+
* or was not recorded.
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf message sid.v1.common.IpAddress
|
|
45
|
+
*/
|
|
46
|
+
export interface IpAddress {
|
|
47
|
+
/**
|
|
48
|
+
* Exactly 4 bytes (IPv4) or 16 bytes (IPv6) in network byte order; the
|
|
49
|
+
* length is the family. Empty or any other length is invalid. Zero
|
|
50
|
+
* addresses are addresses, not absence. An IPv4-mapped IPv6 address
|
|
51
|
+
* (RFC 4291 section 2.5.5.2) is 16 bytes and stays IPv6.
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf field: bytes value = 1
|
|
54
|
+
*/
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
38
57
|
declare class TimeRange$Type extends MessageType<TimeRange> {
|
|
39
58
|
constructor();
|
|
40
59
|
create(value?: PartialMessage<TimeRange>): TimeRange;
|
|
@@ -55,4 +74,14 @@ declare class SortOrder$Type extends MessageType<SortOrder> {
|
|
|
55
74
|
* @generated MessageType for protobuf message sid.v1.common.SortOrder
|
|
56
75
|
*/
|
|
57
76
|
export declare const SortOrder: SortOrder$Type;
|
|
77
|
+
declare class IpAddress$Type extends MessageType<IpAddress> {
|
|
78
|
+
constructor();
|
|
79
|
+
create(value?: PartialMessage<IpAddress>): IpAddress;
|
|
80
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IpAddress): IpAddress;
|
|
81
|
+
internalBinaryWrite(message: IpAddress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated MessageType for protobuf message sid.v1.common.IpAddress
|
|
85
|
+
*/
|
|
86
|
+
export declare const IpAddress: IpAddress$Type;
|
|
58
87
|
export {};
|
|
@@ -111,4 +111,51 @@ class SortOrder$Type extends MessageType {
|
|
|
111
111
|
* @generated MessageType for protobuf message sid.v1.common.SortOrder
|
|
112
112
|
*/
|
|
113
113
|
export const SortOrder = new SortOrder$Type();
|
|
114
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
115
|
+
class IpAddress$Type extends MessageType {
|
|
116
|
+
constructor() {
|
|
117
|
+
super("sid.v1.common.IpAddress", [
|
|
118
|
+
{ no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
119
|
+
]);
|
|
120
|
+
}
|
|
121
|
+
create(value) {
|
|
122
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
123
|
+
message.value = new Uint8Array(0);
|
|
124
|
+
if (value !== undefined)
|
|
125
|
+
reflectionMergePartial(this, message, value);
|
|
126
|
+
return message;
|
|
127
|
+
}
|
|
128
|
+
internalBinaryRead(reader, length, options, target) {
|
|
129
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
130
|
+
while (reader.pos < end) {
|
|
131
|
+
let [fieldNo, wireType] = reader.tag();
|
|
132
|
+
switch (fieldNo) {
|
|
133
|
+
case /* bytes value */ 1:
|
|
134
|
+
message.value = reader.bytes();
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
let u = options.readUnknownField;
|
|
138
|
+
if (u === "throw")
|
|
139
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
140
|
+
let d = reader.skip(wireType);
|
|
141
|
+
if (u !== false)
|
|
142
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return message;
|
|
146
|
+
}
|
|
147
|
+
internalBinaryWrite(message, writer, options) {
|
|
148
|
+
/* bytes value = 1; */
|
|
149
|
+
if (message.value.length)
|
|
150
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.value);
|
|
151
|
+
let u = options.writeUnknownFields;
|
|
152
|
+
if (u !== false)
|
|
153
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
154
|
+
return writer;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @generated MessageType for protobuf message sid.v1.common.IpAddress
|
|
159
|
+
*/
|
|
160
|
+
export const IpAddress = new IpAddress$Type();
|
|
114
161
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AA+BlE,2FAA2F;AAC3F,MAAM,cAAe,SAAQ,WAAsB;IAC/C;QACI,KAAK,CAAC,yBAAyB,EAAE;YAC7B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE;YAC5D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE;SAC7D,CAAC,CAAC;IACP,CAAC;IACD,MAAM,CAAC,KAAiC;QACpC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,C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// @generated from protobuf file \"sid/v1/common/types.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\n/**\n * Reusable time range filter.\n *\n * @generated from protobuf message sid.v1.common.TimeRange\n */\nexport interface TimeRange {\n /**\n * @generated from protobuf field: optional google.protobuf.Timestamp from = 1\n */\n from?: Timestamp;\n /**\n * @generated from protobuf field: optional google.protobuf.Timestamp to = 2\n */\n to?: Timestamp;\n}\n/**\n * Sort specification for list queries.\n *\n * @generated from protobuf message sid.v1.common.SortOrder\n */\nexport interface SortOrder {\n /**\n * @generated from protobuf field: string field = 1\n */\n field: string; // Field name to sort by\n /**\n * @generated from protobuf field: bool descending = 2\n */\n descending: boolean; // true = DESC, false = ASC (default)\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass TimeRange$Type extends MessageType<TimeRange> {\n constructor() {\n super(\"sid.v1.common.TimeRange\", [\n { no: 1, name: \"from\", kind: \"message\", T: () => Timestamp },\n { no: 2, name: \"to\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<TimeRange>): TimeRange {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<TimeRange>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeRange): TimeRange {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* optional google.protobuf.Timestamp from */ 1:\n message.from = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.from);\n break;\n case /* optional google.protobuf.Timestamp to */ 2:\n message.to = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.to);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: TimeRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* optional google.protobuf.Timestamp from = 1; */\n if (message.from)\n Timestamp.internalBinaryWrite(message.from, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* optional google.protobuf.Timestamp to = 2; */\n if (message.to)\n Timestamp.internalBinaryWrite(message.to, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.TimeRange\n */\nexport const TimeRange = new TimeRange$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SortOrder$Type extends MessageType<SortOrder> {\n constructor() {\n super(\"sid.v1.common.SortOrder\", [\n { no: 1, name: \"field\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"descending\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<SortOrder>): SortOrder {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.field = \"\";\n message.descending = false;\n if (value !== undefined)\n reflectionMergePartial<SortOrder>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SortOrder): SortOrder {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string field */ 1:\n message.field = reader.string();\n break;\n case /* bool descending */ 2:\n message.descending = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: SortOrder, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string field = 1; */\n if (message.field !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.field);\n /* bool descending = 2; */\n if (message.descending !== false)\n writer.tag(2, WireType.Varint).bool(message.descending);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.SortOrder\n */\nexport const SortOrder = new SortOrder$Type();\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAkDlE,2FAA2F;AAC3F,MAAM,cAAe,SAAQ,WAAsB;IAC/C;QACI,KAAK,CAAC,yBAAyB,EAAE;YAC7B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,E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,MAAM;gBACV;oBACI,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;oBACjC,IAAI,CAAC,KAAK,OAAO;wBACb,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,iBAAiB,OAAO,eAAe,QAAQ,SAAS,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACxG,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAC9B,IAAI,CAAC,KAAK,KAAK;wBACX,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxG,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,mBAAmB,CAAC,OAAkB,EAAE,MAAqB,EAAE,OAA2B;QACtF,sBAAsB;QACtB,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM;YACpB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,cAAc,EAAE,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/types.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\n/**\n * Reusable time range filter.\n *\n * @generated from protobuf message sid.v1.common.TimeRange\n */\nexport interface TimeRange {\n /**\n * @generated from protobuf field: optional google.protobuf.Timestamp from = 1\n */\n from?: Timestamp;\n /**\n * @generated from protobuf field: optional google.protobuf.Timestamp to = 2\n */\n to?: Timestamp;\n}\n/**\n * Sort specification for list queries.\n *\n * @generated from protobuf message sid.v1.common.SortOrder\n */\nexport interface SortOrder {\n /**\n * @generated from protobuf field: string field = 1\n */\n field: string; // Field name to sort by\n /**\n * @generated from protobuf field: bool descending = 2\n */\n descending: boolean; // true = DESC, false = ASC (default)\n}\n/**\n * One IP host address as API data, such as the address a stored session or\n * audit record holds. It is never a client's statement about its own\n * address. A field of this type that is absent means the address is unknown\n * or was not recorded.\n *\n * @generated from protobuf message sid.v1.common.IpAddress\n */\nexport interface IpAddress {\n /**\n * Exactly 4 bytes (IPv4) or 16 bytes (IPv6) in network byte order; the\n * length is the family. Empty or any other length is invalid. Zero\n * addresses are addresses, not absence. An IPv4-mapped IPv6 address\n * (RFC 4291 section 2.5.5.2) is 16 bytes and stays IPv6.\n *\n * @generated from protobuf field: bytes value = 1\n */\n value: Uint8Array;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass TimeRange$Type extends MessageType<TimeRange> {\n constructor() {\n super(\"sid.v1.common.TimeRange\", [\n { no: 1, name: \"from\", kind: \"message\", T: () => Timestamp },\n { no: 2, name: \"to\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<TimeRange>): TimeRange {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<TimeRange>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeRange): TimeRange {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* optional google.protobuf.Timestamp from */ 1:\n message.from = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.from);\n break;\n case /* optional google.protobuf.Timestamp to */ 2:\n message.to = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.to);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: TimeRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* optional google.protobuf.Timestamp from = 1; */\n if (message.from)\n Timestamp.internalBinaryWrite(message.from, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* optional google.protobuf.Timestamp to = 2; */\n if (message.to)\n Timestamp.internalBinaryWrite(message.to, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.TimeRange\n */\nexport const TimeRange = new TimeRange$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SortOrder$Type extends MessageType<SortOrder> {\n constructor() {\n super(\"sid.v1.common.SortOrder\", [\n { no: 1, name: \"field\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"descending\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<SortOrder>): SortOrder {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.field = \"\";\n message.descending = false;\n if (value !== undefined)\n reflectionMergePartial<SortOrder>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SortOrder): SortOrder {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string field */ 1:\n message.field = reader.string();\n break;\n case /* bool descending */ 2:\n message.descending = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: SortOrder, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string field = 1; */\n if (message.field !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.field);\n /* bool descending = 2; */\n if (message.descending !== false)\n writer.tag(2, WireType.Varint).bool(message.descending);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.SortOrder\n */\nexport const SortOrder = new SortOrder$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass IpAddress$Type extends MessageType<IpAddress> {\n constructor() {\n super(\"sid.v1.common.IpAddress\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<IpAddress>): IpAddress {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.value = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<IpAddress>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IpAddress): IpAddress {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes value */ 1:\n message.value = reader.bytes();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: IpAddress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes value = 1; */\n if (message.value.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.IpAddress\n */\nexport const IpAddress = new IpAddress$Type();\n"]}
|
|
@@ -5,7 +5,9 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
5
5
|
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
|
+
import { SessionId } from "../ids/ids.js";
|
|
8
9
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
10
|
+
import { UpstreamProviderId } from "../ids/ids.js";
|
|
9
11
|
/**
|
|
10
12
|
* UpstreamProvider represents a configured upstream identity provider.
|
|
11
13
|
* NOTE: client_secret is write-only and NEVER included in responses.
|
|
@@ -14,9 +16,11 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
|
14
16
|
*/
|
|
15
17
|
export interface UpstreamProvider {
|
|
16
18
|
/**
|
|
17
|
-
*
|
|
19
|
+
* The provider.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId id = 1
|
|
18
22
|
*/
|
|
19
|
-
id
|
|
23
|
+
id?: UpstreamProviderId;
|
|
20
24
|
/**
|
|
21
25
|
* @generated from protobuf field: string name = 2
|
|
22
26
|
*/
|
|
@@ -91,9 +95,11 @@ export interface UpstreamProvider {
|
|
|
91
95
|
*/
|
|
92
96
|
export interface EnabledProviderInfo {
|
|
93
97
|
/**
|
|
94
|
-
*
|
|
98
|
+
* The provider, as the sign-in page names it to start brokered sign-in.
|
|
99
|
+
*
|
|
100
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId id = 1
|
|
95
101
|
*/
|
|
96
|
-
id
|
|
102
|
+
id?: UpstreamProviderId;
|
|
97
103
|
/**
|
|
98
104
|
* @generated from protobuf field: string name = 2
|
|
99
105
|
*/
|
|
@@ -186,18 +192,22 @@ export interface UpstreamProviderResponse {
|
|
|
186
192
|
*/
|
|
187
193
|
export interface GetUpstreamProviderRequest {
|
|
188
194
|
/**
|
|
189
|
-
*
|
|
195
|
+
* Provider to read.
|
|
196
|
+
*
|
|
197
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId provider_id = 1
|
|
190
198
|
*/
|
|
191
|
-
providerId
|
|
199
|
+
providerId?: UpstreamProviderId;
|
|
192
200
|
}
|
|
193
201
|
/**
|
|
194
202
|
* @generated from protobuf message sid.v1.federation.UpdateUpstreamProviderRequest
|
|
195
203
|
*/
|
|
196
204
|
export interface UpdateUpstreamProviderRequest {
|
|
197
205
|
/**
|
|
198
|
-
*
|
|
206
|
+
* Provider to update.
|
|
207
|
+
*
|
|
208
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId provider_id = 1
|
|
199
209
|
*/
|
|
200
|
-
providerId
|
|
210
|
+
providerId?: UpstreamProviderId;
|
|
201
211
|
/**
|
|
202
212
|
* @generated from protobuf field: optional string name = 2
|
|
203
213
|
*/
|
|
@@ -260,9 +270,11 @@ export interface UpdateUpstreamProviderRequest {
|
|
|
260
270
|
*/
|
|
261
271
|
export interface DeleteUpstreamProviderRequest {
|
|
262
272
|
/**
|
|
263
|
-
*
|
|
273
|
+
* Provider to delete.
|
|
274
|
+
*
|
|
275
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId provider_id = 1
|
|
264
276
|
*/
|
|
265
|
-
providerId
|
|
277
|
+
providerId?: UpstreamProviderId;
|
|
266
278
|
}
|
|
267
279
|
/**
|
|
268
280
|
* @generated from protobuf message sid.v1.federation.DeleteUpstreamProviderResponse
|
|
@@ -302,9 +314,11 @@ export interface ListEnabledProvidersResponse {
|
|
|
302
314
|
*/
|
|
303
315
|
export interface InitiateUpstreamAuthRequest {
|
|
304
316
|
/**
|
|
305
|
-
*
|
|
317
|
+
* Provider to sign in with.
|
|
318
|
+
*
|
|
319
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId provider_id = 1
|
|
306
320
|
*/
|
|
307
|
-
providerId
|
|
321
|
+
providerId?: UpstreamProviderId;
|
|
308
322
|
/**
|
|
309
323
|
* @generated from protobuf field: string redirect_uri = 2
|
|
310
324
|
*/
|
|
@@ -328,9 +342,11 @@ export interface InitiateUpstreamAuthResponse {
|
|
|
328
342
|
*/
|
|
329
343
|
export interface HandleUpstreamCallbackRequest {
|
|
330
344
|
/**
|
|
331
|
-
*
|
|
345
|
+
* Provider the callback returns from.
|
|
346
|
+
*
|
|
347
|
+
* @generated from protobuf field: sid.v1.ids.UpstreamProviderId provider_id = 1
|
|
332
348
|
*/
|
|
333
|
-
providerId
|
|
349
|
+
providerId?: UpstreamProviderId;
|
|
334
350
|
/**
|
|
335
351
|
* @generated from protobuf field: string code = 2
|
|
336
352
|
*/
|
|
@@ -372,9 +388,11 @@ export interface HandleUpstreamCallbackResponse {
|
|
|
372
388
|
*/
|
|
373
389
|
export interface UpstreamAuthSuccess {
|
|
374
390
|
/**
|
|
375
|
-
*
|
|
391
|
+
* The session the brokered sign-in opened.
|
|
392
|
+
*
|
|
393
|
+
* @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
|
|
376
394
|
*/
|
|
377
|
-
sessionId
|
|
395
|
+
sessionId?: SessionId;
|
|
378
396
|
/**
|
|
379
397
|
* Seconds until the delivered credential expires. The session's credential
|
|
380
398
|
* is delivered as for sid.v1.OpaqueLoginFinishResponse, never in this
|
|
@@ -7,7 +7,9 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
8
8
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { SessionId } from "../ids/ids.js";
|
|
10
11
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
12
|
+
import { UpstreamProviderId } from "../ids/ids.js";
|
|
11
13
|
/**
|
|
12
14
|
* Protocol used by the upstream identity provider.
|
|
13
15
|
*
|
|
@@ -68,7 +70,7 @@ export var TrustCategory;
|
|
|
68
70
|
class UpstreamProvider$Type extends MessageType {
|
|
69
71
|
constructor() {
|
|
70
72
|
super("sid.v1.federation.UpstreamProvider", [
|
|
71
|
-
{ no: 1, name: "id", kind: "
|
|
73
|
+
{ no: 1, name: "id", kind: "message", T: () => UpstreamProviderId },
|
|
72
74
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
73
75
|
{ no: 3, name: "protocol", kind: "enum", T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
74
76
|
{ no: 4, name: "trust_category", kind: "enum", T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
@@ -88,7 +90,6 @@ class UpstreamProvider$Type extends MessageType {
|
|
|
88
90
|
}
|
|
89
91
|
create(value) {
|
|
90
92
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
91
|
-
message.id = "";
|
|
92
93
|
message.name = "";
|
|
93
94
|
message.protocol = 0;
|
|
94
95
|
message.trustCategory = 0;
|
|
@@ -111,8 +112,8 @@ class UpstreamProvider$Type extends MessageType {
|
|
|
111
112
|
while (reader.pos < end) {
|
|
112
113
|
let [fieldNo, wireType] = reader.tag();
|
|
113
114
|
switch (fieldNo) {
|
|
114
|
-
case /*
|
|
115
|
-
message.id = reader.
|
|
115
|
+
case /* sid.v1.ids.UpstreamProviderId id */ 1:
|
|
116
|
+
message.id = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
116
117
|
break;
|
|
117
118
|
case /* string name */ 2:
|
|
118
119
|
message.name = reader.string();
|
|
@@ -171,9 +172,9 @@ class UpstreamProvider$Type extends MessageType {
|
|
|
171
172
|
return message;
|
|
172
173
|
}
|
|
173
174
|
internalBinaryWrite(message, writer, options) {
|
|
174
|
-
/*
|
|
175
|
-
if (message.id
|
|
176
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
175
|
+
/* sid.v1.ids.UpstreamProviderId id = 1; */
|
|
176
|
+
if (message.id)
|
|
177
|
+
UpstreamProviderId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
177
178
|
/* string name = 2; */
|
|
178
179
|
if (message.name !== "")
|
|
179
180
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -233,7 +234,7 @@ export const UpstreamProvider = new UpstreamProvider$Type();
|
|
|
233
234
|
class EnabledProviderInfo$Type extends MessageType {
|
|
234
235
|
constructor() {
|
|
235
236
|
super("sid.v1.federation.EnabledProviderInfo", [
|
|
236
|
-
{ no: 1, name: "id", kind: "
|
|
237
|
+
{ no: 1, name: "id", kind: "message", T: () => UpstreamProviderId },
|
|
237
238
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
238
239
|
{ no: 3, name: "protocol", kind: "enum", T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
239
240
|
{ no: 4, name: "trust_category", kind: "enum", T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
@@ -243,7 +244,6 @@ class EnabledProviderInfo$Type extends MessageType {
|
|
|
243
244
|
}
|
|
244
245
|
create(value) {
|
|
245
246
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
246
|
-
message.id = "";
|
|
247
247
|
message.name = "";
|
|
248
248
|
message.protocol = 0;
|
|
249
249
|
message.trustCategory = 0;
|
|
@@ -258,8 +258,8 @@ class EnabledProviderInfo$Type extends MessageType {
|
|
|
258
258
|
while (reader.pos < end) {
|
|
259
259
|
let [fieldNo, wireType] = reader.tag();
|
|
260
260
|
switch (fieldNo) {
|
|
261
|
-
case /*
|
|
262
|
-
message.id = reader.
|
|
261
|
+
case /* sid.v1.ids.UpstreamProviderId id */ 1:
|
|
262
|
+
message.id = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
263
263
|
break;
|
|
264
264
|
case /* string name */ 2:
|
|
265
265
|
message.name = reader.string();
|
|
@@ -288,9 +288,9 @@ class EnabledProviderInfo$Type extends MessageType {
|
|
|
288
288
|
return message;
|
|
289
289
|
}
|
|
290
290
|
internalBinaryWrite(message, writer, options) {
|
|
291
|
-
/*
|
|
292
|
-
if (message.id
|
|
293
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
291
|
+
/* sid.v1.ids.UpstreamProviderId id = 1; */
|
|
292
|
+
if (message.id)
|
|
293
|
+
UpstreamProviderId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
294
294
|
/* string name = 2; */
|
|
295
295
|
if (message.name !== "")
|
|
296
296
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -509,12 +509,11 @@ export const UpstreamProviderResponse = new UpstreamProviderResponse$Type();
|
|
|
509
509
|
class GetUpstreamProviderRequest$Type extends MessageType {
|
|
510
510
|
constructor() {
|
|
511
511
|
super("sid.v1.federation.GetUpstreamProviderRequest", [
|
|
512
|
-
{ no: 1, name: "provider_id", kind: "
|
|
512
|
+
{ no: 1, name: "provider_id", kind: "message", T: () => UpstreamProviderId }
|
|
513
513
|
]);
|
|
514
514
|
}
|
|
515
515
|
create(value) {
|
|
516
516
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
517
|
-
message.providerId = "";
|
|
518
517
|
if (value !== undefined)
|
|
519
518
|
reflectionMergePartial(this, message, value);
|
|
520
519
|
return message;
|
|
@@ -524,8 +523,8 @@ class GetUpstreamProviderRequest$Type extends MessageType {
|
|
|
524
523
|
while (reader.pos < end) {
|
|
525
524
|
let [fieldNo, wireType] = reader.tag();
|
|
526
525
|
switch (fieldNo) {
|
|
527
|
-
case /*
|
|
528
|
-
message.providerId = reader.
|
|
526
|
+
case /* sid.v1.ids.UpstreamProviderId provider_id */ 1:
|
|
527
|
+
message.providerId = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.providerId);
|
|
529
528
|
break;
|
|
530
529
|
default:
|
|
531
530
|
let u = options.readUnknownField;
|
|
@@ -539,9 +538,9 @@ class GetUpstreamProviderRequest$Type extends MessageType {
|
|
|
539
538
|
return message;
|
|
540
539
|
}
|
|
541
540
|
internalBinaryWrite(message, writer, options) {
|
|
542
|
-
/*
|
|
543
|
-
if (message.providerId
|
|
544
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
541
|
+
/* sid.v1.ids.UpstreamProviderId provider_id = 1; */
|
|
542
|
+
if (message.providerId)
|
|
543
|
+
UpstreamProviderId.internalBinaryWrite(message.providerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
545
544
|
let u = options.writeUnknownFields;
|
|
546
545
|
if (u !== false)
|
|
547
546
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -556,7 +555,7 @@ export const GetUpstreamProviderRequest = new GetUpstreamProviderRequest$Type();
|
|
|
556
555
|
class UpdateUpstreamProviderRequest$Type extends MessageType {
|
|
557
556
|
constructor() {
|
|
558
557
|
super("sid.v1.federation.UpdateUpstreamProviderRequest", [
|
|
559
|
-
{ no: 1, name: "provider_id", kind: "
|
|
558
|
+
{ no: 1, name: "provider_id", kind: "message", T: () => UpstreamProviderId },
|
|
560
559
|
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
561
560
|
{ no: 3, name: "protocol", kind: "enum", opt: true, T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
562
561
|
{ no: 4, name: "trust_category", kind: "enum", opt: true, T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
@@ -575,7 +574,6 @@ class UpdateUpstreamProviderRequest$Type extends MessageType {
|
|
|
575
574
|
}
|
|
576
575
|
create(value) {
|
|
577
576
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
578
|
-
message.providerId = "";
|
|
579
577
|
message.scopes = [];
|
|
580
578
|
if (value !== undefined)
|
|
581
579
|
reflectionMergePartial(this, message, value);
|
|
@@ -586,8 +584,8 @@ class UpdateUpstreamProviderRequest$Type extends MessageType {
|
|
|
586
584
|
while (reader.pos < end) {
|
|
587
585
|
let [fieldNo, wireType] = reader.tag();
|
|
588
586
|
switch (fieldNo) {
|
|
589
|
-
case /*
|
|
590
|
-
message.providerId = reader.
|
|
587
|
+
case /* sid.v1.ids.UpstreamProviderId provider_id */ 1:
|
|
588
|
+
message.providerId = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.providerId);
|
|
591
589
|
break;
|
|
592
590
|
case /* optional string name */ 2:
|
|
593
591
|
message.name = reader.string();
|
|
@@ -643,9 +641,9 @@ class UpdateUpstreamProviderRequest$Type extends MessageType {
|
|
|
643
641
|
return message;
|
|
644
642
|
}
|
|
645
643
|
internalBinaryWrite(message, writer, options) {
|
|
646
|
-
/*
|
|
647
|
-
if (message.providerId
|
|
648
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
644
|
+
/* sid.v1.ids.UpstreamProviderId provider_id = 1; */
|
|
645
|
+
if (message.providerId)
|
|
646
|
+
UpstreamProviderId.internalBinaryWrite(message.providerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
649
647
|
/* optional string name = 2; */
|
|
650
648
|
if (message.name !== undefined)
|
|
651
649
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -702,12 +700,11 @@ export const UpdateUpstreamProviderRequest = new UpdateUpstreamProviderRequest$T
|
|
|
702
700
|
class DeleteUpstreamProviderRequest$Type extends MessageType {
|
|
703
701
|
constructor() {
|
|
704
702
|
super("sid.v1.federation.DeleteUpstreamProviderRequest", [
|
|
705
|
-
{ no: 1, name: "provider_id", kind: "
|
|
703
|
+
{ no: 1, name: "provider_id", kind: "message", T: () => UpstreamProviderId }
|
|
706
704
|
]);
|
|
707
705
|
}
|
|
708
706
|
create(value) {
|
|
709
707
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
710
|
-
message.providerId = "";
|
|
711
708
|
if (value !== undefined)
|
|
712
709
|
reflectionMergePartial(this, message, value);
|
|
713
710
|
return message;
|
|
@@ -717,8 +714,8 @@ class DeleteUpstreamProviderRequest$Type extends MessageType {
|
|
|
717
714
|
while (reader.pos < end) {
|
|
718
715
|
let [fieldNo, wireType] = reader.tag();
|
|
719
716
|
switch (fieldNo) {
|
|
720
|
-
case /*
|
|
721
|
-
message.providerId = reader.
|
|
717
|
+
case /* sid.v1.ids.UpstreamProviderId provider_id */ 1:
|
|
718
|
+
message.providerId = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.providerId);
|
|
722
719
|
break;
|
|
723
720
|
default:
|
|
724
721
|
let u = options.readUnknownField;
|
|
@@ -732,9 +729,9 @@ class DeleteUpstreamProviderRequest$Type extends MessageType {
|
|
|
732
729
|
return message;
|
|
733
730
|
}
|
|
734
731
|
internalBinaryWrite(message, writer, options) {
|
|
735
|
-
/*
|
|
736
|
-
if (message.providerId
|
|
737
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
732
|
+
/* sid.v1.ids.UpstreamProviderId provider_id = 1; */
|
|
733
|
+
if (message.providerId)
|
|
734
|
+
UpstreamProviderId.internalBinaryWrite(message.providerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
738
735
|
let u = options.writeUnknownFields;
|
|
739
736
|
if (u !== false)
|
|
740
737
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -957,13 +954,12 @@ export const ListEnabledProvidersResponse = new ListEnabledProvidersResponse$Typ
|
|
|
957
954
|
class InitiateUpstreamAuthRequest$Type extends MessageType {
|
|
958
955
|
constructor() {
|
|
959
956
|
super("sid.v1.federation.InitiateUpstreamAuthRequest", [
|
|
960
|
-
{ no: 1, name: "provider_id", kind: "
|
|
957
|
+
{ no: 1, name: "provider_id", kind: "message", T: () => UpstreamProviderId },
|
|
961
958
|
{ no: 2, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
962
959
|
]);
|
|
963
960
|
}
|
|
964
961
|
create(value) {
|
|
965
962
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
966
|
-
message.providerId = "";
|
|
967
963
|
message.redirectUri = "";
|
|
968
964
|
if (value !== undefined)
|
|
969
965
|
reflectionMergePartial(this, message, value);
|
|
@@ -974,8 +970,8 @@ class InitiateUpstreamAuthRequest$Type extends MessageType {
|
|
|
974
970
|
while (reader.pos < end) {
|
|
975
971
|
let [fieldNo, wireType] = reader.tag();
|
|
976
972
|
switch (fieldNo) {
|
|
977
|
-
case /*
|
|
978
|
-
message.providerId = reader.
|
|
973
|
+
case /* sid.v1.ids.UpstreamProviderId provider_id */ 1:
|
|
974
|
+
message.providerId = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.providerId);
|
|
979
975
|
break;
|
|
980
976
|
case /* string redirect_uri */ 2:
|
|
981
977
|
message.redirectUri = reader.string();
|
|
@@ -992,9 +988,9 @@ class InitiateUpstreamAuthRequest$Type extends MessageType {
|
|
|
992
988
|
return message;
|
|
993
989
|
}
|
|
994
990
|
internalBinaryWrite(message, writer, options) {
|
|
995
|
-
/*
|
|
996
|
-
if (message.providerId
|
|
997
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
991
|
+
/* sid.v1.ids.UpstreamProviderId provider_id = 1; */
|
|
992
|
+
if (message.providerId)
|
|
993
|
+
UpstreamProviderId.internalBinaryWrite(message.providerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
998
994
|
/* string redirect_uri = 2; */
|
|
999
995
|
if (message.redirectUri !== "")
|
|
1000
996
|
writer.tag(2, WireType.LengthDelimited).string(message.redirectUri);
|
|
@@ -1067,7 +1063,7 @@ export const InitiateUpstreamAuthResponse = new InitiateUpstreamAuthResponse$Typ
|
|
|
1067
1063
|
class HandleUpstreamCallbackRequest$Type extends MessageType {
|
|
1068
1064
|
constructor() {
|
|
1069
1065
|
super("sid.v1.federation.HandleUpstreamCallbackRequest", [
|
|
1070
|
-
{ no: 1, name: "provider_id", kind: "
|
|
1066
|
+
{ no: 1, name: "provider_id", kind: "message", T: () => UpstreamProviderId },
|
|
1071
1067
|
{ no: 2, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1072
1068
|
{ no: 3, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1073
1069
|
{ no: 4, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -1075,7 +1071,6 @@ class HandleUpstreamCallbackRequest$Type extends MessageType {
|
|
|
1075
1071
|
}
|
|
1076
1072
|
create(value) {
|
|
1077
1073
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1078
|
-
message.providerId = "";
|
|
1079
1074
|
message.code = "";
|
|
1080
1075
|
message.state = "";
|
|
1081
1076
|
message.redirectUri = "";
|
|
@@ -1088,8 +1083,8 @@ class HandleUpstreamCallbackRequest$Type extends MessageType {
|
|
|
1088
1083
|
while (reader.pos < end) {
|
|
1089
1084
|
let [fieldNo, wireType] = reader.tag();
|
|
1090
1085
|
switch (fieldNo) {
|
|
1091
|
-
case /*
|
|
1092
|
-
message.providerId = reader.
|
|
1086
|
+
case /* sid.v1.ids.UpstreamProviderId provider_id */ 1:
|
|
1087
|
+
message.providerId = UpstreamProviderId.internalBinaryRead(reader, reader.uint32(), options, message.providerId);
|
|
1093
1088
|
break;
|
|
1094
1089
|
case /* string code */ 2:
|
|
1095
1090
|
message.code = reader.string();
|
|
@@ -1112,9 +1107,9 @@ class HandleUpstreamCallbackRequest$Type extends MessageType {
|
|
|
1112
1107
|
return message;
|
|
1113
1108
|
}
|
|
1114
1109
|
internalBinaryWrite(message, writer, options) {
|
|
1115
|
-
/*
|
|
1116
|
-
if (message.providerId
|
|
1117
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1110
|
+
/* sid.v1.ids.UpstreamProviderId provider_id = 1; */
|
|
1111
|
+
if (message.providerId)
|
|
1112
|
+
UpstreamProviderId.internalBinaryWrite(message.providerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1118
1113
|
/* string code = 2; */
|
|
1119
1114
|
if (message.code !== "")
|
|
1120
1115
|
writer.tag(2, WireType.LengthDelimited).string(message.code);
|
|
@@ -1198,14 +1193,13 @@ export const HandleUpstreamCallbackResponse = new HandleUpstreamCallbackResponse
|
|
|
1198
1193
|
class UpstreamAuthSuccess$Type extends MessageType {
|
|
1199
1194
|
constructor() {
|
|
1200
1195
|
super("sid.v1.federation.UpstreamAuthSuccess", [
|
|
1201
|
-
{ no: 1, name: "session_id", kind: "
|
|
1196
|
+
{ no: 1, name: "session_id", kind: "message", T: () => SessionId },
|
|
1202
1197
|
{ no: 2, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1203
1198
|
{ no: 3, name: "new_profile_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1204
1199
|
]);
|
|
1205
1200
|
}
|
|
1206
1201
|
create(value) {
|
|
1207
1202
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1208
|
-
message.sessionId = "";
|
|
1209
1203
|
message.expiresIn = 0n;
|
|
1210
1204
|
message.newProfileCreated = false;
|
|
1211
1205
|
if (value !== undefined)
|
|
@@ -1217,8 +1211,8 @@ class UpstreamAuthSuccess$Type extends MessageType {
|
|
|
1217
1211
|
while (reader.pos < end) {
|
|
1218
1212
|
let [fieldNo, wireType] = reader.tag();
|
|
1219
1213
|
switch (fieldNo) {
|
|
1220
|
-
case /*
|
|
1221
|
-
message.sessionId = reader.
|
|
1214
|
+
case /* sid.v1.ids.SessionId session_id */ 1:
|
|
1215
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
1222
1216
|
break;
|
|
1223
1217
|
case /* int64 expires_in */ 2:
|
|
1224
1218
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -1238,9 +1232,9 @@ class UpstreamAuthSuccess$Type extends MessageType {
|
|
|
1238
1232
|
return message;
|
|
1239
1233
|
}
|
|
1240
1234
|
internalBinaryWrite(message, writer, options) {
|
|
1241
|
-
/*
|
|
1242
|
-
if (message.sessionId
|
|
1243
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1235
|
+
/* sid.v1.ids.SessionId session_id = 1; */
|
|
1236
|
+
if (message.sessionId)
|
|
1237
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1244
1238
|
/* int64 expires_in = 2; */
|
|
1245
1239
|
if (message.expiresIn !== 0n)
|
|
1246
1240
|
writer.tag(2, WireType.Varint).int64(message.expiresIn);
|
|
@@ -1317,9 +1311,9 @@ export const UpstreamLinkingRequired = new UpstreamLinkingRequired$Type();
|
|
|
1317
1311
|
*/
|
|
1318
1312
|
export const UpstreamService = new ServiceType("sid.v1.federation.UpstreamService", [
|
|
1319
1313
|
{ name: "CreateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/upstream/providers", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1320
|
-
{ name: "GetUpstreamProvider", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/{provider_id}" } }, I: GetUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1321
|
-
{ name: "UpdateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/upstream/providers/{provider_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1322
|
-
{ name: "DeleteUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/upstream/providers/{provider_id}" }, "sid.v1.common.retry": { natural: "a provider id is never reused, so a deleted provider stays deleted: a repeat deletes nothing and answers as the first" } }, I: DeleteUpstreamProviderRequest, O: DeleteUpstreamProviderResponse },
|
|
1314
|
+
{ name: "GetUpstreamProvider", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/{provider_id.value}" } }, I: GetUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1315
|
+
{ name: "UpdateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/upstream/providers/{provider_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1316
|
+
{ name: "DeleteUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/upstream/providers/{provider_id.value}" }, "sid.v1.common.retry": { natural: "a provider id is never reused, so a deleted provider stays deleted: a repeat deletes nothing and answers as the first" } }, I: DeleteUpstreamProviderRequest, O: DeleteUpstreamProviderResponse },
|
|
1323
1317
|
{ name: "ListUpstreamProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers" } }, I: ListUpstreamProvidersRequest, O: ListUpstreamProvidersResponse },
|
|
1324
1318
|
{ name: "ListEnabledProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/enabled" } }, I: ListEnabledProvidersRequest, O: ListEnabledProvidersResponse },
|
|
1325
1319
|
{ name: "InitiateUpstreamAuth", options: { "google.api.http": { post: "/v1/upstream/auth/initiate", body: "*" }, "sid.v1.common.retry": { ceremony: "each request opens its own single-use sign-in state; nothing changes before its callback" } }, I: InitiateUpstreamAuthRequest, O: InitiateUpstreamAuthResponse },
|