@ampsec/platform-client 66.2.0 → 66.2.1

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.
@@ -1,6 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  export declare const _PlatformTokenDto: z.ZodObject<{
3
3
  displayValue: z.ZodOptional<z.ZodString>;
4
+ links: z.ZodObject<{
5
+ _self: z.ZodString;
6
+ webhook: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ _self: string;
9
+ webhook: string;
10
+ }, {
11
+ _self: string;
12
+ webhook: string;
13
+ }>;
4
14
  key: z.ZodString;
5
15
  id: z.ZodString;
6
16
  createdAt: z.ZodString;
@@ -13,6 +23,10 @@ export declare const _PlatformTokenDto: z.ZodObject<{
13
23
  createdAt: string;
14
24
  updatedAt: string;
15
25
  deletedAt: string | null;
26
+ links: {
27
+ _self: string;
28
+ webhook: string;
29
+ };
16
30
  key: string;
17
31
  displayValue?: string | undefined;
18
32
  }, {
@@ -21,12 +35,26 @@ export declare const _PlatformTokenDto: z.ZodObject<{
21
35
  createdAt: string;
22
36
  updatedAt: string;
23
37
  deletedAt: string | null;
38
+ links: {
39
+ _self: string;
40
+ webhook: string;
41
+ };
24
42
  key: string;
25
43
  displayValue?: string | undefined;
26
44
  }>;
27
45
  export type PlatformTokenDto = z.infer<typeof _PlatformTokenDto>;
28
46
  export declare const _PlatformTokenUpsertDto: z.ZodObject<{
29
47
  displayValue: z.ZodOptional<z.ZodString>;
48
+ links: z.ZodObject<{
49
+ _self: z.ZodString;
50
+ webhook: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ _self: string;
53
+ webhook: string;
54
+ }, {
55
+ _self: string;
56
+ webhook: string;
57
+ }>;
30
58
  key: z.ZodString;
31
59
  id: z.ZodOptional<z.ZodString>;
32
60
  createdAt: z.ZodOptional<z.ZodString>;
@@ -34,6 +62,10 @@ export declare const _PlatformTokenUpsertDto: z.ZodObject<{
34
62
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
63
  tid: z.ZodOptional<z.ZodString>;
36
64
  }, "strip", z.ZodTypeAny, {
65
+ links: {
66
+ _self: string;
67
+ webhook: string;
68
+ };
37
69
  key: string;
38
70
  displayValue?: string | undefined;
39
71
  id?: string | undefined;
@@ -42,6 +74,10 @@ export declare const _PlatformTokenUpsertDto: z.ZodObject<{
42
74
  deletedAt?: string | null | undefined;
43
75
  tid?: string | undefined;
44
76
  }, {
77
+ links: {
78
+ _self: string;
79
+ webhook: string;
80
+ };
45
81
  key: string;
46
82
  displayValue?: string | undefined;
47
83
  id?: string | undefined;
@@ -6,11 +6,25 @@ export declare const _TokenDto: z.ZodObject<{
6
6
  deletedAt: z.ZodNullable<z.ZodString>;
7
7
  displayValue: z.ZodOptional<z.ZodString>;
8
8
  key: z.ZodString;
9
+ links: z.ZodObject<{
10
+ _self: z.ZodString;
11
+ webhook: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ _self: string;
14
+ webhook: string;
15
+ }, {
16
+ _self: string;
17
+ webhook: string;
18
+ }>;
9
19
  }, "strip", z.ZodTypeAny, {
10
20
  id: string;
11
21
  createdAt: string;
12
22
  updatedAt: string;
13
23
  deletedAt: string | null;
24
+ links: {
25
+ _self: string;
26
+ webhook: string;
27
+ };
14
28
  key: string;
15
29
  displayValue?: string | undefined;
16
30
  }, {
@@ -18,6 +32,10 @@ export declare const _TokenDto: z.ZodObject<{
18
32
  createdAt: string;
19
33
  updatedAt: string;
20
34
  deletedAt: string | null;
35
+ links: {
36
+ _self: string;
37
+ webhook: string;
38
+ };
21
39
  key: string;
22
40
  displayValue?: string | undefined;
23
41
  }>;
@@ -28,8 +46,22 @@ export declare const _TokenUpsertDto: z.ZodObject<{
28
46
  updatedAt: z.ZodOptional<z.ZodString>;
29
47
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
48
  displayValue: z.ZodOptional<z.ZodString>;
49
+ links: z.ZodObject<{
50
+ _self: z.ZodString;
51
+ webhook: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ _self: string;
54
+ webhook: string;
55
+ }, {
56
+ _self: string;
57
+ webhook: string;
58
+ }>;
31
59
  key: z.ZodString;
32
60
  }, "strip", z.ZodTypeAny, {
61
+ links: {
62
+ _self: string;
63
+ webhook: string;
64
+ };
33
65
  key: string;
34
66
  id?: string | undefined;
35
67
  createdAt?: string | undefined;
@@ -37,6 +69,10 @@ export declare const _TokenUpsertDto: z.ZodObject<{
37
69
  deletedAt?: string | null | undefined;
38
70
  displayValue?: string | undefined;
39
71
  }, {
72
+ links: {
73
+ _self: string;
74
+ webhook: string;
75
+ };
40
76
  key: string;
41
77
  id?: string | undefined;
42
78
  createdAt?: string | undefined;
@@ -6,6 +6,10 @@ const base_dto_1 = require("./base.dto");
6
6
  exports._TokenDto = base_dto_1._BaseDto.extend({
7
7
  displayValue: zod_1.z.string().optional(),
8
8
  key: zod_1.z.string(),
9
+ links: zod_1.z.object({
10
+ _self: zod_1.z.string(),
11
+ webhook: zod_1.z.string(),
12
+ }),
9
13
  });
10
14
  exports._TokenUpsertDto = exports._TokenDto.partial(base_dto_1.UPSERT_DTO_MASK);
11
15
  //# sourceMappingURL=tokens.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.dto.js","sourceRoot":"","sources":["../../../src/dto/tokens.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,SAAS,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,iBAAS,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"tokens.dto.js","sourceRoot":"","sources":["../../../src/dto/tokens.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,SAAS,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,iBAAS,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "66.2.0",
3
+ "version": "66.2.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -4,6 +4,10 @@ import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
4
4
  export const _TokenDto = _BaseDto.extend({
5
5
  displayValue: z.string().optional(),
6
6
  key: z.string(),
7
+ links: z.object({
8
+ _self: z.string(),
9
+ webhook: z.string(),
10
+ }),
7
11
  });
8
12
  export type TokenDto = z.infer<typeof _TokenDto>;
9
13