@digo-labs/common 0.1.16 → 0.1.18

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.
@@ -2,11 +2,13 @@ import { z } from 'zod';
2
2
  export declare const filePayloadSchema: z.ZodObject<{
3
3
  mediaType: z.ZodString;
4
4
  base64: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
5
6
  }, z.core.$strip>;
6
7
  export type FilePayload = z.infer<typeof filePayloadSchema>;
7
8
  export declare const imagePayloadSchema: z.ZodObject<{
8
9
  mediaType: z.ZodString;
9
10
  base64: z.ZodString;
11
+ name: z.ZodOptional<z.ZodString>;
10
12
  }, z.core.$strip>;
11
13
  export type ImagePayload = z.infer<typeof imagePayloadSchema>;
12
14
  export declare const sizeFormattedSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}x${number}`, string>>;
@@ -5,6 +5,8 @@ export interface Time {
5
5
  }
6
6
  export type Vector3 = [number, number, number];
7
7
  export type Side = 'top' | 'right' | 'bottom' | 'left';
8
+ export type Align = 'start' | 'center' | 'end';
9
+ export type Subset<T, U extends T> = U;
8
10
  export declare enum BedrockStyle {
9
11
  ANIMATED_FILM = "3D_ANIMATED_FAMILY_FILM",
10
12
  FLAT_VECTOR_ILLUSTRATION = "FLAT_VECTOR_ILLUSTRATION",
@@ -18,6 +20,12 @@ export interface Size {
18
20
  width: number;
19
21
  height: number;
20
22
  }
23
+ export interface Position {
24
+ x: number;
25
+ y: number;
26
+ }
27
+ export interface Bounds extends Position, Size {
28
+ }
21
29
  export interface GradientStop {
22
30
  color: string;
23
31
  percent: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digo-labs/common",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",