@supernova-studio/model 0.46.4 → 0.46.6
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 +112 -26
- package/dist/index.d.ts +112 -26
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +189 -178
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/integrations/integration.ts +2 -2
- package/src/users/index.ts +1 -0
- package/src/users/user-minified.ts +10 -0
- package/src/users/user-profile.ts +1 -1
- package/src/users/user.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3213,7 +3213,7 @@ var CustomDomain = z126.object({
|
|
|
3213
3213
|
});
|
|
3214
3214
|
|
|
3215
3215
|
// src/docs-server/session.ts
|
|
3216
|
-
import { z as
|
|
3216
|
+
import { z as z134 } from "zod";
|
|
3217
3217
|
|
|
3218
3218
|
// src/users/linked-integrations.ts
|
|
3219
3219
|
import { z as z127 } from "zod";
|
|
@@ -3256,88 +3256,97 @@ var UserIdentity = z129.object({
|
|
|
3256
3256
|
userId: z129.string()
|
|
3257
3257
|
});
|
|
3258
3258
|
|
|
3259
|
-
// src/users/user-
|
|
3259
|
+
// src/users/user-minified.ts
|
|
3260
3260
|
import { z as z130 } from "zod";
|
|
3261
|
-
var
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3261
|
+
var UserMinified = z130.object({
|
|
3262
|
+
id: z130.string(),
|
|
3263
|
+
name: z130.string(),
|
|
3264
|
+
email: z130.string(),
|
|
3265
|
+
avatar: z130.string().optional()
|
|
3266
|
+
});
|
|
3267
|
+
|
|
3268
|
+
// src/users/user-profile.ts
|
|
3269
|
+
import { z as z131 } from "zod";
|
|
3270
|
+
var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3271
|
+
var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3272
|
+
var UserOnboarding = z131.object({
|
|
3273
|
+
companyName: z131.string().optional(),
|
|
3274
|
+
numberOfPeopleInOrg: z131.string().optional(),
|
|
3275
|
+
numberOfPeopleInDesignTeam: z131.string().optional(),
|
|
3267
3276
|
department: UserOnboardingDepartment.optional(),
|
|
3268
|
-
jobTitle:
|
|
3269
|
-
phase:
|
|
3277
|
+
jobTitle: z131.string().optional(),
|
|
3278
|
+
phase: z131.string().optional(),
|
|
3270
3279
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
3271
3280
|
});
|
|
3272
|
-
var UserProfile =
|
|
3273
|
-
name:
|
|
3274
|
-
avatar:
|
|
3275
|
-
nickname:
|
|
3281
|
+
var UserProfile = z131.object({
|
|
3282
|
+
name: z131.string(),
|
|
3283
|
+
avatar: z131.string().optional(),
|
|
3284
|
+
nickname: z131.string().optional(),
|
|
3276
3285
|
onboarding: UserOnboarding.optional()
|
|
3277
3286
|
});
|
|
3278
3287
|
|
|
3279
3288
|
// src/users/user-test.ts
|
|
3280
|
-
import { z as
|
|
3281
|
-
var UserTest =
|
|
3282
|
-
id:
|
|
3283
|
-
email:
|
|
3289
|
+
import { z as z132 } from "zod";
|
|
3290
|
+
var UserTest = z132.object({
|
|
3291
|
+
id: z132.string(),
|
|
3292
|
+
email: z132.string()
|
|
3284
3293
|
});
|
|
3285
3294
|
|
|
3286
3295
|
// src/users/user.ts
|
|
3287
|
-
import { z as
|
|
3288
|
-
var User =
|
|
3289
|
-
id:
|
|
3290
|
-
email:
|
|
3291
|
-
emailVerified:
|
|
3292
|
-
createdAt:
|
|
3293
|
-
trialExpiresAt:
|
|
3296
|
+
import { z as z133 } from "zod";
|
|
3297
|
+
var User = z133.object({
|
|
3298
|
+
id: z133.string(),
|
|
3299
|
+
email: z133.string(),
|
|
3300
|
+
emailVerified: z133.boolean(),
|
|
3301
|
+
createdAt: z133.coerce.date(),
|
|
3302
|
+
trialExpiresAt: z133.coerce.date().optional(),
|
|
3294
3303
|
profile: UserProfile,
|
|
3295
3304
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3296
|
-
loggedOutAt:
|
|
3297
|
-
isProtected:
|
|
3305
|
+
loggedOutAt: z133.coerce.date().optional(),
|
|
3306
|
+
isProtected: z133.boolean()
|
|
3298
3307
|
});
|
|
3299
3308
|
|
|
3300
3309
|
// src/docs-server/session.ts
|
|
3301
|
-
var NpmProxyToken =
|
|
3302
|
-
access:
|
|
3303
|
-
expiresAt:
|
|
3310
|
+
var NpmProxyToken = z134.object({
|
|
3311
|
+
access: z134.string(),
|
|
3312
|
+
expiresAt: z134.number()
|
|
3304
3313
|
});
|
|
3305
|
-
var SessionData =
|
|
3306
|
-
returnToUrl:
|
|
3314
|
+
var SessionData = z134.object({
|
|
3315
|
+
returnToUrl: z134.string().optional(),
|
|
3307
3316
|
npmProxyToken: NpmProxyToken.optional()
|
|
3308
3317
|
});
|
|
3309
|
-
var Session =
|
|
3310
|
-
id:
|
|
3311
|
-
expiresAt:
|
|
3312
|
-
userId:
|
|
3318
|
+
var Session = z134.object({
|
|
3319
|
+
id: z134.string(),
|
|
3320
|
+
expiresAt: z134.coerce.date(),
|
|
3321
|
+
userId: z134.string().nullable(),
|
|
3313
3322
|
data: SessionData
|
|
3314
3323
|
});
|
|
3315
|
-
var AuthTokens =
|
|
3316
|
-
access:
|
|
3317
|
-
refresh:
|
|
3324
|
+
var AuthTokens = z134.object({
|
|
3325
|
+
access: z134.string(),
|
|
3326
|
+
refresh: z134.string()
|
|
3318
3327
|
});
|
|
3319
|
-
var UserSession =
|
|
3328
|
+
var UserSession = z134.object({
|
|
3320
3329
|
session: Session,
|
|
3321
3330
|
user: User.nullable()
|
|
3322
3331
|
});
|
|
3323
3332
|
|
|
3324
3333
|
// src/feature-flags/feature-flags.ts
|
|
3325
|
-
import { z as
|
|
3326
|
-
var FlaggedFeature =
|
|
3327
|
-
var FeatureFlagMap =
|
|
3328
|
-
var FeatureFlag =
|
|
3329
|
-
id:
|
|
3334
|
+
import { z as z135 } from "zod";
|
|
3335
|
+
var FlaggedFeature = z135.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
3336
|
+
var FeatureFlagMap = z135.record(FlaggedFeature, z135.boolean());
|
|
3337
|
+
var FeatureFlag = z135.object({
|
|
3338
|
+
id: z135.string(),
|
|
3330
3339
|
feature: FlaggedFeature,
|
|
3331
|
-
createdAt:
|
|
3332
|
-
enabled:
|
|
3333
|
-
designSystemId:
|
|
3340
|
+
createdAt: z135.coerce.date(),
|
|
3341
|
+
enabled: z135.boolean(),
|
|
3342
|
+
designSystemId: z135.string().optional()
|
|
3334
3343
|
});
|
|
3335
3344
|
|
|
3336
3345
|
// src/integrations/external-oauth-request.ts
|
|
3337
|
-
import { z as
|
|
3346
|
+
import { z as z137 } from "zod";
|
|
3338
3347
|
|
|
3339
3348
|
// src/integrations/oauth-providers.ts
|
|
3340
|
-
import { z as
|
|
3349
|
+
import { z as z136 } from "zod";
|
|
3341
3350
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
3342
3351
|
OAuthProviderNames2["Figma"] = "figma";
|
|
3343
3352
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -3346,48 +3355,49 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
3346
3355
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3347
3356
|
return OAuthProviderNames2;
|
|
3348
3357
|
})(OAuthProviderNames || {});
|
|
3349
|
-
var OAuthProviderSchema =
|
|
3358
|
+
var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
|
|
3350
3359
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3351
3360
|
|
|
3352
3361
|
// src/integrations/external-oauth-request.ts
|
|
3353
|
-
var ExternalOAuthRequest =
|
|
3354
|
-
id:
|
|
3362
|
+
var ExternalOAuthRequest = z137.object({
|
|
3363
|
+
id: z137.string(),
|
|
3355
3364
|
provider: OAuthProviderSchema,
|
|
3356
|
-
userId:
|
|
3357
|
-
state:
|
|
3358
|
-
createdAt:
|
|
3365
|
+
userId: z137.string(),
|
|
3366
|
+
state: z137.string(),
|
|
3367
|
+
createdAt: z137.coerce.date()
|
|
3359
3368
|
});
|
|
3360
3369
|
|
|
3361
3370
|
// src/integrations/integration.ts
|
|
3362
|
-
import { z as
|
|
3363
|
-
var IntegrationDesignSystem =
|
|
3364
|
-
designSystemId:
|
|
3365
|
-
brandId:
|
|
3366
|
-
title:
|
|
3367
|
-
userId:
|
|
3368
|
-
date:
|
|
3369
|
-
});
|
|
3370
|
-
var IntegrationCredentialsType =
|
|
3371
|
-
var IntegrationCredentialsProfile =
|
|
3372
|
-
id:
|
|
3373
|
-
email:
|
|
3374
|
-
handle:
|
|
3375
|
-
avatarUrl:
|
|
3371
|
+
import { z as z138 } from "zod";
|
|
3372
|
+
var IntegrationDesignSystem = z138.object({
|
|
3373
|
+
designSystemId: z138.string(),
|
|
3374
|
+
brandId: z138.string(),
|
|
3375
|
+
title: z138.string().optional(),
|
|
3376
|
+
userId: z138.string().optional(),
|
|
3377
|
+
date: z138.coerce.date().optional()
|
|
3378
|
+
});
|
|
3379
|
+
var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
3380
|
+
var IntegrationCredentialsProfile = z138.object({
|
|
3381
|
+
id: z138.string(),
|
|
3382
|
+
email: z138.string().optional(),
|
|
3383
|
+
handle: z138.string().optional(),
|
|
3384
|
+
avatarUrl: z138.string().optional()
|
|
3376
3385
|
});
|
|
3377
|
-
var IntegrationCredentials =
|
|
3378
|
-
id:
|
|
3386
|
+
var IntegrationCredentials = z138.object({
|
|
3387
|
+
id: z138.string(),
|
|
3379
3388
|
type: IntegrationCredentialsType,
|
|
3380
|
-
integrationId:
|
|
3381
|
-
accessToken:
|
|
3382
|
-
userId:
|
|
3383
|
-
createdAt:
|
|
3384
|
-
refreshToken:
|
|
3385
|
-
tokenName:
|
|
3386
|
-
expiresAt:
|
|
3389
|
+
integrationId: z138.string(),
|
|
3390
|
+
accessToken: z138.string(),
|
|
3391
|
+
userId: z138.string(),
|
|
3392
|
+
createdAt: z138.coerce.date(),
|
|
3393
|
+
refreshToken: z138.string().optional(),
|
|
3394
|
+
tokenName: z138.string().optional(),
|
|
3395
|
+
expiresAt: z138.coerce.date().optional(),
|
|
3387
3396
|
profile: IntegrationCredentialsProfile.optional(),
|
|
3388
|
-
customUrl:
|
|
3397
|
+
customUrl: z138.string().optional(),
|
|
3398
|
+
user: UserMinified.optional()
|
|
3389
3399
|
});
|
|
3390
|
-
var ExtendedIntegrationType =
|
|
3400
|
+
var ExtendedIntegrationType = z138.enum([
|
|
3391
3401
|
"Figma",
|
|
3392
3402
|
"Github",
|
|
3393
3403
|
"Gitlab",
|
|
@@ -3397,25 +3407,25 @@ var ExtendedIntegrationType = z137.enum([
|
|
|
3397
3407
|
"FigmaVariablesPlugin"
|
|
3398
3408
|
]);
|
|
3399
3409
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
3400
|
-
var Integration =
|
|
3401
|
-
id:
|
|
3402
|
-
workspaceId:
|
|
3410
|
+
var Integration = z138.object({
|
|
3411
|
+
id: z138.string(),
|
|
3412
|
+
workspaceId: z138.string(),
|
|
3403
3413
|
type: IntegrationType,
|
|
3404
|
-
createdAt:
|
|
3405
|
-
integrationCredentials:
|
|
3414
|
+
createdAt: z138.coerce.date(),
|
|
3415
|
+
integrationCredentials: z138.array(IntegrationCredentials).optional()
|
|
3406
3416
|
});
|
|
3407
3417
|
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
3408
|
-
var IntegrationTokenResponse =
|
|
3409
|
-
access_token:
|
|
3410
|
-
refresh_token:
|
|
3411
|
-
expires_in:
|
|
3412
|
-
token_type:
|
|
3413
|
-
token_name:
|
|
3414
|
-
token_azure_organization_name:
|
|
3418
|
+
var IntegrationTokenResponse = z138.object({
|
|
3419
|
+
access_token: z138.string(),
|
|
3420
|
+
refresh_token: z138.string().optional(),
|
|
3421
|
+
expires_in: z138.union([z138.number().optional(), z138.string().optional()]),
|
|
3422
|
+
token_type: z138.string().optional(),
|
|
3423
|
+
token_name: z138.string().optional(),
|
|
3424
|
+
token_azure_organization_name: z138.string().optional(),
|
|
3415
3425
|
// Azure only
|
|
3416
|
-
token_bitbucket_username:
|
|
3426
|
+
token_bitbucket_username: z138.string().optional(),
|
|
3417
3427
|
// Bitbucket only
|
|
3418
|
-
custom_url:
|
|
3428
|
+
custom_url: z138.string().optional().refine((value) => {
|
|
3419
3429
|
if (!value)
|
|
3420
3430
|
return true;
|
|
3421
3431
|
if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
|
|
@@ -3441,131 +3451,131 @@ var IntegrationTokenResponse = z137.object({
|
|
|
3441
3451
|
});
|
|
3442
3452
|
|
|
3443
3453
|
// src/integrations/oauth-token.ts
|
|
3444
|
-
import { z as
|
|
3445
|
-
var IntegrationTokenSchema =
|
|
3446
|
-
id:
|
|
3454
|
+
import { z as z139 } from "zod";
|
|
3455
|
+
var IntegrationTokenSchema = z139.object({
|
|
3456
|
+
id: z139.string(),
|
|
3447
3457
|
provider: OAuthProviderSchema,
|
|
3448
|
-
scope:
|
|
3449
|
-
userId:
|
|
3450
|
-
accessToken:
|
|
3451
|
-
refreshToken:
|
|
3452
|
-
expiresAt:
|
|
3453
|
-
externalUserId:
|
|
3458
|
+
scope: z139.string(),
|
|
3459
|
+
userId: z139.string(),
|
|
3460
|
+
accessToken: z139.string(),
|
|
3461
|
+
refreshToken: z139.string(),
|
|
3462
|
+
expiresAt: z139.coerce.date(),
|
|
3463
|
+
externalUserId: z139.string().nullish()
|
|
3454
3464
|
});
|
|
3455
3465
|
|
|
3456
3466
|
// src/integrations/workspace-oauth-requests.ts
|
|
3457
|
-
import { z as
|
|
3458
|
-
var WorkspaceOAuthRequestSchema =
|
|
3459
|
-
id:
|
|
3460
|
-
workspaceId:
|
|
3467
|
+
import { z as z140 } from "zod";
|
|
3468
|
+
var WorkspaceOAuthRequestSchema = z140.object({
|
|
3469
|
+
id: z140.string(),
|
|
3470
|
+
workspaceId: z140.string(),
|
|
3461
3471
|
provider: OAuthProviderSchema,
|
|
3462
|
-
userId:
|
|
3463
|
-
createdAt:
|
|
3472
|
+
userId: z140.string(),
|
|
3473
|
+
createdAt: z140.coerce.date()
|
|
3464
3474
|
});
|
|
3465
3475
|
|
|
3466
3476
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
3467
|
-
import { z as
|
|
3477
|
+
import { z as z141 } from "zod";
|
|
3468
3478
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3469
|
-
designSystemVersionId:
|
|
3470
|
-
liveblocksId:
|
|
3479
|
+
designSystemVersionId: z141.string(),
|
|
3480
|
+
liveblocksId: z141.string()
|
|
3471
3481
|
});
|
|
3472
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3473
|
-
routingVersion:
|
|
3482
|
+
var DesignSystemVersionRoomInternalSettings = z141.object({
|
|
3483
|
+
routingVersion: z141.string()
|
|
3474
3484
|
});
|
|
3475
|
-
var DesignSystemVersionRoomInitialState =
|
|
3476
|
-
pages:
|
|
3477
|
-
groups:
|
|
3485
|
+
var DesignSystemVersionRoomInitialState = z141.object({
|
|
3486
|
+
pages: z141.array(DocumentationPageV2),
|
|
3487
|
+
groups: z141.array(ElementGroup),
|
|
3478
3488
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3479
3489
|
});
|
|
3480
|
-
var DesignSystemVersionRoomUpdate =
|
|
3481
|
-
pages:
|
|
3482
|
-
groups:
|
|
3483
|
-
deletedPageIds:
|
|
3484
|
-
deletedGroupIds:
|
|
3490
|
+
var DesignSystemVersionRoomUpdate = z141.object({
|
|
3491
|
+
pages: z141.array(DocumentationPageV2),
|
|
3492
|
+
groups: z141.array(ElementGroup),
|
|
3493
|
+
deletedPageIds: z141.array(z141.string()),
|
|
3494
|
+
deletedGroupIds: z141.array(z141.string())
|
|
3485
3495
|
});
|
|
3486
3496
|
|
|
3487
3497
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
3488
|
-
import { z as
|
|
3498
|
+
import { z as z142 } from "zod";
|
|
3489
3499
|
var DocumentationPageRoom = Entity.extend({
|
|
3490
|
-
designSystemVersionId:
|
|
3491
|
-
documentationPageId:
|
|
3492
|
-
liveblocksId:
|
|
3493
|
-
isDirty:
|
|
3500
|
+
designSystemVersionId: z142.string(),
|
|
3501
|
+
documentationPageId: z142.string(),
|
|
3502
|
+
liveblocksId: z142.string(),
|
|
3503
|
+
isDirty: z142.boolean()
|
|
3494
3504
|
});
|
|
3495
|
-
var DocumentationPageRoomState =
|
|
3496
|
-
pageItems:
|
|
3505
|
+
var DocumentationPageRoomState = z142.object({
|
|
3506
|
+
pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3497
3507
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3498
3508
|
});
|
|
3499
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3509
|
+
var DocumentationPageRoomRoomUpdate = z142.object({
|
|
3500
3510
|
page: DocumentationPageV2,
|
|
3501
3511
|
pageParent: ElementGroup
|
|
3502
3512
|
});
|
|
3503
3513
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3504
|
-
pageItems:
|
|
3505
|
-
blockDefinitions:
|
|
3514
|
+
pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3515
|
+
blockDefinitions: z142.array(PageBlockDefinition)
|
|
3506
3516
|
});
|
|
3507
3517
|
|
|
3508
3518
|
// src/liveblocks/rooms/room-type.ts
|
|
3509
|
-
import { z as
|
|
3519
|
+
import { z as z143 } from "zod";
|
|
3510
3520
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3511
3521
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3512
3522
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3513
3523
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3514
3524
|
return RoomTypeEnum2;
|
|
3515
3525
|
})(RoomTypeEnum || {});
|
|
3516
|
-
var RoomTypeSchema =
|
|
3526
|
+
var RoomTypeSchema = z143.nativeEnum(RoomTypeEnum);
|
|
3517
3527
|
var RoomType = RoomTypeSchema.enum;
|
|
3518
3528
|
|
|
3519
3529
|
// src/liveblocks/rooms/workspace-room.ts
|
|
3520
|
-
import { z as
|
|
3530
|
+
import { z as z144 } from "zod";
|
|
3521
3531
|
var WorkspaceRoom = Entity.extend({
|
|
3522
|
-
workspaceId:
|
|
3523
|
-
liveblocksId:
|
|
3532
|
+
workspaceId: z144.string(),
|
|
3533
|
+
liveblocksId: z144.string()
|
|
3524
3534
|
});
|
|
3525
3535
|
|
|
3526
3536
|
// src/npm/npm-package.ts
|
|
3527
|
-
import { z as
|
|
3528
|
-
var AnyRecord =
|
|
3537
|
+
import { z as z145 } from "zod";
|
|
3538
|
+
var AnyRecord = z145.record(z145.any());
|
|
3529
3539
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
3530
|
-
|
|
3531
|
-
tarball:
|
|
3540
|
+
z145.object({
|
|
3541
|
+
tarball: z145.string()
|
|
3532
3542
|
})
|
|
3533
3543
|
);
|
|
3534
3544
|
var NpmPackageVersion = AnyRecord.and(
|
|
3535
|
-
|
|
3545
|
+
z145.object({
|
|
3536
3546
|
dist: NpmPackageVersionDist
|
|
3537
3547
|
})
|
|
3538
3548
|
);
|
|
3539
3549
|
var NpmPackage = AnyRecord.and(
|
|
3540
|
-
|
|
3541
|
-
_id:
|
|
3542
|
-
name:
|
|
3550
|
+
z145.object({
|
|
3551
|
+
_id: z145.string(),
|
|
3552
|
+
name: z145.string(),
|
|
3543
3553
|
// e.g. "latest": "1.2.3"
|
|
3544
|
-
"dist-tags":
|
|
3554
|
+
"dist-tags": z145.record(z145.string(), z145.string()),
|
|
3545
3555
|
// "1.2.3": {...}
|
|
3546
|
-
versions:
|
|
3556
|
+
versions: z145.record(NpmPackageVersion)
|
|
3547
3557
|
})
|
|
3548
3558
|
);
|
|
3549
3559
|
|
|
3550
3560
|
// src/npm/npm-proxy-token-payload.ts
|
|
3551
|
-
import { z as
|
|
3552
|
-
var NpmProxyTokenPayload =
|
|
3553
|
-
npmProxyRegistryConfigId:
|
|
3561
|
+
import { z as z146 } from "zod";
|
|
3562
|
+
var NpmProxyTokenPayload = z146.object({
|
|
3563
|
+
npmProxyRegistryConfigId: z146.string()
|
|
3554
3564
|
});
|
|
3555
3565
|
|
|
3556
3566
|
// src/tokens/personal-access-token.ts
|
|
3557
|
-
import { z as
|
|
3558
|
-
var PersonalAccessToken =
|
|
3559
|
-
id:
|
|
3560
|
-
userId:
|
|
3561
|
-
workspaceId:
|
|
3567
|
+
import { z as z147 } from "zod";
|
|
3568
|
+
var PersonalAccessToken = z147.object({
|
|
3569
|
+
id: z147.string(),
|
|
3570
|
+
userId: z147.string(),
|
|
3571
|
+
workspaceId: z147.string().optional(),
|
|
3562
3572
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
3563
|
-
name:
|
|
3564
|
-
hidden:
|
|
3565
|
-
token:
|
|
3566
|
-
scope:
|
|
3567
|
-
createdAt:
|
|
3568
|
-
expireAt:
|
|
3573
|
+
name: z147.string(),
|
|
3574
|
+
hidden: z147.boolean(),
|
|
3575
|
+
token: z147.string(),
|
|
3576
|
+
scope: z147.string().optional(),
|
|
3577
|
+
createdAt: z147.coerce.date(),
|
|
3578
|
+
expireAt: z147.coerce.date().optional()
|
|
3569
3579
|
});
|
|
3570
3580
|
|
|
3571
3581
|
// src/utils/errors.ts
|
|
@@ -3700,26 +3710,26 @@ async function sleep(ms) {
|
|
|
3700
3710
|
}
|
|
3701
3711
|
|
|
3702
3712
|
// src/utils/content-loader-instruction.ts
|
|
3703
|
-
import { z as
|
|
3704
|
-
var ContentLoadInstruction =
|
|
3705
|
-
from:
|
|
3706
|
-
to:
|
|
3707
|
-
authorizationHeaderKvsId:
|
|
3708
|
-
timeout:
|
|
3709
|
-
});
|
|
3710
|
-
var ContentLoaderPayload =
|
|
3711
|
-
type:
|
|
3713
|
+
import { z as z148 } from "zod";
|
|
3714
|
+
var ContentLoadInstruction = z148.object({
|
|
3715
|
+
from: z148.string(),
|
|
3716
|
+
to: z148.string(),
|
|
3717
|
+
authorizationHeaderKvsId: z148.string().optional(),
|
|
3718
|
+
timeout: z148.number().optional()
|
|
3719
|
+
});
|
|
3720
|
+
var ContentLoaderPayload = z148.object({
|
|
3721
|
+
type: z148.literal("Single"),
|
|
3712
3722
|
instruction: ContentLoadInstruction
|
|
3713
3723
|
}).or(
|
|
3714
|
-
|
|
3715
|
-
type:
|
|
3716
|
-
loadingChunkSize:
|
|
3717
|
-
instructions:
|
|
3724
|
+
z148.object({
|
|
3725
|
+
type: z148.literal("Multiple"),
|
|
3726
|
+
loadingChunkSize: z148.number().optional(),
|
|
3727
|
+
instructions: z148.array(ContentLoadInstruction)
|
|
3718
3728
|
})
|
|
3719
3729
|
).or(
|
|
3720
|
-
|
|
3721
|
-
type:
|
|
3722
|
-
location:
|
|
3730
|
+
z148.object({
|
|
3731
|
+
type: z148.literal("S3"),
|
|
3732
|
+
location: z148.string()
|
|
3723
3733
|
})
|
|
3724
3734
|
);
|
|
3725
3735
|
|
|
@@ -4849,6 +4859,7 @@ export {
|
|
|
4849
4859
|
UserInvite,
|
|
4850
4860
|
UserInvites,
|
|
4851
4861
|
UserLinkedIntegrations,
|
|
4862
|
+
UserMinified,
|
|
4852
4863
|
UserOnboarding,
|
|
4853
4864
|
UserOnboardingDepartment,
|
|
4854
4865
|
UserOnboardingJobLevel,
|