@uniformdev/mesh-sdk 19.80.0 → 19.80.1-alpha.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +39 -76
- package/dist/index.d.ts +39 -76
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import {
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
|
+
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
4
5
|
import { Emitter } from 'mitt';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -102,6 +103,14 @@ interface paths$1 {
|
|
|
102
103
|
singleAssetArchetypeId: string;
|
|
103
104
|
};
|
|
104
105
|
};
|
|
106
|
+
unstable_assetLibrary?: {
|
|
107
|
+
url: string;
|
|
108
|
+
dynamicAssets?: {
|
|
109
|
+
dataConnectorId: string;
|
|
110
|
+
assetsListArchetypeId: string;
|
|
111
|
+
singleAssetArchetypeId: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
105
114
|
ai?: {
|
|
106
115
|
generateUrl: string;
|
|
107
116
|
metadataUrl?: string;
|
|
@@ -243,6 +252,14 @@ interface paths$1 {
|
|
|
243
252
|
singleAssetArchetypeId: string;
|
|
244
253
|
};
|
|
245
254
|
};
|
|
255
|
+
unstable_assetLibrary?: {
|
|
256
|
+
url: string;
|
|
257
|
+
dynamicAssets?: {
|
|
258
|
+
dataConnectorId: string;
|
|
259
|
+
assetsListArchetypeId: string;
|
|
260
|
+
singleAssetArchetypeId: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
246
263
|
ai?: {
|
|
247
264
|
generateUrl: string;
|
|
248
265
|
metadataUrl?: string;
|
|
@@ -383,6 +400,14 @@ interface paths$1 {
|
|
|
383
400
|
singleAssetArchetypeId: string;
|
|
384
401
|
};
|
|
385
402
|
};
|
|
403
|
+
unstable_assetLibrary?: {
|
|
404
|
+
url: string;
|
|
405
|
+
dynamicAssets?: {
|
|
406
|
+
dataConnectorId: string;
|
|
407
|
+
assetsListArchetypeId: string;
|
|
408
|
+
singleAssetArchetypeId: string;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
386
411
|
ai?: {
|
|
387
412
|
generateUrl: string;
|
|
388
413
|
metadataUrl?: string;
|
|
@@ -772,6 +797,14 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
772
797
|
singleAssetArchetypeId: string;
|
|
773
798
|
} | undefined;
|
|
774
799
|
} | undefined;
|
|
800
|
+
unstable_assetLibrary?: {
|
|
801
|
+
url: string;
|
|
802
|
+
dynamicAssets?: {
|
|
803
|
+
dataConnectorId: string;
|
|
804
|
+
assetsListArchetypeId: string;
|
|
805
|
+
singleAssetArchetypeId: string;
|
|
806
|
+
} | undefined;
|
|
807
|
+
} | undefined;
|
|
775
808
|
ai?: {
|
|
776
809
|
generateUrl: string;
|
|
777
810
|
metadataUrl?: string | undefined;
|
|
@@ -860,80 +893,6 @@ type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
860
893
|
*/
|
|
861
894
|
maxAssets?: number;
|
|
862
895
|
};
|
|
863
|
-
type AssetParamValue = AssetParamValueItem[];
|
|
864
|
-
type AssetParamValueItem = {
|
|
865
|
-
type: string;
|
|
866
|
-
_id: string;
|
|
867
|
-
/**
|
|
868
|
-
* Internal Uniform source ID or
|
|
869
|
-
* dataType ID of the global integration library
|
|
870
|
-
* which created this asset item
|
|
871
|
-
*/
|
|
872
|
-
_source?: string;
|
|
873
|
-
fields: {
|
|
874
|
-
url: {
|
|
875
|
-
type: 'text';
|
|
876
|
-
value: string;
|
|
877
|
-
};
|
|
878
|
-
id?: {
|
|
879
|
-
type: 'text';
|
|
880
|
-
value: string | undefined;
|
|
881
|
-
};
|
|
882
|
-
title?: {
|
|
883
|
-
type: 'text';
|
|
884
|
-
value: string | undefined;
|
|
885
|
-
};
|
|
886
|
-
description?: {
|
|
887
|
-
type: 'text';
|
|
888
|
-
value: string | undefined;
|
|
889
|
-
};
|
|
890
|
-
mediaType?: {
|
|
891
|
-
type: 'text';
|
|
892
|
-
value: string | undefined;
|
|
893
|
-
};
|
|
894
|
-
/**
|
|
895
|
-
* The width of the original asset
|
|
896
|
-
*
|
|
897
|
-
* Should resolve to a number but might
|
|
898
|
-
* be a string with a pointer reference
|
|
899
|
-
*/
|
|
900
|
-
width?: {
|
|
901
|
-
type: 'number';
|
|
902
|
-
value: number | string | undefined;
|
|
903
|
-
};
|
|
904
|
-
/**
|
|
905
|
-
* The height of the original asset
|
|
906
|
-
*
|
|
907
|
-
* Should resolve to a number but might
|
|
908
|
-
* be a string with a pointer reference
|
|
909
|
-
*/
|
|
910
|
-
height?: {
|
|
911
|
-
type: 'number';
|
|
912
|
-
value: number | string | undefined;
|
|
913
|
-
};
|
|
914
|
-
/**
|
|
915
|
-
* The size in bytes of the original asset
|
|
916
|
-
*
|
|
917
|
-
* Should resolve to a number but might
|
|
918
|
-
* be a string with a pointer reference
|
|
919
|
-
*/
|
|
920
|
-
size?: {
|
|
921
|
-
type: 'number';
|
|
922
|
-
value: number | string | undefined;
|
|
923
|
-
};
|
|
924
|
-
/**
|
|
925
|
-
* Any key/value properties which the source
|
|
926
|
-
* wants to attach to the asset data
|
|
927
|
-
*/
|
|
928
|
-
custom?: {
|
|
929
|
-
type: string;
|
|
930
|
-
value: Record<string, unknown>;
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
_overrides?: {
|
|
934
|
-
fields: ComponentOverride['parameters'];
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
896
|
type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
|
|
938
897
|
type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
|
|
939
898
|
|
|
@@ -1251,9 +1210,13 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1251
1210
|
projectId: string;
|
|
1252
1211
|
prompt: string;
|
|
1253
1212
|
promptMetadata: Record<string, unknown>;
|
|
1213
|
+
/** Useful to differentiate AI Generate UI between text and image */
|
|
1214
|
+
promptOutputType: 'text' | 'image';
|
|
1254
1215
|
};
|
|
1255
1216
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1256
1217
|
settings: TIntegrationConfiguration;
|
|
1218
|
+
/** Useful to differentiate metadata settings between text and image generation */
|
|
1219
|
+
promptOutputType: 'text' | 'image';
|
|
1257
1220
|
};
|
|
1258
1221
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1259
1222
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
@@ -1364,4 +1327,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1364
1327
|
autoResizingDisabled?: boolean;
|
|
1365
1328
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1366
1329
|
|
|
1367
|
-
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata,
|
|
1330
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CloseDialogMessage, type CloseLocationDialogOptions, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type ValidationResult, initializeUniformMeshSDK };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import {
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
|
+
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
4
5
|
import { Emitter } from 'mitt';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -102,6 +103,14 @@ interface paths$1 {
|
|
|
102
103
|
singleAssetArchetypeId: string;
|
|
103
104
|
};
|
|
104
105
|
};
|
|
106
|
+
unstable_assetLibrary?: {
|
|
107
|
+
url: string;
|
|
108
|
+
dynamicAssets?: {
|
|
109
|
+
dataConnectorId: string;
|
|
110
|
+
assetsListArchetypeId: string;
|
|
111
|
+
singleAssetArchetypeId: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
105
114
|
ai?: {
|
|
106
115
|
generateUrl: string;
|
|
107
116
|
metadataUrl?: string;
|
|
@@ -243,6 +252,14 @@ interface paths$1 {
|
|
|
243
252
|
singleAssetArchetypeId: string;
|
|
244
253
|
};
|
|
245
254
|
};
|
|
255
|
+
unstable_assetLibrary?: {
|
|
256
|
+
url: string;
|
|
257
|
+
dynamicAssets?: {
|
|
258
|
+
dataConnectorId: string;
|
|
259
|
+
assetsListArchetypeId: string;
|
|
260
|
+
singleAssetArchetypeId: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
246
263
|
ai?: {
|
|
247
264
|
generateUrl: string;
|
|
248
265
|
metadataUrl?: string;
|
|
@@ -383,6 +400,14 @@ interface paths$1 {
|
|
|
383
400
|
singleAssetArchetypeId: string;
|
|
384
401
|
};
|
|
385
402
|
};
|
|
403
|
+
unstable_assetLibrary?: {
|
|
404
|
+
url: string;
|
|
405
|
+
dynamicAssets?: {
|
|
406
|
+
dataConnectorId: string;
|
|
407
|
+
assetsListArchetypeId: string;
|
|
408
|
+
singleAssetArchetypeId: string;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
386
411
|
ai?: {
|
|
387
412
|
generateUrl: string;
|
|
388
413
|
metadataUrl?: string;
|
|
@@ -772,6 +797,14 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
772
797
|
singleAssetArchetypeId: string;
|
|
773
798
|
} | undefined;
|
|
774
799
|
} | undefined;
|
|
800
|
+
unstable_assetLibrary?: {
|
|
801
|
+
url: string;
|
|
802
|
+
dynamicAssets?: {
|
|
803
|
+
dataConnectorId: string;
|
|
804
|
+
assetsListArchetypeId: string;
|
|
805
|
+
singleAssetArchetypeId: string;
|
|
806
|
+
} | undefined;
|
|
807
|
+
} | undefined;
|
|
775
808
|
ai?: {
|
|
776
809
|
generateUrl: string;
|
|
777
810
|
metadataUrl?: string | undefined;
|
|
@@ -860,80 +893,6 @@ type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
860
893
|
*/
|
|
861
894
|
maxAssets?: number;
|
|
862
895
|
};
|
|
863
|
-
type AssetParamValue = AssetParamValueItem[];
|
|
864
|
-
type AssetParamValueItem = {
|
|
865
|
-
type: string;
|
|
866
|
-
_id: string;
|
|
867
|
-
/**
|
|
868
|
-
* Internal Uniform source ID or
|
|
869
|
-
* dataType ID of the global integration library
|
|
870
|
-
* which created this asset item
|
|
871
|
-
*/
|
|
872
|
-
_source?: string;
|
|
873
|
-
fields: {
|
|
874
|
-
url: {
|
|
875
|
-
type: 'text';
|
|
876
|
-
value: string;
|
|
877
|
-
};
|
|
878
|
-
id?: {
|
|
879
|
-
type: 'text';
|
|
880
|
-
value: string | undefined;
|
|
881
|
-
};
|
|
882
|
-
title?: {
|
|
883
|
-
type: 'text';
|
|
884
|
-
value: string | undefined;
|
|
885
|
-
};
|
|
886
|
-
description?: {
|
|
887
|
-
type: 'text';
|
|
888
|
-
value: string | undefined;
|
|
889
|
-
};
|
|
890
|
-
mediaType?: {
|
|
891
|
-
type: 'text';
|
|
892
|
-
value: string | undefined;
|
|
893
|
-
};
|
|
894
|
-
/**
|
|
895
|
-
* The width of the original asset
|
|
896
|
-
*
|
|
897
|
-
* Should resolve to a number but might
|
|
898
|
-
* be a string with a pointer reference
|
|
899
|
-
*/
|
|
900
|
-
width?: {
|
|
901
|
-
type: 'number';
|
|
902
|
-
value: number | string | undefined;
|
|
903
|
-
};
|
|
904
|
-
/**
|
|
905
|
-
* The height of the original asset
|
|
906
|
-
*
|
|
907
|
-
* Should resolve to a number but might
|
|
908
|
-
* be a string with a pointer reference
|
|
909
|
-
*/
|
|
910
|
-
height?: {
|
|
911
|
-
type: 'number';
|
|
912
|
-
value: number | string | undefined;
|
|
913
|
-
};
|
|
914
|
-
/**
|
|
915
|
-
* The size in bytes of the original asset
|
|
916
|
-
*
|
|
917
|
-
* Should resolve to a number but might
|
|
918
|
-
* be a string with a pointer reference
|
|
919
|
-
*/
|
|
920
|
-
size?: {
|
|
921
|
-
type: 'number';
|
|
922
|
-
value: number | string | undefined;
|
|
923
|
-
};
|
|
924
|
-
/**
|
|
925
|
-
* Any key/value properties which the source
|
|
926
|
-
* wants to attach to the asset data
|
|
927
|
-
*/
|
|
928
|
-
custom?: {
|
|
929
|
-
type: string;
|
|
930
|
-
value: Record<string, unknown>;
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
_overrides?: {
|
|
934
|
-
fields: ComponentOverride['parameters'];
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
896
|
type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
|
|
938
897
|
type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
|
|
939
898
|
|
|
@@ -1251,9 +1210,13 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1251
1210
|
projectId: string;
|
|
1252
1211
|
prompt: string;
|
|
1253
1212
|
promptMetadata: Record<string, unknown>;
|
|
1213
|
+
/** Useful to differentiate AI Generate UI between text and image */
|
|
1214
|
+
promptOutputType: 'text' | 'image';
|
|
1254
1215
|
};
|
|
1255
1216
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1256
1217
|
settings: TIntegrationConfiguration;
|
|
1218
|
+
/** Useful to differentiate metadata settings between text and image generation */
|
|
1219
|
+
promptOutputType: 'text' | 'image';
|
|
1257
1220
|
};
|
|
1258
1221
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1259
1222
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
@@ -1364,4 +1327,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1364
1327
|
autoResizingDisabled?: boolean;
|
|
1365
1328
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1366
1329
|
|
|
1367
|
-
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata,
|
|
1330
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CloseDialogMessage, type CloseLocationDialogOptions, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type ValidationResult, initializeUniformMeshSDK };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.80.
|
|
3
|
+
"version": "19.80.1-alpha.149+7f4e45fecc",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@uniformdev/canvas": "19.80.
|
|
37
|
-
"@uniformdev/context": "19.80.
|
|
38
|
-
"@uniformdev/project-map": "19.80.
|
|
36
|
+
"@uniformdev/canvas": "19.80.1-alpha.149+7f4e45fecc",
|
|
37
|
+
"@uniformdev/context": "19.80.1-alpha.149+7f4e45fecc",
|
|
38
|
+
"@uniformdev/project-map": "19.80.1-alpha.149+7f4e45fecc",
|
|
39
39
|
"imagesloaded": "^5.0.0",
|
|
40
40
|
"mitt": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/imagesloaded": "^4.1.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7f4e45fecc013dc224fbd0a2975f6d208382b05e"
|
|
46
46
|
}
|