@spytecgps/lambda-utils 2.0.3 → 2.0.4
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/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface SpytecAuthorizedResources {
|
|
|
10
10
|
export type AuthClass = 'user' | 'client' | 'system';
|
|
11
11
|
export type DevicesAccess = 'full' | 'limited';
|
|
12
12
|
export type BoundariesAccess = 'full' | 'limited';
|
|
13
|
+
export type TasksAccess = 'full' | 'can_complete' | 'read_only' | 'no_access';
|
|
13
14
|
export interface SpytecAuthContext {
|
|
14
15
|
type: AuthClass;
|
|
15
16
|
userId?: string;
|
|
@@ -22,6 +23,7 @@ export interface SpytecAuthContext {
|
|
|
22
23
|
scope?: string;
|
|
23
24
|
enterprise?: boolean;
|
|
24
25
|
maintenanceModule?: boolean;
|
|
26
|
+
tasksAccess?: TasksAccess;
|
|
25
27
|
}
|
|
26
28
|
export type BaseAPIGatewayEvent = Omit<APIGatewayProxyEventBase<SpytecAuthContext>, 'pathParameters' | 'queryStringParameters' | 'body'>;
|
|
27
29
|
export interface WrapperArgs<E, R> {
|