@uniformdev/mesh-sdk 19.60.1-alpha.6 → 19.61.1-alpha.13

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,6 +93,9 @@ interface paths$1 {
93
93
  };
94
94
  badgeIconUrl?: string;
95
95
  }[];
96
+ unstable_assetLibrary?: {
97
+ url: string;
98
+ };
96
99
  unstable_ai?: {
97
100
  generateUrl: string;
98
101
  };
@@ -184,6 +187,9 @@ interface paths$1 {
184
187
  };
185
188
  badgeIconUrl?: string;
186
189
  }[];
190
+ unstable_assetLibrary?: {
191
+ url: string;
192
+ };
187
193
  unstable_ai?: {
188
194
  generateUrl: string;
189
195
  };
@@ -274,6 +280,9 @@ interface paths$1 {
274
280
  };
275
281
  badgeIconUrl?: string;
276
282
  }[];
283
+ unstable_assetLibrary?: {
284
+ url: string;
285
+ };
277
286
  unstable_ai?: {
278
287
  generateUrl: string;
279
288
  };
@@ -613,6 +622,9 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
613
622
  } | undefined;
614
623
  badgeIconUrl?: string | undefined;
615
624
  }[] | undefined;
625
+ unstable_assetLibrary?: {
626
+ url: string;
627
+ } | undefined;
616
628
  unstable_ai?: {
617
629
  generateUrl: string;
618
630
  } | undefined;
@@ -638,6 +650,41 @@ declare class IntegrationInstallationClient extends ApiClient {
638
650
  remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
639
651
  }
640
652
 
653
+ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
654
+ /** Settings defined at the integration level (arbitrary type used on settings location) */
655
+ settings: TIntegrationConfiguration;
656
+ /** The Uniform project ID */
657
+ projectId: string;
658
+ /** The current Uniform integration source ID */
659
+ sourceId: string;
660
+ /**
661
+ * Asset Library location is used in two places: Global Asset Library and Asset Parameter.
662
+ * This flag is necessary to distinguish between the two, because Parameter context requires
663
+ * "value" and "setValue" properties to manipulate the value of the parameter.
664
+ */
665
+ isAssetParameterContext: boolean;
666
+ };
667
+ type AssetParamValue = AssetParamValueItem[];
668
+ type AssetParamValueItem = {
669
+ id: string;
670
+ url: string;
671
+ type?: string;
672
+ /**
673
+ * Internal Uniform source ID or
674
+ * dataType ID of the global integration library
675
+ * which created this asset item
676
+ */
677
+ source?: string;
678
+ title?: string;
679
+ description?: string;
680
+ mediaType?: string;
681
+ width?: number;
682
+ height?: number;
683
+ size?: number;
684
+ custom?: Record<string, unknown>;
685
+ };
686
+ type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
687
+
641
688
  type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
642
689
  type DataConnectorInfo = {
643
690
  type: string;
@@ -730,7 +777,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
730
777
  * Defines methods used for interacting with a Mesh location
731
778
  * To receive useful typings, check the `type` property of the location to narrow the typing.
732
779
  */
733
- type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
780
+ type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
734
781
  interface MeshContextData {
735
782
  locationKey: string;
736
783
  locationType: MeshLocationTypes;
@@ -919,7 +966,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
919
966
  /**
920
967
  * Known location types that can be passed to a mesh location
921
968
  */
922
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
969
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
923
970
  type SetValueOptions = ValidationResult;
924
971
  type SetValueMessage = {
925
972
  uniformMeshLocationValue: unknown;
@@ -1061,4 +1108,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1061
1108
  autoResizingDisabled?: boolean;
1062
1109
  }): Promise<UniformMeshSDK | undefined>;
1063
1110
 
1064
- export { AIGenerateLocation, AIGenerateLocationMetadata, 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, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
1111
+ export { AIGenerateLocation, AIGenerateLocationMetadata, 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, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
package/dist/index.d.ts CHANGED
@@ -93,6 +93,9 @@ interface paths$1 {
93
93
  };
94
94
  badgeIconUrl?: string;
95
95
  }[];
96
+ unstable_assetLibrary?: {
97
+ url: string;
98
+ };
96
99
  unstable_ai?: {
97
100
  generateUrl: string;
98
101
  };
@@ -184,6 +187,9 @@ interface paths$1 {
184
187
  };
185
188
  badgeIconUrl?: string;
186
189
  }[];
190
+ unstable_assetLibrary?: {
191
+ url: string;
192
+ };
187
193
  unstable_ai?: {
188
194
  generateUrl: string;
189
195
  };
@@ -274,6 +280,9 @@ interface paths$1 {
274
280
  };
275
281
  badgeIconUrl?: string;
276
282
  }[];
283
+ unstable_assetLibrary?: {
284
+ url: string;
285
+ };
277
286
  unstable_ai?: {
278
287
  generateUrl: string;
279
288
  };
@@ -613,6 +622,9 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
613
622
  } | undefined;
614
623
  badgeIconUrl?: string | undefined;
615
624
  }[] | undefined;
625
+ unstable_assetLibrary?: {
626
+ url: string;
627
+ } | undefined;
616
628
  unstable_ai?: {
617
629
  generateUrl: string;
618
630
  } | undefined;
@@ -638,6 +650,41 @@ declare class IntegrationInstallationClient extends ApiClient {
638
650
  remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
639
651
  }
640
652
 
653
+ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
654
+ /** Settings defined at the integration level (arbitrary type used on settings location) */
655
+ settings: TIntegrationConfiguration;
656
+ /** The Uniform project ID */
657
+ projectId: string;
658
+ /** The current Uniform integration source ID */
659
+ sourceId: string;
660
+ /**
661
+ * Asset Library location is used in two places: Global Asset Library and Asset Parameter.
662
+ * This flag is necessary to distinguish between the two, because Parameter context requires
663
+ * "value" and "setValue" properties to manipulate the value of the parameter.
664
+ */
665
+ isAssetParameterContext: boolean;
666
+ };
667
+ type AssetParamValue = AssetParamValueItem[];
668
+ type AssetParamValueItem = {
669
+ id: string;
670
+ url: string;
671
+ type?: string;
672
+ /**
673
+ * Internal Uniform source ID or
674
+ * dataType ID of the global integration library
675
+ * which created this asset item
676
+ */
677
+ source?: string;
678
+ title?: string;
679
+ description?: string;
680
+ mediaType?: string;
681
+ width?: number;
682
+ height?: number;
683
+ size?: number;
684
+ custom?: Record<string, unknown>;
685
+ };
686
+ type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
687
+
641
688
  type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
642
689
  type DataConnectorInfo = {
643
690
  type: string;
@@ -730,7 +777,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
730
777
  * Defines methods used for interacting with a Mesh location
731
778
  * To receive useful typings, check the `type` property of the location to narrow the typing.
732
779
  */
733
- type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
780
+ type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
734
781
  interface MeshContextData {
735
782
  locationKey: string;
736
783
  locationType: MeshLocationTypes;
@@ -919,7 +966,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
919
966
  /**
920
967
  * Known location types that can be passed to a mesh location
921
968
  */
922
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
969
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
923
970
  type SetValueOptions = ValidationResult;
924
971
  type SetValueMessage = {
925
972
  uniformMeshLocationValue: unknown;
@@ -1061,4 +1108,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1061
1108
  autoResizingDisabled?: boolean;
1062
1109
  }): Promise<UniformMeshSDK | undefined>;
1063
1110
 
1064
- export { AIGenerateLocation, AIGenerateLocationMetadata, 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, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
1111
+ export { AIGenerateLocation, AIGenerateLocationMetadata, 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, 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.60.1-alpha.6+ac384b46c",
3
+ "version": "19.61.1-alpha.13+9ea7c72e6",
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.60.1-alpha.6+ac384b46c",
37
- "@uniformdev/context": "19.60.1-alpha.6+ac384b46c",
38
- "@uniformdev/project-map": "19.60.1-alpha.6+ac384b46c",
36
+ "@uniformdev/canvas": "19.61.1-alpha.13+9ea7c72e6",
37
+ "@uniformdev/context": "19.61.1-alpha.13+9ea7c72e6",
38
+ "@uniformdev/project-map": "19.61.1-alpha.13+9ea7c72e6",
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": "ac384b46c7694dbecf4983cb04cd66dc8904c5fa"
45
+ "gitHead": "9ea7c72e685bf1dd690149aa40a9b7a443d2ad28"
46
46
  }