@uipath/maestro-builder-sdk 6.79.1 → 6.81.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/api-index.md +84 -79
- package/dist/api-members.md +266 -248
- package/dist/case/case-sdk.d.ts +129 -20
- package/dist/case/case-sdk.js +90 -1
- package/dist/case/check.js +17 -0
- package/dist/case/decompile-http-request.d.ts +29 -0
- package/dist/case/decompile-http-request.js +120 -0
- package/dist/case/decompile-script.d.ts +23 -0
- package/dist/case/decompile-script.js +53 -0
- package/dist/case/decompile.d.ts +6 -0
- package/dist/case/decompile.js +38 -0
- package/dist/case/http-request-metadata.json +49 -0
- package/dist/case/http-request.d.ts +143 -0
- package/dist/case/http-request.js +371 -0
- package/dist/case/load.js +12 -0
- package/dist/case/preserve.d.ts +11 -0
- package/dist/case/preserve.js +6 -0
- package/dist/case/script.d.ts +75 -0
- package/dist/case/script.js +124 -0
- package/dist/case/serialize.js +146 -0
- package/dist/core/refusals.d.ts +12 -0
- package/dist/core/refusals.js +18 -0
- package/dist/core/script-engine.d.ts +34 -0
- package/dist/core/script-engine.js +48 -0
- package/dist/nodes/script/flow/runtime.d.ts +1 -1
- package/dist/nodes/script/flow/runtime.js +5 -35
- package/dist/script-function-scope.js +44 -6
- package/package.json +2 -2
package/dist/case/decompile.js
CHANGED
|
@@ -3,6 +3,9 @@ import { cachedFieldValues, connectorTaskIdentity, savedOptionalConfiguration }
|
|
|
3
3
|
import { commentText } from '../core/comment-text.js';
|
|
4
4
|
import { implicitInArgTrigger } from './in-arg-binding.js';
|
|
5
5
|
import { tsLiteral, tsNumber } from '../core/ts-literal.js';
|
|
6
|
+
import { isScriptOwnOutput, liftScript } from './decompile-script.js';
|
|
7
|
+
import { isHttpRequestOwnOutput, liftHttpRequest } from './decompile-http-request.js';
|
|
8
|
+
import { savedHttpRequestMetadata } from './http-request.js';
|
|
6
9
|
import { CASE_FORMAT_PROFILE, CASE_SCHEMA_VERSIONS } from './format-profile.js';
|
|
7
10
|
import { EXTERNAL_TASK_CONTEXT, EXTERNAL_TASK_EVENT_CONTEXT, externalDescriptorRefusal, externalEventRefusal, externalServiceType, isExternalExecutionMode, libraryExecution } from './external.js';
|
|
8
11
|
import { preserveSchemaVersion } from '../schema-version.js';
|
|
@@ -1092,6 +1095,21 @@ function emitTaskKind(task, refs, library) {
|
|
|
1092
1095
|
}
|
|
1093
1096
|
if (kind === 'execute-connector-activity')
|
|
1094
1097
|
return connectorCall(task, refs, library);
|
|
1098
|
+
if (kind === 'script') {
|
|
1099
|
+
const lifted = liftScript(`script task "${task.displayName ?? task.id ?? '?'}"`, (data ?? {}));
|
|
1100
|
+
const options = opts([
|
|
1101
|
+
['responseSchema', lifted.options.responseSchema !== undefined ? tsLiteral(lifted.options.responseSchema) : undefined],
|
|
1102
|
+
['errorSchema', lifted.options.errorSchema !== undefined ? tsLiteral(lifted.options.errorSchema) : undefined],
|
|
1103
|
+
]);
|
|
1104
|
+
return `.script(${tsLiteral(lifted.body)}${options ? `, ${options}` : ''})`;
|
|
1105
|
+
}
|
|
1106
|
+
if (kind === 'http-request') {
|
|
1107
|
+
const spec = liftHttpRequest(`http-request task "${task.displayName ?? task.id ?? '?'}"`, (data ?? {}), {
|
|
1108
|
+
binding: (id) => refs.bindingById.get(id),
|
|
1109
|
+
label: (id) => bindingLabel(refs, id),
|
|
1110
|
+
});
|
|
1111
|
+
return `.httpRequest(${tsLiteral(spec)})`;
|
|
1112
|
+
}
|
|
1095
1113
|
if (kind === 'external-agent' || kind === 'external-workflow')
|
|
1096
1114
|
return externalCall(task, refs, library);
|
|
1097
1115
|
if (kind === 'wait-for-timer') {
|
|
@@ -1319,6 +1337,18 @@ function taskOutputRows(task) {
|
|
|
1319
1337
|
plan = customOnly(actionFormOutputs(task));
|
|
1320
1338
|
else if (kind === 'wait-for-timer')
|
|
1321
1339
|
plan = customOnly([]);
|
|
1340
|
+
// A script task writes its two rows itself; one it maps to a case variable is lifted too.
|
|
1341
|
+
else if (kind === 'script')
|
|
1342
|
+
plan = {
|
|
1343
|
+
lifted: rows.filter((row) => row.custom === true || (isScriptOwnOutput(row) && row.var !== row.id)),
|
|
1344
|
+
rebuilt: rows.filter(isScriptOwnOutput),
|
|
1345
|
+
};
|
|
1346
|
+
// An HTTP request writes its four rows itself; a row it maps to a case variable is lifted too.
|
|
1347
|
+
else if (kind === 'http-request')
|
|
1348
|
+
plan = {
|
|
1349
|
+
lifted: rows.filter((row) => row.custom === true || (isHttpRequestOwnOutput(row) && row.var !== row.id)),
|
|
1350
|
+
rebuilt: rows.filter(isHttpRequestOwnOutput),
|
|
1351
|
+
};
|
|
1322
1352
|
else if (kind === 'external-agent' || kind === 'external-workflow')
|
|
1323
1353
|
plan = customOnly(rows.filter(isConnectorOwnOutput));
|
|
1324
1354
|
else
|
|
@@ -2280,6 +2310,7 @@ export function collectPreservation(plan) {
|
|
|
2280
2310
|
]);
|
|
2281
2311
|
const taskFields = [];
|
|
2282
2312
|
const connectorConfigurations = [];
|
|
2313
|
+
const httpRequestMetadata = [];
|
|
2283
2314
|
const omitTaskElementIds = [];
|
|
2284
2315
|
const actionDataFields = [];
|
|
2285
2316
|
const omitStagePositions = [];
|
|
@@ -2338,12 +2369,19 @@ export function collectPreservation(plan) {
|
|
|
2338
2369
|
stage: label, lane: laneIndex, task: task.displayName ?? '', connector, optionalConfiguration,
|
|
2339
2370
|
cachedFieldValues: cachedFieldValues(task, optionalConfiguration),
|
|
2340
2371
|
});
|
|
2372
|
+
// An http-request task's metadata from another connector version than the
|
|
2373
|
+
// vendored copy compile writes: carried, so the round trip keeps it.
|
|
2374
|
+
const metadata = task.type === 'http-request' ? savedHttpRequestMetadata(task.data) : undefined;
|
|
2375
|
+
if (metadata)
|
|
2376
|
+
httpRequestMetadata.push({ stage: label, lane: laneIndex, task: task.displayName ?? '', metadata });
|
|
2341
2377
|
}));
|
|
2342
2378
|
}
|
|
2343
2379
|
if (taskFields.length)
|
|
2344
2380
|
preservation.taskFields = taskFields;
|
|
2345
2381
|
if (connectorConfigurations.length)
|
|
2346
2382
|
preservation.connectorConfigurations = connectorConfigurations;
|
|
2383
|
+
if (httpRequestMetadata.length)
|
|
2384
|
+
preservation.httpRequestMetadata = httpRequestMetadata;
|
|
2347
2385
|
const subscriptionFilterEntries = preservedSubscriptionFilters(plan);
|
|
2348
2386
|
if (subscriptionFilterEntries.length)
|
|
2349
2387
|
preservation.subscriptionFilters = subscriptionFilterEntries;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"activityPropertyConfiguration": {
|
|
3
|
+
"configuration": "=jsonString:{\"essentialConfiguration\":{\"connectorVersion\":\"1.5.3\",\"scriptRef\":null,\"customFieldsRequestDetails\":null,\"instanceParameters\":{\"connectorKey\":\"uipath-uipath-http\",\"objectName\":\"http-request\",\"httpMethod\":\"POST\",\"activityType\":\"Curated\",\"version\":\"1.0.0\",\"supportsStreaming\":false,\"subType\":\"method\"},\"objectName\":\"http-request\",\"operation\":\"create\",\"packageVersion\":\"1.0.0\",\"httpMethod\":\"POST\",\"path\":\"/http-request\",\"unifiedTypesCompatible\":true,\"savedJitInputFieldId\":\"in_http-request\"},\"optionalConfiguration\":{\"_textBlocks\":[{\"name\":\"contentTypeNotice\",\"text\":\"The content-type header must be application/json.\",\"position\":\"above\"}],\"objectActions\":[],\"connectorName\":\"HTTP\",\"agentIdentity\":null,\"maxPageSize\":100,\"jobArguments\":null,\"isAutopilotInvalidConfig\":false,\"additionalHeaders\":null,\"cachedLookupValues\":[],\"cachedBrowserItems\":[],\"cachedPropertyMappings\":[],\"primaryKeys\":[],\"objectDisplayName\":\"HTTP Request\",\"eventMode\":null,\"eventOperation\":null,\"hasBreakingChanges\":false,\"fieldsContainer\":{\"outputTypeDefinition\":\"{\\\"body\\\":object;\\\"code\\\":number;\\\"method\\\":string;\\\"rawStringBody\\\":string;\\\"request\\\":{\\\"headers\\\":object;\\\"methodType\\\":string;\\\"query\\\":object;\\\"type\\\":string;\\\"url\\\":string}}\",\"outputJsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"type\":\"object\",\"properties\":{\"method\":{\"title\":\"Method\",\"type\":\"string\",\"description\":\"Specifies the HTTP method to be used for the request.\"},\"body\":{\"title\":\"Body\",\"$ref\":\"#/definitions/body\"},\"code\":{\"title\":\"Code\",\"type\":\"integer\",\"description\":\"The Code\"},\"rawStringBody\":{\"title\":\"Raw body\",\"type\":\"string\",\"description\":\"The Raw string body\"},\"request\":{\"title\":\"Request\",\"$ref\":\"#/definitions/request\"}},\"definitions\":{\"body\":{\"type\":\"object\",\"properties\":{}},\"request\":{\"type\":\"object\",\"properties\":{\"type\":{\"title\":\"Request type\",\"type\":\"string\",\"description\":\"The Request type\"},\"url\":{\"title\":\"Request url\",\"type\":\"string\",\"description\":\"The Request url\"},\"methodType\":{\"title\":\"Method\",\"type\":\"string\",\"description\":\"The Request method type\"}}}}},\"hasFileOutput\":false,\"populateOutputFields\":true,\"inputFields\":[{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"authentication\",\"name\":\"authentication\",\"displayName\":\"Authentication\",\"description\":\"Authentication\",\"type\":\"string\",\"sortOrder\":1,\"defaultValue\":\"manual\",\"primaryKey\":false,\"enum\":[{\"name\":\"Manual authentication\",\"value\":\"manual\",\"description\":\"Provide authentication details directly in the request\"},{\"name\":\"Connector based authentication\",\"value\":\"connector\",\"description\":\"Use authentication details from a configured connector\"}],\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"showMessages\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false}],\"messages\":[\"contentTypeNotice\"]},{\"actionType\":\"clearMessages\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false}],\"messages\":[\"contentTypeNotice\"]}],\"textBlocks\":[{\"name\":\"contentTypeNotice\",\"text\":\"The content-type header must be application/json.\",\"position\":\"above\"}],\"validation\":false},\"fieldActions\":[{\"actionType\":\"showMessages\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false}],\"messages\":[\"contentTypeNotice\"]},{\"actionType\":\"clearMessages\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false}],\"messages\":[\"contentTypeNotice\"]}],\"searchable\":false,\"searchableJoins\":null,\"required\":true,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":true,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"targetConnector\",\"name\":\"targetConnector\",\"displayName\":\"Connector\",\"description\":\"Select a connector\",\"type\":\"string\",\"sortOrder\":2,\"primaryKey\":false,\"lookup\":{\"objectName\":\"connectors\",\"lookupNames\":[\"name\"],\"lookupValue\":\"key\",\"path\":\"/Connectors?hasHttpRequest=true\",\"orderBy\":\"NONE\",\"defaultLookupValues\":[{\"name\":\"HTTP\",\"key\":\"uipath-uipath-http\",\"priority\":1,\"isDefault\":true,\"description\":\"UiPath HTTP connector for general API requests\"}]},\"design\":{\"component\":\"Connectors\",\"loadByDefault\":true,\"isMultiSelect\":false,\"enableUserOverride\":false,\"displayPattern\":\"{name}\",\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"isCleared\":true,\"isVariable\":false}]}],\"position\":\"primary\",\"solutionResourceKind\":\"connector\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"isCleared\":true,\"isVariable\":false}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":true,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":true,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"connection\",\"name\":\"connection\",\"displayName\":\"Connection\",\"description\":\"Connections\",\"type\":\"string\",\"sortOrder\":3,\"primaryKey\":false,\"design\":{\"component\":\"Connections\",\"loadByDefault\":true,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false},{\"type\":\"field\",\"refFieldName\":\"targetConnector\",\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false},{\"type\":\"field\",\"refFieldName\":\"targetConnector\",\"refFieldValues\":[\"*\"],\"isCleared\":true,\"isVariable\":false}]}],\"position\":\"primary\",\"solutionResourceKind\":\"connection\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false},{\"type\":\"field\",\"refFieldName\":\"targetConnector\",\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false},{\"type\":\"field\",\"refFieldName\":\"targetConnector\",\"refFieldValues\":[\"*\"],\"isCleared\":true,\"isVariable\":false}]},{\"rules\":[{\"refFieldName\":\"targetConnector\",\"refFieldValues\":[\"*\"],\"isCleared\":false,\"isConstantValue\":false,\"isWorkflowExpression\":false}],\"actionType\":\"grabValue\",\"groupNames\":[],\"messages\":null}],\"searchable\":false,\"searchableJoins\":null,\"required\":true,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"method\",\"name\":\"method\",\"displayName\":\"Method\",\"description\":\"Specifies the HTTP method to be used for the request.\",\"type\":\"string\",\"sortOrder\":4,\"defaultValue\":\"GET\",\"primaryKey\":false,\"enum\":[{\"name\":\"GET\",\"value\":\"GET\"},{\"name\":\"POST\",\"value\":\"POST\"},{\"name\":\"PUT\",\"value\":\"PUT\"},{\"name\":\"PATCH\",\"value\":\"PATCH\"},{\"name\":\"DELETE\",\"value\":\"DELETE\"},{\"name\":\"OPTIONS\",\"value\":\"OPTIONS\"},{\"name\":\"HEAD\",\"value\":\"HEAD\"}],\"design\":{\"loadByDefault\":true,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"position\":\"primary\",\"validation\":false},\"fieldActions\":null,\"searchable\":false,\"searchableJoins\":null,\"required\":true,\"request\":true,\"response\":true,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":true,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"url\",\"name\":\"url\",\"displayName\":\"URL\",\"description\":\"The web address where the HTTP request is sent.\",\"type\":\"string\",\"sortOrder\":5,\"primaryKey\":false,\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]}],\"position\":\"primary\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":true,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"path\",\"name\":\"path\",\"displayName\":\"Path\",\"description\":\"The endpoint path for the REST API request.\",\"type\":\"string\",\"sortOrder\":5,\"primaryKey\":false,\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]}],\"position\":\"primary\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":true,\"isVariable\":false}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"headers\",\"name\":\"headers\",\"displayName\":\"Headers\",\"description\":\"Headers\",\"type\":\"object\",\"sortOrder\":6,\"primaryKey\":false,\"design\":{\"component\":\"Dictionary\",\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"position\":\"primary\",\"dictionaryWidget\":{\"windowTitle\":\"\",\"windowDescription\":\"\",\"columnKeyTitle\":\"\",\"columnKeyDescription\":\"\",\"columnKeyHint\":\"\",\"columnValueTitle\":\"\",\"columnValueDescription\":\"\",\"columnValueHint\":\"\"},\"validation\":false},\"fieldActions\":null,\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":true,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"query\",\"name\":\"query\",\"displayName\":\"Query parameters\",\"description\":\"Query parameters\",\"type\":\"object\",\"sortOrder\":7,\"primaryKey\":false,\"design\":{\"component\":\"Dictionary\",\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"position\":\"primary\",\"dictionaryWidget\":{\"windowTitle\":\"\",\"windowDescription\":\"\",\"columnKeyTitle\":\"\",\"columnKeyDescription\":\"\",\"columnKeyHint\":\"\",\"columnValueTitle\":\"\",\"columnValueDescription\":\"\",\"columnValueHint\":\"\"},\"validation\":false},\"fieldActions\":null,\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":true,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"requestBodyType\",\"name\":\"requestBodyType\",\"displayName\":\"Request body type\",\"description\":\"Determines how the request body is encoded. Available for manual authentication only; connector-based requests remain JSON.\",\"type\":\"string\",\"sortOrder\":8,\"defaultValue\":\"raw\",\"primaryKey\":false,\"enum\":[{\"name\":\"Raw\",\"value\":\"raw\",\"description\":\"Send the body as-is using the Content-Type header (e.g. JSON, XML, plain text).\"},{\"name\":\"Multipart form data\",\"value\":\"multipartFormData\",\"description\":\"Send one or more form-data parts encoded as multipart/form-data.\"}],\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"POST\",\"PATCH\",\"PUT\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"GET\",\"HEAD\",\"OPTIONS\",\"DELETE\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]}],\"position\":\"primary\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"POST\",\"PATCH\",\"PUT\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"GET\",\"HEAD\",\"OPTIONS\",\"DELETE\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":true,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"String\",\"assemblyQualifiedName\":\"String\",\"isValueType\":true},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"body\",\"name\":\"body\",\"displayName\":\"Body\",\"description\":\"Contains the data to be sent with the HTTP request.\",\"type\":\"object\",\"sortOrder\":9,\"primaryKey\":false,\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"GET\",\"HEAD\",\"OPTIONS\",\"DELETE\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"multipartFormData\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"raw\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"POST\",\"PATCH\",\"PUT\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]}],\"position\":\"primary\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"GET\",\"HEAD\",\"OPTIONS\",\"DELETE\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"multipartFormData\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"raw\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"method\",\"refFieldValues\":[\"POST\",\"PATCH\",\"PUT\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":true,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"multipartFormData\",\"name\":\"multipartFormData\",\"displayName\":\"Form data parts\",\"description\":\"Multipart form-data parts. Provide a list of parts; each part is an object with 'name' (required), 'value' (required), and optional 'filename', 'contentType' and 'encoding'. A value that is an attachment reference is sent as a file; set encoding to 'base64' to send a base64 string as bytes; objects are sent as JSON.\",\"type\":\"object\",\"sortOrder\":10,\"primaryKey\":false,\"design\":{\"loadByDefault\":false,\"isMultiSelect\":false,\"enableUserOverride\":false,\"isHidden\":false,\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"multipartFormData\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"raw\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]}],\"position\":\"primary\",\"validation\":false},\"fieldActions\":[{\"actionType\":\"show\",\"priorityOrder\":1,\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"manual\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true},{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"multipartFormData\"],\"isCleared\":false,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"requestBodyType\",\"refFieldValues\":[\"raw\"],\"isCleared\":true,\"isVariable\":false,\"isWorkflowExpression\":true}]},{\"actionType\":\"hide\",\"rules\":[{\"type\":\"field\",\"refFieldName\":\"authentication\",\"refFieldValues\":[\"connector\"],\"isCleared\":true,\"isVariable\":false}]}],\"searchable\":false,\"searchableJoins\":null,\"required\":false,\"request\":true,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"body\",\"onCanvas\":null,\"isJitField\":false,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null}],\"outputFields\":[{\"typeScriptDefinition\":null,\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"http-request\",\"name\":\"http-request\",\"displayName\":\"HTTP Request\",\"description\":\"\",\"type\":\"Generatedhttp-request\",\"sortOrder\":null,\"format\":null,\"mask\":null,\"defaultValue\":null,\"primaryKey\":false,\"lookup\":null,\"enum\":null,\"design\":null,\"fieldActions\":null,\"searchable\":false,\"searchableOperators\":null,\"searchableNames\":null,\"searchableJoins\":null,\"required\":false,\"request\":false,\"response\":true,\"responseCurated\":false,\"fieldLocation\":\"output\",\"onCanvas\":null,\"isJitField\":true,\"isFieldActionParent\":false,\"isMainResponseField\":true,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null}],\"jitTypeNeedsRefresh\":false,\"jitInputField\":{\"typeScriptDefinition\":\"{\\\"authentication\\\":string;\\\"body\\\":object;\\\"connection\\\":string;\\\"headers\\\":object;\\\"method\\\":string;\\\"multipartFormData\\\":object;\\\"path\\\":string;\\\"query\\\":object;\\\"requestBodyType\\\":string;\\\"targetConnector\\\":string;\\\"url\\\":string}\",\"useUrlInput\":false,\"resolvedUrl\":null,\"id\":\"in_http-request\",\"name\":\"http-request\",\"displayName\":\"HTTP Request\",\"description\":\"HTTP Request input object\",\"type\":\"Generatedhttp-request\",\"sortOrder\":null,\"format\":null,\"mask\":null,\"defaultValue\":\"{\\n \\\"authentication\\\": null,\\n \\\"body\\\": null,\\n \\\"connection\\\": null,\\n \\\"headers\\\": null,\\n \\\"method\\\": null,\\n \\\"multipartFormData\\\": null,\\n \\\"path\\\": null,\\n \\\"query\\\": null,\\n \\\"requestBodyType\\\": null,\\n \\\"targetConnector\\\": null,\\n \\\"url\\\": null\\n}\",\"primaryKey\":false,\"lookup\":null,\"enum\":null,\"design\":null,\"fieldActions\":null,\"searchable\":false,\"searchableOperators\":null,\"searchableNames\":null,\"searchableJoins\":null,\"required\":true,\"request\":false,\"response\":false,\"responseCurated\":false,\"fieldLocation\":\"jitObjectInput\",\"onCanvas\":null,\"isJitField\":true,\"isFieldActionParent\":false,\"isMainResponseField\":false,\"isMethodParameter\":false,\"isBackgroundField\":false,\"filterTree\":null,\"filterNeedsRefresh\":null,\"arrayInputPaths\":null,\"clrType\":{\"_elementType\":null,\"_isNullable\":false,\"isArray\":false,\"genericTypeArguments\":[],\"fullName\":null,\"name\":\"Object\",\"assemblyQualifiedName\":\"Object\",\"isValueType\":false},\"forceExpressionEditor\":false,\"requiredGroups\":null,\"disableExpressions\":false,\"backingField\":null,\"searchableDisplayName\":null,\"selectedResourceId\":null},\"inputMode\":null,\"searchableFields\":[],\"hasUnifiedTypes\":true,\"jitTypeHash\":null}}}",
|
|
4
|
+
"uiPathActivityTypeId": "5c4cc855-b42a-37e6-b910-de8588998fce",
|
|
5
|
+
"errorState": {
|
|
6
|
+
"issues": []
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"activityMetadata": {
|
|
10
|
+
"activity": {
|
|
11
|
+
"isAppActivity": false,
|
|
12
|
+
"packageId": 196648,
|
|
13
|
+
"svgIconUrl": "icons/0dad78c9d04c245b126d8edb4c451aa8a0d395d34731cf5702441f6284c70ccc.svg",
|
|
14
|
+
"displayName": "HTTP Request",
|
|
15
|
+
"assemblyQualifiedName": "UiPath.IntegrationService.Activities.Runtime.Activities.ConnectorActivity, UiPath.IntegrationService.Activities.Runtime, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null",
|
|
16
|
+
"description": "Use HTTP requests to interact with APIs via the selected connector and connection configuration.",
|
|
17
|
+
"category": "",
|
|
18
|
+
"activityColor": "#E56D5C",
|
|
19
|
+
"configuration": "{\"connectorKey\":\"uipath-uipath-http\",\"objectName\":\"http-request\",\"httpMethod\":\"POST\",\"activityType\":\"Curated\",\"version\":\"1.0.0\",\"supportsStreaming\":false,\"subType\":\"method\"}",
|
|
20
|
+
"uiPathActivityTypeId": "5c4cc855-b42a-37e6-b910-de8588998fce",
|
|
21
|
+
"isExperimental": false,
|
|
22
|
+
"helpUrlTemplate": "https://docs.uipath.com/{0}/activities/other/latest/integration-service/uipath-uipath-http-HTTP-Request",
|
|
23
|
+
"isEnabled": true,
|
|
24
|
+
"targetPlatform": "CrossPlatform",
|
|
25
|
+
"isAdvanced": false,
|
|
26
|
+
"isRestricted": false,
|
|
27
|
+
"hasWpfOnlyDesigner": false,
|
|
28
|
+
"tags": [
|
|
29
|
+
""
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"meta": {
|
|
33
|
+
"packageName": "UiPath.IntegrationService.Activities",
|
|
34
|
+
"packageVersion": "1.34.0-alpha.20261013.3",
|
|
35
|
+
"activityColor": "#E56D5C",
|
|
36
|
+
"packageCategoryDisplayName": "HTTP"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"inputMetadata": {},
|
|
40
|
+
"telemetryData": {
|
|
41
|
+
"connectorKey": "uipath-uipath-http",
|
|
42
|
+
"connectorName": "HTTP",
|
|
43
|
+
"operationType": "create",
|
|
44
|
+
"objectName": "http-request",
|
|
45
|
+
"objectDisplayName": "HTTP Request",
|
|
46
|
+
"primaryKeyName": ""
|
|
47
|
+
},
|
|
48
|
+
"bindings": []
|
|
49
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* case/http-request — the Case `http-request` task: a call through Integration
|
|
3
|
+
* Service's generic HTTP connector, in the shape the Case Designer saves.
|
|
4
|
+
*
|
|
5
|
+
* Read from three alpha Designer saves (2026-10-13, UiPath/cli
|
|
6
|
+
* `packages/case-tool/tests/fixtures/http-request/designer-saved.json`) and the
|
|
7
|
+
* CLI's writer for them, `sdd convert` (`services/sdd-convert/http-request.ts`
|
|
8
|
+
* at UiPath/cli b37f32997c), which was read from PO.Frontend 35d579f94.
|
|
9
|
+
*
|
|
10
|
+
* The task is always the HTTP connector's own activity (`uipath-uipath-http`,
|
|
11
|
+
* `POST /http-request`, the fixed identity in `core/managed-http.ts` that Flow
|
|
12
|
+
* and BPMN share). What a person configures is the request, which rides in the
|
|
13
|
+
* `body` input's `body`: `authentication`, `method`, `url` (manual) or `path`
|
|
14
|
+
* (connector), `headers`, `query`, `body`. Two modes:
|
|
15
|
+
* - manual: the request goes to `url` as written, with no connection; the task
|
|
16
|
+
* names the plan's one `ImplicitConnection` binding;
|
|
17
|
+
* - connector: the request reuses a connection's authentication
|
|
18
|
+
* (`targetConnector`), and `path` is relative to that connector's base URL.
|
|
19
|
+
* The task carries the connection's `ConnectionId` and `folderKey`
|
|
20
|
+
* bindings, which are also at the root.
|
|
21
|
+
*
|
|
22
|
+
* Its refusals follow the check/compile contract: {@link httpRequestRefusal} is
|
|
23
|
+
* what compile cannot write as authored (`lowering`), and `serialize` throws
|
|
24
|
+
* it; {@link httpRequestLint} is what compile writes as authored and only
|
|
25
|
+
* `check` reports (`lint`).
|
|
26
|
+
*/
|
|
27
|
+
import type { CaseHttpRequestSpec, HttpRequestMethod, TaskOutputBinding } from './case-sdk.js';
|
|
28
|
+
/**
|
|
29
|
+
* The Designer's `metadata` context entry body, copied byte for byte from
|
|
30
|
+
* UiPath/cli `packages/case-tool/src/services/sdd-convert/http-request-metadata.json`
|
|
31
|
+
* (last changed in 06c4c1d01f, 2026-10-15; read at b37f32997c). It is the
|
|
32
|
+
* activity's configuration as Studio Web saves it; Studio Web reads it to show
|
|
33
|
+
* the task, so it is copied rather than rebuilt. `case-http-request.test.ts`
|
|
34
|
+
* pins its hash, and its activity identity to `core/managed-http.ts`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const HTTP_REQUEST_METADATA: Readonly<Record<string, unknown>>;
|
|
37
|
+
export declare const HTTP_REQUEST_METADATA_PROVENANCE: {
|
|
38
|
+
readonly repo: "UiPath/cli";
|
|
39
|
+
readonly path: "packages/case-tool/src/services/sdd-convert/http-request-metadata.json";
|
|
40
|
+
readonly commit: "06c4c1d01f1bcb0a196902aea0f9508d6cbf85f3";
|
|
41
|
+
readonly sha256: "b2a15368b204e5189d6aab1bfc1ea1db2a16e47710920025a43649f858388785";
|
|
42
|
+
};
|
|
43
|
+
export declare const HTTP_REQUEST_SERVICE_TYPE = "Intsvc.UnifiedHttpRequest";
|
|
44
|
+
/** The plan's one binding a manual request names: no resource, so no `bindings_v2.json` entry. */
|
|
45
|
+
export declare const HTTP_REQUEST_IMPLICIT_CONNECTION = "ImplicitConnection";
|
|
46
|
+
export declare const HTTP_REQUEST_IMPLICIT_BINDING_ID = "bHttpImplicit";
|
|
47
|
+
export declare const HTTP_REQUEST_CONNECTION_NAME = "uipath-uipath-http connection";
|
|
48
|
+
/** The methods the activity offers. */
|
|
49
|
+
export declare const HTTP_REQUEST_METHODS: readonly HttpRequestMethod[];
|
|
50
|
+
/** The activity's four outputs, in the order the Designer saves them: `[name, id base, source]`. */
|
|
51
|
+
export declare const HTTP_REQUEST_OUTPUTS: readonly [{
|
|
52
|
+
readonly name: "code";
|
|
53
|
+
readonly base: "code";
|
|
54
|
+
readonly displayName: "Response status code";
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly source: "=response.code";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "headers";
|
|
59
|
+
readonly base: "headers";
|
|
60
|
+
readonly displayName: "Response headers";
|
|
61
|
+
readonly type: "object";
|
|
62
|
+
readonly source: "=response.headers";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "body";
|
|
65
|
+
readonly base: "body";
|
|
66
|
+
readonly displayName: "Response body";
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly source: "=response.body";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "Error";
|
|
71
|
+
readonly base: "error";
|
|
72
|
+
readonly displayName: "Error";
|
|
73
|
+
readonly type: "jsonSchema";
|
|
74
|
+
readonly source: "=Error";
|
|
75
|
+
}];
|
|
76
|
+
/** A refusal `check`, `serialize` and `decompile` raise alike. */
|
|
77
|
+
export interface HttpRequestRefusal {
|
|
78
|
+
code: string;
|
|
79
|
+
message: string;
|
|
80
|
+
suggestion?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Why compile cannot write `spec` as authored, or `undefined`: the request's
|
|
84
|
+
* `lowering` refusals (`docs/CHECK_COMPILE_CONTRACT_DESIGN.md` §3.1), each a
|
|
85
|
+
* case where the serializer would drop or rewrite what the source says.
|
|
86
|
+
* `serialize` throws it; `check` gets it through collect mode.
|
|
87
|
+
*
|
|
88
|
+
* @param owner - The task as messages name it, e.g. `HTTP request task "Fetch"`.
|
|
89
|
+
*/
|
|
90
|
+
export declare function httpRequestRefusal(owner: string, spec: CaseHttpRequestSpec): HttpRequestRefusal | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* What `check` says about a request compile writes as authored: the `lint`
|
|
93
|
+
* findings (§3.1), each an error a person should fix and `compile` does not
|
|
94
|
+
* look for.
|
|
95
|
+
*
|
|
96
|
+
* @param owner - The task as messages name it, e.g. `HTTP request task "Fetch"`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function httpRequestLint(owner: string, spec: CaseHttpRequestSpec): HttpRequestRefusal[];
|
|
99
|
+
/**
|
|
100
|
+
* The request as the activity reads it from the `body` input, in the CLI's key
|
|
101
|
+
* order. A literal body is wrapped the way the Designer's editor wraps one,
|
|
102
|
+
* `=js:( … )`, with `requestBodyType: "raw"` in manual mode; an object body's
|
|
103
|
+
* `=` values are written as the JavaScript they stand for ({@link bodyLiteral});
|
|
104
|
+
* an expression body is kept as written.
|
|
105
|
+
*/
|
|
106
|
+
export declare function httpRequestBody(spec: CaseHttpRequestSpec): Record<string, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* The body as source writes it: the JSON text a `=js:( … )` body wraps, or the
|
|
109
|
+
* value itself, which compile writes as it stands, when it is an expression or
|
|
110
|
+
* wraps something other than JSON (an object body whose `=` values were
|
|
111
|
+
* written as JavaScript).
|
|
112
|
+
*/
|
|
113
|
+
export declare function httpRequestBodySource(value: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Which of the activity's outputs an `.outputs()` row writes to a case
|
|
116
|
+
* variable: its `source` must be one of the four, once each.
|
|
117
|
+
*/
|
|
118
|
+
export declare function httpRequestOutputMappings(owner: string, outputs: readonly TaskOutputBinding[] | undefined): Map<string, string> | HttpRequestRefusal;
|
|
119
|
+
/**
|
|
120
|
+
* The task's four output rows. `claim` gives each a document-unique id (the
|
|
121
|
+
* Designer's `code`, `code2`, … rule); a mapped output writes the case variable
|
|
122
|
+
* the author named instead, keeping its own id as `originalVar`, as the CLI does
|
|
123
|
+
* for an arrow row (`Body -> payload`).
|
|
124
|
+
*/
|
|
125
|
+
export declare function httpRequestOutputs(elementId: string, claim: (base: string) => string, mappings: ReadonlyMap<string, string>): Record<string, unknown>[];
|
|
126
|
+
/** A container input, with the `v` id the Designer writes (minted by the caller). */
|
|
127
|
+
export declare function httpRequestInputs(elementId: string, mint: (name: string) => string, request: Record<string, unknown>): Record<string, unknown>[];
|
|
128
|
+
/** The context rows, in the Designer's order; `connection` is a binding reference. */
|
|
129
|
+
export declare function httpRequestContext(connection: string, resourceKey: string | null, folderKey: string | null): Record<string, unknown>[];
|
|
130
|
+
/**
|
|
131
|
+
* The `metadata` body a saved http-request task carries when it is not the
|
|
132
|
+
* vendored copy compile writes (a Designer save from another connector
|
|
133
|
+
* version), or undefined. Decompile preserves it, so a round trip keeps the
|
|
134
|
+
* version the Designer saved instead of writing `HTTP_REQUEST_METADATA`.
|
|
135
|
+
*/
|
|
136
|
+
export declare function savedHttpRequestMetadata(data: unknown): Record<string, unknown> | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Write a preserved `metadata` body over the one compile wrote. False when
|
|
139
|
+
* `data` has no `metadata` row (the task is no longer an http-request task).
|
|
140
|
+
*/
|
|
141
|
+
export declare function writeHttpRequestMetadata(data: unknown, metadata: Record<string, unknown>): boolean;
|
|
142
|
+
/** The context row names, in order: decompile lifts exactly these. */
|
|
143
|
+
export declare const HTTP_REQUEST_CONTEXT: readonly string[];
|