@uniformdev/mesh-sdk 19.78.0 → 19.79.0
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 +192 -95
- package/dist/index.d.ts +192 -95
- 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
|
/**
|
|
@@ -95,6 +95,33 @@ interface paths$1 {
|
|
|
95
95
|
}[];
|
|
96
96
|
unstable_assetLibrary?: {
|
|
97
97
|
url: string;
|
|
98
|
+
dynamicAssets?: {
|
|
99
|
+
dataConnectorId: string;
|
|
100
|
+
assetsListArchetypeId: string;
|
|
101
|
+
singleAssetArchetypeId: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
ai?: {
|
|
105
|
+
generateUrl: string;
|
|
106
|
+
metadataUrl?: string;
|
|
107
|
+
prompts?: {
|
|
108
|
+
/** Format: uuid */
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
text: string;
|
|
112
|
+
data?: {
|
|
113
|
+
arguments?: {
|
|
114
|
+
[key: string]: {
|
|
115
|
+
type: string;
|
|
116
|
+
displayName?: string | null;
|
|
117
|
+
helpText?: string | null;
|
|
118
|
+
default?: string | null;
|
|
119
|
+
};
|
|
120
|
+
} | null;
|
|
121
|
+
metadata?: unknown;
|
|
122
|
+
} | null;
|
|
123
|
+
parameterTypes: string[];
|
|
124
|
+
}[];
|
|
98
125
|
};
|
|
99
126
|
unstable_ai?: {
|
|
100
127
|
generateUrl: string;
|
|
@@ -119,26 +146,6 @@ interface paths$1 {
|
|
|
119
146
|
} | null;
|
|
120
147
|
parameterTypes: string[];
|
|
121
148
|
}[];
|
|
122
|
-
ai?: {
|
|
123
|
-
prompts?: {
|
|
124
|
-
/** Format: uuid */
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
text: string;
|
|
128
|
-
data?: {
|
|
129
|
-
arguments?: {
|
|
130
|
-
[key: string]: {
|
|
131
|
-
type: string;
|
|
132
|
-
displayName?: string | null;
|
|
133
|
-
helpText?: string | null;
|
|
134
|
-
default?: string | null;
|
|
135
|
-
};
|
|
136
|
-
} | null;
|
|
137
|
-
metadata?: unknown;
|
|
138
|
-
} | null;
|
|
139
|
-
parameterTypes: string[];
|
|
140
|
-
}[];
|
|
141
|
-
};
|
|
142
149
|
}[];
|
|
143
150
|
};
|
|
144
151
|
};
|
|
@@ -228,6 +235,33 @@ interface paths$1 {
|
|
|
228
235
|
}[];
|
|
229
236
|
unstable_assetLibrary?: {
|
|
230
237
|
url: string;
|
|
238
|
+
dynamicAssets?: {
|
|
239
|
+
dataConnectorId: string;
|
|
240
|
+
assetsListArchetypeId: string;
|
|
241
|
+
singleAssetArchetypeId: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
ai?: {
|
|
245
|
+
generateUrl: string;
|
|
246
|
+
metadataUrl?: string;
|
|
247
|
+
prompts?: {
|
|
248
|
+
/** Format: uuid */
|
|
249
|
+
id: string;
|
|
250
|
+
name: string;
|
|
251
|
+
text: string;
|
|
252
|
+
data?: {
|
|
253
|
+
arguments?: {
|
|
254
|
+
[key: string]: {
|
|
255
|
+
type: string;
|
|
256
|
+
displayName?: string | null;
|
|
257
|
+
helpText?: string | null;
|
|
258
|
+
default?: string | null;
|
|
259
|
+
};
|
|
260
|
+
} | null;
|
|
261
|
+
metadata?: unknown;
|
|
262
|
+
} | null;
|
|
263
|
+
parameterTypes: string[];
|
|
264
|
+
}[];
|
|
231
265
|
};
|
|
232
266
|
unstable_ai?: {
|
|
233
267
|
generateUrl: string;
|
|
@@ -252,26 +286,6 @@ interface paths$1 {
|
|
|
252
286
|
} | null;
|
|
253
287
|
parameterTypes: string[];
|
|
254
288
|
}[];
|
|
255
|
-
ai?: {
|
|
256
|
-
prompts?: {
|
|
257
|
-
/** Format: uuid */
|
|
258
|
-
id: string;
|
|
259
|
-
name: string;
|
|
260
|
-
text: string;
|
|
261
|
-
data?: {
|
|
262
|
-
arguments?: {
|
|
263
|
-
[key: string]: {
|
|
264
|
-
type: string;
|
|
265
|
-
displayName?: string | null;
|
|
266
|
-
helpText?: string | null;
|
|
267
|
-
default?: string | null;
|
|
268
|
-
};
|
|
269
|
-
} | null;
|
|
270
|
-
metadata?: unknown;
|
|
271
|
-
} | null;
|
|
272
|
-
parameterTypes: string[];
|
|
273
|
-
}[];
|
|
274
|
-
};
|
|
275
289
|
};
|
|
276
290
|
};
|
|
277
291
|
};
|
|
@@ -360,6 +374,33 @@ interface paths$1 {
|
|
|
360
374
|
}[];
|
|
361
375
|
unstable_assetLibrary?: {
|
|
362
376
|
url: string;
|
|
377
|
+
dynamicAssets?: {
|
|
378
|
+
dataConnectorId: string;
|
|
379
|
+
assetsListArchetypeId: string;
|
|
380
|
+
singleAssetArchetypeId: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
ai?: {
|
|
384
|
+
generateUrl: string;
|
|
385
|
+
metadataUrl?: string;
|
|
386
|
+
prompts?: {
|
|
387
|
+
/** Format: uuid */
|
|
388
|
+
id: string;
|
|
389
|
+
name: string;
|
|
390
|
+
text: string;
|
|
391
|
+
data?: {
|
|
392
|
+
arguments?: {
|
|
393
|
+
[key: string]: {
|
|
394
|
+
type: string;
|
|
395
|
+
displayName?: string | null;
|
|
396
|
+
helpText?: string | null;
|
|
397
|
+
default?: string | null;
|
|
398
|
+
};
|
|
399
|
+
} | null;
|
|
400
|
+
metadata?: unknown;
|
|
401
|
+
} | null;
|
|
402
|
+
parameterTypes: string[];
|
|
403
|
+
}[];
|
|
363
404
|
};
|
|
364
405
|
unstable_ai?: {
|
|
365
406
|
generateUrl: string;
|
|
@@ -384,26 +425,6 @@ interface paths$1 {
|
|
|
384
425
|
} | null;
|
|
385
426
|
parameterTypes: string[];
|
|
386
427
|
}[];
|
|
387
|
-
ai?: {
|
|
388
|
-
prompts?: {
|
|
389
|
-
/** Format: uuid */
|
|
390
|
-
id: string;
|
|
391
|
-
name: string;
|
|
392
|
-
text: string;
|
|
393
|
-
data?: {
|
|
394
|
-
arguments?: {
|
|
395
|
-
[key: string]: {
|
|
396
|
-
type: string;
|
|
397
|
-
displayName?: string | null;
|
|
398
|
-
helpText?: string | null;
|
|
399
|
-
default?: string | null;
|
|
400
|
-
};
|
|
401
|
-
} | null;
|
|
402
|
-
metadata?: unknown;
|
|
403
|
-
} | null;
|
|
404
|
-
parameterTypes: string[];
|
|
405
|
-
}[];
|
|
406
|
-
};
|
|
407
428
|
};
|
|
408
429
|
};
|
|
409
430
|
};
|
|
@@ -741,6 +762,32 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
741
762
|
}[] | undefined;
|
|
742
763
|
unstable_assetLibrary?: {
|
|
743
764
|
url: string;
|
|
765
|
+
dynamicAssets?: {
|
|
766
|
+
dataConnectorId: string;
|
|
767
|
+
assetsListArchetypeId: string;
|
|
768
|
+
singleAssetArchetypeId: string;
|
|
769
|
+
} | undefined;
|
|
770
|
+
} | undefined;
|
|
771
|
+
ai?: {
|
|
772
|
+
generateUrl: string;
|
|
773
|
+
metadataUrl?: string | undefined;
|
|
774
|
+
prompts?: {
|
|
775
|
+
id: string;
|
|
776
|
+
name: string;
|
|
777
|
+
text: string;
|
|
778
|
+
data?: {
|
|
779
|
+
arguments?: {
|
|
780
|
+
[key: string]: {
|
|
781
|
+
type: string;
|
|
782
|
+
displayName?: string | null | undefined;
|
|
783
|
+
helpText?: string | null | undefined;
|
|
784
|
+
default?: string | null | undefined;
|
|
785
|
+
};
|
|
786
|
+
} | null | undefined;
|
|
787
|
+
metadata?: unknown;
|
|
788
|
+
} | null | undefined;
|
|
789
|
+
parameterTypes: string[];
|
|
790
|
+
}[] | undefined;
|
|
744
791
|
} | undefined;
|
|
745
792
|
unstable_ai?: {
|
|
746
793
|
generateUrl: string;
|
|
@@ -764,25 +811,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
764
811
|
} | null | undefined;
|
|
765
812
|
parameterTypes: string[];
|
|
766
813
|
}[] | undefined;
|
|
767
|
-
ai?: {
|
|
768
|
-
prompts?: {
|
|
769
|
-
id: string;
|
|
770
|
-
name: string;
|
|
771
|
-
text: string;
|
|
772
|
-
data?: {
|
|
773
|
-
arguments?: {
|
|
774
|
-
[key: string]: {
|
|
775
|
-
type: string;
|
|
776
|
-
displayName?: string | null | undefined;
|
|
777
|
-
helpText?: string | null | undefined;
|
|
778
|
-
default?: string | null | undefined;
|
|
779
|
-
};
|
|
780
|
-
} | null | undefined;
|
|
781
|
-
metadata?: unknown;
|
|
782
|
-
} | null | undefined;
|
|
783
|
-
parameterTypes: string[];
|
|
784
|
-
}[] | undefined;
|
|
785
|
-
} | undefined;
|
|
786
814
|
}>;
|
|
787
815
|
/** Deletes a mesh app from a team */
|
|
788
816
|
remove(body: Omit<IntegrationDefinitionDeleteParameters, 'teamId'>): Promise<void>;
|
|
@@ -811,27 +839,96 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
811
839
|
projectId: string;
|
|
812
840
|
/** The current Uniform integration source ID */
|
|
813
841
|
sourceId: string;
|
|
842
|
+
/** The resolved data if this source is connected to a data resource */
|
|
843
|
+
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
|
+
/**
|
|
851
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
852
|
+
*
|
|
853
|
+
* Default: 1
|
|
854
|
+
*/
|
|
855
|
+
maxAssets?: number;
|
|
814
856
|
};
|
|
815
857
|
type AssetParamValue = AssetParamValueItem[];
|
|
816
858
|
type AssetParamValueItem = {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
type?: string;
|
|
859
|
+
type: string;
|
|
860
|
+
_id: string;
|
|
820
861
|
/**
|
|
821
862
|
* Internal Uniform source ID or
|
|
822
863
|
* dataType ID of the global integration library
|
|
823
864
|
* which created this asset item
|
|
824
865
|
*/
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
866
|
+
_source?: string;
|
|
867
|
+
fields: {
|
|
868
|
+
url: {
|
|
869
|
+
type: 'text';
|
|
870
|
+
value: string;
|
|
871
|
+
};
|
|
872
|
+
id?: {
|
|
873
|
+
type: 'text';
|
|
874
|
+
value: string | undefined;
|
|
875
|
+
};
|
|
876
|
+
title?: {
|
|
877
|
+
type: 'text';
|
|
878
|
+
value: string | undefined;
|
|
879
|
+
};
|
|
880
|
+
description?: {
|
|
881
|
+
type: 'text';
|
|
882
|
+
value: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
mediaType?: {
|
|
885
|
+
type: 'text';
|
|
886
|
+
value: string | undefined;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* The width of the original asset
|
|
890
|
+
*
|
|
891
|
+
* Should resolve to a number but might
|
|
892
|
+
* be a string with a pointer reference
|
|
893
|
+
*/
|
|
894
|
+
width?: {
|
|
895
|
+
type: 'number';
|
|
896
|
+
value: number | string | undefined;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* The height of the original asset
|
|
900
|
+
*
|
|
901
|
+
* Should resolve to a number but might
|
|
902
|
+
* be a string with a pointer reference
|
|
903
|
+
*/
|
|
904
|
+
height?: {
|
|
905
|
+
type: 'number';
|
|
906
|
+
value: number | string | undefined;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* The size in bytes of the original asset
|
|
910
|
+
*
|
|
911
|
+
* Should resolve to a number but might
|
|
912
|
+
* be a string with a pointer reference
|
|
913
|
+
*/
|
|
914
|
+
size?: {
|
|
915
|
+
type: 'number';
|
|
916
|
+
value: number | string | undefined;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Any key/value properties which the source
|
|
920
|
+
* wants to attach to the asset data
|
|
921
|
+
*/
|
|
922
|
+
custom?: {
|
|
923
|
+
type: string;
|
|
924
|
+
value: Record<string, unknown>;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
_overrides?: {
|
|
928
|
+
fields: ComponentOverride['parameters'];
|
|
929
|
+
};
|
|
833
930
|
};
|
|
834
|
-
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'
|
|
931
|
+
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
|
|
835
932
|
|
|
836
933
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
837
934
|
type DataConnectorInfo = {
|
|
@@ -1114,7 +1211,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
1114
1211
|
/**
|
|
1115
1212
|
* Known location types that can be passed to a mesh location
|
|
1116
1213
|
*/
|
|
1117
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | '
|
|
1214
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
|
|
1118
1215
|
type SetValueOptions = ValidationResult;
|
|
1119
1216
|
type SetValueMessage = {
|
|
1120
1217
|
uniformMeshLocationValue: unknown;
|
|
@@ -1151,8 +1248,8 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1151
1248
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1152
1249
|
settings: TIntegrationConfiguration;
|
|
1153
1250
|
};
|
|
1154
|
-
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, '
|
|
1155
|
-
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, '
|
|
1251
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1252
|
+
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1156
1253
|
|
|
1157
1254
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1158
1255
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
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
|
/**
|
|
@@ -95,6 +95,33 @@ interface paths$1 {
|
|
|
95
95
|
}[];
|
|
96
96
|
unstable_assetLibrary?: {
|
|
97
97
|
url: string;
|
|
98
|
+
dynamicAssets?: {
|
|
99
|
+
dataConnectorId: string;
|
|
100
|
+
assetsListArchetypeId: string;
|
|
101
|
+
singleAssetArchetypeId: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
ai?: {
|
|
105
|
+
generateUrl: string;
|
|
106
|
+
metadataUrl?: string;
|
|
107
|
+
prompts?: {
|
|
108
|
+
/** Format: uuid */
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
text: string;
|
|
112
|
+
data?: {
|
|
113
|
+
arguments?: {
|
|
114
|
+
[key: string]: {
|
|
115
|
+
type: string;
|
|
116
|
+
displayName?: string | null;
|
|
117
|
+
helpText?: string | null;
|
|
118
|
+
default?: string | null;
|
|
119
|
+
};
|
|
120
|
+
} | null;
|
|
121
|
+
metadata?: unknown;
|
|
122
|
+
} | null;
|
|
123
|
+
parameterTypes: string[];
|
|
124
|
+
}[];
|
|
98
125
|
};
|
|
99
126
|
unstable_ai?: {
|
|
100
127
|
generateUrl: string;
|
|
@@ -119,26 +146,6 @@ interface paths$1 {
|
|
|
119
146
|
} | null;
|
|
120
147
|
parameterTypes: string[];
|
|
121
148
|
}[];
|
|
122
|
-
ai?: {
|
|
123
|
-
prompts?: {
|
|
124
|
-
/** Format: uuid */
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
text: string;
|
|
128
|
-
data?: {
|
|
129
|
-
arguments?: {
|
|
130
|
-
[key: string]: {
|
|
131
|
-
type: string;
|
|
132
|
-
displayName?: string | null;
|
|
133
|
-
helpText?: string | null;
|
|
134
|
-
default?: string | null;
|
|
135
|
-
};
|
|
136
|
-
} | null;
|
|
137
|
-
metadata?: unknown;
|
|
138
|
-
} | null;
|
|
139
|
-
parameterTypes: string[];
|
|
140
|
-
}[];
|
|
141
|
-
};
|
|
142
149
|
}[];
|
|
143
150
|
};
|
|
144
151
|
};
|
|
@@ -228,6 +235,33 @@ interface paths$1 {
|
|
|
228
235
|
}[];
|
|
229
236
|
unstable_assetLibrary?: {
|
|
230
237
|
url: string;
|
|
238
|
+
dynamicAssets?: {
|
|
239
|
+
dataConnectorId: string;
|
|
240
|
+
assetsListArchetypeId: string;
|
|
241
|
+
singleAssetArchetypeId: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
ai?: {
|
|
245
|
+
generateUrl: string;
|
|
246
|
+
metadataUrl?: string;
|
|
247
|
+
prompts?: {
|
|
248
|
+
/** Format: uuid */
|
|
249
|
+
id: string;
|
|
250
|
+
name: string;
|
|
251
|
+
text: string;
|
|
252
|
+
data?: {
|
|
253
|
+
arguments?: {
|
|
254
|
+
[key: string]: {
|
|
255
|
+
type: string;
|
|
256
|
+
displayName?: string | null;
|
|
257
|
+
helpText?: string | null;
|
|
258
|
+
default?: string | null;
|
|
259
|
+
};
|
|
260
|
+
} | null;
|
|
261
|
+
metadata?: unknown;
|
|
262
|
+
} | null;
|
|
263
|
+
parameterTypes: string[];
|
|
264
|
+
}[];
|
|
231
265
|
};
|
|
232
266
|
unstable_ai?: {
|
|
233
267
|
generateUrl: string;
|
|
@@ -252,26 +286,6 @@ interface paths$1 {
|
|
|
252
286
|
} | null;
|
|
253
287
|
parameterTypes: string[];
|
|
254
288
|
}[];
|
|
255
|
-
ai?: {
|
|
256
|
-
prompts?: {
|
|
257
|
-
/** Format: uuid */
|
|
258
|
-
id: string;
|
|
259
|
-
name: string;
|
|
260
|
-
text: string;
|
|
261
|
-
data?: {
|
|
262
|
-
arguments?: {
|
|
263
|
-
[key: string]: {
|
|
264
|
-
type: string;
|
|
265
|
-
displayName?: string | null;
|
|
266
|
-
helpText?: string | null;
|
|
267
|
-
default?: string | null;
|
|
268
|
-
};
|
|
269
|
-
} | null;
|
|
270
|
-
metadata?: unknown;
|
|
271
|
-
} | null;
|
|
272
|
-
parameterTypes: string[];
|
|
273
|
-
}[];
|
|
274
|
-
};
|
|
275
289
|
};
|
|
276
290
|
};
|
|
277
291
|
};
|
|
@@ -360,6 +374,33 @@ interface paths$1 {
|
|
|
360
374
|
}[];
|
|
361
375
|
unstable_assetLibrary?: {
|
|
362
376
|
url: string;
|
|
377
|
+
dynamicAssets?: {
|
|
378
|
+
dataConnectorId: string;
|
|
379
|
+
assetsListArchetypeId: string;
|
|
380
|
+
singleAssetArchetypeId: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
ai?: {
|
|
384
|
+
generateUrl: string;
|
|
385
|
+
metadataUrl?: string;
|
|
386
|
+
prompts?: {
|
|
387
|
+
/** Format: uuid */
|
|
388
|
+
id: string;
|
|
389
|
+
name: string;
|
|
390
|
+
text: string;
|
|
391
|
+
data?: {
|
|
392
|
+
arguments?: {
|
|
393
|
+
[key: string]: {
|
|
394
|
+
type: string;
|
|
395
|
+
displayName?: string | null;
|
|
396
|
+
helpText?: string | null;
|
|
397
|
+
default?: string | null;
|
|
398
|
+
};
|
|
399
|
+
} | null;
|
|
400
|
+
metadata?: unknown;
|
|
401
|
+
} | null;
|
|
402
|
+
parameterTypes: string[];
|
|
403
|
+
}[];
|
|
363
404
|
};
|
|
364
405
|
unstable_ai?: {
|
|
365
406
|
generateUrl: string;
|
|
@@ -384,26 +425,6 @@ interface paths$1 {
|
|
|
384
425
|
} | null;
|
|
385
426
|
parameterTypes: string[];
|
|
386
427
|
}[];
|
|
387
|
-
ai?: {
|
|
388
|
-
prompts?: {
|
|
389
|
-
/** Format: uuid */
|
|
390
|
-
id: string;
|
|
391
|
-
name: string;
|
|
392
|
-
text: string;
|
|
393
|
-
data?: {
|
|
394
|
-
arguments?: {
|
|
395
|
-
[key: string]: {
|
|
396
|
-
type: string;
|
|
397
|
-
displayName?: string | null;
|
|
398
|
-
helpText?: string | null;
|
|
399
|
-
default?: string | null;
|
|
400
|
-
};
|
|
401
|
-
} | null;
|
|
402
|
-
metadata?: unknown;
|
|
403
|
-
} | null;
|
|
404
|
-
parameterTypes: string[];
|
|
405
|
-
}[];
|
|
406
|
-
};
|
|
407
428
|
};
|
|
408
429
|
};
|
|
409
430
|
};
|
|
@@ -741,6 +762,32 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
741
762
|
}[] | undefined;
|
|
742
763
|
unstable_assetLibrary?: {
|
|
743
764
|
url: string;
|
|
765
|
+
dynamicAssets?: {
|
|
766
|
+
dataConnectorId: string;
|
|
767
|
+
assetsListArchetypeId: string;
|
|
768
|
+
singleAssetArchetypeId: string;
|
|
769
|
+
} | undefined;
|
|
770
|
+
} | undefined;
|
|
771
|
+
ai?: {
|
|
772
|
+
generateUrl: string;
|
|
773
|
+
metadataUrl?: string | undefined;
|
|
774
|
+
prompts?: {
|
|
775
|
+
id: string;
|
|
776
|
+
name: string;
|
|
777
|
+
text: string;
|
|
778
|
+
data?: {
|
|
779
|
+
arguments?: {
|
|
780
|
+
[key: string]: {
|
|
781
|
+
type: string;
|
|
782
|
+
displayName?: string | null | undefined;
|
|
783
|
+
helpText?: string | null | undefined;
|
|
784
|
+
default?: string | null | undefined;
|
|
785
|
+
};
|
|
786
|
+
} | null | undefined;
|
|
787
|
+
metadata?: unknown;
|
|
788
|
+
} | null | undefined;
|
|
789
|
+
parameterTypes: string[];
|
|
790
|
+
}[] | undefined;
|
|
744
791
|
} | undefined;
|
|
745
792
|
unstable_ai?: {
|
|
746
793
|
generateUrl: string;
|
|
@@ -764,25 +811,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
764
811
|
} | null | undefined;
|
|
765
812
|
parameterTypes: string[];
|
|
766
813
|
}[] | undefined;
|
|
767
|
-
ai?: {
|
|
768
|
-
prompts?: {
|
|
769
|
-
id: string;
|
|
770
|
-
name: string;
|
|
771
|
-
text: string;
|
|
772
|
-
data?: {
|
|
773
|
-
arguments?: {
|
|
774
|
-
[key: string]: {
|
|
775
|
-
type: string;
|
|
776
|
-
displayName?: string | null | undefined;
|
|
777
|
-
helpText?: string | null | undefined;
|
|
778
|
-
default?: string | null | undefined;
|
|
779
|
-
};
|
|
780
|
-
} | null | undefined;
|
|
781
|
-
metadata?: unknown;
|
|
782
|
-
} | null | undefined;
|
|
783
|
-
parameterTypes: string[];
|
|
784
|
-
}[] | undefined;
|
|
785
|
-
} | undefined;
|
|
786
814
|
}>;
|
|
787
815
|
/** Deletes a mesh app from a team */
|
|
788
816
|
remove(body: Omit<IntegrationDefinitionDeleteParameters, 'teamId'>): Promise<void>;
|
|
@@ -811,27 +839,96 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
811
839
|
projectId: string;
|
|
812
840
|
/** The current Uniform integration source ID */
|
|
813
841
|
sourceId: string;
|
|
842
|
+
/** The resolved data if this source is connected to a data resource */
|
|
843
|
+
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
|
+
/**
|
|
851
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
852
|
+
*
|
|
853
|
+
* Default: 1
|
|
854
|
+
*/
|
|
855
|
+
maxAssets?: number;
|
|
814
856
|
};
|
|
815
857
|
type AssetParamValue = AssetParamValueItem[];
|
|
816
858
|
type AssetParamValueItem = {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
type?: string;
|
|
859
|
+
type: string;
|
|
860
|
+
_id: string;
|
|
820
861
|
/**
|
|
821
862
|
* Internal Uniform source ID or
|
|
822
863
|
* dataType ID of the global integration library
|
|
823
864
|
* which created this asset item
|
|
824
865
|
*/
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
866
|
+
_source?: string;
|
|
867
|
+
fields: {
|
|
868
|
+
url: {
|
|
869
|
+
type: 'text';
|
|
870
|
+
value: string;
|
|
871
|
+
};
|
|
872
|
+
id?: {
|
|
873
|
+
type: 'text';
|
|
874
|
+
value: string | undefined;
|
|
875
|
+
};
|
|
876
|
+
title?: {
|
|
877
|
+
type: 'text';
|
|
878
|
+
value: string | undefined;
|
|
879
|
+
};
|
|
880
|
+
description?: {
|
|
881
|
+
type: 'text';
|
|
882
|
+
value: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
mediaType?: {
|
|
885
|
+
type: 'text';
|
|
886
|
+
value: string | undefined;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* The width of the original asset
|
|
890
|
+
*
|
|
891
|
+
* Should resolve to a number but might
|
|
892
|
+
* be a string with a pointer reference
|
|
893
|
+
*/
|
|
894
|
+
width?: {
|
|
895
|
+
type: 'number';
|
|
896
|
+
value: number | string | undefined;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* The height of the original asset
|
|
900
|
+
*
|
|
901
|
+
* Should resolve to a number but might
|
|
902
|
+
* be a string with a pointer reference
|
|
903
|
+
*/
|
|
904
|
+
height?: {
|
|
905
|
+
type: 'number';
|
|
906
|
+
value: number | string | undefined;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* The size in bytes of the original asset
|
|
910
|
+
*
|
|
911
|
+
* Should resolve to a number but might
|
|
912
|
+
* be a string with a pointer reference
|
|
913
|
+
*/
|
|
914
|
+
size?: {
|
|
915
|
+
type: 'number';
|
|
916
|
+
value: number | string | undefined;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Any key/value properties which the source
|
|
920
|
+
* wants to attach to the asset data
|
|
921
|
+
*/
|
|
922
|
+
custom?: {
|
|
923
|
+
type: string;
|
|
924
|
+
value: Record<string, unknown>;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
_overrides?: {
|
|
928
|
+
fields: ComponentOverride['parameters'];
|
|
929
|
+
};
|
|
833
930
|
};
|
|
834
|
-
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'
|
|
931
|
+
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
|
|
835
932
|
|
|
836
933
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
837
934
|
type DataConnectorInfo = {
|
|
@@ -1114,7 +1211,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
1114
1211
|
/**
|
|
1115
1212
|
* Known location types that can be passed to a mesh location
|
|
1116
1213
|
*/
|
|
1117
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | '
|
|
1214
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'aiMetadata';
|
|
1118
1215
|
type SetValueOptions = ValidationResult;
|
|
1119
1216
|
type SetValueMessage = {
|
|
1120
1217
|
uniformMeshLocationValue: unknown;
|
|
@@ -1151,8 +1248,8 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
1151
1248
|
type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1152
1249
|
settings: TIntegrationConfiguration;
|
|
1153
1250
|
};
|
|
1154
|
-
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, '
|
|
1155
|
-
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, '
|
|
1251
|
+
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1252
|
+
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1156
1253
|
|
|
1157
1254
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
1158
1255
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.79.0",
|
|
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.79.0",
|
|
37
|
+
"@uniformdev/context": "19.79.0",
|
|
38
|
+
"@uniformdev/project-map": "19.79.0",
|
|
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": "78f5ededbaa1a67d58d808eac23ab64769e14e10"
|
|
46
46
|
}
|