@awarevue/api-types 1.1.6 → 1.1.7
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/api-keys.d.ts +45 -0
- package/dist/api-keys.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sCreateApiKeyRequest: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
displayName: string;
|
|
6
|
+
}, {
|
|
7
|
+
displayName: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const sCreateApiKeyResponse: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
apiKey: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const sRevokeApiKeyRequest: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
id: string;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const sApiKeyDto: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
displayName: z.ZodString;
|
|
29
|
+
createdOn: z.ZodString;
|
|
30
|
+
lastModifiedOn: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: string;
|
|
33
|
+
displayName: string;
|
|
34
|
+
createdOn: string;
|
|
35
|
+
lastModifiedOn: string;
|
|
36
|
+
}, {
|
|
37
|
+
id: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
createdOn: string;
|
|
40
|
+
lastModifiedOn: string;
|
|
41
|
+
}>;
|
|
42
|
+
export type CreateApiKeyRequest = z.infer<typeof sCreateApiKeyRequest>;
|
|
43
|
+
export type CreateApiKeyResponse = z.infer<typeof sCreateApiKeyResponse>;
|
|
44
|
+
export type RevokeApiKeyRequest = z.infer<typeof sRevokeApiKeyRequest>;
|
|
45
|
+
export type ApiKeyDto = z.infer<typeof sApiKeyDto>;
|
package/dist/api-keys.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sApiKeyDto = exports.sRevokeApiKeyRequest = exports.sCreateApiKeyResponse = exports.sCreateApiKeyRequest = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sCreateApiKeyRequest = zod_1.z.object({
|
|
6
|
+
displayName: zod_1.z.string().min(1).max(128),
|
|
7
|
+
});
|
|
8
|
+
exports.sCreateApiKeyResponse = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
apiKey: zod_1.z.string().min(32).max(1024),
|
|
11
|
+
});
|
|
12
|
+
exports.sRevokeApiKeyRequest = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
exports.sApiKeyDto = zod_1.z.object({
|
|
16
|
+
id: zod_1.z.string().uuid(),
|
|
17
|
+
displayName: zod_1.z.string().min(1).max(128),
|
|
18
|
+
createdOn: zod_1.z.string().datetime(),
|
|
19
|
+
lastModifiedOn: zod_1.z.string().datetime(),
|
|
20
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED