weave-typescript 0.42.8 → 0.44.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/weaveapi/agent/v1/agent.pb.d.ts +225 -0
- package/dist/weaveapi/agent/v1/agent.pb.js +2389 -0
- package/dist/weaveapi/agent/v1/service.pb.d.ts +374 -0
- package/dist/weaveapi/agent/v1/service.pb.js +2939 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +34 -0
- package/dist/weaveapi/auth/v1/auth.pb.js +486 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +31 -1
- package/dist/weaveapi/auth/v1/service.pb.js +351 -1
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +369 -0
- package/dist/weaveapi/workflow/v1/service.pb.js +2933 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +297 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +3226 -0
- package/dist/weavesql/weavedb/agent_sql.d.ts +541 -0
- package/dist/weavesql/weavedb/agent_sql.js +844 -0
- package/dist/weavesql/weavedb/auth_identity_sql.d.ts +81 -0
- package/dist/weavesql/weavedb/auth_identity_sql.js +181 -2
- package/dist/weavesql/weavedb/workflow_sql.d.ts +567 -86
- package/dist/weavesql/weavedb/workflow_sql.js +906 -178
- package/package.json +1 -1
|
@@ -110,6 +110,14 @@ export declare enum InviteRecoveryStatus {
|
|
|
110
110
|
}
|
|
111
111
|
export declare function inviteRecoveryStatusFromJSON(object: any): InviteRecoveryStatus;
|
|
112
112
|
export declare function inviteRecoveryStatusToJSON(object: InviteRecoveryStatus): string;
|
|
113
|
+
export declare enum AuthorizationDecision {
|
|
114
|
+
AUTHORIZATION_DECISION_UNSPECIFIED = 0,
|
|
115
|
+
AUTHORIZATION_DECISION_ALLOWED = 1,
|
|
116
|
+
AUTHORIZATION_DECISION_DENIED = 2,
|
|
117
|
+
UNRECOGNIZED = -1
|
|
118
|
+
}
|
|
119
|
+
export declare function authorizationDecisionFromJSON(object: any): AuthorizationDecision;
|
|
120
|
+
export declare function authorizationDecisionToJSON(object: AuthorizationDecision): string;
|
|
113
121
|
export interface AuthSession {
|
|
114
122
|
sessionId: string;
|
|
115
123
|
user: AuthUser | undefined;
|
|
@@ -368,6 +376,31 @@ export interface SupportAccessSession {
|
|
|
368
376
|
startedAt: Date | undefined;
|
|
369
377
|
endedAt: Date | undefined;
|
|
370
378
|
}
|
|
379
|
+
export interface AuthorizationDecisionEvent {
|
|
380
|
+
id: string;
|
|
381
|
+
organizationId: string;
|
|
382
|
+
actingUserId: string;
|
|
383
|
+
actorOrganizationMembershipId: string;
|
|
384
|
+
actorIdentityLinkId: string;
|
|
385
|
+
rbacRoleIds: string[];
|
|
386
|
+
orgTeamIds: string[];
|
|
387
|
+
platformGrantIds: string[];
|
|
388
|
+
supportAccessSessionId: string;
|
|
389
|
+
featureFlagKey: string;
|
|
390
|
+
featureFlagProvider: string;
|
|
391
|
+
featureFlagVariant: string;
|
|
392
|
+
resourceId: string;
|
|
393
|
+
resourceInstanceId: string;
|
|
394
|
+
action: string;
|
|
395
|
+
decision: AuthorizationDecision;
|
|
396
|
+
reasonCode: string;
|
|
397
|
+
safeMessage: string;
|
|
398
|
+
usedSupportElevation: boolean;
|
|
399
|
+
metadata: {
|
|
400
|
+
[key: string]: any;
|
|
401
|
+
} | undefined;
|
|
402
|
+
createdAt: Date | undefined;
|
|
403
|
+
}
|
|
371
404
|
export declare const AuthSession: MessageFns<AuthSession>;
|
|
372
405
|
export declare const AuthUser: MessageFns<AuthUser>;
|
|
373
406
|
export declare const AuthUser_OrganizationPagePositionsEntry: MessageFns<AuthUser_OrganizationPagePositionsEntry>;
|
|
@@ -391,6 +424,7 @@ export declare const ScimConnection: MessageFns<ScimConnection>;
|
|
|
391
424
|
export declare const ScimTokenRotation: MessageFns<ScimTokenRotation>;
|
|
392
425
|
export declare const ScimGroupMapping: MessageFns<ScimGroupMapping>;
|
|
393
426
|
export declare const SupportAccessSession: MessageFns<SupportAccessSession>;
|
|
427
|
+
export declare const AuthorizationDecisionEvent: MessageFns<AuthorizationDecisionEvent>;
|
|
394
428
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
395
429
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
396
430
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -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.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.RbacPermission = exports.RbacRole = exports.RbacResource = exports.RbacPolicySummary = 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.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;
|
|
8
|
+
exports.AuthorizationDecisionEvent = exports.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.RbacPermission = exports.RbacRole = exports.RbacResource = exports.RbacPolicySummary = 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.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;
|
|
@@ -28,6 +28,8 @@ exports.inviteRecoveryReasonFromJSON = inviteRecoveryReasonFromJSON;
|
|
|
28
28
|
exports.inviteRecoveryReasonToJSON = inviteRecoveryReasonToJSON;
|
|
29
29
|
exports.inviteRecoveryStatusFromJSON = inviteRecoveryStatusFromJSON;
|
|
30
30
|
exports.inviteRecoveryStatusToJSON = inviteRecoveryStatusToJSON;
|
|
31
|
+
exports.authorizationDecisionFromJSON = authorizationDecisionFromJSON;
|
|
32
|
+
exports.authorizationDecisionToJSON = authorizationDecisionToJSON;
|
|
31
33
|
/* eslint-disable */
|
|
32
34
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
33
35
|
const struct_pb_1 = require("../../../google/protobuf/struct.pb");
|
|
@@ -572,6 +574,43 @@ function inviteRecoveryStatusToJSON(object) {
|
|
|
572
574
|
return "UNRECOGNIZED";
|
|
573
575
|
}
|
|
574
576
|
}
|
|
577
|
+
var AuthorizationDecision;
|
|
578
|
+
(function (AuthorizationDecision) {
|
|
579
|
+
AuthorizationDecision[AuthorizationDecision["AUTHORIZATION_DECISION_UNSPECIFIED"] = 0] = "AUTHORIZATION_DECISION_UNSPECIFIED";
|
|
580
|
+
AuthorizationDecision[AuthorizationDecision["AUTHORIZATION_DECISION_ALLOWED"] = 1] = "AUTHORIZATION_DECISION_ALLOWED";
|
|
581
|
+
AuthorizationDecision[AuthorizationDecision["AUTHORIZATION_DECISION_DENIED"] = 2] = "AUTHORIZATION_DECISION_DENIED";
|
|
582
|
+
AuthorizationDecision[AuthorizationDecision["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
583
|
+
})(AuthorizationDecision || (exports.AuthorizationDecision = AuthorizationDecision = {}));
|
|
584
|
+
function authorizationDecisionFromJSON(object) {
|
|
585
|
+
switch (object) {
|
|
586
|
+
case 0:
|
|
587
|
+
case "AUTHORIZATION_DECISION_UNSPECIFIED":
|
|
588
|
+
return AuthorizationDecision.AUTHORIZATION_DECISION_UNSPECIFIED;
|
|
589
|
+
case 1:
|
|
590
|
+
case "AUTHORIZATION_DECISION_ALLOWED":
|
|
591
|
+
return AuthorizationDecision.AUTHORIZATION_DECISION_ALLOWED;
|
|
592
|
+
case 2:
|
|
593
|
+
case "AUTHORIZATION_DECISION_DENIED":
|
|
594
|
+
return AuthorizationDecision.AUTHORIZATION_DECISION_DENIED;
|
|
595
|
+
case -1:
|
|
596
|
+
case "UNRECOGNIZED":
|
|
597
|
+
default:
|
|
598
|
+
return AuthorizationDecision.UNRECOGNIZED;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function authorizationDecisionToJSON(object) {
|
|
602
|
+
switch (object) {
|
|
603
|
+
case AuthorizationDecision.AUTHORIZATION_DECISION_UNSPECIFIED:
|
|
604
|
+
return "AUTHORIZATION_DECISION_UNSPECIFIED";
|
|
605
|
+
case AuthorizationDecision.AUTHORIZATION_DECISION_ALLOWED:
|
|
606
|
+
return "AUTHORIZATION_DECISION_ALLOWED";
|
|
607
|
+
case AuthorizationDecision.AUTHORIZATION_DECISION_DENIED:
|
|
608
|
+
return "AUTHORIZATION_DECISION_DENIED";
|
|
609
|
+
case AuthorizationDecision.UNRECOGNIZED:
|
|
610
|
+
default:
|
|
611
|
+
return "UNRECOGNIZED";
|
|
612
|
+
}
|
|
613
|
+
}
|
|
575
614
|
function createBaseAuthSession() {
|
|
576
615
|
return {
|
|
577
616
|
sessionId: "",
|
|
@@ -4635,6 +4674,452 @@ exports.SupportAccessSession = {
|
|
|
4635
4674
|
return message;
|
|
4636
4675
|
},
|
|
4637
4676
|
};
|
|
4677
|
+
function createBaseAuthorizationDecisionEvent() {
|
|
4678
|
+
return {
|
|
4679
|
+
id: "",
|
|
4680
|
+
organizationId: "",
|
|
4681
|
+
actingUserId: "",
|
|
4682
|
+
actorOrganizationMembershipId: "",
|
|
4683
|
+
actorIdentityLinkId: "",
|
|
4684
|
+
rbacRoleIds: [],
|
|
4685
|
+
orgTeamIds: [],
|
|
4686
|
+
platformGrantIds: [],
|
|
4687
|
+
supportAccessSessionId: "",
|
|
4688
|
+
featureFlagKey: "",
|
|
4689
|
+
featureFlagProvider: "",
|
|
4690
|
+
featureFlagVariant: "",
|
|
4691
|
+
resourceId: "",
|
|
4692
|
+
resourceInstanceId: "",
|
|
4693
|
+
action: "",
|
|
4694
|
+
decision: 0,
|
|
4695
|
+
reasonCode: "",
|
|
4696
|
+
safeMessage: "",
|
|
4697
|
+
usedSupportElevation: false,
|
|
4698
|
+
metadata: undefined,
|
|
4699
|
+
createdAt: undefined,
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
exports.AuthorizationDecisionEvent = {
|
|
4703
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4704
|
+
if (message.id !== "") {
|
|
4705
|
+
writer.uint32(10).string(message.id);
|
|
4706
|
+
}
|
|
4707
|
+
if (message.organizationId !== "") {
|
|
4708
|
+
writer.uint32(18).string(message.organizationId);
|
|
4709
|
+
}
|
|
4710
|
+
if (message.actingUserId !== "") {
|
|
4711
|
+
writer.uint32(26).string(message.actingUserId);
|
|
4712
|
+
}
|
|
4713
|
+
if (message.actorOrganizationMembershipId !== "") {
|
|
4714
|
+
writer.uint32(34).string(message.actorOrganizationMembershipId);
|
|
4715
|
+
}
|
|
4716
|
+
if (message.actorIdentityLinkId !== "") {
|
|
4717
|
+
writer.uint32(42).string(message.actorIdentityLinkId);
|
|
4718
|
+
}
|
|
4719
|
+
for (const v of message.rbacRoleIds) {
|
|
4720
|
+
writer.uint32(50).string(v);
|
|
4721
|
+
}
|
|
4722
|
+
for (const v of message.orgTeamIds) {
|
|
4723
|
+
writer.uint32(58).string(v);
|
|
4724
|
+
}
|
|
4725
|
+
for (const v of message.platformGrantIds) {
|
|
4726
|
+
writer.uint32(66).string(v);
|
|
4727
|
+
}
|
|
4728
|
+
if (message.supportAccessSessionId !== "") {
|
|
4729
|
+
writer.uint32(74).string(message.supportAccessSessionId);
|
|
4730
|
+
}
|
|
4731
|
+
if (message.featureFlagKey !== "") {
|
|
4732
|
+
writer.uint32(82).string(message.featureFlagKey);
|
|
4733
|
+
}
|
|
4734
|
+
if (message.featureFlagProvider !== "") {
|
|
4735
|
+
writer.uint32(90).string(message.featureFlagProvider);
|
|
4736
|
+
}
|
|
4737
|
+
if (message.featureFlagVariant !== "") {
|
|
4738
|
+
writer.uint32(98).string(message.featureFlagVariant);
|
|
4739
|
+
}
|
|
4740
|
+
if (message.resourceId !== "") {
|
|
4741
|
+
writer.uint32(106).string(message.resourceId);
|
|
4742
|
+
}
|
|
4743
|
+
if (message.resourceInstanceId !== "") {
|
|
4744
|
+
writer.uint32(114).string(message.resourceInstanceId);
|
|
4745
|
+
}
|
|
4746
|
+
if (message.action !== "") {
|
|
4747
|
+
writer.uint32(122).string(message.action);
|
|
4748
|
+
}
|
|
4749
|
+
if (message.decision !== 0) {
|
|
4750
|
+
writer.uint32(128).int32(message.decision);
|
|
4751
|
+
}
|
|
4752
|
+
if (message.reasonCode !== "") {
|
|
4753
|
+
writer.uint32(138).string(message.reasonCode);
|
|
4754
|
+
}
|
|
4755
|
+
if (message.safeMessage !== "") {
|
|
4756
|
+
writer.uint32(146).string(message.safeMessage);
|
|
4757
|
+
}
|
|
4758
|
+
if (message.usedSupportElevation !== false) {
|
|
4759
|
+
writer.uint32(152).bool(message.usedSupportElevation);
|
|
4760
|
+
}
|
|
4761
|
+
if (message.metadata !== undefined) {
|
|
4762
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(162).fork()).join();
|
|
4763
|
+
}
|
|
4764
|
+
if (message.createdAt !== undefined) {
|
|
4765
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(170).fork()).join();
|
|
4766
|
+
}
|
|
4767
|
+
return writer;
|
|
4768
|
+
},
|
|
4769
|
+
decode(input, length) {
|
|
4770
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4771
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4772
|
+
const message = createBaseAuthorizationDecisionEvent();
|
|
4773
|
+
while (reader.pos < end) {
|
|
4774
|
+
const tag = reader.uint32();
|
|
4775
|
+
switch (tag >>> 3) {
|
|
4776
|
+
case 1: {
|
|
4777
|
+
if (tag !== 10) {
|
|
4778
|
+
break;
|
|
4779
|
+
}
|
|
4780
|
+
message.id = reader.string();
|
|
4781
|
+
continue;
|
|
4782
|
+
}
|
|
4783
|
+
case 2: {
|
|
4784
|
+
if (tag !== 18) {
|
|
4785
|
+
break;
|
|
4786
|
+
}
|
|
4787
|
+
message.organizationId = reader.string();
|
|
4788
|
+
continue;
|
|
4789
|
+
}
|
|
4790
|
+
case 3: {
|
|
4791
|
+
if (tag !== 26) {
|
|
4792
|
+
break;
|
|
4793
|
+
}
|
|
4794
|
+
message.actingUserId = reader.string();
|
|
4795
|
+
continue;
|
|
4796
|
+
}
|
|
4797
|
+
case 4: {
|
|
4798
|
+
if (tag !== 34) {
|
|
4799
|
+
break;
|
|
4800
|
+
}
|
|
4801
|
+
message.actorOrganizationMembershipId = reader.string();
|
|
4802
|
+
continue;
|
|
4803
|
+
}
|
|
4804
|
+
case 5: {
|
|
4805
|
+
if (tag !== 42) {
|
|
4806
|
+
break;
|
|
4807
|
+
}
|
|
4808
|
+
message.actorIdentityLinkId = reader.string();
|
|
4809
|
+
continue;
|
|
4810
|
+
}
|
|
4811
|
+
case 6: {
|
|
4812
|
+
if (tag !== 50) {
|
|
4813
|
+
break;
|
|
4814
|
+
}
|
|
4815
|
+
message.rbacRoleIds.push(reader.string());
|
|
4816
|
+
continue;
|
|
4817
|
+
}
|
|
4818
|
+
case 7: {
|
|
4819
|
+
if (tag !== 58) {
|
|
4820
|
+
break;
|
|
4821
|
+
}
|
|
4822
|
+
message.orgTeamIds.push(reader.string());
|
|
4823
|
+
continue;
|
|
4824
|
+
}
|
|
4825
|
+
case 8: {
|
|
4826
|
+
if (tag !== 66) {
|
|
4827
|
+
break;
|
|
4828
|
+
}
|
|
4829
|
+
message.platformGrantIds.push(reader.string());
|
|
4830
|
+
continue;
|
|
4831
|
+
}
|
|
4832
|
+
case 9: {
|
|
4833
|
+
if (tag !== 74) {
|
|
4834
|
+
break;
|
|
4835
|
+
}
|
|
4836
|
+
message.supportAccessSessionId = reader.string();
|
|
4837
|
+
continue;
|
|
4838
|
+
}
|
|
4839
|
+
case 10: {
|
|
4840
|
+
if (tag !== 82) {
|
|
4841
|
+
break;
|
|
4842
|
+
}
|
|
4843
|
+
message.featureFlagKey = reader.string();
|
|
4844
|
+
continue;
|
|
4845
|
+
}
|
|
4846
|
+
case 11: {
|
|
4847
|
+
if (tag !== 90) {
|
|
4848
|
+
break;
|
|
4849
|
+
}
|
|
4850
|
+
message.featureFlagProvider = reader.string();
|
|
4851
|
+
continue;
|
|
4852
|
+
}
|
|
4853
|
+
case 12: {
|
|
4854
|
+
if (tag !== 98) {
|
|
4855
|
+
break;
|
|
4856
|
+
}
|
|
4857
|
+
message.featureFlagVariant = reader.string();
|
|
4858
|
+
continue;
|
|
4859
|
+
}
|
|
4860
|
+
case 13: {
|
|
4861
|
+
if (tag !== 106) {
|
|
4862
|
+
break;
|
|
4863
|
+
}
|
|
4864
|
+
message.resourceId = reader.string();
|
|
4865
|
+
continue;
|
|
4866
|
+
}
|
|
4867
|
+
case 14: {
|
|
4868
|
+
if (tag !== 114) {
|
|
4869
|
+
break;
|
|
4870
|
+
}
|
|
4871
|
+
message.resourceInstanceId = reader.string();
|
|
4872
|
+
continue;
|
|
4873
|
+
}
|
|
4874
|
+
case 15: {
|
|
4875
|
+
if (tag !== 122) {
|
|
4876
|
+
break;
|
|
4877
|
+
}
|
|
4878
|
+
message.action = reader.string();
|
|
4879
|
+
continue;
|
|
4880
|
+
}
|
|
4881
|
+
case 16: {
|
|
4882
|
+
if (tag !== 128) {
|
|
4883
|
+
break;
|
|
4884
|
+
}
|
|
4885
|
+
message.decision = reader.int32();
|
|
4886
|
+
continue;
|
|
4887
|
+
}
|
|
4888
|
+
case 17: {
|
|
4889
|
+
if (tag !== 138) {
|
|
4890
|
+
break;
|
|
4891
|
+
}
|
|
4892
|
+
message.reasonCode = reader.string();
|
|
4893
|
+
continue;
|
|
4894
|
+
}
|
|
4895
|
+
case 18: {
|
|
4896
|
+
if (tag !== 146) {
|
|
4897
|
+
break;
|
|
4898
|
+
}
|
|
4899
|
+
message.safeMessage = reader.string();
|
|
4900
|
+
continue;
|
|
4901
|
+
}
|
|
4902
|
+
case 19: {
|
|
4903
|
+
if (tag !== 152) {
|
|
4904
|
+
break;
|
|
4905
|
+
}
|
|
4906
|
+
message.usedSupportElevation = reader.bool();
|
|
4907
|
+
continue;
|
|
4908
|
+
}
|
|
4909
|
+
case 20: {
|
|
4910
|
+
if (tag !== 162) {
|
|
4911
|
+
break;
|
|
4912
|
+
}
|
|
4913
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
4914
|
+
continue;
|
|
4915
|
+
}
|
|
4916
|
+
case 21: {
|
|
4917
|
+
if (tag !== 170) {
|
|
4918
|
+
break;
|
|
4919
|
+
}
|
|
4920
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
4921
|
+
continue;
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4925
|
+
break;
|
|
4926
|
+
}
|
|
4927
|
+
reader.skip(tag & 7);
|
|
4928
|
+
}
|
|
4929
|
+
return message;
|
|
4930
|
+
},
|
|
4931
|
+
fromJSON(object) {
|
|
4932
|
+
return {
|
|
4933
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
4934
|
+
organizationId: isSet(object.organizationId)
|
|
4935
|
+
? globalThis.String(object.organizationId)
|
|
4936
|
+
: isSet(object.organization_id)
|
|
4937
|
+
? globalThis.String(object.organization_id)
|
|
4938
|
+
: "",
|
|
4939
|
+
actingUserId: isSet(object.actingUserId)
|
|
4940
|
+
? globalThis.String(object.actingUserId)
|
|
4941
|
+
: isSet(object.acting_user_id)
|
|
4942
|
+
? globalThis.String(object.acting_user_id)
|
|
4943
|
+
: "",
|
|
4944
|
+
actorOrganizationMembershipId: isSet(object.actorOrganizationMembershipId)
|
|
4945
|
+
? globalThis.String(object.actorOrganizationMembershipId)
|
|
4946
|
+
: isSet(object.actor_organization_membership_id)
|
|
4947
|
+
? globalThis.String(object.actor_organization_membership_id)
|
|
4948
|
+
: "",
|
|
4949
|
+
actorIdentityLinkId: isSet(object.actorIdentityLinkId)
|
|
4950
|
+
? globalThis.String(object.actorIdentityLinkId)
|
|
4951
|
+
: isSet(object.actor_identity_link_id)
|
|
4952
|
+
? globalThis.String(object.actor_identity_link_id)
|
|
4953
|
+
: "",
|
|
4954
|
+
rbacRoleIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.rbacRoleIds)
|
|
4955
|
+
? object.rbacRoleIds.map((e) => globalThis.String(e))
|
|
4956
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.rbac_role_ids)
|
|
4957
|
+
? object.rbac_role_ids.map((e) => globalThis.String(e))
|
|
4958
|
+
: [],
|
|
4959
|
+
orgTeamIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.orgTeamIds)
|
|
4960
|
+
? object.orgTeamIds.map((e) => globalThis.String(e))
|
|
4961
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.org_team_ids)
|
|
4962
|
+
? object.org_team_ids.map((e) => globalThis.String(e))
|
|
4963
|
+
: [],
|
|
4964
|
+
platformGrantIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.platformGrantIds)
|
|
4965
|
+
? object.platformGrantIds.map((e) => globalThis.String(e))
|
|
4966
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.platform_grant_ids)
|
|
4967
|
+
? object.platform_grant_ids.map((e) => globalThis.String(e))
|
|
4968
|
+
: [],
|
|
4969
|
+
supportAccessSessionId: isSet(object.supportAccessSessionId)
|
|
4970
|
+
? globalThis.String(object.supportAccessSessionId)
|
|
4971
|
+
: isSet(object.support_access_session_id)
|
|
4972
|
+
? globalThis.String(object.support_access_session_id)
|
|
4973
|
+
: "",
|
|
4974
|
+
featureFlagKey: isSet(object.featureFlagKey)
|
|
4975
|
+
? globalThis.String(object.featureFlagKey)
|
|
4976
|
+
: isSet(object.feature_flag_key)
|
|
4977
|
+
? globalThis.String(object.feature_flag_key)
|
|
4978
|
+
: "",
|
|
4979
|
+
featureFlagProvider: isSet(object.featureFlagProvider)
|
|
4980
|
+
? globalThis.String(object.featureFlagProvider)
|
|
4981
|
+
: isSet(object.feature_flag_provider)
|
|
4982
|
+
? globalThis.String(object.feature_flag_provider)
|
|
4983
|
+
: "",
|
|
4984
|
+
featureFlagVariant: isSet(object.featureFlagVariant)
|
|
4985
|
+
? globalThis.String(object.featureFlagVariant)
|
|
4986
|
+
: isSet(object.feature_flag_variant)
|
|
4987
|
+
? globalThis.String(object.feature_flag_variant)
|
|
4988
|
+
: "",
|
|
4989
|
+
resourceId: isSet(object.resourceId)
|
|
4990
|
+
? globalThis.String(object.resourceId)
|
|
4991
|
+
: isSet(object.resource_id)
|
|
4992
|
+
? globalThis.String(object.resource_id)
|
|
4993
|
+
: "",
|
|
4994
|
+
resourceInstanceId: isSet(object.resourceInstanceId)
|
|
4995
|
+
? globalThis.String(object.resourceInstanceId)
|
|
4996
|
+
: isSet(object.resource_instance_id)
|
|
4997
|
+
? globalThis.String(object.resource_instance_id)
|
|
4998
|
+
: "",
|
|
4999
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
5000
|
+
decision: isSet(object.decision) ? authorizationDecisionFromJSON(object.decision) : 0,
|
|
5001
|
+
reasonCode: isSet(object.reasonCode)
|
|
5002
|
+
? globalThis.String(object.reasonCode)
|
|
5003
|
+
: isSet(object.reason_code)
|
|
5004
|
+
? globalThis.String(object.reason_code)
|
|
5005
|
+
: "",
|
|
5006
|
+
safeMessage: isSet(object.safeMessage)
|
|
5007
|
+
? globalThis.String(object.safeMessage)
|
|
5008
|
+
: isSet(object.safe_message)
|
|
5009
|
+
? globalThis.String(object.safe_message)
|
|
5010
|
+
: "",
|
|
5011
|
+
usedSupportElevation: isSet(object.usedSupportElevation)
|
|
5012
|
+
? globalThis.Boolean(object.usedSupportElevation)
|
|
5013
|
+
: isSet(object.used_support_elevation)
|
|
5014
|
+
? globalThis.Boolean(object.used_support_elevation)
|
|
5015
|
+
: false,
|
|
5016
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
5017
|
+
createdAt: isSet(object.createdAt)
|
|
5018
|
+
? fromJsonTimestamp(object.createdAt)
|
|
5019
|
+
: isSet(object.created_at)
|
|
5020
|
+
? fromJsonTimestamp(object.created_at)
|
|
5021
|
+
: undefined,
|
|
5022
|
+
};
|
|
5023
|
+
},
|
|
5024
|
+
toJSON(message) {
|
|
5025
|
+
var _a, _b, _c;
|
|
5026
|
+
const obj = {};
|
|
5027
|
+
if (message.id !== "") {
|
|
5028
|
+
obj.id = message.id;
|
|
5029
|
+
}
|
|
5030
|
+
if (message.organizationId !== "") {
|
|
5031
|
+
obj.organizationId = message.organizationId;
|
|
5032
|
+
}
|
|
5033
|
+
if (message.actingUserId !== "") {
|
|
5034
|
+
obj.actingUserId = message.actingUserId;
|
|
5035
|
+
}
|
|
5036
|
+
if (message.actorOrganizationMembershipId !== "") {
|
|
5037
|
+
obj.actorOrganizationMembershipId = message.actorOrganizationMembershipId;
|
|
5038
|
+
}
|
|
5039
|
+
if (message.actorIdentityLinkId !== "") {
|
|
5040
|
+
obj.actorIdentityLinkId = message.actorIdentityLinkId;
|
|
5041
|
+
}
|
|
5042
|
+
if ((_a = message.rbacRoleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
5043
|
+
obj.rbacRoleIds = message.rbacRoleIds;
|
|
5044
|
+
}
|
|
5045
|
+
if ((_b = message.orgTeamIds) === null || _b === void 0 ? void 0 : _b.length) {
|
|
5046
|
+
obj.orgTeamIds = message.orgTeamIds;
|
|
5047
|
+
}
|
|
5048
|
+
if ((_c = message.platformGrantIds) === null || _c === void 0 ? void 0 : _c.length) {
|
|
5049
|
+
obj.platformGrantIds = message.platformGrantIds;
|
|
5050
|
+
}
|
|
5051
|
+
if (message.supportAccessSessionId !== "") {
|
|
5052
|
+
obj.supportAccessSessionId = message.supportAccessSessionId;
|
|
5053
|
+
}
|
|
5054
|
+
if (message.featureFlagKey !== "") {
|
|
5055
|
+
obj.featureFlagKey = message.featureFlagKey;
|
|
5056
|
+
}
|
|
5057
|
+
if (message.featureFlagProvider !== "") {
|
|
5058
|
+
obj.featureFlagProvider = message.featureFlagProvider;
|
|
5059
|
+
}
|
|
5060
|
+
if (message.featureFlagVariant !== "") {
|
|
5061
|
+
obj.featureFlagVariant = message.featureFlagVariant;
|
|
5062
|
+
}
|
|
5063
|
+
if (message.resourceId !== "") {
|
|
5064
|
+
obj.resourceId = message.resourceId;
|
|
5065
|
+
}
|
|
5066
|
+
if (message.resourceInstanceId !== "") {
|
|
5067
|
+
obj.resourceInstanceId = message.resourceInstanceId;
|
|
5068
|
+
}
|
|
5069
|
+
if (message.action !== "") {
|
|
5070
|
+
obj.action = message.action;
|
|
5071
|
+
}
|
|
5072
|
+
if (message.decision !== 0) {
|
|
5073
|
+
obj.decision = authorizationDecisionToJSON(message.decision);
|
|
5074
|
+
}
|
|
5075
|
+
if (message.reasonCode !== "") {
|
|
5076
|
+
obj.reasonCode = message.reasonCode;
|
|
5077
|
+
}
|
|
5078
|
+
if (message.safeMessage !== "") {
|
|
5079
|
+
obj.safeMessage = message.safeMessage;
|
|
5080
|
+
}
|
|
5081
|
+
if (message.usedSupportElevation !== false) {
|
|
5082
|
+
obj.usedSupportElevation = message.usedSupportElevation;
|
|
5083
|
+
}
|
|
5084
|
+
if (message.metadata !== undefined) {
|
|
5085
|
+
obj.metadata = message.metadata;
|
|
5086
|
+
}
|
|
5087
|
+
if (message.createdAt !== undefined) {
|
|
5088
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
5089
|
+
}
|
|
5090
|
+
return obj;
|
|
5091
|
+
},
|
|
5092
|
+
create(base) {
|
|
5093
|
+
return exports.AuthorizationDecisionEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5094
|
+
},
|
|
5095
|
+
fromPartial(object) {
|
|
5096
|
+
var _a, _b, _c;
|
|
5097
|
+
var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
5098
|
+
const message = createBaseAuthorizationDecisionEvent();
|
|
5099
|
+
message.id = (_d = object.id) !== null && _d !== void 0 ? _d : "";
|
|
5100
|
+
message.organizationId = (_e = object.organizationId) !== null && _e !== void 0 ? _e : "";
|
|
5101
|
+
message.actingUserId = (_f = object.actingUserId) !== null && _f !== void 0 ? _f : "";
|
|
5102
|
+
message.actorOrganizationMembershipId = (_g = object.actorOrganizationMembershipId) !== null && _g !== void 0 ? _g : "";
|
|
5103
|
+
message.actorIdentityLinkId = (_h = object.actorIdentityLinkId) !== null && _h !== void 0 ? _h : "";
|
|
5104
|
+
message.rbacRoleIds = ((_a = object.rbacRoleIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
5105
|
+
message.orgTeamIds = ((_b = object.orgTeamIds) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
5106
|
+
message.platformGrantIds = ((_c = object.platformGrantIds) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
5107
|
+
message.supportAccessSessionId = (_j = object.supportAccessSessionId) !== null && _j !== void 0 ? _j : "";
|
|
5108
|
+
message.featureFlagKey = (_k = object.featureFlagKey) !== null && _k !== void 0 ? _k : "";
|
|
5109
|
+
message.featureFlagProvider = (_l = object.featureFlagProvider) !== null && _l !== void 0 ? _l : "";
|
|
5110
|
+
message.featureFlagVariant = (_m = object.featureFlagVariant) !== null && _m !== void 0 ? _m : "";
|
|
5111
|
+
message.resourceId = (_o = object.resourceId) !== null && _o !== void 0 ? _o : "";
|
|
5112
|
+
message.resourceInstanceId = (_p = object.resourceInstanceId) !== null && _p !== void 0 ? _p : "";
|
|
5113
|
+
message.action = (_q = object.action) !== null && _q !== void 0 ? _q : "";
|
|
5114
|
+
message.decision = (_r = object.decision) !== null && _r !== void 0 ? _r : 0;
|
|
5115
|
+
message.reasonCode = (_s = object.reasonCode) !== null && _s !== void 0 ? _s : "";
|
|
5116
|
+
message.safeMessage = (_t = object.safeMessage) !== null && _t !== void 0 ? _t : "";
|
|
5117
|
+
message.usedSupportElevation = (_u = object.usedSupportElevation) !== null && _u !== void 0 ? _u : false;
|
|
5118
|
+
message.metadata = (_v = object.metadata) !== null && _v !== void 0 ? _v : undefined;
|
|
5119
|
+
message.createdAt = (_w = object.createdAt) !== null && _w !== void 0 ? _w : undefined;
|
|
5120
|
+
return message;
|
|
5121
|
+
},
|
|
5122
|
+
};
|
|
4638
5123
|
function toTimestamp(date) {
|
|
4639
5124
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
4640
5125
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { AuthMethod, AuthProvider, AuthSession, DiscoveryOrganization, InviteOnboardingState, InviteRecoveryReason, InviteRecoveryStatus, MembershipStatus, OrganizationAuthSettings, OrganizationMember, OrganizationTeam, RbacPolicySummary, ScimConnection, ScimGroupMapping, ScimTokenRotation, SsoConnection, SsoConnectionStatus, SsoConnectionType, UserOrganizationPagePosition, UserPreferences, UserProfile } from "./auth.pb";
|
|
2
|
+
import { AuthMethod, AuthorizationDecision, AuthorizationDecisionEvent, AuthProvider, AuthSession, DiscoveryOrganization, InviteOnboardingState, InviteRecoveryReason, InviteRecoveryStatus, MembershipStatus, OrganizationAuthSettings, OrganizationMember, OrganizationTeam, RbacPolicySummary, ScimConnection, ScimGroupMapping, ScimTokenRotation, SsoConnection, SsoConnectionStatus, SsoConnectionType, UserOrganizationPagePosition, UserPreferences, UserProfile } from "./auth.pb";
|
|
3
3
|
export declare const protobufPackage = "weaveapi.auth.v1";
|
|
4
4
|
export interface GetSessionRequest {
|
|
5
5
|
}
|
|
@@ -298,6 +298,20 @@ export interface UpdateRbacPolicyRequest {
|
|
|
298
298
|
export interface UpdateRbacPolicyResponse {
|
|
299
299
|
policy: RbacPolicySummary | undefined;
|
|
300
300
|
}
|
|
301
|
+
export interface ListAuthorizationDecisionEventsRequest {
|
|
302
|
+
organizationSlug: string;
|
|
303
|
+
actingUserId: string;
|
|
304
|
+
featureFlagKey: string;
|
|
305
|
+
resourceId: string;
|
|
306
|
+
action: string;
|
|
307
|
+
decision: AuthorizationDecision;
|
|
308
|
+
pageSize: number;
|
|
309
|
+
pageToken: string;
|
|
310
|
+
}
|
|
311
|
+
export interface ListAuthorizationDecisionEventsResponse {
|
|
312
|
+
events: AuthorizationDecisionEvent[];
|
|
313
|
+
nextPageToken: string;
|
|
314
|
+
}
|
|
301
315
|
export interface ListSsoConnectionsRequest {
|
|
302
316
|
organizationSlug: string;
|
|
303
317
|
}
|
|
@@ -462,6 +476,8 @@ export declare const GetRbacPolicyRequest: MessageFns<GetRbacPolicyRequest>;
|
|
|
462
476
|
export declare const GetRbacPolicyResponse: MessageFns<GetRbacPolicyResponse>;
|
|
463
477
|
export declare const UpdateRbacPolicyRequest: MessageFns<UpdateRbacPolicyRequest>;
|
|
464
478
|
export declare const UpdateRbacPolicyResponse: MessageFns<UpdateRbacPolicyResponse>;
|
|
479
|
+
export declare const ListAuthorizationDecisionEventsRequest: MessageFns<ListAuthorizationDecisionEventsRequest>;
|
|
480
|
+
export declare const ListAuthorizationDecisionEventsResponse: MessageFns<ListAuthorizationDecisionEventsResponse>;
|
|
465
481
|
export declare const ListSsoConnectionsRequest: MessageFns<ListSsoConnectionsRequest>;
|
|
466
482
|
export declare const ListSsoConnectionsResponse: MessageFns<ListSsoConnectionsResponse>;
|
|
467
483
|
export declare const CreateSsoConnectionRequest: MessageFns<CreateSsoConnectionRequest>;
|
|
@@ -787,6 +803,7 @@ export interface OrganizationAuthAdminService {
|
|
|
787
803
|
DeleteOrganizationTeam(request: DeleteOrganizationTeamRequest): Promise<DeleteOrganizationTeamResponse>;
|
|
788
804
|
GetRbacPolicy(request: GetRbacPolicyRequest): Promise<GetRbacPolicyResponse>;
|
|
789
805
|
UpdateRbacPolicy(request: UpdateRbacPolicyRequest): Promise<UpdateRbacPolicyResponse>;
|
|
806
|
+
ListAuthorizationDecisionEvents(request: ListAuthorizationDecisionEventsRequest): Promise<ListAuthorizationDecisionEventsResponse>;
|
|
790
807
|
ListSsoConnections(request: ListSsoConnectionsRequest): Promise<ListSsoConnectionsResponse>;
|
|
791
808
|
CreateSsoConnection(request: CreateSsoConnectionRequest): Promise<CreateSsoConnectionResponse>;
|
|
792
809
|
UpdateSsoConnection(request: UpdateSsoConnectionRequest): Promise<UpdateSsoConnectionResponse>;
|
|
@@ -821,6 +838,7 @@ export declare class OrganizationAuthAdminServiceClientImpl implements Organizat
|
|
|
821
838
|
DeleteOrganizationTeam(request: DeleteOrganizationTeamRequest): Promise<DeleteOrganizationTeamResponse>;
|
|
822
839
|
GetRbacPolicy(request: GetRbacPolicyRequest): Promise<GetRbacPolicyResponse>;
|
|
823
840
|
UpdateRbacPolicy(request: UpdateRbacPolicyRequest): Promise<UpdateRbacPolicyResponse>;
|
|
841
|
+
ListAuthorizationDecisionEvents(request: ListAuthorizationDecisionEventsRequest): Promise<ListAuthorizationDecisionEventsResponse>;
|
|
824
842
|
ListSsoConnections(request: ListSsoConnectionsRequest): Promise<ListSsoConnectionsResponse>;
|
|
825
843
|
CreateSsoConnection(request: CreateSsoConnectionRequest): Promise<CreateSsoConnectionResponse>;
|
|
826
844
|
UpdateSsoConnection(request: UpdateSsoConnectionRequest): Promise<UpdateSsoConnectionResponse>;
|
|
@@ -1018,6 +1036,18 @@ export declare const OrganizationAuthAdminServiceDefinition: {
|
|
|
1018
1036
|
};
|
|
1019
1037
|
};
|
|
1020
1038
|
};
|
|
1039
|
+
readonly listAuthorizationDecisionEvents: {
|
|
1040
|
+
readonly name: "ListAuthorizationDecisionEvents";
|
|
1041
|
+
readonly requestType: typeof ListAuthorizationDecisionEventsRequest;
|
|
1042
|
+
readonly requestStream: false;
|
|
1043
|
+
readonly responseType: typeof ListAuthorizationDecisionEventsResponse;
|
|
1044
|
+
readonly responseStream: false;
|
|
1045
|
+
readonly options: {
|
|
1046
|
+
readonly _unknownFields: {
|
|
1047
|
+
readonly 578365826: readonly [Uint8Array];
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1021
1051
|
readonly listSsoConnections: {
|
|
1022
1052
|
readonly name: "ListSsoConnections";
|
|
1023
1053
|
readonly requestType: typeof ListSsoConnectionsRequest;
|