@uniformdev/mesh-sdk 19.79.0 → 19.79.1-alpha.11

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 CHANGED
@@ -93,9 +93,10 @@ interface paths$1 {
93
93
  };
94
94
  badgeIconUrl?: string;
95
95
  }[];
96
- unstable_assetLibrary?: {
97
- url: string;
98
- dynamicAssets?: {
96
+ assetLibrary?: {
97
+ assetLibraryUrl: string;
98
+ assetParameterUrl: string;
99
+ unstable_dynamicAssets?: {
99
100
  dataConnectorId: string;
100
101
  assetsListArchetypeId: string;
101
102
  singleAssetArchetypeId: string;
@@ -233,9 +234,10 @@ interface paths$1 {
233
234
  };
234
235
  badgeIconUrl?: string;
235
236
  }[];
236
- unstable_assetLibrary?: {
237
- url: string;
238
- dynamicAssets?: {
237
+ assetLibrary?: {
238
+ assetLibraryUrl: string;
239
+ assetParameterUrl: string;
240
+ unstable_dynamicAssets?: {
239
241
  dataConnectorId: string;
240
242
  assetsListArchetypeId: string;
241
243
  singleAssetArchetypeId: string;
@@ -372,9 +374,10 @@ interface paths$1 {
372
374
  };
373
375
  badgeIconUrl?: string;
374
376
  }[];
375
- unstable_assetLibrary?: {
376
- url: string;
377
- dynamicAssets?: {
377
+ assetLibrary?: {
378
+ assetLibraryUrl: string;
379
+ assetParameterUrl: string;
380
+ unstable_dynamicAssets?: {
378
381
  dataConnectorId: string;
379
382
  assetsListArchetypeId: string;
380
383
  singleAssetArchetypeId: string;
@@ -760,9 +763,10 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
760
763
  } | undefined;
761
764
  badgeIconUrl?: string | undefined;
762
765
  }[] | undefined;
763
- unstable_assetLibrary?: {
764
- url: string;
765
- dynamicAssets?: {
766
+ assetLibrary?: {
767
+ assetLibraryUrl: string;
768
+ assetParameterUrl: string;
769
+ unstable_dynamicAssets?: {
766
770
  dataConnectorId: string;
767
771
  assetsListArchetypeId: string;
768
772
  singleAssetArchetypeId: string;
@@ -839,14 +843,16 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
839
843
  projectId: string;
840
844
  /** The current Uniform integration source ID */
841
845
  sourceId: string;
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;
842
854
  /** The resolved data if this source is connected to a data resource */
843
855
  dataResourceData?: unknown;
844
- /**
845
- * Asset Library location is used in two places: Global Asset Library and Asset Parameter.
846
- * This flag is necessary to distinguish between the two, because Parameter context requires
847
- * "value" and "setValue" properties to manipulate the value of the parameter.
848
- */
849
- isAssetParameterContext: boolean;
850
856
  /**
851
857
  * The maximum number of assets that can be selected in the Asset Library.
852
858
  *
@@ -928,7 +934,8 @@ type AssetParamValueItem = {
928
934
  fields: ComponentOverride['parameters'];
929
935
  };
930
936
  };
931
- type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
937
+ type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
938
+ type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
932
939
 
933
940
  type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
934
941
  type DataConnectorInfo = {
@@ -1022,7 +1029,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
1022
1029
  * Defines methods used for interacting with a Mesh location
1023
1030
  * To receive useful typings, check the `type` property of the location to narrow the typing.
1024
1031
  */
1025
- 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;
1026
1033
  interface MeshContextData {
1027
1034
  locationKey: string;
1028
1035
  locationType: MeshLocationTypes;
@@ -1211,7 +1218,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
1211
1218
  /**
1212
1219
  * Known location types that can be passed to a mesh location
1213
1220
  */
1214
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
1221
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
1215
1222
  type SetValueOptions = ValidationResult;
1216
1223
  type SetValueMessage = {
1217
1224
  uniformMeshLocationValue: unknown;
@@ -1357,4 +1364,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1357
1364
  autoResizingDisabled?: boolean;
1358
1365
  }): Promise<UniformMeshSDK | undefined>;
1359
1366
 
1360
- 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
@@ -93,9 +93,10 @@ interface paths$1 {
93
93
  };
94
94
  badgeIconUrl?: string;
95
95
  }[];
96
- unstable_assetLibrary?: {
97
- url: string;
98
- dynamicAssets?: {
96
+ assetLibrary?: {
97
+ assetLibraryUrl: string;
98
+ assetParameterUrl: string;
99
+ unstable_dynamicAssets?: {
99
100
  dataConnectorId: string;
100
101
  assetsListArchetypeId: string;
101
102
  singleAssetArchetypeId: string;
@@ -233,9 +234,10 @@ interface paths$1 {
233
234
  };
234
235
  badgeIconUrl?: string;
235
236
  }[];
236
- unstable_assetLibrary?: {
237
- url: string;
238
- dynamicAssets?: {
237
+ assetLibrary?: {
238
+ assetLibraryUrl: string;
239
+ assetParameterUrl: string;
240
+ unstable_dynamicAssets?: {
239
241
  dataConnectorId: string;
240
242
  assetsListArchetypeId: string;
241
243
  singleAssetArchetypeId: string;
@@ -372,9 +374,10 @@ interface paths$1 {
372
374
  };
373
375
  badgeIconUrl?: string;
374
376
  }[];
375
- unstable_assetLibrary?: {
376
- url: string;
377
- dynamicAssets?: {
377
+ assetLibrary?: {
378
+ assetLibraryUrl: string;
379
+ assetParameterUrl: string;
380
+ unstable_dynamicAssets?: {
378
381
  dataConnectorId: string;
379
382
  assetsListArchetypeId: string;
380
383
  singleAssetArchetypeId: string;
@@ -760,9 +763,10 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
760
763
  } | undefined;
761
764
  badgeIconUrl?: string | undefined;
762
765
  }[] | undefined;
763
- unstable_assetLibrary?: {
764
- url: string;
765
- dynamicAssets?: {
766
+ assetLibrary?: {
767
+ assetLibraryUrl: string;
768
+ assetParameterUrl: string;
769
+ unstable_dynamicAssets?: {
766
770
  dataConnectorId: string;
767
771
  assetsListArchetypeId: string;
768
772
  singleAssetArchetypeId: string;
@@ -839,14 +843,16 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
839
843
  projectId: string;
840
844
  /** The current Uniform integration source ID */
841
845
  sourceId: string;
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;
842
854
  /** The resolved data if this source is connected to a data resource */
843
855
  dataResourceData?: unknown;
844
- /**
845
- * Asset Library location is used in two places: Global Asset Library and Asset Parameter.
846
- * This flag is necessary to distinguish between the two, because Parameter context requires
847
- * "value" and "setValue" properties to manipulate the value of the parameter.
848
- */
849
- isAssetParameterContext: boolean;
850
856
  /**
851
857
  * The maximum number of assets that can be selected in the Asset Library.
852
858
  *
@@ -928,7 +934,8 @@ type AssetParamValueItem = {
928
934
  fields: ComponentOverride['parameters'];
929
935
  };
930
936
  };
931
- type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
937
+ type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
938
+ type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
932
939
 
933
940
  type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
934
941
  type DataConnectorInfo = {
@@ -1022,7 +1029,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
1022
1029
  * Defines methods used for interacting with a Mesh location
1023
1030
  * To receive useful typings, check the `type` property of the location to narrow the typing.
1024
1031
  */
1025
- 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;
1026
1033
  interface MeshContextData {
1027
1034
  locationKey: string;
1028
1035
  locationType: MeshLocationTypes;
@@ -1211,7 +1218,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
1211
1218
  /**
1212
1219
  * Known location types that can be passed to a mesh location
1213
1220
  */
1214
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
1221
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
1215
1222
  type SetValueOptions = ValidationResult;
1216
1223
  type SetValueMessage = {
1217
1224
  uniformMeshLocationValue: unknown;
@@ -1357,4 +1364,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1357
1364
  autoResizingDisabled?: boolean;
1358
1365
  }): Promise<UniformMeshSDK | undefined>;
1359
1366
 
1360
- 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.79.0",
3
+ "version": "19.79.1-alpha.11+4547ef846",
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.79.0",
37
- "@uniformdev/context": "19.79.0",
38
- "@uniformdev/project-map": "19.79.0",
36
+ "@uniformdev/canvas": "19.79.1-alpha.11+4547ef846",
37
+ "@uniformdev/context": "19.79.1-alpha.11+4547ef846",
38
+ "@uniformdev/project-map": "19.79.1-alpha.11+4547ef846",
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": "78f5ededbaa1a67d58d808eac23ab64769e14e10"
45
+ "gitHead": "4547ef8469f21f7f2341bcd87203372c4646bc08"
46
46
  }