@supernova-studio/model 1.6.0 → 1.6.1
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/index.d.mts +181 -141
- package/dist/index.d.ts +181 -141
- package/dist/index.js +70 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -529,25 +529,41 @@ function isImportedAsset(asset) {
|
|
|
529
529
|
|
|
530
530
|
// src/dsm/code-components/code-component.ts
|
|
531
531
|
import { z as z23 } from "zod";
|
|
532
|
-
var
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"
|
|
539
|
-
"
|
|
532
|
+
var CodeComponentResolvedTypeKind = z23.enum([
|
|
533
|
+
"string",
|
|
534
|
+
"number",
|
|
535
|
+
"numberLiteral",
|
|
536
|
+
"boolean",
|
|
537
|
+
"booleanLiteral",
|
|
538
|
+
"object",
|
|
539
|
+
"function",
|
|
540
|
+
"stringLiteral",
|
|
541
|
+
"union",
|
|
542
|
+
"slot",
|
|
543
|
+
"null",
|
|
544
|
+
"undefined",
|
|
545
|
+
"any"
|
|
540
546
|
]);
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
|
|
547
|
+
var CodeComponentResolvedType = z23.lazy(
|
|
548
|
+
() => z23.object({
|
|
549
|
+
kind: CodeComponentResolvedTypeKind,
|
|
550
|
+
raw: z23.string().optional(),
|
|
551
|
+
types: z23.array(CodeComponentResolvedType).optional(),
|
|
552
|
+
isArray: z23.boolean().optional()
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
var CodeComponentParentType = z23.object({
|
|
556
|
+
fileName: z23.string(),
|
|
557
|
+
name: z23.string()
|
|
544
558
|
});
|
|
545
559
|
var CodeComponentProperty = z23.object({
|
|
546
|
-
control: CodeComponentPropertyControl,
|
|
547
560
|
defaultValue: z23.string().optional(),
|
|
548
561
|
name: z23.string(),
|
|
549
562
|
required: z23.boolean(),
|
|
550
|
-
type:
|
|
563
|
+
type: CodeComponentResolvedType,
|
|
564
|
+
declarations: z23.array(CodeComponentParentType).optional(),
|
|
565
|
+
tags: z23.record(z23.string(), z23.string()).optional(),
|
|
566
|
+
description: z23.string()
|
|
551
567
|
});
|
|
552
568
|
var CodeComponent = z23.object({
|
|
553
569
|
id: z23.string(),
|
|
@@ -556,7 +572,15 @@ var CodeComponent = z23.object({
|
|
|
556
572
|
createdAt: z23.coerce.date(),
|
|
557
573
|
updatedAt: z23.coerce.date(),
|
|
558
574
|
exportName: z23.string(),
|
|
559
|
-
|
|
575
|
+
componentPath: z23.string(),
|
|
576
|
+
description: z23.string(),
|
|
577
|
+
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
578
|
+
tags: z23.record(z23.string(), z23.string()).optional()
|
|
579
|
+
});
|
|
580
|
+
var CodeComponentUpsertResponse = z23.object({
|
|
581
|
+
created: z23.number().nonnegative(),
|
|
582
|
+
updated: z23.number().nonnegative(),
|
|
583
|
+
deleted: z23.number().nonnegative()
|
|
560
584
|
});
|
|
561
585
|
|
|
562
586
|
// src/dsm/components/asset-rendering.ts
|
|
@@ -4260,29 +4284,24 @@ var DocumentationLinkPreview = z110.object({
|
|
|
4260
4284
|
thumbnail: PageBlockImageReference.optional()
|
|
4261
4285
|
});
|
|
4262
4286
|
|
|
4263
|
-
// src/dsm/documentation/page.ts
|
|
4287
|
+
// src/dsm/documentation/page-anchor.ts
|
|
4264
4288
|
import { z as z111 } from "zod";
|
|
4265
|
-
var
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
shortPersistentId: z111.string(),
|
|
4270
|
-
designSystemVersionId: z111.string(),
|
|
4271
|
-
parentPersistentId: z111.string().nullish(),
|
|
4272
|
-
sortOrder: z111.number(),
|
|
4273
|
-
title: z111.string(),
|
|
4274
|
-
slug: z111.string(),
|
|
4275
|
-
userSlug: z111.string().nullish(),
|
|
4276
|
-
createdAt: z111.coerce.date(),
|
|
4277
|
-
updatedAt: z111.coerce.date()
|
|
4289
|
+
var DocumentationPageAnchor = z111.object({
|
|
4290
|
+
blockId: z111.string(),
|
|
4291
|
+
level: z111.number(),
|
|
4292
|
+
text: z111.string()
|
|
4278
4293
|
});
|
|
4279
4294
|
|
|
4280
|
-
// src/dsm/documentation/page-
|
|
4295
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
4281
4296
|
import { z as z112 } from "zod";
|
|
4282
|
-
var
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4297
|
+
var DocumentationPageContentBackup = z112.object({
|
|
4298
|
+
id: z112.string(),
|
|
4299
|
+
designSystemVersionId: z112.string(),
|
|
4300
|
+
createdAt: z112.coerce.date(),
|
|
4301
|
+
updatedAt: z112.coerce.date(),
|
|
4302
|
+
documentationPageId: z112.string(),
|
|
4303
|
+
documentationPageName: z112.string(),
|
|
4304
|
+
storagePath: z112.string()
|
|
4286
4305
|
});
|
|
4287
4306
|
|
|
4288
4307
|
// src/dsm/documentation/page-content.ts
|
|
@@ -4303,34 +4322,39 @@ var DocumentationPageContent = z113.object({
|
|
|
4303
4322
|
data: DocumentationPageContentData
|
|
4304
4323
|
});
|
|
4305
4324
|
|
|
4306
|
-
// src/dsm/documentation/page-
|
|
4325
|
+
// src/dsm/documentation/page-dependencies.ts
|
|
4307
4326
|
import { z as z114 } from "zod";
|
|
4308
|
-
var
|
|
4327
|
+
var DocumentationPageDependencies = z114.object({
|
|
4309
4328
|
id: z114.string(),
|
|
4310
4329
|
designSystemVersionId: z114.string(),
|
|
4311
4330
|
createdAt: z114.coerce.date(),
|
|
4312
4331
|
updatedAt: z114.coerce.date(),
|
|
4313
4332
|
documentationPageId: z114.string(),
|
|
4314
|
-
|
|
4315
|
-
|
|
4333
|
+
tokenPersistentIds: z114.set(z114.string()),
|
|
4334
|
+
figmaComponentPersistentIds: z114.set(z114.string()),
|
|
4335
|
+
componentPersistentIds: z114.set(z114.string()),
|
|
4336
|
+
figmaNodePersistentIds: z114.set(z114.string()),
|
|
4337
|
+
groupPersistentIds: z114.set(z114.string()),
|
|
4338
|
+
propertyPersistentIds: z114.set(z114.string()),
|
|
4339
|
+
themePersistentIds: z114.set(z114.string()),
|
|
4340
|
+
documentationPagePersistentIds: z114.set(z114.string())
|
|
4316
4341
|
});
|
|
4317
4342
|
|
|
4318
|
-
// src/dsm/documentation/page
|
|
4343
|
+
// src/dsm/documentation/page.ts
|
|
4319
4344
|
import { z as z115 } from "zod";
|
|
4320
|
-
var
|
|
4345
|
+
var DocumentationPage = z115.object({
|
|
4346
|
+
type: z115.literal("DocumentationPage"),
|
|
4321
4347
|
id: z115.string(),
|
|
4348
|
+
persistentId: z115.string(),
|
|
4349
|
+
shortPersistentId: z115.string(),
|
|
4322
4350
|
designSystemVersionId: z115.string(),
|
|
4351
|
+
parentPersistentId: z115.string().nullish(),
|
|
4352
|
+
sortOrder: z115.number(),
|
|
4353
|
+
title: z115.string(),
|
|
4354
|
+
slug: z115.string(),
|
|
4355
|
+
userSlug: z115.string().nullish(),
|
|
4323
4356
|
createdAt: z115.coerce.date(),
|
|
4324
|
-
updatedAt: z115.coerce.date()
|
|
4325
|
-
documentationPageId: z115.string(),
|
|
4326
|
-
tokenPersistentIds: z115.set(z115.string()),
|
|
4327
|
-
figmaComponentPersistentIds: z115.set(z115.string()),
|
|
4328
|
-
componentPersistentIds: z115.set(z115.string()),
|
|
4329
|
-
figmaNodePersistentIds: z115.set(z115.string()),
|
|
4330
|
-
groupPersistentIds: z115.set(z115.string()),
|
|
4331
|
-
propertyPersistentIds: z115.set(z115.string()),
|
|
4332
|
-
themePersistentIds: z115.set(z115.string()),
|
|
4333
|
-
documentationPagePersistentIds: z115.set(z115.string())
|
|
4357
|
+
updatedAt: z115.coerce.date()
|
|
4334
4358
|
});
|
|
4335
4359
|
|
|
4336
4360
|
// src/dsm/documentation/redirects.ts
|
|
@@ -5883,9 +5907,11 @@ export {
|
|
|
5883
5907
|
CardSchema,
|
|
5884
5908
|
ChangedImportedFigmaSourceData,
|
|
5885
5909
|
CodeComponent,
|
|
5910
|
+
CodeComponentParentType,
|
|
5886
5911
|
CodeComponentProperty,
|
|
5887
|
-
|
|
5888
|
-
|
|
5912
|
+
CodeComponentResolvedType,
|
|
5913
|
+
CodeComponentResolvedTypeKind,
|
|
5914
|
+
CodeComponentUpsertResponse,
|
|
5889
5915
|
CodeIntegrationDump,
|
|
5890
5916
|
Collection,
|
|
5891
5917
|
CollectionImportModel,
|