@vendasta/iam 1.17.2 → 2.2.2

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +113 -0
  3. package/bundles/vendasta-iam.umd.js +828 -1400
  4. package/bundles/vendasta-iam.umd.js.map +1 -1
  5. package/bundles/vendasta-iam.umd.min.js +2 -2
  6. package/bundles/vendasta-iam.umd.min.js.map +1 -1
  7. package/esm2015/lib/_generated/host.service.js +9 -7
  8. package/esm2015/lib/_generated/index.js +2 -0
  9. package/esm2015/lib/_internal/enums/api.enum.js +1 -1
  10. package/esm2015/lib/_internal/enums/index.js +3 -2
  11. package/esm2015/lib/_internal/enums/policies.enum.js +18 -0
  12. package/esm2015/lib/_internal/enums/resources.enum.js +1 -12
  13. package/esm2015/lib/_internal/enums/subjects.enum.js +1 -1
  14. package/esm2015/lib/_internal/enums/users.enum.js +1 -1
  15. package/esm2015/lib/_internal/iam.api.service.js +10 -8
  16. package/esm2015/lib/_internal/index.js +4 -5
  17. package/esm2015/lib/_internal/interfaces/annotations.interface.js +8 -0
  18. package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
  19. package/esm2015/lib/_internal/interfaces/attributes.interface.js +8 -0
  20. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +1 -1
  21. package/esm2015/lib/_internal/interfaces/index.js +1 -1
  22. package/esm2015/lib/_internal/interfaces/policies.interface.js +3 -0
  23. package/esm2015/lib/_internal/interfaces/resources.interface.js +1 -1
  24. package/esm2015/lib/_internal/interfaces/security-logs.interface.js +1 -1
  25. package/esm2015/lib/_internal/interfaces/subjects.interface.js +1 -7
  26. package/esm2015/lib/_internal/interfaces/users.interface.js +1 -1
  27. package/esm2015/lib/_internal/objects/annotations.js +30 -0
  28. package/esm2015/lib/_internal/objects/api.js +15 -381
  29. package/esm2015/lib/_internal/objects/attributes.js +158 -0
  30. package/esm2015/lib/_internal/objects/field-mask.js +1 -4
  31. package/esm2015/lib/_internal/objects/index.js +7 -4
  32. package/esm2015/lib/_internal/objects/policies.js +264 -0
  33. package/esm2015/lib/_internal/objects/resources.js +6 -321
  34. package/esm2015/lib/_internal/objects/security-logs.js +1 -8
  35. package/esm2015/lib/_internal/objects/subjects.js +3 -233
  36. package/esm2015/lib/_internal/objects/users.js +1 -32
  37. package/esm2015/lib/_internal/user-iam.api.service.js +10 -8
  38. package/esm2015/lib/http/http.interface.js +1 -1
  39. package/esm2015/lib/http/http.js +1 -1
  40. package/esm2015/lib/http/iam.http.api.service.js +22 -21
  41. package/esm2015/lib/iam.service.js +12 -10
  42. package/esm2015/lib/index.js +3 -4
  43. package/esm2015/lib/personas/account-group.js +1 -1
  44. package/esm2015/lib/personas/base-personas.js +1 -1
  45. package/esm2015/lib/personas/developer.js +1 -1
  46. package/esm2015/lib/personas/digital-agent.js +1 -1
  47. package/esm2015/lib/personas/index.js +1 -1
  48. package/esm2015/lib/personas/partner-app.js +1 -1
  49. package/esm2015/lib/personas/partner.js +14 -13
  50. package/esm2015/lib/personas/persona-type.enum.js +1 -1
  51. package/esm2015/lib/personas/personas.js +1 -1
  52. package/esm2015/lib/personas/salesperson.js +1 -1
  53. package/esm2015/lib/personas/smb.js +1 -1
  54. package/esm2015/lib/personas/success.js +1 -1
  55. package/esm2015/lib/personas/vendor.js +1 -1
  56. package/esm2015/public_api.js +2 -2
  57. package/esm2015/vendasta-iam.js +1 -6
  58. package/fesm2015/vendasta-iam.js +415 -976
  59. package/fesm2015/vendasta-iam.js.map +1 -1
  60. package/lib/_generated/host.service.d.ts +3 -0
  61. package/lib/_generated/index.d.ts +1 -0
  62. package/lib/_internal/enums/index.d.ts +2 -1
  63. package/lib/_internal/enums/policies.enum.d.ts +9 -0
  64. package/lib/_internal/enums/resources.enum.d.ts +0 -9
  65. package/lib/_internal/iam.api.service.d.ts +3 -0
  66. package/lib/_internal/index.d.ts +3 -4
  67. package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
  68. package/lib/_internal/interfaces/api.interface.d.ts +6 -18
  69. package/lib/_internal/interfaces/attributes.interface.d.ts +26 -0
  70. package/lib/_internal/interfaces/index.d.ts +6 -3
  71. package/lib/_internal/interfaces/policies.interface.d.ts +42 -0
  72. package/lib/_internal/interfaces/resources.interface.d.ts +3 -42
  73. package/lib/_internal/interfaces/subjects.interface.d.ts +2 -27
  74. package/lib/_internal/objects/annotations.d.ts +9 -0
  75. package/lib/_internal/objects/api.d.ts +7 -25
  76. package/lib/_internal/objects/attributes.d.ts +43 -0
  77. package/lib/_internal/objects/field-mask.d.ts +1 -1
  78. package/lib/_internal/objects/index.d.ts +6 -3
  79. package/lib/_internal/objects/policies.d.ts +68 -0
  80. package/lib/_internal/objects/resources.d.ts +4 -67
  81. package/lib/_internal/objects/security-logs.d.ts +1 -1
  82. package/lib/_internal/objects/subjects.d.ts +3 -43
  83. package/lib/_internal/objects/users.d.ts +1 -1
  84. package/lib/_internal/user-iam.api.service.d.ts +3 -0
  85. package/lib/http/iam.http.api.service.d.ts +3 -0
  86. package/lib/iam.service.d.ts +3 -0
  87. package/lib/index.d.ts +2 -3
  88. package/lib/personas/base-personas.d.ts +1 -1
  89. package/lib/personas/partner.d.ts +1 -0
  90. package/package.json +5 -3
  91. package/public_api.d.ts +1 -1
  92. package/vendasta-iam.d.ts +1 -5
  93. package/esm2015/lib/_internal/iam-sso.api.service.js +0 -38
  94. package/esm2015/lib/_internal/iam.module.js +0 -29
  95. package/esm2015/lib/iam.module.js +0 -16
  96. package/lib/_internal/iam-sso.api.service.d.ts +0 -12
  97. package/lib/_internal/iam.module.d.ts +0 -2
  98. package/lib/iam.module.d.ts +0 -2
  99. package/vendasta-iam.metadata.json +0 -1
@@ -1,4 +1,5 @@
1
1
  import { EnvironmentService } from '@vendasta/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class HostService {
3
4
  private environmentService;
4
5
  private _host;
@@ -8,4 +9,6 @@ export declare class HostService {
8
9
  httpsHost(): string;
9
10
  hostWithScheme(): string;
10
11
  httpsHostWithScheme(): string;
12
+ static ɵfac: i0.ɵɵFactoryDef<HostService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDef<HostService>;
11
14
  }
@@ -0,0 +1 @@
1
+ export { HostService } from './host.service';
@@ -1,4 +1,5 @@
1
+ export { BooleanOperator, ForOperator, } from './policies.enum';
2
+ export { AccessScope, } from './resources.enum';
1
3
  export { AlgorithmType, OrderByDirection, } from './subjects.enum';
2
- export { AccessScope, BooleanOperator, ForOperator, } from './resources.enum';
3
4
  export { RestrictionType, } from './users.enum';
4
5
  export { SortDirection, UserSortField, } from './api.enum';
@@ -0,0 +1,9 @@
1
+ export declare enum BooleanOperator {
2
+ AND = 0,
3
+ OR = 1,
4
+ NOT = 2
5
+ }
6
+ export declare enum ForOperator {
7
+ ANY = 0,
8
+ ALL = 1
9
+ }
@@ -4,12 +4,3 @@ export declare enum AccessScope {
4
4
  DELETE = 2,
5
5
  LIST = 3
6
6
  }
7
- export declare enum BooleanOperator {
8
- AND = 0,
9
- OR = 1,
10
- NOT = 2
11
- }
12
- export declare enum ForOperator {
13
- ANY = 0,
14
- ALL = 1
15
- }
@@ -3,6 +3,7 @@ import { AccessResourceRequestInterface, AddKeyRequestInterface, AddMultiUserRes
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class IAMApiService {
7
8
  private http;
8
9
  private hostService;
@@ -42,4 +43,6 @@ export declare class IAMApiService {
42
43
  createExternalId(r: CreateExternalIDRequest | CreateExternalIDRequestInterface): Observable<HttpResponse<null>>;
43
44
  addMultiUserRestriction(r: AddMultiUserRestrictionRequest | AddMultiUserRestrictionRequestInterface): Observable<HttpResponse<null>>;
44
45
  removeMultiUserRestriction(r: RemoveMultiUserRestrictionRequest | RemoveMultiUserRestrictionRequestInterface): Observable<HttpResponse<null>>;
46
+ static ɵfac: i0.ɵɵFactoryDef<IAMApiService, never>;
47
+ static ɵprov: i0.ɵɵInjectableDef<IAMApiService>;
45
48
  }
@@ -1,6 +1,5 @@
1
- export * from './enums/index';
2
- export * from './objects/index';
3
- export * from './interfaces/index';
1
+ export * from './enums';
2
+ export * from './objects';
3
+ export * from './interfaces';
4
4
  export { IAMApiService } from './iam.api.service';
5
- export { IAMSsoApiService } from './iam-sso.api.service';
6
5
  export { UserIAMApiService } from './user-iam.api.service';
@@ -0,0 +1,4 @@
1
+ export interface AccessInterface {
2
+ scope?: string[];
3
+ public?: boolean;
4
+ }
@@ -1,9 +1,10 @@
1
- import { ContextInterface, StructAttributeInterface, SubjectResultInterface, PersonaInterface, MutationInterface, MultiValueAttributeInterface, QueryInterface, SingleValueAttributeInterface } from './subjects.interface';
1
+ import { ContextInterface, SubjectResultInterface, PersonaInterface, MutationInterface, MultiValueAttributeInterface, QueryInterface, SingleValueAttributeInterface } from './subjects.interface';
2
2
  import { FieldMaskInterface } from './field-mask.interface';
3
3
  import { ResourceIdentifierInterface, PolicyInterface, ResourceOwnerInterface, ValueListInterface } from './resources.interface';
4
4
  import { SecurityLogInterface } from './security-logs.interface';
5
+ import { StructAttributeInterface } from './attributes.interface';
5
6
  import { TypedExternalIdentifierInterface, IdentifierInterface, UserInterface, NamespacedEmailInterface, NamespacedSessionInterface } from './users.interface';
6
- import * as e from '../enums/index';
7
+ import * as e from '../enums';
7
8
  export interface AccessResourceRequestInterface {
8
9
  context?: ContextInterface;
9
10
  subjectId?: string;
@@ -16,6 +17,7 @@ export interface AccessResourceRequestInterface {
16
17
  [key: string]: ValueListInterface;
17
18
  };
18
19
  accessScope?: e.AccessScope[];
20
+ actions?: string[];
19
21
  resourceEntityIdentifiers?: ResourceIdentifierInterface[];
20
22
  resourceAttributes?: StructAttributeInterface;
21
23
  }
@@ -96,22 +98,7 @@ export interface GetMultiUsersResponseInterface {
96
98
  export interface GetResetPasswordTokenRequestInterface {
97
99
  context?: ContextInterface;
98
100
  email?: string;
99
- }
100
- export interface GetSessionForUserRequestInterface {
101
- subjectId?: string;
102
- email?: string;
103
- userId?: string;
104
- refreshToken?: string;
105
- clientAssertion?: string;
106
- federatedIdentityProvider?: string;
107
- scopes?: string[];
108
- clientId?: string;
109
- nonce?: string;
110
- }
111
- export interface GetSessionForUserResponseInterface {
112
- session?: string;
113
- accessToken?: string;
114
- refreshToken?: string;
101
+ userIdentifier?: UserIdentifierInterface;
115
102
  }
116
103
  export interface GetSessionTokenRequestInterface {
117
104
  token?: string;
@@ -158,6 +145,7 @@ export interface IAMListPersonasRequestInterface {
158
145
  pageSize?: number;
159
146
  type?: string;
160
147
  namespace?: string;
148
+ alwaysIncludeSuperadmin?: boolean;
161
149
  }
162
150
  export interface ListPersonasByEmailRequestInterface {
163
151
  email?: string;
@@ -0,0 +1,26 @@
1
+ export interface AttributeInterface {
2
+ intAttribute?: number;
3
+ doubleAttribute?: number;
4
+ stringAttribute?: string;
5
+ boolAttribute?: boolean;
6
+ structAttribute?: StructAttributeInterface;
7
+ listAttribute?: ListAttributeInterface;
8
+ timestampAttribute?: Date;
9
+ geopointAttribute?: GeoPointAttributeInterface;
10
+ }
11
+ export interface StructAttributeAttributesEntryInterface {
12
+ key?: string;
13
+ value?: AttributeInterface;
14
+ }
15
+ export interface GeoPointAttributeInterface {
16
+ latitude?: number;
17
+ longitude?: number;
18
+ }
19
+ export interface ListAttributeInterface {
20
+ attributes?: AttributeInterface[];
21
+ }
22
+ export interface StructAttributeInterface {
23
+ attributes?: {
24
+ [key: string]: AttributeInterface;
25
+ };
26
+ }
@@ -1,6 +1,9 @@
1
1
  export { FieldMaskInterface, } from './field-mask.interface';
2
- export { AttributeInterface, StructAttributeAttributesEntryInterface, ContextInterface, GeoPointAttributeInterface, ListAttributeInterface, MultiValueAttributeInterface, MutationInterface, NamespacedContextInterface, PersonaInterface, PublicKeyInterface, QueryInterface, SingleValueAttributeInterface, StructAttributeInterface, SubjectInterface, SubjectResultInterface, TypedContextInterface, } from './subjects.interface';
3
- export { AccessCheckFailuresInterface, ResourceIdentifierIdentifiersEntryInterface, IfClauseInterface, OperatorInterface, PolicyInterface, PolicyNodeInterface, ResourceIdentifierInterface, ResourceOwnerInterface, SubjectMissingValueClauseInterface, SubjectResourceForClauseInterface, SubjectResourceIntersectionClauseInterface, SubjectResourceSubsetClauseInterface, SubjectValueIntersectionClauseInterface, ValueListInterface, } from './resources.interface';
2
+ export { AttributeInterface, StructAttributeAttributesEntryInterface, GeoPointAttributeInterface, ListAttributeInterface, StructAttributeInterface, } from './attributes.interface';
3
+ export { IfClauseInterface, OperatorInterface, PolicyNodeInterface, SubjectMissingValueClauseInterface, SubjectResourceForClauseInterface, SubjectResourceIntersectionClauseInterface, SubjectResourceSubsetClauseInterface, SubjectValueIntersectionClauseInterface, } from './policies.interface';
4
+ export { AccessCheckFailuresInterface, ResourceIdentifierIdentifiersEntryInterface, PolicyInterface, ResourceIdentifierInterface, ResourceOwnerInterface, ValueListInterface, } from './resources.interface';
5
+ export { ContextInterface, MultiValueAttributeInterface, MutationInterface, NamespacedContextInterface, PersonaInterface, PublicKeyInterface, QueryInterface, SingleValueAttributeInterface, SubjectInterface, SubjectResultInterface, TypedContextInterface, } from './subjects.interface';
4
6
  export { SecurityLogInterface, } from './security-logs.interface';
5
7
  export { IdentifierInterface, NamespacedEmailInterface, NamespacedSessionInterface, TypedExternalIdentifierInterface, UserInterface, } from './users.interface';
6
- export { AccessResourceRequestInterface, AddKeyRequestInterface, AddKeyResponseInterface, AddMultiUserRestrictionRequestInterface, AuthenticateSubjectRequestInterface, ChangeSubjectEmailRequestInterface, CreateExternalIDRequestInterface, CreateSessionRequestInterface, CreateSessionResponseInterface, CreateTemporarySubjectRequestInterface, CreateTemporarySubjectResponseInterface, DeleteSubjectRequestInterface, DeleteUserRequestInterface, ListSecurityLogsRequestFiltersInterface, GetImpersonationTokenRequestInterface, GetImpersonationTokenResponseInterface, GetMultiExternalIDRequestInterface, GetMultiExternalIDResponseInterface, GetMultiUsersRequestInterface, GetMultiUsersResponseInterface, GetResetPasswordTokenRequestInterface, GetSessionForUserRequestInterface, GetSessionForUserResponseInterface, GetSessionTokenRequestInterface, GetShortLivedTokenRequestInterface, GetSubjectBySessionRequestInterface, GetSubjectContextRequestInterface, GetSubjectContextResponseInterface, GetSubjectResponseInterface, GetSubjectsByEmailRequestInterface, GetSubjectsRequestInterface, GetSubjectsResponseInterface, GetTokenRequestInterface, GetTokenResponseInterface, IAMListPersonasRequestInterface, ListPersonasByEmailRequestInterface, ListPersonasRequestInterface, ListPersonasResponseInterface, ListSecurityLogsRequestInterface, ListSecurityLogsResponseInterface, ListUsersRequestInterface, ListUsersResponseInterface, MutateAttributesRequestInterface, OAuthCredentialsInterface, UpdateUserRequestOperationInterface, RegisterPolicyRequestInterface, RegisterResourceOwnerRequestInterface, RegisterResourceRequestInterface, RegisterSubjectRequestInterface, RegisterSubjectResponseInterface, RemoveKeyRequestInterface, RemoveMultiUserRestrictionRequestInterface, ResetPasswordTokenResponseInterface, ResetPasswordWithTokenRequestInterface, ResetSubjectPasswordRequestInterface, AccessResourceRequestResourceEntityIdentifierEntryInterface, SearchSubjectRequestInterface, SearchSubjectResponseInterface, SendEmailVerificationRequestInterface, SubjectCredentialsInterface, UpdateUserRequestInterface, GetMultiUsersResponseUserContainerInterface, UserFilterInterface, UserIdentifierInterface, UserSortOptionsInterface, VerifyEmailRequestInterface, } from './api.interface';
8
+ export { AccessInterface, } from './annotations.interface';
9
+ export { AccessResourceRequestInterface, AddKeyRequestInterface, AddKeyResponseInterface, AddMultiUserRestrictionRequestInterface, AuthenticateSubjectRequestInterface, ChangeSubjectEmailRequestInterface, CreateExternalIDRequestInterface, CreateSessionRequestInterface, CreateSessionResponseInterface, CreateTemporarySubjectRequestInterface, CreateTemporarySubjectResponseInterface, DeleteSubjectRequestInterface, DeleteUserRequestInterface, ListSecurityLogsRequestFiltersInterface, GetImpersonationTokenRequestInterface, GetImpersonationTokenResponseInterface, GetMultiExternalIDRequestInterface, GetMultiExternalIDResponseInterface, GetMultiUsersRequestInterface, GetMultiUsersResponseInterface, GetResetPasswordTokenRequestInterface, GetSessionTokenRequestInterface, GetShortLivedTokenRequestInterface, GetSubjectBySessionRequestInterface, GetSubjectContextRequestInterface, GetSubjectContextResponseInterface, GetSubjectResponseInterface, GetSubjectsByEmailRequestInterface, GetSubjectsRequestInterface, GetSubjectsResponseInterface, GetTokenRequestInterface, GetTokenResponseInterface, IAMListPersonasRequestInterface, ListPersonasByEmailRequestInterface, ListPersonasRequestInterface, ListPersonasResponseInterface, ListSecurityLogsRequestInterface, ListSecurityLogsResponseInterface, ListUsersRequestInterface, ListUsersResponseInterface, MutateAttributesRequestInterface, OAuthCredentialsInterface, UpdateUserRequestOperationInterface, RegisterPolicyRequestInterface, RegisterResourceOwnerRequestInterface, RegisterResourceRequestInterface, RegisterSubjectRequestInterface, RegisterSubjectResponseInterface, RemoveKeyRequestInterface, RemoveMultiUserRestrictionRequestInterface, ResetPasswordTokenResponseInterface, ResetPasswordWithTokenRequestInterface, ResetSubjectPasswordRequestInterface, AccessResourceRequestResourceEntityIdentifierEntryInterface, SearchSubjectRequestInterface, SearchSubjectResponseInterface, SendEmailVerificationRequestInterface, SubjectCredentialsInterface, UpdateUserRequestInterface, GetMultiUsersResponseUserContainerInterface, UserFilterInterface, UserIdentifierInterface, UserSortOptionsInterface, VerifyEmailRequestInterface, } from './api.interface';
@@ -0,0 +1,42 @@
1
+ import { AttributeInterface } from './attributes.interface';
2
+ import * as e from '../enums';
3
+ export interface IfClauseInterface {
4
+ resourceAttributeName?: string;
5
+ resourceAttributeValue?: AttributeInterface;
6
+ thenPolicy?: PolicyNodeInterface;
7
+ elsePolicy?: PolicyNodeInterface;
8
+ }
9
+ export interface OperatorInterface {
10
+ operator?: e.BooleanOperator;
11
+ children?: PolicyNodeInterface[];
12
+ }
13
+ export interface PolicyNodeInterface {
14
+ subjectResourceIntersection?: SubjectResourceIntersectionClauseInterface;
15
+ operator?: OperatorInterface;
16
+ subjectValueIntersection?: SubjectValueIntersectionClauseInterface;
17
+ subjectMissingValue?: SubjectMissingValueClauseInterface;
18
+ subjectResourceSubset?: SubjectResourceSubsetClauseInterface;
19
+ subjectResourceFor?: SubjectResourceForClauseInterface;
20
+ ifClause?: IfClauseInterface;
21
+ }
22
+ export interface SubjectMissingValueClauseInterface {
23
+ attributeName?: string;
24
+ }
25
+ export interface SubjectResourceForClauseInterface {
26
+ attributeName?: string;
27
+ operator?: e.ForOperator;
28
+ rules?: PolicyNodeInterface;
29
+ }
30
+ export interface SubjectResourceIntersectionClauseInterface {
31
+ attributeName?: string;
32
+ resourceAttributeName?: string;
33
+ }
34
+ export interface SubjectResourceSubsetClauseInterface {
35
+ attributeName?: string;
36
+ resourceAttributeName?: string;
37
+ }
38
+ export interface SubjectValueIntersectionClauseInterface {
39
+ attributeName?: string;
40
+ attributeValue?: string;
41
+ structuredAttributeValue?: AttributeInterface;
42
+ }
@@ -1,5 +1,5 @@
1
- import { AttributeInterface } from './subjects.interface';
2
- import * as e from '../enums/index';
1
+ import { PolicyNodeInterface } from './policies.interface';
2
+ import * as e from '../enums';
3
3
  export interface AccessCheckFailuresInterface {
4
4
  failures?: ResourceIdentifierInterface[];
5
5
  }
@@ -7,33 +7,15 @@ export interface ResourceIdentifierIdentifiersEntryInterface {
7
7
  key?: string;
8
8
  value?: ValueListInterface;
9
9
  }
10
- export interface IfClauseInterface {
11
- resourceAttributeName?: string;
12
- resourceAttributeValue?: AttributeInterface;
13
- thenPolicy?: PolicyNodeInterface;
14
- elsePolicy?: PolicyNodeInterface;
15
- }
16
- export interface OperatorInterface {
17
- operator?: e.BooleanOperator;
18
- children?: PolicyNodeInterface[];
19
- }
20
10
  export interface PolicyInterface {
21
11
  appId?: string;
22
12
  resourceId?: string;
23
13
  policyId?: string;
24
14
  policyName?: string;
25
15
  operations?: e.AccessScope[];
16
+ actions?: string[];
26
17
  policy?: PolicyNodeInterface;
27
18
  }
28
- export interface PolicyNodeInterface {
29
- subjectResourceIntersection?: SubjectResourceIntersectionClauseInterface;
30
- operator?: OperatorInterface;
31
- subjectValueIntersection?: SubjectValueIntersectionClauseInterface;
32
- subjectMissingValue?: SubjectMissingValueClauseInterface;
33
- subjectResourceSubset?: SubjectResourceSubsetClauseInterface;
34
- subjectResourceFor?: SubjectResourceForClauseInterface;
35
- ifClause?: IfClauseInterface;
36
- }
37
19
  export interface ResourceIdentifierInterface {
38
20
  identifiers?: {
39
21
  [key: string]: ValueListInterface;
@@ -43,27 +25,6 @@ export interface ResourceOwnerInterface {
43
25
  appId?: string;
44
26
  appName?: string;
45
27
  }
46
- export interface SubjectMissingValueClauseInterface {
47
- attributeName?: string;
48
- }
49
- export interface SubjectResourceForClauseInterface {
50
- attributeName?: string;
51
- operator?: e.ForOperator;
52
- rules?: PolicyNodeInterface;
53
- }
54
- export interface SubjectResourceIntersectionClauseInterface {
55
- attributeName?: string;
56
- resourceAttributeName?: string;
57
- }
58
- export interface SubjectResourceSubsetClauseInterface {
59
- attributeName?: string;
60
- resourceAttributeName?: string;
61
- }
62
- export interface SubjectValueIntersectionClauseInterface {
63
- attributeName?: string;
64
- attributeValue?: string;
65
- structuredAttributeValue?: AttributeInterface;
66
- }
67
28
  export interface ValueListInterface {
68
29
  values?: string[];
69
30
  }
@@ -1,29 +1,9 @@
1
- import * as e from '../enums/index';
2
- export interface AttributeInterface {
3
- intAttribute?: number;
4
- doubleAttribute?: number;
5
- stringAttribute?: string;
6
- boolAttribute?: boolean;
7
- structAttribute?: StructAttributeInterface;
8
- listAttribute?: ListAttributeInterface;
9
- timestampAttribute?: Date;
10
- geopointAttribute?: GeoPointAttributeInterface;
11
- }
12
- export interface StructAttributeAttributesEntryInterface {
13
- key?: string;
14
- value?: AttributeInterface;
15
- }
1
+ import { StructAttributeInterface } from './attributes.interface';
2
+ import * as e from '../enums';
16
3
  export interface ContextInterface {
17
4
  namespaced?: NamespacedContextInterface;
18
5
  typed?: TypedContextInterface;
19
6
  }
20
- export interface GeoPointAttributeInterface {
21
- latitude?: number;
22
- longitude?: number;
23
- }
24
- export interface ListAttributeInterface {
25
- attributes?: AttributeInterface[];
26
- }
27
7
  export interface MultiValueAttributeInterface {
28
8
  key?: string;
29
9
  values?: string[];
@@ -58,11 +38,6 @@ export interface SingleValueAttributeInterface {
58
38
  key?: string;
59
39
  value?: string;
60
40
  }
61
- export interface StructAttributeInterface {
62
- attributes?: {
63
- [key: string]: AttributeInterface;
64
- };
65
- }
66
41
  export interface SubjectInterface {
67
42
  subjectId?: string;
68
43
  email?: string;
@@ -0,0 +1,9 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Access implements i.AccessInterface {
4
+ scope: string[];
5
+ public: boolean;
6
+ static fromProto(proto: any): Access;
7
+ constructor(kwargs?: i.AccessInterface);
8
+ toApiJson(): object;
9
+ }
@@ -1,10 +1,11 @@
1
- import * as i from '../interfaces/index';
2
- import { Context, StructAttribute, SubjectResult, Persona, Mutation, MultiValueAttribute, Query, SingleValueAttribute } from './subjects';
1
+ import * as i from '../interfaces';
2
+ import { Context, SubjectResult, Persona, Mutation, MultiValueAttribute, Query, SingleValueAttribute } from './subjects';
3
3
  import { FieldMask } from './field-mask';
4
4
  import { ResourceIdentifier, Policy, ResourceOwner, ValueList } from './resources';
5
5
  import { SecurityLog } from './security-logs';
6
+ import { StructAttribute } from './attributes';
6
7
  import { TypedExternalIdentifier, Identifier, User, NamespacedEmail, NamespacedSession } from './users';
7
- import * as e from '../enums/index';
8
+ import * as e from '../enums';
8
9
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
9
10
  export declare class AccessResourceRequest implements i.AccessResourceRequestInterface {
10
11
  context: Context;
@@ -18,6 +19,7 @@ export declare class AccessResourceRequest implements i.AccessResourceRequestInt
18
19
  [key: string]: ValueList;
19
20
  };
20
21
  accessScope: e.AccessScope[];
22
+ actions: string[];
21
23
  resourceEntityIdentifiers: ResourceIdentifier[];
22
24
  resourceAttributes: StructAttribute;
23
25
  static fromProto(proto: any): AccessResourceRequest;
@@ -158,32 +160,11 @@ export declare class GetMultiUsersResponse implements i.GetMultiUsersResponseInt
158
160
  export declare class GetResetPasswordTokenRequest implements i.GetResetPasswordTokenRequestInterface {
159
161
  context: Context;
160
162
  email: string;
163
+ userIdentifier: UserIdentifier;
161
164
  static fromProto(proto: any): GetResetPasswordTokenRequest;
162
165
  constructor(kwargs?: i.GetResetPasswordTokenRequestInterface);
163
166
  toApiJson(): object;
164
167
  }
165
- export declare class GetSessionForUserRequest implements i.GetSessionForUserRequestInterface {
166
- subjectId: string;
167
- email: string;
168
- userId: string;
169
- refreshToken: string;
170
- clientAssertion: string;
171
- federatedIdentityProvider: string;
172
- scopes: string[];
173
- clientId: string;
174
- nonce: string;
175
- static fromProto(proto: any): GetSessionForUserRequest;
176
- constructor(kwargs?: i.GetSessionForUserRequestInterface);
177
- toApiJson(): object;
178
- }
179
- export declare class GetSessionForUserResponse implements i.GetSessionForUserResponseInterface {
180
- session: string;
181
- accessToken: string;
182
- refreshToken: string;
183
- static fromProto(proto: any): GetSessionForUserResponse;
184
- constructor(kwargs?: i.GetSessionForUserResponseInterface);
185
- toApiJson(): object;
186
- }
187
168
  export declare class GetSessionTokenRequest implements i.GetSessionTokenRequestInterface {
188
169
  token: string;
189
170
  static fromProto(proto: any): GetSessionTokenRequest;
@@ -262,6 +243,7 @@ export declare class IAMListPersonasRequest implements i.IAMListPersonasRequestI
262
243
  pageSize: number;
263
244
  type: string;
264
245
  namespace: string;
246
+ alwaysIncludeSuperadmin: boolean;
265
247
  static fromProto(proto: any): IAMListPersonasRequest;
266
248
  constructor(kwargs?: i.IAMListPersonasRequestInterface);
267
249
  toApiJson(): object;
@@ -0,0 +1,43 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Attribute implements i.AttributeInterface {
4
+ intAttribute: number;
5
+ doubleAttribute: number;
6
+ stringAttribute: string;
7
+ boolAttribute: boolean;
8
+ structAttribute: StructAttribute;
9
+ listAttribute: ListAttribute;
10
+ timestampAttribute: Date;
11
+ geopointAttribute: GeoPointAttribute;
12
+ static fromProto(proto: any): Attribute;
13
+ constructor(kwargs?: i.AttributeInterface);
14
+ toApiJson(): object;
15
+ }
16
+ export declare class StructAttributeAttributesEntry implements i.StructAttributeAttributesEntryInterface {
17
+ key: string;
18
+ value: Attribute;
19
+ static fromProto(proto: any): StructAttributeAttributesEntry;
20
+ constructor(kwargs?: i.StructAttributeAttributesEntryInterface);
21
+ toApiJson(): object;
22
+ }
23
+ export declare class GeoPointAttribute implements i.GeoPointAttributeInterface {
24
+ latitude: number;
25
+ longitude: number;
26
+ static fromProto(proto: any): GeoPointAttribute;
27
+ constructor(kwargs?: i.GeoPointAttributeInterface);
28
+ toApiJson(): object;
29
+ }
30
+ export declare class ListAttribute implements i.ListAttributeInterface {
31
+ attributes: Attribute[];
32
+ static fromProto(proto: any): ListAttribute;
33
+ constructor(kwargs?: i.ListAttributeInterface);
34
+ toApiJson(): object;
35
+ }
36
+ export declare class StructAttribute implements i.StructAttributeInterface {
37
+ attributes: {
38
+ [key: string]: Attribute;
39
+ };
40
+ static fromProto(proto: any): StructAttribute;
41
+ constructor(kwargs?: i.StructAttributeInterface);
42
+ toApiJson(): object;
43
+ }
@@ -1,4 +1,4 @@
1
- import * as i from '../interfaces/index';
1
+ import * as i from '../interfaces';
2
2
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
3
  export declare class FieldMask implements i.FieldMaskInterface {
4
4
  paths: string[];
@@ -1,6 +1,9 @@
1
1
  export { FieldMask, } from './field-mask';
2
- export { Attribute, StructAttributeAttributesEntry, Context, GeoPointAttribute, ListAttribute, MultiValueAttribute, Mutation, NamespacedContext, Persona, PublicKey, Query, SingleValueAttribute, StructAttribute, Subject, SubjectResult, TypedContext, } from './subjects';
3
- export { AccessCheckFailures, ResourceIdentifierIdentifiersEntry, IfClause, Operator, Policy, PolicyNode, ResourceIdentifier, ResourceOwner, SubjectMissingValueClause, SubjectResourceForClause, SubjectResourceIntersectionClause, SubjectResourceSubsetClause, SubjectValueIntersectionClause, ValueList, } from './resources';
2
+ export { Attribute, StructAttributeAttributesEntry, GeoPointAttribute, ListAttribute, StructAttribute, } from './attributes';
3
+ export { IfClause, Operator, PolicyNode, SubjectMissingValueClause, SubjectResourceForClause, SubjectResourceIntersectionClause, SubjectResourceSubsetClause, SubjectValueIntersectionClause, } from './policies';
4
+ export { AccessCheckFailures, ResourceIdentifierIdentifiersEntry, Policy, ResourceIdentifier, ResourceOwner, ValueList, } from './resources';
5
+ export { Context, MultiValueAttribute, Mutation, NamespacedContext, Persona, PublicKey, Query, SingleValueAttribute, Subject, SubjectResult, TypedContext, } from './subjects';
4
6
  export { SecurityLog, } from './security-logs';
5
7
  export { Identifier, NamespacedEmail, NamespacedSession, TypedExternalIdentifier, User, } from './users';
6
- export { AccessResourceRequest, AddKeyRequest, AddKeyResponse, AddMultiUserRestrictionRequest, AuthenticateSubjectRequest, ChangeSubjectEmailRequest, CreateExternalIDRequest, CreateSessionRequest, CreateSessionResponse, CreateTemporarySubjectRequest, CreateTemporarySubjectResponse, DeleteSubjectRequest, DeleteUserRequest, ListSecurityLogsRequestFilters, GetImpersonationTokenRequest, GetImpersonationTokenResponse, GetMultiExternalIDRequest, GetMultiExternalIDResponse, GetMultiUsersRequest, GetMultiUsersResponse, GetResetPasswordTokenRequest, GetSessionForUserRequest, GetSessionForUserResponse, GetSessionTokenRequest, GetShortLivedTokenRequest, GetSubjectBySessionRequest, GetSubjectContextRequest, GetSubjectContextResponse, GetSubjectResponse, GetSubjectsByEmailRequest, GetSubjectsRequest, GetSubjectsResponse, GetTokenRequest, GetTokenResponse, IAMListPersonasRequest, ListPersonasByEmailRequest, ListPersonasRequest, ListPersonasResponse, ListSecurityLogsRequest, ListSecurityLogsResponse, ListUsersRequest, ListUsersResponse, MutateAttributesRequest, OAuthCredentials, UpdateUserRequestOperation, RegisterPolicyRequest, RegisterResourceOwnerRequest, RegisterResourceRequest, RegisterSubjectRequest, RegisterSubjectResponse, RemoveKeyRequest, RemoveMultiUserRestrictionRequest, ResetPasswordTokenResponse, ResetPasswordWithTokenRequest, ResetSubjectPasswordRequest, AccessResourceRequestResourceEntityIdentifierEntry, SearchSubjectRequest, SearchSubjectResponse, SendEmailVerificationRequest, SubjectCredentials, UpdateUserRequest, GetMultiUsersResponseUserContainer, UserFilter, UserIdentifier, UserSortOptions, VerifyEmailRequest, } from './api';
8
+ export { Access, } from './annotations';
9
+ export { AccessResourceRequest, AddKeyRequest, AddKeyResponse, AddMultiUserRestrictionRequest, AuthenticateSubjectRequest, ChangeSubjectEmailRequest, CreateExternalIDRequest, CreateSessionRequest, CreateSessionResponse, CreateTemporarySubjectRequest, CreateTemporarySubjectResponse, DeleteSubjectRequest, DeleteUserRequest, ListSecurityLogsRequestFilters, GetImpersonationTokenRequest, GetImpersonationTokenResponse, GetMultiExternalIDRequest, GetMultiExternalIDResponse, GetMultiUsersRequest, GetMultiUsersResponse, GetResetPasswordTokenRequest, GetSessionTokenRequest, GetShortLivedTokenRequest, GetSubjectBySessionRequest, GetSubjectContextRequest, GetSubjectContextResponse, GetSubjectResponse, GetSubjectsByEmailRequest, GetSubjectsRequest, GetSubjectsResponse, GetTokenRequest, GetTokenResponse, IAMListPersonasRequest, ListPersonasByEmailRequest, ListPersonasRequest, ListPersonasResponse, ListSecurityLogsRequest, ListSecurityLogsResponse, ListUsersRequest, ListUsersResponse, MutateAttributesRequest, OAuthCredentials, UpdateUserRequestOperation, RegisterPolicyRequest, RegisterResourceOwnerRequest, RegisterResourceRequest, RegisterSubjectRequest, RegisterSubjectResponse, RemoveKeyRequest, RemoveMultiUserRestrictionRequest, ResetPasswordTokenResponse, ResetPasswordWithTokenRequest, ResetSubjectPasswordRequest, AccessResourceRequestResourceEntityIdentifierEntry, SearchSubjectRequest, SearchSubjectResponse, SendEmailVerificationRequest, SubjectCredentials, UpdateUserRequest, GetMultiUsersResponseUserContainer, UserFilter, UserIdentifier, UserSortOptions, VerifyEmailRequest, } from './api';
@@ -0,0 +1,68 @@
1
+ import * as i from '../interfaces';
2
+ import { Attribute } from './attributes';
3
+ import * as e from '../enums';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class IfClause implements i.IfClauseInterface {
6
+ resourceAttributeName: string;
7
+ resourceAttributeValue: Attribute;
8
+ thenPolicy: PolicyNode;
9
+ elsePolicy: PolicyNode;
10
+ static fromProto(proto: any): IfClause;
11
+ constructor(kwargs?: i.IfClauseInterface);
12
+ toApiJson(): object;
13
+ }
14
+ export declare class Operator implements i.OperatorInterface {
15
+ operator: e.BooleanOperator;
16
+ children: PolicyNode[];
17
+ static fromProto(proto: any): Operator;
18
+ constructor(kwargs?: i.OperatorInterface);
19
+ toApiJson(): object;
20
+ }
21
+ export declare class PolicyNode implements i.PolicyNodeInterface {
22
+ subjectResourceIntersection: SubjectResourceIntersectionClause;
23
+ operator: Operator;
24
+ subjectValueIntersection: SubjectValueIntersectionClause;
25
+ subjectMissingValue: SubjectMissingValueClause;
26
+ subjectResourceSubset: SubjectResourceSubsetClause;
27
+ subjectResourceFor: SubjectResourceForClause;
28
+ ifClause: IfClause;
29
+ static fromProto(proto: any): PolicyNode;
30
+ constructor(kwargs?: i.PolicyNodeInterface);
31
+ toApiJson(): object;
32
+ }
33
+ export declare class SubjectMissingValueClause implements i.SubjectMissingValueClauseInterface {
34
+ attributeName: string;
35
+ static fromProto(proto: any): SubjectMissingValueClause;
36
+ constructor(kwargs?: i.SubjectMissingValueClauseInterface);
37
+ toApiJson(): object;
38
+ }
39
+ export declare class SubjectResourceForClause implements i.SubjectResourceForClauseInterface {
40
+ attributeName: string;
41
+ operator: e.ForOperator;
42
+ rules: PolicyNode;
43
+ static fromProto(proto: any): SubjectResourceForClause;
44
+ constructor(kwargs?: i.SubjectResourceForClauseInterface);
45
+ toApiJson(): object;
46
+ }
47
+ export declare class SubjectResourceIntersectionClause implements i.SubjectResourceIntersectionClauseInterface {
48
+ attributeName: string;
49
+ resourceAttributeName: string;
50
+ static fromProto(proto: any): SubjectResourceIntersectionClause;
51
+ constructor(kwargs?: i.SubjectResourceIntersectionClauseInterface);
52
+ toApiJson(): object;
53
+ }
54
+ export declare class SubjectResourceSubsetClause implements i.SubjectResourceSubsetClauseInterface {
55
+ attributeName: string;
56
+ resourceAttributeName: string;
57
+ static fromProto(proto: any): SubjectResourceSubsetClause;
58
+ constructor(kwargs?: i.SubjectResourceSubsetClauseInterface);
59
+ toApiJson(): object;
60
+ }
61
+ export declare class SubjectValueIntersectionClause implements i.SubjectValueIntersectionClauseInterface {
62
+ attributeName: string;
63
+ attributeValue: string;
64
+ structuredAttributeValue: Attribute;
65
+ static fromProto(proto: any): SubjectValueIntersectionClause;
66
+ constructor(kwargs?: i.SubjectValueIntersectionClauseInterface);
67
+ toApiJson(): object;
68
+ }
@@ -1,6 +1,6 @@
1
- import * as i from '../interfaces/index';
2
- import { Attribute } from './subjects';
3
- import * as e from '../enums/index';
1
+ import * as i from '../interfaces';
2
+ import { PolicyNode } from './policies';
3
+ import * as e from '../enums';
4
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
5
  export declare class AccessCheckFailures implements i.AccessCheckFailuresInterface {
6
6
  failures: ResourceIdentifier[];
@@ -15,45 +15,18 @@ export declare class ResourceIdentifierIdentifiersEntry implements i.ResourceIde
15
15
  constructor(kwargs?: i.ResourceIdentifierIdentifiersEntryInterface);
16
16
  toApiJson(): object;
17
17
  }
18
- export declare class IfClause implements i.IfClauseInterface {
19
- resourceAttributeName: string;
20
- resourceAttributeValue: Attribute;
21
- thenPolicy: PolicyNode;
22
- elsePolicy: PolicyNode;
23
- static fromProto(proto: any): IfClause;
24
- constructor(kwargs?: i.IfClauseInterface);
25
- toApiJson(): object;
26
- }
27
- export declare class Operator implements i.OperatorInterface {
28
- operator: e.BooleanOperator;
29
- children: PolicyNode[];
30
- static fromProto(proto: any): Operator;
31
- constructor(kwargs?: i.OperatorInterface);
32
- toApiJson(): object;
33
- }
34
18
  export declare class Policy implements i.PolicyInterface {
35
19
  appId: string;
36
20
  resourceId: string;
37
21
  policyId: string;
38
22
  policyName: string;
39
23
  operations: e.AccessScope[];
24
+ actions: string[];
40
25
  policy: PolicyNode;
41
26
  static fromProto(proto: any): Policy;
42
27
  constructor(kwargs?: i.PolicyInterface);
43
28
  toApiJson(): object;
44
29
  }
45
- export declare class PolicyNode implements i.PolicyNodeInterface {
46
- subjectResourceIntersection: SubjectResourceIntersectionClause;
47
- operator: Operator;
48
- subjectValueIntersection: SubjectValueIntersectionClause;
49
- subjectMissingValue: SubjectMissingValueClause;
50
- subjectResourceSubset: SubjectResourceSubsetClause;
51
- subjectResourceFor: SubjectResourceForClause;
52
- ifClause: IfClause;
53
- static fromProto(proto: any): PolicyNode;
54
- constructor(kwargs?: i.PolicyNodeInterface);
55
- toApiJson(): object;
56
- }
57
30
  export declare class ResourceIdentifier implements i.ResourceIdentifierInterface {
58
31
  identifiers: {
59
32
  [key: string]: ValueList;
@@ -69,42 +42,6 @@ export declare class ResourceOwner implements i.ResourceOwnerInterface {
69
42
  constructor(kwargs?: i.ResourceOwnerInterface);
70
43
  toApiJson(): object;
71
44
  }
72
- export declare class SubjectMissingValueClause implements i.SubjectMissingValueClauseInterface {
73
- attributeName: string;
74
- static fromProto(proto: any): SubjectMissingValueClause;
75
- constructor(kwargs?: i.SubjectMissingValueClauseInterface);
76
- toApiJson(): object;
77
- }
78
- export declare class SubjectResourceForClause implements i.SubjectResourceForClauseInterface {
79
- attributeName: string;
80
- operator: e.ForOperator;
81
- rules: PolicyNode;
82
- static fromProto(proto: any): SubjectResourceForClause;
83
- constructor(kwargs?: i.SubjectResourceForClauseInterface);
84
- toApiJson(): object;
85
- }
86
- export declare class SubjectResourceIntersectionClause implements i.SubjectResourceIntersectionClauseInterface {
87
- attributeName: string;
88
- resourceAttributeName: string;
89
- static fromProto(proto: any): SubjectResourceIntersectionClause;
90
- constructor(kwargs?: i.SubjectResourceIntersectionClauseInterface);
91
- toApiJson(): object;
92
- }
93
- export declare class SubjectResourceSubsetClause implements i.SubjectResourceSubsetClauseInterface {
94
- attributeName: string;
95
- resourceAttributeName: string;
96
- static fromProto(proto: any): SubjectResourceSubsetClause;
97
- constructor(kwargs?: i.SubjectResourceSubsetClauseInterface);
98
- toApiJson(): object;
99
- }
100
- export declare class SubjectValueIntersectionClause implements i.SubjectValueIntersectionClauseInterface {
101
- attributeName: string;
102
- attributeValue: string;
103
- structuredAttributeValue: Attribute;
104
- static fromProto(proto: any): SubjectValueIntersectionClause;
105
- constructor(kwargs?: i.SubjectValueIntersectionClauseInterface);
106
- toApiJson(): object;
107
- }
108
45
  export declare class ValueList implements i.ValueListInterface {
109
46
  values: string[];
110
47
  static fromProto(proto: any): ValueList;