@3dverse/api 0.16.0 → 0.17.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.
@@ -174,6 +174,9 @@ export type AssetId = string;
174
174
  export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
175
175
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
176
176
  export type AssetMeta = {
177
+ /** What the asset is, which tells the tool opening it */
178
+ kind?: 'slang' | 'glsl';
179
+ } | {
177
180
  /** What the asset is, which tells the tool opening it */
178
181
  kind?: 'statechart' | 'coroutine' | 'custom';
179
182
  } | {
@@ -289,6 +292,9 @@ export type AssetsByContainer = {
289
292
  has_thumbnail: boolean;
290
293
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
291
294
  meta: {
295
+ /** What the asset is, which tells the tool opening it */
296
+ kind?: 'slang' | 'glsl';
297
+ } | {
292
298
  /** What the asset is, which tells the tool opening it */
293
299
  kind?: 'statechart' | 'coroutine' | 'custom';
294
300
  } | {
@@ -304,6 +310,9 @@ export type AssetsByContainer = {
304
310
  has_thumbnail: boolean;
305
311
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
306
312
  meta: {
313
+ /** What the asset is, which tells the tool opening it */
314
+ kind?: 'slang' | 'glsl';
315
+ } | {
307
316
  /** What the asset is, which tells the tool opening it */
308
317
  kind?: 'statechart' | 'coroutine' | 'custom';
309
318
  } | {
@@ -319,6 +328,9 @@ export type AssetsByContainer = {
319
328
  has_thumbnail: boolean;
320
329
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
321
330
  meta: {
331
+ /** What the asset is, which tells the tool opening it */
332
+ kind?: 'slang' | 'glsl';
333
+ } | {
322
334
  /** What the asset is, which tells the tool opening it */
323
335
  kind?: 'statechart' | 'coroutine' | 'custom';
324
336
  } | {
@@ -334,6 +346,9 @@ export type AssetsByContainer = {
334
346
  has_thumbnail: boolean;
335
347
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
336
348
  meta: {
349
+ /** What the asset is, which tells the tool opening it */
350
+ kind?: 'slang' | 'glsl';
351
+ } | {
337
352
  /** What the asset is, which tells the tool opening it */
338
353
  kind?: 'statechart' | 'coroutine' | 'custom';
339
354
  } | {
@@ -349,6 +364,9 @@ export type AssetsByContainer = {
349
364
  has_thumbnail: boolean;
350
365
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
351
366
  meta: {
367
+ /** What the asset is, which tells the tool opening it */
368
+ kind?: 'slang' | 'glsl';
369
+ } | {
352
370
  /** What the asset is, which tells the tool opening it */
353
371
  kind?: 'statechart' | 'coroutine' | 'custom';
354
372
  } | {
@@ -364,6 +382,9 @@ export type AssetsByContainer = {
364
382
  has_thumbnail: boolean;
365
383
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
366
384
  meta: {
385
+ /** What the asset is, which tells the tool opening it */
386
+ kind?: 'slang' | 'glsl';
387
+ } | {
367
388
  /** What the asset is, which tells the tool opening it */
368
389
  kind?: 'statechart' | 'coroutine' | 'custom';
369
390
  } | {
@@ -379,6 +400,9 @@ export type AssetsByContainer = {
379
400
  has_thumbnail: boolean;
380
401
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
381
402
  meta: {
403
+ /** What the asset is, which tells the tool opening it */
404
+ kind?: 'slang' | 'glsl';
405
+ } | {
382
406
  /** What the asset is, which tells the tool opening it */
383
407
  kind?: 'statechart' | 'coroutine' | 'custom';
384
408
  } | {
@@ -394,6 +418,9 @@ export type AssetsByContainer = {
394
418
  has_thumbnail: boolean;
395
419
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
396
420
  meta: {
421
+ /** What the asset is, which tells the tool opening it */
422
+ kind?: 'slang' | 'glsl';
423
+ } | {
397
424
  /** What the asset is, which tells the tool opening it */
398
425
  kind?: 'statechart' | 'coroutine' | 'custom';
399
426
  } | {
@@ -409,6 +436,9 @@ export type AssetsByContainer = {
409
436
  has_thumbnail: boolean;
410
437
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
411
438
  meta: {
439
+ /** What the asset is, which tells the tool opening it */
440
+ kind?: 'slang' | 'glsl';
441
+ } | {
412
442
  /** What the asset is, which tells the tool opening it */
413
443
  kind?: 'statechart' | 'coroutine' | 'custom';
414
444
  } | {
@@ -424,6 +454,9 @@ export type AssetsByContainer = {
424
454
  has_thumbnail: boolean;
425
455
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
426
456
  meta: {
457
+ /** What the asset is, which tells the tool opening it */
458
+ kind?: 'slang' | 'glsl';
459
+ } | {
427
460
  /** What the asset is, which tells the tool opening it */
428
461
  kind?: 'statechart' | 'coroutine' | 'custom';
429
462
  } | {
@@ -439,6 +472,9 @@ export type AssetsByContainer = {
439
472
  has_thumbnail: boolean;
440
473
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
441
474
  meta: {
475
+ /** What the asset is, which tells the tool opening it */
476
+ kind?: 'slang' | 'glsl';
477
+ } | {
442
478
  /** What the asset is, which tells the tool opening it */
443
479
  kind?: 'statechart' | 'coroutine' | 'custom';
444
480
  } | {
@@ -454,6 +490,9 @@ export type AssetsByContainer = {
454
490
  has_thumbnail: boolean;
455
491
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
456
492
  meta: {
493
+ /** What the asset is, which tells the tool opening it */
494
+ kind?: 'slang' | 'glsl';
495
+ } | {
457
496
  /** What the asset is, which tells the tool opening it */
458
497
  kind?: 'statechart' | 'coroutine' | 'custom';
459
498
  } | {
@@ -469,6 +508,9 @@ export type AssetsByContainer = {
469
508
  has_thumbnail: boolean;
470
509
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
471
510
  meta: {
511
+ /** What the asset is, which tells the tool opening it */
512
+ kind?: 'slang' | 'glsl';
513
+ } | {
472
514
  /** What the asset is, which tells the tool opening it */
473
515
  kind?: 'statechart' | 'coroutine' | 'custom';
474
516
  } | {
@@ -484,6 +526,9 @@ export type AssetsByContainer = {
484
526
  has_thumbnail: boolean;
485
527
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
486
528
  meta: {
529
+ /** What the asset is, which tells the tool opening it */
530
+ kind?: 'slang' | 'glsl';
531
+ } | {
487
532
  /** What the asset is, which tells the tool opening it */
488
533
  kind?: 'statechart' | 'coroutine' | 'custom';
489
534
  } | {
@@ -499,6 +544,9 @@ export type AssetsByContainer = {
499
544
  has_thumbnail: boolean;
500
545
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
501
546
  meta: {
547
+ /** What the asset is, which tells the tool opening it */
548
+ kind?: 'slang' | 'glsl';
549
+ } | {
502
550
  /** What the asset is, which tells the tool opening it */
503
551
  kind?: 'statechart' | 'coroutine' | 'custom';
504
552
  } | {
@@ -514,6 +562,9 @@ export type AssetsByContainer = {
514
562
  has_thumbnail: boolean;
515
563
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
516
564
  meta: {
565
+ /** What the asset is, which tells the tool opening it */
566
+ kind?: 'slang' | 'glsl';
567
+ } | {
517
568
  /** What the asset is, which tells the tool opening it */
518
569
  kind?: 'statechart' | 'coroutine' | 'custom';
519
570
  } | {
@@ -529,6 +580,9 @@ export type AssetsByContainer = {
529
580
  has_thumbnail: boolean;
530
581
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
531
582
  meta: {
583
+ /** What the asset is, which tells the tool opening it */
584
+ kind?: 'slang' | 'glsl';
585
+ } | {
532
586
  /** What the asset is, which tells the tool opening it */
533
587
  kind?: 'statechart' | 'coroutine' | 'custom';
534
588
  } | {
@@ -544,6 +598,9 @@ export type AssetsByContainer = {
544
598
  has_thumbnail: boolean;
545
599
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
546
600
  meta: {
601
+ /** What the asset is, which tells the tool opening it */
602
+ kind?: 'slang' | 'glsl';
603
+ } | {
547
604
  /** What the asset is, which tells the tool opening it */
548
605
  kind?: 'statechart' | 'coroutine' | 'custom';
549
606
  } | {
@@ -559,6 +616,9 @@ export type AssetsByContainer = {
559
616
  has_thumbnail: boolean;
560
617
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
561
618
  meta: {
619
+ /** What the asset is, which tells the tool opening it */
620
+ kind?: 'slang' | 'glsl';
621
+ } | {
562
622
  /** What the asset is, which tells the tool opening it */
563
623
  kind?: 'statechart' | 'coroutine' | 'custom';
564
624
  } | {
@@ -574,6 +634,9 @@ export type AssetsByContainer = {
574
634
  has_thumbnail: boolean;
575
635
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
576
636
  meta: {
637
+ /** What the asset is, which tells the tool opening it */
638
+ kind?: 'slang' | 'glsl';
639
+ } | {
577
640
  /** What the asset is, which tells the tool opening it */
578
641
  kind?: 'statechart' | 'coroutine' | 'custom';
579
642
  } | {
@@ -589,6 +652,9 @@ export type AssetsByContainer = {
589
652
  has_thumbnail: boolean;
590
653
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
591
654
  meta: {
655
+ /** What the asset is, which tells the tool opening it */
656
+ kind?: 'slang' | 'glsl';
657
+ } | {
592
658
  /** What the asset is, which tells the tool opening it */
593
659
  kind?: 'statechart' | 'coroutine' | 'custom';
594
660
  } | {
@@ -604,6 +670,9 @@ export type AssetsByContainer = {
604
670
  has_thumbnail: boolean;
605
671
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
606
672
  meta: {
673
+ /** What the asset is, which tells the tool opening it */
674
+ kind?: 'slang' | 'glsl';
675
+ } | {
607
676
  /** What the asset is, which tells the tool opening it */
608
677
  kind?: 'statechart' | 'coroutine' | 'custom';
609
678
  } | {
@@ -619,6 +688,9 @@ export type AssetsByContainer = {
619
688
  has_thumbnail: boolean;
620
689
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
621
690
  meta: {
691
+ /** What the asset is, which tells the tool opening it */
692
+ kind?: 'slang' | 'glsl';
693
+ } | {
622
694
  /** What the asset is, which tells the tool opening it */
623
695
  kind?: 'statechart' | 'coroutine' | 'custom';
624
696
  } | {
@@ -898,6 +970,8 @@ export type AssetCreatableWithType = {
898
970
  } | {
899
971
  /** Source code from a git repository that could be used in a shader, a script or in an algorithm */
900
972
  asset_description: {
973
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
974
+ debugPayloadSize?: number;
901
975
  functions: {
902
976
  [function_name: string]: {
903
977
  [_additionalproperties_: string]: any;
@@ -907,6 +981,8 @@ export type AssetCreatableWithType = {
907
981
  moduleDependencies?: Array<string>;
908
982
  /** Name of the asset */
909
983
  name: string;
984
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
985
+ payloadSize?: number;
910
986
  /** Unique identifier for the asset */
911
987
  uuid: string;
912
988
  };
@@ -1354,8 +1430,8 @@ export type AssetCreatableWithType = {
1354
1430
  };
1355
1431
  /** Categories */
1356
1432
  categories?: Array<string>;
1357
- /** Parameter default value */
1358
- default?: number | boolean | Array<number>;
1433
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1434
+ default?: number | boolean | Array<number> | string;
1359
1435
  /** Description of the parameter, shown by tools. Not read by the engine */
1360
1436
  description?: string;
1361
1437
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -1510,8 +1586,8 @@ export type AssetCreatableWithType = {
1510
1586
  };
1511
1587
  /** Categories */
1512
1588
  categories?: Array<string>;
1513
- /** Parameter default value */
1514
- default?: number | boolean | Array<number>;
1589
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1590
+ default?: number | boolean | Array<number> | string;
1515
1591
  /** Description of the parameter, shown by tools. Not read by the engine */
1516
1592
  description?: string;
1517
1593
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -1598,8 +1674,8 @@ export type AssetCreatableWithType = {
1598
1674
  };
1599
1675
  /** Categories */
1600
1676
  categories?: Array<string>;
1601
- /** Parameter default value */
1602
- default?: number | boolean | Array<number>;
1677
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1678
+ default?: number | boolean | Array<number> | string;
1603
1679
  /** Description of the parameter, shown by tools. Not read by the engine */
1604
1680
  description?: string;
1605
1681
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -1965,6 +2041,8 @@ export type AssetCreationFromDescription = ({
1965
2041
  } | {
1966
2042
  /** Source code from a git repository that could be used in a shader, a script or in an algorithm */
1967
2043
  asset_description: {
2044
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
2045
+ debugPayloadSize?: number;
1968
2046
  functions: {
1969
2047
  [function_name: string]: {
1970
2048
  [_additionalproperties_: string]: any;
@@ -1974,6 +2052,8 @@ export type AssetCreationFromDescription = ({
1974
2052
  moduleDependencies?: Array<string>;
1975
2053
  /** Name of the asset */
1976
2054
  name: string;
2055
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
2056
+ payloadSize?: number;
1977
2057
  /** Unique identifier for the asset */
1978
2058
  uuid: string;
1979
2059
  };
@@ -2421,8 +2501,8 @@ export type AssetCreationFromDescription = ({
2421
2501
  };
2422
2502
  /** Categories */
2423
2503
  categories?: Array<string>;
2424
- /** Parameter default value */
2425
- default?: number | boolean | Array<number>;
2504
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2505
+ default?: number | boolean | Array<number> | string;
2426
2506
  /** Description of the parameter, shown by tools. Not read by the engine */
2427
2507
  description?: string;
2428
2508
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -2577,8 +2657,8 @@ export type AssetCreationFromDescription = ({
2577
2657
  };
2578
2658
  /** Categories */
2579
2659
  categories?: Array<string>;
2580
- /** Parameter default value */
2581
- default?: number | boolean | Array<number>;
2660
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2661
+ default?: number | boolean | Array<number> | string;
2582
2662
  /** Description of the parameter, shown by tools. Not read by the engine */
2583
2663
  description?: string;
2584
2664
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -2665,8 +2745,8 @@ export type AssetCreationFromDescription = ({
2665
2745
  };
2666
2746
  /** Categories */
2667
2747
  categories?: Array<string>;
2668
- /** Parameter default value */
2669
- default?: number | boolean | Array<number>;
2748
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2749
+ default?: number | boolean | Array<number> | string;
2670
2750
  /** Description of the parameter, shown by tools. Not read by the engine */
2671
2751
  description?: string;
2672
2752
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -3138,6 +3218,8 @@ export type EnvironmentAssetListFilters = {
3138
3218
  export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
3139
3219
  /** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
3140
3220
  export type AssetMetaChange = {
3221
+ kind?: 'slang' | 'glsl' | null;
3222
+ } | {
3141
3223
  kind?: 'statechart' | 'coroutine' | 'custom' | null;
3142
3224
  } | {
3143
3225
  kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph' | null;
@@ -3224,6 +3306,9 @@ export type AssetDetails = {
3224
3306
  library_id?: string;
3225
3307
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
3226
3308
  meta: {
3309
+ /** What the asset is, which tells the tool opening it */
3310
+ kind?: 'slang' | 'glsl';
3311
+ } | {
3227
3312
  /** What the asset is, which tells the tool opening it */
3228
3313
  kind?: 'statechart' | 'coroutine' | 'custom';
3229
3314
  } | {
@@ -3591,6 +3676,8 @@ export type AssetDescription = {
3591
3676
  /** Unique identifier for the asset */
3592
3677
  uuid: string;
3593
3678
  } | {
3679
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
3680
+ debugPayloadSize?: number;
3594
3681
  functions: {
3595
3682
  [function_name: string]: {
3596
3683
  [_additionalproperties_: string]: any;
@@ -3600,6 +3687,8 @@ export type AssetDescription = {
3600
3687
  moduleDependencies?: Array<string>;
3601
3688
  /** Name of the asset */
3602
3689
  name: string;
3690
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
3691
+ payloadSize?: number;
3603
3692
  /** Unique identifier for the asset */
3604
3693
  uuid: string;
3605
3694
  } | {
@@ -4125,8 +4214,8 @@ export type AssetDescription = {
4125
4214
  };
4126
4215
  /** Categories */
4127
4216
  categories?: Array<string>;
4128
- /** Parameter default value */
4129
- default?: number | boolean | Array<number>;
4217
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4218
+ default?: number | boolean | Array<number> | string;
4130
4219
  /** Description of the parameter, shown by tools. Not read by the engine */
4131
4220
  description?: string;
4132
4221
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -4269,8 +4358,8 @@ export type AssetDescription = {
4269
4358
  };
4270
4359
  /** Categories */
4271
4360
  categories?: Array<string>;
4272
- /** Parameter default value */
4273
- default?: number | boolean | Array<number>;
4361
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4362
+ default?: number | boolean | Array<number> | string;
4274
4363
  /** Description of the parameter, shown by tools. Not read by the engine */
4275
4364
  description?: string;
4276
4365
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -4357,8 +4446,8 @@ export type AssetDescription = {
4357
4446
  };
4358
4447
  /** Categories */
4359
4448
  categories?: Array<string>;
4360
- /** Parameter default value */
4361
- default?: number | boolean | Array<number>;
4449
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4450
+ default?: number | boolean | Array<number> | string;
4362
4451
  /** Description of the parameter, shown by tools. Not read by the engine */
4363
4452
  description?: string;
4364
4453
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -4430,8 +4519,8 @@ export type AssetDescription = {
4430
4519
  };
4431
4520
  /** Categories */
4432
4521
  categories?: Array<string>;
4433
- /** Parameter default value */
4434
- default?: number | boolean | Array<number>;
4522
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4523
+ default?: number | boolean | Array<number> | string;
4435
4524
  /** Description of the parameter, shown by tools. Not read by the engine */
4436
4525
  description?: string;
4437
4526
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -4844,6 +4933,8 @@ export type EditableAssetDescription = {
4844
4933
  /** Unique identifier for the asset */
4845
4934
  uuid: string;
4846
4935
  } | {
4936
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
4937
+ debugPayloadSize?: number;
4847
4938
  functions: {
4848
4939
  [function_name: string]: {
4849
4940
  [_additionalproperties_: string]: any;
@@ -4853,6 +4944,8 @@ export type EditableAssetDescription = {
4853
4944
  moduleDependencies?: Array<string>;
4854
4945
  /** Name of the asset */
4855
4946
  name: string;
4947
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
4948
+ payloadSize?: number;
4856
4949
  /** Unique identifier for the asset */
4857
4950
  uuid: string;
4858
4951
  } | {
@@ -5296,8 +5389,8 @@ export type EditableAssetDescription = {
5296
5389
  };
5297
5390
  /** Categories */
5298
5391
  categories?: Array<string>;
5299
- /** Parameter default value */
5300
- default?: number | boolean | Array<number>;
5392
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5393
+ default?: number | boolean | Array<number> | string;
5301
5394
  /** Description of the parameter, shown by tools. Not read by the engine */
5302
5395
  description?: string;
5303
5396
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -5440,8 +5533,8 @@ export type EditableAssetDescription = {
5440
5533
  };
5441
5534
  /** Categories */
5442
5535
  categories?: Array<string>;
5443
- /** Parameter default value */
5444
- default?: number | boolean | Array<number>;
5536
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5537
+ default?: number | boolean | Array<number> | string;
5445
5538
  /** Description of the parameter, shown by tools. Not read by the engine */
5446
5539
  description?: string;
5447
5540
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -5528,8 +5621,8 @@ export type EditableAssetDescription = {
5528
5621
  };
5529
5622
  /** Categories */
5530
5623
  categories?: Array<string>;
5531
- /** Parameter default value */
5532
- default?: number | boolean | Array<number>;
5624
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5625
+ default?: number | boolean | Array<number> | string;
5533
5626
  /** Description of the parameter, shown by tools. Not read by the engine */
5534
5627
  description?: string;
5535
5628
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -5625,8 +5718,28 @@ export type EditableAssetDescription = {
5625
5718
  /** Unique identifier for the asset */
5626
5719
  uuid: string;
5627
5720
  };
5628
- export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5721
+ export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5629
5722
  export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
5723
+ /** A tool keeping a document of an asset, and when it last wrote it */
5724
+ export type AssetDocumentSummary = {
5725
+ /** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
5726
+ tool_id: string;
5727
+ updated_at: string;
5728
+ };
5729
+ /** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
5730
+ export type ToolId = string;
5731
+ /** The document a tool keeps of an asset, in a format of its own, which names the assets it uses by references of its own, and the assets those references stand for, which cannot be deleted while it names them: neither dependencies of the asset nor references. A copy of the asset takes the document as it is, its references standing for the copies of the assets duplicated with it. */
5732
+ export type AssetDocument = {
5733
+ /** The asset each reference of the document stands for */
5734
+ dependencies: {
5735
+ /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
5736
+ [_additionalproperties_: string]: string;
5737
+ };
5738
+ /** The tool's document, as it wrote it, holding no asset id but its own references */
5739
+ document: {
5740
+ [_additionalproperties_: string]: any;
5741
+ };
5742
+ };
5630
5743
  export type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
5631
5744
  /** The code replacing an asset's, as its caller sends it. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */
5632
5745
  export type AssetCode = {
@@ -7523,6 +7636,8 @@ export type AssetCreationFromDescriptionInput = ({
7523
7636
  } | {
7524
7637
  /** Source code from a git repository that could be used in a shader, a script or in an algorithm */
7525
7638
  asset_description: {
7639
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
7640
+ debugPayloadSize?: number;
7526
7641
  functions: {
7527
7642
  [function_name: string]: {
7528
7643
  [_additionalproperties_: string]: any;
@@ -7532,6 +7647,8 @@ export type AssetCreationFromDescriptionInput = ({
7532
7647
  moduleDependencies?: Array<string>;
7533
7648
  /** Name of the asset */
7534
7649
  name: string;
7650
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
7651
+ payloadSize?: number;
7535
7652
  };
7536
7653
  asset_type: 'module';
7537
7654
  } | {
@@ -7977,8 +8094,8 @@ export type AssetCreationFromDescriptionInput = ({
7977
8094
  };
7978
8095
  /** Categories */
7979
8096
  categories?: Array<string>;
7980
- /** Parameter default value */
7981
- default?: number | boolean | Array<number>;
8097
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8098
+ default?: number | boolean | Array<number> | string;
7982
8099
  /** Description of the parameter, shown by tools. Not read by the engine */
7983
8100
  description?: string;
7984
8101
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -8127,8 +8244,8 @@ export type AssetCreationFromDescriptionInput = ({
8127
8244
  };
8128
8245
  /** Categories */
8129
8246
  categories?: Array<string>;
8130
- /** Parameter default value */
8131
- default?: number | boolean | Array<number>;
8247
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8248
+ default?: number | boolean | Array<number> | string;
8132
8249
  /** Description of the parameter, shown by tools. Not read by the engine */
8133
8250
  description?: string;
8134
8251
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -8215,8 +8332,8 @@ export type AssetCreationFromDescriptionInput = ({
8215
8332
  };
8216
8333
  /** Categories */
8217
8334
  categories?: Array<string>;
8218
- /** Parameter default value */
8219
- default?: number | boolean | Array<number>;
8335
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8336
+ default?: number | boolean | Array<number> | string;
8220
8337
  /** Description of the parameter, shown by tools. Not read by the engine */
8221
8338
  description?: string;
8222
8339
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -8537,6 +8654,8 @@ export type EditableAssetDescriptionInput = {
8537
8654
  /** The implemented shader */
8538
8655
  shaderRef: string;
8539
8656
  } | {
8657
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
8658
+ debugPayloadSize?: number;
8540
8659
  functions: {
8541
8660
  [function_name: string]: {
8542
8661
  [_additionalproperties_: string]: any;
@@ -8546,6 +8665,8 @@ export type EditableAssetDescriptionInput = {
8546
8665
  moduleDependencies?: Array<string>;
8547
8666
  /** Name of the asset */
8548
8667
  name: string;
8668
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
8669
+ payloadSize?: number;
8549
8670
  } | {
8550
8671
  /** All blend states */
8551
8672
  blendStateDescriptions?: Array<{
@@ -8987,8 +9108,8 @@ export type EditableAssetDescriptionInput = {
8987
9108
  };
8988
9109
  /** Categories */
8989
9110
  categories?: Array<string>;
8990
- /** Parameter default value */
8991
- default?: number | boolean | Array<number>;
9111
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9112
+ default?: number | boolean | Array<number> | string;
8992
9113
  /** Description of the parameter, shown by tools. Not read by the engine */
8993
9114
  description?: string;
8994
9115
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -9125,8 +9246,8 @@ export type EditableAssetDescriptionInput = {
9125
9246
  };
9126
9247
  /** Categories */
9127
9248
  categories?: Array<string>;
9128
- /** Parameter default value */
9129
- default?: number | boolean | Array<number>;
9249
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9250
+ default?: number | boolean | Array<number> | string;
9130
9251
  /** Description of the parameter, shown by tools. Not read by the engine */
9131
9252
  description?: string;
9132
9253
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -9213,8 +9334,8 @@ export type EditableAssetDescriptionInput = {
9213
9334
  };
9214
9335
  /** Categories */
9215
9336
  categories?: Array<string>;
9216
- /** Parameter default value */
9217
- default?: number | boolean | Array<number>;
9337
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9338
+ default?: number | boolean | Array<number> | string;
9218
9339
  /** Description of the parameter, shown by tools. Not read by the engine */
9219
9340
  description?: string;
9220
9341
  /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
@@ -10771,6 +10892,84 @@ export declare function updateAssetGraph({ asset_container_with_graph, asset_id,
10771
10892
  }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, {
10772
10893
  [_additionalproperties_: string]: any;
10773
10894
  }, {}, any>>;
10895
+ /**
10896
+ * The tools keeping a document of the asset, by id, each with when it last wrote it.
10897
+ * @throws {InvalidParameter}
10898
+ * @throws {MissingAuthorizationHeader}
10899
+ * @throws {InvalidApiKey}
10900
+ * @throws {Unauthorized}
10901
+ * @throws {InvalidAuthorization}
10902
+ * @throws {InsufficientSecurityScope}
10903
+ * @throws {InsufficientPermissions}
10904
+ * @throws {TooManyRequests}
10905
+ */
10906
+ export declare function listAssetDocuments({ asset_container, asset_id, }: {
10907
+ asset_container: AssetContainer;
10908
+ asset_id: AssetId;
10909
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<Array<AssetDocumentSummary>>;
10910
+ /**
10911
+ * The document a tool keeps of the asset, as it wrote it, with the asset each of its references stands for.
10912
+ * @throws {InvalidParameter}
10913
+ * @throws {MissingAuthorizationHeader}
10914
+ * @throws {InvalidApiKey}
10915
+ * @throws {Unauthorized}
10916
+ * @throws {InvalidAuthorization}
10917
+ * @throws {InsufficientSecurityScope}
10918
+ * @throws {InsufficientPermissions}
10919
+ * @throws {TooManyRequests}
10920
+ */
10921
+ export declare function getAssetDocument({ asset_container, asset_id, tool_id, }: {
10922
+ asset_container: AssetContainer;
10923
+ asset_id: AssetId;
10924
+ tool_id: ToolId;
10925
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
10926
+ /**
10927
+ * Creates or replaces the document a tool keeps of the asset, in a format of its own, which names the assets it uses
10928
+ * by references of its own, with the asset each stands for (`dependencies`): each must exist, be within the asset's
10929
+ * environment or shared with it, and be readable by the caller. They cannot be deleted while the document names
10930
+ * them, though they are neither dependencies of the asset, which its description alone gives, nor references.
10931
+ * Nothing is written when one is refused. A copy of the asset takes the document as it is, its references standing
10932
+ * for the copies of the assets duplicated with it.
10933
+ * @throws {InvalidParameter}
10934
+ * @throws {MissingAuthorizationHeader}
10935
+ * @throws {InvalidApiKey}
10936
+ * @throws {Unauthorized}
10937
+ * @throws {InvalidAuthorization}
10938
+ * @throws {InsufficientSecurityScope}
10939
+ * @throws {InsufficientPermissions}
10940
+ * @throws {TooManyRequests}
10941
+ */
10942
+ export declare function putAssetDocument({ asset_container, asset_id, tool_id, dependencies, document, }: {
10943
+ asset_container: AssetContainer;
10944
+ asset_id: AssetId;
10945
+ tool_id: ToolId;
10946
+ /** The asset each reference of the document stands for */
10947
+ dependencies: {
10948
+ /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
10949
+ [_additionalproperties_: string]: string;
10950
+ };
10951
+ /** The tool's document, as it wrote it, holding no asset id but its own references */
10952
+ document: {
10953
+ [_additionalproperties_: string]: any;
10954
+ };
10955
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
10956
+ /**
10957
+ * Deletes the document a tool keeps of the asset, and releases the assets it used for it. Deleting it again, or one
10958
+ * never written, answers the same.
10959
+ * @throws {InvalidParameter}
10960
+ * @throws {MissingAuthorizationHeader}
10961
+ * @throws {InvalidApiKey}
10962
+ * @throws {Unauthorized}
10963
+ * @throws {InvalidAuthorization}
10964
+ * @throws {InsufficientSecurityScope}
10965
+ * @throws {InsufficientPermissions}
10966
+ * @throws {TooManyRequests}
10967
+ */
10968
+ export declare function deleteAssetDocument({ asset_container, asset_id, tool_id, }: {
10969
+ asset_container: AssetContainer;
10970
+ asset_id: AssetId;
10971
+ tool_id: ToolId;
10972
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, any, {}, any>>;
10774
10973
  /**
10775
10974
  * Gets the edit history of the specified asset: the distinct `contributors` (so a consumer can resolve them to display names) and the chronological `timeline` of modifications.
10776
10975
  * @throws {InvalidParameter}