@uniformdev/mesh-sdk 20.1.1-alpha.2 → 20.3.1-alpha.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 +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.esm.js +22 -2
- package/dist/index.js +25 -3
- package/dist/index.mjs +22 -2
- package/package.json +8 -7
package/dist/index.d.mts
CHANGED
|
@@ -217,6 +217,22 @@ interface paths$1 {
|
|
|
217
217
|
generateUrl: string;
|
|
218
218
|
metadataUrl?: string;
|
|
219
219
|
};
|
|
220
|
+
aiAgents?: {
|
|
221
|
+
functionCalling?: {
|
|
222
|
+
handlerUrl: string;
|
|
223
|
+
functions: {
|
|
224
|
+
definition: {
|
|
225
|
+
name: string;
|
|
226
|
+
description: string;
|
|
227
|
+
parameters?: {
|
|
228
|
+
[key: string]: unknown;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
systemParameters?: "pageHtml"[];
|
|
232
|
+
includedAgents?: ("scout" | "sage")[];
|
|
233
|
+
}[];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
220
236
|
};
|
|
221
237
|
unstable_prompts?: {
|
|
222
238
|
/** Format: uuid */
|
|
@@ -445,6 +461,22 @@ interface paths$1 {
|
|
|
445
461
|
generateUrl: string;
|
|
446
462
|
metadataUrl?: string;
|
|
447
463
|
};
|
|
464
|
+
aiAgents?: {
|
|
465
|
+
functionCalling?: {
|
|
466
|
+
handlerUrl: string;
|
|
467
|
+
functions: {
|
|
468
|
+
definition: {
|
|
469
|
+
name: string;
|
|
470
|
+
description: string;
|
|
471
|
+
parameters?: {
|
|
472
|
+
[key: string]: unknown;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
systemParameters?: "pageHtml"[];
|
|
476
|
+
includedAgents?: ("scout" | "sage")[];
|
|
477
|
+
}[];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
448
480
|
};
|
|
449
481
|
unstable_prompts?: {
|
|
450
482
|
/** Format: uuid */
|
|
@@ -658,6 +690,22 @@ interface paths$1 {
|
|
|
658
690
|
generateUrl: string;
|
|
659
691
|
metadataUrl?: string;
|
|
660
692
|
};
|
|
693
|
+
aiAgents?: {
|
|
694
|
+
functionCalling?: {
|
|
695
|
+
handlerUrl: string;
|
|
696
|
+
functions: {
|
|
697
|
+
definition: {
|
|
698
|
+
name: string;
|
|
699
|
+
description: string;
|
|
700
|
+
parameters?: {
|
|
701
|
+
[key: string]: unknown;
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
systemParameters?: "pageHtml"[];
|
|
705
|
+
includedAgents?: ("scout" | "sage")[];
|
|
706
|
+
}[];
|
|
707
|
+
};
|
|
708
|
+
};
|
|
661
709
|
};
|
|
662
710
|
unstable_prompts?: {
|
|
663
711
|
/** Format: uuid */
|
|
@@ -1220,6 +1268,22 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
1220
1268
|
generateUrl: string;
|
|
1221
1269
|
metadataUrl?: string;
|
|
1222
1270
|
};
|
|
1271
|
+
aiAgents?: {
|
|
1272
|
+
functionCalling?: {
|
|
1273
|
+
handlerUrl: string;
|
|
1274
|
+
functions: {
|
|
1275
|
+
definition: {
|
|
1276
|
+
name: string;
|
|
1277
|
+
description: string;
|
|
1278
|
+
parameters?: {
|
|
1279
|
+
[key: string]: unknown;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
systemParameters?: "pageHtml"[];
|
|
1283
|
+
includedAgents?: ("scout" | "sage")[];
|
|
1284
|
+
}[];
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1223
1287
|
};
|
|
1224
1288
|
unstable_prompts?: {
|
|
1225
1289
|
id: string;
|
|
@@ -1259,6 +1323,36 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
1259
1323
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
1260
1324
|
}
|
|
1261
1325
|
|
|
1326
|
+
/** @deprecated experimental */
|
|
1327
|
+
type FunctionCallResponse = {
|
|
1328
|
+
message: string;
|
|
1329
|
+
image?: {
|
|
1330
|
+
url: string;
|
|
1331
|
+
description: string;
|
|
1332
|
+
width: number;
|
|
1333
|
+
height: number;
|
|
1334
|
+
};
|
|
1335
|
+
iframe?: {
|
|
1336
|
+
url: string;
|
|
1337
|
+
description: string;
|
|
1338
|
+
width: number;
|
|
1339
|
+
height: number;
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
/** @deprecated experimental */
|
|
1343
|
+
declare const functionCallSystemParameters: readonly ["pageHtml"];
|
|
1344
|
+
/** @deprecated experimental */
|
|
1345
|
+
type FunctionCallSystemParameter = (typeof functionCallSystemParameters)[number];
|
|
1346
|
+
/** @deprecated experimental */
|
|
1347
|
+
declare function parseFunctionCall<Parameters extends Record<string, string>, Settings = Record<string, string>>(request: Pick<Request, 'body'>): {
|
|
1348
|
+
functionCall: {
|
|
1349
|
+
arguments: Parameters;
|
|
1350
|
+
name: string;
|
|
1351
|
+
};
|
|
1352
|
+
settings: Settings;
|
|
1353
|
+
systemParameters: Record<FunctionCallSystemParameter, string | undefined>;
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1262
1356
|
type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1263
1357
|
/** The current Uniform integration source ID */
|
|
1264
1358
|
sourceId: string;
|
|
@@ -1912,4 +2006,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1912
2006
|
*/
|
|
1913
2007
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1914
2008
|
|
|
1915
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
|
|
2009
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,22 @@ interface paths$1 {
|
|
|
217
217
|
generateUrl: string;
|
|
218
218
|
metadataUrl?: string;
|
|
219
219
|
};
|
|
220
|
+
aiAgents?: {
|
|
221
|
+
functionCalling?: {
|
|
222
|
+
handlerUrl: string;
|
|
223
|
+
functions: {
|
|
224
|
+
definition: {
|
|
225
|
+
name: string;
|
|
226
|
+
description: string;
|
|
227
|
+
parameters?: {
|
|
228
|
+
[key: string]: unknown;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
systemParameters?: "pageHtml"[];
|
|
232
|
+
includedAgents?: ("scout" | "sage")[];
|
|
233
|
+
}[];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
220
236
|
};
|
|
221
237
|
unstable_prompts?: {
|
|
222
238
|
/** Format: uuid */
|
|
@@ -445,6 +461,22 @@ interface paths$1 {
|
|
|
445
461
|
generateUrl: string;
|
|
446
462
|
metadataUrl?: string;
|
|
447
463
|
};
|
|
464
|
+
aiAgents?: {
|
|
465
|
+
functionCalling?: {
|
|
466
|
+
handlerUrl: string;
|
|
467
|
+
functions: {
|
|
468
|
+
definition: {
|
|
469
|
+
name: string;
|
|
470
|
+
description: string;
|
|
471
|
+
parameters?: {
|
|
472
|
+
[key: string]: unknown;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
systemParameters?: "pageHtml"[];
|
|
476
|
+
includedAgents?: ("scout" | "sage")[];
|
|
477
|
+
}[];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
448
480
|
};
|
|
449
481
|
unstable_prompts?: {
|
|
450
482
|
/** Format: uuid */
|
|
@@ -658,6 +690,22 @@ interface paths$1 {
|
|
|
658
690
|
generateUrl: string;
|
|
659
691
|
metadataUrl?: string;
|
|
660
692
|
};
|
|
693
|
+
aiAgents?: {
|
|
694
|
+
functionCalling?: {
|
|
695
|
+
handlerUrl: string;
|
|
696
|
+
functions: {
|
|
697
|
+
definition: {
|
|
698
|
+
name: string;
|
|
699
|
+
description: string;
|
|
700
|
+
parameters?: {
|
|
701
|
+
[key: string]: unknown;
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
systemParameters?: "pageHtml"[];
|
|
705
|
+
includedAgents?: ("scout" | "sage")[];
|
|
706
|
+
}[];
|
|
707
|
+
};
|
|
708
|
+
};
|
|
661
709
|
};
|
|
662
710
|
unstable_prompts?: {
|
|
663
711
|
/** Format: uuid */
|
|
@@ -1220,6 +1268,22 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
1220
1268
|
generateUrl: string;
|
|
1221
1269
|
metadataUrl?: string;
|
|
1222
1270
|
};
|
|
1271
|
+
aiAgents?: {
|
|
1272
|
+
functionCalling?: {
|
|
1273
|
+
handlerUrl: string;
|
|
1274
|
+
functions: {
|
|
1275
|
+
definition: {
|
|
1276
|
+
name: string;
|
|
1277
|
+
description: string;
|
|
1278
|
+
parameters?: {
|
|
1279
|
+
[key: string]: unknown;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
systemParameters?: "pageHtml"[];
|
|
1283
|
+
includedAgents?: ("scout" | "sage")[];
|
|
1284
|
+
}[];
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1223
1287
|
};
|
|
1224
1288
|
unstable_prompts?: {
|
|
1225
1289
|
id: string;
|
|
@@ -1259,6 +1323,36 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
1259
1323
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
1260
1324
|
}
|
|
1261
1325
|
|
|
1326
|
+
/** @deprecated experimental */
|
|
1327
|
+
type FunctionCallResponse = {
|
|
1328
|
+
message: string;
|
|
1329
|
+
image?: {
|
|
1330
|
+
url: string;
|
|
1331
|
+
description: string;
|
|
1332
|
+
width: number;
|
|
1333
|
+
height: number;
|
|
1334
|
+
};
|
|
1335
|
+
iframe?: {
|
|
1336
|
+
url: string;
|
|
1337
|
+
description: string;
|
|
1338
|
+
width: number;
|
|
1339
|
+
height: number;
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
/** @deprecated experimental */
|
|
1343
|
+
declare const functionCallSystemParameters: readonly ["pageHtml"];
|
|
1344
|
+
/** @deprecated experimental */
|
|
1345
|
+
type FunctionCallSystemParameter = (typeof functionCallSystemParameters)[number];
|
|
1346
|
+
/** @deprecated experimental */
|
|
1347
|
+
declare function parseFunctionCall<Parameters extends Record<string, string>, Settings = Record<string, string>>(request: Pick<Request, 'body'>): {
|
|
1348
|
+
functionCall: {
|
|
1349
|
+
arguments: Parameters;
|
|
1350
|
+
name: string;
|
|
1351
|
+
};
|
|
1352
|
+
settings: Settings;
|
|
1353
|
+
systemParameters: Record<FunctionCallSystemParameter, string | undefined>;
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1262
1356
|
type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1263
1357
|
/** The current Uniform integration source ID */
|
|
1264
1358
|
sourceId: string;
|
|
@@ -1912,4 +2006,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1912
2006
|
*/
|
|
1913
2007
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1914
2008
|
|
|
1915
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
|
|
2009
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
package/dist/index.esm.js
CHANGED
|
@@ -86,6 +86,24 @@ _url2 = new WeakMap();
|
|
|
86
86
|
__privateAdd(_IntegrationInstallationClient, _url2, "/api/v1/integration-installations");
|
|
87
87
|
var IntegrationInstallationClient = _IntegrationInstallationClient;
|
|
88
88
|
|
|
89
|
+
// src/locations/aiAgents.ts
|
|
90
|
+
var functionCallSystemParameters = ["pageHtml"];
|
|
91
|
+
function parseFunctionCall(request) {
|
|
92
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
93
|
+
const settings = body == null ? void 0 : body.settings;
|
|
94
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
95
|
+
return {
|
|
96
|
+
functionCall: {
|
|
97
|
+
...functionCall,
|
|
98
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
99
|
+
},
|
|
100
|
+
settings,
|
|
101
|
+
systemParameters: {
|
|
102
|
+
pageHtml: body.systemParameters.pageHtml
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
89
107
|
// src/sdk.ts
|
|
90
108
|
import mitt from "mitt";
|
|
91
109
|
|
|
@@ -113,7 +131,7 @@ var getLogger = (prefix, debug) => {
|
|
|
113
131
|
};
|
|
114
132
|
|
|
115
133
|
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "20.
|
|
134
|
+
var UNIFORM_MESH_SDK_VERSION = "20.3.0";
|
|
117
135
|
|
|
118
136
|
// src/framepost/constants.ts
|
|
119
137
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -806,7 +824,9 @@ var hasRole = (role, user) => {
|
|
|
806
824
|
export {
|
|
807
825
|
IntegrationDefinitionClient,
|
|
808
826
|
IntegrationInstallationClient,
|
|
827
|
+
functionCallSystemParameters,
|
|
809
828
|
hasPermissions,
|
|
810
829
|
hasRole,
|
|
811
|
-
initializeUniformMeshSDK
|
|
830
|
+
initializeUniformMeshSDK,
|
|
831
|
+
parseFunctionCall
|
|
812
832
|
};
|
package/dist/index.js
CHANGED
|
@@ -38,9 +38,11 @@ var src_exports = {};
|
|
|
38
38
|
__export(src_exports, {
|
|
39
39
|
IntegrationDefinitionClient: () => IntegrationDefinitionClient,
|
|
40
40
|
IntegrationInstallationClient: () => IntegrationInstallationClient,
|
|
41
|
+
functionCallSystemParameters: () => functionCallSystemParameters,
|
|
41
42
|
hasPermissions: () => hasPermissions,
|
|
42
43
|
hasRole: () => hasRole,
|
|
43
|
-
initializeUniformMeshSDK: () => initializeUniformMeshSDK
|
|
44
|
+
initializeUniformMeshSDK: () => initializeUniformMeshSDK,
|
|
45
|
+
parseFunctionCall: () => parseFunctionCall
|
|
44
46
|
});
|
|
45
47
|
module.exports = __toCommonJS(src_exports);
|
|
46
48
|
|
|
@@ -125,6 +127,24 @@ _url2 = new WeakMap();
|
|
|
125
127
|
__privateAdd(_IntegrationInstallationClient, _url2, "/api/v1/integration-installations");
|
|
126
128
|
var IntegrationInstallationClient = _IntegrationInstallationClient;
|
|
127
129
|
|
|
130
|
+
// src/locations/aiAgents.ts
|
|
131
|
+
var functionCallSystemParameters = ["pageHtml"];
|
|
132
|
+
function parseFunctionCall(request) {
|
|
133
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
134
|
+
const settings = body == null ? void 0 : body.settings;
|
|
135
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
136
|
+
return {
|
|
137
|
+
functionCall: {
|
|
138
|
+
...functionCall,
|
|
139
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
140
|
+
},
|
|
141
|
+
settings,
|
|
142
|
+
systemParameters: {
|
|
143
|
+
pageHtml: body.systemParameters.pageHtml
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
128
148
|
// src/sdk.ts
|
|
129
149
|
var import_mitt = __toESM(require("mitt"));
|
|
130
150
|
|
|
@@ -152,7 +172,7 @@ var getLogger = (prefix, debug) => {
|
|
|
152
172
|
};
|
|
153
173
|
|
|
154
174
|
// src/temp/version.ts
|
|
155
|
-
var UNIFORM_MESH_SDK_VERSION = "20.
|
|
175
|
+
var UNIFORM_MESH_SDK_VERSION = "20.3.0";
|
|
156
176
|
|
|
157
177
|
// src/framepost/constants.ts
|
|
158
178
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -846,7 +866,9 @@ var hasRole = (role, user) => {
|
|
|
846
866
|
0 && (module.exports = {
|
|
847
867
|
IntegrationDefinitionClient,
|
|
848
868
|
IntegrationInstallationClient,
|
|
869
|
+
functionCallSystemParameters,
|
|
849
870
|
hasPermissions,
|
|
850
871
|
hasRole,
|
|
851
|
-
initializeUniformMeshSDK
|
|
872
|
+
initializeUniformMeshSDK,
|
|
873
|
+
parseFunctionCall
|
|
852
874
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -86,6 +86,24 @@ _url2 = new WeakMap();
|
|
|
86
86
|
__privateAdd(_IntegrationInstallationClient, _url2, "/api/v1/integration-installations");
|
|
87
87
|
var IntegrationInstallationClient = _IntegrationInstallationClient;
|
|
88
88
|
|
|
89
|
+
// src/locations/aiAgents.ts
|
|
90
|
+
var functionCallSystemParameters = ["pageHtml"];
|
|
91
|
+
function parseFunctionCall(request) {
|
|
92
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
93
|
+
const settings = body == null ? void 0 : body.settings;
|
|
94
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
95
|
+
return {
|
|
96
|
+
functionCall: {
|
|
97
|
+
...functionCall,
|
|
98
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
99
|
+
},
|
|
100
|
+
settings,
|
|
101
|
+
systemParameters: {
|
|
102
|
+
pageHtml: body.systemParameters.pageHtml
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
89
107
|
// src/sdk.ts
|
|
90
108
|
import mitt from "mitt";
|
|
91
109
|
|
|
@@ -113,7 +131,7 @@ var getLogger = (prefix, debug) => {
|
|
|
113
131
|
};
|
|
114
132
|
|
|
115
133
|
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "20.
|
|
134
|
+
var UNIFORM_MESH_SDK_VERSION = "20.3.0";
|
|
117
135
|
|
|
118
136
|
// src/framepost/constants.ts
|
|
119
137
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -806,7 +824,9 @@ var hasRole = (role, user) => {
|
|
|
806
824
|
export {
|
|
807
825
|
IntegrationDefinitionClient,
|
|
808
826
|
IntegrationInstallationClient,
|
|
827
|
+
functionCallSystemParameters,
|
|
809
828
|
hasPermissions,
|
|
810
829
|
hasRole,
|
|
811
|
-
initializeUniformMeshSDK
|
|
830
|
+
initializeUniformMeshSDK,
|
|
831
|
+
parseFunctionCall
|
|
812
832
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.1-alpha.0+86ebe90984",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,15 +34,16 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@uniformdev/assets": "20.
|
|
38
|
-
"@uniformdev/canvas": "20.
|
|
39
|
-
"@uniformdev/context": "20.
|
|
40
|
-
"@uniformdev/project-map": "20.
|
|
37
|
+
"@uniformdev/assets": "20.3.1-alpha.0+86ebe90984",
|
|
38
|
+
"@uniformdev/canvas": "20.3.1-alpha.0+86ebe90984",
|
|
39
|
+
"@uniformdev/context": "20.3.1-alpha.0+86ebe90984",
|
|
40
|
+
"@uniformdev/project-map": "20.3.1-alpha.0+86ebe90984",
|
|
41
41
|
"imagesloaded": "^5.0.0",
|
|
42
42
|
"mitt": "^3.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/imagesloaded": "^4.1.2"
|
|
45
|
+
"@types/imagesloaded": "^4.1.2",
|
|
46
|
+
"openai": "^4.58.2"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "86ebe909840ce1e8a9ecabc93298b5243a7b6179"
|
|
48
49
|
}
|