@vendasta/iam 2.0.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_generated/index.mjs +2 -0
  3. package/esm2020/lib/_internal/enums/api.enum.mjs +22 -0
  4. package/esm2020/lib/_internal/enums/index.mjs +12 -0
  5. package/esm2020/lib/_internal/enums/policies.enum.mjs +18 -0
  6. package/esm2020/lib/_internal/enums/resources.enum.mjs +14 -0
  7. package/esm2020/lib/_internal/enums/subjects.enum.mjs +17 -0
  8. package/esm2020/lib/_internal/enums/users.enum.mjs +13 -0
  9. package/esm2020/lib/_internal/iam.api.service.mjs +189 -0
  10. package/esm2020/lib/_internal/index.mjs +12 -0
  11. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
  12. package/esm2020/lib/_internal/interfaces/api.interface.mjs +2 -0
  13. package/esm2020/lib/_internal/interfaces/attributes.interface.mjs +8 -0
  14. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  15. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  16. package/esm2020/lib/_internal/interfaces/policies.interface.mjs +3 -0
  17. package/esm2020/lib/_internal/interfaces/resources.interface.mjs +2 -0
  18. package/esm2020/lib/_internal/interfaces/security-logs.interface.mjs +8 -0
  19. package/esm2020/lib/_internal/interfaces/subjects.interface.mjs +2 -0
  20. package/esm2020/lib/_internal/interfaces/users.interface.mjs +2 -0
  21. package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
  22. package/esm2020/lib/_internal/objects/api.mjs +1846 -0
  23. package/esm2020/lib/_internal/objects/attributes.mjs +158 -0
  24. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  25. package/esm2020/lib/_internal/objects/index.mjs +16 -0
  26. package/esm2020/lib/_internal/objects/policies.mjs +264 -0
  27. package/esm2020/lib/_internal/objects/resources.mjs +168 -0
  28. package/esm2020/lib/_internal/objects/security-logs.mjs +42 -0
  29. package/esm2020/lib/_internal/objects/subjects.mjs +352 -0
  30. package/esm2020/lib/_internal/objects/users.mjs +168 -0
  31. package/esm2020/lib/_internal/user-iam.api.service.mjs +65 -0
  32. package/esm2020/lib/http/http.interface.mjs +2 -0
  33. package/esm2020/lib/http/http.mjs +104 -0
  34. package/esm2020/lib/http/iam.http.api.service.mjs +67 -0
  35. package/esm2020/lib/iam.service.mjs +155 -0
  36. package/esm2020/lib/index.mjs +7 -0
  37. package/esm2020/lib/personas/account-group.mjs +9 -0
  38. package/esm2020/lib/personas/base-personas.mjs +93 -0
  39. package/esm2020/lib/personas/developer.mjs +9 -0
  40. package/esm2020/lib/personas/digital-agent.mjs +9 -0
  41. package/esm2020/lib/personas/index.mjs +12 -0
  42. package/esm2020/lib/personas/partner-app.mjs +9 -0
  43. package/esm2020/lib/personas/partner.mjs +25 -0
  44. package/esm2020/lib/personas/persona-type.enum.mjs +13 -0
  45. package/esm2020/lib/personas/personas.mjs +57 -0
  46. package/esm2020/lib/personas/salesperson.mjs +15 -0
  47. package/esm2020/lib/personas/smb.mjs +10 -0
  48. package/esm2020/lib/personas/success.mjs +9 -0
  49. package/esm2020/lib/personas/vendor.mjs +9 -0
  50. package/esm2020/public_api.mjs +2 -0
  51. package/esm2020/vendasta-iam.mjs +5 -0
  52. package/fesm2015/{vendasta-iam.js → vendasta-iam.mjs} +683 -1244
  53. package/fesm2015/vendasta-iam.mjs.map +1 -0
  54. package/fesm2020/vendasta-iam.mjs +3937 -0
  55. package/fesm2020/vendasta-iam.mjs.map +1 -0
  56. package/lib/_generated/host.service.d.ts +5 -9
  57. package/lib/_internal/enums/index.d.ts +2 -1
  58. package/lib/_internal/enums/policies.enum.d.ts +9 -0
  59. package/lib/_internal/enums/resources.enum.d.ts +0 -9
  60. package/lib/_internal/iam.api.service.d.ts +4 -0
  61. package/lib/_internal/index.d.ts +0 -1
  62. package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
  63. package/lib/_internal/interfaces/api.interface.d.ts +5 -17
  64. package/lib/_internal/interfaces/attributes.interface.d.ts +26 -0
  65. package/lib/_internal/interfaces/index.d.ts +6 -3
  66. package/lib/_internal/interfaces/policies.interface.d.ts +42 -0
  67. package/lib/_internal/interfaces/resources.interface.d.ts +2 -41
  68. package/lib/_internal/interfaces/subjects.interface.d.ts +1 -26
  69. package/lib/_internal/objects/annotations.d.ts +9 -0
  70. package/lib/_internal/objects/api.d.ts +5 -23
  71. package/lib/_internal/objects/attributes.d.ts +43 -0
  72. package/lib/_internal/objects/index.d.ts +6 -3
  73. package/lib/_internal/objects/policies.d.ts +68 -0
  74. package/lib/_internal/objects/resources.d.ts +2 -65
  75. package/lib/_internal/objects/subjects.d.ts +1 -41
  76. package/lib/_internal/user-iam.api.service.d.ts +4 -0
  77. package/lib/http/iam.http.api.service.d.ts +4 -0
  78. package/lib/iam.service.d.ts +3 -0
  79. package/lib/personas/base-personas.d.ts +1 -1
  80. package/lib/personas/partner.d.ts +1 -0
  81. package/package.json +29 -16
  82. package/src/README.md +113 -0
  83. package/vendasta-iam.d.ts +1 -0
  84. package/bundles/vendasta-iam.umd.js +0 -5067
  85. package/bundles/vendasta-iam.umd.js.map +0 -1
  86. package/bundles/vendasta-iam.umd.min.js +0 -16
  87. package/bundles/vendasta-iam.umd.min.js.map +0 -1
  88. package/esm2015/lib/_generated/host.service.js +0 -65
  89. package/esm2015/lib/_generated/index.js +0 -2
  90. package/esm2015/lib/_internal/enums/api.enum.js +0 -22
  91. package/esm2015/lib/_internal/enums/index.js +0 -11
  92. package/esm2015/lib/_internal/enums/resources.enum.js +0 -25
  93. package/esm2015/lib/_internal/enums/subjects.enum.js +0 -17
  94. package/esm2015/lib/_internal/enums/users.enum.js +0 -13
  95. package/esm2015/lib/_internal/iam-sso.api.service.js +0 -42
  96. package/esm2015/lib/_internal/iam.api.service.js +0 -190
  97. package/esm2015/lib/_internal/index.js +0 -13
  98. package/esm2015/lib/_internal/interfaces/api.interface.js +0 -2
  99. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
  100. package/esm2015/lib/_internal/interfaces/index.js +0 -2
  101. package/esm2015/lib/_internal/interfaces/resources.interface.js +0 -2
  102. package/esm2015/lib/_internal/interfaces/security-logs.interface.js +0 -8
  103. package/esm2015/lib/_internal/interfaces/subjects.interface.js +0 -8
  104. package/esm2015/lib/_internal/interfaces/users.interface.js +0 -2
  105. package/esm2015/lib/_internal/objects/api.js +0 -2212
  106. package/esm2015/lib/_internal/objects/field-mask.js +0 -30
  107. package/esm2015/lib/_internal/objects/index.js +0 -13
  108. package/esm2015/lib/_internal/objects/resources.js +0 -483
  109. package/esm2015/lib/_internal/objects/security-logs.js +0 -49
  110. package/esm2015/lib/_internal/objects/subjects.js +0 -582
  111. package/esm2015/lib/_internal/objects/users.js +0 -199
  112. package/esm2015/lib/_internal/user-iam.api.service.js +0 -66
  113. package/esm2015/lib/http/http.interface.js +0 -2
  114. package/esm2015/lib/http/http.js +0 -102
  115. package/esm2015/lib/http/iam.http.api.service.js +0 -68
  116. package/esm2015/lib/iam.service.js +0 -156
  117. package/esm2015/lib/index.js +0 -7
  118. package/esm2015/lib/personas/account-group.js +0 -9
  119. package/esm2015/lib/personas/base-personas.js +0 -89
  120. package/esm2015/lib/personas/developer.js +0 -9
  121. package/esm2015/lib/personas/digital-agent.js +0 -9
  122. package/esm2015/lib/personas/index.js +0 -12
  123. package/esm2015/lib/personas/partner-app.js +0 -9
  124. package/esm2015/lib/personas/partner.js +0 -24
  125. package/esm2015/lib/personas/persona-type.enum.js +0 -13
  126. package/esm2015/lib/personas/personas.js +0 -57
  127. package/esm2015/lib/personas/salesperson.js +0 -15
  128. package/esm2015/lib/personas/smb.js +0 -10
  129. package/esm2015/lib/personas/success.js +0 -9
  130. package/esm2015/lib/personas/vendor.js +0 -9
  131. package/esm2015/public_api.js +0 -2
  132. package/esm2015/vendasta-iam.js +0 -5
  133. package/fesm2015/vendasta-iam.js.map +0 -1
  134. package/lib/_internal/iam-sso.api.service.d.ts +0 -12
  135. package/vendasta-iam.metadata.json +0 -1
@@ -1,26 +1,7 @@
1
1
  import * as i from '../interfaces';
2
+ import { StructAttribute } from './attributes';
2
3
  import * as e from '../enums';
3
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
- export declare class Attribute implements i.AttributeInterface {
5
- intAttribute: number;
6
- doubleAttribute: number;
7
- stringAttribute: string;
8
- boolAttribute: boolean;
9
- structAttribute: StructAttribute;
10
- listAttribute: ListAttribute;
11
- timestampAttribute: Date;
12
- geopointAttribute: GeoPointAttribute;
13
- static fromProto(proto: any): Attribute;
14
- constructor(kwargs?: i.AttributeInterface);
15
- toApiJson(): object;
16
- }
17
- export declare class StructAttributeAttributesEntry implements i.StructAttributeAttributesEntryInterface {
18
- key: string;
19
- value: Attribute;
20
- static fromProto(proto: any): StructAttributeAttributesEntry;
21
- constructor(kwargs?: i.StructAttributeAttributesEntryInterface);
22
- toApiJson(): object;
23
- }
24
5
  export declare class Context implements i.ContextInterface {
25
6
  namespaced: NamespacedContext;
26
7
  typed: TypedContext;
@@ -28,19 +9,6 @@ export declare class Context implements i.ContextInterface {
28
9
  constructor(kwargs?: i.ContextInterface);
29
10
  toApiJson(): object;
30
11
  }
31
- export declare class GeoPointAttribute implements i.GeoPointAttributeInterface {
32
- latitude: number;
33
- longitude: number;
34
- static fromProto(proto: any): GeoPointAttribute;
35
- constructor(kwargs?: i.GeoPointAttributeInterface);
36
- toApiJson(): object;
37
- }
38
- export declare class ListAttribute implements i.ListAttributeInterface {
39
- attributes: Attribute[];
40
- static fromProto(proto: any): ListAttribute;
41
- constructor(kwargs?: i.ListAttributeInterface);
42
- toApiJson(): object;
43
- }
44
12
  export declare class MultiValueAttribute implements i.MultiValueAttributeInterface {
45
13
  key: string;
46
14
  values: string[];
@@ -96,14 +64,6 @@ export declare class SingleValueAttribute implements i.SingleValueAttributeInter
96
64
  constructor(kwargs?: i.SingleValueAttributeInterface);
97
65
  toApiJson(): object;
98
66
  }
99
- export declare class StructAttribute implements i.StructAttributeInterface {
100
- attributes: {
101
- [key: string]: Attribute;
102
- };
103
- static fromProto(proto: any): StructAttribute;
104
- constructor(kwargs?: i.StructAttributeInterface);
105
- toApiJson(): object;
106
- }
107
67
  export declare class Subject implements i.SubjectInterface {
108
68
  subjectId: string;
109
69
  email: string;
@@ -3,9 +3,11 @@ import { GetImpersonationTokenRequestInterface, GetSessionTokenRequestInterface,
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 UserIAMApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  getSubjectBySession(r: GetSubjectBySessionRequest | GetSubjectBySessionRequestInterface): Observable<GetSubjectResponse>;
@@ -14,4 +16,6 @@ export declare class UserIAMApiService {
14
16
  getSessionToken(r: GetSessionTokenRequest | GetSessionTokenRequestInterface): Observable<GetTokenResponse>;
15
17
  resetPasswordWithToken(r: ResetPasswordWithTokenRequest | ResetPasswordWithTokenRequestInterface): Observable<HttpResponse<null>>;
16
18
  getImpersonationToken(r: GetImpersonationTokenRequest | GetImpersonationTokenRequestInterface): Observable<GetImpersonationTokenResponse>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserIAMApiService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserIAMApiService>;
17
21
  }
@@ -3,12 +3,16 @@ import { Observable } from 'rxjs';
3
3
  import { HostService } from '../_generated/host.service';
4
4
  import { LoginRequestInterface, SSOLoginRequestInterface } from './http.interface';
5
5
  import { LoginRequest, LoginResponse, LogoutResponse, SSOLoginRequest } from './http';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class IamHttpApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  login(r: LoginRequest | LoginRequestInterface): Observable<LoginResponse>;
12
14
  logout(): Observable<LogoutResponse>;
13
15
  ssoLogin(r: SSOLoginRequest | SSOLoginRequestInterface): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<IamHttpApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<IamHttpApiService>;
14
18
  }
@@ -8,6 +8,7 @@ import { PersonaType } from './personas/persona-type.enum';
8
8
  import { User } from './_internal/objects/users';
9
9
  import { IAMApiService } from './_internal/iam.api.service';
10
10
  import { UserIdentifierInterface, UserSortOptionsInterface } from './_internal/interfaces';
11
+ import * as i0 from "@angular/core";
11
12
  export declare class IAMService {
12
13
  private api;
13
14
  private httpApi;
@@ -25,4 +26,6 @@ export declare class IAMService {
25
26
  getMultiUsers(userIdentifiers: UserIdentifierInterface[]): Observable<User[]>;
26
27
  listSecurityLogs(userId: string, cursor?: string, pageSize?: number, actionId?: string): Observable<ListSecurityLogsResponse>;
27
28
  listUsers(namespace: string, email?: string, cursor?: string, pageSize?: number, subjectTypes?: string[], searchTerms?: string[], sortOptions?: UserSortOptionsInterface[]): Observable<ListUsersResponse>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<IAMService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<IAMService>;
28
31
  }
@@ -1,4 +1,4 @@
1
- import { AttributeInterface, StructAttributeInterface } from '../_internal/interfaces/subjects.interface';
1
+ import { AttributeInterface, StructAttributeInterface } from '../_internal/interfaces/attributes.interface';
2
2
  import { Persona } from '../_internal/objects/subjects';
3
3
  import { PersonaType } from './persona-type.enum';
4
4
  export declare class BasePersona {
@@ -23,4 +23,5 @@ export declare class PartnerPersona extends TypedPersona {
23
23
  canAccessAutomations: boolean;
24
24
  canAccessMarketplace: boolean;
25
25
  canEnableApps: boolean;
26
+ canAccessRetailBilling: boolean;
26
27
  }
package/package.json CHANGED
@@ -1,24 +1,37 @@
1
1
  {
2
2
  "name": "@vendasta/iam",
3
- "version": "2.0.1",
3
+ "version": "2.3.0",
4
4
  "peerDependencies": {
5
- "@angular/core": "^10.0.0",
6
- "@angular/common": "^10.0.0",
7
- "@vendasta/core": "^46.0.1",
8
- "rxjs": "^6.0.0"
5
+ "@angular/common": "^13.0.0",
6
+ "@angular/core": "^13.0.0",
7
+ "@vendasta/core": "^55.0.2",
8
+ "rxjs": "^6.6.6"
9
9
  },
10
10
  "author": "Vendasta R&D",
11
11
  "description": "SDK to interact with the iam service",
12
12
  "typings": "vendasta-iam.d.ts",
13
- "dependencies": {
14
- "tslib": "^2.0.0"
15
- },
16
13
  "license": "ISC",
17
- "main": "bundles/vendasta-iam.umd.js",
18
- "module": "fesm2015/vendasta-iam.js",
19
- "es2015": "fesm2015/vendasta-iam.js",
20
- "esm2015": "esm2015/vendasta-iam.js",
21
- "fesm2015": "fesm2015/vendasta-iam.js",
22
- "metadata": "vendasta-iam.metadata.json",
23
- "sideEffects": false
24
- }
14
+ "main": "index.js",
15
+ "module": "fesm2015/vendasta-iam.mjs",
16
+ "es2020": "fesm2020/vendasta-iam.mjs",
17
+ "esm2020": "esm2020/vendasta-iam.mjs",
18
+ "fesm2020": "fesm2020/vendasta-iam.mjs",
19
+ "fesm2015": "fesm2015/vendasta-iam.mjs",
20
+ "exports": {
21
+ "./package.json": {
22
+ "default": "./package.json"
23
+ },
24
+ ".": {
25
+ "types": "./vendasta-iam.d.ts",
26
+ "esm2020": "./esm2020/vendasta-iam.mjs",
27
+ "es2020": "./fesm2020/vendasta-iam.mjs",
28
+ "es2015": "./fesm2015/vendasta-iam.mjs",
29
+ "node": "./fesm2015/vendasta-iam.mjs",
30
+ "default": "./fesm2020/vendasta-iam.mjs"
31
+ }
32
+ },
33
+ "sideEffects": false,
34
+ "dependencies": {
35
+ "tslib": "^2.3.0"
36
+ }
37
+ }
package/src/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # IAM SDK
2
+
3
+ ## Login
4
+ `login(email: string, password: string, personaType?: PersonaType, partnerId?: string): Observable<string>`
5
+
6
+ Login accepts an email and password to use to attempt to auth a user. If `personaType` isn't specified, IAM will attempt to
7
+ auth the email and password combo against any of the associated personas. If `personaType` and optionally `partnerId` are
8
+ specified, IAM will auth against that persona specifically.
9
+
10
+ ## Logout
11
+ `logout(): Observable<boolean>`
12
+
13
+ Logout will clear the user's cookies on IAM's side. Returns true if successful.
14
+
15
+ ## SSO Login
16
+ `ssoLogin(nextUrl: string, personaType: PersonaType, partnerId?: string): void`
17
+
18
+ SSOLogin will redirect the user's browser to IAM's SSOLogin page. IAM handles all of the oauth google has in place for
19
+ getting a session using your gmail account (and the whitelabeling of the domain requesting access). Once IAM is done
20
+ handling those requests, IAM will then attempt to find the persona specified in this endpoint (the `personaType` and
21
+ `partnerId` combination). If IAM fails to find a persona, it will redirect to the `nextUrl` with `error` and `status`
22
+ query params indicating why it failed. If IAM is successful in finding the appropriate persona for the request, it
23
+ will redirect to the `nextUrl` with a `session_id` query param. You will then have to take this `session_id` and set up
24
+ the user's session with it, in the same fashion you would have set up the session from the response of the `Login`
25
+ endpoint.
26
+
27
+ ## Get Subject By Session
28
+ `getSubjectBySession(sessionId: string, personaType: PersonaType, partnerId?: string): Observable<BasePersona>`
29
+
30
+ Specify the `personaType` and optionally the `partnerId` for the persona you'd like to retrieve using the `sessionId`.
31
+ This endpoint returns a `BasePersona` which is the base class that all Personas inherit. To gain access to the attributes
32
+ of a specific persona, you will need to cast the persona as the requested type.
33
+
34
+ ```typescript
35
+ import {BasePersona, PartnerPersona, PersonaType} from '@vendasta/core/iam'
36
+
37
+ this.iamClient.getSubjectBySession('...sessionId...', PersonaType.partner)
38
+ .map((persona: BasePersona) => persona as PartnerPersona)
39
+ .subscribe(...)
40
+ ```
41
+
42
+ ## Get Logged In Subject
43
+ `getLoggedInSubject(personaType: PersonaType, partnerId?: string): Observable<BasePersona>`
44
+
45
+ Works identically to getSubjectBySession except it grabs the current session being served by the SessionService.
46
+
47
+ ## List Personas
48
+ `listPersonas(sessionId: string, personaType?: PersonaType): Observable<BasePersona[]>`
49
+
50
+ Given a `sessionId`, listPersonas will find and return all available personas for the session. Optionally specify a
51
+ `personaType` to filter the results by only that type of persona. List personas will return a list of all the personas
52
+ it found. This endpoint returns `BasePersona` and thus they will need to be casted to their appropriate PersonaTypes to
53
+ gain access to the attributes.
54
+
55
+ ```typescript
56
+ import {BasePersona, PartnerPersona, PersonaType, SMBPersona} from '@vendasta/core/iam'
57
+
58
+ this.iamClient.listPersonas('...sessionId...')
59
+ .subscribe((personas: BasePersona[]) => {
60
+ for (const persona of personas) {
61
+ switch(persona.type) {
62
+ case PartnerType.partner:
63
+ const p: PartnerPersona = (persona as PartnerPersona);
64
+ ...
65
+ break;
66
+ case PartnerType.smb:
67
+ const p: SMBPersona = (persona as SMBPersona);
68
+ ...
69
+ break;
70
+ ...
71
+ }
72
+ }
73
+ });
74
+ ```
75
+
76
+ ## List Logged In Personas
77
+ `listLoggedInPersonas(personaType?: PersonaType): Observable<BasePersona[]>`
78
+
79
+ Works identically to listPersonas except it grabs the current session being served by the SessionService.
80
+
81
+ ## Get Token
82
+ `getToken(): Observable<string>`
83
+
84
+ Get token will refresh the 30 minute temporary session a user may have, returning the new `sessionId`.
85
+
86
+ ## Get Multi Users
87
+
88
+ `getMultiUsers(userIdentifiers: UserIdentifierInterface[]): Observable<User[]>`
89
+
90
+ This function takes in an array of user identifiers and converts them (via API) into their respective Users that
91
+ are stored in IAM. UserIdentifiers are an object containing one of the following:
92
+
93
+ userId - the user id of a user. This directly identifies the user in our system.
94
+ token - a token for a user signed by the platform. These tokens include: the session token from IAM (i.e. the `session` part of the `namespaced_session` UserIdentifier), as well as access token or identity tokens from SSO.
95
+
96
+ Deprecated identifiers:
97
+ namespacedEmail - an email address scoped to a namespace. A namespace is the id of a partner. Prefer to use user id instead, to avoid handling emails and for a more stable user identifier
98
+ namespacedSession - a session string scoped to a namespace. Use token instead, as sesson is valid token, and namespace is ignored.
99
+
100
+ ## List security logs
101
+
102
+ `listSecurityLogs(userId: string, cursor?: string, pageSize?: number, actionId = ''): Observable<ListSecurityLogsResponse>`
103
+
104
+ This function returns security logs for a userId passed in. This is a paged function, but the handling of paged
105
+ information is left to the implementor (for now). Use the cursor to call this function again and retrieve a new
106
+ observable of the response to your call.
107
+
108
+ ## List Users
109
+
110
+ `listUsers(namespace: string, email?: string, cursor?: string, pageSize?: number): Observable<ListUsersResponse>`
111
+
112
+ ListUsers returns users for a namespace passed in. This is a paged function, but the handling of paged information
113
+ is left to the implementor (for now). An empty namespace will return users that exist outside of a namespace.
package/vendasta-iam.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@vendasta/iam" />
4
5
  export * from './public_api';