@uniformdev/mesh-sdk 19.76.0 → 19.77.1-alpha.47
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 +209 -26
- package/dist/index.d.ts +209 -26
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -93,8 +93,36 @@ interface paths$1 {
|
|
|
93
93
|
};
|
|
94
94
|
badgeIconUrl?: string;
|
|
95
95
|
}[];
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
assetLibrary?: {
|
|
97
|
+
assetLibraryUrl: string;
|
|
98
|
+
assetParameterUrl: string;
|
|
99
|
+
unstable_dynamicAssets?: {
|
|
100
|
+
dataConnectorId: string;
|
|
101
|
+
assetsListArchetypeId: string;
|
|
102
|
+
singleAssetArchetypeId: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
ai?: {
|
|
106
|
+
generateUrl: string;
|
|
107
|
+
metadataUrl?: string;
|
|
108
|
+
prompts?: {
|
|
109
|
+
/** Format: uuid */
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
text: string;
|
|
113
|
+
data?: {
|
|
114
|
+
arguments?: {
|
|
115
|
+
[key: string]: {
|
|
116
|
+
type: string;
|
|
117
|
+
displayName?: string | null;
|
|
118
|
+
helpText?: string | null;
|
|
119
|
+
default?: string | null;
|
|
120
|
+
};
|
|
121
|
+
} | null;
|
|
122
|
+
metadata?: unknown;
|
|
123
|
+
} | null;
|
|
124
|
+
parameterTypes: string[];
|
|
125
|
+
}[];
|
|
98
126
|
};
|
|
99
127
|
unstable_ai?: {
|
|
100
128
|
generateUrl: string;
|
|
@@ -206,8 +234,36 @@ interface paths$1 {
|
|
|
206
234
|
};
|
|
207
235
|
badgeIconUrl?: string;
|
|
208
236
|
}[];
|
|
209
|
-
|
|
210
|
-
|
|
237
|
+
assetLibrary?: {
|
|
238
|
+
assetLibraryUrl: string;
|
|
239
|
+
assetParameterUrl: string;
|
|
240
|
+
unstable_dynamicAssets?: {
|
|
241
|
+
dataConnectorId: string;
|
|
242
|
+
assetsListArchetypeId: string;
|
|
243
|
+
singleAssetArchetypeId: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
ai?: {
|
|
247
|
+
generateUrl: string;
|
|
248
|
+
metadataUrl?: string;
|
|
249
|
+
prompts?: {
|
|
250
|
+
/** Format: uuid */
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
text: string;
|
|
254
|
+
data?: {
|
|
255
|
+
arguments?: {
|
|
256
|
+
[key: string]: {
|
|
257
|
+
type: string;
|
|
258
|
+
displayName?: string | null;
|
|
259
|
+
helpText?: string | null;
|
|
260
|
+
default?: string | null;
|
|
261
|
+
};
|
|
262
|
+
} | null;
|
|
263
|
+
metadata?: unknown;
|
|
264
|
+
} | null;
|
|
265
|
+
parameterTypes: string[];
|
|
266
|
+
}[];
|
|
211
267
|
};
|
|
212
268
|
unstable_ai?: {
|
|
213
269
|
generateUrl: string;
|
|
@@ -318,8 +374,36 @@ interface paths$1 {
|
|
|
318
374
|
};
|
|
319
375
|
badgeIconUrl?: string;
|
|
320
376
|
}[];
|
|
321
|
-
|
|
322
|
-
|
|
377
|
+
assetLibrary?: {
|
|
378
|
+
assetLibraryUrl: string;
|
|
379
|
+
assetParameterUrl: string;
|
|
380
|
+
unstable_dynamicAssets?: {
|
|
381
|
+
dataConnectorId: string;
|
|
382
|
+
assetsListArchetypeId: string;
|
|
383
|
+
singleAssetArchetypeId: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
ai?: {
|
|
387
|
+
generateUrl: string;
|
|
388
|
+
metadataUrl?: string;
|
|
389
|
+
prompts?: {
|
|
390
|
+
/** Format: uuid */
|
|
391
|
+
id: string;
|
|
392
|
+
name: string;
|
|
393
|
+
text: string;
|
|
394
|
+
data?: {
|
|
395
|
+
arguments?: {
|
|
396
|
+
[key: string]: {
|
|
397
|
+
type: string;
|
|
398
|
+
displayName?: string | null;
|
|
399
|
+
helpText?: string | null;
|
|
400
|
+
default?: string | null;
|
|
401
|
+
};
|
|
402
|
+
} | null;
|
|
403
|
+
metadata?: unknown;
|
|
404
|
+
} | null;
|
|
405
|
+
parameterTypes: string[];
|
|
406
|
+
}[];
|
|
323
407
|
};
|
|
324
408
|
unstable_ai?: {
|
|
325
409
|
generateUrl: string;
|
|
@@ -679,8 +763,35 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
679
763
|
} | undefined;
|
|
680
764
|
badgeIconUrl?: string | undefined;
|
|
681
765
|
}[] | undefined;
|
|
682
|
-
|
|
683
|
-
|
|
766
|
+
assetLibrary?: {
|
|
767
|
+
assetLibraryUrl: string;
|
|
768
|
+
assetParameterUrl: string;
|
|
769
|
+
unstable_dynamicAssets?: {
|
|
770
|
+
dataConnectorId: string;
|
|
771
|
+
assetsListArchetypeId: string;
|
|
772
|
+
singleAssetArchetypeId: string;
|
|
773
|
+
} | undefined;
|
|
774
|
+
} | undefined;
|
|
775
|
+
ai?: {
|
|
776
|
+
generateUrl: string;
|
|
777
|
+
metadataUrl?: string | undefined;
|
|
778
|
+
prompts?: {
|
|
779
|
+
id: string;
|
|
780
|
+
name: string;
|
|
781
|
+
text: string;
|
|
782
|
+
data?: {
|
|
783
|
+
arguments?: {
|
|
784
|
+
[key: string]: {
|
|
785
|
+
type: string;
|
|
786
|
+
displayName?: string | null | undefined;
|
|
787
|
+
helpText?: string | null | undefined;
|
|
788
|
+
default?: string | null | undefined;
|
|
789
|
+
};
|
|
790
|
+
} | null | undefined;
|
|
791
|
+
metadata?: unknown;
|
|
792
|
+
} | null | undefined;
|
|
793
|
+
parameterTypes: string[];
|
|
794
|
+
}[] | undefined;
|
|
684
795
|
} | undefined;
|
|
685
796
|
unstable_ai?: {
|
|
686
797
|
generateUrl: string;
|
|
@@ -733,26 +844,98 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
733
844
|
/** The current Uniform integration source ID */
|
|
734
845
|
sourceId: string;
|
|
735
846
|
};
|
|
847
|
+
type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
848
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
849
|
+
settings: TIntegrationConfiguration;
|
|
850
|
+
/** The Uniform project ID */
|
|
851
|
+
projectId: string;
|
|
852
|
+
/** The current Uniform integration source ID */
|
|
853
|
+
sourceId: string;
|
|
854
|
+
/** The resolved data if this source is connected to a data resource */
|
|
855
|
+
dataResourceData?: unknown;
|
|
856
|
+
/**
|
|
857
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
858
|
+
*
|
|
859
|
+
* Default: 1
|
|
860
|
+
*/
|
|
861
|
+
maxAssets?: number;
|
|
862
|
+
};
|
|
736
863
|
type AssetParamValue = AssetParamValueItem[];
|
|
737
864
|
type AssetParamValueItem = {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
type?: string;
|
|
865
|
+
type: string;
|
|
866
|
+
_id: string;
|
|
741
867
|
/**
|
|
742
868
|
* Internal Uniform source ID or
|
|
743
869
|
* dataType ID of the global integration library
|
|
744
870
|
* which created this asset item
|
|
745
871
|
*/
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
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
|
+
};
|
|
754
936
|
};
|
|
755
|
-
type AssetLibraryLocation = MeshLocationCore<
|
|
937
|
+
type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
|
|
938
|
+
type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
|
|
756
939
|
|
|
757
940
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
758
941
|
type DataConnectorInfo = {
|
|
@@ -846,7 +1029,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
846
1029
|
* Defines methods used for interacting with a Mesh location
|
|
847
1030
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
848
1031
|
*/
|
|
849
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
1032
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
850
1033
|
interface MeshContextData {
|
|
851
1034
|
locationKey: string;
|
|
852
1035
|
locationType: MeshLocationTypes;
|
|
@@ -1035,7 +1218,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
1035
1218
|
/**
|
|
1036
1219
|
* Known location types that can be passed to a mesh location
|
|
1037
1220
|
*/
|
|
1038
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | '
|
|
1221
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
|
|
1039
1222
|
type SetValueOptions = ValidationResult;
|
|
1040
1223
|
type SetValueMessage = {
|
|
1041
1224
|
uniformMeshLocationValue: unknown;
|
|
@@ -1072,8 +1255,8 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1072
1255
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1073
1256
|
settings: TIntegrationConfiguration;
|
|
1074
1257
|
};
|
|
1075
|
-
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, '
|
|
1076
|
-
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, '
|
|
1258
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1259
|
+
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1077
1260
|
|
|
1078
1261
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1079
1262
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -1181,4 +1364,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1181
1364
|
autoResizingDisabled?: boolean;
|
|
1182
1365
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1183
1366
|
|
|
1184
|
-
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
|
1367
|
+
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, AssetParameterLocation, AssetParameterLocationMetadata, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -93,8 +93,36 @@ interface paths$1 {
|
|
|
93
93
|
};
|
|
94
94
|
badgeIconUrl?: string;
|
|
95
95
|
}[];
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
assetLibrary?: {
|
|
97
|
+
assetLibraryUrl: string;
|
|
98
|
+
assetParameterUrl: string;
|
|
99
|
+
unstable_dynamicAssets?: {
|
|
100
|
+
dataConnectorId: string;
|
|
101
|
+
assetsListArchetypeId: string;
|
|
102
|
+
singleAssetArchetypeId: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
ai?: {
|
|
106
|
+
generateUrl: string;
|
|
107
|
+
metadataUrl?: string;
|
|
108
|
+
prompts?: {
|
|
109
|
+
/** Format: uuid */
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
text: string;
|
|
113
|
+
data?: {
|
|
114
|
+
arguments?: {
|
|
115
|
+
[key: string]: {
|
|
116
|
+
type: string;
|
|
117
|
+
displayName?: string | null;
|
|
118
|
+
helpText?: string | null;
|
|
119
|
+
default?: string | null;
|
|
120
|
+
};
|
|
121
|
+
} | null;
|
|
122
|
+
metadata?: unknown;
|
|
123
|
+
} | null;
|
|
124
|
+
parameterTypes: string[];
|
|
125
|
+
}[];
|
|
98
126
|
};
|
|
99
127
|
unstable_ai?: {
|
|
100
128
|
generateUrl: string;
|
|
@@ -206,8 +234,36 @@ interface paths$1 {
|
|
|
206
234
|
};
|
|
207
235
|
badgeIconUrl?: string;
|
|
208
236
|
}[];
|
|
209
|
-
|
|
210
|
-
|
|
237
|
+
assetLibrary?: {
|
|
238
|
+
assetLibraryUrl: string;
|
|
239
|
+
assetParameterUrl: string;
|
|
240
|
+
unstable_dynamicAssets?: {
|
|
241
|
+
dataConnectorId: string;
|
|
242
|
+
assetsListArchetypeId: string;
|
|
243
|
+
singleAssetArchetypeId: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
ai?: {
|
|
247
|
+
generateUrl: string;
|
|
248
|
+
metadataUrl?: string;
|
|
249
|
+
prompts?: {
|
|
250
|
+
/** Format: uuid */
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
text: string;
|
|
254
|
+
data?: {
|
|
255
|
+
arguments?: {
|
|
256
|
+
[key: string]: {
|
|
257
|
+
type: string;
|
|
258
|
+
displayName?: string | null;
|
|
259
|
+
helpText?: string | null;
|
|
260
|
+
default?: string | null;
|
|
261
|
+
};
|
|
262
|
+
} | null;
|
|
263
|
+
metadata?: unknown;
|
|
264
|
+
} | null;
|
|
265
|
+
parameterTypes: string[];
|
|
266
|
+
}[];
|
|
211
267
|
};
|
|
212
268
|
unstable_ai?: {
|
|
213
269
|
generateUrl: string;
|
|
@@ -318,8 +374,36 @@ interface paths$1 {
|
|
|
318
374
|
};
|
|
319
375
|
badgeIconUrl?: string;
|
|
320
376
|
}[];
|
|
321
|
-
|
|
322
|
-
|
|
377
|
+
assetLibrary?: {
|
|
378
|
+
assetLibraryUrl: string;
|
|
379
|
+
assetParameterUrl: string;
|
|
380
|
+
unstable_dynamicAssets?: {
|
|
381
|
+
dataConnectorId: string;
|
|
382
|
+
assetsListArchetypeId: string;
|
|
383
|
+
singleAssetArchetypeId: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
ai?: {
|
|
387
|
+
generateUrl: string;
|
|
388
|
+
metadataUrl?: string;
|
|
389
|
+
prompts?: {
|
|
390
|
+
/** Format: uuid */
|
|
391
|
+
id: string;
|
|
392
|
+
name: string;
|
|
393
|
+
text: string;
|
|
394
|
+
data?: {
|
|
395
|
+
arguments?: {
|
|
396
|
+
[key: string]: {
|
|
397
|
+
type: string;
|
|
398
|
+
displayName?: string | null;
|
|
399
|
+
helpText?: string | null;
|
|
400
|
+
default?: string | null;
|
|
401
|
+
};
|
|
402
|
+
} | null;
|
|
403
|
+
metadata?: unknown;
|
|
404
|
+
} | null;
|
|
405
|
+
parameterTypes: string[];
|
|
406
|
+
}[];
|
|
323
407
|
};
|
|
324
408
|
unstable_ai?: {
|
|
325
409
|
generateUrl: string;
|
|
@@ -679,8 +763,35 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
679
763
|
} | undefined;
|
|
680
764
|
badgeIconUrl?: string | undefined;
|
|
681
765
|
}[] | undefined;
|
|
682
|
-
|
|
683
|
-
|
|
766
|
+
assetLibrary?: {
|
|
767
|
+
assetLibraryUrl: string;
|
|
768
|
+
assetParameterUrl: string;
|
|
769
|
+
unstable_dynamicAssets?: {
|
|
770
|
+
dataConnectorId: string;
|
|
771
|
+
assetsListArchetypeId: string;
|
|
772
|
+
singleAssetArchetypeId: string;
|
|
773
|
+
} | undefined;
|
|
774
|
+
} | undefined;
|
|
775
|
+
ai?: {
|
|
776
|
+
generateUrl: string;
|
|
777
|
+
metadataUrl?: string | undefined;
|
|
778
|
+
prompts?: {
|
|
779
|
+
id: string;
|
|
780
|
+
name: string;
|
|
781
|
+
text: string;
|
|
782
|
+
data?: {
|
|
783
|
+
arguments?: {
|
|
784
|
+
[key: string]: {
|
|
785
|
+
type: string;
|
|
786
|
+
displayName?: string | null | undefined;
|
|
787
|
+
helpText?: string | null | undefined;
|
|
788
|
+
default?: string | null | undefined;
|
|
789
|
+
};
|
|
790
|
+
} | null | undefined;
|
|
791
|
+
metadata?: unknown;
|
|
792
|
+
} | null | undefined;
|
|
793
|
+
parameterTypes: string[];
|
|
794
|
+
}[] | undefined;
|
|
684
795
|
} | undefined;
|
|
685
796
|
unstable_ai?: {
|
|
686
797
|
generateUrl: string;
|
|
@@ -733,26 +844,98 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
733
844
|
/** The current Uniform integration source ID */
|
|
734
845
|
sourceId: string;
|
|
735
846
|
};
|
|
847
|
+
type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
848
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
849
|
+
settings: TIntegrationConfiguration;
|
|
850
|
+
/** The Uniform project ID */
|
|
851
|
+
projectId: string;
|
|
852
|
+
/** The current Uniform integration source ID */
|
|
853
|
+
sourceId: string;
|
|
854
|
+
/** The resolved data if this source is connected to a data resource */
|
|
855
|
+
dataResourceData?: unknown;
|
|
856
|
+
/**
|
|
857
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
858
|
+
*
|
|
859
|
+
* Default: 1
|
|
860
|
+
*/
|
|
861
|
+
maxAssets?: number;
|
|
862
|
+
};
|
|
736
863
|
type AssetParamValue = AssetParamValueItem[];
|
|
737
864
|
type AssetParamValueItem = {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
type?: string;
|
|
865
|
+
type: string;
|
|
866
|
+
_id: string;
|
|
741
867
|
/**
|
|
742
868
|
* Internal Uniform source ID or
|
|
743
869
|
* dataType ID of the global integration library
|
|
744
870
|
* which created this asset item
|
|
745
871
|
*/
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
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
|
+
};
|
|
754
936
|
};
|
|
755
|
-
type AssetLibraryLocation = MeshLocationCore<
|
|
937
|
+
type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
|
|
938
|
+
type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
|
|
756
939
|
|
|
757
940
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
758
941
|
type DataConnectorInfo = {
|
|
@@ -846,7 +1029,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
846
1029
|
* Defines methods used for interacting with a Mesh location
|
|
847
1030
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
848
1031
|
*/
|
|
849
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
1032
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
850
1033
|
interface MeshContextData {
|
|
851
1034
|
locationKey: string;
|
|
852
1035
|
locationType: MeshLocationTypes;
|
|
@@ -1035,7 +1218,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
1035
1218
|
/**
|
|
1036
1219
|
* Known location types that can be passed to a mesh location
|
|
1037
1220
|
*/
|
|
1038
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | '
|
|
1221
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
|
|
1039
1222
|
type SetValueOptions = ValidationResult;
|
|
1040
1223
|
type SetValueMessage = {
|
|
1041
1224
|
uniformMeshLocationValue: unknown;
|
|
@@ -1072,8 +1255,8 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1072
1255
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1073
1256
|
settings: TIntegrationConfiguration;
|
|
1074
1257
|
};
|
|
1075
|
-
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, '
|
|
1076
|
-
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, '
|
|
1258
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1259
|
+
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1077
1260
|
|
|
1078
1261
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1079
1262
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -1181,4 +1364,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1181
1364
|
autoResizingDisabled?: boolean;
|
|
1182
1365
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1183
1366
|
|
|
1184
|
-
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
|
1367
|
+
export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, AssetParameterLocation, AssetParameterLocationMetadata, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.77.1-alpha.47+d5775ab2f",
|
|
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.
|
|
37
|
-
"@uniformdev/context": "19.
|
|
38
|
-
"@uniformdev/project-map": "19.
|
|
36
|
+
"@uniformdev/canvas": "19.77.1-alpha.47+d5775ab2f",
|
|
37
|
+
"@uniformdev/context": "19.77.1-alpha.47+d5775ab2f",
|
|
38
|
+
"@uniformdev/project-map": "19.77.1-alpha.47+d5775ab2f",
|
|
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": "d5775ab2fc5faed1f7c7631e7aa5b3489c207435"
|
|
46
46
|
}
|