@smartspace/api-client 0.1.0-dev.19488cb → 0.1.0-dev.1a28726
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/generated/chat/api.d.ts +12 -2
- package/dist/generated/chat/api.js +83 -42
- package/dist/generated/chat/api.msw.d.ts +23 -3
- package/dist/generated/chat/api.msw.js +167 -124
- package/dist/generated/chat/models/accessAccess.d.ts +1 -1
- package/dist/generated/chat/models/aiIModelProperty.d.ts +4 -5
- package/dist/generated/chat/models/aiModelPropertyBoolean.d.ts +19 -0
- package/dist/generated/chat/models/aiModelPropertyBoolean.js +2 -0
- package/dist/generated/chat/models/aiModelPropertyBooleanType.d.ts +10 -0
- package/dist/generated/chat/models/aiModelPropertyBooleanType.js +13 -0
- package/dist/generated/chat/models/aiModelPropertyNumber.d.ts +19 -0
- package/dist/generated/chat/models/aiModelPropertyNumber.js +2 -0
- package/dist/generated/chat/models/aiModelPropertyNumberType.d.ts +10 -0
- package/dist/generated/chat/models/aiModelPropertyNumberType.js +13 -0
- package/dist/generated/chat/models/aiModelPropertyString.d.ts +19 -0
- package/dist/generated/chat/models/aiModelPropertyString.js +2 -0
- package/dist/generated/chat/models/aiModelPropertyStringType.d.ts +10 -0
- package/dist/generated/chat/models/aiModelPropertyStringType.js +13 -0
- package/dist/generated/chat/models/aiModelSummary.d.ts +4 -1
- package/dist/generated/chat/models/enumsAccessType.d.ts +9 -3
- package/dist/generated/chat/models/enumsAccessType.js +10 -3
- package/dist/generated/chat/models/enumsAppPrincipalType.d.ts +9 -3
- package/dist/generated/chat/models/enumsAppPrincipalType.js +10 -3
- package/dist/generated/chat/models/enumsFlowTriggerType.d.ts +9 -3
- package/dist/generated/chat/models/enumsFlowTriggerType.js +10 -3
- package/dist/generated/chat/models/enumsFlowVariableAccess.d.ts +9 -3
- package/dist/generated/chat/models/enumsFlowVariableAccess.js +10 -3
- package/dist/generated/chat/models/enumsMessageValueType.d.ts +9 -3
- package/dist/generated/chat/models/enumsMessageValueType.js +10 -3
- package/dist/generated/chat/models/enumsModelDeploymentProviderType.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelDeploymentProviderType.js +10 -3
- package/dist/generated/chat/models/enumsModelDeploymentStatus.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelDeploymentStatus.js +10 -3
- package/dist/generated/chat/models/enumsModelDeploymentStepName.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelDeploymentStepName.js +10 -3
- package/dist/generated/chat/models/enumsModelPropertyType.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelPropertyType.js +10 -3
- package/dist/generated/chat/models/enumsModelPublisher.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelPublisher.js +10 -3
- package/dist/generated/chat/models/enumsModelRole.d.ts +9 -3
- package/dist/generated/chat/models/enumsModelRole.js +10 -3
- package/dist/generated/chat/models/enumsNotificationType.d.ts +9 -3
- package/dist/generated/chat/models/enumsNotificationType.js +10 -3
- package/dist/generated/chat/models/enumsVirtualMachineServerType.d.ts +9 -3
- package/dist/generated/chat/models/enumsVirtualMachineServerType.js +10 -3
- package/dist/generated/chat/models/enumsWorkSpaceOrderBy.d.ts +9 -3
- package/dist/generated/chat/models/enumsWorkSpaceOrderBy.js +10 -3
- package/dist/generated/chat/models/index.d.ts +16 -0
- package/dist/generated/chat/models/index.js +16 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechConfig.d.ts +12 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechConfig.js +8 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechToken.d.ts +10 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechToken.js +8 -0
- package/dist/generated/chat/models/managedSecretsMySecret.d.ts +13 -0
- package/dist/generated/chat/models/managedSecretsMySecret.js +8 -0
- package/dist/generated/chat/models/managedSecretsUpdateManagedSecretValue.d.ts +9 -0
- package/dist/generated/chat/models/managedSecretsUpdateManagedSecretValue.js +8 -0
- package/dist/generated/chat/models/messagesMessageError.d.ts +2 -0
- package/dist/generated/chat/models/microsoftAspNetCoreMvcProblemDetails.d.ts +6 -0
- package/dist/generated/chat/models/modelIModelProperty.d.ts +4 -5
- package/dist/generated/chat/models/modelModelPropertyBoolean.d.ts +19 -0
- package/dist/generated/chat/models/modelModelPropertyBoolean.js +2 -0
- package/dist/generated/chat/models/modelModelPropertyBooleanType.d.ts +10 -0
- package/dist/generated/chat/models/modelModelPropertyBooleanType.js +13 -0
- package/dist/generated/chat/models/modelModelPropertyNumber.d.ts +19 -0
- package/dist/generated/chat/models/modelModelPropertyNumber.js +2 -0
- package/dist/generated/chat/models/modelModelPropertyNumberType.d.ts +10 -0
- package/dist/generated/chat/models/modelModelPropertyNumberType.js +13 -0
- package/dist/generated/chat/models/modelModelPropertyString.d.ts +19 -0
- package/dist/generated/chat/models/modelModelPropertyString.js +2 -0
- package/dist/generated/chat/models/modelModelPropertyStringType.d.ts +10 -0
- package/dist/generated/chat/models/modelModelPropertyStringType.js +13 -0
- package/dist/generated/chat/models/workSpacesWorkSpace.d.ts +1 -0
- package/dist/generated/chat/operation-tags.d.ts +31 -0
- package/dist/generated/chat/operation-tags.js +34 -0
- package/dist/generated/chat/zod.d.ts +175 -264
- package/dist/generated/chat/zod.js +230 -129
- package/dist/generated/config/api.d.ts +75 -20
- package/dist/generated/config/api.js +423 -229
- package/dist/generated/config/api.msw.d.ts +80 -16
- package/dist/generated/config/api.msw.js +710 -590
- package/dist/generated/config/change-tags.d.ts +46 -0
- package/dist/generated/config/change-tags.js +42 -0
- package/dist/generated/config/models/accessAccess.d.ts +1 -1
- package/dist/generated/config/models/accessAccessWorkSpace.d.ts +1 -1
- package/dist/generated/config/models/accessGetUsersInRoleUsersParams.d.ts +1 -1
- package/dist/generated/config/models/aiIModelProperty.d.ts +4 -5
- package/dist/generated/config/models/aiModelPropertyBoolean.d.ts +19 -0
- package/dist/generated/config/models/aiModelPropertyBoolean.js +2 -0
- package/dist/generated/config/models/aiModelPropertyBooleanType.d.ts +10 -0
- package/dist/generated/config/models/aiModelPropertyBooleanType.js +13 -0
- package/dist/generated/config/models/aiModelPropertyNumber.d.ts +19 -0
- package/dist/generated/config/models/aiModelPropertyNumber.js +2 -0
- package/dist/generated/config/models/aiModelPropertyNumberType.d.ts +10 -0
- package/dist/generated/config/models/aiModelPropertyNumberType.js +13 -0
- package/dist/generated/config/models/aiModelPropertyString.d.ts +19 -0
- package/dist/generated/config/models/aiModelPropertyString.js +2 -0
- package/dist/generated/config/models/aiModelPropertyStringType.d.ts +10 -0
- package/dist/generated/config/models/aiModelPropertyStringType.js +13 -0
- package/dist/generated/config/models/aiModelSummary.d.ts +4 -1
- package/dist/generated/config/models/changeTagsChangeTag.d.ts +26 -0
- package/dist/generated/config/models/changeTagsChangeTag.js +30 -0
- package/dist/generated/config/models/changeTagsChangeTagView.d.ts +19 -0
- package/dist/generated/config/models/changeTagsChangeTagView.js +23 -0
- package/dist/generated/config/models/configApiControllersAuthDiscoveryControllerAuthDiscovery.d.ts +12 -0
- package/dist/generated/config/models/containerItem.d.ts +3 -0
- package/dist/generated/config/models/containerItem.js +0 -6
- package/dist/generated/config/models/containerItemIngestion.d.ts +34 -0
- package/dist/generated/config/models/containerItemIngestion.js +8 -0
- package/dist/generated/config/models/containersPostParams.d.ts +4 -0
- package/dist/generated/config/models/coreDeploymentEnumsDeploymentStatus.d.ts +9 -3
- package/dist/generated/config/models/coreDeploymentEnumsDeploymentStatus.js +10 -3
- package/dist/generated/config/models/coreManagementInstallParameterType.d.ts +9 -3
- package/dist/generated/config/models/coreManagementInstallParameterType.js +10 -3
- package/dist/generated/config/models/coreManagementSmartSpaceBasePlan.d.ts +10 -0
- package/dist/generated/config/models/coreManagementSmartSpaceBasePlan.js +8 -0
- package/dist/generated/config/models/coreManagementSmartSpacePlan.d.ts +12 -0
- package/dist/generated/config/models/coreManagementSmartSpacePlan.js +2 -0
- package/dist/generated/config/models/coreManagementSmartSpaceUpgrade.d.ts +11 -0
- package/dist/generated/config/models/coreManagementSmartSpaceUpgrade.js +8 -0
- package/dist/generated/config/models/dataSetsSetDataSetScoping.d.ts +2 -0
- package/dist/generated/config/models/dataSourcesCredentialsCredentialsType.d.ts +9 -3
- package/dist/generated/config/models/dataSourcesCredentialsCredentialsType.js +10 -3
- package/dist/generated/config/models/dataSourcesDataSourcePropertyType.d.ts +9 -3
- package/dist/generated/config/models/dataSourcesDataSourcePropertyType.js +10 -3
- package/dist/generated/config/models/enumsAccessType.d.ts +9 -3
- package/dist/generated/config/models/enumsAccessType.js +10 -3
- package/dist/generated/config/models/enumsActivityType.d.ts +9 -3
- package/dist/generated/config/models/enumsActivityType.js +10 -3
- package/dist/generated/config/models/enumsAppPrincipalType.d.ts +9 -3
- package/dist/generated/config/models/enumsAppPrincipalType.js +10 -3
- package/dist/generated/config/models/enumsBlockScope.d.ts +9 -3
- package/dist/generated/config/models/enumsBlockScope.js +10 -3
- package/dist/generated/config/models/enumsBlockType.d.ts +9 -3
- package/dist/generated/config/models/enumsBlockType.js +10 -3
- package/dist/generated/config/models/enumsDataSetScopingMode.d.ts +9 -3
- package/dist/generated/config/models/enumsDataSetScopingMode.js +10 -3
- package/dist/generated/config/models/enumsDataSourceCredentialType.d.ts +9 -3
- package/dist/generated/config/models/enumsDataSourceCredentialType.js +10 -3
- package/dist/generated/config/models/enumsFlowTriggerType.d.ts +9 -3
- package/dist/generated/config/models/enumsFlowTriggerType.js +10 -3
- package/dist/generated/config/models/enumsFlowVariableAccess.d.ts +9 -3
- package/dist/generated/config/models/enumsFlowVariableAccess.js +10 -3
- package/dist/generated/config/models/enumsIngestionStatus.d.ts +9 -3
- package/dist/generated/config/models/enumsIngestionStatus.js +10 -3
- package/dist/generated/config/models/enumsMessageValueType.d.ts +9 -3
- package/dist/generated/config/models/enumsMessageValueType.js +10 -3
- package/dist/generated/config/models/enumsModelDeploymentProviderType.d.ts +9 -3
- package/dist/generated/config/models/enumsModelDeploymentProviderType.js +10 -3
- package/dist/generated/config/models/enumsModelDeploymentStatus.d.ts +9 -3
- package/dist/generated/config/models/enumsModelDeploymentStatus.js +10 -3
- package/dist/generated/config/models/enumsModelDeploymentStepName.d.ts +9 -3
- package/dist/generated/config/models/enumsModelDeploymentStepName.js +10 -3
- package/dist/generated/config/models/enumsModelPropertyType.d.ts +9 -3
- package/dist/generated/config/models/enumsModelPropertyType.js +10 -3
- package/dist/generated/config/models/enumsModelPublisher.d.ts +9 -3
- package/dist/generated/config/models/enumsModelPublisher.js +10 -3
- package/dist/generated/config/models/enumsModelRole.d.ts +9 -3
- package/dist/generated/config/models/enumsModelRole.js +10 -3
- package/dist/generated/config/models/enumsNotificationType.d.ts +9 -3
- package/dist/generated/config/models/enumsNotificationType.js +10 -3
- package/dist/generated/config/models/enumsPermissions.d.ts +1 -2
- package/dist/generated/config/models/enumsPermissionsItem.d.ts +9 -3
- package/dist/generated/config/models/enumsPermissionsItem.js +10 -3
- package/dist/generated/config/models/enumsPinType.d.ts +9 -3
- package/dist/generated/config/models/enumsPinType.js +10 -3
- package/dist/generated/config/models/enumsPortType.d.ts +9 -3
- package/dist/generated/config/models/enumsPortType.js +10 -3
- package/dist/generated/config/models/enumsVirtualMachineServerType.d.ts +9 -3
- package/dist/generated/config/models/enumsVirtualMachineServerType.js +10 -3
- package/dist/generated/config/models/flowRunsGetStepExecutionsParams.d.ts +5 -0
- package/dist/generated/config/models/flowsFlowRunCancelResult.d.ts +9 -0
- package/dist/generated/config/models/flowsFlowRunCancelResult.js +8 -0
- package/dist/generated/config/models/index.d.ts +45 -2
- package/dist/generated/config/models/index.js +45 -2
- package/dist/generated/config/models/integrationsAzureSpeechSpeechConfig.d.ts +12 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechConfig.js +8 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechToken.d.ts +10 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechToken.js +8 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiContainerItemRunHistory.d.ts +4 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiFunctionExecutionDebugModel.d.ts +2 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRun.d.ts +21 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiWorkspaceRun.d.ts +6 -0
- package/dist/generated/config/models/managedSecretsCreateManagedSecret.d.ts +4 -1
- package/dist/generated/config/models/managedSecretsGetManagedSecretUserValuesParams.d.ts +20 -0
- package/dist/generated/config/models/managedSecretsGetManagedSecretUserValuesParams.js +8 -0
- package/dist/generated/config/models/managedSecretsGetManagedSecretsParams.d.ts +21 -0
- package/dist/generated/config/models/managedSecretsGetManagedSecretsParams.js +8 -0
- package/dist/generated/config/models/managedSecretsManagedSecret.d.ts +2 -0
- package/dist/generated/config/models/managedSecretsManagedSecretUserValue.d.ts +10 -0
- package/dist/generated/config/models/managedSecretsManagedSecretUserValue.js +8 -0
- package/dist/generated/config/models/managedSecretsMySecret.d.ts +13 -0
- package/dist/generated/config/models/managedSecretsMySecret.js +8 -0
- package/dist/generated/config/models/messagesMessageError.d.ts +2 -0
- package/dist/generated/config/models/microsoftAspNetCoreMvcProblemDetails.d.ts +6 -0
- package/dist/generated/config/models/microsoftExtensionsDiagnosticsHealthChecksHealthStatus.d.ts +9 -3
- package/dist/generated/config/models/microsoftExtensionsDiagnosticsHealthChecksHealthStatus.js +10 -3
- package/dist/generated/config/models/modelDeployableModel.d.ts +11 -0
- package/dist/generated/config/models/modelDeployableModel.js +2 -0
- package/dist/generated/config/models/modelDeployableModelProperty.d.ts +14 -0
- package/dist/generated/config/models/modelDeployableModelProperty.js +2 -0
- package/dist/generated/config/models/modelDeployableModelPropertyType.d.ts +19 -0
- package/dist/generated/config/models/modelDeployableModelPropertyType.js +23 -0
- package/dist/generated/config/models/modelIModelProperty.d.ts +4 -5
- package/dist/generated/config/models/modelLoadProviderModelsRequest.d.ts +17 -0
- package/dist/generated/config/models/modelLoadProviderModelsRequest.js +2 -0
- package/dist/generated/config/models/modelLoadProviderModelsRequestGoogleCredentials.d.ts +12 -0
- package/dist/generated/config/models/modelLoadProviderModelsRequestGoogleCredentials.js +8 -0
- package/dist/generated/config/models/modelModelDeploymentProvider.d.ts +19 -0
- package/dist/generated/config/models/modelModelDeploymentProvider.js +2 -0
- package/dist/generated/config/models/modelModelPropertyBoolean.d.ts +19 -0
- package/dist/generated/config/models/modelModelPropertyBoolean.js +2 -0
- package/dist/generated/config/models/modelModelPropertyBooleanType.d.ts +10 -0
- package/dist/generated/config/models/modelModelPropertyBooleanType.js +13 -0
- package/dist/generated/config/models/modelModelPropertyNumber.d.ts +19 -0
- package/dist/generated/config/models/modelModelPropertyNumber.js +2 -0
- package/dist/generated/config/models/modelModelPropertyNumberType.d.ts +10 -0
- package/dist/generated/config/models/modelModelPropertyNumberType.js +13 -0
- package/dist/generated/config/models/modelModelPropertyString.d.ts +19 -0
- package/dist/generated/config/models/modelModelPropertyString.js +2 -0
- package/dist/generated/config/models/modelModelPropertyStringType.d.ts +10 -0
- package/dist/generated/config/models/modelModelPropertyStringType.js +13 -0
- package/dist/generated/config/models/modelModelProviderType.d.ts +11 -0
- package/dist/generated/config/models/modelModelProviderType.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionManagedSecretsManagedSecret.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionManagedSecretsManagedSecret.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionManagedSecretsManagedSecretUserValue.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionManagedSecretsManagedSecretUserValue.js +2 -0
- package/dist/generated/config/models/reingestResult.d.ts +9 -0
- package/dist/generated/config/models/reingestResult.js +8 -0
- package/dist/generated/config/models/reportingDuration.d.ts +9 -3
- package/dist/generated/config/models/reportingDuration.js +10 -3
- package/dist/generated/config/models/reportingGetRequestsParams.d.ts +3 -0
- package/dist/generated/config/models/reportingGetTokensParams.d.ts +3 -0
- package/dist/generated/config/models/reportingReportSeries.d.ts +4 -0
- package/dist/generated/config/models/reportingSplit.d.ts +12 -4
- package/dist/generated/config/models/reportingSplit.js +13 -4
- package/dist/generated/config/models/smartSpacePlanUsage.d.ts +11 -0
- package/dist/generated/config/models/smartSpacePlanUsage.js +8 -0
- package/dist/generated/config/models/syncsGetPoisonedParams.d.ts +10 -0
- package/dist/generated/config/models/syncsGetPoisonedParams.js +8 -0
- package/dist/generated/config/models/syncsSync.d.ts +8 -0
- package/dist/generated/config/models/usageFlowRunInvocation.d.ts +31 -0
- package/dist/generated/config/models/usageFlowRunInvocation.js +2 -0
- package/dist/generated/config/models/usageInvocationModelUsage.d.ts +39 -0
- package/dist/generated/config/models/usageInvocationModelUsage.js +8 -0
- package/dist/generated/config/models/usageRecordFlowInvocation.d.ts +46 -0
- package/dist/generated/config/models/usageRecordFlowInvocation.js +8 -0
- package/dist/generated/config/models/usageRecordUsageEvent.d.ts +95 -0
- package/dist/generated/config/models/usageRecordUsageEvent.js +8 -0
- package/dist/generated/config/models/usageUsageEventsRecorded.d.ts +9 -0
- package/dist/generated/config/models/usageUsageEventsRecorded.js +8 -0
- package/dist/generated/config/models/usersAdministeredResource.d.ts +11 -0
- package/dist/generated/config/models/usersAdministeredResource.js +8 -0
- package/dist/generated/config/models/workSpacesCreateWorkSpace.d.ts +5 -1
- package/dist/generated/config/models/workSpacesWorkSpace.d.ts +1 -0
- package/dist/generated/config/operation-tags.d.ts +33 -0
- package/dist/generated/config/operation-tags.js +36 -0
- package/dist/generated/config/zod.d.ts +907 -966
- package/dist/generated/config/zod.js +1005 -411
- package/dist/generated/signalr/TypedSignalR.Client/SmartSpace.App.Business.Hubs.Contracts.d.ts +22 -0
- package/dist/generated/signalr/TypedSignalR.Client/index.js +10 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +11 -1
- package/dist/problem.d.ts +12 -0
- package/dist/problem.js +22 -0
- package/package.json +2 -2
- package/dist/generated/config/models/flowRunsSearchFlowRunsParams.d.ts +0 -25
- /package/dist/generated/config/models/{flowRunsSearchFlowRunsParams.js → configApiControllersAuthDiscoveryControllerAuthDiscovery.js} +0 -0
|
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getSmartSpaceAdminAPI = void 0;
|
|
4
4
|
const instance_1 = require("../../instance");
|
|
5
5
|
const getSmartSpaceAdminAPI = () => {
|
|
6
|
+
const authDiscoveryGet = () => {
|
|
7
|
+
return (0, instance_1.customInstance)({ url: `/v1/.well-known/smartspace-auth`, method: 'GET'
|
|
8
|
+
});
|
|
9
|
+
};
|
|
6
10
|
/**
|
|
7
11
|
* @summary Retrieve access details with optional filtering by workspace, access type, principal type, and search.
|
|
8
12
|
*/
|
|
9
13
|
const accessGetAccesses = (params) => {
|
|
10
|
-
return (0, instance_1.customInstance)({ url: `/Access`, method: 'GET',
|
|
14
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access`, method: 'GET',
|
|
11
15
|
params
|
|
12
16
|
});
|
|
13
17
|
};
|
|
@@ -15,7 +19,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
15
19
|
* @summary Add a new access grant for a principal or group to a workspace.
|
|
16
20
|
*/
|
|
17
21
|
const accessAddAccess = (accessCreateAccess) => {
|
|
18
|
-
return (0, instance_1.customInstance)({ url: `/Access`, method: 'PUT',
|
|
22
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access`, method: 'PUT',
|
|
19
23
|
headers: { 'Content-Type': 'application/*+json', },
|
|
20
24
|
data: accessCreateAccess
|
|
21
25
|
});
|
|
@@ -24,7 +28,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
24
28
|
* @summary List groups from Azure AD.
|
|
25
29
|
*/
|
|
26
30
|
const accessGetGroups = (params) => {
|
|
27
|
-
return (0, instance_1.customInstance)({ url: `/Access/groups`, method: 'GET',
|
|
31
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/groups`, method: 'GET',
|
|
28
32
|
params
|
|
29
33
|
});
|
|
30
34
|
};
|
|
@@ -32,14 +36,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
32
36
|
* @summary Fetch a list of all roles defined within SmartSpace, providing an overview of role-based access control.
|
|
33
37
|
*/
|
|
34
38
|
const accessGetAppRoles = () => {
|
|
35
|
-
return (0, instance_1.customInstance)({ url: `/Access/roles`, method: 'GET'
|
|
39
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/roles`, method: 'GET'
|
|
36
40
|
});
|
|
37
41
|
};
|
|
38
42
|
/**
|
|
39
43
|
* @summary List users assigned to a specific role in SmartSpace by providing the role's ID.
|
|
40
44
|
*/
|
|
41
45
|
const accessGetUsersInRoleRolesRoleIdUsers = (roleId, params) => {
|
|
42
|
-
return (0, instance_1.customInstance)({ url: `/Access/roles/${roleId}/users`, method: 'GET',
|
|
46
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/roles/${roleId}/users`, method: 'GET',
|
|
43
47
|
params
|
|
44
48
|
});
|
|
45
49
|
};
|
|
@@ -47,7 +51,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
47
51
|
* @summary Search Azure AD groups for access assignment.
|
|
48
52
|
*/
|
|
49
53
|
const accessSearchGroups = (params) => {
|
|
50
|
-
return (0, instance_1.customInstance)({ url: `/Access/search/groups`, method: 'GET',
|
|
54
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/search/groups`, method: 'GET',
|
|
51
55
|
params
|
|
52
56
|
});
|
|
53
57
|
};
|
|
@@ -55,7 +59,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
55
59
|
* @summary Search Azure AD service principals for access assignment.
|
|
56
60
|
*/
|
|
57
61
|
const accessSearchServicePrincipals = (params) => {
|
|
58
|
-
return (0, instance_1.customInstance)({ url: `/Access/search/serviceprincipals`, method: 'GET',
|
|
62
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/search/serviceprincipals`, method: 'GET',
|
|
59
63
|
params
|
|
60
64
|
});
|
|
61
65
|
};
|
|
@@ -63,7 +67,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
63
67
|
* @summary Search Azure AD users for access assignment.
|
|
64
68
|
*/
|
|
65
69
|
const accessSearchUsers = (params) => {
|
|
66
|
-
return (0, instance_1.customInstance)({ url: `/Access/search/users`, method: 'GET',
|
|
70
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/search/users`, method: 'GET',
|
|
67
71
|
params
|
|
68
72
|
});
|
|
69
73
|
};
|
|
@@ -71,7 +75,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
71
75
|
* @summary Retrieve users associated with a specified role in SmartSpace, enabling role-based user management.
|
|
72
76
|
*/
|
|
73
77
|
const accessGetUsersInRoleUsers = (params) => {
|
|
74
|
-
return (0, instance_1.customInstance)({ url: `/Access/users`, method: 'GET',
|
|
78
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/users`, method: 'GET',
|
|
75
79
|
params
|
|
76
80
|
});
|
|
77
81
|
};
|
|
@@ -79,14 +83,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
79
83
|
* @summary Remove a specific access entity in SmartSpace by using its ID.
|
|
80
84
|
*/
|
|
81
85
|
const accessDeleteAccess = (id) => {
|
|
82
|
-
return (0, instance_1.customInstance)({ url: `/Access/${id}`, method: 'DELETE'
|
|
86
|
+
return (0, instance_1.customInstance)({ url: `/v1/Access/${id}`, method: 'DELETE'
|
|
83
87
|
});
|
|
84
88
|
};
|
|
85
89
|
/**
|
|
86
90
|
* @summary Export workspace activity log as a CSV file.
|
|
87
91
|
*/
|
|
88
92
|
const activityExportLoggings = (params) => {
|
|
89
|
-
return (0, instance_1.customInstance)({ url: `/Activity/csv/workspace`, method: 'GET',
|
|
93
|
+
return (0, instance_1.customInstance)({ url: `/v1/Activity/csv/workspace`, method: 'GET',
|
|
90
94
|
params
|
|
91
95
|
});
|
|
92
96
|
};
|
|
@@ -94,7 +98,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
94
98
|
* @summary Retrieve workspace activity log entries with optional filtering and pagination.
|
|
95
99
|
*/
|
|
96
100
|
const activityGetLogging = (params) => {
|
|
97
|
-
return (0, instance_1.customInstance)({ url: `/Activity/workspace`, method: 'GET',
|
|
101
|
+
return (0, instance_1.customInstance)({ url: `/v1/Activity/workspace`, method: 'GET',
|
|
98
102
|
params
|
|
99
103
|
});
|
|
100
104
|
};
|
|
@@ -102,14 +106,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
102
106
|
* @summary Gets the state of an update that was triggered by ApplyLatestAvailableVersion.
|
|
103
107
|
*/
|
|
104
108
|
const applicationUpdateGetLatestDeployment = () => {
|
|
105
|
-
return (0, instance_1.customInstance)({ url: `/ApplicationUpdate/deployments/latest`, method: 'GET'
|
|
109
|
+
return (0, instance_1.customInstance)({ url: `/v1/ApplicationUpdate/deployments/latest`, method: 'GET'
|
|
106
110
|
});
|
|
107
111
|
};
|
|
108
112
|
/**
|
|
109
113
|
* @summary Returns the current version of the application.
|
|
110
114
|
*/
|
|
111
115
|
const applicationUpdateGetCurrentVersion = () => {
|
|
112
|
-
return (0, instance_1.customInstance)({ url: `/ApplicationUpdate/versions/current`, method: 'GET'
|
|
116
|
+
return (0, instance_1.customInstance)({ url: `/v1/ApplicationUpdate/versions/current`, method: 'GET'
|
|
113
117
|
});
|
|
114
118
|
};
|
|
115
119
|
/**
|
|
@@ -117,7 +121,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
117
121
|
Returns 202 to indicate the operation has been triggered.
|
|
118
122
|
*/
|
|
119
123
|
const applicationUpdateReapplyCurrentVersion = () => {
|
|
120
|
-
return (0, instance_1.customInstance)({ url: `/ApplicationUpdate/versions/current/reapply`, method: 'PUT'
|
|
124
|
+
return (0, instance_1.customInstance)({ url: `/v1/ApplicationUpdate/versions/current/reapply`, method: 'PUT'
|
|
121
125
|
});
|
|
122
126
|
};
|
|
123
127
|
/**
|
|
@@ -126,7 +130,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
126
130
|
Returns 204 if no new version available.
|
|
127
131
|
*/
|
|
128
132
|
const applicationUpdateGetLatestAvailableVersion = () => {
|
|
129
|
-
return (0, instance_1.customInstance)({ url: `/ApplicationUpdate/versions/latest-available`, method: 'GET'
|
|
133
|
+
return (0, instance_1.customInstance)({ url: `/v1/ApplicationUpdate/versions/latest-available`, method: 'GET'
|
|
130
134
|
});
|
|
131
135
|
};
|
|
132
136
|
/**
|
|
@@ -135,14 +139,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
135
139
|
Returns 409 if the application is already in the process of updating.
|
|
136
140
|
*/
|
|
137
141
|
const applicationUpdateApplyLatestAvailableVersion = () => {
|
|
138
|
-
return (0, instance_1.customInstance)({ url: `/ApplicationUpdate/versions/latest-available`, method: 'PUT'
|
|
142
|
+
return (0, instance_1.customInstance)({ url: `/v1/ApplicationUpdate/versions/latest-available`, method: 'PUT'
|
|
139
143
|
});
|
|
140
144
|
};
|
|
141
145
|
/**
|
|
142
146
|
* @summary Get a list of all block sets visible to the current principal.
|
|
143
147
|
*/
|
|
144
148
|
const blockSetsGetBlockSets = (params) => {
|
|
145
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets`, method: 'GET',
|
|
149
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets`, method: 'GET',
|
|
146
150
|
params
|
|
147
151
|
});
|
|
148
152
|
};
|
|
@@ -150,31 +154,30 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
150
154
|
* @summary Get the saved Python source code for a deployed custom block set.
|
|
151
155
|
*/
|
|
152
156
|
const blockSetsGetDeployedBlockCode = (blockSetName) => {
|
|
153
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets/deployed-blocks/${blockSetName}/code`, method: 'GET'
|
|
157
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets/deployed-blocks/${blockSetName}/code`, method: 'GET'
|
|
154
158
|
});
|
|
155
159
|
};
|
|
156
160
|
/**
|
|
157
161
|
* @summary Get the raw zip file for a deployed custom block set.
|
|
158
162
|
*/
|
|
159
163
|
const blockSetsGetDeployedBlockFiles = (blockSetName) => {
|
|
160
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets/deployed-blocks/${blockSetName}/files`, method: 'GET'
|
|
164
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets/deployed-blocks/${blockSetName}/files`, method: 'GET'
|
|
161
165
|
});
|
|
162
166
|
};
|
|
163
167
|
/**
|
|
164
168
|
* @summary Deletes an existing custom block set.
|
|
165
169
|
*/
|
|
166
170
|
const blockSetsDeleteBlockSet = (name) => {
|
|
167
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'DELETE'
|
|
171
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets/${name}`, method: 'DELETE'
|
|
168
172
|
});
|
|
169
173
|
};
|
|
170
174
|
/**
|
|
171
175
|
* @summary Rename a published custom block set (all versions). Set names are
|
|
172
176
|
organizational — flows bind to block (class) names, so renaming never
|
|
173
|
-
breaks a flow. Admin-only
|
|
174
|
-
Admin policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
177
|
+
breaks a flow. Admin-only, as the class already says.
|
|
175
178
|
*/
|
|
176
179
|
const blockSetsRenameBlockSet = (name, blocksRenameBlockSetRequest) => {
|
|
177
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'PATCH',
|
|
180
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets/${name}`, method: 'PATCH',
|
|
178
181
|
headers: { 'Content-Type': 'application/*+json', },
|
|
179
182
|
data: blocksRenameBlockSetRequest
|
|
180
183
|
});
|
|
@@ -187,7 +190,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
187
190
|
if (blockSetsAddBlockSetBody.file !== undefined) {
|
|
188
191
|
formData.append(`file`, blockSetsAddBlockSetBody.file);
|
|
189
192
|
}
|
|
190
|
-
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'POST',
|
|
193
|
+
return (0, instance_1.customInstance)({ url: `/v1/BlockSets/${name}`, method: 'POST',
|
|
191
194
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
192
195
|
data: formData
|
|
193
196
|
});
|
|
@@ -196,64 +199,62 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
196
199
|
* @summary Get a list of all block interfaces
|
|
197
200
|
*/
|
|
198
201
|
const blocksGetBlocks = (params) => {
|
|
199
|
-
return (0, instance_1.customInstance)({ url: `/Blocks`, method: 'GET',
|
|
202
|
+
return (0, instance_1.customInstance)({ url: `/v1/Blocks`, method: 'GET',
|
|
200
203
|
params
|
|
201
204
|
});
|
|
202
205
|
};
|
|
203
206
|
/**
|
|
204
207
|
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
205
208
|
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
206
|
-
excluded upstream. Admin-only
|
|
207
|
-
policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
209
|
+
excluded upstream. Admin-only, above the editor floor the class carries.
|
|
208
210
|
*/
|
|
209
211
|
const blocksGetSdkBlocks = () => {
|
|
210
|
-
return (0, instance_1.customInstance)({ url: `/Blocks/sdk`, method: 'GET'
|
|
212
|
+
return (0, instance_1.customInstance)({ url: `/v1/Blocks/sdk`, method: 'GET'
|
|
211
213
|
});
|
|
212
214
|
};
|
|
213
215
|
/**
|
|
214
216
|
* @summary Get the Python source of a native/SDK block — used by the custom-blocks
|
|
215
|
-
page as a starting scaffold when creating a draft. Admin-only
|
|
216
|
-
|
|
217
|
-
class-level `[AuthorizeAdmin]`).
|
|
217
|
+
page as a starting scaffold when creating a draft. Admin-only, above the
|
|
218
|
+
editor floor the class carries.
|
|
218
219
|
*/
|
|
219
220
|
const blocksGetBlockSource = (name, version) => {
|
|
220
|
-
return (0, instance_1.customInstance)({ url: `/Blocks/${name}/${version}/source`, method: 'GET'
|
|
221
|
+
return (0, instance_1.customInstance)({ url: `/v1/Blocks/${name}/${version}/source`, method: 'GET'
|
|
221
222
|
});
|
|
222
223
|
};
|
|
223
224
|
/**
|
|
224
225
|
* @summary Manually trigger reingestion of a specific container item.
|
|
225
226
|
*/
|
|
226
227
|
const containersReingestContainerItem = (containerItemId) => {
|
|
227
|
-
return (0, instance_1.customInstance)({ url: `/Containers/items/${containerItemId}/reingest`, method: 'POST'
|
|
228
|
+
return (0, instance_1.customInstance)({ url: `/v1/Containers/items/${containerItemId}/reingest`, method: 'POST'
|
|
228
229
|
});
|
|
229
230
|
};
|
|
230
231
|
const containersPost = (containerId, params) => {
|
|
231
|
-
return (0, instance_1.customInstance)({ url: `/Containers/${containerId}/startflows`, method: 'POST',
|
|
232
|
+
return (0, instance_1.customInstance)({ url: `/v1/Containers/${containerId}/startflows`, method: 'POST',
|
|
232
233
|
params
|
|
233
234
|
});
|
|
234
235
|
};
|
|
235
236
|
const dataSetsGet = (params) => {
|
|
236
|
-
return (0, instance_1.customInstance)({ url: `/DataSets`, method: 'GET',
|
|
237
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets`, method: 'GET',
|
|
237
238
|
params
|
|
238
239
|
});
|
|
239
240
|
};
|
|
240
241
|
const dataSetsGetItem = (dataSetId, id) => {
|
|
241
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${dataSetId}/items/${id}`, method: 'GET'
|
|
242
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${dataSetId}/items/${id}`, method: 'GET'
|
|
242
243
|
});
|
|
243
244
|
};
|
|
244
245
|
const dataSetsDelete = (id) => {
|
|
245
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}`, method: 'DELETE'
|
|
246
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}`, method: 'DELETE'
|
|
246
247
|
});
|
|
247
248
|
};
|
|
248
249
|
const dataSetsGetById = (id) => {
|
|
249
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}`, method: 'GET'
|
|
250
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}`, method: 'GET'
|
|
250
251
|
});
|
|
251
252
|
};
|
|
252
253
|
/**
|
|
253
254
|
* @summary Update an existing dataset (name, description, container bindings).
|
|
254
255
|
*/
|
|
255
256
|
const dataSetsPut = (id, dataSetsUpdateDataSet) => {
|
|
256
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}`, method: 'PUT',
|
|
257
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}`, method: 'PUT',
|
|
257
258
|
headers: { 'Content-Type': 'application/*+json', },
|
|
258
259
|
data: dataSetsUpdateDataSet
|
|
259
260
|
});
|
|
@@ -262,17 +263,17 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
262
263
|
* @summary Update just the basic-info fields (name + description) on a dataset.
|
|
263
264
|
*/
|
|
264
265
|
const dataSetsPutBasicInfo = (id, dataSetsUpdateDataSetBasicInfo) => {
|
|
265
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/basicInfo`, method: 'PUT',
|
|
266
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/basicInfo`, method: 'PUT',
|
|
266
267
|
headers: { 'Content-Type': 'application/*+json', },
|
|
267
268
|
data: dataSetsUpdateDataSetBasicInfo
|
|
268
269
|
});
|
|
269
270
|
};
|
|
270
271
|
const dataSetsClear = (id) => {
|
|
271
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/clear`, method: 'POST'
|
|
272
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/clear`, method: 'POST'
|
|
272
273
|
});
|
|
273
274
|
};
|
|
274
275
|
const dataSetsGetContainerItemsRunHistory = (id, params) => {
|
|
275
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/containerItems/runHistory`, method: 'GET',
|
|
276
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/containerItems/runHistory`, method: 'GET',
|
|
276
277
|
params
|
|
277
278
|
});
|
|
278
279
|
};
|
|
@@ -280,34 +281,34 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
280
281
|
* @summary Move a dataset to a different dataspace.
|
|
281
282
|
*/
|
|
282
283
|
const dataSetsSetDataspace = (id, dataSetsSetDataspaceBody) => {
|
|
283
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/dataspace`, method: 'PUT',
|
|
284
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/dataspace`, method: 'PUT',
|
|
284
285
|
headers: { 'Content-Type': 'application/*+json', },
|
|
285
286
|
data: dataSetsSetDataspaceBody
|
|
286
287
|
});
|
|
287
288
|
};
|
|
288
289
|
const dataSetsExport = (id) => {
|
|
289
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/export`, method: 'GET'
|
|
290
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/export`, method: 'GET'
|
|
290
291
|
});
|
|
291
292
|
};
|
|
292
293
|
const dataSetsGetItems = (id, params) => {
|
|
293
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/items`, method: 'GET',
|
|
294
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/items`, method: 'GET',
|
|
294
295
|
params
|
|
295
296
|
});
|
|
296
297
|
};
|
|
297
298
|
const dataSetsAddItem = (id, dataSetItemCreateRequest) => {
|
|
298
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/items`, method: 'POST',
|
|
299
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/items`, method: 'POST',
|
|
299
300
|
headers: { 'Content-Type': 'application/*+json', },
|
|
300
301
|
data: dataSetItemCreateRequest
|
|
301
302
|
});
|
|
302
303
|
};
|
|
303
304
|
const dataSetsSearchItems = (id, dataSetSearchRequest) => {
|
|
304
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/items/search`, method: 'POST',
|
|
305
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/items/search`, method: 'POST',
|
|
305
306
|
headers: { 'Content-Type': 'application/*+json', },
|
|
306
307
|
data: dataSetSearchRequest
|
|
307
308
|
});
|
|
308
309
|
};
|
|
309
310
|
const dataSetsDeleteItem = (id, itemId) => {
|
|
310
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/items/${itemId}`, method: 'DELETE'
|
|
311
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/items/${itemId}`, method: 'DELETE'
|
|
311
312
|
});
|
|
312
313
|
};
|
|
313
314
|
/**
|
|
@@ -319,13 +320,13 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
319
320
|
* @summary Upsert a single property on a dataset.
|
|
320
321
|
*/
|
|
321
322
|
const dataSetsAddDataSetProperty = (id, dataSetsUpsertDataSetProperty) => {
|
|
322
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/properties`, method: 'POST',
|
|
323
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/properties`, method: 'POST',
|
|
323
324
|
headers: { 'Content-Type': 'application/*+json', },
|
|
324
325
|
data: dataSetsUpsertDataSetProperty
|
|
325
326
|
});
|
|
326
327
|
};
|
|
327
328
|
const dataSetsDeleteDataSetProperty = (id, name) => {
|
|
328
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/properties/${name}`, method: 'DELETE'
|
|
329
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/properties/${name}`, method: 'DELETE'
|
|
329
330
|
});
|
|
330
331
|
};
|
|
331
332
|
/**
|
|
@@ -335,7 +336,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
335
336
|
container item, including runs superseded by later re-ingests.
|
|
336
337
|
*/
|
|
337
338
|
const dataSetsGetIngestionRuns = (id, params) => {
|
|
338
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/runs`, method: 'GET',
|
|
339
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/runs`, method: 'GET',
|
|
339
340
|
params
|
|
340
341
|
});
|
|
341
342
|
};
|
|
@@ -343,7 +344,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
343
344
|
* @summary Set the per-document scoping config (mode + subject path) on a dataset.
|
|
344
345
|
*/
|
|
345
346
|
const dataSetsPutScoping = (id, dataSetsSetDataSetScoping) => {
|
|
346
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/scoping`, method: 'PUT',
|
|
347
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/scoping`, method: 'PUT',
|
|
347
348
|
headers: { 'Content-Type': 'application/*+json', },
|
|
348
349
|
data: dataSetsSetDataSetScoping
|
|
349
350
|
});
|
|
@@ -356,7 +357,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
356
357
|
marked row is returned. Nothing here deletes anything.
|
|
357
358
|
*/
|
|
358
359
|
const dataSetsPutSourceDeletes = (id, dataSetsSetDataSetSourceDeletes) => {
|
|
359
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/sourceDeletes`, method: 'PUT',
|
|
360
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/sourceDeletes`, method: 'PUT',
|
|
360
361
|
headers: { 'Content-Type': 'application/*+json', },
|
|
361
362
|
data: dataSetsSetDataSetSourceDeletes
|
|
362
363
|
});
|
|
@@ -370,21 +371,21 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
370
371
|
ingest into it, including any it shares with other datasets.
|
|
371
372
|
*/
|
|
372
373
|
const dataSetsGetSyncs = (id) => {
|
|
373
|
-
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/syncs`, method: 'GET'
|
|
374
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/syncs`, method: 'GET'
|
|
374
375
|
});
|
|
375
376
|
};
|
|
376
377
|
/**
|
|
377
378
|
* @summary Fetch a list of all available data source types in SmartSpace.
|
|
378
379
|
*/
|
|
379
380
|
const dataSourceTypesGet = () => {
|
|
380
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes`, method: 'GET'
|
|
381
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes`, method: 'GET'
|
|
381
382
|
});
|
|
382
383
|
};
|
|
383
384
|
/**
|
|
384
385
|
* @summary Check for available containers for a specific data source type in SmartSpace.
|
|
385
386
|
*/
|
|
386
387
|
const dataSourceTypesGetAvailableContainers = (dataSourcesTestDataSourceConnection) => {
|
|
387
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes/AvailableContainers`, method: 'POST',
|
|
388
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes/AvailableContainers`, method: 'POST',
|
|
388
389
|
headers: { 'Content-Type': 'application/*+json', },
|
|
389
390
|
data: dataSourcesTestDataSourceConnection
|
|
390
391
|
});
|
|
@@ -393,7 +394,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
393
394
|
* @summary Test the connection for a data source type in SmartSpace, verifying credentials and connectivity.
|
|
394
395
|
*/
|
|
395
396
|
const dataSourceTypesTestConnection = (dataSourcesTestDataSourceConnection) => {
|
|
396
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes/TestConnection`, method: 'POST',
|
|
397
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes/TestConnection`, method: 'POST',
|
|
397
398
|
headers: { 'Content-Type': 'application/*+json', },
|
|
398
399
|
data: dataSourcesTestDataSourceConnection
|
|
399
400
|
});
|
|
@@ -402,7 +403,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
402
403
|
* @summary Retrieves a collection of data sources.
|
|
403
404
|
*/
|
|
404
405
|
const dataSourcesGet = (params) => {
|
|
405
|
-
return (0, instance_1.customInstance)({ url: `/DataSources`, method: 'GET',
|
|
406
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources`, method: 'GET',
|
|
406
407
|
params
|
|
407
408
|
});
|
|
408
409
|
};
|
|
@@ -410,7 +411,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
410
411
|
* @summary Create a new data source in SmartSpace, defining its properties and credentials for integration.
|
|
411
412
|
*/
|
|
412
413
|
const dataSourcesPost = (dataSourcesCreateDataSource) => {
|
|
413
|
-
return (0, instance_1.customInstance)({ url: `/DataSources`, method: 'POST',
|
|
414
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources`, method: 'POST',
|
|
414
415
|
headers: { 'Content-Type': 'application/*+json', },
|
|
415
416
|
data: dataSourcesCreateDataSource
|
|
416
417
|
});
|
|
@@ -419,14 +420,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
419
420
|
* @summary Remove a specific data source from SmartSpace using its unique ID.
|
|
420
421
|
*/
|
|
421
422
|
const dataSourcesDelete = (dataSourceId) => {
|
|
422
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}`, method: 'DELETE'
|
|
423
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}`, method: 'DELETE'
|
|
423
424
|
});
|
|
424
425
|
};
|
|
425
426
|
/**
|
|
426
427
|
* @summary Update the configuration of an existing data source in SmartSpace by specifying its ID.
|
|
427
428
|
*/
|
|
428
429
|
const dataSourcesPut = (dataSourceId, dataSourcesUpdateDataSource) => {
|
|
429
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}`, method: 'PUT',
|
|
430
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}`, method: 'PUT',
|
|
430
431
|
headers: { 'Content-Type': 'application/*+json', },
|
|
431
432
|
data: dataSourcesUpdateDataSource
|
|
432
433
|
});
|
|
@@ -435,7 +436,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
435
436
|
* @summary Retrieve container information associated with a specific data source in SmartSpace, using it's ID.
|
|
436
437
|
*/
|
|
437
438
|
const dataSourcesContainers = (dataSourceId, params) => {
|
|
438
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/containers`, method: 'GET',
|
|
439
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/containers`, method: 'GET',
|
|
439
440
|
params
|
|
440
441
|
});
|
|
441
442
|
};
|
|
@@ -444,7 +445,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
444
445
|
a total record count without persisting any state.
|
|
445
446
|
*/
|
|
446
447
|
const dataSourcesPreviewContainer = (dataSourceId, dataSourcesPreviewContainerRequest) => {
|
|
447
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/containers/preview`, method: 'POST',
|
|
448
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/containers/preview`, method: 'POST',
|
|
448
449
|
headers: { 'Content-Type': 'application/*+json', },
|
|
449
450
|
data: dataSourcesPreviewContainerRequest
|
|
450
451
|
});
|
|
@@ -456,7 +457,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
456
457
|
containerPath is a query param (not a route segment) to avoid ASP.NET routing splits on paths containing '/'.
|
|
457
458
|
*/
|
|
458
459
|
const dataSourcesContainerSchema = (dataSourceId, params) => {
|
|
459
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/containers/properties`, method: 'GET',
|
|
460
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/containers/properties`, method: 'GET',
|
|
460
461
|
params
|
|
461
462
|
});
|
|
462
463
|
};
|
|
@@ -464,7 +465,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
464
465
|
* @summary Update the credentials for an existing data source in SmartSpace by specifying its ID.
|
|
465
466
|
*/
|
|
466
467
|
const dataSourcesUpdateCredentials = (dataSourceId, dataSourcesUpdateDataSourceCredentials) => {
|
|
467
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/credentials`, method: 'PUT',
|
|
468
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/credentials`, method: 'PUT',
|
|
468
469
|
headers: { 'Content-Type': 'application/*+json', },
|
|
469
470
|
data: dataSourcesUpdateDataSourceCredentials
|
|
470
471
|
});
|
|
@@ -475,23 +476,23 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
475
476
|
are safe — concurrent syncs of the same source collapse to one run.
|
|
476
477
|
*/
|
|
477
478
|
const dataSourcesRequestSync = (dataSourceId) => {
|
|
478
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/sync`, method: 'POST'
|
|
479
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/sync`, method: 'POST'
|
|
479
480
|
});
|
|
480
481
|
};
|
|
481
482
|
const dataSourcesGetAdminUsers = (id) => {
|
|
482
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${id}/admins`, method: 'GET'
|
|
483
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${id}/admins`, method: 'GET'
|
|
483
484
|
});
|
|
484
485
|
};
|
|
485
486
|
const dataSourcesDeleteAdmin = (id, userId) => {
|
|
486
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${id}/admins/${userId}`, method: 'DELETE'
|
|
487
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${id}/admins/${userId}`, method: 'DELETE'
|
|
487
488
|
});
|
|
488
489
|
};
|
|
489
490
|
const dataSourcesAddAdmin = (id, userId) => {
|
|
490
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${id}/admins/${userId}`, method: 'PUT'
|
|
491
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${id}/admins/${userId}`, method: 'PUT'
|
|
491
492
|
});
|
|
492
493
|
};
|
|
493
494
|
const dataSpacesGet = (params) => {
|
|
494
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces`, method: 'GET',
|
|
495
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces`, method: 'GET',
|
|
495
496
|
params
|
|
496
497
|
});
|
|
497
498
|
};
|
|
@@ -499,42 +500,42 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
499
500
|
* @summary Create a new dataspace.
|
|
500
501
|
*/
|
|
501
502
|
const dataSpacesPost = (dataSpacesCreateDataSpace) => {
|
|
502
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces`, method: 'POST',
|
|
503
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces`, method: 'POST',
|
|
503
504
|
headers: { 'Content-Type': 'application/*+json', },
|
|
504
505
|
data: dataSpacesCreateDataSpace
|
|
505
506
|
});
|
|
506
507
|
};
|
|
507
508
|
const dataSpacesDelete = (id) => {
|
|
508
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'DELETE'
|
|
509
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'DELETE'
|
|
509
510
|
});
|
|
510
511
|
};
|
|
511
512
|
const dataSpacesGetById = (id) => {
|
|
512
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'GET'
|
|
513
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'GET'
|
|
513
514
|
});
|
|
514
515
|
};
|
|
515
516
|
/**
|
|
516
517
|
* @summary Update an existing dataspace.
|
|
517
518
|
*/
|
|
518
519
|
const dataSpacesPut = (id, dataSpacesUpdateDataSpace) => {
|
|
519
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'PUT',
|
|
520
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'PUT',
|
|
520
521
|
headers: { 'Content-Type': 'application/*+json', },
|
|
521
522
|
data: dataSpacesUpdateDataSpace
|
|
522
523
|
});
|
|
523
524
|
};
|
|
524
525
|
const dataSpacesGetAdminUsers = (id) => {
|
|
525
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/admins`, method: 'GET'
|
|
526
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/admins`, method: 'GET'
|
|
526
527
|
});
|
|
527
528
|
};
|
|
528
529
|
const dataSpacesDeleteAdmin = (id, userId) => {
|
|
529
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
530
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
530
531
|
});
|
|
531
532
|
};
|
|
532
533
|
const dataSpacesAddAdmin = (id, userId) => {
|
|
533
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
534
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
534
535
|
});
|
|
535
536
|
};
|
|
536
537
|
const dataSpacesGetDataSets = (id, params) => {
|
|
537
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/datasets`, method: 'GET',
|
|
538
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/datasets`, method: 'GET',
|
|
538
539
|
params
|
|
539
540
|
});
|
|
540
541
|
};
|
|
@@ -542,17 +543,26 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
542
543
|
* @summary Create a new dataset inside this dataspace.
|
|
543
544
|
*/
|
|
544
545
|
const dataSpacesPostDataset = (id, dataSetsCreateDataSet) => {
|
|
545
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/datasets`, method: 'POST',
|
|
546
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/datasets`, method: 'POST',
|
|
546
547
|
headers: { 'Content-Type': 'application/*+json', },
|
|
547
548
|
data: dataSetsCreateDataSet
|
|
548
549
|
});
|
|
549
550
|
};
|
|
550
551
|
const debugInvoke = (connectionId, method, debugInvokeBody) => {
|
|
551
|
-
return (0, instance_1.customInstance)({ url: `/Debug/connections/${connectionId}/invoke/${method}`, method: 'POST',
|
|
552
|
+
return (0, instance_1.customInstance)({ url: `/v1/Debug/connections/${connectionId}/invoke/${method}`, method: 'POST',
|
|
552
553
|
headers: { 'Content-Type': 'application/*+json', },
|
|
553
554
|
data: debugInvokeBody
|
|
554
555
|
});
|
|
555
556
|
};
|
|
557
|
+
/**
|
|
558
|
+
* @summary The ingest pipeline, install-wide: depth and oldest-message age of the
|
|
559
|
+
ingest and poison queues, and how many consumer replicas have a live
|
|
560
|
+
heartbeat. Nothing reads a message body.
|
|
561
|
+
*/
|
|
562
|
+
const diagnosticsGetIngestQueue = () => {
|
|
563
|
+
return (0, instance_1.customInstance)({ url: `/v1/Diagnostics/ingest-queue`, method: 'GET'
|
|
564
|
+
});
|
|
565
|
+
};
|
|
556
566
|
/**
|
|
557
567
|
* @summary Mongo index health for the flow-runs store: planned-vs-existing
|
|
558
568
|
indexes per collection, the latest index-ensure outcome per index
|
|
@@ -560,28 +570,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
560
570
|
transformations with their progress (currentOp).
|
|
561
571
|
*/
|
|
562
572
|
const diagnosticsGetMongoIndexes = () => {
|
|
563
|
-
return (0, instance_1.customInstance)({ url: `/Diagnostics/mongo-indexes`, method: 'GET'
|
|
573
|
+
return (0, instance_1.customInstance)({ url: `/v1/Diagnostics/mongo-indexes`, method: 'GET'
|
|
564
574
|
});
|
|
565
575
|
};
|
|
566
576
|
/**
|
|
567
577
|
* @summary List the current user's drafts (without parsed interfaces — load detail to get those).
|
|
568
578
|
*/
|
|
569
579
|
const draftsListDrafts = () => {
|
|
570
|
-
return (0, instance_1.customInstance)({ url: `/Drafts`, method: 'GET'
|
|
580
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts`, method: 'GET'
|
|
571
581
|
});
|
|
572
582
|
};
|
|
573
583
|
/**
|
|
574
584
|
* @summary Delete a draft (row + blob). Does not touch any published Custom of the same name.
|
|
575
585
|
*/
|
|
576
586
|
const draftsDeleteDraft = (name) => {
|
|
577
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'DELETE'
|
|
587
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'DELETE'
|
|
578
588
|
});
|
|
579
589
|
};
|
|
580
590
|
/**
|
|
581
591
|
* @summary Fetch a specific draft (source text, parsed interfaces, RowVersion, IsActive).
|
|
582
592
|
*/
|
|
583
593
|
const draftsGetDraft = (name) => {
|
|
584
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'GET'
|
|
594
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'GET'
|
|
585
595
|
});
|
|
586
596
|
};
|
|
587
597
|
/**
|
|
@@ -589,7 +599,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
589
599
|
overrides the published Custom at the same `(name, version)` for them only.
|
|
590
600
|
*/
|
|
591
601
|
const draftsToggleDraft = (name, draftsToggleDraftRequest) => {
|
|
592
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'PATCH',
|
|
602
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'PATCH',
|
|
593
603
|
headers: { 'Content-Type': 'application/*+json', },
|
|
594
604
|
data: draftsToggleDraftRequest
|
|
595
605
|
});
|
|
@@ -600,7 +610,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
600
610
|
current `RowVersion` if another session has saved in the interim.
|
|
601
611
|
*/
|
|
602
612
|
const draftsSaveDraft = (name, draftsSaveDraftRequest) => {
|
|
603
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'POST',
|
|
613
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'POST',
|
|
604
614
|
headers: { 'Content-Type': 'application/*+json', },
|
|
605
615
|
data: draftsSaveDraftRequest
|
|
606
616
|
});
|
|
@@ -612,7 +622,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
612
622
|
replace it (a new row supersedes the old per newest-wins resolution).
|
|
613
623
|
*/
|
|
614
624
|
const draftsPublishDraft = (name, draftsPublishDraftRequest) => {
|
|
615
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}/publish`, method: 'POST',
|
|
625
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}/publish`, method: 'POST',
|
|
616
626
|
headers: { 'Content-Type': 'application/*+json', },
|
|
617
627
|
data: draftsPublishDraftRequest
|
|
618
628
|
});
|
|
@@ -643,7 +653,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
643
653
|
if (filesUploadFilesBody.workspaceId !== undefined) {
|
|
644
654
|
formData.append(`workspaceId`, filesUploadFilesBody.workspaceId);
|
|
645
655
|
}
|
|
646
|
-
return (0, instance_1.customInstance)({ url: `/Files`, method: 'POST',
|
|
656
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files`, method: 'POST',
|
|
647
657
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
648
658
|
data: formData
|
|
649
659
|
});
|
|
@@ -652,7 +662,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
652
662
|
* @summary Get details for a file previously uploaded.
|
|
653
663
|
*/
|
|
654
664
|
const filesGetFileInfo = (id, params) => {
|
|
655
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}`, method: 'GET',
|
|
665
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}`, method: 'GET',
|
|
656
666
|
params
|
|
657
667
|
});
|
|
658
668
|
};
|
|
@@ -660,7 +670,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
660
670
|
* @summary Download a previously uploaded file.
|
|
661
671
|
*/
|
|
662
672
|
const filesDownloadFile = (id, params) => {
|
|
663
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}/download`, method: 'GET',
|
|
673
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/download`, method: 'GET',
|
|
664
674
|
params
|
|
665
675
|
});
|
|
666
676
|
};
|
|
@@ -668,7 +678,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
668
678
|
* @summary Get URI of a previously uploaded file.
|
|
669
679
|
*/
|
|
670
680
|
const filesGetUri = (id, params) => {
|
|
671
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}/uri`, method: 'GET',
|
|
681
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/uri`, method: 'GET',
|
|
672
682
|
params
|
|
673
683
|
});
|
|
674
684
|
};
|
|
@@ -676,32 +686,24 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
676
686
|
* @summary Creates a new flow run with the specified parameters
|
|
677
687
|
*/
|
|
678
688
|
const flowRunsCreateFlowRun = (configApiRunFlowRequest, params) => {
|
|
679
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns`, method: 'POST',
|
|
689
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns`, method: 'POST',
|
|
680
690
|
headers: { 'Content-Type': 'application/*+json', },
|
|
681
691
|
data: configApiRunFlowRequest,
|
|
682
692
|
params
|
|
683
693
|
});
|
|
684
694
|
};
|
|
685
|
-
/**
|
|
686
|
-
* @summary Searches for flow runs based on search term
|
|
687
|
-
*/
|
|
688
|
-
const flowRunsSearchFlowRuns = (params) => {
|
|
689
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/search`, method: 'GET',
|
|
690
|
-
params
|
|
691
|
-
});
|
|
692
|
-
};
|
|
693
695
|
/**
|
|
694
696
|
* @summary Gets a singile file if it was used as an input to the flow run
|
|
695
697
|
*/
|
|
696
698
|
const flowRunsGetFileFromFlowRunId = (flowRunId) => {
|
|
697
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${flowRunId}/file`, method: 'GET'
|
|
699
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${flowRunId}/file`, method: 'GET'
|
|
698
700
|
});
|
|
699
701
|
};
|
|
700
702
|
/**
|
|
701
703
|
* @summary Gets a flow run including its context
|
|
702
704
|
*/
|
|
703
705
|
const flowRunsGetFlowRun = (id) => {
|
|
704
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}`, method: 'GET'
|
|
706
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}`, method: 'GET'
|
|
705
707
|
});
|
|
706
708
|
};
|
|
707
709
|
/**
|
|
@@ -711,7 +713,42 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
711
713
|
seconds. Cancelled runs carry cancelledAt in their basic info.
|
|
712
714
|
*/
|
|
713
715
|
const flowRunsCancelFlowRun = (id) => {
|
|
714
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/cancel`, method: 'POST'
|
|
716
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/cancel`, method: 'POST'
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* Frames are unnamed SSE `data:` events, each carrying a `kind`:
|
|
721
|
+
`snapshot` (rows + total; the AI side sends it first), `events`
|
|
722
|
+
(rows that just changed, same shape), `lagged` and `gap` (both
|
|
723
|
+
mean re-read; the stream stays attached), and `unavailable` (the
|
|
724
|
+
feature is not enabled on the install; sent once, then the stream ends —
|
|
725
|
+
do not retry).
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
The client tracks no offset. The AI side attaches to its change stream
|
|
729
|
+
before it reads the log, so rows written between the two arrive twice
|
|
730
|
+
rather than not at all, and where it could not, or lost rows later, it
|
|
731
|
+
sends `gap` or `lagged`. A reconnect simply starts with a fresh
|
|
732
|
+
snapshot. This API relays that contract; it does not enforce it.
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
The AI side sends rows with structure and timings and with value payloads
|
|
736
|
+
left out — expand a step through M:SmartSpace.App.ConfigApi.Controllers.FlowRunsController.GetStepExecution(System.Guid,System.Guid) for those —
|
|
737
|
+
and sends only persisted state, which does not include LLM token deltas.
|
|
738
|
+
Nothing here strips a payload: a row is relayed as it arrives.
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
This endpoint does not return 501. The AI side answers 501 when the
|
|
742
|
+
feature is off, and that arrives here as the `unavailable` frame on a
|
|
743
|
+
200. Surfacing it as an exception instead would reach the caller as a
|
|
744
|
+
generic 500, which loses the one thing it needs to know: that retrying
|
|
745
|
+
will never help.
|
|
746
|
+
|
|
747
|
+
* @summary Live run events for a run: a snapshot of the run so far, then the tail,
|
|
748
|
+
on one connection.
|
|
749
|
+
*/
|
|
750
|
+
const flowRunsStreamRunEvents = (id) => {
|
|
751
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/events/stream`, method: 'GET'
|
|
715
752
|
});
|
|
716
753
|
};
|
|
717
754
|
const flowRunsAddFileIdFiles = (id, flowRunsAddFileIdFilesBody) => {
|
|
@@ -719,13 +756,13 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
719
756
|
if (flowRunsAddFileIdFilesBody.file !== undefined) {
|
|
720
757
|
formData.append(`file`, flowRunsAddFileIdFilesBody.file);
|
|
721
758
|
}
|
|
722
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/files`, method: 'POST',
|
|
759
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/files`, method: 'POST',
|
|
723
760
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
724
761
|
data: formData
|
|
725
762
|
});
|
|
726
763
|
};
|
|
727
764
|
const flowRunsAddFileIdFilesExisting = (id, filesAddMessageFileFromBlobUri) => {
|
|
728
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/files/existing`, method: 'POST',
|
|
765
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/files/existing`, method: 'POST',
|
|
729
766
|
headers: { 'Content-Type': 'application/*+json', },
|
|
730
767
|
data: filesAddMessageFileFromBlobUri
|
|
731
768
|
});
|
|
@@ -734,7 +771,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
734
771
|
* @summary Lists a run's function executions, newest first.
|
|
735
772
|
*/
|
|
736
773
|
const flowRunsGetStepExecutions = (id, params) => {
|
|
737
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions`, method: 'GET',
|
|
774
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/functionexecutions`, method: 'GET',
|
|
738
775
|
params
|
|
739
776
|
});
|
|
740
777
|
};
|
|
@@ -747,7 +784,17 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
747
784
|
behind `functionexecutions?includeValues=false`.
|
|
748
785
|
*/
|
|
749
786
|
const flowRunsGetStepExecution = (id, executionId) => {
|
|
750
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions/${executionId}`, method: 'GET'
|
|
787
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/functionexecutions/${executionId}`, method: 'GET'
|
|
788
|
+
});
|
|
789
|
+
};
|
|
790
|
+
/**
|
|
791
|
+
* Read from SQL only. Gated like the run read: 404 for a run the caller may not see.
|
|
792
|
+
Cost sums the priced calls; unpricedCalls says how many calls it leaves out.
|
|
793
|
+
* @summary A run's invocations, oldest first: on a chat thread one per message, on an
|
|
794
|
+
ingestion run one. Each carries its model calls summed by model and round.
|
|
795
|
+
*/
|
|
796
|
+
const flowRunsGetInvocations = (id) => {
|
|
797
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/invocations`, method: 'GET'
|
|
751
798
|
});
|
|
752
799
|
};
|
|
753
800
|
/**
|
|
@@ -757,34 +804,77 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
757
804
|
* @summary Downloads a blob-spilled value's payload.
|
|
758
805
|
*/
|
|
759
806
|
const flowRunsGetFlowValueDownload = (id, valueId) => {
|
|
760
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/values/${valueId}/download`, method: 'GET'
|
|
807
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/values/${valueId}/download`, method: 'GET'
|
|
761
808
|
});
|
|
762
809
|
};
|
|
763
810
|
const flowRunsGetVariables = (id) => {
|
|
764
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables`, method: 'GET'
|
|
811
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables`, method: 'GET'
|
|
765
812
|
});
|
|
766
813
|
};
|
|
767
814
|
const flowRunsSetVariable = (id, variableName, flowRunsSetVariableBody) => {
|
|
768
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
|
|
815
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
|
|
769
816
|
headers: { 'Content-Type': 'application/*+json', },
|
|
770
817
|
data: flowRunsSetVariableBody
|
|
771
818
|
});
|
|
772
819
|
};
|
|
773
820
|
const flowsGet = (id) => {
|
|
774
|
-
return (0, instance_1.customInstance)({ url: `/Flows/${id}`, method: 'GET'
|
|
821
|
+
return (0, instance_1.customInstance)({ url: `/v1/Flows/${id}`, method: 'GET'
|
|
775
822
|
});
|
|
776
823
|
};
|
|
777
824
|
const flowsSetActiveFlowDefinition = (id, flowsFlowDefinition) => {
|
|
778
|
-
return (0, instance_1.customInstance)({ url: `/Flows/${id}/active`, method: 'PUT',
|
|
825
|
+
return (0, instance_1.customInstance)({ url: `/v1/Flows/${id}/active`, method: 'PUT',
|
|
779
826
|
headers: { 'Content-Type': 'application/*+json', },
|
|
780
827
|
data: flowsFlowDefinition
|
|
781
828
|
});
|
|
782
829
|
};
|
|
830
|
+
/**
|
|
831
|
+
* @summary Returns one entry per known key, each carrying both the currently-configured value
|
|
832
|
+
(what's set in mgmt-api now) and the active value (what the install last confirmed it
|
|
833
|
+
was running with). The frontend diffs these to show pending changes.
|
|
834
|
+
*/
|
|
835
|
+
const installParametersList = () => {
|
|
836
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters`, method: 'GET'
|
|
837
|
+
});
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* @summary Returns the closed registry of known install-parameter keys. Each entry describes the
|
|
841
|
+
key's type, default, and human-readable description so the frontend can render a typed
|
|
842
|
+
input per key.
|
|
843
|
+
*/
|
|
844
|
+
const installParametersGetRegistry = () => {
|
|
845
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/registry`, method: 'GET'
|
|
846
|
+
});
|
|
847
|
+
};
|
|
848
|
+
/**
|
|
849
|
+
* @summary Clears the override for a parameter so it falls back to the registry's default on the
|
|
850
|
+
next install update. Idempotent — deleting an already-absent key returns 204.
|
|
851
|
+
*/
|
|
852
|
+
const installParametersDelete = (key) => {
|
|
853
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'DELETE'
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* @summary Returns a single parameter by key. Returns 404 if the key is known but has no override set.
|
|
858
|
+
*/
|
|
859
|
+
const installParametersGet = (key) => {
|
|
860
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'GET'
|
|
861
|
+
});
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* @summary Upserts the override value for a parameter. The management API type-checks it against the
|
|
865
|
+
registry (a boolean key requires a JSON boolean value, etc.); this route forwards it unchanged.
|
|
866
|
+
*/
|
|
867
|
+
const installParametersUpsert = (key, coreManagementUpsertInstallParameterModel) => {
|
|
868
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'PUT',
|
|
869
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
870
|
+
data: coreManagementUpsertInstallParameterModel
|
|
871
|
+
});
|
|
872
|
+
};
|
|
783
873
|
/**
|
|
784
874
|
* @summary Retrieves a list of model deployment providers.
|
|
785
875
|
*/
|
|
786
876
|
const modelProvidersGetProviders = (params) => {
|
|
787
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders`, method: 'GET',
|
|
877
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders`, method: 'GET',
|
|
788
878
|
params
|
|
789
879
|
});
|
|
790
880
|
};
|
|
@@ -792,7 +882,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
792
882
|
* @summary Creates a new model deployment provider.
|
|
793
883
|
*/
|
|
794
884
|
const modelProvidersCreateProvider = (aiCreateModelDeploymentProvider) => {
|
|
795
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders`, method: 'POST',
|
|
885
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders`, method: 'POST',
|
|
796
886
|
headers: { 'Content-Type': 'application/*+json', },
|
|
797
887
|
data: aiCreateModelDeploymentProvider
|
|
798
888
|
});
|
|
@@ -801,25 +891,37 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
801
891
|
* @summary Retrieves the deployable models for a model provider
|
|
802
892
|
*/
|
|
803
893
|
const modelProvidersGetModelProviderTypes = () => {
|
|
804
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/types`, method: 'GET'
|
|
894
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types`, method: 'GET'
|
|
805
895
|
});
|
|
806
896
|
};
|
|
807
897
|
/**
|
|
808
898
|
* @summary Retrieves the deployable models for a model provider
|
|
809
899
|
*/
|
|
810
900
|
const modelProvidersGetModelProviderTypeDeployableModels = (providerType) => {
|
|
811
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/types/${providerType}/deployablemodels`, method: 'GET'
|
|
901
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types/${providerType}/deployablemodels`, method: 'GET'
|
|
902
|
+
});
|
|
903
|
+
};
|
|
904
|
+
/**
|
|
905
|
+
* @summary Retrieves the deployable models for a model provider type, further filtered to only the
|
|
906
|
+
models actually available from the given credentials — used by the "Load Models" button
|
|
907
|
+
in the Admin UI before a provider is saved. Credentials travel in the body rather than
|
|
908
|
+
the query string since they may not be persisted anywhere yet.
|
|
909
|
+
*/
|
|
910
|
+
const modelProvidersLoadProviderModels = (providerType, modelLoadProviderModelsRequest) => {
|
|
911
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types/${providerType}/loadmodels`, method: 'POST',
|
|
912
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
913
|
+
data: modelLoadProviderModelsRequest
|
|
812
914
|
});
|
|
813
915
|
};
|
|
814
916
|
const modelProvidersGetProvider = (id) => {
|
|
815
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/${id}`, method: 'GET'
|
|
917
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/${id}`, method: 'GET'
|
|
816
918
|
});
|
|
817
919
|
};
|
|
818
920
|
/**
|
|
819
921
|
* @summary Updates or inserts a model deployment provider.
|
|
820
922
|
*/
|
|
821
923
|
const modelProvidersUpsertProvider = (id, aiCreateModelDeploymentProvider) => {
|
|
822
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/${id}`, method: 'PUT',
|
|
924
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/${id}`, method: 'PUT',
|
|
823
925
|
headers: { 'Content-Type': 'application/*+json', },
|
|
824
926
|
data: aiCreateModelDeploymentProvider
|
|
825
927
|
});
|
|
@@ -828,7 +930,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
828
930
|
* @summary Retrieves a list of models.
|
|
829
931
|
*/
|
|
830
932
|
const modelsGetModels = (params) => {
|
|
831
|
-
return (0, instance_1.customInstance)({ url: `/Models`, method: 'GET',
|
|
933
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'GET',
|
|
832
934
|
params
|
|
833
935
|
});
|
|
834
936
|
};
|
|
@@ -836,7 +938,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
836
938
|
* @summary Creates a new model.
|
|
837
939
|
*/
|
|
838
940
|
const modelsCreateModel = (aiCreateModel) => {
|
|
839
|
-
return (0, instance_1.customInstance)({ url: `/Models`, method: 'POST',
|
|
941
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'POST',
|
|
840
942
|
headers: { 'Content-Type': 'application/*+json', },
|
|
841
943
|
data: aiCreateModel
|
|
842
944
|
});
|
|
@@ -845,11 +947,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
845
947
|
* @summary Retrieves the instance-wide default model — the one pre-selected on new LLM blocks and the default workspace flow.
|
|
846
948
|
*/
|
|
847
949
|
const modelsGetDefaultModel = () => {
|
|
848
|
-
return (0, instance_1.customInstance)({ url: `/Models/default`, method: 'GET'
|
|
950
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/default`, method: 'GET'
|
|
849
951
|
});
|
|
850
952
|
};
|
|
851
953
|
const modelsGetDefaultDockerFile = (params) => {
|
|
852
|
-
return (0, instance_1.customInstance)({ url: `/Models/defaultdockerfile`, method: 'GET',
|
|
954
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/defaultdockerfile`, method: 'GET',
|
|
853
955
|
params
|
|
854
956
|
});
|
|
855
957
|
};
|
|
@@ -857,21 +959,21 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
857
959
|
* @summary Deletes a model with the specified ID.
|
|
858
960
|
*/
|
|
859
961
|
const modelsDeleteModel = (id) => {
|
|
860
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'DELETE'
|
|
962
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'DELETE'
|
|
861
963
|
});
|
|
862
964
|
};
|
|
863
965
|
/**
|
|
864
966
|
* @summary Retrieves a model by its ID.
|
|
865
967
|
*/
|
|
866
968
|
const modelsGetModel = (id) => {
|
|
867
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'GET'
|
|
969
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'GET'
|
|
868
970
|
});
|
|
869
971
|
};
|
|
870
972
|
/**
|
|
871
973
|
* @summary Updates or inserts a model with the specified ID.
|
|
872
974
|
*/
|
|
873
975
|
const modelsUpsertModel = (id, aiCreateModel) => {
|
|
874
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'PUT',
|
|
976
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'PUT',
|
|
875
977
|
headers: { 'Content-Type': 'application/*+json', },
|
|
876
978
|
data: aiCreateModel
|
|
877
979
|
});
|
|
@@ -880,35 +982,43 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
880
982
|
* @summary Clears the default flag from the specified model, leaving the instance with no default.
|
|
881
983
|
*/
|
|
882
984
|
const modelsClearDefaultModel = (id) => {
|
|
883
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'DELETE'
|
|
985
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/default`, method: 'DELETE'
|
|
884
986
|
});
|
|
885
987
|
};
|
|
886
988
|
/**
|
|
887
989
|
* @summary Makes the specified model the instance-wide default, replacing any previous default.
|
|
888
990
|
*/
|
|
889
991
|
const modelsSetDefaultModel = (id) => {
|
|
890
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'PUT'
|
|
992
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/default`, method: 'PUT'
|
|
993
|
+
});
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* @summary Retrieves the deployment of a model: VM URL, docker file, provider and steps. Platform admins only; the
|
|
997
|
+
class gate lets editors reach the route and the deployment view refuses them with 403.
|
|
998
|
+
*/
|
|
999
|
+
const modelsGetModelDeployment = (id) => {
|
|
1000
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/deployment`, method: 'GET'
|
|
891
1001
|
});
|
|
892
1002
|
};
|
|
893
1003
|
/**
|
|
894
1004
|
* @summary Retrieves the Docker logs for a specific deployment of a model.
|
|
895
1005
|
*/
|
|
896
1006
|
const modelsGetDeploymentDockerLogs = (id) => {
|
|
897
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/deployment/docker-logs`, method: 'GET'
|
|
1007
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/deployment/docker-logs`, method: 'GET'
|
|
898
1008
|
});
|
|
899
1009
|
};
|
|
900
1010
|
/**
|
|
901
1011
|
* @summary Retrieves the health status of a model.
|
|
902
1012
|
*/
|
|
903
1013
|
const modelsGetModelHealth = (id) => {
|
|
904
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/health`, method: 'GET'
|
|
1014
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/health`, method: 'GET'
|
|
905
1015
|
});
|
|
906
1016
|
};
|
|
907
1017
|
/**
|
|
908
1018
|
* @summary Retrieve notifications for user login.
|
|
909
1019
|
*/
|
|
910
1020
|
const notificationGet = (params) => {
|
|
911
|
-
return (0, instance_1.customInstance)({ url: `/Notification`, method: 'GET',
|
|
1021
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification`, method: 'GET',
|
|
912
1022
|
params
|
|
913
1023
|
});
|
|
914
1024
|
};
|
|
@@ -916,7 +1026,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
916
1026
|
* @summary Update: mark read notifications.
|
|
917
1027
|
*/
|
|
918
1028
|
const notificationPutUpdate = (notificationPutUpdateBody) => {
|
|
919
|
-
return (0, instance_1.customInstance)({ url: `/Notification/update`, method: 'PUT',
|
|
1029
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification/update`, method: 'PUT',
|
|
920
1030
|
headers: { 'Content-Type': 'application/*+json', },
|
|
921
1031
|
data: notificationPutUpdateBody
|
|
922
1032
|
});
|
|
@@ -925,21 +1035,21 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
925
1035
|
* @summary Update: mark read all notifications.
|
|
926
1036
|
*/
|
|
927
1037
|
const notificationPutUpdateall = () => {
|
|
928
|
-
return (0, instance_1.customInstance)({ url: `/Notification/updateall`, method: 'PUT'
|
|
1038
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification/updateall`, method: 'PUT'
|
|
929
1039
|
});
|
|
930
1040
|
};
|
|
931
1041
|
/**
|
|
932
1042
|
* @summary Gets the current SmartSpace plan
|
|
933
1043
|
*/
|
|
934
1044
|
const planGetSmartSpacePlan = () => {
|
|
935
|
-
return (0, instance_1.customInstance)({ url: `/Plan`, method: 'GET'
|
|
1045
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan`, method: 'GET'
|
|
936
1046
|
});
|
|
937
1047
|
};
|
|
938
1048
|
/**
|
|
939
1049
|
* @summary Update the upgrade component of the smartspace plan
|
|
940
1050
|
*/
|
|
941
1051
|
const planUpdateSmartSpaceUpgrade = (coreManagementSmartSpaceUpgradeUpdate) => {
|
|
942
|
-
return (0, instance_1.customInstance)({ url: `/Plan/upgrade`, method: 'PUT',
|
|
1052
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/upgrade`, method: 'PUT',
|
|
943
1053
|
headers: { 'Content-Type': 'application/*+json', },
|
|
944
1054
|
data: coreManagementSmartSpaceUpgradeUpdate
|
|
945
1055
|
});
|
|
@@ -948,7 +1058,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
948
1058
|
* @summary Calculate the cost of an upgrade change
|
|
949
1059
|
*/
|
|
950
1060
|
const planCalculateSmartSpaceUpgradeCost = (coreManagementSmartSpaceUpgradeUpdate) => {
|
|
951
|
-
return (0, instance_1.customInstance)({ url: `/Plan/upgrade/calculate`, method: 'POST',
|
|
1061
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/upgrade/calculate`, method: 'POST',
|
|
952
1062
|
headers: { 'Content-Type': 'application/*+json', },
|
|
953
1063
|
data: coreManagementSmartSpaceUpgradeUpdate
|
|
954
1064
|
});
|
|
@@ -957,22 +1067,22 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
957
1067
|
* @summary Gets usage information of the current SmartSpace plan
|
|
958
1068
|
*/
|
|
959
1069
|
const planGetSmartSpacePlanUsage = () => {
|
|
960
|
-
return (0, instance_1.customInstance)({ url: `/Plan/usage`, method: 'GET'
|
|
1070
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/usage`, method: 'GET'
|
|
961
1071
|
});
|
|
962
1072
|
};
|
|
963
1073
|
/**
|
|
964
|
-
* @summary Gets the number of
|
|
1074
|
+
* @summary Gets the number of flow invocations by a specified duration
|
|
965
1075
|
*/
|
|
966
1076
|
const reportingGetRequests = (duration, params) => {
|
|
967
|
-
return (0, instance_1.customInstance)({ url: `/Reporting/Requests/by/${duration}`, method: 'GET',
|
|
1077
|
+
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Requests/by/${duration}`, method: 'GET',
|
|
968
1078
|
params
|
|
969
1079
|
});
|
|
970
1080
|
};
|
|
971
1081
|
/**
|
|
972
|
-
* @summary Gets the
|
|
1082
|
+
* @summary Gets the tokens used by a specified duration, with cost where the model call was priced and the count of calls that were not
|
|
973
1083
|
*/
|
|
974
1084
|
const reportingGetTokens = (duration, params) => {
|
|
975
|
-
return (0, instance_1.customInstance)({ url: `/Reporting/Tokens/by/${duration}`, method: 'GET',
|
|
1085
|
+
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Tokens/by/${duration}`, method: 'GET',
|
|
976
1086
|
params
|
|
977
1087
|
});
|
|
978
1088
|
};
|
|
@@ -981,10 +1091,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
981
1091
|
role, with their permission flags and last recorded activity.
|
|
982
1092
|
*/
|
|
983
1093
|
const servicePrincipalsGetServicePrincipals = (params) => {
|
|
984
|
-
return (0, instance_1.customInstance)({ url: `/ServicePrincipals`, method: 'GET',
|
|
1094
|
+
return (0, instance_1.customInstance)({ url: `/v1/ServicePrincipals`, method: 'GET',
|
|
985
1095
|
params
|
|
986
1096
|
});
|
|
987
1097
|
};
|
|
1098
|
+
/**
|
|
1099
|
+
* @summary Whether speech-to-text (composer dictation) is available on this install, and how the browser
|
|
1100
|
+
should connect. The UI decides whether to render the microphone from this, so it answers for
|
|
1101
|
+
the install rather than failing: an install without speech reports enabled = false.
|
|
1102
|
+
*/
|
|
1103
|
+
const speechGetConfig = () => {
|
|
1104
|
+
return (0, instance_1.customInstance)({ url: `/v1/Speech/config`, method: 'GET'
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* @summary A token from this install's Speech account token service, which the browser passes straight
|
|
1109
|
+
to Azure AI Speech to stream audio for recognition. Roughly ten minutes of life, scoped to
|
|
1110
|
+
recognition on this one resource in one region.
|
|
1111
|
+
*/
|
|
1112
|
+
const speechGetToken = () => {
|
|
1113
|
+
return (0, instance_1.customInstance)({ url: `/v1/Speech/token`, method: 'GET'
|
|
1114
|
+
});
|
|
1115
|
+
};
|
|
988
1116
|
/**
|
|
989
1117
|
* @summary List configured syncs. status matches the data
|
|
990
1118
|
source's latest completed sync (e.g. Success / Failure), or "never"
|
|
@@ -992,7 +1120,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
992
1120
|
name | connector | lastSync (default: path).
|
|
993
1121
|
*/
|
|
994
1122
|
const syncsGet = (params) => {
|
|
995
|
-
return (0, instance_1.customInstance)({ url: `/Syncs`, method: 'GET',
|
|
1123
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs`, method: 'GET',
|
|
996
1124
|
params
|
|
997
1125
|
});
|
|
998
1126
|
};
|
|
@@ -1003,7 +1131,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1003
1131
|
isSyncing flag. Literal route wins over the {containerId} template.
|
|
1004
1132
|
*/
|
|
1005
1133
|
const syncsGetQueue = () => {
|
|
1006
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/queue`, method: 'GET'
|
|
1134
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/queue`, method: 'GET'
|
|
1007
1135
|
});
|
|
1008
1136
|
};
|
|
1009
1137
|
/**
|
|
@@ -1014,11 +1142,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1014
1142
|
blobs are not cleaned up here.
|
|
1015
1143
|
*/
|
|
1016
1144
|
const syncsDelete = (containerId) => {
|
|
1017
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'DELETE'
|
|
1145
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}`, method: 'DELETE'
|
|
1018
1146
|
});
|
|
1019
1147
|
};
|
|
1020
1148
|
const syncsGetById = (containerId) => {
|
|
1021
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'GET'
|
|
1149
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}`, method: 'GET'
|
|
1022
1150
|
});
|
|
1023
1151
|
};
|
|
1024
1152
|
/**
|
|
@@ -1026,7 +1154,18 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1026
1154
|
container-items endpoint.
|
|
1027
1155
|
*/
|
|
1028
1156
|
const syncsGetItems = (containerId, params) => {
|
|
1029
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}/items`, method: 'GET',
|
|
1157
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}/items`, method: 'GET',
|
|
1158
|
+
params
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* @summary The sync's dead-letter list: the ingestion run records the AI API's
|
|
1163
|
+
consumer gave up on, newest first, each with the reason. The poison queue
|
|
1164
|
+
holds the replay copies and is not read here. 502 when the install's AI
|
|
1165
|
+
API predates the route, rather than an opaque 500.
|
|
1166
|
+
*/
|
|
1167
|
+
const syncsGetPoisoned = (containerId, params) => {
|
|
1168
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}/poisoned`, method: 'GET',
|
|
1030
1169
|
params
|
|
1031
1170
|
});
|
|
1032
1171
|
};
|
|
@@ -1034,7 +1173,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1034
1173
|
* @summary Gets Tenant Id
|
|
1035
1174
|
*/
|
|
1036
1175
|
const tenantIdGetResult = () => {
|
|
1037
|
-
return (0, instance_1.customInstance)({ url: `/TenantId`, method: 'GET'
|
|
1176
|
+
return (0, instance_1.customInstance)({ url: `/v1/TenantId`, method: 'GET'
|
|
1038
1177
|
});
|
|
1039
1178
|
};
|
|
1040
1179
|
/**
|
|
@@ -1042,23 +1181,23 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1042
1181
|
with optional search and pagination controls take and skip.
|
|
1043
1182
|
*/
|
|
1044
1183
|
const usersGetUsers = (params) => {
|
|
1045
|
-
return (0, instance_1.customInstance)({ url: `/Users`, method: 'GET',
|
|
1184
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users`, method: 'GET',
|
|
1046
1185
|
params
|
|
1047
1186
|
});
|
|
1048
1187
|
};
|
|
1049
1188
|
const usersGetUsersByFilter = (permissions) => {
|
|
1050
|
-
return (0, instance_1.customInstance)({ url: `/Users/[permissions=${permissions}]`, method: 'GET'
|
|
1189
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/[permissions=${permissions}]`, method: 'GET'
|
|
1051
1190
|
});
|
|
1052
1191
|
};
|
|
1053
1192
|
const usersGetMyPermissions = () => {
|
|
1054
|
-
return (0, instance_1.customInstance)({ url: `/Users/me/permissions`, method: 'GET'
|
|
1193
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/me/permissions`, method: 'GET'
|
|
1055
1194
|
});
|
|
1056
1195
|
};
|
|
1057
1196
|
/**
|
|
1058
1197
|
* @summary Disable user (Remove all assigned WorkSpaces by UserId)
|
|
1059
1198
|
*/
|
|
1060
1199
|
const usersRemoveUserFromAllWorkSpaces = (params) => {
|
|
1061
|
-
return (0, instance_1.customInstance)({ url: `/Users/remove-assigned-workspace`, method: 'DELETE',
|
|
1200
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/remove-assigned-workspace`, method: 'DELETE',
|
|
1062
1201
|
params
|
|
1063
1202
|
});
|
|
1064
1203
|
};
|
|
@@ -1066,7 +1205,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1066
1205
|
* @summary Search users by name for autocomplete/navigation. Returns lightweight results (id, name, email only).
|
|
1067
1206
|
*/
|
|
1068
1207
|
const usersSearchUsers = (params) => {
|
|
1069
|
-
return (0, instance_1.customInstance)({ url: `/Users/search`, method: 'GET',
|
|
1208
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/search`, method: 'GET',
|
|
1070
1209
|
params
|
|
1071
1210
|
});
|
|
1072
1211
|
};
|
|
@@ -1074,7 +1213,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1074
1213
|
* @summary Retrieve user detail in SmartSpace
|
|
1075
1214
|
*/
|
|
1076
1215
|
const usersGetUserDetail = (id) => {
|
|
1077
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}`, method: 'GET'
|
|
1216
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}`, method: 'GET'
|
|
1078
1217
|
});
|
|
1079
1218
|
};
|
|
1080
1219
|
/**
|
|
@@ -1082,7 +1221,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1082
1221
|
so browsers can cache the image via standard img src usage.
|
|
1083
1222
|
*/
|
|
1084
1223
|
const usersGetUserPhoto = (id) => {
|
|
1085
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}/photo`, method: 'GET',
|
|
1224
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/photo`, method: 'GET',
|
|
1086
1225
|
responseType: 'blob'
|
|
1087
1226
|
});
|
|
1088
1227
|
};
|
|
@@ -1090,44 +1229,72 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1090
1229
|
* @summary Adds Admin for a access for a user
|
|
1091
1230
|
*/
|
|
1092
1231
|
const usersGetAccessWorkSpaces = (id, params) => {
|
|
1093
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}/workspaces`, method: 'GET',
|
|
1232
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/workspaces`, method: 'GET',
|
|
1094
1233
|
params
|
|
1095
1234
|
});
|
|
1096
1235
|
};
|
|
1097
1236
|
const usersAdminPermission = (userId, params) => {
|
|
1098
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/admin`, method: 'PUT',
|
|
1237
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/admin`, method: 'PUT',
|
|
1099
1238
|
params
|
|
1100
1239
|
});
|
|
1101
1240
|
};
|
|
1241
|
+
/**
|
|
1242
|
+
* @summary The data sources (connectors) a user is an admin of. Editing or deleting one also needs the matching flag.
|
|
1243
|
+
*/
|
|
1244
|
+
const usersGetAdministeredDataSources = (userId) => {
|
|
1245
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/datasources`, method: 'GET'
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* @summary The data spaces a user is an admin of. Editing or deleting one also needs the matching flag.
|
|
1250
|
+
*/
|
|
1251
|
+
const usersGetAdministeredDataSpaces = (userId) => {
|
|
1252
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/dataspaces`, method: 'GET'
|
|
1253
|
+
});
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* @summary A user's permission flags; None when they have no row.
|
|
1257
|
+
*/
|
|
1258
|
+
const usersGetUserPermissions = (userId) => {
|
|
1259
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions`, method: 'GET'
|
|
1260
|
+
});
|
|
1261
|
+
};
|
|
1102
1262
|
const usersAddUserPermission = (userId, enumsPermissions) => {
|
|
1103
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/permissions`, method: 'PUT',
|
|
1263
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions`, method: 'PUT',
|
|
1104
1264
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1105
1265
|
data: enumsPermissions
|
|
1106
1266
|
});
|
|
1107
1267
|
};
|
|
1108
1268
|
const usersRemoveUserPermission = (userId, permission) => {
|
|
1109
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/permissions/${permission}`, method: 'DELETE'
|
|
1269
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions/${permission}`, method: 'DELETE'
|
|
1270
|
+
});
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* @summary Every per-user secret, with whether this user has set a value and when. Never the value.
|
|
1274
|
+
*/
|
|
1275
|
+
const usersGetUserSecrets = (userId) => {
|
|
1276
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/secrets`, method: 'GET'
|
|
1110
1277
|
});
|
|
1111
1278
|
};
|
|
1112
1279
|
/**
|
|
1113
1280
|
* @summary Returns a list of available Azure locations for deploying virtual machines
|
|
1114
1281
|
*/
|
|
1115
1282
|
const virtualMachinesGetVirtualMachineLocations = () => {
|
|
1116
|
-
return (0, instance_1.customInstance)({ url: `/VirtualMachines/locations`, method: 'GET'
|
|
1283
|
+
return (0, instance_1.customInstance)({ url: `/v1/VirtualMachines/locations`, method: 'GET'
|
|
1117
1284
|
});
|
|
1118
1285
|
};
|
|
1119
1286
|
/**
|
|
1120
1287
|
* @summary Returns a list of virtual machines sizes available in the specified location
|
|
1121
1288
|
*/
|
|
1122
1289
|
const virtualMachinesGetVirtualMachineSize = (location) => {
|
|
1123
|
-
return (0, instance_1.customInstance)({ url: `/VirtualMachines/locations/${location}/sizes`, method: 'GET'
|
|
1290
|
+
return (0, instance_1.customInstance)({ url: `/v1/VirtualMachines/locations/${location}/sizes`, method: 'GET'
|
|
1124
1291
|
});
|
|
1125
1292
|
};
|
|
1126
1293
|
/**
|
|
1127
1294
|
* @summary Obtain a list of all templates in SmartSpace, with pagination options take and skip.
|
|
1128
1295
|
*/
|
|
1129
1296
|
const workSpaceTemplatesGet = (params) => {
|
|
1130
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaceTemplates`, method: 'GET',
|
|
1297
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaceTemplates`, method: 'GET',
|
|
1131
1298
|
params
|
|
1132
1299
|
});
|
|
1133
1300
|
};
|
|
@@ -1135,7 +1302,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1135
1302
|
* @summary Retrieves a collection of workspaces.
|
|
1136
1303
|
*/
|
|
1137
1304
|
const workSpacesGetGet = (params) => {
|
|
1138
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces`, method: 'GET',
|
|
1305
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'GET',
|
|
1139
1306
|
params
|
|
1140
1307
|
});
|
|
1141
1308
|
};
|
|
@@ -1143,7 +1310,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1143
1310
|
* @summary Creates a new workspace.
|
|
1144
1311
|
*/
|
|
1145
1312
|
const workSpacesPost = (workSpacesCreateWorkSpace) => {
|
|
1146
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces`, method: 'POST',
|
|
1313
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'POST',
|
|
1147
1314
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1148
1315
|
data: workSpacesCreateWorkSpace
|
|
1149
1316
|
});
|
|
@@ -1152,33 +1319,33 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1152
1319
|
* @summary Deletes a workspace by its ID.
|
|
1153
1320
|
*/
|
|
1154
1321
|
const workSpacesDelete = (id) => {
|
|
1155
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}`, method: 'DELETE'
|
|
1322
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'DELETE'
|
|
1156
1323
|
});
|
|
1157
1324
|
};
|
|
1158
1325
|
/**
|
|
1159
1326
|
* @summary Retrieves a workspace by its ID.
|
|
1160
1327
|
*/
|
|
1161
1328
|
const workSpacesGetId = (id) => {
|
|
1162
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}`, method: 'GET'
|
|
1329
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'GET'
|
|
1163
1330
|
});
|
|
1164
1331
|
};
|
|
1165
1332
|
const workSpacesGetWorkspaceAdmins = (id) => {
|
|
1166
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins`, method: 'GET'
|
|
1333
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins`, method: 'GET'
|
|
1167
1334
|
});
|
|
1168
1335
|
};
|
|
1169
1336
|
const workSpacesDeleteAdmin = (id, userId) => {
|
|
1170
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
1337
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
1171
1338
|
});
|
|
1172
1339
|
};
|
|
1173
1340
|
const workSpacesAddWorkspaceAdmin = (id, userId) => {
|
|
1174
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
1341
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
1175
1342
|
});
|
|
1176
1343
|
};
|
|
1177
1344
|
/**
|
|
1178
1345
|
* @summary Updates the basic information of a workspace.
|
|
1179
1346
|
*/
|
|
1180
1347
|
const workSpacesPut = (id, workSpacesUpdateWorkSpaceBasicInfo) => {
|
|
1181
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/basicinfo`, method: 'PUT',
|
|
1348
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/basicinfo`, method: 'PUT',
|
|
1182
1349
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1183
1350
|
data: workSpacesUpdateWorkSpaceBasicInfo
|
|
1184
1351
|
});
|
|
@@ -1187,7 +1354,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1187
1354
|
* @summary Marks a workspace as favorited or not for the active user.
|
|
1188
1355
|
*/
|
|
1189
1356
|
const workSpacesSetFavorited = (id, boolean) => {
|
|
1190
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/favorited`, method: 'PUT',
|
|
1357
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/favorited`, method: 'PUT',
|
|
1191
1358
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1192
1359
|
data: boolean
|
|
1193
1360
|
});
|
|
@@ -1196,32 +1363,16 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1196
1363
|
* @summary Retrieves message threads for a workspace.
|
|
1197
1364
|
*/
|
|
1198
1365
|
const workSpacesGetThreads = (id, params) => {
|
|
1199
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/messageThreads`, method: 'GET',
|
|
1366
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/messageThreads`, method: 'GET',
|
|
1200
1367
|
params
|
|
1201
1368
|
});
|
|
1202
1369
|
};
|
|
1203
|
-
/**
|
|
1204
|
-
* @summary Deletes the model configuration for a specific workspace and role.
|
|
1205
|
-
*/
|
|
1206
|
-
const workSpacesDeleteModelConfiguration = (id, role) => {
|
|
1207
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'DELETE'
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
/**
|
|
1211
|
-
* @summary Updates the model configuration for a specific workspace and role.
|
|
1212
|
-
*/
|
|
1213
|
-
const workSpacesPutModelConfiguration = (id, role, createModelConfiguration) => {
|
|
1214
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'PUT',
|
|
1215
|
-
headers: { 'Content-Type': 'application/*+json', },
|
|
1216
|
-
data: createModelConfiguration
|
|
1217
|
-
});
|
|
1218
|
-
};
|
|
1219
1370
|
/**
|
|
1220
1371
|
* @summary Detaches a connector from a workspace. Flows still referencing it
|
|
1221
1372
|
fail at resolve time rather than silently keeping access.
|
|
1222
1373
|
*/
|
|
1223
1374
|
const workSpacesRemoveConnector = (workspaceId, connectorId) => {
|
|
1224
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'DELETE'
|
|
1375
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'DELETE'
|
|
1225
1376
|
});
|
|
1226
1377
|
};
|
|
1227
1378
|
/**
|
|
@@ -1231,28 +1382,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1231
1382
|
the same attachment at call time.
|
|
1232
1383
|
*/
|
|
1233
1384
|
const workSpacesAddConnector = (workspaceId, connectorId) => {
|
|
1234
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'PUT'
|
|
1385
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'PUT'
|
|
1235
1386
|
});
|
|
1236
1387
|
};
|
|
1237
1388
|
/**
|
|
1238
1389
|
* @summary Removes a data space from a workspace.
|
|
1239
1390
|
*/
|
|
1240
1391
|
const workSpacesRemoveDataSpace = (workspaceId, dataspaceId) => {
|
|
1241
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'DELETE'
|
|
1392
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'DELETE'
|
|
1242
1393
|
});
|
|
1243
1394
|
};
|
|
1244
1395
|
/**
|
|
1245
1396
|
* @summary Adds a data space to a workspace.
|
|
1246
1397
|
*/
|
|
1247
1398
|
const workSpacesAddDataSpace = (workspaceId, dataspaceId) => {
|
|
1248
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'PUT'
|
|
1399
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'PUT'
|
|
1249
1400
|
});
|
|
1250
1401
|
};
|
|
1251
1402
|
/**
|
|
1252
1403
|
* @summary Gets a list of all the files that are uploaded directly to the workspace.
|
|
1253
1404
|
*/
|
|
1254
1405
|
const workSpacesGetWorkspaceFiles = (workspaceId, params) => {
|
|
1255
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files`, method: 'GET',
|
|
1406
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files`, method: 'GET',
|
|
1256
1407
|
params
|
|
1257
1408
|
});
|
|
1258
1409
|
};
|
|
@@ -1264,7 +1415,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1264
1415
|
if (workSpacesWorkspaceFilesBody.files !== undefined) {
|
|
1265
1416
|
workSpacesWorkspaceFilesBody.files.forEach(value => formData.append(`files`, value));
|
|
1266
1417
|
}
|
|
1267
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files`, method: 'POST',
|
|
1418
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files`, method: 'POST',
|
|
1268
1419
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
1269
1420
|
data: formData
|
|
1270
1421
|
});
|
|
@@ -1273,18 +1424,18 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1273
1424
|
* @summary Removes a file from the workspace and the ingested content.
|
|
1274
1425
|
*/
|
|
1275
1426
|
const workSpacesDeleteWorkspaceFile = (workspaceId, fileId) => {
|
|
1276
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files/${fileId}`, method: 'DELETE'
|
|
1427
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files/${fileId}`, method: 'DELETE'
|
|
1277
1428
|
});
|
|
1278
1429
|
};
|
|
1279
1430
|
const workSpacesGetActiveFlow = (workspaceId) => {
|
|
1280
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active`, method: 'GET'
|
|
1431
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active`, method: 'GET'
|
|
1281
1432
|
});
|
|
1282
1433
|
};
|
|
1283
1434
|
/**
|
|
1284
1435
|
* @summary Sets the active flow definition for a workspace.
|
|
1285
1436
|
*/
|
|
1286
1437
|
const workSpacesSetActiveFlow = (workspaceId, flowsFlowDefinition) => {
|
|
1287
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active`, method: 'PUT',
|
|
1438
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active`, method: 'PUT',
|
|
1288
1439
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1289
1440
|
data: flowsFlowDefinition
|
|
1290
1441
|
});
|
|
@@ -1293,7 +1444,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1293
1444
|
* @summary Updates the layout of blocks for the active flow definition.
|
|
1294
1445
|
*/
|
|
1295
1446
|
const workSpacesSetActiveFlowLayout = (workspaceId, workSpacesSetActiveFlowLayoutBody) => {
|
|
1296
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active/layout`, method: 'PUT',
|
|
1447
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active/layout`, method: 'PUT',
|
|
1297
1448
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1298
1449
|
data: workSpacesSetActiveFlowLayoutBody
|
|
1299
1450
|
});
|
|
@@ -1302,7 +1453,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1302
1453
|
* @summary Lists connectors with their auth settings — never a credential.
|
|
1303
1454
|
*/
|
|
1304
1455
|
const connectorsGetConnectors = (params) => {
|
|
1305
|
-
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'GET',
|
|
1456
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors`, method: 'GET',
|
|
1306
1457
|
params
|
|
1307
1458
|
});
|
|
1308
1459
|
};
|
|
@@ -1311,7 +1462,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1311
1462
|
goes to Key Vault, the row stores only the reference.
|
|
1312
1463
|
*/
|
|
1313
1464
|
const connectorsCreateConnector = (connectorsCreateConnector) => {
|
|
1314
|
-
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'POST',
|
|
1465
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors`, method: 'POST',
|
|
1315
1466
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1316
1467
|
data: connectorsCreateConnector
|
|
1317
1468
|
});
|
|
@@ -1323,16 +1474,16 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1323
1474
|
choose one. Admins pass this gate via the role bypass.
|
|
1324
1475
|
*/
|
|
1325
1476
|
const connectorsGetConnectorSummaries = (params) => {
|
|
1326
|
-
return (0, instance_1.customInstance)({ url: `/connectors/summaries`, method: 'GET',
|
|
1477
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/summaries`, method: 'GET',
|
|
1327
1478
|
params
|
|
1328
1479
|
});
|
|
1329
1480
|
};
|
|
1330
1481
|
const connectorsDeleteConnector = (id) => {
|
|
1331
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'DELETE'
|
|
1482
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'DELETE'
|
|
1332
1483
|
});
|
|
1333
1484
|
};
|
|
1334
1485
|
const connectorsGetConnector = (id) => {
|
|
1335
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'GET'
|
|
1486
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'GET'
|
|
1336
1487
|
});
|
|
1337
1488
|
};
|
|
1338
1489
|
/**
|
|
@@ -1340,7 +1491,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1340
1491
|
untouched; supply one to rotate it.
|
|
1341
1492
|
*/
|
|
1342
1493
|
const connectorsUpdateConnector = (id, connectorsUpdateConnector) => {
|
|
1343
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'PUT',
|
|
1494
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'PUT',
|
|
1344
1495
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1345
1496
|
data: connectorsUpdateConnector
|
|
1346
1497
|
});
|
|
@@ -1349,61 +1500,104 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1349
1500
|
* @summary Retrieve a Shared Access Signature (SAS) for a specific item within a data space's documents in SmartSpace, using the dataSpaceId.
|
|
1350
1501
|
*/
|
|
1351
1502
|
const documentsGetDocumentSas = (dataSpaceId, params) => {
|
|
1352
|
-
return (0, instance_1.customInstance)({ url: `/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
|
|
1503
|
+
return (0, instance_1.customInstance)({ url: `/v1/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
|
|
1353
1504
|
params
|
|
1354
1505
|
});
|
|
1355
1506
|
};
|
|
1356
1507
|
/**
|
|
1357
|
-
* @summary
|
|
1508
|
+
* @summary Returns a single public parameter by key. Returns 404 if the key is not in the public
|
|
1509
|
+
allowlist or has no override set.
|
|
1358
1510
|
*/
|
|
1359
|
-
const
|
|
1360
|
-
return (0, instance_1.customInstance)({ url: `/
|
|
1511
|
+
const publicInstallParametersGet = (key) => {
|
|
1512
|
+
return (0, instance_1.customInstance)({ url: `/v1/installparameters/public/${key}`, method: 'GET'
|
|
1513
|
+
});
|
|
1514
|
+
};
|
|
1515
|
+
/**
|
|
1516
|
+
* @summary Lists a page of managed secrets — names, mode and audit metadata only, never values.
|
|
1517
|
+
`search` matches part of the name; `sortBy` is name, mode, createdAt or
|
|
1518
|
+
modifiedAt (default name); `sortDirection` is asc or desc.
|
|
1519
|
+
*/
|
|
1520
|
+
const managedSecretsGetManagedSecrets = (params) => {
|
|
1521
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets`, method: 'GET',
|
|
1522
|
+
params
|
|
1361
1523
|
});
|
|
1362
1524
|
};
|
|
1363
1525
|
/**
|
|
1364
|
-
* @summary Creates a named secret
|
|
1365
|
-
|
|
1526
|
+
* @summary Creates a named secret. A shared secret stores its value and keeps only the
|
|
1527
|
+
reference; a per-user secret is created empty.
|
|
1366
1528
|
*/
|
|
1367
1529
|
const managedSecretsCreateManagedSecret = (managedSecretsCreateManagedSecret) => {
|
|
1368
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets`, method: 'POST',
|
|
1530
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets`, method: 'POST',
|
|
1369
1531
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1370
1532
|
data: managedSecretsCreateManagedSecret
|
|
1371
1533
|
});
|
|
1372
1534
|
};
|
|
1373
1535
|
/**
|
|
1374
|
-
* @summary Deletes a secret: removes
|
|
1536
|
+
* @summary Deletes a secret: removes every stored value and hard-deletes the rows.
|
|
1375
1537
|
*/
|
|
1376
1538
|
const managedSecretsDeleteManagedSecret = (name) => {
|
|
1377
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}`, method: 'DELETE'
|
|
1539
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}`, method: 'DELETE'
|
|
1540
|
+
});
|
|
1541
|
+
};
|
|
1542
|
+
/**
|
|
1543
|
+
* @summary One managed secret by name — name, mode and audit metadata only, never a value.
|
|
1544
|
+
*/
|
|
1545
|
+
const managedSecretsGetManagedSecret = (name) => {
|
|
1546
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}`, method: 'GET'
|
|
1547
|
+
});
|
|
1548
|
+
};
|
|
1549
|
+
/**
|
|
1550
|
+
* @summary Lists a page of the users who have a value on a per-user secret. Ids only, never values.
|
|
1551
|
+
`sortBy` is modifiedAt (default, newest first) or userId.
|
|
1552
|
+
*/
|
|
1553
|
+
const managedSecretsGetManagedSecretUserValues = (name, params) => {
|
|
1554
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users`, method: 'GET',
|
|
1555
|
+
params
|
|
1556
|
+
});
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* @summary Deletes one user's value on a per-user secret.
|
|
1560
|
+
*/
|
|
1561
|
+
const managedSecretsDeleteManagedSecretUserValue = (name, userId) => {
|
|
1562
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users/${userId}/value`, method: 'DELETE'
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1565
|
+
/**
|
|
1566
|
+
* @summary Sets or rotates one user's value on a per-user secret. Write-only.
|
|
1567
|
+
*/
|
|
1568
|
+
const managedSecretsSetManagedSecretUserValue = (name, userId, managedSecretsUpdateManagedSecretValue) => {
|
|
1569
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users/${userId}/value`, method: 'PUT',
|
|
1570
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1571
|
+
data: managedSecretsUpdateManagedSecretValue
|
|
1378
1572
|
});
|
|
1379
1573
|
};
|
|
1380
1574
|
/**
|
|
1381
|
-
* @summary Overwrites (rotates) a secret's value
|
|
1382
|
-
|
|
1383
|
-
audit metadata.
|
|
1575
|
+
* @summary Overwrites (rotates) a shared secret's value under the same stored reference.
|
|
1576
|
+
The value is write-only; nothing is returned but audit metadata.
|
|
1384
1577
|
*/
|
|
1385
1578
|
const managedSecretsOverwriteManagedSecretValue = (name, managedSecretsUpdateManagedSecretValue) => {
|
|
1386
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}/value`, method: 'PUT',
|
|
1579
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/value`, method: 'PUT',
|
|
1387
1580
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1388
1581
|
data: managedSecretsUpdateManagedSecretValue
|
|
1389
1582
|
});
|
|
1390
1583
|
};
|
|
1391
1584
|
const messageThreadsGetWorkspaceExecutions = (workSpaceId, params) => {
|
|
1392
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workSpaceId}/functionexecutions`, method: 'GET',
|
|
1585
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workSpaceId}/functionexecutions`, method: 'GET',
|
|
1393
1586
|
params
|
|
1394
1587
|
});
|
|
1395
1588
|
};
|
|
1396
1589
|
const messageThreadsGetStepExecutions = (workSpaceId, messageThreadId, params) => {
|
|
1397
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workSpaceId}/messagethreads/${messageThreadId}/functionexecutions`, method: 'GET',
|
|
1590
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workSpaceId}/messagethreads/${messageThreadId}/functionexecutions`, method: 'GET',
|
|
1398
1591
|
params
|
|
1399
1592
|
});
|
|
1400
1593
|
};
|
|
1401
1594
|
/**
|
|
1402
1595
|
* @summary Lists a workspace's flow runs, newest first (chat threads, designer
|
|
1403
|
-
runs, CallFlow sub-runs). Proxies the AI API's workspace run store
|
|
1596
|
+
runs, CallFlow sub-runs). Proxies the AI API's workspace run store and
|
|
1597
|
+
joins each run's usage totals from SQL.
|
|
1404
1598
|
*/
|
|
1405
1599
|
const flowRunsGetWorkspaceRuns = (workspaceId, params) => {
|
|
1406
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/runs`, method: 'GET',
|
|
1600
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/runs`, method: 'GET',
|
|
1407
1601
|
params
|
|
1408
1602
|
});
|
|
1409
1603
|
};
|
|
@@ -1411,28 +1605,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1411
1605
|
* @summary Fetch details of the sandbox environment for a specific workspace in SmartSpace, using the workspaceId.
|
|
1412
1606
|
*/
|
|
1413
1607
|
const sandBoxGetSandboxThread = (workspaceId) => {
|
|
1414
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox`, method: 'GET'
|
|
1608
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox`, method: 'GET'
|
|
1415
1609
|
});
|
|
1416
1610
|
};
|
|
1417
1611
|
/**
|
|
1418
1612
|
* @summary Retrieve message creators profile images from the sandbox environment of a specific workspace in SmartSpace, with options for pagination take and skip
|
|
1419
1613
|
*/
|
|
1420
1614
|
const sandBoxThreadMessageCreateByUsersProfileImages = (workspaceId) => {
|
|
1421
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messagecreateduserprofileimages`, method: 'GET'
|
|
1615
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messagecreateduserprofileimages`, method: 'GET'
|
|
1422
1616
|
});
|
|
1423
1617
|
};
|
|
1424
1618
|
/**
|
|
1425
1619
|
* @summary Remove messages from the sandbox environment of a specific workspace in SmartSpace, identified by workspaceId.
|
|
1426
1620
|
*/
|
|
1427
1621
|
const sandBoxClearSandboxMessages = (workspaceId) => {
|
|
1428
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'DELETE'
|
|
1622
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'DELETE'
|
|
1429
1623
|
});
|
|
1430
1624
|
};
|
|
1431
1625
|
/**
|
|
1432
1626
|
* @summary Retrieve messages from the sandbox environment of a specific workspace in SmartSpace, with options for pagination take and skip
|
|
1433
1627
|
*/
|
|
1434
1628
|
const sandBoxGetThreadMessages = (workspaceId, params) => {
|
|
1435
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'GET',
|
|
1629
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'GET',
|
|
1436
1630
|
params
|
|
1437
1631
|
});
|
|
1438
1632
|
};
|
|
@@ -1445,7 +1639,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1445
1639
|
should subscribe to the SSE endpoint for live token-by-token updates.
|
|
1446
1640
|
*/
|
|
1447
1641
|
const sandBoxThreadMessages = (workspaceId, messagesSandBoxMessageRequest) => {
|
|
1448
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'POST',
|
|
1642
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'POST',
|
|
1449
1643
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1450
1644
|
data: messagesSandBoxMessageRequest
|
|
1451
1645
|
});
|
|
@@ -1460,7 +1654,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1460
1654
|
`GET /messagethreads/{id}/messages/stream`.
|
|
1461
1655
|
*/
|
|
1462
1656
|
const sandBoxStreamSandboxMessages = (workspaceId) => {
|
|
1463
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages/stream`, method: 'GET'
|
|
1657
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages/stream`, method: 'GET'
|
|
1464
1658
|
});
|
|
1465
1659
|
};
|
|
1466
1660
|
/**
|
|
@@ -1472,11 +1666,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1472
1666
|
message. Mirrors the chat-api `POST /messages/{id}/values`.
|
|
1473
1667
|
*/
|
|
1474
1668
|
const sandBoxAddValueToMessage = (workspaceId, id, messagesCreateMessageInput) => {
|
|
1475
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages/${id}/values`, method: 'POST',
|
|
1669
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages/${id}/values`, method: 'POST',
|
|
1476
1670
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1477
1671
|
data: messagesCreateMessageInput
|
|
1478
1672
|
});
|
|
1479
1673
|
};
|
|
1480
|
-
return { accessGetAccesses, accessAddAccess, accessGetGroups, accessGetAppRoles, accessGetUsersInRoleRolesRoleIdUsers, accessSearchGroups, accessSearchServicePrincipals, accessSearchUsers, accessGetUsersInRoleUsers, accessDeleteAccess, activityExportLoggings, activityGetLogging, applicationUpdateGetLatestDeployment, applicationUpdateGetCurrentVersion, applicationUpdateReapplyCurrentVersion, applicationUpdateGetLatestAvailableVersion, applicationUpdateApplyLatestAvailableVersion, blockSetsGetBlockSets, blockSetsGetDeployedBlockCode, blockSetsGetDeployedBlockFiles, blockSetsDeleteBlockSet, blockSetsRenameBlockSet, blockSetsAddBlockSet, blocksGetBlocks, blocksGetSdkBlocks, blocksGetBlockSource, containersReingestContainerItem, containersPost, dataSetsGet, dataSetsGetItem, dataSetsDelete, dataSetsGetById, dataSetsPut, dataSetsPutBasicInfo, dataSetsClear, dataSetsGetContainerItemsRunHistory, dataSetsSetDataspace, dataSetsExport, dataSetsGetItems, dataSetsAddItem, dataSetsSearchItems, dataSetsDeleteItem, dataSetsAddDataSetProperty, dataSetsDeleteDataSetProperty, dataSetsGetIngestionRuns, dataSetsPutScoping, dataSetsPutSourceDeletes, dataSetsGetSyncs, dataSourceTypesGet, dataSourceTypesGetAvailableContainers, dataSourceTypesTestConnection, dataSourcesGet, dataSourcesPost, dataSourcesDelete, dataSourcesPut, dataSourcesContainers, dataSourcesPreviewContainer, dataSourcesContainerSchema, dataSourcesUpdateCredentials, dataSourcesRequestSync, dataSourcesGetAdminUsers, dataSourcesDeleteAdmin, dataSourcesAddAdmin, dataSpacesGet, dataSpacesPost, dataSpacesDelete, dataSpacesGetById, dataSpacesPut, dataSpacesGetAdminUsers, dataSpacesDeleteAdmin, dataSpacesAddAdmin, dataSpacesGetDataSets, dataSpacesPostDataset, debugInvoke, diagnosticsGetMongoIndexes, draftsListDrafts, draftsDeleteDraft, draftsGetDraft, draftsToggleDraft, draftsSaveDraft, draftsPublishDraft, filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCreateFlowRun,
|
|
1674
|
+
return { authDiscoveryGet, accessGetAccesses, accessAddAccess, accessGetGroups, accessGetAppRoles, accessGetUsersInRoleRolesRoleIdUsers, accessSearchGroups, accessSearchServicePrincipals, accessSearchUsers, accessGetUsersInRoleUsers, accessDeleteAccess, activityExportLoggings, activityGetLogging, applicationUpdateGetLatestDeployment, applicationUpdateGetCurrentVersion, applicationUpdateReapplyCurrentVersion, applicationUpdateGetLatestAvailableVersion, applicationUpdateApplyLatestAvailableVersion, blockSetsGetBlockSets, blockSetsGetDeployedBlockCode, blockSetsGetDeployedBlockFiles, blockSetsDeleteBlockSet, blockSetsRenameBlockSet, blockSetsAddBlockSet, blocksGetBlocks, blocksGetSdkBlocks, blocksGetBlockSource, containersReingestContainerItem, containersPost, dataSetsGet, dataSetsGetItem, dataSetsDelete, dataSetsGetById, dataSetsPut, dataSetsPutBasicInfo, dataSetsClear, dataSetsGetContainerItemsRunHistory, dataSetsSetDataspace, dataSetsExport, dataSetsGetItems, dataSetsAddItem, dataSetsSearchItems, dataSetsDeleteItem, dataSetsAddDataSetProperty, dataSetsDeleteDataSetProperty, dataSetsGetIngestionRuns, dataSetsPutScoping, dataSetsPutSourceDeletes, dataSetsGetSyncs, dataSourceTypesGet, dataSourceTypesGetAvailableContainers, dataSourceTypesTestConnection, dataSourcesGet, dataSourcesPost, dataSourcesDelete, dataSourcesPut, dataSourcesContainers, dataSourcesPreviewContainer, dataSourcesContainerSchema, dataSourcesUpdateCredentials, dataSourcesRequestSync, dataSourcesGetAdminUsers, dataSourcesDeleteAdmin, dataSourcesAddAdmin, dataSpacesGet, dataSpacesPost, dataSpacesDelete, dataSpacesGetById, dataSpacesPut, dataSpacesGetAdminUsers, dataSpacesDeleteAdmin, dataSpacesAddAdmin, dataSpacesGetDataSets, dataSpacesPostDataset, debugInvoke, diagnosticsGetIngestQueue, diagnosticsGetMongoIndexes, draftsListDrafts, draftsDeleteDraft, draftsGetDraft, draftsToggleDraft, draftsSaveDraft, draftsPublishDraft, filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCreateFlowRun, flowRunsGetFileFromFlowRunId, flowRunsGetFlowRun, flowRunsCancelFlowRun, flowRunsStreamRunEvents, flowRunsAddFileIdFiles, flowRunsAddFileIdFilesExisting, flowRunsGetStepExecutions, flowRunsGetStepExecution, flowRunsGetInvocations, flowRunsGetFlowValueDownload, flowRunsGetVariables, flowRunsSetVariable, flowsGet, flowsSetActiveFlowDefinition, installParametersList, installParametersGetRegistry, installParametersDelete, installParametersGet, installParametersUpsert, modelProvidersGetProviders, modelProvidersCreateProvider, modelProvidersGetModelProviderTypes, modelProvidersGetModelProviderTypeDeployableModels, modelProvidersLoadProviderModels, modelProvidersGetProvider, modelProvidersUpsertProvider, modelsGetModels, modelsCreateModel, modelsGetDefaultModel, modelsGetDefaultDockerFile, modelsDeleteModel, modelsGetModel, modelsUpsertModel, modelsClearDefaultModel, modelsSetDefaultModel, modelsGetModelDeployment, modelsGetDeploymentDockerLogs, modelsGetModelHealth, notificationGet, notificationPutUpdate, notificationPutUpdateall, planGetSmartSpacePlan, planUpdateSmartSpaceUpgrade, planCalculateSmartSpaceUpgradeCost, planGetSmartSpacePlanUsage, reportingGetRequests, reportingGetTokens, servicePrincipalsGetServicePrincipals, speechGetConfig, speechGetToken, syncsGet, syncsGetQueue, syncsDelete, syncsGetById, syncsGetItems, syncsGetPoisoned, tenantIdGetResult, usersGetUsers, usersGetUsersByFilter, usersGetMyPermissions, usersRemoveUserFromAllWorkSpaces, usersSearchUsers, usersGetUserDetail, usersGetUserPhoto, usersGetAccessWorkSpaces, usersAdminPermission, usersGetAdministeredDataSources, usersGetAdministeredDataSpaces, usersGetUserPermissions, usersAddUserPermission, usersRemoveUserPermission, usersGetUserSecrets, virtualMachinesGetVirtualMachineLocations, virtualMachinesGetVirtualMachineSize, workSpaceTemplatesGet, workSpacesGetGet, workSpacesPost, workSpacesDelete, workSpacesGetId, workSpacesGetWorkspaceAdmins, workSpacesDeleteAdmin, workSpacesAddWorkspaceAdmin, workSpacesPut, workSpacesSetFavorited, workSpacesGetThreads, workSpacesRemoveConnector, workSpacesAddConnector, workSpacesRemoveDataSpace, workSpacesAddDataSpace, workSpacesGetWorkspaceFiles, workSpacesWorkspaceFiles, workSpacesDeleteWorkspaceFile, workSpacesGetActiveFlow, workSpacesSetActiveFlow, workSpacesSetActiveFlowLayout, connectorsGetConnectors, connectorsCreateConnector, connectorsGetConnectorSummaries, connectorsDeleteConnector, connectorsGetConnector, connectorsUpdateConnector, documentsGetDocumentSas, publicInstallParametersGet, managedSecretsGetManagedSecrets, managedSecretsCreateManagedSecret, managedSecretsDeleteManagedSecret, managedSecretsGetManagedSecret, managedSecretsGetManagedSecretUserValues, managedSecretsDeleteManagedSecretUserValue, managedSecretsSetManagedSecretUserValue, managedSecretsOverwriteManagedSecretValue, messageThreadsGetWorkspaceExecutions, messageThreadsGetStepExecutions, flowRunsGetWorkspaceRuns, sandBoxGetSandboxThread, sandBoxThreadMessageCreateByUsersProfileImages, sandBoxClearSandboxMessages, sandBoxGetThreadMessages, sandBoxThreadMessages, sandBoxStreamSandboxMessages, sandBoxAddValueToMessage };
|
|
1481
1675
|
};
|
|
1482
1676
|
exports.getSmartSpaceAdminAPI = getSmartSpaceAdminAPI;
|