@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
|
@@ -7,10 +7,12 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
8
|
import { ResetSessionId } from "../ids/ids.js";
|
|
9
9
|
import { StepUpChallengeId } from "../ids/ids.js";
|
|
10
|
+
import { OrgId } from "../ids/ids.js";
|
|
10
11
|
import { OtpSessionId } from "../ids/ids.js";
|
|
11
12
|
import { ImportedPasswordUpgradeId } from "../ids/ids.js";
|
|
12
13
|
import { MagicLinkId } from "../ids/ids.js";
|
|
13
14
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
15
|
+
import { ProfileId } from "../ids/ids.js";
|
|
14
16
|
import { CredentialId } from "../ids/ids.js";
|
|
15
17
|
import { PasswordRegistrationProof } from "./password_history.js";
|
|
16
18
|
import { PasswordOperationId } from "../ids/ids.js";
|
|
@@ -1143,11 +1145,11 @@ export interface ValidateSessionResponse {
|
|
|
1143
1145
|
*/
|
|
1144
1146
|
valid: boolean;
|
|
1145
1147
|
/**
|
|
1146
|
-
*
|
|
1148
|
+
* Local profile that owns the session. Set only when valid=true.
|
|
1147
1149
|
*
|
|
1148
|
-
* @generated from protobuf field:
|
|
1150
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
|
|
1149
1151
|
*/
|
|
1150
|
-
profileId?:
|
|
1152
|
+
profileId?: ProfileId;
|
|
1151
1153
|
/**
|
|
1152
1154
|
* Scopes granted to this session.
|
|
1153
1155
|
*
|
|
@@ -2000,9 +2002,11 @@ export interface ListUserOrganizationsRequest {
|
|
|
2000
2002
|
*/
|
|
2001
2003
|
export interface UserOrganization {
|
|
2002
2004
|
/**
|
|
2003
|
-
*
|
|
2005
|
+
* The organization, as the selection names it.
|
|
2006
|
+
*
|
|
2007
|
+
* @generated from protobuf field: sid.v1.ids.OrgId id = 1
|
|
2004
2008
|
*/
|
|
2005
|
-
id
|
|
2009
|
+
id?: OrgId;
|
|
2006
2010
|
/**
|
|
2007
2011
|
* @generated from protobuf field: string name = 2
|
|
2008
2012
|
*/
|
|
@@ -2034,9 +2038,11 @@ export interface ListUserOrganizationsResponse {
|
|
|
2034
2038
|
*/
|
|
2035
2039
|
export interface SelectOrganizationRequest {
|
|
2036
2040
|
/**
|
|
2037
|
-
*
|
|
2041
|
+
* Organization the sign-in continues in.
|
|
2042
|
+
*
|
|
2043
|
+
* @generated from protobuf field: sid.v1.ids.OrgId organization_id = 1
|
|
2038
2044
|
*/
|
|
2039
|
-
organizationId
|
|
2045
|
+
organizationId?: OrgId;
|
|
2040
2046
|
}
|
|
2041
2047
|
/**
|
|
2042
2048
|
* @generated from protobuf message sid.v1.authn.SelectOrganizationResponse
|
|
@@ -13,10 +13,12 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
import { ResetSessionId } from "../ids/ids.js";
|
|
15
15
|
import { StepUpChallengeId } from "../ids/ids.js";
|
|
16
|
+
import { OrgId } from "../ids/ids.js";
|
|
16
17
|
import { OtpSessionId } from "../ids/ids.js";
|
|
17
18
|
import { ImportedPasswordUpgradeId } from "../ids/ids.js";
|
|
18
19
|
import { MagicLinkId } from "../ids/ids.js";
|
|
19
20
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
21
|
+
import { ProfileId } from "../ids/ids.js";
|
|
20
22
|
import { CredentialId } from "../ids/ids.js";
|
|
21
23
|
import { PasswordRegistrationProof } from "./password_history.js";
|
|
22
24
|
import { PasswordOperationId } from "../ids/ids.js";
|
|
@@ -2302,7 +2304,7 @@ class ValidateSessionResponse$Type extends MessageType {
|
|
|
2302
2304
|
constructor() {
|
|
2303
2305
|
super("sid.v1.authn.ValidateSessionResponse", [
|
|
2304
2306
|
{ no: 1, name: "valid", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2305
|
-
{ no: 2, name: "profile_id", kind: "
|
|
2307
|
+
{ no: 2, name: "profile_id", kind: "message", T: () => ProfileId },
|
|
2306
2308
|
{ no: 3, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2307
2309
|
{ no: 4, name: "expires_at", kind: "message", T: () => Timestamp }
|
|
2308
2310
|
]);
|
|
@@ -2323,8 +2325,8 @@ class ValidateSessionResponse$Type extends MessageType {
|
|
|
2323
2325
|
case /* bool valid */ 1:
|
|
2324
2326
|
message.valid = reader.bool();
|
|
2325
2327
|
break;
|
|
2326
|
-
case /*
|
|
2327
|
-
message.profileId = reader.
|
|
2328
|
+
case /* sid.v1.ids.ProfileId profile_id */ 2:
|
|
2329
|
+
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2328
2330
|
break;
|
|
2329
2331
|
case /* repeated string scopes */ 3:
|
|
2330
2332
|
message.scopes.push(reader.string());
|
|
@@ -2347,9 +2349,9 @@ class ValidateSessionResponse$Type extends MessageType {
|
|
|
2347
2349
|
/* bool valid = 1; */
|
|
2348
2350
|
if (message.valid !== false)
|
|
2349
2351
|
writer.tag(1, WireType.Varint).bool(message.valid);
|
|
2350
|
-
/*
|
|
2351
|
-
if (message.profileId
|
|
2352
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
2352
|
+
/* sid.v1.ids.ProfileId profile_id = 2; */
|
|
2353
|
+
if (message.profileId)
|
|
2354
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2353
2355
|
/* repeated string scopes = 3; */
|
|
2354
2356
|
for (let i = 0; i < message.scopes.length; i++)
|
|
2355
2357
|
writer.tag(3, WireType.LengthDelimited).string(message.scopes[i]);
|
|
@@ -4883,7 +4885,7 @@ export const ListUserOrganizationsRequest = new ListUserOrganizationsRequest$Typ
|
|
|
4883
4885
|
class UserOrganization$Type extends MessageType {
|
|
4884
4886
|
constructor() {
|
|
4885
4887
|
super("sid.v1.authn.UserOrganization", [
|
|
4886
|
-
{ no: 1, name: "id", kind: "
|
|
4888
|
+
{ no: 1, name: "id", kind: "message", T: () => OrgId },
|
|
4887
4889
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4888
4890
|
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4889
4891
|
{ no: 4, name: "logo_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -4892,7 +4894,6 @@ class UserOrganization$Type extends MessageType {
|
|
|
4892
4894
|
}
|
|
4893
4895
|
create(value) {
|
|
4894
4896
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4895
|
-
message.id = "";
|
|
4896
4897
|
message.name = "";
|
|
4897
4898
|
message.displayName = "";
|
|
4898
4899
|
if (value !== undefined)
|
|
@@ -4904,8 +4905,8 @@ class UserOrganization$Type extends MessageType {
|
|
|
4904
4905
|
while (reader.pos < end) {
|
|
4905
4906
|
let [fieldNo, wireType] = reader.tag();
|
|
4906
4907
|
switch (fieldNo) {
|
|
4907
|
-
case /*
|
|
4908
|
-
message.id = reader.
|
|
4908
|
+
case /* sid.v1.ids.OrgId id */ 1:
|
|
4909
|
+
message.id = OrgId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
4909
4910
|
break;
|
|
4910
4911
|
case /* string name */ 2:
|
|
4911
4912
|
message.name = reader.string();
|
|
@@ -4931,9 +4932,9 @@ class UserOrganization$Type extends MessageType {
|
|
|
4931
4932
|
return message;
|
|
4932
4933
|
}
|
|
4933
4934
|
internalBinaryWrite(message, writer, options) {
|
|
4934
|
-
/*
|
|
4935
|
-
if (message.id
|
|
4936
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
4935
|
+
/* sid.v1.ids.OrgId id = 1; */
|
|
4936
|
+
if (message.id)
|
|
4937
|
+
OrgId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4937
4938
|
/* string name = 2; */
|
|
4938
4939
|
if (message.name !== "")
|
|
4939
4940
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -5007,12 +5008,11 @@ export const ListUserOrganizationsResponse = new ListUserOrganizationsResponse$T
|
|
|
5007
5008
|
class SelectOrganizationRequest$Type extends MessageType {
|
|
5008
5009
|
constructor() {
|
|
5009
5010
|
super("sid.v1.authn.SelectOrganizationRequest", [
|
|
5010
|
-
{ no: 1, name: "organization_id", kind: "
|
|
5011
|
+
{ no: 1, name: "organization_id", kind: "message", T: () => OrgId }
|
|
5011
5012
|
]);
|
|
5012
5013
|
}
|
|
5013
5014
|
create(value) {
|
|
5014
5015
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5015
|
-
message.organizationId = "";
|
|
5016
5016
|
if (value !== undefined)
|
|
5017
5017
|
reflectionMergePartial(this, message, value);
|
|
5018
5018
|
return message;
|
|
@@ -5022,8 +5022,8 @@ class SelectOrganizationRequest$Type extends MessageType {
|
|
|
5022
5022
|
while (reader.pos < end) {
|
|
5023
5023
|
let [fieldNo, wireType] = reader.tag();
|
|
5024
5024
|
switch (fieldNo) {
|
|
5025
|
-
case /*
|
|
5026
|
-
message.organizationId = reader.
|
|
5025
|
+
case /* sid.v1.ids.OrgId organization_id */ 1:
|
|
5026
|
+
message.organizationId = OrgId.internalBinaryRead(reader, reader.uint32(), options, message.organizationId);
|
|
5027
5027
|
break;
|
|
5028
5028
|
default:
|
|
5029
5029
|
let u = options.readUnknownField;
|
|
@@ -5037,9 +5037,9 @@ class SelectOrganizationRequest$Type extends MessageType {
|
|
|
5037
5037
|
return message;
|
|
5038
5038
|
}
|
|
5039
5039
|
internalBinaryWrite(message, writer, options) {
|
|
5040
|
-
/*
|
|
5041
|
-
if (message.organizationId
|
|
5042
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
5040
|
+
/* sid.v1.ids.OrgId organization_id = 1; */
|
|
5041
|
+
if (message.organizationId)
|
|
5042
|
+
OrgId.internalBinaryWrite(message.organizationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
5043
5043
|
let u = options.writeUnknownFields;
|
|
5044
5044
|
if (u !== false)
|
|
5045
5045
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|