weave-typescript 0.51.3 → 0.52.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/dist/google/protobuf/duration.pb.d.ts +99 -0
- package/dist/google/protobuf/duration.pb.js +93 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/weave/authz/v1/index.d.ts +1 -0
- package/dist/weave/authz/v1/index.js +38 -0
- package/dist/weave/authz/v1/options.pb.d.ts +52 -0
- package/dist/weave/authz/v1/options.pb.js +403 -0
- package/dist/weave/filter/v1/index.d.ts +1 -0
- package/dist/weave/filter/v1/index.js +38 -0
- package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
- package/dist/weave/filter/v1/options.pb.js +417 -0
- package/dist/weave/index.d.ts +2 -0
- package/dist/weave/index.js +39 -0
- package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
- package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
- package/dist/weaveapi/agent/v1/index.d.ts +1 -1
- package/dist/weaveapi/agent/v1/index.js +2 -2
- package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
- package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
- package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
- package/dist/weaveapi/auth/v1/index.d.ts +4 -1
- package/dist/weaveapi/auth/v1/index.js +5 -2
- package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
- package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
- package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
- package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
- package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
- package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
- package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
- package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
- package/dist/weaveapi/chat/v1/index.d.ts +0 -1
- package/dist/weaveapi/chat/v1/index.js +1 -2
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
- package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
- package/dist/weaveapi/consolidation/v1/index.js +1 -2
- package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
- package/dist/weaveapi/content/v1/content.pb.js +470 -0
- package/dist/weaveapi/content/v1/index.d.ts +1 -0
- package/dist/weaveapi/content/v1/index.js +38 -0
- package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
- package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
- package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
- package/dist/weaveapi/gateway/v1/index.js +1 -2
- package/dist/weaveapi/index.d.ts +5 -5
- package/dist/weaveapi/index.js +6 -6
- package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
- package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
- package/dist/weaveapi/inference/v1/index.d.ts +4 -0
- package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
- package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +52 -15
- package/dist/weaveapi/{model → inference}/v1/model.pb.js +529 -116
- package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +182 -110
- package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2197 -1061
- package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
- package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
- package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
- package/dist/weaveapi/ingestion/v1/index.js +1 -3
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
- package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
- package/dist/weaveapi/initialization/v1/index.js +38 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
- package/dist/weaveapi/organization/v1/index.d.ts +0 -1
- package/dist/weaveapi/organization/v1/index.js +1 -2
- package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
- package/dist/weaveapi/reporting/index.d.ts +1 -0
- package/dist/weaveapi/reporting/index.js +38 -0
- package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
- package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
- package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
- package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
- package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
- package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
- package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/index.js +1 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
- package/dist/weaveapi/tool/index.d.ts +1 -0
- package/dist/weaveapi/tool/index.js +38 -0
- package/dist/weaveapi/tool/v1/index.d.ts +1 -0
- package/dist/weaveapi/tool/v1/index.js +38 -0
- package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
- package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
- package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
- package/dist/weaveapi/workflow/v1/index.js +2 -2
- package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
- package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
- package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
- package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
- package/dist/weavesql/weavedb/agent_sql.js +281 -758
- package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
- package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
- package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
- package/dist/weavesql/weavedb/chat_sql.js +312 -597
- package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
- package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
- package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/document_table_sql.js +12 -12
- package/dist/weavesql/weavedb/identity_sql.d.ts +1014 -0
- package/dist/weavesql/weavedb/identity_sql.js +1811 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +161 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.js +408 -0
- package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
- package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
- package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
- package/dist/weavesql/weavedb/initialization_sql.js +33 -0
- package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
- package/dist/weavesql/weavedb/organization_sql.d.ts +22 -102
- package/dist/weavesql/weavedb/organization_sql.js +54 -262
- package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
- package/dist/weavesql/weavedb/tool_sql.js +407 -0
- package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
- package/dist/weavesql/weavedb/usage_sql.js +568 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
- package/dist/weavesql/weavedb/workflow_sql.js +281 -909
- package/package.json +1 -1
- package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
- package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
- package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
- package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
- package/dist/weaveapi/atc/v1/index.d.ts +0 -5
- package/dist/weaveapi/atc/v1/index.js +0 -42
- package/dist/weaveapi/atc/v1/message.pb.js +0 -287
- package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
- package/dist/weaveapi/atc/v1/process.pb.js +0 -658
- package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
- package/dist/weaveapi/atc/v1/run.pb.js +0 -525
- package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
- package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
- package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
- package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
- package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
- package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
- package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
- package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
- package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
- package/dist/weaveapi/model/v1/index.d.ts +0 -2
- package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
- package/dist/weaveapi/project/v1/index.d.ts +0 -2
- package/dist/weaveapi/project/v1/index.js +0 -39
- package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
- package/dist/weaveapi/project/v1/project.pb.js +0 -1004
- package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
- package/dist/weaveapi/project/v1/service.pb.js +0 -1994
- package/dist/weaveapi/provider/v1/index.d.ts +0 -2
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
- package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
- package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
- package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
- package/dist/weaveapi/task/v1/index.js +0 -39
- package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
- package/dist/weaveapi/task/v1/service.pb.js +0 -1436
- package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
- package/dist/weaveapi/task/v1/task.pb.js +0 -802
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
- /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
- /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
- /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
- /package/dist/weaveapi/{project → content}/index.js +0 -0
- /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
- /package/dist/weaveapi/{provider → inference}/index.js +0 -0
- /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
- /package/dist/weaveapi/{task → initialization}/index.js +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/auth/v1/auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AuthorizationDecisionEvent = exports.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.
|
|
8
|
+
exports.AuthError = exports.PasswordStrengthRequirements = exports.PasswordStrengthFeedback = exports.PasswordStrength = exports.PersonalAccessToken = exports.AuthorizationDecisionEvent = exports.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.Permission = exports.PermissionRole = exports.PermissionResource = exports.PermissionSummary = exports.OrganizationTeamMember = exports.OrganizationTeam = exports.OrganizationMember = exports.OrganizationAuthSettings = exports.UserPreferences_OrganizationPagePositionsEntry = exports.UserPreferences = exports.UserOrganizationPagePosition = exports.UserProfile = exports.InviteOnboardingState = exports.DiscoveryOrganization = exports.AuthOrganization = exports.AuthUser_OrganizationPagePositionsEntry = exports.AuthUser = exports.AuthSession = exports.PersonalAccessTokenStatus = exports.AuthorizationDecision = exports.InviteRecoveryStatus = exports.InviteRecoveryReason = exports.InviteOnboardingStatus = exports.AuthProvider = exports.ScimConnectionStatus = exports.SsoConnectionStatus = exports.SsoConnectionType = exports.OrganizationKind = exports.MembershipStatus = exports.DiscoveryOrganizationStatus = exports.AuthMethod = exports.protobufPackage = void 0;
|
|
9
9
|
exports.authMethodFromJSON = authMethodFromJSON;
|
|
10
10
|
exports.authMethodToJSON = authMethodToJSON;
|
|
11
11
|
exports.discoveryOrganizationStatusFromJSON = discoveryOrganizationStatusFromJSON;
|
|
@@ -30,6 +30,8 @@ exports.inviteRecoveryStatusFromJSON = inviteRecoveryStatusFromJSON;
|
|
|
30
30
|
exports.inviteRecoveryStatusToJSON = inviteRecoveryStatusToJSON;
|
|
31
31
|
exports.authorizationDecisionFromJSON = authorizationDecisionFromJSON;
|
|
32
32
|
exports.authorizationDecisionToJSON = authorizationDecisionToJSON;
|
|
33
|
+
exports.personalAccessTokenStatusFromJSON = personalAccessTokenStatusFromJSON;
|
|
34
|
+
exports.personalAccessTokenStatusToJSON = personalAccessTokenStatusToJSON;
|
|
33
35
|
/* eslint-disable */
|
|
34
36
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
35
37
|
const struct_pb_1 = require("../../../google/protobuf/struct.pb");
|
|
@@ -611,13 +613,55 @@ function authorizationDecisionToJSON(object) {
|
|
|
611
613
|
return "UNRECOGNIZED";
|
|
612
614
|
}
|
|
613
615
|
}
|
|
616
|
+
var PersonalAccessTokenStatus;
|
|
617
|
+
(function (PersonalAccessTokenStatus) {
|
|
618
|
+
PersonalAccessTokenStatus[PersonalAccessTokenStatus["PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED"] = 0] = "PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED";
|
|
619
|
+
PersonalAccessTokenStatus[PersonalAccessTokenStatus["PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE"] = 1] = "PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE";
|
|
620
|
+
PersonalAccessTokenStatus[PersonalAccessTokenStatus["PERSONAL_ACCESS_TOKEN_STATUS_REVOKED"] = 2] = "PERSONAL_ACCESS_TOKEN_STATUS_REVOKED";
|
|
621
|
+
PersonalAccessTokenStatus[PersonalAccessTokenStatus["PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED"] = 3] = "PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED";
|
|
622
|
+
PersonalAccessTokenStatus[PersonalAccessTokenStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
623
|
+
})(PersonalAccessTokenStatus || (exports.PersonalAccessTokenStatus = PersonalAccessTokenStatus = {}));
|
|
624
|
+
function personalAccessTokenStatusFromJSON(object) {
|
|
625
|
+
switch (object) {
|
|
626
|
+
case 0:
|
|
627
|
+
case "PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED":
|
|
628
|
+
return PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED;
|
|
629
|
+
case 1:
|
|
630
|
+
case "PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE":
|
|
631
|
+
return PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE;
|
|
632
|
+
case 2:
|
|
633
|
+
case "PERSONAL_ACCESS_TOKEN_STATUS_REVOKED":
|
|
634
|
+
return PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_REVOKED;
|
|
635
|
+
case 3:
|
|
636
|
+
case "PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED":
|
|
637
|
+
return PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED;
|
|
638
|
+
case -1:
|
|
639
|
+
case "UNRECOGNIZED":
|
|
640
|
+
default:
|
|
641
|
+
return PersonalAccessTokenStatus.UNRECOGNIZED;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function personalAccessTokenStatusToJSON(object) {
|
|
645
|
+
switch (object) {
|
|
646
|
+
case PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED:
|
|
647
|
+
return "PERSONAL_ACCESS_TOKEN_STATUS_UNSPECIFIED";
|
|
648
|
+
case PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE:
|
|
649
|
+
return "PERSONAL_ACCESS_TOKEN_STATUS_ACTIVE";
|
|
650
|
+
case PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_REVOKED:
|
|
651
|
+
return "PERSONAL_ACCESS_TOKEN_STATUS_REVOKED";
|
|
652
|
+
case PersonalAccessTokenStatus.PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED:
|
|
653
|
+
return "PERSONAL_ACCESS_TOKEN_STATUS_EXPIRED";
|
|
654
|
+
case PersonalAccessTokenStatus.UNRECOGNIZED:
|
|
655
|
+
default:
|
|
656
|
+
return "UNRECOGNIZED";
|
|
657
|
+
}
|
|
658
|
+
}
|
|
614
659
|
function createBaseAuthSession() {
|
|
615
660
|
return {
|
|
616
661
|
sessionId: "",
|
|
617
662
|
user: undefined,
|
|
618
663
|
activeOrganization: undefined,
|
|
619
664
|
roleIds: [],
|
|
620
|
-
allowedActions: [],
|
|
621
665
|
platformAdmin: false,
|
|
622
666
|
expiresAt: undefined,
|
|
623
667
|
};
|
|
@@ -636,14 +680,11 @@ exports.AuthSession = {
|
|
|
636
680
|
for (const v of message.roleIds) {
|
|
637
681
|
writer.uint32(34).string(v);
|
|
638
682
|
}
|
|
639
|
-
for (const v of message.allowedActions) {
|
|
640
|
-
writer.uint32(42).string(v);
|
|
641
|
-
}
|
|
642
683
|
if (message.platformAdmin !== false) {
|
|
643
|
-
writer.uint32(
|
|
684
|
+
writer.uint32(40).bool(message.platformAdmin);
|
|
644
685
|
}
|
|
645
686
|
if (message.expiresAt !== undefined) {
|
|
646
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(
|
|
687
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(50).fork()).join();
|
|
647
688
|
}
|
|
648
689
|
return writer;
|
|
649
690
|
},
|
|
@@ -683,21 +724,14 @@ exports.AuthSession = {
|
|
|
683
724
|
continue;
|
|
684
725
|
}
|
|
685
726
|
case 5: {
|
|
686
|
-
if (tag !==
|
|
687
|
-
break;
|
|
688
|
-
}
|
|
689
|
-
message.allowedActions.push(reader.string());
|
|
690
|
-
continue;
|
|
691
|
-
}
|
|
692
|
-
case 6: {
|
|
693
|
-
if (tag !== 48) {
|
|
727
|
+
if (tag !== 40) {
|
|
694
728
|
break;
|
|
695
729
|
}
|
|
696
730
|
message.platformAdmin = reader.bool();
|
|
697
731
|
continue;
|
|
698
732
|
}
|
|
699
|
-
case
|
|
700
|
-
if (tag !==
|
|
733
|
+
case 6: {
|
|
734
|
+
if (tag !== 50) {
|
|
701
735
|
break;
|
|
702
736
|
}
|
|
703
737
|
message.expiresAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
@@ -729,11 +763,6 @@ exports.AuthSession = {
|
|
|
729
763
|
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.role_ids)
|
|
730
764
|
? object.role_ids.map((e) => globalThis.String(e))
|
|
731
765
|
: [],
|
|
732
|
-
allowedActions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.allowedActions)
|
|
733
|
-
? object.allowedActions.map((e) => globalThis.String(e))
|
|
734
|
-
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.allowed_actions)
|
|
735
|
-
? object.allowed_actions.map((e) => globalThis.String(e))
|
|
736
|
-
: [],
|
|
737
766
|
platformAdmin: isSet(object.platformAdmin)
|
|
738
767
|
? globalThis.Boolean(object.platformAdmin)
|
|
739
768
|
: isSet(object.platform_admin)
|
|
@@ -747,7 +776,7 @@ exports.AuthSession = {
|
|
|
747
776
|
};
|
|
748
777
|
},
|
|
749
778
|
toJSON(message) {
|
|
750
|
-
var _a
|
|
779
|
+
var _a;
|
|
751
780
|
const obj = {};
|
|
752
781
|
if (message.sessionId !== "") {
|
|
753
782
|
obj.sessionId = message.sessionId;
|
|
@@ -761,9 +790,6 @@ exports.AuthSession = {
|
|
|
761
790
|
if ((_a = message.roleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
762
791
|
obj.roleIds = message.roleIds;
|
|
763
792
|
}
|
|
764
|
-
if ((_b = message.allowedActions) === null || _b === void 0 ? void 0 : _b.length) {
|
|
765
|
-
obj.allowedActions = message.allowedActions;
|
|
766
|
-
}
|
|
767
793
|
if (message.platformAdmin !== false) {
|
|
768
794
|
obj.platformAdmin = message.platformAdmin;
|
|
769
795
|
}
|
|
@@ -776,18 +802,17 @@ exports.AuthSession = {
|
|
|
776
802
|
return exports.AuthSession.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
777
803
|
},
|
|
778
804
|
fromPartial(object) {
|
|
779
|
-
var _a
|
|
780
|
-
var _c, _d
|
|
805
|
+
var _a;
|
|
806
|
+
var _b, _c, _d;
|
|
781
807
|
const message = createBaseAuthSession();
|
|
782
|
-
message.sessionId = (
|
|
808
|
+
message.sessionId = (_b = object.sessionId) !== null && _b !== void 0 ? _b : "";
|
|
783
809
|
message.user = (object.user !== undefined && object.user !== null) ? exports.AuthUser.fromPartial(object.user) : undefined;
|
|
784
810
|
message.activeOrganization = (object.activeOrganization !== undefined && object.activeOrganization !== null)
|
|
785
811
|
? exports.AuthOrganization.fromPartial(object.activeOrganization)
|
|
786
812
|
: undefined;
|
|
787
813
|
message.roleIds = ((_a = object.roleIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
788
|
-
message.
|
|
789
|
-
message.
|
|
790
|
-
message.expiresAt = (_e = object.expiresAt) !== null && _e !== void 0 ? _e : undefined;
|
|
814
|
+
message.platformAdmin = (_c = object.platformAdmin) !== null && _c !== void 0 ? _c : false;
|
|
815
|
+
message.expiresAt = (_d = object.expiresAt) !== null && _d !== void 0 ? _d : undefined;
|
|
791
816
|
return message;
|
|
792
817
|
},
|
|
793
818
|
};
|
|
@@ -2502,7 +2527,7 @@ function createBaseOrganizationAuthSettings() {
|
|
|
2502
2527
|
microsoftOauthEnabled: false,
|
|
2503
2528
|
ssoRequired: false,
|
|
2504
2529
|
scimEnabled: false,
|
|
2505
|
-
|
|
2530
|
+
permissionSummary: undefined,
|
|
2506
2531
|
authPolicySummary: undefined,
|
|
2507
2532
|
};
|
|
2508
2533
|
}
|
|
@@ -2549,8 +2574,8 @@ exports.OrganizationAuthSettings = {
|
|
|
2549
2574
|
if (message.scimEnabled !== false) {
|
|
2550
2575
|
writer.uint32(104).bool(message.scimEnabled);
|
|
2551
2576
|
}
|
|
2552
|
-
if (message.
|
|
2553
|
-
exports.
|
|
2577
|
+
if (message.permissionSummary !== undefined) {
|
|
2578
|
+
exports.PermissionSummary.encode(message.permissionSummary, writer.uint32(114).fork()).join();
|
|
2554
2579
|
}
|
|
2555
2580
|
if (message.authPolicySummary !== undefined) {
|
|
2556
2581
|
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.authPolicySummary), writer.uint32(122).fork()).join();
|
|
@@ -2666,7 +2691,7 @@ exports.OrganizationAuthSettings = {
|
|
|
2666
2691
|
if (tag !== 114) {
|
|
2667
2692
|
break;
|
|
2668
2693
|
}
|
|
2669
|
-
message.
|
|
2694
|
+
message.permissionSummary = exports.PermissionSummary.decode(reader, reader.uint32());
|
|
2670
2695
|
continue;
|
|
2671
2696
|
}
|
|
2672
2697
|
case 15: {
|
|
@@ -2751,10 +2776,10 @@ exports.OrganizationAuthSettings = {
|
|
|
2751
2776
|
: isSet(object.scim_enabled)
|
|
2752
2777
|
? globalThis.Boolean(object.scim_enabled)
|
|
2753
2778
|
: false,
|
|
2754
|
-
|
|
2755
|
-
? exports.
|
|
2756
|
-
: isSet(object.
|
|
2757
|
-
? exports.
|
|
2779
|
+
permissionSummary: isSet(object.permissionSummary)
|
|
2780
|
+
? exports.PermissionSummary.fromJSON(object.permissionSummary)
|
|
2781
|
+
: isSet(object.permission_summary)
|
|
2782
|
+
? exports.PermissionSummary.fromJSON(object.permission_summary)
|
|
2758
2783
|
: undefined,
|
|
2759
2784
|
authPolicySummary: isObject(object.authPolicySummary)
|
|
2760
2785
|
? object.authPolicySummary
|
|
@@ -2805,8 +2830,8 @@ exports.OrganizationAuthSettings = {
|
|
|
2805
2830
|
if (message.scimEnabled !== false) {
|
|
2806
2831
|
obj.scimEnabled = message.scimEnabled;
|
|
2807
2832
|
}
|
|
2808
|
-
if (message.
|
|
2809
|
-
obj.
|
|
2833
|
+
if (message.permissionSummary !== undefined) {
|
|
2834
|
+
obj.permissionSummary = exports.PermissionSummary.toJSON(message.permissionSummary);
|
|
2810
2835
|
}
|
|
2811
2836
|
if (message.authPolicySummary !== undefined) {
|
|
2812
2837
|
obj.authPolicySummary = message.authPolicySummary;
|
|
@@ -2833,8 +2858,8 @@ exports.OrganizationAuthSettings = {
|
|
|
2833
2858
|
message.microsoftOauthEnabled = (_l = object.microsoftOauthEnabled) !== null && _l !== void 0 ? _l : false;
|
|
2834
2859
|
message.ssoRequired = (_m = object.ssoRequired) !== null && _m !== void 0 ? _m : false;
|
|
2835
2860
|
message.scimEnabled = (_o = object.scimEnabled) !== null && _o !== void 0 ? _o : false;
|
|
2836
|
-
message.
|
|
2837
|
-
? exports.
|
|
2861
|
+
message.permissionSummary = (object.permissionSummary !== undefined && object.permissionSummary !== null)
|
|
2862
|
+
? exports.PermissionSummary.fromPartial(object.permissionSummary)
|
|
2838
2863
|
: undefined;
|
|
2839
2864
|
message.authPolicySummary = (_p = object.authPolicySummary) !== null && _p !== void 0 ? _p : undefined;
|
|
2840
2865
|
return message;
|
|
@@ -3439,16 +3464,16 @@ exports.OrganizationTeamMember = {
|
|
|
3439
3464
|
return message;
|
|
3440
3465
|
},
|
|
3441
3466
|
};
|
|
3442
|
-
function
|
|
3467
|
+
function createBasePermissionSummary() {
|
|
3443
3468
|
return { resources: [], roles: [], updatedAt: undefined };
|
|
3444
3469
|
}
|
|
3445
|
-
exports.
|
|
3470
|
+
exports.PermissionSummary = {
|
|
3446
3471
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3447
3472
|
for (const v of message.resources) {
|
|
3448
|
-
exports.
|
|
3473
|
+
exports.PermissionResource.encode(v, writer.uint32(10).fork()).join();
|
|
3449
3474
|
}
|
|
3450
3475
|
for (const v of message.roles) {
|
|
3451
|
-
exports.
|
|
3476
|
+
exports.PermissionRole.encode(v, writer.uint32(18).fork()).join();
|
|
3452
3477
|
}
|
|
3453
3478
|
if (message.updatedAt !== undefined) {
|
|
3454
3479
|
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).join();
|
|
@@ -3458,7 +3483,7 @@ exports.RbacPolicySummary = {
|
|
|
3458
3483
|
decode(input, length) {
|
|
3459
3484
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3460
3485
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3461
|
-
const message =
|
|
3486
|
+
const message = createBasePermissionSummary();
|
|
3462
3487
|
while (reader.pos < end) {
|
|
3463
3488
|
const tag = reader.uint32();
|
|
3464
3489
|
switch (tag >>> 3) {
|
|
@@ -3466,14 +3491,14 @@ exports.RbacPolicySummary = {
|
|
|
3466
3491
|
if (tag !== 10) {
|
|
3467
3492
|
break;
|
|
3468
3493
|
}
|
|
3469
|
-
message.resources.push(exports.
|
|
3494
|
+
message.resources.push(exports.PermissionResource.decode(reader, reader.uint32()));
|
|
3470
3495
|
continue;
|
|
3471
3496
|
}
|
|
3472
3497
|
case 2: {
|
|
3473
3498
|
if (tag !== 18) {
|
|
3474
3499
|
break;
|
|
3475
3500
|
}
|
|
3476
|
-
message.roles.push(exports.
|
|
3501
|
+
message.roles.push(exports.PermissionRole.decode(reader, reader.uint32()));
|
|
3477
3502
|
continue;
|
|
3478
3503
|
}
|
|
3479
3504
|
case 3: {
|
|
@@ -3494,9 +3519,9 @@ exports.RbacPolicySummary = {
|
|
|
3494
3519
|
fromJSON(object) {
|
|
3495
3520
|
return {
|
|
3496
3521
|
resources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.resources)
|
|
3497
|
-
? object.resources.map((e) => exports.
|
|
3522
|
+
? object.resources.map((e) => exports.PermissionResource.fromJSON(e))
|
|
3498
3523
|
: [],
|
|
3499
|
-
roles: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.roles) ? object.roles.map((e) => exports.
|
|
3524
|
+
roles: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.roles) ? object.roles.map((e) => exports.PermissionRole.fromJSON(e)) : [],
|
|
3500
3525
|
updatedAt: isSet(object.updatedAt)
|
|
3501
3526
|
? fromJsonTimestamp(object.updatedAt)
|
|
3502
3527
|
: isSet(object.updated_at)
|
|
@@ -3508,10 +3533,10 @@ exports.RbacPolicySummary = {
|
|
|
3508
3533
|
var _a, _b;
|
|
3509
3534
|
const obj = {};
|
|
3510
3535
|
if ((_a = message.resources) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3511
|
-
obj.resources = message.resources.map((e) => exports.
|
|
3536
|
+
obj.resources = message.resources.map((e) => exports.PermissionResource.toJSON(e));
|
|
3512
3537
|
}
|
|
3513
3538
|
if ((_b = message.roles) === null || _b === void 0 ? void 0 : _b.length) {
|
|
3514
|
-
obj.roles = message.roles.map((e) => exports.
|
|
3539
|
+
obj.roles = message.roles.map((e) => exports.PermissionRole.toJSON(e));
|
|
3515
3540
|
}
|
|
3516
3541
|
if (message.updatedAt !== undefined) {
|
|
3517
3542
|
obj.updatedAt = message.updatedAt.toISOString();
|
|
@@ -3519,22 +3544,22 @@ exports.RbacPolicySummary = {
|
|
|
3519
3544
|
return obj;
|
|
3520
3545
|
},
|
|
3521
3546
|
create(base) {
|
|
3522
|
-
return exports.
|
|
3547
|
+
return exports.PermissionSummary.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3523
3548
|
},
|
|
3524
3549
|
fromPartial(object) {
|
|
3525
3550
|
var _a, _b;
|
|
3526
3551
|
var _c;
|
|
3527
|
-
const message =
|
|
3528
|
-
message.resources = ((_a = object.resources) === null || _a === void 0 ? void 0 : _a.map((e) => exports.
|
|
3529
|
-
message.roles = ((_b = object.roles) === null || _b === void 0 ? void 0 : _b.map((e) => exports.
|
|
3552
|
+
const message = createBasePermissionSummary();
|
|
3553
|
+
message.resources = ((_a = object.resources) === null || _a === void 0 ? void 0 : _a.map((e) => exports.PermissionResource.fromPartial(e))) || [];
|
|
3554
|
+
message.roles = ((_b = object.roles) === null || _b === void 0 ? void 0 : _b.map((e) => exports.PermissionRole.fromPartial(e))) || [];
|
|
3530
3555
|
message.updatedAt = (_c = object.updatedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
3531
3556
|
return message;
|
|
3532
3557
|
},
|
|
3533
3558
|
};
|
|
3534
|
-
function
|
|
3559
|
+
function createBasePermissionResource() {
|
|
3535
3560
|
return { id: "", displayName: "", actions: [] };
|
|
3536
3561
|
}
|
|
3537
|
-
exports.
|
|
3562
|
+
exports.PermissionResource = {
|
|
3538
3563
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3539
3564
|
if (message.id !== "") {
|
|
3540
3565
|
writer.uint32(10).string(message.id);
|
|
@@ -3550,7 +3575,7 @@ exports.RbacResource = {
|
|
|
3550
3575
|
decode(input, length) {
|
|
3551
3576
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3552
3577
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3553
|
-
const message =
|
|
3578
|
+
const message = createBasePermissionResource();
|
|
3554
3579
|
while (reader.pos < end) {
|
|
3555
3580
|
const tag = reader.uint32();
|
|
3556
3581
|
switch (tag >>> 3) {
|
|
@@ -3609,22 +3634,22 @@ exports.RbacResource = {
|
|
|
3609
3634
|
return obj;
|
|
3610
3635
|
},
|
|
3611
3636
|
create(base) {
|
|
3612
|
-
return exports.
|
|
3637
|
+
return exports.PermissionResource.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3613
3638
|
},
|
|
3614
3639
|
fromPartial(object) {
|
|
3615
3640
|
var _a;
|
|
3616
3641
|
var _b, _c;
|
|
3617
|
-
const message =
|
|
3642
|
+
const message = createBasePermissionResource();
|
|
3618
3643
|
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
3619
3644
|
message.displayName = (_c = object.displayName) !== null && _c !== void 0 ? _c : "";
|
|
3620
3645
|
message.actions = ((_a = object.actions) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
3621
3646
|
return message;
|
|
3622
3647
|
},
|
|
3623
3648
|
};
|
|
3624
|
-
function
|
|
3649
|
+
function createBasePermissionRole() {
|
|
3625
3650
|
return { id: "", displayName: "", description: "", permissions: [] };
|
|
3626
3651
|
}
|
|
3627
|
-
exports.
|
|
3652
|
+
exports.PermissionRole = {
|
|
3628
3653
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3629
3654
|
if (message.id !== "") {
|
|
3630
3655
|
writer.uint32(10).string(message.id);
|
|
@@ -3636,14 +3661,14 @@ exports.RbacRole = {
|
|
|
3636
3661
|
writer.uint32(26).string(message.description);
|
|
3637
3662
|
}
|
|
3638
3663
|
for (const v of message.permissions) {
|
|
3639
|
-
exports.
|
|
3664
|
+
exports.Permission.encode(v, writer.uint32(34).fork()).join();
|
|
3640
3665
|
}
|
|
3641
3666
|
return writer;
|
|
3642
3667
|
},
|
|
3643
3668
|
decode(input, length) {
|
|
3644
3669
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3645
3670
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3646
|
-
const message =
|
|
3671
|
+
const message = createBasePermissionRole();
|
|
3647
3672
|
while (reader.pos < end) {
|
|
3648
3673
|
const tag = reader.uint32();
|
|
3649
3674
|
switch (tag >>> 3) {
|
|
@@ -3672,7 +3697,7 @@ exports.RbacRole = {
|
|
|
3672
3697
|
if (tag !== 34) {
|
|
3673
3698
|
break;
|
|
3674
3699
|
}
|
|
3675
|
-
message.permissions.push(exports.
|
|
3700
|
+
message.permissions.push(exports.Permission.decode(reader, reader.uint32()));
|
|
3676
3701
|
continue;
|
|
3677
3702
|
}
|
|
3678
3703
|
}
|
|
@@ -3693,7 +3718,7 @@ exports.RbacRole = {
|
|
|
3693
3718
|
: "",
|
|
3694
3719
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
3695
3720
|
permissions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
|
|
3696
|
-
? object.permissions.map((e) => exports.
|
|
3721
|
+
? object.permissions.map((e) => exports.Permission.fromJSON(e))
|
|
3697
3722
|
: [],
|
|
3698
3723
|
};
|
|
3699
3724
|
},
|
|
@@ -3710,28 +3735,28 @@ exports.RbacRole = {
|
|
|
3710
3735
|
obj.description = message.description;
|
|
3711
3736
|
}
|
|
3712
3737
|
if ((_a = message.permissions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3713
|
-
obj.permissions = message.permissions.map((e) => exports.
|
|
3738
|
+
obj.permissions = message.permissions.map((e) => exports.Permission.toJSON(e));
|
|
3714
3739
|
}
|
|
3715
3740
|
return obj;
|
|
3716
3741
|
},
|
|
3717
3742
|
create(base) {
|
|
3718
|
-
return exports.
|
|
3743
|
+
return exports.PermissionRole.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3719
3744
|
},
|
|
3720
3745
|
fromPartial(object) {
|
|
3721
3746
|
var _a;
|
|
3722
3747
|
var _b, _c, _d;
|
|
3723
|
-
const message =
|
|
3748
|
+
const message = createBasePermissionRole();
|
|
3724
3749
|
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
3725
3750
|
message.displayName = (_c = object.displayName) !== null && _c !== void 0 ? _c : "";
|
|
3726
3751
|
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
3727
|
-
message.permissions = ((_a = object.permissions) === null || _a === void 0 ? void 0 : _a.map((e) => exports.
|
|
3752
|
+
message.permissions = ((_a = object.permissions) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Permission.fromPartial(e))) || [];
|
|
3728
3753
|
return message;
|
|
3729
3754
|
},
|
|
3730
3755
|
};
|
|
3731
|
-
function
|
|
3756
|
+
function createBasePermission() {
|
|
3732
3757
|
return { resourceId: "", actions: [] };
|
|
3733
3758
|
}
|
|
3734
|
-
exports.
|
|
3759
|
+
exports.Permission = {
|
|
3735
3760
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3736
3761
|
if (message.resourceId !== "") {
|
|
3737
3762
|
writer.uint32(10).string(message.resourceId);
|
|
@@ -3744,7 +3769,7 @@ exports.RbacPermission = {
|
|
|
3744
3769
|
decode(input, length) {
|
|
3745
3770
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3746
3771
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3747
|
-
const message =
|
|
3772
|
+
const message = createBasePermission();
|
|
3748
3773
|
while (reader.pos < end) {
|
|
3749
3774
|
const tag = reader.uint32();
|
|
3750
3775
|
switch (tag >>> 3) {
|
|
@@ -3792,12 +3817,12 @@ exports.RbacPermission = {
|
|
|
3792
3817
|
return obj;
|
|
3793
3818
|
},
|
|
3794
3819
|
create(base) {
|
|
3795
|
-
return exports.
|
|
3820
|
+
return exports.Permission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3796
3821
|
},
|
|
3797
3822
|
fromPartial(object) {
|
|
3798
3823
|
var _a;
|
|
3799
3824
|
var _b;
|
|
3800
|
-
const message =
|
|
3825
|
+
const message = createBasePermission();
|
|
3801
3826
|
message.resourceId = (_b = object.resourceId) !== null && _b !== void 0 ? _b : "";
|
|
3802
3827
|
message.actions = ((_a = object.actions) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
3803
3828
|
return message;
|
|
@@ -4681,7 +4706,7 @@ function createBaseAuthorizationDecisionEvent() {
|
|
|
4681
4706
|
actingUserId: "",
|
|
4682
4707
|
actorOrganizationMembershipId: "",
|
|
4683
4708
|
actorIdentityLinkId: "",
|
|
4684
|
-
|
|
4709
|
+
roleIds: [],
|
|
4685
4710
|
orgTeamIds: [],
|
|
4686
4711
|
platformGrantIds: [],
|
|
4687
4712
|
supportAccessSessionId: "",
|
|
@@ -4716,7 +4741,7 @@ exports.AuthorizationDecisionEvent = {
|
|
|
4716
4741
|
if (message.actorIdentityLinkId !== "") {
|
|
4717
4742
|
writer.uint32(42).string(message.actorIdentityLinkId);
|
|
4718
4743
|
}
|
|
4719
|
-
for (const v of message.
|
|
4744
|
+
for (const v of message.roleIds) {
|
|
4720
4745
|
writer.uint32(50).string(v);
|
|
4721
4746
|
}
|
|
4722
4747
|
for (const v of message.orgTeamIds) {
|
|
@@ -4812,7 +4837,7 @@ exports.AuthorizationDecisionEvent = {
|
|
|
4812
4837
|
if (tag !== 50) {
|
|
4813
4838
|
break;
|
|
4814
4839
|
}
|
|
4815
|
-
message.
|
|
4840
|
+
message.roleIds.push(reader.string());
|
|
4816
4841
|
continue;
|
|
4817
4842
|
}
|
|
4818
4843
|
case 7: {
|
|
@@ -4951,10 +4976,10 @@ exports.AuthorizationDecisionEvent = {
|
|
|
4951
4976
|
: isSet(object.actor_identity_link_id)
|
|
4952
4977
|
? globalThis.String(object.actor_identity_link_id)
|
|
4953
4978
|
: "",
|
|
4954
|
-
|
|
4955
|
-
? object.
|
|
4956
|
-
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.
|
|
4957
|
-
? object.
|
|
4979
|
+
roleIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.roleIds)
|
|
4980
|
+
? object.roleIds.map((e) => globalThis.String(e))
|
|
4981
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.role_ids)
|
|
4982
|
+
? object.role_ids.map((e) => globalThis.String(e))
|
|
4958
4983
|
: [],
|
|
4959
4984
|
orgTeamIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.orgTeamIds)
|
|
4960
4985
|
? object.orgTeamIds.map((e) => globalThis.String(e))
|
|
@@ -5039,8 +5064,8 @@ exports.AuthorizationDecisionEvent = {
|
|
|
5039
5064
|
if (message.actorIdentityLinkId !== "") {
|
|
5040
5065
|
obj.actorIdentityLinkId = message.actorIdentityLinkId;
|
|
5041
5066
|
}
|
|
5042
|
-
if ((_a = message.
|
|
5043
|
-
obj.
|
|
5067
|
+
if ((_a = message.roleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
5068
|
+
obj.roleIds = message.roleIds;
|
|
5044
5069
|
}
|
|
5045
5070
|
if ((_b = message.orgTeamIds) === null || _b === void 0 ? void 0 : _b.length) {
|
|
5046
5071
|
obj.orgTeamIds = message.orgTeamIds;
|
|
@@ -5101,7 +5126,7 @@ exports.AuthorizationDecisionEvent = {
|
|
|
5101
5126
|
message.actingUserId = (_f = object.actingUserId) !== null && _f !== void 0 ? _f : "";
|
|
5102
5127
|
message.actorOrganizationMembershipId = (_g = object.actorOrganizationMembershipId) !== null && _g !== void 0 ? _g : "";
|
|
5103
5128
|
message.actorIdentityLinkId = (_h = object.actorIdentityLinkId) !== null && _h !== void 0 ? _h : "";
|
|
5104
|
-
message.
|
|
5129
|
+
message.roleIds = ((_a = object.roleIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
5105
5130
|
message.orgTeamIds = ((_b = object.orgTeamIds) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
5106
5131
|
message.platformGrantIds = ((_c = object.platformGrantIds) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
5107
5132
|
message.supportAccessSessionId = (_j = object.supportAccessSessionId) !== null && _j !== void 0 ? _j : "";
|
|
@@ -5120,6 +5145,721 @@ exports.AuthorizationDecisionEvent = {
|
|
|
5120
5145
|
return message;
|
|
5121
5146
|
},
|
|
5122
5147
|
};
|
|
5148
|
+
function createBasePersonalAccessToken() {
|
|
5149
|
+
return {
|
|
5150
|
+
id: "",
|
|
5151
|
+
organizationId: "",
|
|
5152
|
+
userId: "",
|
|
5153
|
+
name: "",
|
|
5154
|
+
status: 0,
|
|
5155
|
+
expiresAt: undefined,
|
|
5156
|
+
lastUsedAt: undefined,
|
|
5157
|
+
createdAt: undefined,
|
|
5158
|
+
revokedAt: undefined,
|
|
5159
|
+
};
|
|
5160
|
+
}
|
|
5161
|
+
exports.PersonalAccessToken = {
|
|
5162
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5163
|
+
if (message.id !== "") {
|
|
5164
|
+
writer.uint32(10).string(message.id);
|
|
5165
|
+
}
|
|
5166
|
+
if (message.organizationId !== "") {
|
|
5167
|
+
writer.uint32(18).string(message.organizationId);
|
|
5168
|
+
}
|
|
5169
|
+
if (message.userId !== "") {
|
|
5170
|
+
writer.uint32(26).string(message.userId);
|
|
5171
|
+
}
|
|
5172
|
+
if (message.name !== "") {
|
|
5173
|
+
writer.uint32(34).string(message.name);
|
|
5174
|
+
}
|
|
5175
|
+
if (message.status !== 0) {
|
|
5176
|
+
writer.uint32(40).int32(message.status);
|
|
5177
|
+
}
|
|
5178
|
+
if (message.expiresAt !== undefined) {
|
|
5179
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(50).fork()).join();
|
|
5180
|
+
}
|
|
5181
|
+
if (message.lastUsedAt !== undefined) {
|
|
5182
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastUsedAt), writer.uint32(58).fork()).join();
|
|
5183
|
+
}
|
|
5184
|
+
if (message.createdAt !== undefined) {
|
|
5185
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(66).fork()).join();
|
|
5186
|
+
}
|
|
5187
|
+
if (message.revokedAt !== undefined) {
|
|
5188
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.revokedAt), writer.uint32(74).fork()).join();
|
|
5189
|
+
}
|
|
5190
|
+
return writer;
|
|
5191
|
+
},
|
|
5192
|
+
decode(input, length) {
|
|
5193
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5194
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5195
|
+
const message = createBasePersonalAccessToken();
|
|
5196
|
+
while (reader.pos < end) {
|
|
5197
|
+
const tag = reader.uint32();
|
|
5198
|
+
switch (tag >>> 3) {
|
|
5199
|
+
case 1: {
|
|
5200
|
+
if (tag !== 10) {
|
|
5201
|
+
break;
|
|
5202
|
+
}
|
|
5203
|
+
message.id = reader.string();
|
|
5204
|
+
continue;
|
|
5205
|
+
}
|
|
5206
|
+
case 2: {
|
|
5207
|
+
if (tag !== 18) {
|
|
5208
|
+
break;
|
|
5209
|
+
}
|
|
5210
|
+
message.organizationId = reader.string();
|
|
5211
|
+
continue;
|
|
5212
|
+
}
|
|
5213
|
+
case 3: {
|
|
5214
|
+
if (tag !== 26) {
|
|
5215
|
+
break;
|
|
5216
|
+
}
|
|
5217
|
+
message.userId = reader.string();
|
|
5218
|
+
continue;
|
|
5219
|
+
}
|
|
5220
|
+
case 4: {
|
|
5221
|
+
if (tag !== 34) {
|
|
5222
|
+
break;
|
|
5223
|
+
}
|
|
5224
|
+
message.name = reader.string();
|
|
5225
|
+
continue;
|
|
5226
|
+
}
|
|
5227
|
+
case 5: {
|
|
5228
|
+
if (tag !== 40) {
|
|
5229
|
+
break;
|
|
5230
|
+
}
|
|
5231
|
+
message.status = reader.int32();
|
|
5232
|
+
continue;
|
|
5233
|
+
}
|
|
5234
|
+
case 6: {
|
|
5235
|
+
if (tag !== 50) {
|
|
5236
|
+
break;
|
|
5237
|
+
}
|
|
5238
|
+
message.expiresAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
5239
|
+
continue;
|
|
5240
|
+
}
|
|
5241
|
+
case 7: {
|
|
5242
|
+
if (tag !== 58) {
|
|
5243
|
+
break;
|
|
5244
|
+
}
|
|
5245
|
+
message.lastUsedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
5246
|
+
continue;
|
|
5247
|
+
}
|
|
5248
|
+
case 8: {
|
|
5249
|
+
if (tag !== 66) {
|
|
5250
|
+
break;
|
|
5251
|
+
}
|
|
5252
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
5253
|
+
continue;
|
|
5254
|
+
}
|
|
5255
|
+
case 9: {
|
|
5256
|
+
if (tag !== 74) {
|
|
5257
|
+
break;
|
|
5258
|
+
}
|
|
5259
|
+
message.revokedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
5260
|
+
continue;
|
|
5261
|
+
}
|
|
5262
|
+
}
|
|
5263
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5264
|
+
break;
|
|
5265
|
+
}
|
|
5266
|
+
reader.skip(tag & 7);
|
|
5267
|
+
}
|
|
5268
|
+
return message;
|
|
5269
|
+
},
|
|
5270
|
+
fromJSON(object) {
|
|
5271
|
+
return {
|
|
5272
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
5273
|
+
organizationId: isSet(object.organizationId)
|
|
5274
|
+
? globalThis.String(object.organizationId)
|
|
5275
|
+
: isSet(object.organization_id)
|
|
5276
|
+
? globalThis.String(object.organization_id)
|
|
5277
|
+
: "",
|
|
5278
|
+
userId: isSet(object.userId)
|
|
5279
|
+
? globalThis.String(object.userId)
|
|
5280
|
+
: isSet(object.user_id)
|
|
5281
|
+
? globalThis.String(object.user_id)
|
|
5282
|
+
: "",
|
|
5283
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
5284
|
+
status: isSet(object.status) ? personalAccessTokenStatusFromJSON(object.status) : 0,
|
|
5285
|
+
expiresAt: isSet(object.expiresAt)
|
|
5286
|
+
? fromJsonTimestamp(object.expiresAt)
|
|
5287
|
+
: isSet(object.expires_at)
|
|
5288
|
+
? fromJsonTimestamp(object.expires_at)
|
|
5289
|
+
: undefined,
|
|
5290
|
+
lastUsedAt: isSet(object.lastUsedAt)
|
|
5291
|
+
? fromJsonTimestamp(object.lastUsedAt)
|
|
5292
|
+
: isSet(object.last_used_at)
|
|
5293
|
+
? fromJsonTimestamp(object.last_used_at)
|
|
5294
|
+
: undefined,
|
|
5295
|
+
createdAt: isSet(object.createdAt)
|
|
5296
|
+
? fromJsonTimestamp(object.createdAt)
|
|
5297
|
+
: isSet(object.created_at)
|
|
5298
|
+
? fromJsonTimestamp(object.created_at)
|
|
5299
|
+
: undefined,
|
|
5300
|
+
revokedAt: isSet(object.revokedAt)
|
|
5301
|
+
? fromJsonTimestamp(object.revokedAt)
|
|
5302
|
+
: isSet(object.revoked_at)
|
|
5303
|
+
? fromJsonTimestamp(object.revoked_at)
|
|
5304
|
+
: undefined,
|
|
5305
|
+
};
|
|
5306
|
+
},
|
|
5307
|
+
toJSON(message) {
|
|
5308
|
+
const obj = {};
|
|
5309
|
+
if (message.id !== "") {
|
|
5310
|
+
obj.id = message.id;
|
|
5311
|
+
}
|
|
5312
|
+
if (message.organizationId !== "") {
|
|
5313
|
+
obj.organizationId = message.organizationId;
|
|
5314
|
+
}
|
|
5315
|
+
if (message.userId !== "") {
|
|
5316
|
+
obj.userId = message.userId;
|
|
5317
|
+
}
|
|
5318
|
+
if (message.name !== "") {
|
|
5319
|
+
obj.name = message.name;
|
|
5320
|
+
}
|
|
5321
|
+
if (message.status !== 0) {
|
|
5322
|
+
obj.status = personalAccessTokenStatusToJSON(message.status);
|
|
5323
|
+
}
|
|
5324
|
+
if (message.expiresAt !== undefined) {
|
|
5325
|
+
obj.expiresAt = message.expiresAt.toISOString();
|
|
5326
|
+
}
|
|
5327
|
+
if (message.lastUsedAt !== undefined) {
|
|
5328
|
+
obj.lastUsedAt = message.lastUsedAt.toISOString();
|
|
5329
|
+
}
|
|
5330
|
+
if (message.createdAt !== undefined) {
|
|
5331
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
5332
|
+
}
|
|
5333
|
+
if (message.revokedAt !== undefined) {
|
|
5334
|
+
obj.revokedAt = message.revokedAt.toISOString();
|
|
5335
|
+
}
|
|
5336
|
+
return obj;
|
|
5337
|
+
},
|
|
5338
|
+
create(base) {
|
|
5339
|
+
return exports.PersonalAccessToken.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5340
|
+
},
|
|
5341
|
+
fromPartial(object) {
|
|
5342
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5343
|
+
const message = createBasePersonalAccessToken();
|
|
5344
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
5345
|
+
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
5346
|
+
message.userId = (_c = object.userId) !== null && _c !== void 0 ? _c : "";
|
|
5347
|
+
message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
|
|
5348
|
+
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
5349
|
+
message.expiresAt = (_f = object.expiresAt) !== null && _f !== void 0 ? _f : undefined;
|
|
5350
|
+
message.lastUsedAt = (_g = object.lastUsedAt) !== null && _g !== void 0 ? _g : undefined;
|
|
5351
|
+
message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : undefined;
|
|
5352
|
+
message.revokedAt = (_j = object.revokedAt) !== null && _j !== void 0 ? _j : undefined;
|
|
5353
|
+
return message;
|
|
5354
|
+
},
|
|
5355
|
+
};
|
|
5356
|
+
function createBasePasswordStrength() {
|
|
5357
|
+
return {
|
|
5358
|
+
validPassword: false,
|
|
5359
|
+
score: 0,
|
|
5360
|
+
breachedPassword: false,
|
|
5361
|
+
strengthPolicy: "",
|
|
5362
|
+
breachDetectionOnCreate: false,
|
|
5363
|
+
feedback: undefined,
|
|
5364
|
+
};
|
|
5365
|
+
}
|
|
5366
|
+
exports.PasswordStrength = {
|
|
5367
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5368
|
+
if (message.validPassword !== false) {
|
|
5369
|
+
writer.uint32(8).bool(message.validPassword);
|
|
5370
|
+
}
|
|
5371
|
+
if (message.score !== 0) {
|
|
5372
|
+
writer.uint32(16).int32(message.score);
|
|
5373
|
+
}
|
|
5374
|
+
if (message.breachedPassword !== false) {
|
|
5375
|
+
writer.uint32(24).bool(message.breachedPassword);
|
|
5376
|
+
}
|
|
5377
|
+
if (message.strengthPolicy !== "") {
|
|
5378
|
+
writer.uint32(34).string(message.strengthPolicy);
|
|
5379
|
+
}
|
|
5380
|
+
if (message.breachDetectionOnCreate !== false) {
|
|
5381
|
+
writer.uint32(40).bool(message.breachDetectionOnCreate);
|
|
5382
|
+
}
|
|
5383
|
+
if (message.feedback !== undefined) {
|
|
5384
|
+
exports.PasswordStrengthFeedback.encode(message.feedback, writer.uint32(50).fork()).join();
|
|
5385
|
+
}
|
|
5386
|
+
return writer;
|
|
5387
|
+
},
|
|
5388
|
+
decode(input, length) {
|
|
5389
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5390
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5391
|
+
const message = createBasePasswordStrength();
|
|
5392
|
+
while (reader.pos < end) {
|
|
5393
|
+
const tag = reader.uint32();
|
|
5394
|
+
switch (tag >>> 3) {
|
|
5395
|
+
case 1: {
|
|
5396
|
+
if (tag !== 8) {
|
|
5397
|
+
break;
|
|
5398
|
+
}
|
|
5399
|
+
message.validPassword = reader.bool();
|
|
5400
|
+
continue;
|
|
5401
|
+
}
|
|
5402
|
+
case 2: {
|
|
5403
|
+
if (tag !== 16) {
|
|
5404
|
+
break;
|
|
5405
|
+
}
|
|
5406
|
+
message.score = reader.int32();
|
|
5407
|
+
continue;
|
|
5408
|
+
}
|
|
5409
|
+
case 3: {
|
|
5410
|
+
if (tag !== 24) {
|
|
5411
|
+
break;
|
|
5412
|
+
}
|
|
5413
|
+
message.breachedPassword = reader.bool();
|
|
5414
|
+
continue;
|
|
5415
|
+
}
|
|
5416
|
+
case 4: {
|
|
5417
|
+
if (tag !== 34) {
|
|
5418
|
+
break;
|
|
5419
|
+
}
|
|
5420
|
+
message.strengthPolicy = reader.string();
|
|
5421
|
+
continue;
|
|
5422
|
+
}
|
|
5423
|
+
case 5: {
|
|
5424
|
+
if (tag !== 40) {
|
|
5425
|
+
break;
|
|
5426
|
+
}
|
|
5427
|
+
message.breachDetectionOnCreate = reader.bool();
|
|
5428
|
+
continue;
|
|
5429
|
+
}
|
|
5430
|
+
case 6: {
|
|
5431
|
+
if (tag !== 50) {
|
|
5432
|
+
break;
|
|
5433
|
+
}
|
|
5434
|
+
message.feedback = exports.PasswordStrengthFeedback.decode(reader, reader.uint32());
|
|
5435
|
+
continue;
|
|
5436
|
+
}
|
|
5437
|
+
}
|
|
5438
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5439
|
+
break;
|
|
5440
|
+
}
|
|
5441
|
+
reader.skip(tag & 7);
|
|
5442
|
+
}
|
|
5443
|
+
return message;
|
|
5444
|
+
},
|
|
5445
|
+
fromJSON(object) {
|
|
5446
|
+
return {
|
|
5447
|
+
validPassword: isSet(object.validPassword)
|
|
5448
|
+
? globalThis.Boolean(object.validPassword)
|
|
5449
|
+
: isSet(object.valid_password)
|
|
5450
|
+
? globalThis.Boolean(object.valid_password)
|
|
5451
|
+
: false,
|
|
5452
|
+
score: isSet(object.score) ? globalThis.Number(object.score) : 0,
|
|
5453
|
+
breachedPassword: isSet(object.breachedPassword)
|
|
5454
|
+
? globalThis.Boolean(object.breachedPassword)
|
|
5455
|
+
: isSet(object.breached_password)
|
|
5456
|
+
? globalThis.Boolean(object.breached_password)
|
|
5457
|
+
: false,
|
|
5458
|
+
strengthPolicy: isSet(object.strengthPolicy)
|
|
5459
|
+
? globalThis.String(object.strengthPolicy)
|
|
5460
|
+
: isSet(object.strength_policy)
|
|
5461
|
+
? globalThis.String(object.strength_policy)
|
|
5462
|
+
: "",
|
|
5463
|
+
breachDetectionOnCreate: isSet(object.breachDetectionOnCreate)
|
|
5464
|
+
? globalThis.Boolean(object.breachDetectionOnCreate)
|
|
5465
|
+
: isSet(object.breach_detection_on_create)
|
|
5466
|
+
? globalThis.Boolean(object.breach_detection_on_create)
|
|
5467
|
+
: false,
|
|
5468
|
+
feedback: isSet(object.feedback) ? exports.PasswordStrengthFeedback.fromJSON(object.feedback) : undefined,
|
|
5469
|
+
};
|
|
5470
|
+
},
|
|
5471
|
+
toJSON(message) {
|
|
5472
|
+
const obj = {};
|
|
5473
|
+
if (message.validPassword !== false) {
|
|
5474
|
+
obj.validPassword = message.validPassword;
|
|
5475
|
+
}
|
|
5476
|
+
if (message.score !== 0) {
|
|
5477
|
+
obj.score = Math.round(message.score);
|
|
5478
|
+
}
|
|
5479
|
+
if (message.breachedPassword !== false) {
|
|
5480
|
+
obj.breachedPassword = message.breachedPassword;
|
|
5481
|
+
}
|
|
5482
|
+
if (message.strengthPolicy !== "") {
|
|
5483
|
+
obj.strengthPolicy = message.strengthPolicy;
|
|
5484
|
+
}
|
|
5485
|
+
if (message.breachDetectionOnCreate !== false) {
|
|
5486
|
+
obj.breachDetectionOnCreate = message.breachDetectionOnCreate;
|
|
5487
|
+
}
|
|
5488
|
+
if (message.feedback !== undefined) {
|
|
5489
|
+
obj.feedback = exports.PasswordStrengthFeedback.toJSON(message.feedback);
|
|
5490
|
+
}
|
|
5491
|
+
return obj;
|
|
5492
|
+
},
|
|
5493
|
+
create(base) {
|
|
5494
|
+
return exports.PasswordStrength.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5495
|
+
},
|
|
5496
|
+
fromPartial(object) {
|
|
5497
|
+
var _a, _b, _c, _d, _e;
|
|
5498
|
+
const message = createBasePasswordStrength();
|
|
5499
|
+
message.validPassword = (_a = object.validPassword) !== null && _a !== void 0 ? _a : false;
|
|
5500
|
+
message.score = (_b = object.score) !== null && _b !== void 0 ? _b : 0;
|
|
5501
|
+
message.breachedPassword = (_c = object.breachedPassword) !== null && _c !== void 0 ? _c : false;
|
|
5502
|
+
message.strengthPolicy = (_d = object.strengthPolicy) !== null && _d !== void 0 ? _d : "";
|
|
5503
|
+
message.breachDetectionOnCreate = (_e = object.breachDetectionOnCreate) !== null && _e !== void 0 ? _e : false;
|
|
5504
|
+
message.feedback = (object.feedback !== undefined && object.feedback !== null)
|
|
5505
|
+
? exports.PasswordStrengthFeedback.fromPartial(object.feedback)
|
|
5506
|
+
: undefined;
|
|
5507
|
+
return message;
|
|
5508
|
+
},
|
|
5509
|
+
};
|
|
5510
|
+
function createBasePasswordStrengthFeedback() {
|
|
5511
|
+
return { warning: "", suggestions: [], requirements: undefined };
|
|
5512
|
+
}
|
|
5513
|
+
exports.PasswordStrengthFeedback = {
|
|
5514
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5515
|
+
if (message.warning !== "") {
|
|
5516
|
+
writer.uint32(10).string(message.warning);
|
|
5517
|
+
}
|
|
5518
|
+
for (const v of message.suggestions) {
|
|
5519
|
+
writer.uint32(18).string(v);
|
|
5520
|
+
}
|
|
5521
|
+
if (message.requirements !== undefined) {
|
|
5522
|
+
exports.PasswordStrengthRequirements.encode(message.requirements, writer.uint32(26).fork()).join();
|
|
5523
|
+
}
|
|
5524
|
+
return writer;
|
|
5525
|
+
},
|
|
5526
|
+
decode(input, length) {
|
|
5527
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5528
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5529
|
+
const message = createBasePasswordStrengthFeedback();
|
|
5530
|
+
while (reader.pos < end) {
|
|
5531
|
+
const tag = reader.uint32();
|
|
5532
|
+
switch (tag >>> 3) {
|
|
5533
|
+
case 1: {
|
|
5534
|
+
if (tag !== 10) {
|
|
5535
|
+
break;
|
|
5536
|
+
}
|
|
5537
|
+
message.warning = reader.string();
|
|
5538
|
+
continue;
|
|
5539
|
+
}
|
|
5540
|
+
case 2: {
|
|
5541
|
+
if (tag !== 18) {
|
|
5542
|
+
break;
|
|
5543
|
+
}
|
|
5544
|
+
message.suggestions.push(reader.string());
|
|
5545
|
+
continue;
|
|
5546
|
+
}
|
|
5547
|
+
case 3: {
|
|
5548
|
+
if (tag !== 26) {
|
|
5549
|
+
break;
|
|
5550
|
+
}
|
|
5551
|
+
message.requirements = exports.PasswordStrengthRequirements.decode(reader, reader.uint32());
|
|
5552
|
+
continue;
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5556
|
+
break;
|
|
5557
|
+
}
|
|
5558
|
+
reader.skip(tag & 7);
|
|
5559
|
+
}
|
|
5560
|
+
return message;
|
|
5561
|
+
},
|
|
5562
|
+
fromJSON(object) {
|
|
5563
|
+
return {
|
|
5564
|
+
warning: isSet(object.warning) ? globalThis.String(object.warning) : "",
|
|
5565
|
+
suggestions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.suggestions)
|
|
5566
|
+
? object.suggestions.map((e) => globalThis.String(e))
|
|
5567
|
+
: [],
|
|
5568
|
+
requirements: isSet(object.requirements) ? exports.PasswordStrengthRequirements.fromJSON(object.requirements) : undefined,
|
|
5569
|
+
};
|
|
5570
|
+
},
|
|
5571
|
+
toJSON(message) {
|
|
5572
|
+
var _a;
|
|
5573
|
+
const obj = {};
|
|
5574
|
+
if (message.warning !== "") {
|
|
5575
|
+
obj.warning = message.warning;
|
|
5576
|
+
}
|
|
5577
|
+
if ((_a = message.suggestions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
5578
|
+
obj.suggestions = message.suggestions;
|
|
5579
|
+
}
|
|
5580
|
+
if (message.requirements !== undefined) {
|
|
5581
|
+
obj.requirements = exports.PasswordStrengthRequirements.toJSON(message.requirements);
|
|
5582
|
+
}
|
|
5583
|
+
return obj;
|
|
5584
|
+
},
|
|
5585
|
+
create(base) {
|
|
5586
|
+
return exports.PasswordStrengthFeedback.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5587
|
+
},
|
|
5588
|
+
fromPartial(object) {
|
|
5589
|
+
var _a;
|
|
5590
|
+
var _b;
|
|
5591
|
+
const message = createBasePasswordStrengthFeedback();
|
|
5592
|
+
message.warning = (_b = object.warning) !== null && _b !== void 0 ? _b : "";
|
|
5593
|
+
message.suggestions = ((_a = object.suggestions) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
5594
|
+
message.requirements = (object.requirements !== undefined && object.requirements !== null)
|
|
5595
|
+
? exports.PasswordStrengthRequirements.fromPartial(object.requirements)
|
|
5596
|
+
: undefined;
|
|
5597
|
+
return message;
|
|
5598
|
+
},
|
|
5599
|
+
};
|
|
5600
|
+
function createBasePasswordStrengthRequirements() {
|
|
5601
|
+
return {
|
|
5602
|
+
hasLowerCase: false,
|
|
5603
|
+
hasUpperCase: false,
|
|
5604
|
+
hasDigit: false,
|
|
5605
|
+
hasSymbol: false,
|
|
5606
|
+
missingComplexity: 0,
|
|
5607
|
+
missingCharacters: 0,
|
|
5608
|
+
};
|
|
5609
|
+
}
|
|
5610
|
+
exports.PasswordStrengthRequirements = {
|
|
5611
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5612
|
+
if (message.hasLowerCase !== false) {
|
|
5613
|
+
writer.uint32(8).bool(message.hasLowerCase);
|
|
5614
|
+
}
|
|
5615
|
+
if (message.hasUpperCase !== false) {
|
|
5616
|
+
writer.uint32(16).bool(message.hasUpperCase);
|
|
5617
|
+
}
|
|
5618
|
+
if (message.hasDigit !== false) {
|
|
5619
|
+
writer.uint32(24).bool(message.hasDigit);
|
|
5620
|
+
}
|
|
5621
|
+
if (message.hasSymbol !== false) {
|
|
5622
|
+
writer.uint32(32).bool(message.hasSymbol);
|
|
5623
|
+
}
|
|
5624
|
+
if (message.missingComplexity !== 0) {
|
|
5625
|
+
writer.uint32(40).int32(message.missingComplexity);
|
|
5626
|
+
}
|
|
5627
|
+
if (message.missingCharacters !== 0) {
|
|
5628
|
+
writer.uint32(48).int32(message.missingCharacters);
|
|
5629
|
+
}
|
|
5630
|
+
return writer;
|
|
5631
|
+
},
|
|
5632
|
+
decode(input, length) {
|
|
5633
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5634
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5635
|
+
const message = createBasePasswordStrengthRequirements();
|
|
5636
|
+
while (reader.pos < end) {
|
|
5637
|
+
const tag = reader.uint32();
|
|
5638
|
+
switch (tag >>> 3) {
|
|
5639
|
+
case 1: {
|
|
5640
|
+
if (tag !== 8) {
|
|
5641
|
+
break;
|
|
5642
|
+
}
|
|
5643
|
+
message.hasLowerCase = reader.bool();
|
|
5644
|
+
continue;
|
|
5645
|
+
}
|
|
5646
|
+
case 2: {
|
|
5647
|
+
if (tag !== 16) {
|
|
5648
|
+
break;
|
|
5649
|
+
}
|
|
5650
|
+
message.hasUpperCase = reader.bool();
|
|
5651
|
+
continue;
|
|
5652
|
+
}
|
|
5653
|
+
case 3: {
|
|
5654
|
+
if (tag !== 24) {
|
|
5655
|
+
break;
|
|
5656
|
+
}
|
|
5657
|
+
message.hasDigit = reader.bool();
|
|
5658
|
+
continue;
|
|
5659
|
+
}
|
|
5660
|
+
case 4: {
|
|
5661
|
+
if (tag !== 32) {
|
|
5662
|
+
break;
|
|
5663
|
+
}
|
|
5664
|
+
message.hasSymbol = reader.bool();
|
|
5665
|
+
continue;
|
|
5666
|
+
}
|
|
5667
|
+
case 5: {
|
|
5668
|
+
if (tag !== 40) {
|
|
5669
|
+
break;
|
|
5670
|
+
}
|
|
5671
|
+
message.missingComplexity = reader.int32();
|
|
5672
|
+
continue;
|
|
5673
|
+
}
|
|
5674
|
+
case 6: {
|
|
5675
|
+
if (tag !== 48) {
|
|
5676
|
+
break;
|
|
5677
|
+
}
|
|
5678
|
+
message.missingCharacters = reader.int32();
|
|
5679
|
+
continue;
|
|
5680
|
+
}
|
|
5681
|
+
}
|
|
5682
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5683
|
+
break;
|
|
5684
|
+
}
|
|
5685
|
+
reader.skip(tag & 7);
|
|
5686
|
+
}
|
|
5687
|
+
return message;
|
|
5688
|
+
},
|
|
5689
|
+
fromJSON(object) {
|
|
5690
|
+
return {
|
|
5691
|
+
hasLowerCase: isSet(object.hasLowerCase)
|
|
5692
|
+
? globalThis.Boolean(object.hasLowerCase)
|
|
5693
|
+
: isSet(object.has_lower_case)
|
|
5694
|
+
? globalThis.Boolean(object.has_lower_case)
|
|
5695
|
+
: false,
|
|
5696
|
+
hasUpperCase: isSet(object.hasUpperCase)
|
|
5697
|
+
? globalThis.Boolean(object.hasUpperCase)
|
|
5698
|
+
: isSet(object.has_upper_case)
|
|
5699
|
+
? globalThis.Boolean(object.has_upper_case)
|
|
5700
|
+
: false,
|
|
5701
|
+
hasDigit: isSet(object.hasDigit)
|
|
5702
|
+
? globalThis.Boolean(object.hasDigit)
|
|
5703
|
+
: isSet(object.has_digit)
|
|
5704
|
+
? globalThis.Boolean(object.has_digit)
|
|
5705
|
+
: false,
|
|
5706
|
+
hasSymbol: isSet(object.hasSymbol)
|
|
5707
|
+
? globalThis.Boolean(object.hasSymbol)
|
|
5708
|
+
: isSet(object.has_symbol)
|
|
5709
|
+
? globalThis.Boolean(object.has_symbol)
|
|
5710
|
+
: false,
|
|
5711
|
+
missingComplexity: isSet(object.missingComplexity)
|
|
5712
|
+
? globalThis.Number(object.missingComplexity)
|
|
5713
|
+
: isSet(object.missing_complexity)
|
|
5714
|
+
? globalThis.Number(object.missing_complexity)
|
|
5715
|
+
: 0,
|
|
5716
|
+
missingCharacters: isSet(object.missingCharacters)
|
|
5717
|
+
? globalThis.Number(object.missingCharacters)
|
|
5718
|
+
: isSet(object.missing_characters)
|
|
5719
|
+
? globalThis.Number(object.missing_characters)
|
|
5720
|
+
: 0,
|
|
5721
|
+
};
|
|
5722
|
+
},
|
|
5723
|
+
toJSON(message) {
|
|
5724
|
+
const obj = {};
|
|
5725
|
+
if (message.hasLowerCase !== false) {
|
|
5726
|
+
obj.hasLowerCase = message.hasLowerCase;
|
|
5727
|
+
}
|
|
5728
|
+
if (message.hasUpperCase !== false) {
|
|
5729
|
+
obj.hasUpperCase = message.hasUpperCase;
|
|
5730
|
+
}
|
|
5731
|
+
if (message.hasDigit !== false) {
|
|
5732
|
+
obj.hasDigit = message.hasDigit;
|
|
5733
|
+
}
|
|
5734
|
+
if (message.hasSymbol !== false) {
|
|
5735
|
+
obj.hasSymbol = message.hasSymbol;
|
|
5736
|
+
}
|
|
5737
|
+
if (message.missingComplexity !== 0) {
|
|
5738
|
+
obj.missingComplexity = Math.round(message.missingComplexity);
|
|
5739
|
+
}
|
|
5740
|
+
if (message.missingCharacters !== 0) {
|
|
5741
|
+
obj.missingCharacters = Math.round(message.missingCharacters);
|
|
5742
|
+
}
|
|
5743
|
+
return obj;
|
|
5744
|
+
},
|
|
5745
|
+
create(base) {
|
|
5746
|
+
return exports.PasswordStrengthRequirements.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5747
|
+
},
|
|
5748
|
+
fromPartial(object) {
|
|
5749
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5750
|
+
const message = createBasePasswordStrengthRequirements();
|
|
5751
|
+
message.hasLowerCase = (_a = object.hasLowerCase) !== null && _a !== void 0 ? _a : false;
|
|
5752
|
+
message.hasUpperCase = (_b = object.hasUpperCase) !== null && _b !== void 0 ? _b : false;
|
|
5753
|
+
message.hasDigit = (_c = object.hasDigit) !== null && _c !== void 0 ? _c : false;
|
|
5754
|
+
message.hasSymbol = (_d = object.hasSymbol) !== null && _d !== void 0 ? _d : false;
|
|
5755
|
+
message.missingComplexity = (_e = object.missingComplexity) !== null && _e !== void 0 ? _e : 0;
|
|
5756
|
+
message.missingCharacters = (_f = object.missingCharacters) !== null && _f !== void 0 ? _f : 0;
|
|
5757
|
+
return message;
|
|
5758
|
+
},
|
|
5759
|
+
};
|
|
5760
|
+
function createBaseAuthError() {
|
|
5761
|
+
return { code: "", message: "", stytchRequestId: "", details: undefined };
|
|
5762
|
+
}
|
|
5763
|
+
exports.AuthError = {
|
|
5764
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5765
|
+
if (message.code !== "") {
|
|
5766
|
+
writer.uint32(10).string(message.code);
|
|
5767
|
+
}
|
|
5768
|
+
if (message.message !== "") {
|
|
5769
|
+
writer.uint32(18).string(message.message);
|
|
5770
|
+
}
|
|
5771
|
+
if (message.stytchRequestId !== "") {
|
|
5772
|
+
writer.uint32(26).string(message.stytchRequestId);
|
|
5773
|
+
}
|
|
5774
|
+
if (message.details !== undefined) {
|
|
5775
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.details), writer.uint32(34).fork()).join();
|
|
5776
|
+
}
|
|
5777
|
+
return writer;
|
|
5778
|
+
},
|
|
5779
|
+
decode(input, length) {
|
|
5780
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5781
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5782
|
+
const message = createBaseAuthError();
|
|
5783
|
+
while (reader.pos < end) {
|
|
5784
|
+
const tag = reader.uint32();
|
|
5785
|
+
switch (tag >>> 3) {
|
|
5786
|
+
case 1: {
|
|
5787
|
+
if (tag !== 10) {
|
|
5788
|
+
break;
|
|
5789
|
+
}
|
|
5790
|
+
message.code = reader.string();
|
|
5791
|
+
continue;
|
|
5792
|
+
}
|
|
5793
|
+
case 2: {
|
|
5794
|
+
if (tag !== 18) {
|
|
5795
|
+
break;
|
|
5796
|
+
}
|
|
5797
|
+
message.message = reader.string();
|
|
5798
|
+
continue;
|
|
5799
|
+
}
|
|
5800
|
+
case 3: {
|
|
5801
|
+
if (tag !== 26) {
|
|
5802
|
+
break;
|
|
5803
|
+
}
|
|
5804
|
+
message.stytchRequestId = reader.string();
|
|
5805
|
+
continue;
|
|
5806
|
+
}
|
|
5807
|
+
case 4: {
|
|
5808
|
+
if (tag !== 34) {
|
|
5809
|
+
break;
|
|
5810
|
+
}
|
|
5811
|
+
message.details = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
5812
|
+
continue;
|
|
5813
|
+
}
|
|
5814
|
+
}
|
|
5815
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5816
|
+
break;
|
|
5817
|
+
}
|
|
5818
|
+
reader.skip(tag & 7);
|
|
5819
|
+
}
|
|
5820
|
+
return message;
|
|
5821
|
+
},
|
|
5822
|
+
fromJSON(object) {
|
|
5823
|
+
return {
|
|
5824
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
5825
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
5826
|
+
stytchRequestId: isSet(object.stytchRequestId)
|
|
5827
|
+
? globalThis.String(object.stytchRequestId)
|
|
5828
|
+
: isSet(object.stytch_request_id)
|
|
5829
|
+
? globalThis.String(object.stytch_request_id)
|
|
5830
|
+
: "",
|
|
5831
|
+
details: isObject(object.details) ? object.details : undefined,
|
|
5832
|
+
};
|
|
5833
|
+
},
|
|
5834
|
+
toJSON(message) {
|
|
5835
|
+
const obj = {};
|
|
5836
|
+
if (message.code !== "") {
|
|
5837
|
+
obj.code = message.code;
|
|
5838
|
+
}
|
|
5839
|
+
if (message.message !== "") {
|
|
5840
|
+
obj.message = message.message;
|
|
5841
|
+
}
|
|
5842
|
+
if (message.stytchRequestId !== "") {
|
|
5843
|
+
obj.stytchRequestId = message.stytchRequestId;
|
|
5844
|
+
}
|
|
5845
|
+
if (message.details !== undefined) {
|
|
5846
|
+
obj.details = message.details;
|
|
5847
|
+
}
|
|
5848
|
+
return obj;
|
|
5849
|
+
},
|
|
5850
|
+
create(base) {
|
|
5851
|
+
return exports.AuthError.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5852
|
+
},
|
|
5853
|
+
fromPartial(object) {
|
|
5854
|
+
var _a, _b, _c, _d;
|
|
5855
|
+
const message = createBaseAuthError();
|
|
5856
|
+
message.code = (_a = object.code) !== null && _a !== void 0 ? _a : "";
|
|
5857
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
5858
|
+
message.stytchRequestId = (_c = object.stytchRequestId) !== null && _c !== void 0 ? _c : "";
|
|
5859
|
+
message.details = (_d = object.details) !== null && _d !== void 0 ? _d : undefined;
|
|
5860
|
+
return message;
|
|
5861
|
+
},
|
|
5862
|
+
};
|
|
5123
5863
|
function toTimestamp(date) {
|
|
5124
5864
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
5125
5865
|
const nanos = (date.getTime() % 1000) * 1000000;
|