@structured-id/proto 0.1.1 → 0.3.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 +14 -0
- package/dist/generated/sid/v1/admin/enrollment.client.d.ts +6 -4
- package/dist/generated/sid/v1/admin/enrollment.client.js +3 -2
- package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +39 -6
- package/dist/generated/sid/v1/admin/enrollment.js +42 -7
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +46 -3
- package/dist/generated/sid/v1/authn/auth.client.js +73 -49
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +42 -27
- package/dist/generated/sid/v1/authn/auth.js +39 -50
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.client.d.ts +68 -0
- package/dist/generated/sid/v1/authn/password_history.client.js +36 -0
- package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +254 -0
- package/dist/generated/sid/v1/authn/password_history.js +348 -2
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +118 -0
- package/dist/generated/sid/v1/identity/identity.js +143 -1
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/package.json +5 -5
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// @generated from protobuf file "sid/v1/authn/auth.proto" (package "sid.v1.authn", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
|
+
import { Duration } from "../../../google/protobuf/duration.js";
|
|
6
|
+
import { Empty } from "../../../google/protobuf/empty.js";
|
|
5
7
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
8
|
import { WireType } from "@protobuf-ts/runtime";
|
|
7
9
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
@@ -802,12 +804,16 @@ export const OpaqueZkppRegistrationFinishResponse = new OpaqueZkppRegistrationFi
|
|
|
802
804
|
class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
803
805
|
constructor() {
|
|
804
806
|
super("sid.v1.authn.PasswordChangeChallengeRequest", [
|
|
805
|
-
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
807
|
+
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
808
|
+
{ no: 2, name: "credential_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
809
|
+
{ no: 3, name: "registration_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
806
810
|
]);
|
|
807
811
|
}
|
|
808
812
|
create(value) {
|
|
809
813
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
810
814
|
message.credentialId = "";
|
|
815
|
+
message.credentialRequest = new Uint8Array(0);
|
|
816
|
+
message.registrationRequest = new Uint8Array(0);
|
|
811
817
|
if (value !== undefined)
|
|
812
818
|
reflectionMergePartial(this, message, value);
|
|
813
819
|
return message;
|
|
@@ -820,6 +826,12 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
820
826
|
case /* string credential_id */ 1:
|
|
821
827
|
message.credentialId = reader.string();
|
|
822
828
|
break;
|
|
829
|
+
case /* bytes credential_request */ 2:
|
|
830
|
+
message.credentialRequest = reader.bytes();
|
|
831
|
+
break;
|
|
832
|
+
case /* bytes registration_request */ 3:
|
|
833
|
+
message.registrationRequest = reader.bytes();
|
|
834
|
+
break;
|
|
823
835
|
default:
|
|
824
836
|
let u = options.readUnknownField;
|
|
825
837
|
if (u === "throw")
|
|
@@ -835,6 +847,12 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
835
847
|
/* string credential_id = 1; */
|
|
836
848
|
if (message.credentialId !== "")
|
|
837
849
|
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
850
|
+
/* bytes credential_request = 2; */
|
|
851
|
+
if (message.credentialRequest.length)
|
|
852
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.credentialRequest);
|
|
853
|
+
/* bytes registration_request = 3; */
|
|
854
|
+
if (message.registrationRequest.length)
|
|
855
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.registrationRequest);
|
|
838
856
|
let u = options.writeUnknownFields;
|
|
839
857
|
if (u !== false)
|
|
840
858
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -849,11 +867,13 @@ export const PasswordChangeChallengeRequest = new PasswordChangeChallengeRequest
|
|
|
849
867
|
class PasswordChangeChallengeResponse$Type extends MessageType {
|
|
850
868
|
constructor() {
|
|
851
869
|
super("sid.v1.authn.PasswordChangeChallengeResponse", [
|
|
852
|
-
{ no: 4, name: "history", kind: "message", T: () => PasswordHistoryContext }
|
|
870
|
+
{ no: 4, name: "history", kind: "message", T: () => PasswordHistoryContext },
|
|
871
|
+
{ no: 5, name: "credential_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
853
872
|
]);
|
|
854
873
|
}
|
|
855
874
|
create(value) {
|
|
856
875
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
876
|
+
message.credentialResponse = new Uint8Array(0);
|
|
857
877
|
if (value !== undefined)
|
|
858
878
|
reflectionMergePartial(this, message, value);
|
|
859
879
|
return message;
|
|
@@ -866,6 +886,9 @@ class PasswordChangeChallengeResponse$Type extends MessageType {
|
|
|
866
886
|
case /* sid.v1.authn.PasswordHistoryContext history */ 4:
|
|
867
887
|
message.history = PasswordHistoryContext.internalBinaryRead(reader, reader.uint32(), options, message.history);
|
|
868
888
|
break;
|
|
889
|
+
case /* bytes credential_response */ 5:
|
|
890
|
+
message.credentialResponse = reader.bytes();
|
|
891
|
+
break;
|
|
869
892
|
default:
|
|
870
893
|
let u = options.readUnknownField;
|
|
871
894
|
if (u === "throw")
|
|
@@ -881,6 +904,9 @@ class PasswordChangeChallengeResponse$Type extends MessageType {
|
|
|
881
904
|
/* sid.v1.authn.PasswordHistoryContext history = 4; */
|
|
882
905
|
if (message.history)
|
|
883
906
|
PasswordHistoryContext.internalBinaryWrite(message.history, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
907
|
+
/* bytes credential_response = 5; */
|
|
908
|
+
if (message.credentialResponse.length)
|
|
909
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.credentialResponse);
|
|
884
910
|
let u = options.writeUnknownFields;
|
|
885
911
|
if (u !== false)
|
|
886
912
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -897,13 +923,13 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
897
923
|
super("sid.v1.authn.PasswordChangeExecuteRequest", [
|
|
898
924
|
{ no: 9, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
899
925
|
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
900
|
-
{ no:
|
|
926
|
+
{ no: 10, name: "credential_finalization", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
901
927
|
]);
|
|
902
928
|
}
|
|
903
929
|
create(value) {
|
|
904
930
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
905
931
|
message.credentialId = "";
|
|
906
|
-
message.
|
|
932
|
+
message.credentialFinalization = new Uint8Array(0);
|
|
907
933
|
if (value !== undefined)
|
|
908
934
|
reflectionMergePartial(this, message, value);
|
|
909
935
|
return message;
|
|
@@ -919,8 +945,8 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
919
945
|
case /* string credential_id */ 1:
|
|
920
946
|
message.credentialId = reader.string();
|
|
921
947
|
break;
|
|
922
|
-
case /* bytes
|
|
923
|
-
message.
|
|
948
|
+
case /* bytes credential_finalization */ 10:
|
|
949
|
+
message.credentialFinalization = reader.bytes();
|
|
924
950
|
break;
|
|
925
951
|
default:
|
|
926
952
|
let u = options.readUnknownField;
|
|
@@ -937,12 +963,12 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
937
963
|
/* string credential_id = 1; */
|
|
938
964
|
if (message.credentialId !== "")
|
|
939
965
|
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
940
|
-
/* bytes registration_request = 5; */
|
|
941
|
-
if (message.registrationRequest.length)
|
|
942
|
-
writer.tag(5, WireType.LengthDelimited).bytes(message.registrationRequest);
|
|
943
966
|
/* sid.v1.ids.PasswordOperationId operation_id = 9; */
|
|
944
967
|
if (message.operationId)
|
|
945
968
|
PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
969
|
+
/* bytes credential_finalization = 10; */
|
|
970
|
+
if (message.credentialFinalization.length)
|
|
971
|
+
writer.tag(10, WireType.LengthDelimited).bytes(message.credentialFinalization);
|
|
946
972
|
let u = options.writeUnknownFields;
|
|
947
973
|
if (u !== false)
|
|
948
974
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1070,44 +1096,6 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
1070
1096
|
*/
|
|
1071
1097
|
export const PasswordChangeFinishRequest = new PasswordChangeFinishRequest$Type();
|
|
1072
1098
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1073
|
-
class PasswordChangeFinishResponse$Type extends MessageType {
|
|
1074
|
-
constructor() {
|
|
1075
|
-
super("sid.v1.authn.PasswordChangeFinishResponse", []);
|
|
1076
|
-
}
|
|
1077
|
-
create(value) {
|
|
1078
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
1079
|
-
if (value !== undefined)
|
|
1080
|
-
reflectionMergePartial(this, message, value);
|
|
1081
|
-
return message;
|
|
1082
|
-
}
|
|
1083
|
-
internalBinaryRead(reader, length, options, target) {
|
|
1084
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1085
|
-
while (reader.pos < end) {
|
|
1086
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1087
|
-
switch (fieldNo) {
|
|
1088
|
-
default:
|
|
1089
|
-
let u = options.readUnknownField;
|
|
1090
|
-
if (u === "throw")
|
|
1091
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1092
|
-
let d = reader.skip(wireType);
|
|
1093
|
-
if (u !== false)
|
|
1094
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
return message;
|
|
1098
|
-
}
|
|
1099
|
-
internalBinaryWrite(message, writer, options) {
|
|
1100
|
-
let u = options.writeUnknownFields;
|
|
1101
|
-
if (u !== false)
|
|
1102
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1103
|
-
return writer;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* @generated MessageType for protobuf message sid.v1.authn.PasswordChangeFinishResponse
|
|
1108
|
-
*/
|
|
1109
|
-
export const PasswordChangeFinishResponse = new PasswordChangeFinishResponse$Type();
|
|
1110
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1111
1099
|
class WebAuthnRegistrationStartRequest$Type extends MessageType {
|
|
1112
1100
|
constructor() {
|
|
1113
1101
|
super("sid.v1.authn.WebAuthnRegistrationStartRequest", [
|
|
@@ -6988,11 +6976,12 @@ export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
|
|
|
6988
6976
|
{ name: "OpaqueRegistrationFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/opaque/registration/finish", body: "*" } }, I: OpaqueRegistrationFinishRequest, O: OpaqueRegistrationFinishResponse },
|
|
6989
6977
|
{ name: "OpaqueLoginStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/opaque/login/start", body: "*" } }, I: OpaqueLoginStartRequest, O: OpaqueLoginStartResponse },
|
|
6990
6978
|
{ name: "OpaqueLoginFinish", options: { "google.api.http": { post: "/v1/auth/opaque/login/finish", body: "*" } }, I: OpaqueLoginFinishRequest, O: OpaqueLoginFinishResponse },
|
|
6991
|
-
{ name: "OpaqueZkppRegistrationStart",
|
|
6979
|
+
{ name: "OpaqueZkppRegistrationStart", options: { "google.api.http": { post: "/v1/auth/opaque-zkpp/registration/start", body: "*" } }, I: OpaqueZkppRegistrationStartRequest, O: OpaqueZkppRegistrationStartResponse },
|
|
6992
6980
|
{ name: "OpaqueZkppRegistrationFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/opaque-zkpp/registration/finish", body: "*" } }, I: OpaqueZkppRegistrationFinishRequest, O: OpaqueZkppRegistrationFinishResponse },
|
|
6993
|
-
{ name: "PasswordChangeChallenge",
|
|
6981
|
+
{ name: "PasswordChangeChallenge", options: { "google.api.http": { post: "/v1/auth/password/change/challenge", body: "*" } }, I: PasswordChangeChallengeRequest, O: PasswordChangeChallengeResponse },
|
|
6994
6982
|
{ name: "PasswordChangeExecute", options: { "google.api.http": { post: "/v1/auth/password/change/execute", body: "*" } }, I: PasswordChangeExecuteRequest, O: PasswordChangeExecuteResponse },
|
|
6995
|
-
{ name: "PasswordChangeFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/password/change/finish", body: "*" } }, I: PasswordChangeFinishRequest, O:
|
|
6983
|
+
{ name: "PasswordChangeFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/password/change/finish", body: "*" } }, I: PasswordChangeFinishRequest, O: Empty },
|
|
6984
|
+
{ name: "GetPasswordChangeRequirement", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/auth/password/change/requirement" } }, I: Empty, O: Duration },
|
|
6996
6985
|
{ name: "WebAuthnRegistrationStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/webauthn/registration/start", body: "*" } }, I: WebAuthnRegistrationStartRequest, O: WebAuthnRegistrationStartResponse },
|
|
6997
6986
|
{ name: "WebAuthnRegistrationFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/webauthn/registration/finish", body: "*" } }, I: WebAuthnRegistrationFinishRequest, O: WebAuthnRegistrationFinishResponse },
|
|
6998
6987
|
{ name: "WebAuthnAuthenticationStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/webauthn/authentication/start", body: "*" } }, I: WebAuthnAuthenticationStartRequest, O: WebAuthnAuthenticationStartResponse },
|