@ampsec/platform-client 74.0.0 → 74.1.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.
|
@@ -29,6 +29,93 @@ export declare const _PlatformAgentMembership: z.ZodObject<{
|
|
|
29
29
|
lastLoggedIn: string | null;
|
|
30
30
|
}>;
|
|
31
31
|
export type PlatformAgentMembership = z.infer<typeof _PlatformAgentMembership>;
|
|
32
|
+
export declare const _PlatformAgentMembershipDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
|
+
tid: z.ZodString;
|
|
34
|
+
role: z.ZodNativeEnum<{
|
|
35
|
+
readonly ADMIN: import("../enums").AuthRole.ADMIN;
|
|
36
|
+
readonly AGENT: import("../enums").AuthRole.AGENT;
|
|
37
|
+
readonly OWNER: import("../enums").AuthRole.OWNER;
|
|
38
|
+
readonly REPORT_VIEWER: import("../enums").AuthRole.REPORT_VIEWER;
|
|
39
|
+
readonly VIEWER: import("../enums").AuthRole.VIEWER;
|
|
40
|
+
}>;
|
|
41
|
+
status: z.ZodNativeEnum<typeof AgentStatus>;
|
|
42
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
43
|
+
department: z.ZodNullable<z.ZodString>;
|
|
44
|
+
lastLoggedIn: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.objectUtil.extendShape<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
createdAt: z.ZodString;
|
|
48
|
+
updatedAt: z.ZodString;
|
|
49
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, {
|
|
51
|
+
tid: z.ZodString;
|
|
52
|
+
}>>, "strip", z.ZodTypeAny, {
|
|
53
|
+
status: AgentStatus;
|
|
54
|
+
id: string;
|
|
55
|
+
tid: string;
|
|
56
|
+
organization: string | null;
|
|
57
|
+
department: string | null;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
deletedAt: string | null;
|
|
61
|
+
role: import("../enums").AuthRole.REPORT_VIEWER | import("../enums").AuthRole.VIEWER | import("../enums").AuthRole.AGENT | import("../enums").AuthRole.ADMIN | import("../enums").AuthRole.OWNER;
|
|
62
|
+
lastLoggedIn: string | null;
|
|
63
|
+
}, {
|
|
64
|
+
status: AgentStatus;
|
|
65
|
+
id: string;
|
|
66
|
+
tid: string;
|
|
67
|
+
organization: string | null;
|
|
68
|
+
department: string | null;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
deletedAt: string | null;
|
|
72
|
+
role: import("../enums").AuthRole.REPORT_VIEWER | import("../enums").AuthRole.VIEWER | import("../enums").AuthRole.AGENT | import("../enums").AuthRole.ADMIN | import("../enums").AuthRole.OWNER;
|
|
73
|
+
lastLoggedIn: string | null;
|
|
74
|
+
}>;
|
|
75
|
+
export type PlatformAgentMembershipDto = z.infer<typeof _PlatformAgentMembershipDto>;
|
|
76
|
+
export declare const _PlatformAgentMembershipUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
77
|
+
tid: z.ZodString;
|
|
78
|
+
role: z.ZodNativeEnum<{
|
|
79
|
+
readonly ADMIN: import("../enums").AuthRole.ADMIN;
|
|
80
|
+
readonly AGENT: import("../enums").AuthRole.AGENT;
|
|
81
|
+
readonly OWNER: import("../enums").AuthRole.OWNER;
|
|
82
|
+
readonly REPORT_VIEWER: import("../enums").AuthRole.REPORT_VIEWER;
|
|
83
|
+
readonly VIEWER: import("../enums").AuthRole.VIEWER;
|
|
84
|
+
}>;
|
|
85
|
+
status: z.ZodNativeEnum<typeof AgentStatus>;
|
|
86
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
87
|
+
department: z.ZodNullable<z.ZodString>;
|
|
88
|
+
lastLoggedIn: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, {
|
|
90
|
+
id: z.ZodOptional<z.ZodString>;
|
|
91
|
+
tid: z.ZodOptional<z.ZodString>;
|
|
92
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
93
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
94
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}>, "strip", z.ZodTypeAny, {
|
|
96
|
+
status: AgentStatus;
|
|
97
|
+
organization: string | null;
|
|
98
|
+
department: string | null;
|
|
99
|
+
role: import("../enums").AuthRole.REPORT_VIEWER | import("../enums").AuthRole.VIEWER | import("../enums").AuthRole.AGENT | import("../enums").AuthRole.ADMIN | import("../enums").AuthRole.OWNER;
|
|
100
|
+
lastLoggedIn: string | null;
|
|
101
|
+
id?: string | undefined;
|
|
102
|
+
tid?: string | undefined;
|
|
103
|
+
createdAt?: string | undefined;
|
|
104
|
+
updatedAt?: string | undefined;
|
|
105
|
+
deletedAt?: string | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
status: AgentStatus;
|
|
108
|
+
organization: string | null;
|
|
109
|
+
department: string | null;
|
|
110
|
+
role: import("../enums").AuthRole.REPORT_VIEWER | import("../enums").AuthRole.VIEWER | import("../enums").AuthRole.AGENT | import("../enums").AuthRole.ADMIN | import("../enums").AuthRole.OWNER;
|
|
111
|
+
lastLoggedIn: string | null;
|
|
112
|
+
id?: string | undefined;
|
|
113
|
+
tid?: string | undefined;
|
|
114
|
+
createdAt?: string | undefined;
|
|
115
|
+
updatedAt?: string | undefined;
|
|
116
|
+
deletedAt?: string | null | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
export type PlatformAgentMembershipUpsertDto = z.infer<typeof _PlatformAgentMembershipUpsertDto>;
|
|
32
119
|
export declare const _PlatformAgentDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
120
|
id: z.ZodString;
|
|
34
121
|
createdAt: z.ZodString;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._PlatformAgentUpsertDto = exports._PlatformAgentDto = exports._PlatformAgentMembership = void 0;
|
|
3
|
+
exports._PlatformAgentUpsertDto = exports._PlatformAgentDto = exports._PlatformAgentMembershipUpsertDto = exports._PlatformAgentMembershipDto = exports._PlatformAgentMembership = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const enums_1 = require("../enums");
|
|
6
6
|
const base_dto_1 = require("../base.dto");
|
|
7
7
|
const agents_dto_1 = require("../agents.dto");
|
|
8
|
+
const tenant_based_dto_1 = require("./tenant.based.dto");
|
|
8
9
|
exports._PlatformAgentMembership = zod_1.z.object({
|
|
9
10
|
tid: zod_1.z.string(),
|
|
10
11
|
role: zod_1.z.nativeEnum(enums_1.AgentAuthRoles),
|
|
@@ -13,6 +14,8 @@ exports._PlatformAgentMembership = zod_1.z.object({
|
|
|
13
14
|
department: zod_1.z.string().nullable(),
|
|
14
15
|
lastLoggedIn: zod_1.z.string().nullable(),
|
|
15
16
|
});
|
|
17
|
+
exports._PlatformAgentMembershipDto = exports._PlatformAgentMembership.merge(tenant_based_dto_1._TenantBased);
|
|
18
|
+
exports._PlatformAgentMembershipUpsertDto = exports._PlatformAgentMembership.merge(tenant_based_dto_1._UpsertTenantBased);
|
|
16
19
|
exports._PlatformAgentDto = base_dto_1._BaseDto.extend({
|
|
17
20
|
firstName: zod_1.z.string().nullable(),
|
|
18
21
|
lastName: zod_1.z.string().nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.agents.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.agents.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,oCAAqD;AACrD,0CAAsD;AACtD,8CAA8C;
|
|
1
|
+
{"version":3,"file":"platform.agents.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.agents.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,oCAAqD;AACrD,0CAAsD;AACtD,8CAA8C;AAC9C,yDAAoE;AAEvD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAc,CAAC;IAClC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;IACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,gCAAwB,CAAC,KAAK,CAAC,+BAAY,CAAC,CAAC;AAG3E,QAAA,iCAAiC,GAAG,gCAAwB,CAAC,KAAK,CAAC,qCAAkB,CAAC,CAAC;AAGvF,QAAA,iBAAiB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;IAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,4BAAe,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import {z} from 'zod';
|
|
|
2
2
|
import {AgentAuthRoles, AgentStatus} from '../enums';
|
|
3
3
|
import {UPSERT_DTO_MASK, _BaseDto} from '../base.dto';
|
|
4
4
|
import {_AgentUpsertDto} from '../agents.dto';
|
|
5
|
+
import {_TenantBased, _UpsertTenantBased} from './tenant.based.dto';
|
|
5
6
|
|
|
6
7
|
export const _PlatformAgentMembership = z.object({
|
|
7
8
|
tid: z.string(),
|
|
@@ -13,6 +14,12 @@ export const _PlatformAgentMembership = z.object({
|
|
|
13
14
|
});
|
|
14
15
|
export type PlatformAgentMembership = z.infer<typeof _PlatformAgentMembership>;
|
|
15
16
|
|
|
17
|
+
export const _PlatformAgentMembershipDto = _PlatformAgentMembership.merge(_TenantBased);
|
|
18
|
+
export type PlatformAgentMembershipDto = z.infer<typeof _PlatformAgentMembershipDto>;
|
|
19
|
+
|
|
20
|
+
export const _PlatformAgentMembershipUpsertDto = _PlatformAgentMembership.merge(_UpsertTenantBased);
|
|
21
|
+
export type PlatformAgentMembershipUpsertDto = z.infer<typeof _PlatformAgentMembershipUpsertDto>;
|
|
22
|
+
|
|
16
23
|
export const _PlatformAgentDto = _BaseDto.extend({
|
|
17
24
|
firstName: z.string().nullable(),
|
|
18
25
|
lastName: z.string().nullable(),
|