@supernova-studio/model 1.48.10 → 1.48.12
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 +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -139013,6 +139013,7 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139013
139013
|
};
|
|
139014
139014
|
}>;
|
|
139015
139015
|
isPrimaryOwner: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
139016
|
+
isDeactivated: z$1.ZodBoolean;
|
|
139016
139017
|
}, "strip", z$1.ZodTypeAny, {
|
|
139017
139018
|
id: string;
|
|
139018
139019
|
seatType: "Full" | "Builder" | "None";
|
|
@@ -139024,6 +139025,7 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139024
139025
|
sendCommentNotificationEmails: boolean;
|
|
139025
139026
|
};
|
|
139026
139027
|
};
|
|
139028
|
+
isDeactivated: boolean;
|
|
139027
139029
|
isPrimaryOwner?: boolean | null | undefined;
|
|
139028
139030
|
}, {
|
|
139029
139031
|
id: string;
|
|
@@ -139036,11 +139038,13 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139036
139038
|
sendCommentNotificationEmails: boolean;
|
|
139037
139039
|
};
|
|
139038
139040
|
};
|
|
139041
|
+
isDeactivated: boolean;
|
|
139039
139042
|
isPrimaryOwner?: boolean | null | undefined;
|
|
139040
139043
|
}>;
|
|
139041
139044
|
type WorkspaceMembership = z$1.infer<typeof WorkspaceMembership>;
|
|
139042
|
-
type CreateWorkspaceMembership = OmitStrict<DbCreateInputOmit<WorkspaceMembership>, "seatType"> & {
|
|
139045
|
+
type CreateWorkspaceMembership = OmitStrict<DbCreateInputOmit<WorkspaceMembership>, "seatType" | "isDeactivated"> & {
|
|
139043
139046
|
seatType?: WorkspaceSeatType;
|
|
139047
|
+
isDeactivated?: boolean;
|
|
139044
139048
|
};
|
|
139045
139049
|
type UpdateWorkspaceMembership = OmitStrict<DbUpdate<WorkspaceMembership>, "userId" | "workspaceId">;
|
|
139046
139050
|
declare const UpdateMembershipRolesInput: z$1.ZodObject<{
|
|
@@ -140911,12 +140915,14 @@ declare const DesignSystemMembership: z$1.ZodObject<{
|
|
|
140911
140915
|
designSystemRole: z$1.ZodOptional<z$1.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
|
|
140912
140916
|
workspaceMembershipId: z$1.ZodString;
|
|
140913
140917
|
workspaceRole: z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
140918
|
+
isDeactivated: z$1.ZodBoolean;
|
|
140914
140919
|
}, "strip", z$1.ZodTypeAny, {
|
|
140915
140920
|
id: string;
|
|
140916
140921
|
userId: string;
|
|
140917
140922
|
designSystemId: string;
|
|
140918
140923
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140919
140924
|
workspaceMembershipId: string;
|
|
140925
|
+
isDeactivated: boolean;
|
|
140920
140926
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140921
140927
|
}, {
|
|
140922
140928
|
id: string;
|
|
@@ -140924,10 +140930,13 @@ declare const DesignSystemMembership: z$1.ZodObject<{
|
|
|
140924
140930
|
designSystemId: string;
|
|
140925
140931
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140926
140932
|
workspaceMembershipId: string;
|
|
140933
|
+
isDeactivated: boolean;
|
|
140927
140934
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140928
140935
|
}>;
|
|
140929
140936
|
type DesignSystemMembership = z$1.infer<typeof DesignSystemMembership>;
|
|
140930
|
-
type CreateDesignSystemMembership = DbCreateInputOmit<DesignSystemMembership
|
|
140937
|
+
type CreateDesignSystemMembership = OmitStrict<DbCreateInputOmit<DesignSystemMembership>, "isDeactivated"> & {
|
|
140938
|
+
isDeactivated?: boolean;
|
|
140939
|
+
};
|
|
140931
140940
|
type UpdateDesignSystemMembership = OmitStrict<DbUpdate<DesignSystemMembership>, "designSystemId" | "userId" | "workspaceMembershipId">;
|
|
140932
140941
|
declare const DesignSystemPendingMemberInvitation: z$1.ZodObject<{
|
|
140933
140942
|
inviteId: z$1.ZodString;
|
|
@@ -140951,12 +140960,14 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140951
140960
|
designSystemRole: z$1.ZodOptional<z$1.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
|
|
140952
140961
|
workspaceMembershipId: z$1.ZodString;
|
|
140953
140962
|
workspaceRole: z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
140963
|
+
isDeactivated: z$1.ZodBoolean;
|
|
140954
140964
|
}, "strip", z$1.ZodTypeAny, {
|
|
140955
140965
|
id: string;
|
|
140956
140966
|
userId: string;
|
|
140957
140967
|
designSystemId: string;
|
|
140958
140968
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140959
140969
|
workspaceMembershipId: string;
|
|
140970
|
+
isDeactivated: boolean;
|
|
140960
140971
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140961
140972
|
}, {
|
|
140962
140973
|
id: string;
|
|
@@ -140964,6 +140975,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140964
140975
|
designSystemId: string;
|
|
140965
140976
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140966
140977
|
workspaceMembershipId: string;
|
|
140978
|
+
isDeactivated: boolean;
|
|
140967
140979
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140968
140980
|
}>, "many">;
|
|
140969
140981
|
invitations: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -140999,6 +141011,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140999
141011
|
designSystemId: string;
|
|
141000
141012
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
141001
141013
|
workspaceMembershipId: string;
|
|
141014
|
+
isDeactivated: boolean;
|
|
141002
141015
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
141003
141016
|
}[];
|
|
141004
141017
|
}, {
|
|
@@ -141015,6 +141028,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
141015
141028
|
designSystemId: string;
|
|
141016
141029
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
141017
141030
|
workspaceMembershipId: string;
|
|
141031
|
+
isDeactivated: boolean;
|
|
141018
141032
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
141019
141033
|
}[];
|
|
141020
141034
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -139013,6 +139013,7 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139013
139013
|
};
|
|
139014
139014
|
}>;
|
|
139015
139015
|
isPrimaryOwner: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
139016
|
+
isDeactivated: z$1.ZodBoolean;
|
|
139016
139017
|
}, "strip", z$1.ZodTypeAny, {
|
|
139017
139018
|
id: string;
|
|
139018
139019
|
seatType: "Full" | "Builder" | "None";
|
|
@@ -139024,6 +139025,7 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139024
139025
|
sendCommentNotificationEmails: boolean;
|
|
139025
139026
|
};
|
|
139026
139027
|
};
|
|
139028
|
+
isDeactivated: boolean;
|
|
139027
139029
|
isPrimaryOwner?: boolean | null | undefined;
|
|
139028
139030
|
}, {
|
|
139029
139031
|
id: string;
|
|
@@ -139036,11 +139038,13 @@ declare const WorkspaceMembership: z$1.ZodObject<{
|
|
|
139036
139038
|
sendCommentNotificationEmails: boolean;
|
|
139037
139039
|
};
|
|
139038
139040
|
};
|
|
139041
|
+
isDeactivated: boolean;
|
|
139039
139042
|
isPrimaryOwner?: boolean | null | undefined;
|
|
139040
139043
|
}>;
|
|
139041
139044
|
type WorkspaceMembership = z$1.infer<typeof WorkspaceMembership>;
|
|
139042
|
-
type CreateWorkspaceMembership = OmitStrict<DbCreateInputOmit<WorkspaceMembership>, "seatType"> & {
|
|
139045
|
+
type CreateWorkspaceMembership = OmitStrict<DbCreateInputOmit<WorkspaceMembership>, "seatType" | "isDeactivated"> & {
|
|
139043
139046
|
seatType?: WorkspaceSeatType;
|
|
139047
|
+
isDeactivated?: boolean;
|
|
139044
139048
|
};
|
|
139045
139049
|
type UpdateWorkspaceMembership = OmitStrict<DbUpdate<WorkspaceMembership>, "userId" | "workspaceId">;
|
|
139046
139050
|
declare const UpdateMembershipRolesInput: z$1.ZodObject<{
|
|
@@ -140911,12 +140915,14 @@ declare const DesignSystemMembership: z$1.ZodObject<{
|
|
|
140911
140915
|
designSystemRole: z$1.ZodOptional<z$1.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
|
|
140912
140916
|
workspaceMembershipId: z$1.ZodString;
|
|
140913
140917
|
workspaceRole: z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
140918
|
+
isDeactivated: z$1.ZodBoolean;
|
|
140914
140919
|
}, "strip", z$1.ZodTypeAny, {
|
|
140915
140920
|
id: string;
|
|
140916
140921
|
userId: string;
|
|
140917
140922
|
designSystemId: string;
|
|
140918
140923
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140919
140924
|
workspaceMembershipId: string;
|
|
140925
|
+
isDeactivated: boolean;
|
|
140920
140926
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140921
140927
|
}, {
|
|
140922
140928
|
id: string;
|
|
@@ -140924,10 +140930,13 @@ declare const DesignSystemMembership: z$1.ZodObject<{
|
|
|
140924
140930
|
designSystemId: string;
|
|
140925
140931
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140926
140932
|
workspaceMembershipId: string;
|
|
140933
|
+
isDeactivated: boolean;
|
|
140927
140934
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140928
140935
|
}>;
|
|
140929
140936
|
type DesignSystemMembership = z$1.infer<typeof DesignSystemMembership>;
|
|
140930
|
-
type CreateDesignSystemMembership = DbCreateInputOmit<DesignSystemMembership
|
|
140937
|
+
type CreateDesignSystemMembership = OmitStrict<DbCreateInputOmit<DesignSystemMembership>, "isDeactivated"> & {
|
|
140938
|
+
isDeactivated?: boolean;
|
|
140939
|
+
};
|
|
140931
140940
|
type UpdateDesignSystemMembership = OmitStrict<DbUpdate<DesignSystemMembership>, "designSystemId" | "userId" | "workspaceMembershipId">;
|
|
140932
140941
|
declare const DesignSystemPendingMemberInvitation: z$1.ZodObject<{
|
|
140933
140942
|
inviteId: z$1.ZodString;
|
|
@@ -140951,12 +140960,14 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140951
140960
|
designSystemRole: z$1.ZodOptional<z$1.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
|
|
140952
140961
|
workspaceMembershipId: z$1.ZodString;
|
|
140953
140962
|
workspaceRole: z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
140963
|
+
isDeactivated: z$1.ZodBoolean;
|
|
140954
140964
|
}, "strip", z$1.ZodTypeAny, {
|
|
140955
140965
|
id: string;
|
|
140956
140966
|
userId: string;
|
|
140957
140967
|
designSystemId: string;
|
|
140958
140968
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140959
140969
|
workspaceMembershipId: string;
|
|
140970
|
+
isDeactivated: boolean;
|
|
140960
140971
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140961
140972
|
}, {
|
|
140962
140973
|
id: string;
|
|
@@ -140964,6 +140975,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140964
140975
|
designSystemId: string;
|
|
140965
140976
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
140966
140977
|
workspaceMembershipId: string;
|
|
140978
|
+
isDeactivated: boolean;
|
|
140967
140979
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
140968
140980
|
}>, "many">;
|
|
140969
140981
|
invitations: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -140999,6 +141011,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
140999
141011
|
designSystemId: string;
|
|
141000
141012
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
141001
141013
|
workspaceMembershipId: string;
|
|
141014
|
+
isDeactivated: boolean;
|
|
141002
141015
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
141003
141016
|
}[];
|
|
141004
141017
|
}, {
|
|
@@ -141015,6 +141028,7 @@ declare const DesignSystemMembers: z$1.ZodObject<{
|
|
|
141015
141028
|
designSystemId: string;
|
|
141016
141029
|
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
141017
141030
|
workspaceMembershipId: string;
|
|
141031
|
+
isDeactivated: boolean;
|
|
141018
141032
|
designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
|
|
141019
141033
|
}[];
|
|
141020
141034
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -963,9 +963,11 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
963
963
|
function errorToString(error) {
|
|
964
964
|
if (error instanceof Error) {
|
|
965
965
|
const errorAny = error;
|
|
966
|
-
const stderr = _nullishCoalesce(_nullishCoalesce(_optionalChain([errorAny, 'access', _2 => _2.result, 'optionalAccess', _3 => _3.stderr]), () => ( errorAny.stderr)), () => ( ""));
|
|
967
|
-
|
|
968
|
-
|
|
966
|
+
const stderr = (_nullishCoalesce(_nullishCoalesce(_optionalChain([errorAny, 'access', _2 => _2.result, 'optionalAccess', _3 => _3.stderr]), () => ( errorAny.stderr)), () => ( ""))).trim();
|
|
967
|
+
const stdout = (_nullishCoalesce(_nullishCoalesce(_optionalChain([errorAny, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.stdout]), () => ( errorAny.stdout)), () => ( ""))).trim();
|
|
968
|
+
const output = [stderr, stdout].filter(Boolean).join("\n");
|
|
969
|
+
return output ? `${error.message}
|
|
970
|
+
${output}` : error.message;
|
|
969
971
|
}
|
|
970
972
|
return String(error);
|
|
971
973
|
}
|
|
@@ -1030,7 +1032,7 @@ function buildConstantEnum(values) {
|
|
|
1030
1032
|
async function promiseWithTimeout(timeoutMs, promise, onTimeout) {
|
|
1031
1033
|
let timeoutHandle;
|
|
1032
1034
|
const timeoutPromise = new Promise((_, reject) => {
|
|
1033
|
-
timeoutHandle = setTimeout(() => reject(_nullishCoalesce(_optionalChain([onTimeout, 'optionalCall',
|
|
1035
|
+
timeoutHandle = setTimeout(() => reject(_nullishCoalesce(_optionalChain([onTimeout, 'optionalCall', _6 => _6()]), () => ( SupernovaException.timeout()))), timeoutMs);
|
|
1034
1036
|
});
|
|
1035
1037
|
const result = await Promise.race([promise(), timeoutPromise]);
|
|
1036
1038
|
clearTimeout(timeoutHandle);
|
|
@@ -1212,7 +1214,7 @@ function generateAlphanumericId(length) {
|
|
|
1212
1214
|
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
1213
1215
|
function slugify(str, options) {
|
|
1214
1216
|
const slug = _slugify2.default.call(void 0, _nullishCoalesce(str, () => ( "")), options);
|
|
1215
|
-
return _optionalChain([slug, 'optionalAccess',
|
|
1217
|
+
return _optionalChain([slug, 'optionalAccess', _7 => _7.length]) > 0 ? slug : "item";
|
|
1216
1218
|
}
|
|
1217
1219
|
var RESERVED_SLUGS = [
|
|
1218
1220
|
"workspaces",
|
|
@@ -1835,7 +1837,7 @@ var RESERVED_SLUGS = [
|
|
|
1835
1837
|
];
|
|
1836
1838
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
1837
1839
|
var RESERVED_SLUG_PREFIX = "x-sn-reserved-";
|
|
1838
|
-
var isSlugReservedInternal = (slug) => _optionalChain([slug, 'optionalAccess',
|
|
1840
|
+
var isSlugReservedInternal = (slug) => _optionalChain([slug, 'optionalAccess', _8 => _8.startsWith, 'call', _9 => _9(RESERVED_SLUG_PREFIX)]);
|
|
1839
1841
|
function isSlugReserved(slug) {
|
|
1840
1842
|
return RESERVED_SLUGS_SET.has(slug) || isSlugReservedInternal(slug);
|
|
1841
1843
|
}
|
|
@@ -1987,7 +1989,7 @@ function areTokenTypesCompatible(lhs, rhs, isNonCompatibleTypeChangesEnabled = f
|
|
|
1987
1989
|
}
|
|
1988
1990
|
function castStringToDimensionValue(lhs, rhs, value) {
|
|
1989
1991
|
if (stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs) && value) {
|
|
1990
|
-
const newValue = Number.parseFloat(_nullishCoalesce(_optionalChain([value, 'optionalAccess',
|
|
1992
|
+
const newValue = Number.parseFloat(_nullishCoalesce(_optionalChain([value, 'optionalAccess', _10 => _10.toString, 'call', _11 => _11()]), () => ( "")));
|
|
1991
1993
|
const measure = Number.isNaN(newValue) ? fallbackNumberValue : newValue;
|
|
1992
1994
|
return { unit: "Pixels", measure };
|
|
1993
1995
|
}
|
|
@@ -5543,7 +5545,7 @@ var HANDLE_MIN_LENGTH = 2;
|
|
|
5543
5545
|
var HANDLE_MAX_LENGTH = 64;
|
|
5544
5546
|
var CreateWorkspaceInput = _zod.z.object({
|
|
5545
5547
|
name: _zod.z.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
5546
|
-
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess',
|
|
5548
|
+
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _12 => _12.length]) > 0).optional()
|
|
5547
5549
|
});
|
|
5548
5550
|
|
|
5549
5551
|
// src/workspace/workspace-invitations.ts
|
|
@@ -5568,7 +5570,8 @@ var WorkspaceMembership = _zod.z.object({
|
|
|
5568
5570
|
workspaceRole: _zod.z.nativeEnum(WorkspaceRole),
|
|
5569
5571
|
seatType: WorkspaceSeatType,
|
|
5570
5572
|
notificationSettings: UserNotificationSettings,
|
|
5571
|
-
isPrimaryOwner: _zod.z.boolean().nullish()
|
|
5573
|
+
isPrimaryOwner: _zod.z.boolean().nullish(),
|
|
5574
|
+
isDeactivated: _zod.z.boolean()
|
|
5572
5575
|
});
|
|
5573
5576
|
var UpdateMembershipRolesInput = _zod.z.object({
|
|
5574
5577
|
members: _zod.z.array(
|
|
@@ -5623,7 +5626,8 @@ var DesignSystemMembership = _zod.z.object({
|
|
|
5623
5626
|
designSystemId: _zod.z.string(),
|
|
5624
5627
|
designSystemRole: DesignSystemRole.optional(),
|
|
5625
5628
|
workspaceMembershipId: _zod.z.string(),
|
|
5626
|
-
workspaceRole: WorkspaceRoleSchema
|
|
5629
|
+
workspaceRole: WorkspaceRoleSchema,
|
|
5630
|
+
isDeactivated: _zod.z.boolean()
|
|
5627
5631
|
});
|
|
5628
5632
|
var DesignSystemMembers = _zod.z.object({
|
|
5629
5633
|
members: DesignSystemMembership.array(),
|
|
@@ -5801,8 +5805,8 @@ var PublishedDocPageVisitsEntry = _zod.z.object({
|
|
|
5801
5805
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
5802
5806
|
function tryParseShortPersistentId(url = "/") {
|
|
5803
5807
|
const lastUrlPart = url.split("/").pop() || "";
|
|
5804
|
-
const shortPersistentId = _optionalChain([lastUrlPart, 'access',
|
|
5805
|
-
return _optionalChain([shortPersistentId, 'optionalAccess',
|
|
5808
|
+
const shortPersistentId = _optionalChain([lastUrlPart, 'access', _13 => _13.split, 'call', _14 => _14("-"), 'access', _15 => _15.pop, 'call', _16 => _16(), 'optionalAccess', _17 => _17.replaceAll, 'call', _18 => _18(".html", "")]) || null;
|
|
5809
|
+
return _optionalChain([shortPersistentId, 'optionalAccess', _19 => _19.length]) === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
5806
5810
|
}
|
|
5807
5811
|
var PublishedDocPage = _zod.z.object({
|
|
5808
5812
|
id: _zod.z.string(),
|
|
@@ -6283,7 +6287,7 @@ var IntegrationToken = _zod.z.object({
|
|
|
6283
6287
|
token_bitbucket_username: _zod.z.string().optional(),
|
|
6284
6288
|
// Bitbucket only
|
|
6285
6289
|
custom_url: _zod.z.string().optional().transform((value) => {
|
|
6286
|
-
if (!_optionalChain([value, 'optionalAccess',
|
|
6290
|
+
if (!_optionalChain([value, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) return void 0;
|
|
6287
6291
|
return formatCustomUrl(value);
|
|
6288
6292
|
})
|
|
6289
6293
|
}).refine((data) => {
|