@taqueria/protocol 0.8.6 → 0.11.0-rc1

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 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 generatedSchemas.schema>;
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 type Command = z.infer<typeof generatedSchemas.schema>;
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 generatedSchemas.schema>;
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 type HumanReadableIdentifier = z.infer<typeof generatedSchemas.schema>;
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
 
@@ -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 type SHA256 = z.infer<typeof generatedSchemas.schema>;
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 type SanitizedPath = z.infer<typeof generatedSchemas.schema>;
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
@@ -16,6 +16,7 @@ const handlerSchema = z.union([
16
16
  PluginJsonResponse.schemas.internalSchema,
17
17
  z.promise(
18
18
  z.union([
19
+ z.promise(z.void()),
19
20
  z.void(),
20
21
  PluginJsonResponse.schemas.schema,
21
22
  PluginJsonResponse.schemas.internalSchema,
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 type VersionNumber = z.infer<typeof generatedSchemas.schema>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/protocol",
3
- "version": "0.8.6",
3
+ "version": "0.11.0-rc1",
4
4
  "description": "A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.",
5
5
  "main": "index.js",
6
6
  "scripts": {