@3dverse/api 0.16.0 → 0.18.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,10 @@ 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
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
974
+ builtWith?: string;
975
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
976
+ debugPayloadSize?: number;
901
977
  functions: {
902
978
  [function_name: string]: {
903
979
  [_additionalproperties_: string]: any;
@@ -907,6 +983,8 @@ export type AssetCreatableWithType = {
907
983
  moduleDependencies?: Array<string>;
908
984
  /** Name of the asset */
909
985
  name: string;
986
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
987
+ payloadSize?: number;
910
988
  /** Unique identifier for the asset */
911
989
  uuid: string;
912
990
  };
@@ -1354,8 +1432,8 @@ export type AssetCreatableWithType = {
1354
1432
  };
1355
1433
  /** Categories */
1356
1434
  categories?: Array<string>;
1357
- /** Parameter default value */
1358
- default?: number | boolean | Array<number>;
1435
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1436
+ default?: number | boolean | Array<number> | string;
1359
1437
  /** Description of the parameter, shown by tools. Not read by the engine */
1360
1438
  description?: string;
1361
1439
  /** 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 +1588,8 @@ export type AssetCreatableWithType = {
1510
1588
  };
1511
1589
  /** Categories */
1512
1590
  categories?: Array<string>;
1513
- /** Parameter default value */
1514
- default?: number | boolean | Array<number>;
1591
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1592
+ default?: number | boolean | Array<number> | string;
1515
1593
  /** Description of the parameter, shown by tools. Not read by the engine */
1516
1594
  description?: string;
1517
1595
  /** 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 +1676,8 @@ export type AssetCreatableWithType = {
1598
1676
  };
1599
1677
  /** Categories */
1600
1678
  categories?: Array<string>;
1601
- /** Parameter default value */
1602
- default?: number | boolean | Array<number>;
1679
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
1680
+ default?: number | boolean | Array<number> | string;
1603
1681
  /** Description of the parameter, shown by tools. Not read by the engine */
1604
1682
  description?: string;
1605
1683
  /** 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 +2043,10 @@ export type AssetCreationFromDescription = ({
1965
2043
  } | {
1966
2044
  /** Source code from a git repository that could be used in a shader, a script or in an algorithm */
1967
2045
  asset_description: {
2046
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
2047
+ builtWith?: string;
2048
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
2049
+ debugPayloadSize?: number;
1968
2050
  functions: {
1969
2051
  [function_name: string]: {
1970
2052
  [_additionalproperties_: string]: any;
@@ -1974,6 +2056,8 @@ export type AssetCreationFromDescription = ({
1974
2056
  moduleDependencies?: Array<string>;
1975
2057
  /** Name of the asset */
1976
2058
  name: string;
2059
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
2060
+ payloadSize?: number;
1977
2061
  /** Unique identifier for the asset */
1978
2062
  uuid: string;
1979
2063
  };
@@ -2421,8 +2505,8 @@ export type AssetCreationFromDescription = ({
2421
2505
  };
2422
2506
  /** Categories */
2423
2507
  categories?: Array<string>;
2424
- /** Parameter default value */
2425
- default?: number | boolean | Array<number>;
2508
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2509
+ default?: number | boolean | Array<number> | string;
2426
2510
  /** Description of the parameter, shown by tools. Not read by the engine */
2427
2511
  description?: string;
2428
2512
  /** 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 +2661,8 @@ export type AssetCreationFromDescription = ({
2577
2661
  };
2578
2662
  /** Categories */
2579
2663
  categories?: Array<string>;
2580
- /** Parameter default value */
2581
- default?: number | boolean | Array<number>;
2664
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2665
+ default?: number | boolean | Array<number> | string;
2582
2666
  /** Description of the parameter, shown by tools. Not read by the engine */
2583
2667
  description?: string;
2584
2668
  /** 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 +2749,8 @@ export type AssetCreationFromDescription = ({
2665
2749
  };
2666
2750
  /** Categories */
2667
2751
  categories?: Array<string>;
2668
- /** Parameter default value */
2669
- default?: number | boolean | Array<number>;
2752
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
2753
+ default?: number | boolean | Array<number> | string;
2670
2754
  /** Description of the parameter, shown by tools. Not read by the engine */
2671
2755
  description?: string;
2672
2756
  /** 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 +3222,8 @@ export type EnvironmentAssetListFilters = {
3138
3222
  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
3223
  /** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
3140
3224
  export type AssetMetaChange = {
3225
+ kind?: 'slang' | 'glsl' | null;
3226
+ } | {
3141
3227
  kind?: 'statechart' | 'coroutine' | 'custom' | null;
3142
3228
  } | {
3143
3229
  kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph' | null;
@@ -3224,6 +3310,9 @@ export type AssetDetails = {
3224
3310
  library_id?: string;
3225
3311
  /** 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
3312
  meta: {
3313
+ /** What the asset is, which tells the tool opening it */
3314
+ kind?: 'slang' | 'glsl';
3315
+ } | {
3227
3316
  /** What the asset is, which tells the tool opening it */
3228
3317
  kind?: 'statechart' | 'coroutine' | 'custom';
3229
3318
  } | {
@@ -3591,6 +3680,10 @@ export type AssetDescription = {
3591
3680
  /** Unique identifier for the asset */
3592
3681
  uuid: string;
3593
3682
  } | {
3683
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
3684
+ builtWith?: string;
3685
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
3686
+ debugPayloadSize?: number;
3594
3687
  functions: {
3595
3688
  [function_name: string]: {
3596
3689
  [_additionalproperties_: string]: any;
@@ -3600,6 +3693,8 @@ export type AssetDescription = {
3600
3693
  moduleDependencies?: Array<string>;
3601
3694
  /** Name of the asset */
3602
3695
  name: string;
3696
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
3697
+ payloadSize?: number;
3603
3698
  /** Unique identifier for the asset */
3604
3699
  uuid: string;
3605
3700
  } | {
@@ -4125,8 +4220,8 @@ export type AssetDescription = {
4125
4220
  };
4126
4221
  /** Categories */
4127
4222
  categories?: Array<string>;
4128
- /** Parameter default value */
4129
- default?: number | boolean | Array<number>;
4223
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4224
+ default?: number | boolean | Array<number> | string;
4130
4225
  /** Description of the parameter, shown by tools. Not read by the engine */
4131
4226
  description?: string;
4132
4227
  /** 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 +4364,8 @@ export type AssetDescription = {
4269
4364
  };
4270
4365
  /** Categories */
4271
4366
  categories?: Array<string>;
4272
- /** Parameter default value */
4273
- default?: number | boolean | Array<number>;
4367
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4368
+ default?: number | boolean | Array<number> | string;
4274
4369
  /** Description of the parameter, shown by tools. Not read by the engine */
4275
4370
  description?: string;
4276
4371
  /** 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 +4452,8 @@ export type AssetDescription = {
4357
4452
  };
4358
4453
  /** Categories */
4359
4454
  categories?: Array<string>;
4360
- /** Parameter default value */
4361
- default?: number | boolean | Array<number>;
4455
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4456
+ default?: number | boolean | Array<number> | string;
4362
4457
  /** Description of the parameter, shown by tools. Not read by the engine */
4363
4458
  description?: string;
4364
4459
  /** 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 +4525,8 @@ export type AssetDescription = {
4430
4525
  };
4431
4526
  /** Categories */
4432
4527
  categories?: Array<string>;
4433
- /** Parameter default value */
4434
- default?: number | boolean | Array<number>;
4528
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
4529
+ default?: number | boolean | Array<number> | string;
4435
4530
  /** Description of the parameter, shown by tools. Not read by the engine */
4436
4531
  description?: string;
4437
4532
  /** 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 +4939,10 @@ export type EditableAssetDescription = {
4844
4939
  /** Unique identifier for the asset */
4845
4940
  uuid: string;
4846
4941
  } | {
4942
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
4943
+ builtWith?: string;
4944
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
4945
+ debugPayloadSize?: number;
4847
4946
  functions: {
4848
4947
  [function_name: string]: {
4849
4948
  [_additionalproperties_: string]: any;
@@ -4853,6 +4952,8 @@ export type EditableAssetDescription = {
4853
4952
  moduleDependencies?: Array<string>;
4854
4953
  /** Name of the asset */
4855
4954
  name: string;
4955
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
4956
+ payloadSize?: number;
4856
4957
  /** Unique identifier for the asset */
4857
4958
  uuid: string;
4858
4959
  } | {
@@ -5296,8 +5397,8 @@ export type EditableAssetDescription = {
5296
5397
  };
5297
5398
  /** Categories */
5298
5399
  categories?: Array<string>;
5299
- /** Parameter default value */
5300
- default?: number | boolean | Array<number>;
5400
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5401
+ default?: number | boolean | Array<number> | string;
5301
5402
  /** Description of the parameter, shown by tools. Not read by the engine */
5302
5403
  description?: string;
5303
5404
  /** 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 +5541,8 @@ export type EditableAssetDescription = {
5440
5541
  };
5441
5542
  /** Categories */
5442
5543
  categories?: Array<string>;
5443
- /** Parameter default value */
5444
- default?: number | boolean | Array<number>;
5544
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5545
+ default?: number | boolean | Array<number> | string;
5445
5546
  /** Description of the parameter, shown by tools. Not read by the engine */
5446
5547
  description?: string;
5447
5548
  /** 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 +5629,8 @@ export type EditableAssetDescription = {
5528
5629
  };
5529
5630
  /** Categories */
5530
5631
  categories?: Array<string>;
5531
- /** Parameter default value */
5532
- default?: number | boolean | Array<number>;
5632
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
5633
+ default?: number | boolean | Array<number> | string;
5533
5634
  /** Description of the parameter, shown by tools. Not read by the engine */
5534
5635
  description?: string;
5535
5636
  /** 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,21 +5726,49 @@ export type EditableAssetDescription = {
5625
5726
  /** Unique identifier for the asset */
5626
5727
  uuid: string;
5627
5728
  };
5628
- export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5729
+ export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5629
5730
  export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
5731
+ /** A tool keeping a document of an asset, and when it last wrote it */
5732
+ export type AssetDocumentSummary = {
5733
+ /** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
5734
+ tool_id: string;
5735
+ updated_at: string;
5736
+ };
5737
+ /** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
5738
+ export type ToolId = string;
5739
+ /** 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. */
5740
+ export type AssetDocument = {
5741
+ /** The asset each reference of the document stands for */
5742
+ dependencies: {
5743
+ /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
5744
+ [_additionalproperties_: string]: string;
5745
+ };
5746
+ /** The tool's document, as it wrote it, holding no asset id but its own references */
5747
+ document: {
5748
+ [_additionalproperties_: string]: any;
5749
+ };
5750
+ };
5630
5751
  export type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
5631
5752
  /** 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
5753
  export type AssetCode = {
5633
- /** The C++ code, built against the asset type's precompiled header, which it needs not include */
5754
+ /** The code: C++, built against the asset type's precompiled header, which it needs not include, or a shader's Slang, one file importing modules */
5634
5755
  code: string;
5635
- /** Whether to build its debug library too, with its symbols, for the engine's developers */
5756
+ /** Whether to build its debug library too, with its symbols, or a shader's debug payload, for the engine's developers */
5636
5757
  debug?: boolean;
5758
+ /** The modules a shader imports, required for a shader, refused for another type: those they import come with them, and it can import nothing else */
5759
+ modules?: Array<string>;
5760
+ /** The shader context its push constant holds, required for a shader, refused for another type */
5761
+ shader_context?: string;
5637
5762
  };
5638
5763
  export type AssetCodeInput = {
5639
- /** The C++ code, built against the asset type's precompiled header, which it needs not include */
5764
+ /** The code: C++, built against the asset type's precompiled header, which it needs not include, or a shader's Slang, one file importing modules */
5640
5765
  code: string;
5641
- /** Whether to build its debug library too, with its symbols, for the engine's developers */
5766
+ /** Whether to build its debug library too, with its symbols, or a shader's debug payload, for the engine's developers */
5642
5767
  debug?: boolean;
5768
+ /** The modules a shader imports, required for a shader, refused for another type: those they import come with them, and it can import nothing else */
5769
+ modules?: Array<string>;
5770
+ /** The shader context its push constant holds, required for a shader, refused for another type */
5771
+ shader_context?: string;
5643
5772
  };
5644
5773
  /** The build of an asset's code, which replaced the asset's. */
5645
5774
  export type AssetCodeBuild = {
@@ -7523,6 +7652,10 @@ export type AssetCreationFromDescriptionInput = ({
7523
7652
  } | {
7524
7653
  /** Source code from a git repository that could be used in a shader, a script or in an algorithm */
7525
7654
  asset_description: {
7655
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
7656
+ builtWith?: string;
7657
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
7658
+ debugPayloadSize?: number;
7526
7659
  functions: {
7527
7660
  [function_name: string]: {
7528
7661
  [_additionalproperties_: string]: any;
@@ -7532,6 +7665,8 @@ export type AssetCreationFromDescriptionInput = ({
7532
7665
  moduleDependencies?: Array<string>;
7533
7666
  /** Name of the asset */
7534
7667
  name: string;
7668
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
7669
+ payloadSize?: number;
7535
7670
  };
7536
7671
  asset_type: 'module';
7537
7672
  } | {
@@ -7977,8 +8112,8 @@ export type AssetCreationFromDescriptionInput = ({
7977
8112
  };
7978
8113
  /** Categories */
7979
8114
  categories?: Array<string>;
7980
- /** Parameter default value */
7981
- default?: number | boolean | Array<number>;
8115
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8116
+ default?: number | boolean | Array<number> | string;
7982
8117
  /** Description of the parameter, shown by tools. Not read by the engine */
7983
8118
  description?: string;
7984
8119
  /** 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 +8262,8 @@ export type AssetCreationFromDescriptionInput = ({
8127
8262
  };
8128
8263
  /** Categories */
8129
8264
  categories?: Array<string>;
8130
- /** Parameter default value */
8131
- default?: number | boolean | Array<number>;
8265
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8266
+ default?: number | boolean | Array<number> | string;
8132
8267
  /** Description of the parameter, shown by tools. Not read by the engine */
8133
8268
  description?: string;
8134
8269
  /** 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 +8350,8 @@ export type AssetCreationFromDescriptionInput = ({
8215
8350
  };
8216
8351
  /** Categories */
8217
8352
  categories?: Array<string>;
8218
- /** Parameter default value */
8219
- default?: number | boolean | Array<number>;
8353
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
8354
+ default?: number | boolean | Array<number> | string;
8220
8355
  /** Description of the parameter, shown by tools. Not read by the engine */
8221
8356
  description?: string;
8222
8357
  /** 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 +8672,10 @@ export type EditableAssetDescriptionInput = {
8537
8672
  /** The implemented shader */
8538
8673
  shaderRef: string;
8539
8674
  } | {
8675
+ /** What built its payload, a compiler and its flags: a build stores the module again when this differs */
8676
+ builtWith?: string;
8677
+ /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
8678
+ debugPayloadSize?: number;
8540
8679
  functions: {
8541
8680
  [function_name: string]: {
8542
8681
  [_additionalproperties_: string]: any;
@@ -8546,6 +8685,8 @@ export type EditableAssetDescriptionInput = {
8546
8685
  moduleDependencies?: Array<string>;
8547
8686
  /** Name of the asset */
8548
8687
  name: string;
8688
+ /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
8689
+ payloadSize?: number;
8549
8690
  } | {
8550
8691
  /** All blend states */
8551
8692
  blendStateDescriptions?: Array<{
@@ -8987,8 +9128,8 @@ export type EditableAssetDescriptionInput = {
8987
9128
  };
8988
9129
  /** Categories */
8989
9130
  categories?: Array<string>;
8990
- /** Parameter default value */
8991
- default?: number | boolean | Array<number>;
9131
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9132
+ default?: number | boolean | Array<number> | string;
8992
9133
  /** Description of the parameter, shown by tools. Not read by the engine */
8993
9134
  description?: string;
8994
9135
  /** 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 +9266,8 @@ export type EditableAssetDescriptionInput = {
9125
9266
  };
9126
9267
  /** Categories */
9127
9268
  categories?: Array<string>;
9128
- /** Parameter default value */
9129
- default?: number | boolean | Array<number>;
9269
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9270
+ default?: number | boolean | Array<number> | string;
9130
9271
  /** Description of the parameter, shown by tools. Not read by the engine */
9131
9272
  description?: string;
9132
9273
  /** 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 +9354,8 @@ export type EditableAssetDescriptionInput = {
9213
9354
  };
9214
9355
  /** Categories */
9215
9356
  categories?: Array<string>;
9216
- /** Parameter default value */
9217
- default?: number | boolean | Array<number>;
9357
+ /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
9358
+ default?: number | boolean | Array<number> | string;
9218
9359
  /** Description of the parameter, shown by tools. Not read by the engine */
9219
9360
  description?: string;
9220
9361
  /** 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 +10912,84 @@ export declare function updateAssetGraph({ asset_container_with_graph, asset_id,
10771
10912
  }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, {
10772
10913
  [_additionalproperties_: string]: any;
10773
10914
  }, {}, any>>;
10915
+ /**
10916
+ * The tools keeping a document of the asset, by id, each with when it last wrote it.
10917
+ * @throws {InvalidParameter}
10918
+ * @throws {MissingAuthorizationHeader}
10919
+ * @throws {InvalidApiKey}
10920
+ * @throws {Unauthorized}
10921
+ * @throws {InvalidAuthorization}
10922
+ * @throws {InsufficientSecurityScope}
10923
+ * @throws {InsufficientPermissions}
10924
+ * @throws {TooManyRequests}
10925
+ */
10926
+ export declare function listAssetDocuments({ asset_container, asset_id, }: {
10927
+ asset_container: AssetContainer;
10928
+ asset_id: AssetId;
10929
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<Array<AssetDocumentSummary>>;
10930
+ /**
10931
+ * The document a tool keeps of the asset, as it wrote it, with the asset each of its references stands for.
10932
+ * @throws {InvalidParameter}
10933
+ * @throws {MissingAuthorizationHeader}
10934
+ * @throws {InvalidApiKey}
10935
+ * @throws {Unauthorized}
10936
+ * @throws {InvalidAuthorization}
10937
+ * @throws {InsufficientSecurityScope}
10938
+ * @throws {InsufficientPermissions}
10939
+ * @throws {TooManyRequests}
10940
+ */
10941
+ export declare function getAssetDocument({ asset_container, asset_id, tool_id, }: {
10942
+ asset_container: AssetContainer;
10943
+ asset_id: AssetId;
10944
+ tool_id: ToolId;
10945
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
10946
+ /**
10947
+ * Creates or replaces the document a tool keeps of the asset, in a format of its own, which names the assets it uses
10948
+ * by references of its own, with the asset each stands for (`dependencies`): each must exist, be within the asset's
10949
+ * environment or shared with it, and be readable by the caller. They cannot be deleted while the document names
10950
+ * them, though they are neither dependencies of the asset, which its description alone gives, nor references.
10951
+ * Nothing is written when one is refused. A copy of the asset takes the document as it is, its references standing
10952
+ * for the copies of the assets duplicated with it.
10953
+ * @throws {InvalidParameter}
10954
+ * @throws {MissingAuthorizationHeader}
10955
+ * @throws {InvalidApiKey}
10956
+ * @throws {Unauthorized}
10957
+ * @throws {InvalidAuthorization}
10958
+ * @throws {InsufficientSecurityScope}
10959
+ * @throws {InsufficientPermissions}
10960
+ * @throws {TooManyRequests}
10961
+ */
10962
+ export declare function putAssetDocument({ asset_container, asset_id, tool_id, dependencies, document, }: {
10963
+ asset_container: AssetContainer;
10964
+ asset_id: AssetId;
10965
+ tool_id: ToolId;
10966
+ /** The asset each reference of the document stands for */
10967
+ dependencies: {
10968
+ /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
10969
+ [_additionalproperties_: string]: string;
10970
+ };
10971
+ /** The tool's document, as it wrote it, holding no asset id but its own references */
10972
+ document: {
10973
+ [_additionalproperties_: string]: any;
10974
+ };
10975
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
10976
+ /**
10977
+ * Deletes the document a tool keeps of the asset, and releases the assets it used for it. Deleting it again, or one
10978
+ * never written, answers the same.
10979
+ * @throws {InvalidParameter}
10980
+ * @throws {MissingAuthorizationHeader}
10981
+ * @throws {InvalidApiKey}
10982
+ * @throws {Unauthorized}
10983
+ * @throws {InvalidAuthorization}
10984
+ * @throws {InsufficientSecurityScope}
10985
+ * @throws {InsufficientPermissions}
10986
+ * @throws {TooManyRequests}
10987
+ */
10988
+ export declare function deleteAssetDocument({ asset_container, asset_id, tool_id, }: {
10989
+ asset_container: AssetContainer;
10990
+ asset_id: AssetId;
10991
+ tool_id: ToolId;
10992
+ }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, any, {}, any>>;
10774
10993
  /**
10775
10994
  * 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
10995
  * @throws {InvalidParameter}
@@ -10819,10 +11038,13 @@ export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
10819
11038
  asset_id: AssetId;
10820
11039
  }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<string>;
10821
11040
  /**
10822
- * Replaces the C++ code of a script, animation sequence or animation graph, once asset-compiler built it: code which
10823
- * fails to build replaces nothing, and answers its diagnostics. A script's description is read from its code, and the
10824
- * answer tells whether it changed; the caller must be able to read the assets it references. The build takes a few
10825
- * seconds.
11041
+ * Replaces the code of a script, animation sequence, animation graph or shader, once asset-compiler built it: code
11042
+ * which fails to build replaces nothing, and answers its diagnostics. A script, animation sequence or animation graph
11043
+ * is C++. A script's description is read from its code, and the answer tells whether it changed; the caller must be
11044
+ * able to read the assets it references. A shader is one file of Slang, imported modules by name, naming no other file;
11045
+ * it requires `modules`, those it imports, which come with those they import, and `shader_context`, the context its
11046
+ * push constant holds, all of which the caller must be able to read. Its description is read from its code. The build
11047
+ * takes a few seconds.
10826
11048
  * @throws {InvalidParameter}
10827
11049
  * @throws {MissingAuthorizationHeader}
10828
11050
  * @throws {InvalidApiKey}
@@ -10832,13 +11054,17 @@ export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
10832
11054
  * @throws {InsufficientPermissions}
10833
11055
  * @throws {TooManyRequests}
10834
11056
  */
10835
- export declare function replaceAssetCode({ asset_container_with_code, asset_id, code, debug, }: {
11057
+ export declare function replaceAssetCode({ asset_container_with_code, asset_id, code, debug, modules, shader_context, }: {
10836
11058
  asset_container_with_code: AssetContainerWithCode;
10837
11059
  asset_id: AssetId;
10838
- /** The C++ code, built against the asset type's precompiled header, which it needs not include */
11060
+ /** The code: C++, built against the asset type's precompiled header, which it needs not include, or a shader's Slang, one file importing modules */
10839
11061
  code: string;
10840
- /** Whether to build its debug library too, with its symbols, for the engine's developers */
11062
+ /** Whether to build its debug library too, with its symbols, or a shader's debug payload, for the engine's developers */
10841
11063
  debug?: boolean;
11064
+ /** The modules a shader imports, required for a shader, refused for another type: those they import come with them, and it can import nothing else */
11065
+ modules?: Array<string>;
11066
+ /** The shader context its push constant holds, required for a shader, refused for another type */
11067
+ shader_context?: string;
10842
11068
  }, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetCodeBuild>;
10843
11069
  /**
10844
11070
  * Gets the asset thumbnail from the specified asset.