@defai.digital/ax-schemas 1.0.0 → 1.1.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/dist/src/public/core/enums.d.ts +24 -4
- package/dist/src/public/core/enums.d.ts.map +1 -1
- package/dist/src/public/core/id-types.d.ts +6 -6
- package/dist/src/public/core/id-types.d.ts.map +1 -1
- package/dist/src/public/core/id-types.js +7 -7
- package/dist/src/public/core/id-types.js.map +1 -1
- package/dist/src/public/design/alias-types.d.ts +24 -213
- package/dist/src/public/design/alias-types.d.ts.map +1 -1
- package/dist/src/public/design/audit-types.d.ts +176 -390
- package/dist/src/public/design/audit-types.d.ts.map +1 -1
- package/dist/src/public/design/audit-types.js +2 -2
- package/dist/src/public/design/audit-types.js.map +1 -1
- package/dist/src/public/design/figma-types.d.ts +296 -899
- package/dist/src/public/design/figma-types.d.ts.map +1 -1
- package/dist/src/public/design/figma-types.js +17 -17
- package/dist/src/public/design/figma-types.js.map +1 -1
- package/dist/src/public/design/token-types.d.ts +350 -923
- package/dist/src/public/design/token-types.d.ts.map +1 -1
- package/dist/src/public/design/token-types.js +14 -14
- package/dist/src/public/design/token-types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/dist/index.d.ts +0 -16
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/public/agent/chat-types.d.ts +0 -164
- package/dist/public/agent/chat-types.d.ts.map +0 -1
- package/dist/public/agent/chat-types.js +0 -10
- package/dist/public/agent/chat-types.js.map +0 -1
- package/dist/public/agent/index.d.ts +0 -9
- package/dist/public/agent/index.d.ts.map +0 -1
- package/dist/public/agent/index.js +0 -9
- package/dist/public/agent/index.js.map +0 -1
- package/dist/public/core/brand-types.d.ts +0 -308
- package/dist/public/core/brand-types.d.ts.map +0 -1
- package/dist/public/core/brand-types.js +0 -243
- package/dist/public/core/brand-types.js.map +0 -1
- package/dist/public/core/enums.d.ts +0 -227
- package/dist/public/core/enums.d.ts.map +0 -1
- package/dist/public/core/enums.js +0 -222
- package/dist/public/core/enums.js.map +0 -1
- package/dist/public/core/id-types.d.ts +0 -286
- package/dist/public/core/id-types.d.ts.map +0 -1
- package/dist/public/core/id-types.js +0 -136
- package/dist/public/core/id-types.js.map +0 -1
- package/dist/public/design/alias-types.d.ts +0 -346
- package/dist/public/design/alias-types.d.ts.map +0 -1
- package/dist/public/design/alias-types.js +0 -171
- package/dist/public/design/alias-types.js.map +0 -1
- package/dist/public/design/audit-types.d.ts +0 -545
- package/dist/public/design/audit-types.d.ts.map +0 -1
- package/dist/public/design/audit-types.js +0 -307
- package/dist/public/design/audit-types.js.map +0 -1
- package/dist/public/design/figma-types.d.ts +0 -1306
- package/dist/public/design/figma-types.d.ts.map +0 -1
- package/dist/public/design/figma-types.js +0 -428
- package/dist/public/design/figma-types.js.map +0 -1
- package/dist/public/design/index.d.ts +0 -13
- package/dist/public/design/index.d.ts.map +0 -1
- package/dist/public/design/index.js +0 -82
- package/dist/public/design/index.js.map +0 -1
- package/dist/public/design/token-types.d.ts +0 -1245
- package/dist/public/design/token-types.d.ts.map +0 -1
- package/dist/public/design/token-types.js +0 -282
- package/dist/public/design/token-types.js.map +0 -1
|
@@ -31,7 +31,12 @@ import { z } from 'zod';
|
|
|
31
31
|
* }
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export declare const MessageRoleEnum: z.ZodEnum<
|
|
34
|
+
export declare const MessageRoleEnum: z.ZodEnum<{
|
|
35
|
+
system: "system";
|
|
36
|
+
user: "user";
|
|
37
|
+
assistant: "assistant";
|
|
38
|
+
tool: "tool";
|
|
39
|
+
}>;
|
|
35
40
|
/**
|
|
36
41
|
* Extract the TypeScript type from MessageRoleEnum
|
|
37
42
|
*/
|
|
@@ -73,7 +78,12 @@ export type MessageRole = z.infer<typeof MessageRoleEnum>;
|
|
|
73
78
|
* }
|
|
74
79
|
* ```
|
|
75
80
|
*/
|
|
76
|
-
export declare const FinishReasonEnum: z.ZodEnum<
|
|
81
|
+
export declare const FinishReasonEnum: z.ZodEnum<{
|
|
82
|
+
stop: "stop";
|
|
83
|
+
length: "length";
|
|
84
|
+
tool_calls: "tool_calls";
|
|
85
|
+
content_filter: "content_filter";
|
|
86
|
+
}>;
|
|
77
87
|
/**
|
|
78
88
|
* Extract the TypeScript type from FinishReasonEnum
|
|
79
89
|
*/
|
|
@@ -102,7 +112,11 @@ export type FinishReason = z.infer<typeof FinishReasonEnum>;
|
|
|
102
112
|
* };
|
|
103
113
|
* ```
|
|
104
114
|
*/
|
|
105
|
-
export declare const TransportEnum: z.ZodEnum<
|
|
115
|
+
export declare const TransportEnum: z.ZodEnum<{
|
|
116
|
+
stdio: "stdio";
|
|
117
|
+
http: "http";
|
|
118
|
+
sse: "sse";
|
|
119
|
+
}>;
|
|
106
120
|
/**
|
|
107
121
|
* Extract the TypeScript type from TransportEnum
|
|
108
122
|
*/
|
|
@@ -142,7 +156,13 @@ export type Transport = z.infer<typeof TransportEnum>;
|
|
|
142
156
|
* }
|
|
143
157
|
* ```
|
|
144
158
|
*/
|
|
145
|
-
export declare const EditorCommandEnum: z.ZodEnum<
|
|
159
|
+
export declare const EditorCommandEnum: z.ZodEnum<{
|
|
160
|
+
view: "view";
|
|
161
|
+
str_replace: "str_replace";
|
|
162
|
+
create: "create";
|
|
163
|
+
insert: "insert";
|
|
164
|
+
undo_edit: "undo_edit";
|
|
165
|
+
}>;
|
|
146
166
|
/**
|
|
147
167
|
* Extract the TypeScript type from EditorCommandEnum
|
|
148
168
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/public/core/enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/public/core/enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe;;;;;EAAkD,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,aAAa;;;;EAAmC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,iBAAiB;;;;;;EAM5B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -61,9 +61,9 @@ export declare const ToolCallId: {
|
|
|
61
61
|
export type ToolCallId = Brand<string, 'ToolCallId'>;
|
|
62
62
|
/**
|
|
63
63
|
* ToolCallIdSchema - Zod schema for ToolCallId that can be used in z.object()
|
|
64
|
-
*
|
|
64
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
65
65
|
*/
|
|
66
|
-
export declare const ToolCallIdSchema: z.
|
|
66
|
+
export declare const ToolCallIdSchema: z.ZodString;
|
|
67
67
|
/**
|
|
68
68
|
* Model ID - Identifier for AI models
|
|
69
69
|
*
|
|
@@ -91,9 +91,9 @@ export declare const ModelId: {
|
|
|
91
91
|
export type ModelId = Brand<string, 'ModelId'>;
|
|
92
92
|
/**
|
|
93
93
|
* ModelIdSchema - Zod schema for ModelId that can be used in z.object()
|
|
94
|
-
*
|
|
94
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
95
95
|
*/
|
|
96
|
-
export declare const ModelIdSchema: z.
|
|
96
|
+
export declare const ModelIdSchema: z.ZodString;
|
|
97
97
|
/**
|
|
98
98
|
* Tenant ID - Unique identifier for tenants (multi-tenancy support)
|
|
99
99
|
*
|
|
@@ -160,9 +160,9 @@ export declare const MCPServerId: {
|
|
|
160
160
|
export type MCPServerId = Brand<string, 'MCPServerId'>;
|
|
161
161
|
/**
|
|
162
162
|
* MCPServerIdSchema - Zod schema for MCPServerId that can be used in z.object()
|
|
163
|
-
*
|
|
163
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
164
164
|
*/
|
|
165
|
-
export declare const MCPServerIdSchema: z.
|
|
165
|
+
export declare const MCPServerIdSchema: z.ZodString;
|
|
166
166
|
/**
|
|
167
167
|
* Usage Record ID - Unique identifier for usage tracking records
|
|
168
168
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-types.d.ts","sourceRoot":"","sources":["../../../../src/public/core/id-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"id-types.d.ts","sourceRoot":"","sources":["../../../../src/public/core/id-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,kBAAkB,CA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;AAEF,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAGrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAGrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @module id-types
|
|
10
10
|
*/
|
|
11
11
|
import { z } from 'zod';
|
|
12
|
-
import { createBrandFactory
|
|
12
|
+
import { createBrandFactory } from './brand-types.js';
|
|
13
13
|
/**
|
|
14
14
|
* API Response ID - Unique identifier for API responses
|
|
15
15
|
*
|
|
@@ -31,9 +31,9 @@ export const ApiResponseId = createBrandFactory(z.string().uuid(), 'ApiResponseI
|
|
|
31
31
|
export const ToolCallId = createBrandFactory(z.string().min(1), 'ToolCallId');
|
|
32
32
|
/**
|
|
33
33
|
* ToolCallIdSchema - Zod schema for ToolCallId that can be used in z.object()
|
|
34
|
-
*
|
|
34
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
35
35
|
*/
|
|
36
|
-
export const ToolCallIdSchema = z.string().min(1)
|
|
36
|
+
export const ToolCallIdSchema = z.string().min(1);
|
|
37
37
|
/**
|
|
38
38
|
* Model ID - Identifier for AI models
|
|
39
39
|
*
|
|
@@ -46,9 +46,9 @@ export const ToolCallIdSchema = z.string().min(1).transform((val) => brand(val))
|
|
|
46
46
|
export const ModelId = createBrandFactory(z.string().min(1), 'ModelId');
|
|
47
47
|
/**
|
|
48
48
|
* ModelIdSchema - Zod schema for ModelId that can be used in z.object()
|
|
49
|
-
*
|
|
49
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
50
50
|
*/
|
|
51
|
-
export const ModelIdSchema = z.string().min(1)
|
|
51
|
+
export const ModelIdSchema = z.string().min(1);
|
|
52
52
|
/**
|
|
53
53
|
* Tenant ID - Unique identifier for tenants (multi-tenancy support)
|
|
54
54
|
*
|
|
@@ -70,9 +70,9 @@ export const ApiKeyId = createBrandFactory(z.string().uuid(), 'ApiKeyId');
|
|
|
70
70
|
export const MCPServerId = createBrandFactory(z.string().min(1), 'MCPServerId');
|
|
71
71
|
/**
|
|
72
72
|
* MCPServerIdSchema - Zod schema for MCPServerId that can be used in z.object()
|
|
73
|
-
*
|
|
73
|
+
* In Zod 4, we use a plain string schema for object properties
|
|
74
74
|
*/
|
|
75
|
-
export const MCPServerIdSchema = z.string().min(1)
|
|
75
|
+
export const MCPServerIdSchema = z.string().min(1);
|
|
76
76
|
/**
|
|
77
77
|
* Usage Record ID - Unique identifier for usage tracking records
|
|
78
78
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-types.js","sourceRoot":"","sources":["../../../../src/public/core/id-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"id-types.js","sourceRoot":"","sources":["../../../../src/public/core/id-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAc,MAAM,kBAAkB,CAAC;AAElE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAC7C,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EACjB,eAAe,CAChB,CAAC;AAIF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAC1C,CAAC,CAAC,MAAM,EAAE,C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;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CACzC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EACjB,WAAW,CACZ,CAAC;AAIF;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CACzC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EACjB,WAAW,CACZ,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG"}
|
|
@@ -39,99 +39,30 @@ export declare function parseDesignAlias(value: unknown): {
|
|
|
39
39
|
* Target reference for an alias
|
|
40
40
|
*/
|
|
41
41
|
export declare const AliasTargetSchema: z.ZodObject<{
|
|
42
|
-
/** Figma file key */
|
|
43
42
|
fileKey: z.ZodString;
|
|
44
|
-
/** Node ID within the file */
|
|
45
43
|
nodeId: z.ZodString;
|
|
46
|
-
/** Optional description of this alias */
|
|
47
44
|
description: z.ZodOptional<z.ZodString>;
|
|
48
|
-
/** When this alias was created/updated */
|
|
49
45
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
50
|
-
},
|
|
51
|
-
nodeId: string;
|
|
52
|
-
fileKey: string;
|
|
53
|
-
description?: string | undefined;
|
|
54
|
-
updatedAt?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
nodeId: string;
|
|
57
|
-
fileKey: string;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
updatedAt?: string | undefined;
|
|
60
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
61
47
|
export type AliasTarget = z.infer<typeof AliasTargetSchema>;
|
|
62
48
|
/**
|
|
63
49
|
* Complete alias configuration stored in .ax-cli/design.json
|
|
64
50
|
*/
|
|
65
51
|
export declare const DesignConfigSchema: z.ZodObject<{
|
|
66
|
-
/** Schema version for future migrations */
|
|
67
52
|
version: z.ZodLiteral<1>;
|
|
68
|
-
/** Default file key when not specified in alias */
|
|
69
53
|
defaultFile: z.ZodOptional<z.ZodString>;
|
|
70
|
-
/** Optional design system file key (for DS-specific operations) */
|
|
71
54
|
dsFile: z.ZodOptional<z.ZodString>;
|
|
72
|
-
/** Map of alias names to targets */
|
|
73
55
|
aliases: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
|
-
/** Figma file key */
|
|
75
56
|
fileKey: z.ZodString;
|
|
76
|
-
/** Node ID within the file */
|
|
77
57
|
nodeId: z.ZodString;
|
|
78
|
-
/** Optional description of this alias */
|
|
79
58
|
description: z.ZodOptional<z.ZodString>;
|
|
80
|
-
/** When this alias was created/updated */
|
|
81
59
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
82
|
-
},
|
|
83
|
-
nodeId: string;
|
|
84
|
-
fileKey: string;
|
|
85
|
-
description?: string | undefined;
|
|
86
|
-
updatedAt?: string | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
nodeId: string;
|
|
89
|
-
fileKey: string;
|
|
90
|
-
description?: string | undefined;
|
|
91
|
-
updatedAt?: string | undefined;
|
|
92
|
-
}>>;
|
|
93
|
-
/** Metadata about the configuration */
|
|
60
|
+
}, z.core.$strip>>;
|
|
94
61
|
meta: z.ZodOptional<z.ZodObject<{
|
|
95
|
-
/** When config was last modified */
|
|
96
62
|
lastModified: z.ZodOptional<z.ZodString>;
|
|
97
|
-
/** Figma file names for display */
|
|
98
63
|
fileNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
fileNames?: Record<string, string> | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
lastModified?: string | undefined;
|
|
104
|
-
fileNames?: Record<string, string> | undefined;
|
|
105
|
-
}>>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
version: 1;
|
|
108
|
-
aliases: Record<string, {
|
|
109
|
-
nodeId: string;
|
|
110
|
-
fileKey: string;
|
|
111
|
-
description?: string | undefined;
|
|
112
|
-
updatedAt?: string | undefined;
|
|
113
|
-
}>;
|
|
114
|
-
meta?: {
|
|
115
|
-
lastModified?: string | undefined;
|
|
116
|
-
fileNames?: Record<string, string> | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
defaultFile?: string | undefined;
|
|
119
|
-
dsFile?: string | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
version: 1;
|
|
122
|
-
aliases: Record<string, {
|
|
123
|
-
nodeId: string;
|
|
124
|
-
fileKey: string;
|
|
125
|
-
description?: string | undefined;
|
|
126
|
-
updatedAt?: string | undefined;
|
|
127
|
-
}>;
|
|
128
|
-
meta?: {
|
|
129
|
-
lastModified?: string | undefined;
|
|
130
|
-
fileNames?: Record<string, string> | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
defaultFile?: string | undefined;
|
|
133
|
-
dsFile?: string | undefined;
|
|
134
|
-
}>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
135
66
|
export type DesignConfig = z.infer<typeof DesignConfigSchema>;
|
|
136
67
|
/**
|
|
137
68
|
* Create empty design config
|
|
@@ -145,17 +76,7 @@ export declare const AddAliasInputSchema: z.ZodObject<{
|
|
|
145
76
|
fileKey: z.ZodString;
|
|
146
77
|
nodeId: z.ZodString;
|
|
147
78
|
description: z.ZodOptional<z.ZodString>;
|
|
148
|
-
},
|
|
149
|
-
nodeId: string;
|
|
150
|
-
fileKey: string;
|
|
151
|
-
alias: string;
|
|
152
|
-
description?: string | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
nodeId: string;
|
|
155
|
-
fileKey: string;
|
|
156
|
-
alias: string;
|
|
157
|
-
description?: string | undefined;
|
|
158
|
-
}>;
|
|
79
|
+
}, z.core.$strip>;
|
|
159
80
|
export type AddAliasInput = z.infer<typeof AddAliasInputSchema>;
|
|
160
81
|
/**
|
|
161
82
|
* Result of alias operations
|
|
@@ -165,94 +86,42 @@ export declare const AliasOperationResultSchema: z.ZodObject<{
|
|
|
165
86
|
alias: z.ZodString;
|
|
166
87
|
message: z.ZodString;
|
|
167
88
|
target: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
/** Figma file key */
|
|
169
89
|
fileKey: z.ZodString;
|
|
170
|
-
/** Node ID within the file */
|
|
171
90
|
nodeId: z.ZodString;
|
|
172
|
-
/** Optional description of this alias */
|
|
173
91
|
description: z.ZodOptional<z.ZodString>;
|
|
174
|
-
/** When this alias was created/updated */
|
|
175
92
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
fileKey: string;
|
|
179
|
-
description?: string | undefined;
|
|
180
|
-
updatedAt?: string | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
nodeId: string;
|
|
183
|
-
fileKey: string;
|
|
184
|
-
description?: string | undefined;
|
|
185
|
-
updatedAt?: string | undefined;
|
|
186
|
-
}>>;
|
|
187
|
-
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
message: string;
|
|
189
|
-
alias: string;
|
|
190
|
-
success: boolean;
|
|
191
|
-
target?: {
|
|
192
|
-
nodeId: string;
|
|
193
|
-
fileKey: string;
|
|
194
|
-
description?: string | undefined;
|
|
195
|
-
updatedAt?: string | undefined;
|
|
196
|
-
} | undefined;
|
|
197
|
-
}, {
|
|
198
|
-
message: string;
|
|
199
|
-
alias: string;
|
|
200
|
-
success: boolean;
|
|
201
|
-
target?: {
|
|
202
|
-
nodeId: string;
|
|
203
|
-
fileKey: string;
|
|
204
|
-
description?: string | undefined;
|
|
205
|
-
updatedAt?: string | undefined;
|
|
206
|
-
} | undefined;
|
|
207
|
-
}>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
208
95
|
export type AliasOperationResult = z.infer<typeof AliasOperationResultSchema>;
|
|
209
96
|
/**
|
|
210
97
|
* Resolved alias with all information
|
|
211
98
|
*/
|
|
212
99
|
export declare const ResolvedAliasSchema: z.ZodObject<{
|
|
213
|
-
/** Original alias name */
|
|
214
100
|
alias: z.ZodString;
|
|
215
|
-
/** Resolved file key */
|
|
216
101
|
fileKey: z.ZodString;
|
|
217
|
-
/** Resolved node ID */
|
|
218
102
|
nodeId: z.ZodString;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
103
|
+
source: z.ZodEnum<{
|
|
104
|
+
explicit: "explicit";
|
|
105
|
+
"default-file": "default-file";
|
|
106
|
+
"ds-file": "ds-file";
|
|
107
|
+
}>;
|
|
222
108
|
description: z.ZodOptional<z.ZodString>;
|
|
223
|
-
},
|
|
224
|
-
nodeId: string;
|
|
225
|
-
fileKey: string;
|
|
226
|
-
alias: string;
|
|
227
|
-
source: "explicit" | "default-file" | "ds-file";
|
|
228
|
-
description?: string | undefined;
|
|
229
|
-
}, {
|
|
230
|
-
nodeId: string;
|
|
231
|
-
fileKey: string;
|
|
232
|
-
alias: string;
|
|
233
|
-
source: "explicit" | "default-file" | "ds-file";
|
|
234
|
-
description?: string | undefined;
|
|
235
|
-
}>;
|
|
109
|
+
}, z.core.$strip>;
|
|
236
110
|
export type ResolvedAlias = z.infer<typeof ResolvedAliasSchema>;
|
|
237
111
|
/**
|
|
238
112
|
* Alias resolution error
|
|
239
113
|
*/
|
|
240
114
|
export declare const AliasResolutionErrorSchema: z.ZodObject<{
|
|
241
115
|
alias: z.ZodString;
|
|
242
|
-
error: z.ZodEnum<
|
|
116
|
+
error: z.ZodEnum<{
|
|
117
|
+
not_found: "not_found";
|
|
118
|
+
no_default_file: "no_default_file";
|
|
119
|
+
invalid_format: "invalid_format";
|
|
120
|
+
ambiguous: "ambiguous";
|
|
121
|
+
}>;
|
|
243
122
|
message: z.ZodString;
|
|
244
|
-
suggestions: z.ZodOptional<z.ZodArray<z.ZodString
|
|
245
|
-
},
|
|
246
|
-
error: "not_found" | "no_default_file" | "invalid_format" | "ambiguous";
|
|
247
|
-
message: string;
|
|
248
|
-
alias: string;
|
|
249
|
-
suggestions?: string[] | undefined;
|
|
250
|
-
}, {
|
|
251
|
-
error: "not_found" | "no_default_file" | "invalid_format" | "ambiguous";
|
|
252
|
-
message: string;
|
|
253
|
-
alias: string;
|
|
254
|
-
suggestions?: string[] | undefined;
|
|
255
|
-
}>;
|
|
123
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
256
125
|
export type AliasResolutionError = z.infer<typeof AliasResolutionErrorSchema>;
|
|
257
126
|
/**
|
|
258
127
|
* Alias entry for display in list command
|
|
@@ -265,23 +134,7 @@ export declare const AliasListEntrySchema: z.ZodObject<{
|
|
|
265
134
|
nodeName: z.ZodOptional<z.ZodString>;
|
|
266
135
|
description: z.ZodOptional<z.ZodString>;
|
|
267
136
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
268
|
-
},
|
|
269
|
-
nodeId: string;
|
|
270
|
-
fileKey: string;
|
|
271
|
-
alias: string;
|
|
272
|
-
description?: string | undefined;
|
|
273
|
-
updatedAt?: string | undefined;
|
|
274
|
-
fileName?: string | undefined;
|
|
275
|
-
nodeName?: string | undefined;
|
|
276
|
-
}, {
|
|
277
|
-
nodeId: string;
|
|
278
|
-
fileKey: string;
|
|
279
|
-
alias: string;
|
|
280
|
-
description?: string | undefined;
|
|
281
|
-
updatedAt?: string | undefined;
|
|
282
|
-
fileName?: string | undefined;
|
|
283
|
-
nodeName?: string | undefined;
|
|
284
|
-
}>;
|
|
137
|
+
}, z.core.$strip>;
|
|
285
138
|
export type AliasListEntry = z.infer<typeof AliasListEntrySchema>;
|
|
286
139
|
/**
|
|
287
140
|
* Full alias list response
|
|
@@ -297,50 +150,8 @@ export declare const AliasListResponseSchema: z.ZodObject<{
|
|
|
297
150
|
nodeName: z.ZodOptional<z.ZodString>;
|
|
298
151
|
description: z.ZodOptional<z.ZodString>;
|
|
299
152
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
300
|
-
},
|
|
301
|
-
nodeId: string;
|
|
302
|
-
fileKey: string;
|
|
303
|
-
alias: string;
|
|
304
|
-
description?: string | undefined;
|
|
305
|
-
updatedAt?: string | undefined;
|
|
306
|
-
fileName?: string | undefined;
|
|
307
|
-
nodeName?: string | undefined;
|
|
308
|
-
}, {
|
|
309
|
-
nodeId: string;
|
|
310
|
-
fileKey: string;
|
|
311
|
-
alias: string;
|
|
312
|
-
description?: string | undefined;
|
|
313
|
-
updatedAt?: string | undefined;
|
|
314
|
-
fileName?: string | undefined;
|
|
315
|
-
nodeName?: string | undefined;
|
|
316
|
-
}>, "many">;
|
|
153
|
+
}, z.core.$strip>>;
|
|
317
154
|
total: z.ZodNumber;
|
|
318
|
-
},
|
|
319
|
-
aliases: {
|
|
320
|
-
nodeId: string;
|
|
321
|
-
fileKey: string;
|
|
322
|
-
alias: string;
|
|
323
|
-
description?: string | undefined;
|
|
324
|
-
updatedAt?: string | undefined;
|
|
325
|
-
fileName?: string | undefined;
|
|
326
|
-
nodeName?: string | undefined;
|
|
327
|
-
}[];
|
|
328
|
-
total: number;
|
|
329
|
-
defaultFile?: string | undefined;
|
|
330
|
-
dsFile?: string | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
aliases: {
|
|
333
|
-
nodeId: string;
|
|
334
|
-
fileKey: string;
|
|
335
|
-
alias: string;
|
|
336
|
-
description?: string | undefined;
|
|
337
|
-
updatedAt?: string | undefined;
|
|
338
|
-
fileName?: string | undefined;
|
|
339
|
-
nodeName?: string | undefined;
|
|
340
|
-
}[];
|
|
341
|
-
total: number;
|
|
342
|
-
defaultFile?: string | undefined;
|
|
343
|
-
dsFile?: string | undefined;
|
|
344
|
-
}>;
|
|
155
|
+
}, z.core.$strip>;
|
|
345
156
|
export type AliasListResponse = z.infer<typeof AliasListResponseSchema>;
|
|
346
157
|
//# sourceMappingURL=alias-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias-types.d.ts","sourceRoot":"","sources":["../../../../src/public/design/alias-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAS,KAAK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