@taqueria/protocol 0.8.7 → 0.12.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.
- package/Alias.ts +1 -1
- package/Command.ts +3 -1
- package/Contract.ts +1 -1
- package/HumanReadableIdentifier.ts +3 -1
- package/PersistentState.ts +2 -0
- package/SHA256.ts +3 -1
- package/SanitizedPath.ts +3 -1
- package/Template.ts +1 -0
- package/VersionNumber.ts +3 -1
- package/package.json +1 -1
package/Alias.ts
CHANGED
|
@@ -26,7 +26,7 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({
|
|
|
26
26
|
unknownErrMsg: 'Something went wrong trying to parse an alias',
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
export type Alias = z.infer<typeof
|
|
29
|
+
export type Alias = z.infer<typeof internalSchema>;
|
|
30
30
|
|
|
31
31
|
export type t = Alias;
|
|
32
32
|
|
package/Command.ts
CHANGED
|
@@ -15,7 +15,9 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({
|
|
|
15
15
|
unknownErrMsg: 'Something went wrong when parsing the command',
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export const internalSchema = generatedSchemas.schema;
|
|
19
|
+
|
|
20
|
+
export type Command = z.infer<typeof internalSchema>;
|
|
19
21
|
export type t = Command;
|
|
20
22
|
export const { create, make, of } = factory;
|
|
21
23
|
export const schemas = {
|
package/Contract.ts
CHANGED
|
@@ -23,7 +23,7 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({
|
|
|
23
23
|
unknownErrMsg: 'Something went wrong trying to parse a contract',
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export type Contract = z.infer<typeof
|
|
26
|
+
export type Contract = z.infer<typeof internalSchema>;
|
|
27
27
|
|
|
28
28
|
export type t = Contract;
|
|
29
29
|
|
|
@@ -14,7 +14,9 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({
|
|
|
14
14
|
unknownErrMsg: 'Something went wrong trying to parse the human readable identifier',
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export const internalSchema = generatedSchemas.schema;
|
|
18
|
+
|
|
19
|
+
export type HumanReadableIdentifier = z.infer<typeof internalSchema>;
|
|
18
20
|
export type t = HumanReadableIdentifier;
|
|
19
21
|
export const { create, of, make } = factory;
|
|
20
22
|
|
package/PersistentState.ts
CHANGED
|
@@ -11,6 +11,8 @@ const rawOpSchema = z.object({
|
|
|
11
11
|
}).describe('Persistent State Operation');
|
|
12
12
|
|
|
13
13
|
const rawTaskSchema = z.object({
|
|
14
|
+
task: Verb.schemas.rawSchema,
|
|
15
|
+
plugin: z.string().min(1),
|
|
14
16
|
time: Timestamp.rawSchema.describe('state.task.time'),
|
|
15
17
|
output: z.unknown().describe('state.task.output'),
|
|
16
18
|
});
|
package/SHA256.ts
CHANGED
|
@@ -31,7 +31,9 @@ export const toSHA256 = async (value: string) => {
|
|
|
31
31
|
return eager(factory.make(hashHex));
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export
|
|
34
|
+
export const internalSchema = generatedSchemas.schema;
|
|
35
|
+
|
|
36
|
+
export type SHA256 = z.infer<typeof internalSchema>;
|
|
35
37
|
export type t = SHA256;
|
|
36
38
|
export const { create, of, make } = factory;
|
|
37
39
|
export const schemas = {
|
package/SanitizedPath.ts
CHANGED
|
@@ -17,7 +17,9 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({
|
|
|
17
17
|
unknownErrMsg: (value: unknown) => `Something went wrong trying to parse the filesystem path, ${value}`,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
export
|
|
20
|
+
export const internalSchema = generatedSchemas.schema;
|
|
21
|
+
|
|
22
|
+
export type SanitizedPath = z.infer<typeof internalSchema>;
|
|
21
23
|
export type t = SanitizedPath;
|
|
22
24
|
export const { create, of, make } = factory;
|
|
23
25
|
export const schemas = {
|
package/Template.ts
CHANGED
package/VersionNumber.ts
CHANGED
|
@@ -14,7 +14,9 @@ const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({
|
|
|
14
14
|
unknownErrMsg: 'Something went wrong trying to parse the version number',
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export const internalSchema = generatedSchemas.schema;
|
|
18
|
+
|
|
19
|
+
export type VersionNumber = z.infer<typeof internalSchema>;
|
|
18
20
|
export type t = VersionNumber;
|
|
19
21
|
export const { create, of, make } = factory;
|
|
20
22
|
export const schemas = {
|
package/package.json
CHANGED