@supernova-studio/client 0.47.34 → 0.47.35
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 +799 -799
- package/dist/index.d.ts +799 -799
- package/dist/index.js +427 -427
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1817 -1817
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114,7 +114,6 @@ var _zod = require('zod');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
|
|
118
117
|
|
|
119
118
|
|
|
120
119
|
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
@@ -138,6 +137,8 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
138
137
|
|
|
139
138
|
|
|
140
139
|
|
|
140
|
+
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
141
|
+
|
|
141
142
|
|
|
142
143
|
|
|
143
144
|
|
|
@@ -160,7 +161,6 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
160
161
|
|
|
161
162
|
|
|
162
163
|
|
|
163
|
-
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
@@ -398,6 +398,94 @@ var CustomDomain = _zod.z.object({
|
|
|
398
398
|
error: _zod.z.string().nullish(),
|
|
399
399
|
errorCode: _zod.z.string().nullish()
|
|
400
400
|
});
|
|
401
|
+
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
402
|
+
GitProviderNames2["Azure"] = "azure";
|
|
403
|
+
GitProviderNames2["Github"] = "github";
|
|
404
|
+
GitProviderNames2["Gitlab"] = "gitlab";
|
|
405
|
+
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
406
|
+
return GitProviderNames2;
|
|
407
|
+
})(GitProviderNames || {});
|
|
408
|
+
var GitProvider = _zod.z.nativeEnum(GitProviderNames);
|
|
409
|
+
var PulsarPropertyType = _zod.z.enum([
|
|
410
|
+
"string",
|
|
411
|
+
"number",
|
|
412
|
+
"boolean",
|
|
413
|
+
"image",
|
|
414
|
+
"enum",
|
|
415
|
+
"color",
|
|
416
|
+
"typography",
|
|
417
|
+
"component",
|
|
418
|
+
"componentProperties",
|
|
419
|
+
"tokenProperties",
|
|
420
|
+
"tokenType"
|
|
421
|
+
]);
|
|
422
|
+
var PulsarBaseProperty = _zod.z.object({
|
|
423
|
+
label: _zod.z.string(),
|
|
424
|
+
key: _zod.z.string(),
|
|
425
|
+
description: _zod.z.string().nullish(),
|
|
426
|
+
type: PulsarPropertyType,
|
|
427
|
+
values: _zod.z.array(_zod.z.string()).nullish(),
|
|
428
|
+
default: _zod.z.union([_zod.z.string(), _zod.z.boolean(), _zod.z.number()]).nullish(),
|
|
429
|
+
// PulsarPropertyValueType //is optional?
|
|
430
|
+
inputType: _zod.z.enum(["code", "plain"]).optional(),
|
|
431
|
+
//is optional?
|
|
432
|
+
isMultiline: _zod.z.boolean().nullish()
|
|
433
|
+
});
|
|
434
|
+
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
435
|
+
category: _zod.z.string()
|
|
436
|
+
});
|
|
437
|
+
var PulsarContributionVariant = _zod.z.object({
|
|
438
|
+
key: _zod.z.string(),
|
|
439
|
+
name: _zod.z.string(),
|
|
440
|
+
isDefault: nullishToOptional(_zod.z.boolean()),
|
|
441
|
+
description: nullishToOptional(_zod.z.string()),
|
|
442
|
+
thumbnailURL: nullishToOptional(_zod.z.string())
|
|
443
|
+
});
|
|
444
|
+
var PulsarCustomBlock = _zod.z.object({
|
|
445
|
+
title: nullishToOptional(_zod.z.string()),
|
|
446
|
+
key: _zod.z.string(),
|
|
447
|
+
category: nullishToOptional(_zod.z.string()),
|
|
448
|
+
description: nullishToOptional(_zod.z.string()),
|
|
449
|
+
iconURL: nullishToOptional(_zod.z.string()),
|
|
450
|
+
mode: nullishToOptional(_zod.z.enum(["array", "block"])),
|
|
451
|
+
properties: nullishToOptional(_zod.z.array(PulsarBaseProperty)).transform((v) => _nullishCoalesce(v, () => ( [])))
|
|
452
|
+
});
|
|
453
|
+
var ExporterType = _zod.z.enum(["code", "documentation"]);
|
|
454
|
+
var ExporterSource = _zod.z.enum(["git", "upload"]);
|
|
455
|
+
var ExporterTag = _zod.z.string();
|
|
456
|
+
var ExporterPulsarDetails = _zod.z.object({
|
|
457
|
+
description: _zod.z.string(),
|
|
458
|
+
version: _zod.z.string(),
|
|
459
|
+
routingVersion: nullishToOptional(_zod.z.string()),
|
|
460
|
+
author: nullishToOptional(_zod.z.string()),
|
|
461
|
+
organization: nullishToOptional(_zod.z.string()),
|
|
462
|
+
homepage: nullishToOptional(_zod.z.string()),
|
|
463
|
+
readme: nullishToOptional(_zod.z.string()),
|
|
464
|
+
tags: nullishToOptional(_zod.z.array(ExporterTag)).default([]),
|
|
465
|
+
packageId: nullishToOptional(_zod.z.string().max(255)),
|
|
466
|
+
iconURL: nullishToOptional(_zod.z.string()),
|
|
467
|
+
configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
|
|
468
|
+
customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
|
|
469
|
+
blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
|
|
470
|
+
usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
|
|
471
|
+
usesThemes: nullishToOptional(_zod.z.boolean()).default(false)
|
|
472
|
+
});
|
|
473
|
+
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
474
|
+
source: ExporterSource,
|
|
475
|
+
gitProvider: nullishToOptional(GitProvider),
|
|
476
|
+
gitUrl: nullishToOptional(_zod.z.string()),
|
|
477
|
+
gitBranch: nullishToOptional(_zod.z.string()),
|
|
478
|
+
gitDirectory: nullishToOptional(_zod.z.string())
|
|
479
|
+
});
|
|
480
|
+
var Exporter = _zod.z.object({
|
|
481
|
+
id: _zod.z.string(),
|
|
482
|
+
createdAt: _zod.z.coerce.date(),
|
|
483
|
+
name: _zod.z.string(),
|
|
484
|
+
isPrivate: _zod.z.boolean(),
|
|
485
|
+
details: ExporterDetails,
|
|
486
|
+
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
487
|
+
storagePath: nullishToOptional(_zod.z.string()).default("")
|
|
488
|
+
});
|
|
401
489
|
var AssetDynamoRecord = _zod.z.object({
|
|
402
490
|
path: _zod.z.string(),
|
|
403
491
|
id: _zod.z.string(),
|
|
@@ -2439,14 +2527,6 @@ var SsoProvider = _zod.z.object({
|
|
|
2439
2527
|
emailDomains: _zod.z.array(_zod.z.string()),
|
|
2440
2528
|
metadataXml: _zod.z.string().nullish()
|
|
2441
2529
|
});
|
|
2442
|
-
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2443
|
-
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2444
|
-
var MAX_MEMBERS_COUNT = 100;
|
|
2445
|
-
var UserInvite = _zod.z.object({
|
|
2446
|
-
email: _zod.z.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2447
|
-
role: WorkspaceRoleSchema
|
|
2448
|
-
});
|
|
2449
|
-
var UserInvites = _zod.z.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2450
2530
|
var isValidCIDR = (value) => {
|
|
2451
2531
|
return _ipcidr2.default.isValidAddress(value);
|
|
2452
2532
|
};
|
|
@@ -2484,155 +2564,6 @@ var WorkspaceWithDesignSystems = _zod.z.object({
|
|
|
2484
2564
|
workspace: Workspace,
|
|
2485
2565
|
designSystems: _zod.z.array(DesignSystem)
|
|
2486
2566
|
});
|
|
2487
|
-
var WorkspaceConfigurationUpdate = _zod.z.object({
|
|
2488
|
-
id: _zod.z.string(),
|
|
2489
|
-
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
2490
|
-
sso: SsoProvider.optional(),
|
|
2491
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2492
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
2493
|
-
});
|
|
2494
|
-
var WorkspaceContext = _zod.z.object({
|
|
2495
|
-
workspaceId: _zod.z.string(),
|
|
2496
|
-
product: ProductCodeSchema,
|
|
2497
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2498
|
-
publicDesignSystem: _zod.z.boolean().optional()
|
|
2499
|
-
});
|
|
2500
|
-
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2501
|
-
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2502
|
-
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2503
|
-
var HANDLE_MIN_LENGTH = 2;
|
|
2504
|
-
var HANDLE_MAX_LENGTH = 64;
|
|
2505
|
-
var CreateWorkspaceInput = _zod.z.object({
|
|
2506
|
-
name: _zod.z.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2507
|
-
product: ProductCodeSchema,
|
|
2508
|
-
priceId: _zod.z.string(),
|
|
2509
|
-
billingEmail: _zod.z.string().email().optional(),
|
|
2510
|
-
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _ => _.length]) > 0).optional(),
|
|
2511
|
-
invites: UserInvites.optional(),
|
|
2512
|
-
promoCode: _zod.z.string().optional(),
|
|
2513
|
-
status: InternalStatusSchema.optional(),
|
|
2514
|
-
planInterval: BillingIntervalSchema.optional(),
|
|
2515
|
-
seats: _zod.z.number().optional(),
|
|
2516
|
-
seatLimit: _zod.z.number().optional(),
|
|
2517
|
-
card: CardSchema.optional(),
|
|
2518
|
-
sso: SsoProvider.optional(),
|
|
2519
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2520
|
-
ipWhitelist: WorkspaceIpSettings.optional()
|
|
2521
|
-
});
|
|
2522
|
-
var WorkspaceInvitation = _zod.z.object({
|
|
2523
|
-
id: _zod.z.string(),
|
|
2524
|
-
email: _zod.z.string().email(),
|
|
2525
|
-
createdAt: _zod.z.coerce.date(),
|
|
2526
|
-
resentAt: _zod.z.coerce.date().nullish(),
|
|
2527
|
-
role: _zod.z.nativeEnum(WorkspaceRole),
|
|
2528
|
-
workspaceId: _zod.z.string(),
|
|
2529
|
-
invitedBy: _zod.z.string()
|
|
2530
|
-
});
|
|
2531
|
-
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
2532
|
-
var ExternalServiceType = _zod.z.union([
|
|
2533
|
-
_zod.z.literal("figma"),
|
|
2534
|
-
_zod.z.literal("github"),
|
|
2535
|
-
_zod.z.literal("azure"),
|
|
2536
|
-
_zod.z.literal("gitlab"),
|
|
2537
|
-
_zod.z.literal("bitbucket")
|
|
2538
|
-
]);
|
|
2539
|
-
var IntegrationUserInfo = _zod.z.object({
|
|
2540
|
-
id: _zod.z.string(),
|
|
2541
|
-
handle: _zod.z.string().optional(),
|
|
2542
|
-
avatarUrl: _zod.z.string().optional(),
|
|
2543
|
-
email: _zod.z.string().optional(),
|
|
2544
|
-
authType: IntegrationAuthType.optional(),
|
|
2545
|
-
customUrl: _zod.z.string().optional()
|
|
2546
|
-
});
|
|
2547
|
-
var UserLinkedIntegrations = _zod.z.object({
|
|
2548
|
-
figma: IntegrationUserInfo.optional(),
|
|
2549
|
-
github: IntegrationUserInfo.array().optional(),
|
|
2550
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
2551
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
2552
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
2553
|
-
});
|
|
2554
|
-
var UserAnalyticsCleanupSchedule = _zod.z.object({
|
|
2555
|
-
userId: _zod.z.string(),
|
|
2556
|
-
createdAt: _zod.z.coerce.date(),
|
|
2557
|
-
deleteAt: _zod.z.coerce.date()
|
|
2558
|
-
});
|
|
2559
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
2560
|
-
createdAt: true
|
|
2561
|
-
});
|
|
2562
|
-
var CreateUserInput = _zod.z.object({
|
|
2563
|
-
email: _zod.z.string(),
|
|
2564
|
-
name: _zod.z.string(),
|
|
2565
|
-
username: _zod.z.string()
|
|
2566
|
-
});
|
|
2567
|
-
var UserIdentity = _zod.z.object({
|
|
2568
|
-
id: _zod.z.string(),
|
|
2569
|
-
userId: _zod.z.string()
|
|
2570
|
-
});
|
|
2571
|
-
var UserMinified = _zod.z.object({
|
|
2572
|
-
id: _zod.z.string(),
|
|
2573
|
-
name: _zod.z.string(),
|
|
2574
|
-
email: _zod.z.string(),
|
|
2575
|
-
avatar: _zod.z.string().optional()
|
|
2576
|
-
});
|
|
2577
|
-
var LiveblocksNotificationSettings = _zod.z.object({
|
|
2578
|
-
sendCommentNotificationEmails: _zod.z.boolean()
|
|
2579
|
-
});
|
|
2580
|
-
var UserNotificationSettings = _zod.z.object({
|
|
2581
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
2582
|
-
});
|
|
2583
|
-
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
2584
|
-
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2585
|
-
var UserOnboarding = _zod.z.object({
|
|
2586
|
-
companyName: _zod.z.string().optional(),
|
|
2587
|
-
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
2588
|
-
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
2589
|
-
department: UserOnboardingDepartment.optional(),
|
|
2590
|
-
jobTitle: _zod.z.string().optional(),
|
|
2591
|
-
phase: _zod.z.string().optional(),
|
|
2592
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
2593
|
-
designSystemName: _zod.z.string().optional(),
|
|
2594
|
-
defaultDestination: _zod.z.string().optional(),
|
|
2595
|
-
figmaUrl: _zod.z.string().optional()
|
|
2596
|
-
});
|
|
2597
|
-
var UserProfile = _zod.z.object({
|
|
2598
|
-
name: _zod.z.string(),
|
|
2599
|
-
avatar: _zod.z.string().optional(),
|
|
2600
|
-
nickname: _zod.z.string().optional(),
|
|
2601
|
-
onboarding: UserOnboarding.optional()
|
|
2602
|
-
});
|
|
2603
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
2604
|
-
avatar: true
|
|
2605
|
-
});
|
|
2606
|
-
var UserTest = _zod.z.object({
|
|
2607
|
-
id: _zod.z.string(),
|
|
2608
|
-
email: _zod.z.string()
|
|
2609
|
-
});
|
|
2610
|
-
var User = _zod.z.object({
|
|
2611
|
-
id: _zod.z.string(),
|
|
2612
|
-
email: _zod.z.string(),
|
|
2613
|
-
emailVerified: _zod.z.boolean(),
|
|
2614
|
-
createdAt: _zod.z.coerce.date(),
|
|
2615
|
-
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
2616
|
-
profile: UserProfile,
|
|
2617
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2618
|
-
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
2619
|
-
isProtected: _zod.z.boolean()
|
|
2620
|
-
});
|
|
2621
|
-
var WorkspaceMembership = _zod.z.object({
|
|
2622
|
-
id: _zod.z.string(),
|
|
2623
|
-
userId: _zod.z.string(),
|
|
2624
|
-
workspaceId: _zod.z.string(),
|
|
2625
|
-
workspaceRole: _zod.z.nativeEnum(WorkspaceRole),
|
|
2626
|
-
notificationSettings: UserNotificationSettings
|
|
2627
|
-
});
|
|
2628
|
-
var UpdateMembershipRolesInput = _zod.z.object({
|
|
2629
|
-
members: _zod.z.array(
|
|
2630
|
-
_zod.z.object({
|
|
2631
|
-
userId: _zod.z.string(),
|
|
2632
|
-
role: _zod.z.nativeEnum(WorkspaceRole)
|
|
2633
|
-
})
|
|
2634
|
-
)
|
|
2635
|
-
});
|
|
2636
2567
|
var DesignSystemSwitcher = _zod.z.object({
|
|
2637
2568
|
isEnabled: _zod.z.boolean(),
|
|
2638
2569
|
designSystemIds: _zod.z.array(_zod.z.string())
|
|
@@ -2766,34 +2697,9 @@ var VersionCreationJob = _zod.z.object({
|
|
|
2766
2697
|
status: VersionCreationJobStatus,
|
|
2767
2698
|
errorMessage: nullishToOptional(_zod.z.string())
|
|
2768
2699
|
});
|
|
2769
|
-
var
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
environment: PublishedDocEnvironment
|
|
2773
|
-
});
|
|
2774
|
-
var ExportJobContext = _zod.z.object({
|
|
2775
|
-
apiUrl: _zod.z.string(),
|
|
2776
|
-
accessToken: _zod.z.string(),
|
|
2777
|
-
designSystemId: _zod.z.string(),
|
|
2778
|
-
designSystemName: _zod.z.string(),
|
|
2779
|
-
exporterId: _zod.z.string(),
|
|
2780
|
-
versionId: _zod.z.string(),
|
|
2781
|
-
brandId: _zod.z.string().optional(),
|
|
2782
|
-
themeId: _zod.z.string().optional(),
|
|
2783
|
-
exporterName: _zod.z.string(),
|
|
2784
|
-
exporterPackageUrl: _zod.z.string(),
|
|
2785
|
-
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
2786
|
-
documentation: ExportJobDocumentationContext.optional()
|
|
2787
|
-
});
|
|
2788
|
-
var ExporterFunctionPayload = _zod.z.object({
|
|
2789
|
-
exportJobId: _zod.z.string(),
|
|
2790
|
-
exportContextId: _zod.z.string(),
|
|
2791
|
-
designSystemId: _zod.z.string(),
|
|
2792
|
-
workspaceId: _zod.z.string()
|
|
2793
|
-
});
|
|
2794
|
-
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2795
|
-
var BITBUCKET_MAX_LENGTH = 64;
|
|
2796
|
-
var ExporterDestinationDocs = _zod.z.object({
|
|
2700
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2701
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
2702
|
+
var ExporterDestinationDocs = _zod.z.object({
|
|
2797
2703
|
environment: PublishedDocEnvironment
|
|
2798
2704
|
});
|
|
2799
2705
|
var ExporterDestinationS3 = _zod.z.object({});
|
|
@@ -2858,173 +2764,6 @@ var ExportDestinationsMap = _zod.z.object({
|
|
|
2858
2764
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2859
2765
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2860
2766
|
});
|
|
2861
|
-
var ExportJobDestinationType = _zod.z.enum([
|
|
2862
|
-
"s3",
|
|
2863
|
-
"webhookUrl",
|
|
2864
|
-
"github",
|
|
2865
|
-
"documentation",
|
|
2866
|
-
"azure",
|
|
2867
|
-
"gitlab",
|
|
2868
|
-
"bitbucket"
|
|
2869
|
-
]);
|
|
2870
|
-
var ExportJobStatus = _zod.z.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2871
|
-
var ExportJobLogEntryType = _zod.z.enum(["success", "info", "warning", "error", "user"]);
|
|
2872
|
-
var ExportJobLogEntry = _zod.z.object({
|
|
2873
|
-
id: _zod.z.string().optional(),
|
|
2874
|
-
time: _zod.z.coerce.date(),
|
|
2875
|
-
type: ExportJobLogEntryType,
|
|
2876
|
-
message: _zod.z.string()
|
|
2877
|
-
});
|
|
2878
|
-
var ExportJobPullRequestDestinationResult = _zod.z.object({
|
|
2879
|
-
pullRequestUrl: _zod.z.string()
|
|
2880
|
-
});
|
|
2881
|
-
var ExportJobS3DestinationResult = _zod.z.object({
|
|
2882
|
-
bucket: _zod.z.string(),
|
|
2883
|
-
urlPrefix: _zod.z.string().optional(),
|
|
2884
|
-
path: _zod.z.string(),
|
|
2885
|
-
files: _zod.z.array(_zod.z.string()),
|
|
2886
|
-
url: nullishToOptional(_zod.z.string()),
|
|
2887
|
-
urls: nullishToOptional(_zod.z.string().array())
|
|
2888
|
-
});
|
|
2889
|
-
var ExportJobDocsDestinationResult = _zod.z.object({
|
|
2890
|
-
url: _zod.z.string()
|
|
2891
|
-
});
|
|
2892
|
-
var ExportJobResult = _zod.z.object({
|
|
2893
|
-
error: _zod.z.string().optional(),
|
|
2894
|
-
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
2895
|
-
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2896
|
-
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2897
|
-
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2898
|
-
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2899
|
-
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
2900
|
-
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
2901
|
-
});
|
|
2902
|
-
var ExportJob = _zod.z.object({
|
|
2903
|
-
id: _zod.z.string(),
|
|
2904
|
-
createdAt: _zod.z.coerce.date(),
|
|
2905
|
-
finishedAt: _zod.z.coerce.date().optional(),
|
|
2906
|
-
designSystemId: _zod.z.string(),
|
|
2907
|
-
designSystemVersionId: _zod.z.string(),
|
|
2908
|
-
workspaceId: _zod.z.string(),
|
|
2909
|
-
scheduleId: _zod.z.string().nullish(),
|
|
2910
|
-
exporterId: _zod.z.string(),
|
|
2911
|
-
brandId: _zod.z.string().optional(),
|
|
2912
|
-
themeId: _zod.z.string().optional(),
|
|
2913
|
-
estimatedExecutionTime: _zod.z.number().optional(),
|
|
2914
|
-
status: ExportJobStatus,
|
|
2915
|
-
result: ExportJobResult.optional(),
|
|
2916
|
-
createdByUserId: _zod.z.string().optional(),
|
|
2917
|
-
// Destinations
|
|
2918
|
-
...ExportDestinationsMap.shape
|
|
2919
|
-
});
|
|
2920
|
-
var ExportJobFindByFilter = ExportJob.pick({
|
|
2921
|
-
exporterId: true,
|
|
2922
|
-
designSystemVersionId: true,
|
|
2923
|
-
createdByUserId: true,
|
|
2924
|
-
status: true,
|
|
2925
|
-
scheduleId: true,
|
|
2926
|
-
designSystemId: true,
|
|
2927
|
-
themeId: true,
|
|
2928
|
-
brandId: true
|
|
2929
|
-
}).extend({
|
|
2930
|
-
destinations: _zod.z.array(ExportJobDestinationType),
|
|
2931
|
-
docsEnvironment: PublishedDocEnvironment
|
|
2932
|
-
}).partial();
|
|
2933
|
-
var ExporterWorkspaceMembershipRole = _zod.z.enum(["Owner", "OwnerArchived", "User"]);
|
|
2934
|
-
var ExporterWorkspaceMembership = _zod.z.object({
|
|
2935
|
-
id: _zod.z.string(),
|
|
2936
|
-
workspaceId: _zod.z.string(),
|
|
2937
|
-
exporterId: _zod.z.string(),
|
|
2938
|
-
role: ExporterWorkspaceMembershipRole
|
|
2939
|
-
});
|
|
2940
|
-
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
2941
|
-
GitProviderNames2["Azure"] = "azure";
|
|
2942
|
-
GitProviderNames2["Github"] = "github";
|
|
2943
|
-
GitProviderNames2["Gitlab"] = "gitlab";
|
|
2944
|
-
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2945
|
-
return GitProviderNames2;
|
|
2946
|
-
})(GitProviderNames || {});
|
|
2947
|
-
var GitProvider = _zod.z.nativeEnum(GitProviderNames);
|
|
2948
|
-
var PulsarPropertyType = _zod.z.enum([
|
|
2949
|
-
"string",
|
|
2950
|
-
"number",
|
|
2951
|
-
"boolean",
|
|
2952
|
-
"image",
|
|
2953
|
-
"enum",
|
|
2954
|
-
"color",
|
|
2955
|
-
"typography",
|
|
2956
|
-
"component",
|
|
2957
|
-
"componentProperties",
|
|
2958
|
-
"tokenProperties",
|
|
2959
|
-
"tokenType"
|
|
2960
|
-
]);
|
|
2961
|
-
var PulsarBaseProperty = _zod.z.object({
|
|
2962
|
-
label: _zod.z.string(),
|
|
2963
|
-
key: _zod.z.string(),
|
|
2964
|
-
description: _zod.z.string().nullish(),
|
|
2965
|
-
type: PulsarPropertyType,
|
|
2966
|
-
values: _zod.z.array(_zod.z.string()).nullish(),
|
|
2967
|
-
default: _zod.z.union([_zod.z.string(), _zod.z.boolean(), _zod.z.number()]).nullish(),
|
|
2968
|
-
// PulsarPropertyValueType //is optional?
|
|
2969
|
-
inputType: _zod.z.enum(["code", "plain"]).optional(),
|
|
2970
|
-
//is optional?
|
|
2971
|
-
isMultiline: _zod.z.boolean().nullish()
|
|
2972
|
-
});
|
|
2973
|
-
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2974
|
-
category: _zod.z.string()
|
|
2975
|
-
});
|
|
2976
|
-
var PulsarContributionVariant = _zod.z.object({
|
|
2977
|
-
key: _zod.z.string(),
|
|
2978
|
-
name: _zod.z.string(),
|
|
2979
|
-
isDefault: nullishToOptional(_zod.z.boolean()),
|
|
2980
|
-
description: nullishToOptional(_zod.z.string()),
|
|
2981
|
-
thumbnailURL: nullishToOptional(_zod.z.string())
|
|
2982
|
-
});
|
|
2983
|
-
var PulsarCustomBlock = _zod.z.object({
|
|
2984
|
-
title: nullishToOptional(_zod.z.string()),
|
|
2985
|
-
key: _zod.z.string(),
|
|
2986
|
-
category: nullishToOptional(_zod.z.string()),
|
|
2987
|
-
description: nullishToOptional(_zod.z.string()),
|
|
2988
|
-
iconURL: nullishToOptional(_zod.z.string()),
|
|
2989
|
-
mode: nullishToOptional(_zod.z.enum(["array", "block"])),
|
|
2990
|
-
properties: nullishToOptional(_zod.z.array(PulsarBaseProperty)).transform((v) => _nullishCoalesce(v, () => ( [])))
|
|
2991
|
-
});
|
|
2992
|
-
var ExporterType = _zod.z.enum(["code", "documentation"]);
|
|
2993
|
-
var ExporterSource = _zod.z.enum(["git", "upload"]);
|
|
2994
|
-
var ExporterTag = _zod.z.string();
|
|
2995
|
-
var ExporterPulsarDetails = _zod.z.object({
|
|
2996
|
-
description: _zod.z.string(),
|
|
2997
|
-
version: _zod.z.string(),
|
|
2998
|
-
routingVersion: nullishToOptional(_zod.z.string()),
|
|
2999
|
-
author: nullishToOptional(_zod.z.string()),
|
|
3000
|
-
organization: nullishToOptional(_zod.z.string()),
|
|
3001
|
-
homepage: nullishToOptional(_zod.z.string()),
|
|
3002
|
-
readme: nullishToOptional(_zod.z.string()),
|
|
3003
|
-
tags: nullishToOptional(_zod.z.array(ExporterTag)).default([]),
|
|
3004
|
-
packageId: nullishToOptional(_zod.z.string().max(255)),
|
|
3005
|
-
iconURL: nullishToOptional(_zod.z.string()),
|
|
3006
|
-
configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
|
|
3007
|
-
customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
|
|
3008
|
-
blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
|
|
3009
|
-
usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
|
|
3010
|
-
usesThemes: nullishToOptional(_zod.z.boolean()).default(false)
|
|
3011
|
-
});
|
|
3012
|
-
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
3013
|
-
source: ExporterSource,
|
|
3014
|
-
gitProvider: nullishToOptional(GitProvider),
|
|
3015
|
-
gitUrl: nullishToOptional(_zod.z.string()),
|
|
3016
|
-
gitBranch: nullishToOptional(_zod.z.string()),
|
|
3017
|
-
gitDirectory: nullishToOptional(_zod.z.string())
|
|
3018
|
-
});
|
|
3019
|
-
var Exporter = _zod.z.object({
|
|
3020
|
-
id: _zod.z.string(),
|
|
3021
|
-
createdAt: _zod.z.coerce.date(),
|
|
3022
|
-
name: _zod.z.string(),
|
|
3023
|
-
isPrivate: _zod.z.boolean(),
|
|
3024
|
-
details: ExporterDetails,
|
|
3025
|
-
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
3026
|
-
storagePath: nullishToOptional(_zod.z.string()).default("")
|
|
3027
|
-
});
|
|
3028
2767
|
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3029
2768
|
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3030
2769
|
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
@@ -3135,62 +2874,11 @@ var DesignSystemDump = _zod.z.object({
|
|
|
3135
2874
|
customDomain: CustomDomain.optional(),
|
|
3136
2875
|
files: ResolvedAsset.array()
|
|
3137
2876
|
});
|
|
3138
|
-
var
|
|
3139
|
-
OAuthProviderNames2["Figma"] = "figma";
|
|
3140
|
-
OAuthProviderNames2["Azure"] = "azure";
|
|
3141
|
-
OAuthProviderNames2["Github"] = "github";
|
|
3142
|
-
OAuthProviderNames2["Gitlab"] = "gitlab";
|
|
3143
|
-
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3144
|
-
return OAuthProviderNames2;
|
|
3145
|
-
})(OAuthProviderNames || {});
|
|
3146
|
-
var OAuthProviderSchema = _zod.z.nativeEnum(OAuthProviderNames);
|
|
3147
|
-
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3148
|
-
var ExternalOAuthRequest = _zod.z.object({
|
|
3149
|
-
id: _zod.z.string(),
|
|
3150
|
-
provider: OAuthProviderSchema,
|
|
3151
|
-
userId: _zod.z.string(),
|
|
3152
|
-
state: _zod.z.string(),
|
|
3153
|
-
createdAt: _zod.z.coerce.date()
|
|
3154
|
-
});
|
|
3155
|
-
var GitObjectsQuery = _zod.z.object({
|
|
3156
|
-
organization: _zod.z.string().optional(),
|
|
3157
|
-
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3158
|
-
project: _zod.z.string().optional(),
|
|
3159
|
-
// Only for Bitbucket and Azure
|
|
3160
|
-
repository: _zod.z.string().optional(),
|
|
3161
|
-
// For all providers. For Gitlab, it's called "project".
|
|
3162
|
-
branch: _zod.z.string().optional(),
|
|
3163
|
-
// For all providers.
|
|
3164
|
-
user: _zod.z.string().optional()
|
|
3165
|
-
// Gitlab user
|
|
3166
|
-
});
|
|
3167
|
-
var GitOrganization = _zod.z.object({
|
|
3168
|
-
id: _zod.z.string(),
|
|
3169
|
-
name: _zod.z.string(),
|
|
3170
|
-
url: _zod.z.string(),
|
|
3171
|
-
slug: _zod.z.string()
|
|
3172
|
-
});
|
|
3173
|
-
var GitProject = _zod.z.object({
|
|
3174
|
-
id: _zod.z.string(),
|
|
3175
|
-
name: _zod.z.string(),
|
|
3176
|
-
url: _zod.z.string(),
|
|
3177
|
-
slug: _zod.z.string()
|
|
3178
|
-
});
|
|
3179
|
-
var GitRepository = _zod.z.object({
|
|
2877
|
+
var UserMinified = _zod.z.object({
|
|
3180
2878
|
id: _zod.z.string(),
|
|
3181
2879
|
name: _zod.z.string(),
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
/**
|
|
3185
|
-
* Can be undefined when:
|
|
3186
|
-
* - there are no branches in the repository yet
|
|
3187
|
-
* - Git provider doesn't expose this information on a repository via their API
|
|
3188
|
-
*/
|
|
3189
|
-
defaultBranch: _zod.z.string().optional()
|
|
3190
|
-
});
|
|
3191
|
-
var GitBranch = _zod.z.object({
|
|
3192
|
-
name: _zod.z.string(),
|
|
3193
|
-
lastCommitId: _zod.z.string()
|
|
2880
|
+
email: _zod.z.string(),
|
|
2881
|
+
avatar: _zod.z.string().optional()
|
|
3194
2882
|
});
|
|
3195
2883
|
var SupernovaException = class _SupernovaException extends Error {
|
|
3196
2884
|
//
|
|
@@ -3322,7 +3010,7 @@ var ContentLoaderPayload = _zod.z.object({
|
|
|
3322
3010
|
);
|
|
3323
3011
|
function slugify(str, options) {
|
|
3324
3012
|
const slug = _slugify2.default.call(void 0, _nullishCoalesce(str, () => ( "")), options);
|
|
3325
|
-
return _optionalChain([slug, 'optionalAccess',
|
|
3013
|
+
return _optionalChain([slug, 'optionalAccess', _ => _.length]) > 0 ? slug : "item";
|
|
3326
3014
|
}
|
|
3327
3015
|
var RESERVED_SLUGS = [
|
|
3328
3016
|
"workspaces",
|
|
@@ -3944,6 +3632,7 @@ var RESERVED_SLUGS = [
|
|
|
3944
3632
|
"super-nova"
|
|
3945
3633
|
];
|
|
3946
3634
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3635
|
+
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3947
3636
|
var IntegrationDesignSystem = _zod.z.object({
|
|
3948
3637
|
designSystemId: _zod.z.string(),
|
|
3949
3638
|
brandId: _zod.z.string(),
|
|
@@ -4011,7 +3700,7 @@ var IntegrationToken = _zod.z.object({
|
|
|
4011
3700
|
token_bitbucket_username: _zod.z.string().optional(),
|
|
4012
3701
|
// Bitbucket only
|
|
4013
3702
|
custom_url: _zod.z.string().optional().transform((value) => {
|
|
4014
|
-
if (!_optionalChain([value, 'optionalAccess',
|
|
3703
|
+
if (!_optionalChain([value, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]))
|
|
4015
3704
|
return void 0;
|
|
4016
3705
|
return formatCustomUrl(value);
|
|
4017
3706
|
})
|
|
@@ -4046,29 +3735,96 @@ function formatCustomUrl(url) {
|
|
|
4046
3735
|
}
|
|
4047
3736
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4048
3737
|
}
|
|
4049
|
-
var IntegrationTokenSchemaOld = _zod.z.object({
|
|
4050
|
-
id: _zod.z.string(),
|
|
4051
|
-
provider: OAuthProviderSchema,
|
|
4052
|
-
scope: _zod.z.string(),
|
|
4053
|
-
userId: _zod.z.string(),
|
|
4054
|
-
accessToken: _zod.z.string(),
|
|
4055
|
-
refreshToken: _zod.z.string(),
|
|
4056
|
-
expiresAt: _zod.z.coerce.date(),
|
|
4057
|
-
externalUserId: _zod.z.string().nullish()
|
|
4058
|
-
});
|
|
4059
|
-
var WorkspaceOAuthRequestSchema = _zod.z.object({
|
|
4060
|
-
id: _zod.z.string(),
|
|
4061
|
-
workspaceId: _zod.z.string(),
|
|
4062
|
-
provider: OAuthProviderSchema,
|
|
4063
|
-
userId: _zod.z.string(),
|
|
4064
|
-
createdAt: _zod.z.coerce.date()
|
|
4065
|
-
});
|
|
4066
3738
|
var WorkspaceDump = _zod.z.object({
|
|
4067
3739
|
workspace: Workspace,
|
|
4068
3740
|
designSystems: DesignSystemDump.array(),
|
|
4069
3741
|
codeIntegration: CodeIntegrationDump,
|
|
4070
3742
|
integrations: Integration.array()
|
|
4071
3743
|
});
|
|
3744
|
+
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
3745
|
+
var ExternalServiceType = _zod.z.union([
|
|
3746
|
+
_zod.z.literal("figma"),
|
|
3747
|
+
_zod.z.literal("github"),
|
|
3748
|
+
_zod.z.literal("azure"),
|
|
3749
|
+
_zod.z.literal("gitlab"),
|
|
3750
|
+
_zod.z.literal("bitbucket")
|
|
3751
|
+
]);
|
|
3752
|
+
var IntegrationUserInfo = _zod.z.object({
|
|
3753
|
+
id: _zod.z.string(),
|
|
3754
|
+
handle: _zod.z.string().optional(),
|
|
3755
|
+
avatarUrl: _zod.z.string().optional(),
|
|
3756
|
+
email: _zod.z.string().optional(),
|
|
3757
|
+
authType: IntegrationAuthType.optional(),
|
|
3758
|
+
customUrl: _zod.z.string().optional()
|
|
3759
|
+
});
|
|
3760
|
+
var UserLinkedIntegrations = _zod.z.object({
|
|
3761
|
+
figma: IntegrationUserInfo.optional(),
|
|
3762
|
+
github: IntegrationUserInfo.array().optional(),
|
|
3763
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
3764
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
3765
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
3766
|
+
});
|
|
3767
|
+
var UserAnalyticsCleanupSchedule = _zod.z.object({
|
|
3768
|
+
userId: _zod.z.string(),
|
|
3769
|
+
createdAt: _zod.z.coerce.date(),
|
|
3770
|
+
deleteAt: _zod.z.coerce.date()
|
|
3771
|
+
});
|
|
3772
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3773
|
+
createdAt: true
|
|
3774
|
+
});
|
|
3775
|
+
var CreateUserInput = _zod.z.object({
|
|
3776
|
+
email: _zod.z.string(),
|
|
3777
|
+
name: _zod.z.string(),
|
|
3778
|
+
username: _zod.z.string()
|
|
3779
|
+
});
|
|
3780
|
+
var UserIdentity = _zod.z.object({
|
|
3781
|
+
id: _zod.z.string(),
|
|
3782
|
+
userId: _zod.z.string()
|
|
3783
|
+
});
|
|
3784
|
+
var LiveblocksNotificationSettings = _zod.z.object({
|
|
3785
|
+
sendCommentNotificationEmails: _zod.z.boolean()
|
|
3786
|
+
});
|
|
3787
|
+
var UserNotificationSettings = _zod.z.object({
|
|
3788
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3789
|
+
});
|
|
3790
|
+
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3791
|
+
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3792
|
+
var UserOnboarding = _zod.z.object({
|
|
3793
|
+
companyName: _zod.z.string().optional(),
|
|
3794
|
+
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
3795
|
+
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
3796
|
+
department: UserOnboardingDepartment.optional(),
|
|
3797
|
+
jobTitle: _zod.z.string().optional(),
|
|
3798
|
+
phase: _zod.z.string().optional(),
|
|
3799
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3800
|
+
designSystemName: _zod.z.string().optional(),
|
|
3801
|
+
defaultDestination: _zod.z.string().optional(),
|
|
3802
|
+
figmaUrl: _zod.z.string().optional()
|
|
3803
|
+
});
|
|
3804
|
+
var UserProfile = _zod.z.object({
|
|
3805
|
+
name: _zod.z.string(),
|
|
3806
|
+
avatar: _zod.z.string().optional(),
|
|
3807
|
+
nickname: _zod.z.string().optional(),
|
|
3808
|
+
onboarding: UserOnboarding.optional()
|
|
3809
|
+
});
|
|
3810
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3811
|
+
avatar: true
|
|
3812
|
+
});
|
|
3813
|
+
var UserTest = _zod.z.object({
|
|
3814
|
+
id: _zod.z.string(),
|
|
3815
|
+
email: _zod.z.string()
|
|
3816
|
+
});
|
|
3817
|
+
var User = _zod.z.object({
|
|
3818
|
+
id: _zod.z.string(),
|
|
3819
|
+
email: _zod.z.string(),
|
|
3820
|
+
emailVerified: _zod.z.boolean(),
|
|
3821
|
+
createdAt: _zod.z.coerce.date(),
|
|
3822
|
+
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
3823
|
+
profile: UserProfile,
|
|
3824
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3825
|
+
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
3826
|
+
isProtected: _zod.z.boolean()
|
|
3827
|
+
});
|
|
4072
3828
|
var NpmProxyToken = _zod.z.object({
|
|
4073
3829
|
access: _zod.z.string(),
|
|
4074
3830
|
expiresAt: _zod.z.number()
|
|
@@ -4091,6 +3847,110 @@ var UserSession = _zod.z.object({
|
|
|
4091
3847
|
session: Session,
|
|
4092
3848
|
user: User.nullable()
|
|
4093
3849
|
});
|
|
3850
|
+
var ExportJobDocumentationContext = _zod.z.object({
|
|
3851
|
+
isSingleVersionDocs: _zod.z.boolean(),
|
|
3852
|
+
versionSlug: _zod.z.string(),
|
|
3853
|
+
environment: PublishedDocEnvironment
|
|
3854
|
+
});
|
|
3855
|
+
var ExportJobContext = _zod.z.object({
|
|
3856
|
+
apiUrl: _zod.z.string(),
|
|
3857
|
+
accessToken: _zod.z.string(),
|
|
3858
|
+
designSystemId: _zod.z.string(),
|
|
3859
|
+
designSystemName: _zod.z.string(),
|
|
3860
|
+
exporterId: _zod.z.string(),
|
|
3861
|
+
versionId: _zod.z.string(),
|
|
3862
|
+
brandId: _zod.z.string().optional(),
|
|
3863
|
+
themeId: _zod.z.string().optional(),
|
|
3864
|
+
exporterName: _zod.z.string(),
|
|
3865
|
+
exporterPackageUrl: _zod.z.string(),
|
|
3866
|
+
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
3867
|
+
documentation: ExportJobDocumentationContext.optional()
|
|
3868
|
+
});
|
|
3869
|
+
var ExporterFunctionPayload = _zod.z.object({
|
|
3870
|
+
exportJobId: _zod.z.string(),
|
|
3871
|
+
exportContextId: _zod.z.string(),
|
|
3872
|
+
designSystemId: _zod.z.string(),
|
|
3873
|
+
workspaceId: _zod.z.string()
|
|
3874
|
+
});
|
|
3875
|
+
var ExportJobDestinationType = _zod.z.enum([
|
|
3876
|
+
"s3",
|
|
3877
|
+
"webhookUrl",
|
|
3878
|
+
"github",
|
|
3879
|
+
"documentation",
|
|
3880
|
+
"azure",
|
|
3881
|
+
"gitlab",
|
|
3882
|
+
"bitbucket"
|
|
3883
|
+
]);
|
|
3884
|
+
var ExportJobStatus = _zod.z.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
3885
|
+
var ExportJobLogEntryType = _zod.z.enum(["success", "info", "warning", "error", "user"]);
|
|
3886
|
+
var ExportJobLogEntry = _zod.z.object({
|
|
3887
|
+
id: _zod.z.string().optional(),
|
|
3888
|
+
time: _zod.z.coerce.date(),
|
|
3889
|
+
type: ExportJobLogEntryType,
|
|
3890
|
+
message: _zod.z.string()
|
|
3891
|
+
});
|
|
3892
|
+
var ExportJobPullRequestDestinationResult = _zod.z.object({
|
|
3893
|
+
pullRequestUrl: _zod.z.string()
|
|
3894
|
+
});
|
|
3895
|
+
var ExportJobS3DestinationResult = _zod.z.object({
|
|
3896
|
+
bucket: _zod.z.string(),
|
|
3897
|
+
urlPrefix: _zod.z.string().optional(),
|
|
3898
|
+
path: _zod.z.string(),
|
|
3899
|
+
files: _zod.z.array(_zod.z.string()),
|
|
3900
|
+
url: nullishToOptional(_zod.z.string()),
|
|
3901
|
+
urls: nullishToOptional(_zod.z.string().array())
|
|
3902
|
+
});
|
|
3903
|
+
var ExportJobDocsDestinationResult = _zod.z.object({
|
|
3904
|
+
url: _zod.z.string()
|
|
3905
|
+
});
|
|
3906
|
+
var ExportJobResult = _zod.z.object({
|
|
3907
|
+
error: _zod.z.string().optional(),
|
|
3908
|
+
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
3909
|
+
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3910
|
+
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3911
|
+
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3912
|
+
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3913
|
+
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
3914
|
+
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
3915
|
+
});
|
|
3916
|
+
var ExportJob = _zod.z.object({
|
|
3917
|
+
id: _zod.z.string(),
|
|
3918
|
+
createdAt: _zod.z.coerce.date(),
|
|
3919
|
+
finishedAt: _zod.z.coerce.date().optional(),
|
|
3920
|
+
designSystemId: _zod.z.string(),
|
|
3921
|
+
designSystemVersionId: _zod.z.string(),
|
|
3922
|
+
workspaceId: _zod.z.string(),
|
|
3923
|
+
scheduleId: _zod.z.string().nullish(),
|
|
3924
|
+
exporterId: _zod.z.string(),
|
|
3925
|
+
brandId: _zod.z.string().optional(),
|
|
3926
|
+
themeId: _zod.z.string().optional(),
|
|
3927
|
+
estimatedExecutionTime: _zod.z.number().optional(),
|
|
3928
|
+
status: ExportJobStatus,
|
|
3929
|
+
result: ExportJobResult.optional(),
|
|
3930
|
+
createdByUserId: _zod.z.string().optional(),
|
|
3931
|
+
// Destinations
|
|
3932
|
+
...ExportDestinationsMap.shape
|
|
3933
|
+
});
|
|
3934
|
+
var ExportJobFindByFilter = ExportJob.pick({
|
|
3935
|
+
exporterId: true,
|
|
3936
|
+
designSystemVersionId: true,
|
|
3937
|
+
createdByUserId: true,
|
|
3938
|
+
status: true,
|
|
3939
|
+
scheduleId: true,
|
|
3940
|
+
designSystemId: true,
|
|
3941
|
+
themeId: true,
|
|
3942
|
+
brandId: true
|
|
3943
|
+
}).extend({
|
|
3944
|
+
destinations: _zod.z.array(ExportJobDestinationType),
|
|
3945
|
+
docsEnvironment: PublishedDocEnvironment
|
|
3946
|
+
}).partial();
|
|
3947
|
+
var ExporterWorkspaceMembershipRole = _zod.z.enum(["Owner", "OwnerArchived", "User"]);
|
|
3948
|
+
var ExporterWorkspaceMembership = _zod.z.object({
|
|
3949
|
+
id: _zod.z.string(),
|
|
3950
|
+
workspaceId: _zod.z.string(),
|
|
3951
|
+
exporterId: _zod.z.string(),
|
|
3952
|
+
role: ExporterWorkspaceMembershipRole
|
|
3953
|
+
});
|
|
4094
3954
|
var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4095
3955
|
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
4096
3956
|
var FeatureFlag = _zod.z.object({
|
|
@@ -4100,6 +3960,80 @@ var FeatureFlag = _zod.z.object({
|
|
|
4100
3960
|
enabled: _zod.z.boolean(),
|
|
4101
3961
|
designSystemId: _zod.z.string().optional()
|
|
4102
3962
|
});
|
|
3963
|
+
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
3964
|
+
OAuthProviderNames2["Figma"] = "figma";
|
|
3965
|
+
OAuthProviderNames2["Azure"] = "azure";
|
|
3966
|
+
OAuthProviderNames2["Github"] = "github";
|
|
3967
|
+
OAuthProviderNames2["Gitlab"] = "gitlab";
|
|
3968
|
+
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3969
|
+
return OAuthProviderNames2;
|
|
3970
|
+
})(OAuthProviderNames || {});
|
|
3971
|
+
var OAuthProviderSchema = _zod.z.nativeEnum(OAuthProviderNames);
|
|
3972
|
+
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3973
|
+
var ExternalOAuthRequest = _zod.z.object({
|
|
3974
|
+
id: _zod.z.string(),
|
|
3975
|
+
provider: OAuthProviderSchema,
|
|
3976
|
+
userId: _zod.z.string(),
|
|
3977
|
+
state: _zod.z.string(),
|
|
3978
|
+
createdAt: _zod.z.coerce.date()
|
|
3979
|
+
});
|
|
3980
|
+
var GitObjectsQuery = _zod.z.object({
|
|
3981
|
+
organization: _zod.z.string().optional(),
|
|
3982
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3983
|
+
project: _zod.z.string().optional(),
|
|
3984
|
+
// Only for Bitbucket and Azure
|
|
3985
|
+
repository: _zod.z.string().optional(),
|
|
3986
|
+
// For all providers. For Gitlab, it's called "project".
|
|
3987
|
+
branch: _zod.z.string().optional(),
|
|
3988
|
+
// For all providers.
|
|
3989
|
+
user: _zod.z.string().optional()
|
|
3990
|
+
// Gitlab user
|
|
3991
|
+
});
|
|
3992
|
+
var GitOrganization = _zod.z.object({
|
|
3993
|
+
id: _zod.z.string(),
|
|
3994
|
+
name: _zod.z.string(),
|
|
3995
|
+
url: _zod.z.string(),
|
|
3996
|
+
slug: _zod.z.string()
|
|
3997
|
+
});
|
|
3998
|
+
var GitProject = _zod.z.object({
|
|
3999
|
+
id: _zod.z.string(),
|
|
4000
|
+
name: _zod.z.string(),
|
|
4001
|
+
url: _zod.z.string(),
|
|
4002
|
+
slug: _zod.z.string()
|
|
4003
|
+
});
|
|
4004
|
+
var GitRepository = _zod.z.object({
|
|
4005
|
+
id: _zod.z.string(),
|
|
4006
|
+
name: _zod.z.string(),
|
|
4007
|
+
url: _zod.z.string(),
|
|
4008
|
+
slug: _zod.z.string(),
|
|
4009
|
+
/**
|
|
4010
|
+
* Can be undefined when:
|
|
4011
|
+
* - there are no branches in the repository yet
|
|
4012
|
+
* - Git provider doesn't expose this information on a repository via their API
|
|
4013
|
+
*/
|
|
4014
|
+
defaultBranch: _zod.z.string().optional()
|
|
4015
|
+
});
|
|
4016
|
+
var GitBranch = _zod.z.object({
|
|
4017
|
+
name: _zod.z.string(),
|
|
4018
|
+
lastCommitId: _zod.z.string()
|
|
4019
|
+
});
|
|
4020
|
+
var IntegrationTokenSchemaOld = _zod.z.object({
|
|
4021
|
+
id: _zod.z.string(),
|
|
4022
|
+
provider: OAuthProviderSchema,
|
|
4023
|
+
scope: _zod.z.string(),
|
|
4024
|
+
userId: _zod.z.string(),
|
|
4025
|
+
accessToken: _zod.z.string(),
|
|
4026
|
+
refreshToken: _zod.z.string(),
|
|
4027
|
+
expiresAt: _zod.z.coerce.date(),
|
|
4028
|
+
externalUserId: _zod.z.string().nullish()
|
|
4029
|
+
});
|
|
4030
|
+
var WorkspaceOAuthRequestSchema = _zod.z.object({
|
|
4031
|
+
id: _zod.z.string(),
|
|
4032
|
+
workspaceId: _zod.z.string(),
|
|
4033
|
+
provider: OAuthProviderSchema,
|
|
4034
|
+
userId: _zod.z.string(),
|
|
4035
|
+
createdAt: _zod.z.coerce.date()
|
|
4036
|
+
});
|
|
4103
4037
|
var AnyRecord = _zod.z.record(_zod.z.any());
|
|
4104
4038
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4105
4039
|
_zod.z.object({
|
|
@@ -4124,6 +4058,72 @@ var NpmPackage = AnyRecord.and(
|
|
|
4124
4058
|
var NpmProxyTokenPayload = _zod.z.object({
|
|
4125
4059
|
npmProxyRegistryConfigId: _zod.z.string()
|
|
4126
4060
|
});
|
|
4061
|
+
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4062
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4063
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
4064
|
+
var UserInvite = _zod.z.object({
|
|
4065
|
+
email: _zod.z.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4066
|
+
role: WorkspaceRoleSchema
|
|
4067
|
+
});
|
|
4068
|
+
var UserInvites = _zod.z.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4069
|
+
var WorkspaceConfigurationUpdate = _zod.z.object({
|
|
4070
|
+
id: _zod.z.string(),
|
|
4071
|
+
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4072
|
+
sso: SsoProvider.optional(),
|
|
4073
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4074
|
+
profile: WorkspaceProfileUpdate.optional()
|
|
4075
|
+
});
|
|
4076
|
+
var WorkspaceContext = _zod.z.object({
|
|
4077
|
+
workspaceId: _zod.z.string(),
|
|
4078
|
+
product: ProductCodeSchema,
|
|
4079
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4080
|
+
publicDesignSystem: _zod.z.boolean().optional()
|
|
4081
|
+
});
|
|
4082
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4083
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4084
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
4085
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
4086
|
+
var CreateWorkspaceInput = _zod.z.object({
|
|
4087
|
+
name: _zod.z.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4088
|
+
product: ProductCodeSchema,
|
|
4089
|
+
priceId: _zod.z.string(),
|
|
4090
|
+
billingEmail: _zod.z.string().email().optional(),
|
|
4091
|
+
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _4 => _4.length]) > 0).optional(),
|
|
4092
|
+
invites: UserInvites.optional(),
|
|
4093
|
+
promoCode: _zod.z.string().optional(),
|
|
4094
|
+
status: InternalStatusSchema.optional(),
|
|
4095
|
+
planInterval: BillingIntervalSchema.optional(),
|
|
4096
|
+
seats: _zod.z.number().optional(),
|
|
4097
|
+
seatLimit: _zod.z.number().optional(),
|
|
4098
|
+
card: CardSchema.optional(),
|
|
4099
|
+
sso: SsoProvider.optional(),
|
|
4100
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4101
|
+
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4102
|
+
});
|
|
4103
|
+
var WorkspaceInvitation = _zod.z.object({
|
|
4104
|
+
id: _zod.z.string(),
|
|
4105
|
+
email: _zod.z.string().email(),
|
|
4106
|
+
createdAt: _zod.z.coerce.date(),
|
|
4107
|
+
resentAt: _zod.z.coerce.date().nullish(),
|
|
4108
|
+
role: _zod.z.nativeEnum(WorkspaceRole),
|
|
4109
|
+
workspaceId: _zod.z.string(),
|
|
4110
|
+
invitedBy: _zod.z.string()
|
|
4111
|
+
});
|
|
4112
|
+
var WorkspaceMembership = _zod.z.object({
|
|
4113
|
+
id: _zod.z.string(),
|
|
4114
|
+
userId: _zod.z.string(),
|
|
4115
|
+
workspaceId: _zod.z.string(),
|
|
4116
|
+
workspaceRole: _zod.z.nativeEnum(WorkspaceRole),
|
|
4117
|
+
notificationSettings: UserNotificationSettings
|
|
4118
|
+
});
|
|
4119
|
+
var UpdateMembershipRolesInput = _zod.z.object({
|
|
4120
|
+
members: _zod.z.array(
|
|
4121
|
+
_zod.z.object({
|
|
4122
|
+
userId: _zod.z.string(),
|
|
4123
|
+
role: _zod.z.nativeEnum(WorkspaceRole)
|
|
4124
|
+
})
|
|
4125
|
+
)
|
|
4126
|
+
});
|
|
4127
4127
|
var PersonalAccessToken = _zod.z.object({
|
|
4128
4128
|
id: _zod.z.string(),
|
|
4129
4129
|
userId: _zod.z.string(),
|