@schemavaults/app-definitions 0.6.11 → 0.6.12
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,15 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const appToApiPermissionSchema: z.ZodObject<{
|
|
3
|
-
client_app_id: z.ZodUnion<readonly [z.ZodString, z.ZodEffects<z.ZodString, "schemavaults-auth" | "schemavaults-mail" | "schemavaults-web" | "schemavaults-cli", string>]>;
|
|
4
3
|
api_server_id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"schemavaults-registry">, z.ZodLiteral<"schemavaults-auth">, z.ZodLiteral<"schemavaults-mail">]>;
|
|
5
4
|
created_at: z.ZodNumber;
|
|
5
|
+
client_app_id: z.ZodUnion<readonly [z.ZodString, z.ZodEffects<z.ZodString, "schemavaults-auth" | "schemavaults-mail" | "schemavaults-web" | "schemavaults-cli", string>]>;
|
|
6
|
+
created_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
7
|
}, "strict", z.ZodTypeAny, {
|
|
7
8
|
api_server_id: string;
|
|
8
9
|
created_at: number;
|
|
9
10
|
client_app_id: string;
|
|
11
|
+
created_by?: string | null | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
api_server_id: string;
|
|
12
14
|
created_at: number;
|
|
13
15
|
client_app_id: string;
|
|
16
|
+
created_by?: string | null | undefined;
|
|
14
17
|
}>;
|
|
18
|
+
export default appToApiPermissionSchema;
|
|
15
19
|
export type AppToApiPermission = z.infer<typeof appToApiPermissionSchema>;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { appIdSchema } from "./app-id";
|
|
3
|
-
import { apiServerIdSchema } from
|
|
4
|
-
export const appToApiPermissionSchema = z
|
|
3
|
+
import { apiServerIdSchema } from "./api-server-id";
|
|
4
|
+
export const appToApiPermissionSchema = z
|
|
5
|
+
.object({
|
|
5
6
|
client_app_id: appIdSchema,
|
|
6
7
|
api_server_id: apiServerIdSchema,
|
|
7
|
-
created_at: z.number().nonnegative()
|
|
8
|
-
|
|
8
|
+
created_at: z.number().nonnegative(),
|
|
9
|
+
created_by: z.string().uuid().optional().nullable(),
|
|
10
|
+
})
|
|
11
|
+
.required({
|
|
12
|
+
client_app_id: true,
|
|
13
|
+
api_server_id: true,
|
|
14
|
+
created_at: true,
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
export default appToApiPermissionSchema;
|
|
9
18
|
//# sourceMappingURL=app_to_api_permission_def.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_to_api_permission_def.js","sourceRoot":"","sources":["../src/app_to_api_permission_def.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"app_to_api_permission_def.js","sourceRoot":"","sources":["../src/app_to_api_permission_def.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,iBAAiB;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACpD,CAAC;KACD,QAAQ,CAAC;IACR,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,eAAe,wBAAwB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -4200,8 +4200,13 @@ var listApiServersQueryTypeSchema = z.string().refine(
|
|
|
4200
4200
|
var appToApiPermissionSchema = z.object({
|
|
4201
4201
|
client_app_id: appIdSchema,
|
|
4202
4202
|
api_server_id: apiServerIdSchema,
|
|
4203
|
-
created_at: z.number().nonnegative()
|
|
4204
|
-
|
|
4203
|
+
created_at: z.number().nonnegative(),
|
|
4204
|
+
created_by: z.string().uuid().optional().nullable()
|
|
4205
|
+
}).required({
|
|
4206
|
+
client_app_id: true,
|
|
4207
|
+
api_server_id: true,
|
|
4208
|
+
created_at: true
|
|
4209
|
+
}).strict();
|
|
4205
4210
|
|
|
4206
4211
|
// src/hardcoded-core-schemavaults-app-domains.ts
|
|
4207
4212
|
var SCHEMAVAULTS_WEB_APP_DEVELOPMENT_DOMAIN = {
|