@supernova-studio/client 0.47.29 → 0.47.31

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.mjs CHANGED
@@ -151,8 +151,9 @@ import { z as z141 } from "zod";
151
151
  import { z as z143 } from "zod";
152
152
  import { z as z142 } from "zod";
153
153
  import { z as z144 } from "zod";
154
- import { z as z145 } from "zod";
155
154
  import { z as z146 } from "zod";
155
+ import { z as z145 } from "zod";
156
+ import slugifyImplementation from "@sindresorhus/slugify";
156
157
  import { z as z147 } from "zod";
157
158
  import { z as z148 } from "zod";
158
159
  import { z as z149 } from "zod";
@@ -162,7 +163,6 @@ import { z as z152 } from "zod";
162
163
  import { z as z153 } from "zod";
163
164
  import { z as z154 } from "zod";
164
165
  import { z as z155 } from "zod";
165
- import slugifyImplementation from "@sindresorhus/slugify";
166
166
  var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
167
167
  var AssetDeleteSchedule = z.object({
168
168
  id: z.string(),
@@ -2774,10 +2774,12 @@ var ExportJobContext = z131.object({
2774
2774
  apiUrl: z131.string(),
2775
2775
  accessToken: z131.string(),
2776
2776
  designSystemId: z131.string(),
2777
+ designSystemName: z131.string(),
2777
2778
  exporterId: z131.string(),
2778
2779
  versionId: z131.string(),
2779
2780
  brandId: z131.string().optional(),
2780
2781
  themeId: z131.string().optional(),
2782
+ exporterName: z131.string(),
2781
2783
  exporterPackageUrl: z131.string(),
2782
2784
  exporterPropertyValues: ExporterPropertyValue.array(),
2783
2785
  documentation: ExportJobDocumentationContext.optional()
@@ -2879,7 +2881,9 @@ var ExportJobS3DestinationResult = z134.object({
2879
2881
  bucket: z134.string(),
2880
2882
  urlPrefix: z134.string().optional(),
2881
2883
  path: z134.string(),
2882
- files: z134.array(z134.string())
2884
+ files: z134.array(z134.string()),
2885
+ url: nullishToOptional(z134.string()),
2886
+ urls: nullishToOptional(z134.string().array())
2883
2887
  });
2884
2888
  var ExportJobDocsDestinationResult = z134.object({
2885
2889
  url: z134.string()
@@ -2986,7 +2990,7 @@ var PulsarCustomBlock = z138.object({
2986
2990
  });
2987
2991
  var ExporterType = z139.enum(["code", "documentation"]);
2988
2992
  var ExporterSource = z139.enum(["git", "upload"]);
2989
- var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2993
+ var ExporterTag = z139.string();
2990
2994
  var ExporterPulsarDetails = z139.object({
2991
2995
  description: z139.string(),
2992
2996
  version: z139.string(),
@@ -3103,203 +3107,6 @@ var GitBranch = z144.object({
3103
3107
  name: z144.string(),
3104
3108
  lastCommitId: z144.string()
3105
3109
  });
3106
- var IntegrationDesignSystem = z145.object({
3107
- designSystemId: z145.string(),
3108
- brandId: z145.string(),
3109
- title: z145.string().optional(),
3110
- userId: z145.string().optional(),
3111
- date: z145.coerce.date().optional()
3112
- });
3113
- var IntegrationCredentialsType = z145.enum(["OAuth2", "PAT", "GithubApp"]);
3114
- var IntegrationCredentialsState = z145.enum(["Active", "Inactive"]);
3115
- var IntegrationCredentialsProfile = z145.object({
3116
- id: nullishToOptional(z145.string()),
3117
- email: nullishToOptional(z145.string()),
3118
- handle: nullishToOptional(z145.string()),
3119
- type: nullishToOptional(z145.string()),
3120
- avatarUrl: nullishToOptional(z145.string()),
3121
- organization: nullishToOptional(z145.string()),
3122
- collection: nullishToOptional(z145.string())
3123
- });
3124
- var IntegrationCredentials = z145.object({
3125
- id: z145.string(),
3126
- type: IntegrationCredentialsType,
3127
- integrationId: z145.string(),
3128
- accessToken: z145.string(),
3129
- userId: z145.string(),
3130
- createdAt: z145.coerce.date(),
3131
- refreshToken: z145.string().optional(),
3132
- tokenName: z145.string().optional(),
3133
- expiresAt: z145.coerce.date().optional(),
3134
- refreshedAt: z145.coerce.date().optional(),
3135
- username: z145.string().optional(),
3136
- appInstallationId: z145.string().optional(),
3137
- profile: IntegrationCredentialsProfile.optional(),
3138
- customUrl: z145.string().optional(),
3139
- state: IntegrationCredentialsState,
3140
- user: UserMinified.optional()
3141
- });
3142
- var ExtendedIntegrationType = z145.enum([
3143
- "Figma",
3144
- "Github",
3145
- "Gitlab",
3146
- "Bitbucket",
3147
- "Azure",
3148
- "TokenStudio",
3149
- "FigmaVariablesPlugin"
3150
- ]);
3151
- var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3152
- var GitIntegrationType = IntegrationType.exclude(["Figma"]);
3153
- var Integration = z145.object({
3154
- id: z145.string(),
3155
- workspaceId: z145.string(),
3156
- type: IntegrationType,
3157
- createdAt: z145.coerce.date(),
3158
- integrationCredentials: z145.array(IntegrationCredentials).optional()
3159
- });
3160
- var IntegrationToken = z145.object({
3161
- access_token: z145.string(),
3162
- refresh_token: z145.string().optional(),
3163
- expires_in: z145.union([z145.number().optional(), z145.string().optional()]),
3164
- token_type: z145.string().optional(),
3165
- token_name: z145.string().optional(),
3166
- token_azure_organization_name: z145.string().optional(),
3167
- // Azure Cloud PAT only
3168
- token_azure_collection_name: z145.string().optional(),
3169
- // Azure Server PAT only
3170
- token_bitbucket_username: z145.string().optional(),
3171
- // Bitbucket only
3172
- custom_url: z145.string().url().optional().transform((value) => value && formatCustomUrl(value))
3173
- }).refine((data) => {
3174
- if (data.custom_url && data.token_azure_organization_name) {
3175
- return false;
3176
- }
3177
- return true;
3178
- }, "Custom URL and Azure organization name cannot be present at the same time").transform((data) => {
3179
- return {
3180
- accessToken: data.access_token,
3181
- refreshToken: data.refresh_token,
3182
- expiresIn: typeof data.expires_in === "string" ? Number(data.expires_in) : data.expires_in,
3183
- tokenType: data.token_type,
3184
- tokenName: data.token_name,
3185
- tokenBitbucketUsername: data.token_bitbucket_username,
3186
- tokenAzureOrganizationName: data.token_azure_organization_name,
3187
- tokenAzureCollection: data.token_azure_collection_name,
3188
- customUrl: data.custom_url
3189
- };
3190
- });
3191
- var forbiddenCustomUrlDomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
3192
- function formatCustomUrl(url) {
3193
- let formattedUrl = url.trim().toLowerCase();
3194
- if (!formattedUrl.startsWith("http://") && !formattedUrl.startsWith("https://")) {
3195
- formattedUrl = "https://" + formattedUrl;
3196
- }
3197
- if (formattedUrl.endsWith("/")) {
3198
- formattedUrl = formattedUrl.slice(0, -1);
3199
- }
3200
- return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
3201
- }
3202
- var IntegrationTokenSchemaOld = z146.object({
3203
- id: z146.string(),
3204
- provider: OAuthProviderSchema,
3205
- scope: z146.string(),
3206
- userId: z146.string(),
3207
- accessToken: z146.string(),
3208
- refreshToken: z146.string(),
3209
- expiresAt: z146.coerce.date(),
3210
- externalUserId: z146.string().nullish()
3211
- });
3212
- var WorkspaceOAuthRequestSchema = z147.object({
3213
- id: z147.string(),
3214
- workspaceId: z147.string(),
3215
- provider: OAuthProviderSchema,
3216
- userId: z147.string(),
3217
- createdAt: z147.coerce.date()
3218
- });
3219
- var DesignSystemVersionRoom = Entity.extend({
3220
- designSystemVersionId: z148.string(),
3221
- liveblocksId: z148.string()
3222
- });
3223
- var DesignSystemVersionRoomInternalSettings = z148.object({
3224
- routingVersion: z148.string()
3225
- });
3226
- var DesignSystemVersionRoomInitialState = z148.object({
3227
- pages: z148.array(DocumentationPageV2),
3228
- groups: z148.array(ElementGroup),
3229
- internalSettings: DesignSystemVersionRoomInternalSettings
3230
- });
3231
- var DesignSystemVersionRoomUpdate = z148.object({
3232
- pages: z148.array(DocumentationPageV2),
3233
- groups: z148.array(ElementGroup),
3234
- deletedPageIds: z148.array(z148.string()),
3235
- deletedGroupIds: z148.array(z148.string())
3236
- });
3237
- var DocumentationPageRoom = Entity.extend({
3238
- designSystemVersionId: z149.string(),
3239
- documentationPageId: z149.string(),
3240
- liveblocksId: z149.string(),
3241
- isDirty: z149.boolean()
3242
- });
3243
- var DocumentationPageRoomState = z149.object({
3244
- pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3245
- itemConfiguration: DocumentationItemConfigurationV2
3246
- });
3247
- var DocumentationPageRoomRoomUpdate = z149.object({
3248
- page: DocumentationPageV2,
3249
- pageParent: ElementGroup
3250
- });
3251
- var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3252
- pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3253
- blockDefinitions: z149.array(PageBlockDefinition)
3254
- });
3255
- var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3256
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3257
- RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3258
- RoomTypeEnum2["Workspace"] = "workspace";
3259
- return RoomTypeEnum2;
3260
- })(RoomTypeEnum || {});
3261
- var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
3262
- var RoomType = RoomTypeSchema.enum;
3263
- var WorkspaceRoom = Entity.extend({
3264
- workspaceId: z151.string(),
3265
- liveblocksId: z151.string()
3266
- });
3267
- var AnyRecord = z152.record(z152.any());
3268
- var NpmPackageVersionDist = AnyRecord.and(
3269
- z152.object({
3270
- tarball: z152.string()
3271
- })
3272
- );
3273
- var NpmPackageVersion = AnyRecord.and(
3274
- z152.object({
3275
- dist: NpmPackageVersionDist
3276
- })
3277
- );
3278
- var NpmPackage = AnyRecord.and(
3279
- z152.object({
3280
- _id: z152.string(),
3281
- name: z152.string(),
3282
- // e.g. "latest": "1.2.3"
3283
- "dist-tags": z152.record(z152.string(), z152.string()),
3284
- // "1.2.3": {...}
3285
- versions: z152.record(NpmPackageVersion)
3286
- })
3287
- );
3288
- var NpmProxyTokenPayload = z153.object({
3289
- npmProxyRegistryConfigId: z153.string()
3290
- });
3291
- var PersonalAccessToken = z154.object({
3292
- id: z154.string(),
3293
- userId: z154.string(),
3294
- workspaceId: z154.string().optional(),
3295
- workspaceRole: WorkspaceRoleSchema.optional(),
3296
- name: z154.string(),
3297
- hidden: z154.boolean(),
3298
- token: z154.string(),
3299
- scope: z154.string().optional(),
3300
- createdAt: z154.coerce.date(),
3301
- expireAt: z154.coerce.date().optional()
3302
- });
3303
3110
  var SupernovaException = class _SupernovaException extends Error {
3304
3111
  //
3305
3112
  // Properties
@@ -3375,6 +3182,18 @@ var SupernovaException = class _SupernovaException extends Error {
3375
3182
  return new _SupernovaException("BadRequest", message);
3376
3183
  }
3377
3184
  };
3185
+ function tryParseUrl(url) {
3186
+ try {
3187
+ return parseUrl(url);
3188
+ } catch (e) {
3189
+ console.error(`Error parsing URL ${url}`);
3190
+ console.error(e);
3191
+ return null;
3192
+ }
3193
+ }
3194
+ function parseUrl(url) {
3195
+ return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
3196
+ }
3378
3197
  function mapByUnique(items, keyFn) {
3379
3198
  const result = /* @__PURE__ */ new Map();
3380
3199
  for (const item of items) {
@@ -3395,25 +3214,25 @@ function groupBy(items, keyFn) {
3395
3214
  }
3396
3215
  return result;
3397
3216
  }
3398
- var ContentLoadInstruction = z155.object({
3399
- from: z155.string(),
3400
- to: z155.string(),
3401
- authorizationHeaderKvsId: z155.string().optional(),
3402
- timeout: z155.number().optional()
3403
- });
3404
- var ContentLoaderPayload = z155.object({
3405
- type: z155.literal("Single"),
3217
+ var ContentLoadInstruction = z145.object({
3218
+ from: z145.string(),
3219
+ to: z145.string(),
3220
+ authorizationHeaderKvsId: z145.string().optional(),
3221
+ timeout: z145.number().optional()
3222
+ });
3223
+ var ContentLoaderPayload = z145.object({
3224
+ type: z145.literal("Single"),
3406
3225
  instruction: ContentLoadInstruction
3407
3226
  }).or(
3408
- z155.object({
3409
- type: z155.literal("Multiple"),
3410
- loadingChunkSize: z155.number().optional(),
3411
- instructions: z155.array(ContentLoadInstruction)
3227
+ z145.object({
3228
+ type: z145.literal("Multiple"),
3229
+ loadingChunkSize: z145.number().optional(),
3230
+ instructions: z145.array(ContentLoadInstruction)
3412
3231
  })
3413
3232
  ).or(
3414
- z155.object({
3415
- type: z155.literal("S3"),
3416
- location: z155.string()
3233
+ z145.object({
3234
+ type: z145.literal("S3"),
3235
+ location: z145.string()
3417
3236
  })
3418
3237
  );
3419
3238
  function slugify(str, options) {
@@ -4040,6 +3859,209 @@ var RESERVED_SLUGS = [
4040
3859
  "super-nova"
4041
3860
  ];
4042
3861
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3862
+ var IntegrationDesignSystem = z146.object({
3863
+ designSystemId: z146.string(),
3864
+ brandId: z146.string(),
3865
+ title: z146.string().optional(),
3866
+ userId: z146.string().optional(),
3867
+ date: z146.coerce.date().optional()
3868
+ });
3869
+ var IntegrationCredentialsType = z146.enum(["OAuth2", "PAT", "GithubApp"]);
3870
+ var IntegrationCredentialsState = z146.enum(["Active", "Inactive"]);
3871
+ var IntegrationCredentialsProfile = z146.object({
3872
+ id: nullishToOptional(z146.string()),
3873
+ email: nullishToOptional(z146.string()),
3874
+ handle: nullishToOptional(z146.string()),
3875
+ type: nullishToOptional(z146.string()),
3876
+ avatarUrl: nullishToOptional(z146.string()),
3877
+ organization: nullishToOptional(z146.string()),
3878
+ collection: nullishToOptional(z146.string())
3879
+ });
3880
+ var IntegrationCredentials = z146.object({
3881
+ id: z146.string(),
3882
+ type: IntegrationCredentialsType,
3883
+ integrationId: z146.string(),
3884
+ accessToken: z146.string(),
3885
+ userId: z146.string(),
3886
+ createdAt: z146.coerce.date(),
3887
+ refreshToken: z146.string().optional(),
3888
+ tokenName: z146.string().optional(),
3889
+ expiresAt: z146.coerce.date().optional(),
3890
+ refreshedAt: z146.coerce.date().optional(),
3891
+ username: z146.string().optional(),
3892
+ appInstallationId: z146.string().optional(),
3893
+ profile: IntegrationCredentialsProfile.optional(),
3894
+ customUrl: z146.string().optional(),
3895
+ state: IntegrationCredentialsState,
3896
+ user: UserMinified.optional()
3897
+ });
3898
+ var ExtendedIntegrationType = z146.enum([
3899
+ "Figma",
3900
+ "Github",
3901
+ "Gitlab",
3902
+ "Bitbucket",
3903
+ "Azure",
3904
+ "TokenStudio",
3905
+ "FigmaVariablesPlugin"
3906
+ ]);
3907
+ var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3908
+ var GitIntegrationType = IntegrationType.exclude(["Figma"]);
3909
+ var Integration = z146.object({
3910
+ id: z146.string(),
3911
+ workspaceId: z146.string(),
3912
+ type: IntegrationType,
3913
+ createdAt: z146.coerce.date(),
3914
+ integrationCredentials: z146.array(IntegrationCredentials).optional()
3915
+ });
3916
+ var IntegrationToken = z146.object({
3917
+ access_token: z146.string(),
3918
+ refresh_token: z146.string().optional(),
3919
+ expires_in: z146.union([z146.number().optional(), z146.string().optional()]),
3920
+ token_type: z146.string().optional(),
3921
+ token_name: z146.string().optional(),
3922
+ token_azure_organization_name: z146.string().optional(),
3923
+ // Azure Cloud PAT only
3924
+ token_azure_collection_name: z146.string().optional(),
3925
+ // Azure Server PAT only
3926
+ token_bitbucket_username: z146.string().optional(),
3927
+ // Bitbucket only
3928
+ custom_url: z146.string().optional().transform((value) => {
3929
+ if (!value?.trim())
3930
+ return void 0;
3931
+ return formatCustomUrl(value);
3932
+ })
3933
+ }).refine((data) => {
3934
+ return !data.custom_url || tryParseUrl(data.custom_url);
3935
+ }, "Custom URL must be a valid URL").refine((data) => {
3936
+ if (data.custom_url && data.token_azure_organization_name) {
3937
+ return false;
3938
+ }
3939
+ return true;
3940
+ }, "Custom URL and Azure organization name cannot be present at the same time").transform((data) => {
3941
+ return {
3942
+ accessToken: data.access_token,
3943
+ refreshToken: data.refresh_token,
3944
+ expiresIn: typeof data.expires_in === "string" ? Number(data.expires_in) : data.expires_in,
3945
+ tokenType: data.token_type,
3946
+ tokenName: data.token_name,
3947
+ tokenBitbucketUsername: data.token_bitbucket_username,
3948
+ tokenAzureOrganizationName: data.token_azure_organization_name,
3949
+ tokenAzureCollection: data.token_azure_collection_name,
3950
+ customUrl: data.custom_url
3951
+ };
3952
+ });
3953
+ var forbiddenCustomUrlDomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
3954
+ function formatCustomUrl(url) {
3955
+ let formattedUrl = url.trim().toLowerCase();
3956
+ if (!formattedUrl.startsWith("http://") && !formattedUrl.startsWith("https://")) {
3957
+ formattedUrl = "https://" + formattedUrl;
3958
+ }
3959
+ if (formattedUrl.endsWith("/")) {
3960
+ formattedUrl = formattedUrl.slice(0, -1);
3961
+ }
3962
+ return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
3963
+ }
3964
+ var IntegrationTokenSchemaOld = z147.object({
3965
+ id: z147.string(),
3966
+ provider: OAuthProviderSchema,
3967
+ scope: z147.string(),
3968
+ userId: z147.string(),
3969
+ accessToken: z147.string(),
3970
+ refreshToken: z147.string(),
3971
+ expiresAt: z147.coerce.date(),
3972
+ externalUserId: z147.string().nullish()
3973
+ });
3974
+ var WorkspaceOAuthRequestSchema = z148.object({
3975
+ id: z148.string(),
3976
+ workspaceId: z148.string(),
3977
+ provider: OAuthProviderSchema,
3978
+ userId: z148.string(),
3979
+ createdAt: z148.coerce.date()
3980
+ });
3981
+ var DesignSystemVersionRoom = Entity.extend({
3982
+ designSystemVersionId: z149.string(),
3983
+ liveblocksId: z149.string()
3984
+ });
3985
+ var DesignSystemVersionRoomInternalSettings = z149.object({
3986
+ routingVersion: z149.string()
3987
+ });
3988
+ var DesignSystemVersionRoomInitialState = z149.object({
3989
+ pages: z149.array(DocumentationPageV2),
3990
+ groups: z149.array(ElementGroup),
3991
+ internalSettings: DesignSystemVersionRoomInternalSettings
3992
+ });
3993
+ var DesignSystemVersionRoomUpdate = z149.object({
3994
+ pages: z149.array(DocumentationPageV2),
3995
+ groups: z149.array(ElementGroup),
3996
+ deletedPageIds: z149.array(z149.string()),
3997
+ deletedGroupIds: z149.array(z149.string())
3998
+ });
3999
+ var DocumentationPageRoom = Entity.extend({
4000
+ designSystemVersionId: z150.string(),
4001
+ documentationPageId: z150.string(),
4002
+ liveblocksId: z150.string(),
4003
+ isDirty: z150.boolean()
4004
+ });
4005
+ var DocumentationPageRoomState = z150.object({
4006
+ pageItems: z150.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4007
+ itemConfiguration: DocumentationItemConfigurationV2
4008
+ });
4009
+ var DocumentationPageRoomRoomUpdate = z150.object({
4010
+ page: DocumentationPageV2,
4011
+ pageParent: ElementGroup
4012
+ });
4013
+ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4014
+ pageItems: z150.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4015
+ blockDefinitions: z150.array(PageBlockDefinition)
4016
+ });
4017
+ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4018
+ RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4019
+ RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4020
+ RoomTypeEnum2["Workspace"] = "workspace";
4021
+ return RoomTypeEnum2;
4022
+ })(RoomTypeEnum || {});
4023
+ var RoomTypeSchema = z151.nativeEnum(RoomTypeEnum);
4024
+ var RoomType = RoomTypeSchema.enum;
4025
+ var WorkspaceRoom = Entity.extend({
4026
+ workspaceId: z152.string(),
4027
+ liveblocksId: z152.string()
4028
+ });
4029
+ var AnyRecord = z153.record(z153.any());
4030
+ var NpmPackageVersionDist = AnyRecord.and(
4031
+ z153.object({
4032
+ tarball: z153.string()
4033
+ })
4034
+ );
4035
+ var NpmPackageVersion = AnyRecord.and(
4036
+ z153.object({
4037
+ dist: NpmPackageVersionDist
4038
+ })
4039
+ );
4040
+ var NpmPackage = AnyRecord.and(
4041
+ z153.object({
4042
+ _id: z153.string(),
4043
+ name: z153.string(),
4044
+ // e.g. "latest": "1.2.3"
4045
+ "dist-tags": z153.record(z153.string(), z153.string()),
4046
+ // "1.2.3": {...}
4047
+ versions: z153.record(NpmPackageVersion)
4048
+ })
4049
+ );
4050
+ var NpmProxyTokenPayload = z154.object({
4051
+ npmProxyRegistryConfigId: z154.string()
4052
+ });
4053
+ var PersonalAccessToken = z155.object({
4054
+ id: z155.string(),
4055
+ userId: z155.string(),
4056
+ workspaceId: z155.string().optional(),
4057
+ workspaceRole: WorkspaceRoleSchema.optional(),
4058
+ name: z155.string(),
4059
+ hidden: z155.boolean(),
4060
+ token: z155.string(),
4061
+ scope: z155.string().optional(),
4062
+ createdAt: z155.coerce.date(),
4063
+ expireAt: z155.coerce.date().optional()
4064
+ });
4043
4065
 
4044
4066
  // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
4045
4067
  var getDtoDefaultItemConfigurationV2 = () => ({
@@ -4877,7 +4899,7 @@ var DTOCreateDocumentationGroupInput = z173.object({
4877
4899
  persistentId: z173.string().uuid(),
4878
4900
  // Group properties
4879
4901
  title: z173.string(),
4880
- configuration: DTODocumentationItemConfigurationV2.optional(),
4902
+ configuration: DTODocumentationItemConfigurationV2.partial().optional(),
4881
4903
  // Group placement properties
4882
4904
  afterPersistentId: z173.string().uuid().nullish(),
4883
4905
  parentPersistentId: z173.string().uuid()
@@ -5055,7 +5077,7 @@ var DTOCreateDocumentationPageInputV2 = z177.object({
5055
5077
  persistentId: z177.string().uuid(),
5056
5078
  // Page properties
5057
5079
  title: z177.string(),
5058
- configuration: DTODocumentationItemConfigurationV2.optional(),
5080
+ configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5059
5081
  // Page placement properties
5060
5082
  parentPersistentId: z177.string().uuid(),
5061
5083
  afterPersistentId: z177.string().uuid().nullish()
@@ -8789,7 +8811,6 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8789
8811
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8790
8812
  const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z201.string().optional()));
8791
8813
  return {
8792
- // TODO Artem: indent
8793
8814
  id,
8794
8815
  type: "Block",
8795
8816
  ...variantId && { variantId },