@uniformdev/mesh-sdk 19.201.1 → 19.202.1-alpha.9
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 +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.esm.js +17 -2
- package/dist/index.js +19 -3
- package/dist/index.mjs +17 -2
- package/package.json +7 -6
package/dist/index.d.mts
CHANGED
|
@@ -174,6 +174,19 @@ interface paths$1 {
|
|
|
174
174
|
generateUrl: string;
|
|
175
175
|
metadataUrl?: string;
|
|
176
176
|
};
|
|
177
|
+
aiAgents?: {
|
|
178
|
+
functionCalling?: {
|
|
179
|
+
handlerUrl: string;
|
|
180
|
+
functions: {
|
|
181
|
+
definition: {
|
|
182
|
+
name: string;
|
|
183
|
+
description: string;
|
|
184
|
+
parameters?: unknown;
|
|
185
|
+
};
|
|
186
|
+
includedAgents?: ("scout" | "sage")[];
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
189
|
+
};
|
|
177
190
|
};
|
|
178
191
|
unstable_prompts?: {
|
|
179
192
|
/** Format: uuid */
|
|
@@ -360,6 +373,19 @@ interface paths$1 {
|
|
|
360
373
|
generateUrl: string;
|
|
361
374
|
metadataUrl?: string;
|
|
362
375
|
};
|
|
376
|
+
aiAgents?: {
|
|
377
|
+
functionCalling?: {
|
|
378
|
+
handlerUrl: string;
|
|
379
|
+
functions: {
|
|
380
|
+
definition: {
|
|
381
|
+
name: string;
|
|
382
|
+
description: string;
|
|
383
|
+
parameters?: unknown;
|
|
384
|
+
};
|
|
385
|
+
includedAgents?: ("scout" | "sage")[];
|
|
386
|
+
}[];
|
|
387
|
+
};
|
|
388
|
+
};
|
|
363
389
|
};
|
|
364
390
|
unstable_prompts?: {
|
|
365
391
|
/** Format: uuid */
|
|
@@ -531,6 +557,19 @@ interface paths$1 {
|
|
|
531
557
|
generateUrl: string;
|
|
532
558
|
metadataUrl?: string;
|
|
533
559
|
};
|
|
560
|
+
aiAgents?: {
|
|
561
|
+
functionCalling?: {
|
|
562
|
+
handlerUrl: string;
|
|
563
|
+
functions: {
|
|
564
|
+
definition: {
|
|
565
|
+
name: string;
|
|
566
|
+
description: string;
|
|
567
|
+
parameters?: unknown;
|
|
568
|
+
};
|
|
569
|
+
includedAgents?: ("scout" | "sage")[];
|
|
570
|
+
}[];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
534
573
|
};
|
|
535
574
|
unstable_prompts?: {
|
|
536
575
|
/** Format: uuid */
|
|
@@ -1065,6 +1104,19 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
1065
1104
|
generateUrl: string;
|
|
1066
1105
|
metadataUrl?: string;
|
|
1067
1106
|
};
|
|
1107
|
+
aiAgents?: {
|
|
1108
|
+
functionCalling?: {
|
|
1109
|
+
handlerUrl: string;
|
|
1110
|
+
functions: {
|
|
1111
|
+
definition: {
|
|
1112
|
+
name: string;
|
|
1113
|
+
description: string;
|
|
1114
|
+
parameters?: unknown;
|
|
1115
|
+
};
|
|
1116
|
+
includedAgents?: ("scout" | "sage")[];
|
|
1117
|
+
}[];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1068
1120
|
};
|
|
1069
1121
|
unstable_prompts?: {
|
|
1070
1122
|
id: string;
|
|
@@ -1104,6 +1156,14 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
1104
1156
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
1105
1157
|
}
|
|
1106
1158
|
|
|
1159
|
+
declare function parseFunctionCall<Parameters extends Record<string, string>, Settings = Record<string, string>>(request: Pick<Request, 'body'>): {
|
|
1160
|
+
functionCall: {
|
|
1161
|
+
arguments: Parameters;
|
|
1162
|
+
name: string;
|
|
1163
|
+
};
|
|
1164
|
+
settings: Settings;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1107
1167
|
type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1108
1168
|
/** The current Uniform integration source ID */
|
|
1109
1169
|
sourceId: string;
|
|
@@ -1749,4 +1809,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1749
1809
|
*/
|
|
1750
1810
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1751
1811
|
|
|
1752
|
-
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 };
|
|
1812
|
+
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, parseFunctionCall };
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,19 @@ interface paths$1 {
|
|
|
174
174
|
generateUrl: string;
|
|
175
175
|
metadataUrl?: string;
|
|
176
176
|
};
|
|
177
|
+
aiAgents?: {
|
|
178
|
+
functionCalling?: {
|
|
179
|
+
handlerUrl: string;
|
|
180
|
+
functions: {
|
|
181
|
+
definition: {
|
|
182
|
+
name: string;
|
|
183
|
+
description: string;
|
|
184
|
+
parameters?: unknown;
|
|
185
|
+
};
|
|
186
|
+
includedAgents?: ("scout" | "sage")[];
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
189
|
+
};
|
|
177
190
|
};
|
|
178
191
|
unstable_prompts?: {
|
|
179
192
|
/** Format: uuid */
|
|
@@ -360,6 +373,19 @@ interface paths$1 {
|
|
|
360
373
|
generateUrl: string;
|
|
361
374
|
metadataUrl?: string;
|
|
362
375
|
};
|
|
376
|
+
aiAgents?: {
|
|
377
|
+
functionCalling?: {
|
|
378
|
+
handlerUrl: string;
|
|
379
|
+
functions: {
|
|
380
|
+
definition: {
|
|
381
|
+
name: string;
|
|
382
|
+
description: string;
|
|
383
|
+
parameters?: unknown;
|
|
384
|
+
};
|
|
385
|
+
includedAgents?: ("scout" | "sage")[];
|
|
386
|
+
}[];
|
|
387
|
+
};
|
|
388
|
+
};
|
|
363
389
|
};
|
|
364
390
|
unstable_prompts?: {
|
|
365
391
|
/** Format: uuid */
|
|
@@ -531,6 +557,19 @@ interface paths$1 {
|
|
|
531
557
|
generateUrl: string;
|
|
532
558
|
metadataUrl?: string;
|
|
533
559
|
};
|
|
560
|
+
aiAgents?: {
|
|
561
|
+
functionCalling?: {
|
|
562
|
+
handlerUrl: string;
|
|
563
|
+
functions: {
|
|
564
|
+
definition: {
|
|
565
|
+
name: string;
|
|
566
|
+
description: string;
|
|
567
|
+
parameters?: unknown;
|
|
568
|
+
};
|
|
569
|
+
includedAgents?: ("scout" | "sage")[];
|
|
570
|
+
}[];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
534
573
|
};
|
|
535
574
|
unstable_prompts?: {
|
|
536
575
|
/** Format: uuid */
|
|
@@ -1065,6 +1104,19 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
1065
1104
|
generateUrl: string;
|
|
1066
1105
|
metadataUrl?: string;
|
|
1067
1106
|
};
|
|
1107
|
+
aiAgents?: {
|
|
1108
|
+
functionCalling?: {
|
|
1109
|
+
handlerUrl: string;
|
|
1110
|
+
functions: {
|
|
1111
|
+
definition: {
|
|
1112
|
+
name: string;
|
|
1113
|
+
description: string;
|
|
1114
|
+
parameters?: unknown;
|
|
1115
|
+
};
|
|
1116
|
+
includedAgents?: ("scout" | "sage")[];
|
|
1117
|
+
}[];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1068
1120
|
};
|
|
1069
1121
|
unstable_prompts?: {
|
|
1070
1122
|
id: string;
|
|
@@ -1104,6 +1156,14 @@ declare class IntegrationInstallationClient extends ApiClient {
|
|
|
1104
1156
|
remove(body: ExceptProject<IntegrationInstallationDeleteParameters>): Promise<void>;
|
|
1105
1157
|
}
|
|
1106
1158
|
|
|
1159
|
+
declare function parseFunctionCall<Parameters extends Record<string, string>, Settings = Record<string, string>>(request: Pick<Request, 'body'>): {
|
|
1160
|
+
functionCall: {
|
|
1161
|
+
arguments: Parameters;
|
|
1162
|
+
name: string;
|
|
1163
|
+
};
|
|
1164
|
+
settings: Settings;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1107
1167
|
type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1108
1168
|
/** The current Uniform integration source ID */
|
|
1109
1169
|
sourceId: string;
|
|
@@ -1749,4 +1809,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1749
1809
|
*/
|
|
1750
1810
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1751
1811
|
|
|
1752
|
-
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 };
|
|
1812
|
+
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, parseFunctionCall };
|
package/dist/index.esm.js
CHANGED
|
@@ -86,6 +86,20 @@ _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
|
+
function parseFunctionCall(request) {
|
|
91
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
92
|
+
const settings = body == null ? void 0 : body.settings;
|
|
93
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
94
|
+
return {
|
|
95
|
+
functionCall: {
|
|
96
|
+
...functionCall,
|
|
97
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
98
|
+
},
|
|
99
|
+
settings
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
89
103
|
// src/sdk.ts
|
|
90
104
|
import mitt from "mitt";
|
|
91
105
|
|
|
@@ -113,7 +127,7 @@ var getLogger = (prefix, debug) => {
|
|
|
113
127
|
};
|
|
114
128
|
|
|
115
129
|
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "19.
|
|
130
|
+
var UNIFORM_MESH_SDK_VERSION = "19.207.0";
|
|
117
131
|
|
|
118
132
|
// src/framepost/constants.ts
|
|
119
133
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -808,5 +822,6 @@ export {
|
|
|
808
822
|
IntegrationInstallationClient,
|
|
809
823
|
hasPermissions,
|
|
810
824
|
hasRole,
|
|
811
|
-
initializeUniformMeshSDK
|
|
825
|
+
initializeUniformMeshSDK,
|
|
826
|
+
parseFunctionCall
|
|
812
827
|
};
|
package/dist/index.js
CHANGED
|
@@ -40,7 +40,8 @@ __export(src_exports, {
|
|
|
40
40
|
IntegrationInstallationClient: () => IntegrationInstallationClient,
|
|
41
41
|
hasPermissions: () => hasPermissions,
|
|
42
42
|
hasRole: () => hasRole,
|
|
43
|
-
initializeUniformMeshSDK: () => initializeUniformMeshSDK
|
|
43
|
+
initializeUniformMeshSDK: () => initializeUniformMeshSDK,
|
|
44
|
+
parseFunctionCall: () => parseFunctionCall
|
|
44
45
|
});
|
|
45
46
|
module.exports = __toCommonJS(src_exports);
|
|
46
47
|
|
|
@@ -125,6 +126,20 @@ _url2 = new WeakMap();
|
|
|
125
126
|
__privateAdd(_IntegrationInstallationClient, _url2, "/api/v1/integration-installations");
|
|
126
127
|
var IntegrationInstallationClient = _IntegrationInstallationClient;
|
|
127
128
|
|
|
129
|
+
// src/locations/aiAgents.ts
|
|
130
|
+
function parseFunctionCall(request) {
|
|
131
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
132
|
+
const settings = body == null ? void 0 : body.settings;
|
|
133
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
134
|
+
return {
|
|
135
|
+
functionCall: {
|
|
136
|
+
...functionCall,
|
|
137
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
138
|
+
},
|
|
139
|
+
settings
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
128
143
|
// src/sdk.ts
|
|
129
144
|
var import_mitt = __toESM(require("mitt"));
|
|
130
145
|
|
|
@@ -152,7 +167,7 @@ var getLogger = (prefix, debug) => {
|
|
|
152
167
|
};
|
|
153
168
|
|
|
154
169
|
// src/temp/version.ts
|
|
155
|
-
var UNIFORM_MESH_SDK_VERSION = "19.
|
|
170
|
+
var UNIFORM_MESH_SDK_VERSION = "19.207.0";
|
|
156
171
|
|
|
157
172
|
// src/framepost/constants.ts
|
|
158
173
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -848,5 +863,6 @@ var hasRole = (role, user) => {
|
|
|
848
863
|
IntegrationInstallationClient,
|
|
849
864
|
hasPermissions,
|
|
850
865
|
hasRole,
|
|
851
|
-
initializeUniformMeshSDK
|
|
866
|
+
initializeUniformMeshSDK,
|
|
867
|
+
parseFunctionCall
|
|
852
868
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -86,6 +86,20 @@ _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
|
+
function parseFunctionCall(request) {
|
|
91
|
+
const body = typeof request.body === "string" ? JSON.parse(request.body) : request.body;
|
|
92
|
+
const settings = body == null ? void 0 : body.settings;
|
|
93
|
+
const functionCall = body == null ? void 0 : body.functionCall;
|
|
94
|
+
return {
|
|
95
|
+
functionCall: {
|
|
96
|
+
...functionCall,
|
|
97
|
+
arguments: JSON.parse(functionCall.arguments)
|
|
98
|
+
},
|
|
99
|
+
settings
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
89
103
|
// src/sdk.ts
|
|
90
104
|
import mitt from "mitt";
|
|
91
105
|
|
|
@@ -113,7 +127,7 @@ var getLogger = (prefix, debug) => {
|
|
|
113
127
|
};
|
|
114
128
|
|
|
115
129
|
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "19.
|
|
130
|
+
var UNIFORM_MESH_SDK_VERSION = "19.207.0";
|
|
117
131
|
|
|
118
132
|
// src/framepost/constants.ts
|
|
119
133
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
@@ -808,5 +822,6 @@ export {
|
|
|
808
822
|
IntegrationInstallationClient,
|
|
809
823
|
hasPermissions,
|
|
810
824
|
hasRole,
|
|
811
|
-
initializeUniformMeshSDK
|
|
825
|
+
initializeUniformMeshSDK,
|
|
826
|
+
parseFunctionCall
|
|
812
827
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.202.1-alpha.9+63c059770a",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@uniformdev/canvas": "19.
|
|
38
|
-
"@uniformdev/context": "19.
|
|
39
|
-
"@uniformdev/project-map": "19.
|
|
37
|
+
"@uniformdev/canvas": "19.202.1-alpha.9+63c059770a",
|
|
38
|
+
"@uniformdev/context": "19.202.1-alpha.9+63c059770a",
|
|
39
|
+
"@uniformdev/project-map": "19.202.1-alpha.9+63c059770a",
|
|
40
40
|
"imagesloaded": "^5.0.0",
|
|
41
41
|
"mitt": "^3.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/imagesloaded": "^4.1.2"
|
|
44
|
+
"@types/imagesloaded": "^4.1.2",
|
|
45
|
+
"openai": "^4.58.2"
|
|
45
46
|
},
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "63c059770a54fc063a12af0f74eba059143e8074"
|
|
47
48
|
}
|