@uniformdev/mesh-sdk 19.56.0 → 19.56.1-alpha.10
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 +65 -43
- package/dist/index.d.ts +65 -43
- 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
|
-
import { DataSource, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataType, DataVariableDefinition, DataResourceVariables } from '@uniformdev/canvas';
|
|
3
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
+
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -29,7 +29,7 @@ interface paths$1 {
|
|
|
29
29
|
logoIconUrl?: string;
|
|
30
30
|
badgeIconUrl?: string;
|
|
31
31
|
/** @enum {string} */
|
|
32
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
32
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
33
33
|
public?: boolean;
|
|
34
34
|
baseLocationUrl?: string;
|
|
35
35
|
locations: {
|
|
@@ -93,6 +93,9 @@ interface paths$1 {
|
|
|
93
93
|
};
|
|
94
94
|
badgeIconUrl?: string;
|
|
95
95
|
}[];
|
|
96
|
+
unstable_ai?: {
|
|
97
|
+
generateUrl: string;
|
|
98
|
+
};
|
|
96
99
|
};
|
|
97
100
|
}[];
|
|
98
101
|
};
|
|
@@ -117,7 +120,7 @@ interface paths$1 {
|
|
|
117
120
|
logoIconUrl?: string;
|
|
118
121
|
badgeIconUrl?: string;
|
|
119
122
|
/** @enum {string} */
|
|
120
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
123
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
121
124
|
public?: boolean;
|
|
122
125
|
baseLocationUrl?: string;
|
|
123
126
|
locations: {
|
|
@@ -181,6 +184,9 @@ interface paths$1 {
|
|
|
181
184
|
};
|
|
182
185
|
badgeIconUrl?: string;
|
|
183
186
|
}[];
|
|
187
|
+
unstable_ai?: {
|
|
188
|
+
generateUrl: string;
|
|
189
|
+
};
|
|
184
190
|
};
|
|
185
191
|
};
|
|
186
192
|
};
|
|
@@ -205,7 +211,7 @@ interface paths$1 {
|
|
|
205
211
|
logoIconUrl?: string;
|
|
206
212
|
badgeIconUrl?: string;
|
|
207
213
|
/** @enum {string} */
|
|
208
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
214
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
209
215
|
baseLocationUrl?: string;
|
|
210
216
|
locations: {
|
|
211
217
|
install?: {
|
|
@@ -268,6 +274,9 @@ interface paths$1 {
|
|
|
268
274
|
};
|
|
269
275
|
badgeIconUrl?: string;
|
|
270
276
|
}[];
|
|
277
|
+
unstable_ai?: {
|
|
278
|
+
generateUrl: string;
|
|
279
|
+
};
|
|
271
280
|
};
|
|
272
281
|
};
|
|
273
282
|
};
|
|
@@ -540,7 +549,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
540
549
|
displayName: string;
|
|
541
550
|
logoIconUrl?: string | undefined;
|
|
542
551
|
badgeIconUrl?: string | undefined;
|
|
543
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown" | undefined;
|
|
552
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown" | undefined;
|
|
544
553
|
public?: boolean | undefined;
|
|
545
554
|
baseLocationUrl?: string | undefined;
|
|
546
555
|
locations: {
|
|
@@ -604,6 +613,9 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
604
613
|
} | undefined;
|
|
605
614
|
badgeIconUrl?: string | undefined;
|
|
606
615
|
}[] | undefined;
|
|
616
|
+
unstable_ai?: {
|
|
617
|
+
generateUrl: string;
|
|
618
|
+
} | undefined;
|
|
607
619
|
};
|
|
608
620
|
}>;
|
|
609
621
|
/** Deletes a mesh app from a team */
|
|
@@ -626,6 +638,47 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
626
638
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
627
639
|
}
|
|
628
640
|
|
|
641
|
+
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
642
|
+
type DataConnectorInfo = {
|
|
643
|
+
type: string;
|
|
644
|
+
displayName: string;
|
|
645
|
+
};
|
|
646
|
+
type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
647
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
648
|
+
settings: TIntegrationConfiguration;
|
|
649
|
+
/** The Uniform project ID */
|
|
650
|
+
projectId: string;
|
|
651
|
+
/**
|
|
652
|
+
* The current data type's data source. NOTE: param and header values are not available in this context.
|
|
653
|
+
*/
|
|
654
|
+
dataSource: DataSource;
|
|
655
|
+
/** The data connector type of the current data type's data source */
|
|
656
|
+
dataConnector: DataConnectorInfo;
|
|
657
|
+
/** The data type's archetype value. */
|
|
658
|
+
archetype: string;
|
|
659
|
+
};
|
|
660
|
+
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
661
|
+
|
|
662
|
+
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
663
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
664
|
+
settings: TIntegrationConfiguration;
|
|
665
|
+
/** The current data resource's data type */
|
|
666
|
+
dataType: DataType;
|
|
667
|
+
/** The data type's archetype value. */
|
|
668
|
+
archetype: string;
|
|
669
|
+
/**
|
|
670
|
+
* The current data resource's data source. NOTE: param and header values are not available in this context.
|
|
671
|
+
*/
|
|
672
|
+
dataSource: DataSource;
|
|
673
|
+
/** The data connector type of the current data resource's data source */
|
|
674
|
+
dataConnector: DataConnectorInfo;
|
|
675
|
+
/** The Uniform project ID */
|
|
676
|
+
projectId: string;
|
|
677
|
+
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
678
|
+
dynamicInputs: DynamicInputs;
|
|
679
|
+
};
|
|
680
|
+
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
681
|
+
|
|
629
682
|
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
630
683
|
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
631
684
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -677,7 +730,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
677
730
|
* Defines methods used for interacting with a Mesh location
|
|
678
731
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
679
732
|
*/
|
|
680
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation
|
|
733
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
|
|
681
734
|
interface MeshContextData {
|
|
682
735
|
locationKey: string;
|
|
683
736
|
locationType: MeshLocationTypes;
|
|
@@ -866,7 +919,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
866
919
|
/**
|
|
867
920
|
* Known location types that can be passed to a mesh location
|
|
868
921
|
*/
|
|
869
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource';
|
|
922
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
|
|
870
923
|
type SetValueOptions = ValidationResult;
|
|
871
924
|
type SetValueMessage = {
|
|
872
925
|
uniformMeshLocationValue: unknown;
|
|
@@ -892,46 +945,15 @@ type DynamicInput = {
|
|
|
892
945
|
/** Record of dynamic inputs keyed by the input name */
|
|
893
946
|
type DynamicInputs = Record<string, DynamicInput>;
|
|
894
947
|
|
|
895
|
-
type
|
|
896
|
-
type DataConnectorInfo = {
|
|
897
|
-
type: string;
|
|
898
|
-
displayName: string;
|
|
899
|
-
};
|
|
900
|
-
type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
901
|
-
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
902
|
-
settings: TIntegrationConfiguration;
|
|
903
|
-
/** The Uniform project ID */
|
|
904
|
-
projectId: string;
|
|
905
|
-
/**
|
|
906
|
-
* The current data type's data source. NOTE: param and header values are not available in this context.
|
|
907
|
-
*/
|
|
908
|
-
dataSource: DataSource;
|
|
909
|
-
/** The data connector type of the current data type's data source */
|
|
910
|
-
dataConnector: DataConnectorInfo;
|
|
911
|
-
/** The data type's archetype value. */
|
|
912
|
-
archetype: string;
|
|
913
|
-
};
|
|
914
|
-
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
915
|
-
|
|
916
|
-
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
948
|
+
type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
917
949
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
918
950
|
settings: TIntegrationConfiguration;
|
|
919
|
-
/** The current data resource's data type */
|
|
920
|
-
dataType: DataType;
|
|
921
|
-
/** The data type's archetype value. */
|
|
922
|
-
archetype: string;
|
|
923
|
-
/**
|
|
924
|
-
* The current data resource's data source. NOTE: param and header values are not available in this context.
|
|
925
|
-
*/
|
|
926
|
-
dataSource: DataSource;
|
|
927
|
-
/** The data connector type of the current data resource's data source */
|
|
928
|
-
dataConnector: DataConnectorInfo;
|
|
929
951
|
/** The Uniform project ID */
|
|
930
952
|
projectId: string;
|
|
931
|
-
|
|
932
|
-
|
|
953
|
+
prompt: string;
|
|
954
|
+
promptMetadata: Record<string, unknown>;
|
|
933
955
|
};
|
|
934
|
-
type
|
|
956
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'unstable_ai'>;
|
|
935
957
|
|
|
936
958
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
937
959
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -1039,4 +1061,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1039
1061
|
autoResizingDisabled?: boolean;
|
|
1040
1062
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1041
1063
|
|
|
1042
|
-
export { 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
|
-
import { DataSource, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataType, DataVariableDefinition, DataResourceVariables } from '@uniformdev/canvas';
|
|
3
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
+
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -29,7 +29,7 @@ interface paths$1 {
|
|
|
29
29
|
logoIconUrl?: string;
|
|
30
30
|
badgeIconUrl?: string;
|
|
31
31
|
/** @enum {string} */
|
|
32
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
32
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
33
33
|
public?: boolean;
|
|
34
34
|
baseLocationUrl?: string;
|
|
35
35
|
locations: {
|
|
@@ -93,6 +93,9 @@ interface paths$1 {
|
|
|
93
93
|
};
|
|
94
94
|
badgeIconUrl?: string;
|
|
95
95
|
}[];
|
|
96
|
+
unstable_ai?: {
|
|
97
|
+
generateUrl: string;
|
|
98
|
+
};
|
|
96
99
|
};
|
|
97
100
|
}[];
|
|
98
101
|
};
|
|
@@ -117,7 +120,7 @@ interface paths$1 {
|
|
|
117
120
|
logoIconUrl?: string;
|
|
118
121
|
badgeIconUrl?: string;
|
|
119
122
|
/** @enum {string} */
|
|
120
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
123
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
121
124
|
public?: boolean;
|
|
122
125
|
baseLocationUrl?: string;
|
|
123
126
|
locations: {
|
|
@@ -181,6 +184,9 @@ interface paths$1 {
|
|
|
181
184
|
};
|
|
182
185
|
badgeIconUrl?: string;
|
|
183
186
|
}[];
|
|
187
|
+
unstable_ai?: {
|
|
188
|
+
generateUrl: string;
|
|
189
|
+
};
|
|
184
190
|
};
|
|
185
191
|
};
|
|
186
192
|
};
|
|
@@ -205,7 +211,7 @@ interface paths$1 {
|
|
|
205
211
|
logoIconUrl?: string;
|
|
206
212
|
badgeIconUrl?: string;
|
|
207
213
|
/** @enum {string} */
|
|
208
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown";
|
|
214
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
|
|
209
215
|
baseLocationUrl?: string;
|
|
210
216
|
locations: {
|
|
211
217
|
install?: {
|
|
@@ -268,6 +274,9 @@ interface paths$1 {
|
|
|
268
274
|
};
|
|
269
275
|
badgeIconUrl?: string;
|
|
270
276
|
}[];
|
|
277
|
+
unstable_ai?: {
|
|
278
|
+
generateUrl: string;
|
|
279
|
+
};
|
|
271
280
|
};
|
|
272
281
|
};
|
|
273
282
|
};
|
|
@@ -540,7 +549,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
540
549
|
displayName: string;
|
|
541
550
|
logoIconUrl?: string | undefined;
|
|
542
551
|
badgeIconUrl?: string | undefined;
|
|
543
|
-
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "unknown" | undefined;
|
|
552
|
+
category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown" | undefined;
|
|
544
553
|
public?: boolean | undefined;
|
|
545
554
|
baseLocationUrl?: string | undefined;
|
|
546
555
|
locations: {
|
|
@@ -604,6 +613,9 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
604
613
|
} | undefined;
|
|
605
614
|
badgeIconUrl?: string | undefined;
|
|
606
615
|
}[] | undefined;
|
|
616
|
+
unstable_ai?: {
|
|
617
|
+
generateUrl: string;
|
|
618
|
+
} | undefined;
|
|
607
619
|
};
|
|
608
620
|
}>;
|
|
609
621
|
/** Deletes a mesh app from a team */
|
|
@@ -626,6 +638,47 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
626
638
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
627
639
|
}
|
|
628
640
|
|
|
641
|
+
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
642
|
+
type DataConnectorInfo = {
|
|
643
|
+
type: string;
|
|
644
|
+
displayName: string;
|
|
645
|
+
};
|
|
646
|
+
type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
647
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
648
|
+
settings: TIntegrationConfiguration;
|
|
649
|
+
/** The Uniform project ID */
|
|
650
|
+
projectId: string;
|
|
651
|
+
/**
|
|
652
|
+
* The current data type's data source. NOTE: param and header values are not available in this context.
|
|
653
|
+
*/
|
|
654
|
+
dataSource: DataSource;
|
|
655
|
+
/** The data connector type of the current data type's data source */
|
|
656
|
+
dataConnector: DataConnectorInfo;
|
|
657
|
+
/** The data type's archetype value. */
|
|
658
|
+
archetype: string;
|
|
659
|
+
};
|
|
660
|
+
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
661
|
+
|
|
662
|
+
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
663
|
+
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
664
|
+
settings: TIntegrationConfiguration;
|
|
665
|
+
/** The current data resource's data type */
|
|
666
|
+
dataType: DataType;
|
|
667
|
+
/** The data type's archetype value. */
|
|
668
|
+
archetype: string;
|
|
669
|
+
/**
|
|
670
|
+
* The current data resource's data source. NOTE: param and header values are not available in this context.
|
|
671
|
+
*/
|
|
672
|
+
dataSource: DataSource;
|
|
673
|
+
/** The data connector type of the current data resource's data source */
|
|
674
|
+
dataConnector: DataConnectorInfo;
|
|
675
|
+
/** The Uniform project ID */
|
|
676
|
+
projectId: string;
|
|
677
|
+
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
678
|
+
dynamicInputs: DynamicInputs;
|
|
679
|
+
};
|
|
680
|
+
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
681
|
+
|
|
629
682
|
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
630
683
|
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
631
684
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -677,7 +730,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
677
730
|
* Defines methods used for interacting with a Mesh location
|
|
678
731
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
679
732
|
*/
|
|
680
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation
|
|
733
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataResourceLocation | AIGenerateLocation<TValue>;
|
|
681
734
|
interface MeshContextData {
|
|
682
735
|
locationKey: string;
|
|
683
736
|
locationType: MeshLocationTypes;
|
|
@@ -866,7 +919,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
866
919
|
/**
|
|
867
920
|
* Known location types that can be passed to a mesh location
|
|
868
921
|
*/
|
|
869
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource';
|
|
922
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'unstable_ai';
|
|
870
923
|
type SetValueOptions = ValidationResult;
|
|
871
924
|
type SetValueMessage = {
|
|
872
925
|
uniformMeshLocationValue: unknown;
|
|
@@ -892,46 +945,15 @@ type DynamicInput = {
|
|
|
892
945
|
/** Record of dynamic inputs keyed by the input name */
|
|
893
946
|
type DynamicInputs = Record<string, DynamicInput>;
|
|
894
947
|
|
|
895
|
-
type
|
|
896
|
-
type DataConnectorInfo = {
|
|
897
|
-
type: string;
|
|
898
|
-
displayName: string;
|
|
899
|
-
};
|
|
900
|
-
type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
901
|
-
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
902
|
-
settings: TIntegrationConfiguration;
|
|
903
|
-
/** The Uniform project ID */
|
|
904
|
-
projectId: string;
|
|
905
|
-
/**
|
|
906
|
-
* The current data type's data source. NOTE: param and header values are not available in this context.
|
|
907
|
-
*/
|
|
908
|
-
dataSource: DataSource;
|
|
909
|
-
/** The data connector type of the current data type's data source */
|
|
910
|
-
dataConnector: DataConnectorInfo;
|
|
911
|
-
/** The data type's archetype value. */
|
|
912
|
-
archetype: string;
|
|
913
|
-
};
|
|
914
|
-
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
915
|
-
|
|
916
|
-
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
948
|
+
type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
917
949
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
918
950
|
settings: TIntegrationConfiguration;
|
|
919
|
-
/** The current data resource's data type */
|
|
920
|
-
dataType: DataType;
|
|
921
|
-
/** The data type's archetype value. */
|
|
922
|
-
archetype: string;
|
|
923
|
-
/**
|
|
924
|
-
* The current data resource's data source. NOTE: param and header values are not available in this context.
|
|
925
|
-
*/
|
|
926
|
-
dataSource: DataSource;
|
|
927
|
-
/** The data connector type of the current data resource's data source */
|
|
928
|
-
dataConnector: DataConnectorInfo;
|
|
929
951
|
/** The Uniform project ID */
|
|
930
952
|
projectId: string;
|
|
931
|
-
|
|
932
|
-
|
|
953
|
+
prompt: string;
|
|
954
|
+
promptMetadata: Record<string, unknown>;
|
|
933
955
|
};
|
|
934
|
-
type
|
|
956
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'unstable_ai'>;
|
|
935
957
|
|
|
936
958
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
937
959
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
@@ -1039,4 +1061,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
1039
1061
|
autoResizingDisabled?: boolean;
|
|
1040
1062
|
}): Promise<UniformMeshSDK | undefined>;
|
|
1041
1063
|
|
|
1042
|
-
export { 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 };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.56.
|
|
3
|
+
"version": "19.56.1-alpha.10+4656b6da5",
|
|
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.56.
|
|
37
|
-
"@uniformdev/context": "19.56.
|
|
38
|
-
"@uniformdev/project-map": "19.56.
|
|
36
|
+
"@uniformdev/canvas": "19.56.1-alpha.10+4656b6da5",
|
|
37
|
+
"@uniformdev/context": "19.56.1-alpha.10+4656b6da5",
|
|
38
|
+
"@uniformdev/project-map": "19.56.1-alpha.10+4656b6da5",
|
|
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": "4656b6da55c78e7e793f785739cd26cd252f77d4"
|
|
46
46
|
}
|