@supernova-studio/client 0.45.0 → 0.46.0

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.
Files changed (29) hide show
  1. package/dist/index.d.mts +315 -122
  2. package/dist/index.d.ts +315 -122
  3. package/dist/index.js +315 -282
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +568 -535
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +30 -5
  9. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +28 -8
  10. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +18 -16
  11. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +15 -13
  12. package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +62 -0
  13. package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +47 -26
  14. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +23 -9
  15. package/src/api/conversion/index.ts +0 -2
  16. package/src/api/dto/design-systems/version.ts +17 -0
  17. package/src/api/dto/workspaces/integrations.ts +2 -2
  18. package/src/api/payloads/design-systems/version.ts +5 -2
  19. package/src/api/payloads/workspaces/workspace-integrations.ts +9 -1
  20. package/src/yjs/design-system-content/index.ts +0 -1
  21. package/src/api/conversion/design-system/index.ts +0 -1
  22. package/src/api/conversion/design-system/version-to-dto.ts +0 -17
  23. package/src/api/conversion/design-systems/brand.ts +0 -14
  24. package/src/api/conversion/design-systems/elements/index.ts +0 -1
  25. package/src/api/conversion/design-systems/elements/properties/index.ts +0 -2
  26. package/src/api/conversion/design-systems/elements/properties/property-definition.ts +0 -21
  27. package/src/api/conversion/design-systems/elements/properties/property-value.ts +0 -28
  28. package/src/api/conversion/design-systems/index.ts +0 -3
  29. package/src/api/conversion/design-systems/view.ts +0 -18
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
2
1
  import * as _supernova_studio_model from '@supernova-studio/model';
3
- import { PageBlockV1, DesignSystemVersion, ElementPropertyDefinition, ElementPropertyValue, Brand, ElementView, ElementViewColumn, DocumentationPageV2, ElementGroup, DocumentationGroupV1, DocumentationPageV1, DocumentationItemConfigurationV1, DocumentationItemConfigurationV2, Integration, SsoProvider, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockText, PageBlockDefinitionProperty, PageBlockDefinitionMultiRichTextPropertyStyle, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
2
+ import { PageBlockV1, DocumentationPageV2, ElementGroup, DocumentationGroupV1, DocumentationPageV1, DocumentationItemConfigurationV1, DocumentationItemConfigurationV2, Integration, SsoProvider, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockText, PageBlockDefinitionProperty, PageBlockDefinitionMultiRichTextPropertyStyle, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
3
+ import { z } from 'zod';
4
4
  import * as Y from 'yjs';
5
5
  import { Schema } from 'prosemirror-model';
6
6
 
@@ -291,6 +291,93 @@ declare const DTOExporterPropertyListResponse: z.ZodObject<{
291
291
  }>;
292
292
  type DTOExporterPropertyListResponse = z.infer<typeof DTOExporterPropertyListResponse>;
293
293
 
294
+ declare const VersionSQSPayload: z.ZodObject<{
295
+ designSystemId: z.ZodString;
296
+ input: z.ZodObject<{
297
+ meta: z.ZodObject<{
298
+ name: z.ZodOptional<z.ZodString>;
299
+ description: z.ZodOptional<z.ZodString>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ name?: string | undefined;
302
+ description?: string | undefined;
303
+ }, {
304
+ name?: string | undefined;
305
+ description?: string | undefined;
306
+ }>;
307
+ version: z.ZodEffects<z.ZodString, string, string>;
308
+ changeLog: z.ZodOptional<z.ZodString>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ meta: {
311
+ name?: string | undefined;
312
+ description?: string | undefined;
313
+ };
314
+ version: string;
315
+ changeLog?: string | undefined;
316
+ }, {
317
+ meta: {
318
+ name?: string | undefined;
319
+ description?: string | undefined;
320
+ };
321
+ version: string;
322
+ changeLog?: string | undefined;
323
+ }>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ designSystemId: string;
326
+ input: {
327
+ meta: {
328
+ name?: string | undefined;
329
+ description?: string | undefined;
330
+ };
331
+ version: string;
332
+ changeLog?: string | undefined;
333
+ };
334
+ }, {
335
+ designSystemId: string;
336
+ input: {
337
+ meta: {
338
+ name?: string | undefined;
339
+ description?: string | undefined;
340
+ };
341
+ version: string;
342
+ changeLog?: string | undefined;
343
+ };
344
+ }>;
345
+ type VersionSQSPayload = z.infer<typeof VersionSQSPayload>;
346
+ declare const DTODesignSystemVersionCreationResponse: z.ZodObject<{
347
+ meta: z.ZodObject<{
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ name: string;
352
+ description?: string | undefined;
353
+ }, {
354
+ name: string;
355
+ description?: string | undefined;
356
+ }>;
357
+ version: z.ZodString;
358
+ changeLog: z.ZodString;
359
+ isReadOnly: z.ZodBoolean;
360
+ designSystemId: z.ZodString;
361
+ }, "strip", z.ZodTypeAny, {
362
+ meta: {
363
+ name: string;
364
+ description?: string | undefined;
365
+ };
366
+ version: string;
367
+ changeLog: string;
368
+ designSystemId: string;
369
+ isReadOnly: boolean;
370
+ }, {
371
+ meta: {
372
+ name: string;
373
+ description?: string | undefined;
374
+ };
375
+ version: string;
376
+ changeLog: string;
377
+ designSystemId: string;
378
+ isReadOnly: boolean;
379
+ }>;
380
+ type DTODesignSystemVersionCreationResponse = z.infer<typeof DTODesignSystemVersionCreationResponse>;
294
381
  declare const DTODesignSystemVersion: z.ZodObject<{
295
382
  id: z.ZodString;
296
383
  createdAt: z.ZodDate;
@@ -316,8 +403,8 @@ declare const DTODesignSystemVersion: z.ZodObject<{
316
403
  };
317
404
  createdAt: Date;
318
405
  version: string;
319
- isReadonly: boolean;
320
406
  changeLog: string;
407
+ isReadonly: boolean;
321
408
  designSystemId: string;
322
409
  }, {
323
410
  id: string;
@@ -327,8 +414,8 @@ declare const DTODesignSystemVersion: z.ZodObject<{
327
414
  };
328
415
  createdAt: Date;
329
416
  version: string;
330
- isReadonly: boolean;
331
417
  changeLog: string;
418
+ isReadonly: boolean;
332
419
  designSystemId: string;
333
420
  }>;
334
421
  type DTODesignSystemVersion = z.infer<typeof DTODesignSystemVersion>;
@@ -358,8 +445,8 @@ declare const DTODesignSystemVersionsListResponse: z.ZodObject<{
358
445
  };
359
446
  createdAt: Date;
360
447
  version: string;
361
- isReadonly: boolean;
362
448
  changeLog: string;
449
+ isReadonly: boolean;
363
450
  designSystemId: string;
364
451
  }, {
365
452
  id: string;
@@ -369,8 +456,8 @@ declare const DTODesignSystemVersionsListResponse: z.ZodObject<{
369
456
  };
370
457
  createdAt: Date;
371
458
  version: string;
372
- isReadonly: boolean;
373
459
  changeLog: string;
460
+ isReadonly: boolean;
374
461
  designSystemId: string;
375
462
  }>, "many">;
376
463
  }, "strip", z.ZodTypeAny, {
@@ -382,8 +469,8 @@ declare const DTODesignSystemVersionsListResponse: z.ZodObject<{
382
469
  };
383
470
  createdAt: Date;
384
471
  version: string;
385
- isReadonly: boolean;
386
472
  changeLog: string;
473
+ isReadonly: boolean;
387
474
  designSystemId: string;
388
475
  }[];
389
476
  }, {
@@ -395,8 +482,8 @@ declare const DTODesignSystemVersionsListResponse: z.ZodObject<{
395
482
  };
396
483
  createdAt: Date;
397
484
  version: string;
398
- isReadonly: boolean;
399
485
  changeLog: string;
486
+ isReadonly: boolean;
400
487
  designSystemId: string;
401
488
  }[];
402
489
  }>;
@@ -427,8 +514,8 @@ declare const DTODesignSystemVersionGetResponse: z.ZodObject<{
427
514
  };
428
515
  createdAt: Date;
429
516
  version: string;
430
- isReadonly: boolean;
431
517
  changeLog: string;
518
+ isReadonly: boolean;
432
519
  designSystemId: string;
433
520
  }, {
434
521
  id: string;
@@ -438,8 +525,8 @@ declare const DTODesignSystemVersionGetResponse: z.ZodObject<{
438
525
  };
439
526
  createdAt: Date;
440
527
  version: string;
441
- isReadonly: boolean;
442
528
  changeLog: string;
529
+ isReadonly: boolean;
443
530
  designSystemId: string;
444
531
  }>;
445
532
  }, "strip", z.ZodTypeAny, {
@@ -451,8 +538,8 @@ declare const DTODesignSystemVersionGetResponse: z.ZodObject<{
451
538
  };
452
539
  createdAt: Date;
453
540
  version: string;
454
- isReadonly: boolean;
455
541
  changeLog: string;
542
+ isReadonly: boolean;
456
543
  designSystemId: string;
457
544
  };
458
545
  }, {
@@ -464,8 +551,8 @@ declare const DTODesignSystemVersionGetResponse: z.ZodObject<{
464
551
  };
465
552
  createdAt: Date;
466
553
  version: string;
467
- isReadonly: boolean;
468
554
  changeLog: string;
555
+ isReadonly: boolean;
469
556
  designSystemId: string;
470
557
  };
471
558
  }>;
@@ -14805,7 +14892,7 @@ declare const DTOIntegration: z.ZodObject<{
14805
14892
  createdAt: z.ZodDate;
14806
14893
  integrationCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
14807
14894
  id: z.ZodString;
14808
- type: z.ZodEnum<["OAuth2", "PAT"]>;
14895
+ type: z.ZodEnum<["OAuth2", "PAT", "GithubApp"]>;
14809
14896
  integrationId: z.ZodString;
14810
14897
  accessToken: z.ZodString;
14811
14898
  userId: z.ZodString;
@@ -14824,10 +14911,11 @@ declare const DTOIntegration: z.ZodObject<{
14824
14911
  username?: string | undefined;
14825
14912
  avatarUrl?: string | undefined;
14826
14913
  }>>;
14914
+ customUrl: z.ZodOptional<z.ZodString>;
14827
14915
  }, "strip", z.ZodTypeAny, {
14828
14916
  id: string;
14829
14917
  createdAt: Date;
14830
- type: "OAuth2" | "PAT";
14918
+ type: "OAuth2" | "PAT" | "GithubApp";
14831
14919
  accessToken: string;
14832
14920
  userId: string;
14833
14921
  integrationId: string;
@@ -14837,10 +14925,11 @@ declare const DTOIntegration: z.ZodObject<{
14837
14925
  username?: string | undefined;
14838
14926
  avatarUrl?: string | undefined;
14839
14927
  } | undefined;
14928
+ customUrl?: string | undefined;
14840
14929
  }, {
14841
14930
  id: string;
14842
14931
  createdAt: Date;
14843
- type: "OAuth2" | "PAT";
14932
+ type: "OAuth2" | "PAT" | "GithubApp";
14844
14933
  accessToken: string;
14845
14934
  userId: string;
14846
14935
  integrationId: string;
@@ -14850,6 +14939,7 @@ declare const DTOIntegration: z.ZodObject<{
14850
14939
  username?: string | undefined;
14851
14940
  avatarUrl?: string | undefined;
14852
14941
  } | undefined;
14942
+ customUrl?: string | undefined;
14853
14943
  }>, "many">>;
14854
14944
  }, "strip", z.ZodTypeAny, {
14855
14945
  id: string;
@@ -14859,7 +14949,7 @@ declare const DTOIntegration: z.ZodObject<{
14859
14949
  integrationCredentials?: {
14860
14950
  id: string;
14861
14951
  createdAt: Date;
14862
- type: "OAuth2" | "PAT";
14952
+ type: "OAuth2" | "PAT" | "GithubApp";
14863
14953
  accessToken: string;
14864
14954
  userId: string;
14865
14955
  integrationId: string;
@@ -14869,6 +14959,7 @@ declare const DTOIntegration: z.ZodObject<{
14869
14959
  username?: string | undefined;
14870
14960
  avatarUrl?: string | undefined;
14871
14961
  } | undefined;
14962
+ customUrl?: string | undefined;
14872
14963
  }[] | undefined;
14873
14964
  }, {
14874
14965
  id: string;
@@ -14878,7 +14969,7 @@ declare const DTOIntegration: z.ZodObject<{
14878
14969
  integrationCredentials?: {
14879
14970
  id: string;
14880
14971
  createdAt: Date;
14881
- type: "OAuth2" | "PAT";
14972
+ type: "OAuth2" | "PAT" | "GithubApp";
14882
14973
  accessToken: string;
14883
14974
  userId: string;
14884
14975
  integrationId: string;
@@ -14888,6 +14979,7 @@ declare const DTOIntegration: z.ZodObject<{
14888
14979
  username?: string | undefined;
14889
14980
  avatarUrl?: string | undefined;
14890
14981
  } | undefined;
14982
+ customUrl?: string | undefined;
14891
14983
  }[] | undefined;
14892
14984
  }>;
14893
14985
  type DTOIntegration = z.infer<typeof DTOIntegration>;
@@ -14907,7 +14999,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14907
14999
  createdAt: z.ZodDate;
14908
15000
  integrationCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
14909
15001
  id: z.ZodString;
14910
- type: z.ZodEnum<["OAuth2", "PAT"]>;
15002
+ type: z.ZodEnum<["OAuth2", "PAT", "GithubApp"]>;
14911
15003
  integrationId: z.ZodString;
14912
15004
  accessToken: z.ZodString;
14913
15005
  userId: z.ZodString;
@@ -14926,10 +15018,11 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14926
15018
  username?: string | undefined;
14927
15019
  avatarUrl?: string | undefined;
14928
15020
  }>>;
15021
+ customUrl: z.ZodOptional<z.ZodString>;
14929
15022
  }, "strip", z.ZodTypeAny, {
14930
15023
  id: string;
14931
15024
  createdAt: Date;
14932
- type: "OAuth2" | "PAT";
15025
+ type: "OAuth2" | "PAT" | "GithubApp";
14933
15026
  accessToken: string;
14934
15027
  userId: string;
14935
15028
  integrationId: string;
@@ -14939,10 +15032,11 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14939
15032
  username?: string | undefined;
14940
15033
  avatarUrl?: string | undefined;
14941
15034
  } | undefined;
15035
+ customUrl?: string | undefined;
14942
15036
  }, {
14943
15037
  id: string;
14944
15038
  createdAt: Date;
14945
- type: "OAuth2" | "PAT";
15039
+ type: "OAuth2" | "PAT" | "GithubApp";
14946
15040
  accessToken: string;
14947
15041
  userId: string;
14948
15042
  integrationId: string;
@@ -14952,6 +15046,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14952
15046
  username?: string | undefined;
14953
15047
  avatarUrl?: string | undefined;
14954
15048
  } | undefined;
15049
+ customUrl?: string | undefined;
14955
15050
  }>, "many">>;
14956
15051
  }, "strip", z.ZodTypeAny, {
14957
15052
  id: string;
@@ -14961,7 +15056,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14961
15056
  integrationCredentials?: {
14962
15057
  id: string;
14963
15058
  createdAt: Date;
14964
- type: "OAuth2" | "PAT";
15059
+ type: "OAuth2" | "PAT" | "GithubApp";
14965
15060
  accessToken: string;
14966
15061
  userId: string;
14967
15062
  integrationId: string;
@@ -14971,6 +15066,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14971
15066
  username?: string | undefined;
14972
15067
  avatarUrl?: string | undefined;
14973
15068
  } | undefined;
15069
+ customUrl?: string | undefined;
14974
15070
  }[] | undefined;
14975
15071
  }, {
14976
15072
  id: string;
@@ -14980,7 +15076,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14980
15076
  integrationCredentials?: {
14981
15077
  id: string;
14982
15078
  createdAt: Date;
14983
- type: "OAuth2" | "PAT";
15079
+ type: "OAuth2" | "PAT" | "GithubApp";
14984
15080
  accessToken: string;
14985
15081
  userId: string;
14986
15082
  integrationId: string;
@@ -14990,6 +15086,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
14990
15086
  username?: string | undefined;
14991
15087
  avatarUrl?: string | undefined;
14992
15088
  } | undefined;
15089
+ customUrl?: string | undefined;
14993
15090
  }[] | undefined;
14994
15091
  }>;
14995
15092
  }, "strip", z.ZodTypeAny, {
@@ -15001,7 +15098,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
15001
15098
  integrationCredentials?: {
15002
15099
  id: string;
15003
15100
  createdAt: Date;
15004
- type: "OAuth2" | "PAT";
15101
+ type: "OAuth2" | "PAT" | "GithubApp";
15005
15102
  accessToken: string;
15006
15103
  userId: string;
15007
15104
  integrationId: string;
@@ -15011,6 +15108,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
15011
15108
  username?: string | undefined;
15012
15109
  avatarUrl?: string | undefined;
15013
15110
  } | undefined;
15111
+ customUrl?: string | undefined;
15014
15112
  }[] | undefined;
15015
15113
  };
15016
15114
  }, {
@@ -15022,7 +15120,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
15022
15120
  integrationCredentials?: {
15023
15121
  id: string;
15024
15122
  createdAt: Date;
15025
- type: "OAuth2" | "PAT";
15123
+ type: "OAuth2" | "PAT" | "GithubApp";
15026
15124
  accessToken: string;
15027
15125
  userId: string;
15028
15126
  integrationId: string;
@@ -15032,6 +15130,7 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
15032
15130
  username?: string | undefined;
15033
15131
  avatarUrl?: string | undefined;
15034
15132
  } | undefined;
15133
+ customUrl?: string | undefined;
15035
15134
  }[] | undefined;
15036
15135
  };
15037
15136
  }>;
@@ -15044,7 +15143,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15044
15143
  createdAt: z.ZodDate;
15045
15144
  integrationCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
15046
15145
  id: z.ZodString;
15047
- type: z.ZodEnum<["OAuth2", "PAT"]>;
15146
+ type: z.ZodEnum<["OAuth2", "PAT", "GithubApp"]>;
15048
15147
  integrationId: z.ZodString;
15049
15148
  accessToken: z.ZodString;
15050
15149
  userId: z.ZodString;
@@ -15063,10 +15162,11 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15063
15162
  username?: string | undefined;
15064
15163
  avatarUrl?: string | undefined;
15065
15164
  }>>;
15165
+ customUrl: z.ZodOptional<z.ZodString>;
15066
15166
  }, "strip", z.ZodTypeAny, {
15067
15167
  id: string;
15068
15168
  createdAt: Date;
15069
- type: "OAuth2" | "PAT";
15169
+ type: "OAuth2" | "PAT" | "GithubApp";
15070
15170
  accessToken: string;
15071
15171
  userId: string;
15072
15172
  integrationId: string;
@@ -15076,10 +15176,11 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15076
15176
  username?: string | undefined;
15077
15177
  avatarUrl?: string | undefined;
15078
15178
  } | undefined;
15179
+ customUrl?: string | undefined;
15079
15180
  }, {
15080
15181
  id: string;
15081
15182
  createdAt: Date;
15082
- type: "OAuth2" | "PAT";
15183
+ type: "OAuth2" | "PAT" | "GithubApp";
15083
15184
  accessToken: string;
15084
15185
  userId: string;
15085
15186
  integrationId: string;
@@ -15089,6 +15190,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15089
15190
  username?: string | undefined;
15090
15191
  avatarUrl?: string | undefined;
15091
15192
  } | undefined;
15193
+ customUrl?: string | undefined;
15092
15194
  }>, "many">>;
15093
15195
  }, "strip", z.ZodTypeAny, {
15094
15196
  id: string;
@@ -15098,7 +15200,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15098
15200
  integrationCredentials?: {
15099
15201
  id: string;
15100
15202
  createdAt: Date;
15101
- type: "OAuth2" | "PAT";
15203
+ type: "OAuth2" | "PAT" | "GithubApp";
15102
15204
  accessToken: string;
15103
15205
  userId: string;
15104
15206
  integrationId: string;
@@ -15108,6 +15210,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15108
15210
  username?: string | undefined;
15109
15211
  avatarUrl?: string | undefined;
15110
15212
  } | undefined;
15213
+ customUrl?: string | undefined;
15111
15214
  }[] | undefined;
15112
15215
  }, {
15113
15216
  id: string;
@@ -15117,7 +15220,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15117
15220
  integrationCredentials?: {
15118
15221
  id: string;
15119
15222
  createdAt: Date;
15120
- type: "OAuth2" | "PAT";
15223
+ type: "OAuth2" | "PAT" | "GithubApp";
15121
15224
  accessToken: string;
15122
15225
  userId: string;
15123
15226
  integrationId: string;
@@ -15127,6 +15230,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15127
15230
  username?: string | undefined;
15128
15231
  avatarUrl?: string | undefined;
15129
15232
  } | undefined;
15233
+ customUrl?: string | undefined;
15130
15234
  }[] | undefined;
15131
15235
  }>, "many">;
15132
15236
  }, "strip", z.ZodTypeAny, {
@@ -15138,7 +15242,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15138
15242
  integrationCredentials?: {
15139
15243
  id: string;
15140
15244
  createdAt: Date;
15141
- type: "OAuth2" | "PAT";
15245
+ type: "OAuth2" | "PAT" | "GithubApp";
15142
15246
  accessToken: string;
15143
15247
  userId: string;
15144
15248
  integrationId: string;
@@ -15148,6 +15252,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15148
15252
  username?: string | undefined;
15149
15253
  avatarUrl?: string | undefined;
15150
15254
  } | undefined;
15255
+ customUrl?: string | undefined;
15151
15256
  }[] | undefined;
15152
15257
  }[];
15153
15258
  }, {
@@ -15159,7 +15264,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15159
15264
  integrationCredentials?: {
15160
15265
  id: string;
15161
15266
  createdAt: Date;
15162
- type: "OAuth2" | "PAT";
15267
+ type: "OAuth2" | "PAT" | "GithubApp";
15163
15268
  accessToken: string;
15164
15269
  userId: string;
15165
15270
  integrationId: string;
@@ -15169,6 +15274,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
15169
15274
  username?: string | undefined;
15170
15275
  avatarUrl?: string | undefined;
15171
15276
  } | undefined;
15277
+ customUrl?: string | undefined;
15172
15278
  }[] | undefined;
15173
15279
  }[];
15174
15280
  }>;
@@ -16030,23 +16136,23 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
16030
16136
  enabledScopes: z.ZodArray<z.ZodString, "many">;
16031
16137
  bypassProxy: z.ZodBoolean;
16032
16138
  }, "strip", z.ZodTypeAny, {
16139
+ enabledScopes: string[];
16140
+ bypassProxy: boolean;
16033
16141
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16142
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16034
16143
  registryUrl: string;
16035
16144
  proxyUrl: string;
16036
- authType: "Custom" | "Basic" | "Bearer" | "None";
16037
- enabledScopes: string[];
16038
- bypassProxy: boolean;
16039
16145
  customRegistryUrl?: string | undefined;
16040
16146
  accessToken?: "redacted" | undefined;
16041
16147
  username?: string | undefined;
16042
16148
  password?: "redacted" | undefined;
16043
16149
  }, {
16150
+ enabledScopes: string[];
16151
+ bypassProxy: boolean;
16044
16152
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16153
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16045
16154
  registryUrl: string;
16046
16155
  proxyUrl: string;
16047
- authType: "Custom" | "Basic" | "Bearer" | "None";
16048
- enabledScopes: string[];
16049
- bypassProxy: boolean;
16050
16156
  customRegistryUrl?: string | undefined;
16051
16157
  accessToken?: "redacted" | undefined;
16052
16158
  username?: string | undefined;
@@ -16205,12 +16311,12 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
16205
16311
  daysUntilDue?: number | undefined;
16206
16312
  };
16207
16313
  npmRegistry?: {
16314
+ enabledScopes: string[];
16315
+ bypassProxy: boolean;
16208
16316
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16317
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16209
16318
  registryUrl: string;
16210
16319
  proxyUrl: string;
16211
- authType: "Custom" | "Basic" | "Bearer" | "None";
16212
- enabledScopes: string[];
16213
- bypassProxy: boolean;
16214
16320
  customRegistryUrl?: string | undefined;
16215
16321
  accessToken?: "redacted" | undefined;
16216
16322
  username?: string | undefined;
@@ -16369,12 +16475,12 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
16369
16475
  daysUntilDue?: number | undefined;
16370
16476
  };
16371
16477
  npmRegistry?: {
16478
+ enabledScopes: string[];
16479
+ bypassProxy: boolean;
16372
16480
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16481
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16373
16482
  registryUrl: string;
16374
16483
  proxyUrl: string;
16375
- authType: "Custom" | "Basic" | "Bearer" | "None";
16376
- enabledScopes: string[];
16377
- bypassProxy: boolean;
16378
16484
  customRegistryUrl?: string | undefined;
16379
16485
  accessToken?: "redacted" | undefined;
16380
16486
  username?: string | undefined;
@@ -16537,12 +16643,12 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
16537
16643
  daysUntilDue?: number | undefined;
16538
16644
  };
16539
16645
  npmRegistry?: {
16646
+ enabledScopes: string[];
16647
+ bypassProxy: boolean;
16540
16648
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16649
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16541
16650
  registryUrl: string;
16542
16651
  proxyUrl: string;
16543
- authType: "Custom" | "Basic" | "Bearer" | "None";
16544
- enabledScopes: string[];
16545
- bypassProxy: boolean;
16546
16652
  customRegistryUrl?: string | undefined;
16547
16653
  accessToken?: "redacted" | undefined;
16548
16654
  username?: string | undefined;
@@ -16705,12 +16811,12 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
16705
16811
  daysUntilDue?: number | undefined;
16706
16812
  };
16707
16813
  npmRegistry?: {
16814
+ enabledScopes: string[];
16815
+ bypassProxy: boolean;
16708
16816
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
16817
+ authType: "Custom" | "Basic" | "Bearer" | "None";
16709
16818
  registryUrl: string;
16710
16819
  proxyUrl: string;
16711
- authType: "Custom" | "Basic" | "Bearer" | "None";
16712
- enabledScopes: string[];
16713
- bypassProxy: boolean;
16714
16820
  customRegistryUrl?: string | undefined;
16715
16821
  accessToken?: "redacted" | undefined;
16716
16822
  username?: string | undefined;
@@ -17576,23 +17682,23 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
17576
17682
  enabledScopes: z.ZodArray<z.ZodString, "many">;
17577
17683
  bypassProxy: z.ZodBoolean;
17578
17684
  }, "strip", z.ZodTypeAny, {
17685
+ enabledScopes: string[];
17686
+ bypassProxy: boolean;
17579
17687
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
17688
+ authType: "Custom" | "Basic" | "Bearer" | "None";
17580
17689
  registryUrl: string;
17581
17690
  proxyUrl: string;
17582
- authType: "Custom" | "Basic" | "Bearer" | "None";
17583
- enabledScopes: string[];
17584
- bypassProxy: boolean;
17585
17691
  customRegistryUrl?: string | undefined;
17586
17692
  accessToken?: "redacted" | undefined;
17587
17693
  username?: string | undefined;
17588
17694
  password?: "redacted" | undefined;
17589
17695
  }, {
17696
+ enabledScopes: string[];
17697
+ bypassProxy: boolean;
17590
17698
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
17699
+ authType: "Custom" | "Basic" | "Bearer" | "None";
17591
17700
  registryUrl: string;
17592
17701
  proxyUrl: string;
17593
- authType: "Custom" | "Basic" | "Bearer" | "None";
17594
- enabledScopes: string[];
17595
- bypassProxy: boolean;
17596
17702
  customRegistryUrl?: string | undefined;
17597
17703
  accessToken?: "redacted" | undefined;
17598
17704
  username?: string | undefined;
@@ -17751,12 +17857,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
17751
17857
  daysUntilDue?: number | undefined;
17752
17858
  };
17753
17859
  npmRegistry?: {
17860
+ enabledScopes: string[];
17861
+ bypassProxy: boolean;
17754
17862
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
17863
+ authType: "Custom" | "Basic" | "Bearer" | "None";
17755
17864
  registryUrl: string;
17756
17865
  proxyUrl: string;
17757
- authType: "Custom" | "Basic" | "Bearer" | "None";
17758
- enabledScopes: string[];
17759
- bypassProxy: boolean;
17760
17866
  customRegistryUrl?: string | undefined;
17761
17867
  accessToken?: "redacted" | undefined;
17762
17868
  username?: string | undefined;
@@ -17915,12 +18021,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
17915
18021
  daysUntilDue?: number | undefined;
17916
18022
  };
17917
18023
  npmRegistry?: {
18024
+ enabledScopes: string[];
18025
+ bypassProxy: boolean;
17918
18026
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18027
+ authType: "Custom" | "Basic" | "Bearer" | "None";
17919
18028
  registryUrl: string;
17920
18029
  proxyUrl: string;
17921
- authType: "Custom" | "Basic" | "Bearer" | "None";
17922
- enabledScopes: string[];
17923
- bypassProxy: boolean;
17924
18030
  customRegistryUrl?: string | undefined;
17925
18031
  accessToken?: "redacted" | undefined;
17926
18032
  username?: string | undefined;
@@ -18083,12 +18189,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
18083
18189
  daysUntilDue?: number | undefined;
18084
18190
  };
18085
18191
  npmRegistry?: {
18192
+ enabledScopes: string[];
18193
+ bypassProxy: boolean;
18086
18194
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18195
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18087
18196
  registryUrl: string;
18088
18197
  proxyUrl: string;
18089
- authType: "Custom" | "Basic" | "Bearer" | "None";
18090
- enabledScopes: string[];
18091
- bypassProxy: boolean;
18092
18198
  customRegistryUrl?: string | undefined;
18093
18199
  accessToken?: "redacted" | undefined;
18094
18200
  username?: string | undefined;
@@ -18251,12 +18357,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
18251
18357
  daysUntilDue?: number | undefined;
18252
18358
  };
18253
18359
  npmRegistry?: {
18360
+ enabledScopes: string[];
18361
+ bypassProxy: boolean;
18254
18362
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18363
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18255
18364
  registryUrl: string;
18256
18365
  proxyUrl: string;
18257
- authType: "Custom" | "Basic" | "Bearer" | "None";
18258
- enabledScopes: string[];
18259
- bypassProxy: boolean;
18260
18366
  customRegistryUrl?: string | undefined;
18261
18367
  accessToken?: "redacted" | undefined;
18262
18368
  username?: string | undefined;
@@ -18421,12 +18527,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
18421
18527
  daysUntilDue?: number | undefined;
18422
18528
  };
18423
18529
  npmRegistry?: {
18530
+ enabledScopes: string[];
18531
+ bypassProxy: boolean;
18424
18532
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18533
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18425
18534
  registryUrl: string;
18426
18535
  proxyUrl: string;
18427
- authType: "Custom" | "Basic" | "Bearer" | "None";
18428
- enabledScopes: string[];
18429
- bypassProxy: boolean;
18430
18536
  customRegistryUrl?: string | undefined;
18431
18537
  accessToken?: "redacted" | undefined;
18432
18538
  username?: string | undefined;
@@ -18591,12 +18697,12 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
18591
18697
  daysUntilDue?: number | undefined;
18592
18698
  };
18593
18699
  npmRegistry?: {
18700
+ enabledScopes: string[];
18701
+ bypassProxy: boolean;
18594
18702
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18703
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18595
18704
  registryUrl: string;
18596
18705
  proxyUrl: string;
18597
- authType: "Custom" | "Basic" | "Bearer" | "None";
18598
- enabledScopes: string[];
18599
- bypassProxy: boolean;
18600
18706
  customRegistryUrl?: string | undefined;
18601
18707
  accessToken?: "redacted" | undefined;
18602
18708
  username?: string | undefined;
@@ -18621,23 +18727,23 @@ declare const DTONpmRegistryConfig: z.ZodObject<{
18621
18727
  enabledScopes: z.ZodArray<z.ZodString, "many">;
18622
18728
  bypassProxy: z.ZodBoolean;
18623
18729
  }, "strip", z.ZodTypeAny, {
18730
+ enabledScopes: string[];
18731
+ bypassProxy: boolean;
18624
18732
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18733
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18625
18734
  registryUrl: string;
18626
18735
  proxyUrl: string;
18627
- authType: "Custom" | "Basic" | "Bearer" | "None";
18628
- enabledScopes: string[];
18629
- bypassProxy: boolean;
18630
18736
  customRegistryUrl?: string | undefined;
18631
18737
  accessToken?: "redacted" | undefined;
18632
18738
  username?: string | undefined;
18633
18739
  password?: "redacted" | undefined;
18634
18740
  }, {
18741
+ enabledScopes: string[];
18742
+ bypassProxy: boolean;
18635
18743
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
18744
+ authType: "Custom" | "Basic" | "Bearer" | "None";
18636
18745
  registryUrl: string;
18637
18746
  proxyUrl: string;
18638
- authType: "Custom" | "Basic" | "Bearer" | "None";
18639
- enabledScopes: string[];
18640
- bypassProxy: boolean;
18641
18747
  customRegistryUrl?: string | undefined;
18642
18748
  accessToken?: "redacted" | undefined;
18643
18749
  username?: string | undefined;
@@ -19498,23 +19604,23 @@ declare const DTOWorkspace: z.ZodObject<{
19498
19604
  enabledScopes: z.ZodArray<z.ZodString, "many">;
19499
19605
  bypassProxy: z.ZodBoolean;
19500
19606
  }, "strip", z.ZodTypeAny, {
19607
+ enabledScopes: string[];
19608
+ bypassProxy: boolean;
19501
19609
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
19610
+ authType: "Custom" | "Basic" | "Bearer" | "None";
19502
19611
  registryUrl: string;
19503
19612
  proxyUrl: string;
19504
- authType: "Custom" | "Basic" | "Bearer" | "None";
19505
- enabledScopes: string[];
19506
- bypassProxy: boolean;
19507
19613
  customRegistryUrl?: string | undefined;
19508
19614
  accessToken?: "redacted" | undefined;
19509
19615
  username?: string | undefined;
19510
19616
  password?: "redacted" | undefined;
19511
19617
  }, {
19618
+ enabledScopes: string[];
19619
+ bypassProxy: boolean;
19512
19620
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
19621
+ authType: "Custom" | "Basic" | "Bearer" | "None";
19513
19622
  registryUrl: string;
19514
19623
  proxyUrl: string;
19515
- authType: "Custom" | "Basic" | "Bearer" | "None";
19516
- enabledScopes: string[];
19517
- bypassProxy: boolean;
19518
19624
  customRegistryUrl?: string | undefined;
19519
19625
  accessToken?: "redacted" | undefined;
19520
19626
  username?: string | undefined;
@@ -19673,12 +19779,12 @@ declare const DTOWorkspace: z.ZodObject<{
19673
19779
  daysUntilDue?: number | undefined;
19674
19780
  };
19675
19781
  npmRegistry?: {
19782
+ enabledScopes: string[];
19783
+ bypassProxy: boolean;
19676
19784
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
19785
+ authType: "Custom" | "Basic" | "Bearer" | "None";
19677
19786
  registryUrl: string;
19678
19787
  proxyUrl: string;
19679
- authType: "Custom" | "Basic" | "Bearer" | "None";
19680
- enabledScopes: string[];
19681
- bypassProxy: boolean;
19682
19788
  customRegistryUrl?: string | undefined;
19683
19789
  accessToken?: "redacted" | undefined;
19684
19790
  username?: string | undefined;
@@ -19837,12 +19943,12 @@ declare const DTOWorkspace: z.ZodObject<{
19837
19943
  daysUntilDue?: number | undefined;
19838
19944
  };
19839
19945
  npmRegistry?: {
19946
+ enabledScopes: string[];
19947
+ bypassProxy: boolean;
19840
19948
  registryType: "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory" | "Custom";
19949
+ authType: "Custom" | "Basic" | "Bearer" | "None";
19841
19950
  registryUrl: string;
19842
19951
  proxyUrl: string;
19843
- authType: "Custom" | "Basic" | "Bearer" | "None";
19844
- enabledScopes: string[];
19845
- bypassProxy: boolean;
19846
19952
  customRegistryUrl?: string | undefined;
19847
19953
  accessToken?: "redacted" | undefined;
19848
19954
  username?: string | undefined;
@@ -19851,27 +19957,42 @@ declare const DTOWorkspace: z.ZodObject<{
19851
19957
  }>;
19852
19958
  type DTOWorkspace = z.infer<typeof DTOWorkspace>;
19853
19959
 
19854
- declare function designSystemVersionToDto(version: DesignSystemVersion): DTODesignSystemVersion;
19855
-
19856
- declare function elementPropertyDefinitionToDto(elementProperyDefinition: ElementPropertyDefinition): DTOElementPropertyDefinition;
19857
-
19858
- declare function elementPropertyValueToDto(elementPropertyValue: ElementPropertyValue): DTOElementPropertyValue;
19859
-
19860
- declare function designSystemBrandToDto(brand: Brand): DTOBrand;
19861
-
19862
- declare function elementViewToDto(elementView: ElementView, columns: ElementViewColumn[]): DTOElementView;
19863
-
19864
19960
  declare function documentationElementsToHierarchyDto(docPages: DocumentationPageV2[], docGroups: ElementGroup[], routingVersion: string): DTODocumentationHierarchyV2;
19865
19961
 
19866
19962
  declare function elementGroupsToDocumentationGroupStructureDTOV1(groups: DocumentationGroupV1[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupStructureV1[];
19867
19963
  declare function elementGroupsToDocumentationGroupDTOV1(groups: DocumentationGroupV1[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV1[];
19964
+ declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups: DocumentationGroupV1[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV1[];
19868
19965
 
19869
19966
  declare function elementGroupsToDocumentationGroupStructureDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupStructureV2[];
19870
19967
  declare function elementGroupsToDocumentationGroupDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
19968
+ declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
19871
19969
 
19872
- declare const dtoDefaultItemConfigurationV1: DTODocumentationItemConfigurationV1;
19873
- declare function documentationItemConfigurationToDTOV1(config: DocumentationItemConfigurationV1): DTODocumentationItemConfigurationV1;
19970
+ declare const getDtoDefaultItemConfigurationV1: () => {
19971
+ readonly showSidebar: true;
19972
+ readonly isHidden: false;
19973
+ readonly isPrivate: false;
19974
+ readonly header: {
19975
+ readonly alignment: "Left";
19976
+ readonly backgroundImageScaleType: "AspectFill";
19977
+ readonly description: "";
19978
+ readonly showBackgroundOverlay: false;
19979
+ readonly showCoverText: true;
19980
+ };
19981
+ };
19982
+ declare function documentationItemConfigurationToDTOV1(config: DocumentationItemConfigurationV1 | undefined): DTODocumentationItemConfigurationV1;
19874
19983
 
19984
+ declare const getDtoDefaultItemConfigurationV2: () => {
19985
+ readonly showSidebar: true;
19986
+ readonly isHidden: false;
19987
+ readonly isPrivate: false;
19988
+ readonly header: {
19989
+ readonly alignment: "Left";
19990
+ readonly backgroundImageScaleType: "AspectFill";
19991
+ readonly description: "";
19992
+ readonly showBackgroundOverlay: false;
19993
+ readonly showCoverText: true;
19994
+ };
19995
+ };
19875
19996
  declare function documentationItemConfigurationToDTOV2(config: DocumentationItemConfigurationV2 | undefined): DTODocumentationItemConfigurationV2;
19876
19997
 
19877
19998
  type GroupLike = {
@@ -19880,11 +20001,17 @@ type GroupLike = {
19880
20001
  };
19881
20002
  declare function buildDocPagePublishPaths(groups: (ElementGroup | DocumentationGroupV1)[], pages: (DocumentationPageV1 | DocumentationPageV2)[], routingVersion: string): Map<string, string>;
19882
20003
  declare function calculateElementParentChain<T extends GroupLike>(elementParentPersistentId: string, groupPersistentIdToGroupMap: Map<string, T>): T[];
20004
+ declare function applyPrivacyConfigurationToNestedItems<PageType extends DocumentationPageV1 | DocumentationPageV2, GroupType extends DocumentationGroupV1 | ElementGroup, ItemConfigurationType extends DocumentationItemConfigurationV1 | DocumentationItemConfigurationV2>(pages: PageType[], groups: GroupType[], getDefaultItemConfiguration: () => ItemConfigurationType): {
20005
+ pages: PageType[];
20006
+ groups: GroupType[];
20007
+ };
19883
20008
 
19884
20009
  declare function documentationPagesToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
20010
+ declare function documentationPagesFixedConfigurationToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
19885
20011
 
19886
20012
  declare function documentationPagesToStructureDTOV2(pages: DocumentationPageV2[], groups: ElementGroup[], routingVersion: string): DTODocumentationPageStructureV2[];
19887
20013
  declare function documentationPagesToDTOV2(pages: DocumentationPageV2[], groups: ElementGroup[], routingVersion: string): DTODocumentationPageV2[];
20014
+ declare function documentationPagesFixedConfigurationToDTOV2(pages: DocumentationPageV2[], groups: ElementGroup[], routingVersion: string): DTODocumentationPageV2[];
19888
20015
 
19889
20016
  declare function integrationToDto(integration: Integration): DTOIntegration;
19890
20017
 
@@ -19915,34 +20042,44 @@ declare const DTOCreateBrandInput: z.ZodObject<{
19915
20042
  }>;
19916
20043
  type DTOCreateBrandInput = z.infer<typeof DTOCreateBrandInput>;
19917
20044
 
20045
+ declare const ObjectMeta: z.ZodObject<{
20046
+ name: z.ZodOptional<z.ZodString>;
20047
+ description: z.ZodOptional<z.ZodString>;
20048
+ }, "strip", z.ZodTypeAny, {
20049
+ name?: string | undefined;
20050
+ description?: string | undefined;
20051
+ }, {
20052
+ name?: string | undefined;
20053
+ description?: string | undefined;
20054
+ }>;
19918
20055
  declare function validateSemver(version: string): boolean;
19919
20056
  declare const DTOCreateVersionInput: z.ZodObject<{
19920
20057
  meta: z.ZodObject<{
19921
- name: z.ZodString;
20058
+ name: z.ZodOptional<z.ZodString>;
19922
20059
  description: z.ZodOptional<z.ZodString>;
19923
20060
  }, "strip", z.ZodTypeAny, {
19924
- name: string;
20061
+ name?: string | undefined;
19925
20062
  description?: string | undefined;
19926
20063
  }, {
19927
- name: string;
20064
+ name?: string | undefined;
19928
20065
  description?: string | undefined;
19929
20066
  }>;
19930
20067
  version: z.ZodEffects<z.ZodString, string, string>;
19931
- changeLog: z.ZodString;
20068
+ changeLog: z.ZodOptional<z.ZodString>;
19932
20069
  }, "strip", z.ZodTypeAny, {
19933
20070
  meta: {
19934
- name: string;
20071
+ name?: string | undefined;
19935
20072
  description?: string | undefined;
19936
20073
  };
19937
20074
  version: string;
19938
- changeLog: string;
20075
+ changeLog?: string | undefined;
19939
20076
  }, {
19940
20077
  meta: {
19941
- name: string;
20078
+ name?: string | undefined;
19942
20079
  description?: string | undefined;
19943
20080
  };
19944
20081
  version: string;
19945
- changeLog: string;
20082
+ changeLog?: string | undefined;
19946
20083
  }>;
19947
20084
  type DTOCreateVersionInput = z.infer<typeof DTOCreateVersionInput>;
19948
20085
 
@@ -20269,7 +20406,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
20269
20406
  showBlockHeaderInEditor?: boolean | undefined;
20270
20407
  } | undefined;
20271
20408
  };
20272
- category: "Text" | "Figma" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20409
+ category: "Figma" | "Text" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20273
20410
  behavior: {
20274
20411
  dataType: "Token" | "Component" | "FigmaNode" | "Asset" | "Item";
20275
20412
  items?: {
@@ -20340,7 +20477,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
20340
20477
  showBlockHeaderInEditor?: boolean | undefined;
20341
20478
  } | undefined;
20342
20479
  };
20343
- category: "Text" | "Figma" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20480
+ category: "Figma" | "Text" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20344
20481
  behavior: {
20345
20482
  dataType: "Token" | "Component" | "FigmaNode" | "Asset" | "Item";
20346
20483
  items?: {
@@ -20413,7 +20550,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
20413
20550
  showBlockHeaderInEditor?: boolean | undefined;
20414
20551
  } | undefined;
20415
20552
  };
20416
- category: "Text" | "Figma" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20553
+ category: "Figma" | "Text" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20417
20554
  behavior: {
20418
20555
  dataType: "Token" | "Component" | "FigmaNode" | "Asset" | "Item";
20419
20556
  items?: {
@@ -20486,7 +20623,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
20486
20623
  showBlockHeaderInEditor?: boolean | undefined;
20487
20624
  } | undefined;
20488
20625
  };
20489
- category: "Text" | "Figma" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20626
+ category: "Figma" | "Text" | "Code" | "Embed" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
20490
20627
  behavior: {
20491
20628
  dataType: "Token" | "Component" | "FigmaNode" | "Asset" | "Item";
20492
20629
  items?: {
@@ -20544,27 +20681,27 @@ declare const NpmRegistryInput: z.ZodObject<{
20544
20681
  username: z.ZodString;
20545
20682
  password: z.ZodString;
20546
20683
  }, "strip", z.ZodTypeAny, {
20684
+ enabledScopes: string[];
20547
20685
  registryType: string;
20548
20686
  authType: string;
20687
+ authHeaderName: string;
20688
+ authHeaderValue: string;
20549
20689
  accessToken: string;
20550
20690
  username: string;
20551
20691
  password: string;
20552
- enabledScopes: string[];
20553
- authHeaderName: string;
20554
- authHeaderValue: string;
20555
20692
  customRegistryUrl?: string | undefined;
20556
20693
  bypassProxy?: boolean | undefined;
20557
20694
  npmProxyRegistryConfigId?: string | undefined;
20558
20695
  npmProxyVersion?: number | undefined;
20559
20696
  }, {
20697
+ enabledScopes: string[];
20560
20698
  registryType: string;
20561
20699
  authType: string;
20700
+ authHeaderName: string;
20701
+ authHeaderValue: string;
20562
20702
  accessToken: string;
20563
20703
  username: string;
20564
20704
  password: string;
20565
- enabledScopes: string[];
20566
- authHeaderName: string;
20567
- authHeaderValue: string;
20568
20705
  customRegistryUrl?: string | undefined;
20569
20706
  bypassProxy?: boolean | undefined;
20570
20707
  npmProxyRegistryConfigId?: string | undefined;
@@ -20904,6 +21041,62 @@ declare const DTOWorkspaceIntegrationOauthInput: z.ZodObject<{
20904
21041
  type: "Figma" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
20905
21042
  }>;
20906
21043
  type DTOWorkspaceIntegrationOauthInput = z.infer<typeof DTOWorkspaceIntegrationOauthInput>;
21044
+ declare const DTOWorkspaceIntegrationPATInput: z.ZodObject<{
21045
+ userId: z.ZodString;
21046
+ type: z.ZodEnum<["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]>;
21047
+ token: z.ZodEffects<z.ZodObject<{
21048
+ access_token: z.ZodString;
21049
+ refresh_token: z.ZodOptional<z.ZodString>;
21050
+ expires_in: z.ZodOptional<z.ZodNumber>;
21051
+ token_type: z.ZodOptional<z.ZodString>;
21052
+ custom_url: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
21053
+ }, "strip", z.ZodTypeAny, {
21054
+ access_token: string;
21055
+ refresh_token?: string | undefined;
21056
+ expires_in?: number | undefined;
21057
+ token_type?: string | undefined;
21058
+ custom_url?: string | undefined;
21059
+ }, {
21060
+ access_token: string;
21061
+ refresh_token?: string | undefined;
21062
+ expires_in?: number | undefined;
21063
+ token_type?: string | undefined;
21064
+ custom_url?: string | undefined;
21065
+ }>, {
21066
+ accessToken: string;
21067
+ refreshToken: string | undefined;
21068
+ expiresIn: number | undefined;
21069
+ tokenType: string | undefined;
21070
+ customUrl: string | undefined;
21071
+ }, {
21072
+ access_token: string;
21073
+ refresh_token?: string | undefined;
21074
+ expires_in?: number | undefined;
21075
+ token_type?: string | undefined;
21076
+ custom_url?: string | undefined;
21077
+ }>;
21078
+ }, "strip", z.ZodTypeAny, {
21079
+ type: "Figma" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
21080
+ userId: string;
21081
+ token: {
21082
+ accessToken: string;
21083
+ refreshToken: string | undefined;
21084
+ expiresIn: number | undefined;
21085
+ tokenType: string | undefined;
21086
+ customUrl: string | undefined;
21087
+ };
21088
+ }, {
21089
+ type: "Figma" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
21090
+ userId: string;
21091
+ token: {
21092
+ access_token: string;
21093
+ refresh_token?: string | undefined;
21094
+ expires_in?: number | undefined;
21095
+ token_type?: string | undefined;
21096
+ custom_url?: string | undefined;
21097
+ };
21098
+ }>;
21099
+ type DTOWorkspaceIntegrationPATInput = z.infer<typeof DTOWorkspaceIntegrationPATInput>;
20907
21100
 
20908
21101
  type DocumentationHierarchyTransaction = {
20909
21102
  pages: DocumentationPageV2[];
@@ -23227,4 +23420,4 @@ declare const BlockDefinitionUtils: {
23227
23420
  };
23228
23421
  };
23229
23422
 
23230
- export { BlockDefinitionUtils, BlockParsingUtils, DTOBrand, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandsListResponse, DTOCreateBrandInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateElementPropertyDefinitionInputV2, DTOCreateVersionInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODeleteElementPropertyDefinitionInputV2, DTODesignSystem, DTODesignSystemVersion, DTODesignSystemVersionGetResponse, DTODesignSystemVersionsListResponse, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV1, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionsGetResponse, DTOElementPropertyValue, DTOElementPropertyValuesGetResponse, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOExporterProperty, DTOExporterPropertyListResponse, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOIntegration, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOPropertyDefinitionCreateActionInputV2, DTOPropertyDefinitionCreateActionOutputV2, DTOPropertyDefinitionDeleteActionInputV2, DTOPropertyDefinitionDeleteActionOutputV2, DTOPropertyDefinitionUpdateActionInputV2, DTOPropertyDefinitionUpdateActionOutputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateElementPropertyDefinitionInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceRole, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, type ListItemNode, type ListNode, ListTreeBuilder, NpmRegistryInput, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, WorkspaceConfigurationPayload, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, designSystemBrandToDto, designSystemVersionToDto, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, dtoDefaultItemConfigurationV1, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, elementGroupsToDocumentationGroupStructureDTOV2, elementPropertyDefinitionToDto, elementPropertyValueToDto, elementViewToDto, getMockPageBlockDefinitions, integrationToDto, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToSection, prosemirrorNodesToBlocks, serializeAsCustomBlock, shallowProsemirrorNodeToBlock, validateSemver, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
23423
+ export { BlockDefinitionUtils, BlockParsingUtils, DTOBrand, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandsListResponse, DTOCreateBrandInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateElementPropertyDefinitionInputV2, DTOCreateVersionInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODeleteElementPropertyDefinitionInputV2, DTODesignSystem, DTODesignSystemVersion, DTODesignSystemVersionCreationResponse, DTODesignSystemVersionGetResponse, DTODesignSystemVersionsListResponse, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV1, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionsGetResponse, DTOElementPropertyValue, DTOElementPropertyValuesGetResponse, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOExporterProperty, DTOExporterPropertyListResponse, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOIntegration, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOPropertyDefinitionCreateActionInputV2, DTOPropertyDefinitionCreateActionOutputV2, DTOPropertyDefinitionDeleteActionInputV2, DTOPropertyDefinitionDeleteActionOutputV2, DTOPropertyDefinitionUpdateActionInputV2, DTOPropertyDefinitionUpdateActionOutputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateElementPropertyDefinitionInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceIntegrationPATInput, DTOWorkspaceRole, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, type ListItemNode, type ListNode, ListTreeBuilder, NpmRegistryInput, ObjectMeta, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, VersionSQSPayload, WorkspaceConfigurationPayload, applyPrivacyConfigurationToNestedItems, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPagesFixedConfigurationToDTOV1, documentationPagesFixedConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupFixedConfigurationDTOV1, elementGroupsToDocumentationGroupFixedConfigurationDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, elementGroupsToDocumentationGroupStructureDTOV2, getDtoDefaultItemConfigurationV1, getDtoDefaultItemConfigurationV2, getMockPageBlockDefinitions, integrationToDto, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToSection, prosemirrorNodesToBlocks, serializeAsCustomBlock, shallowProsemirrorNodeToBlock, validateSemver, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };