@smartspace/api-client 0.1.0-dev.f6972ee → 0.1.0-dev.f787cde
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/zod.d.ts +175 -264
- package/dist/generated/chat/zod.js +230 -129
- package/dist/generated/config/api.d.ts +76 -13
- package/dist/generated/config/api.js +437 -207
- package/dist/generated/config/api.msw.d.ts +80 -12
- package/dist/generated/config/api.msw.js +719 -554
- 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/configApiControllersAuthDiscoveryControllerAuthDiscovery.js +8 -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 -1
- package/dist/generated/config/models/index.js +45 -1
- 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 +9 -2
- 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/zod.d.ts +952 -917
- package/dist/generated/config/zod.js +1050 -374
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -1
- package/dist/problem.d.ts +12 -0
- package/dist/problem.js +22 -0
- package/package.json +2 -2
|
@@ -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,23 +357,35 @@ 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
|
});
|
|
363
364
|
};
|
|
365
|
+
/**
|
|
366
|
+
* Answered from the dataset, so it does not depend on whether the caller also
|
|
367
|
+
administers the connectors behind those syncs. Unpaged — the set is bounded by
|
|
368
|
+
the dataset's own triggers — but `scoped` is true when connector visibility
|
|
369
|
+
hid some of them, so an empty list is never presented as "nothing feeds this".
|
|
370
|
+
* @summary The syncs feeding this dataset — the connector selections whose landed items
|
|
371
|
+
ingest into it, including any it shares with other datasets.
|
|
372
|
+
*/
|
|
373
|
+
const dataSetsGetSyncs = (id) => {
|
|
374
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSets/${id}/syncs`, method: 'GET'
|
|
375
|
+
});
|
|
376
|
+
};
|
|
364
377
|
/**
|
|
365
378
|
* @summary Fetch a list of all available data source types in SmartSpace.
|
|
366
379
|
*/
|
|
367
380
|
const dataSourceTypesGet = () => {
|
|
368
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes`, method: 'GET'
|
|
381
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes`, method: 'GET'
|
|
369
382
|
});
|
|
370
383
|
};
|
|
371
384
|
/**
|
|
372
385
|
* @summary Check for available containers for a specific data source type in SmartSpace.
|
|
373
386
|
*/
|
|
374
387
|
const dataSourceTypesGetAvailableContainers = (dataSourcesTestDataSourceConnection) => {
|
|
375
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes/AvailableContainers`, method: 'POST',
|
|
388
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes/AvailableContainers`, method: 'POST',
|
|
376
389
|
headers: { 'Content-Type': 'application/*+json', },
|
|
377
390
|
data: dataSourcesTestDataSourceConnection
|
|
378
391
|
});
|
|
@@ -381,7 +394,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
381
394
|
* @summary Test the connection for a data source type in SmartSpace, verifying credentials and connectivity.
|
|
382
395
|
*/
|
|
383
396
|
const dataSourceTypesTestConnection = (dataSourcesTestDataSourceConnection) => {
|
|
384
|
-
return (0, instance_1.customInstance)({ url: `/DataSourceTypes/TestConnection`, method: 'POST',
|
|
397
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSourceTypes/TestConnection`, method: 'POST',
|
|
385
398
|
headers: { 'Content-Type': 'application/*+json', },
|
|
386
399
|
data: dataSourcesTestDataSourceConnection
|
|
387
400
|
});
|
|
@@ -390,7 +403,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
390
403
|
* @summary Retrieves a collection of data sources.
|
|
391
404
|
*/
|
|
392
405
|
const dataSourcesGet = (params) => {
|
|
393
|
-
return (0, instance_1.customInstance)({ url: `/DataSources`, method: 'GET',
|
|
406
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources`, method: 'GET',
|
|
394
407
|
params
|
|
395
408
|
});
|
|
396
409
|
};
|
|
@@ -398,7 +411,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
398
411
|
* @summary Create a new data source in SmartSpace, defining its properties and credentials for integration.
|
|
399
412
|
*/
|
|
400
413
|
const dataSourcesPost = (dataSourcesCreateDataSource) => {
|
|
401
|
-
return (0, instance_1.customInstance)({ url: `/DataSources`, method: 'POST',
|
|
414
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources`, method: 'POST',
|
|
402
415
|
headers: { 'Content-Type': 'application/*+json', },
|
|
403
416
|
data: dataSourcesCreateDataSource
|
|
404
417
|
});
|
|
@@ -407,14 +420,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
407
420
|
* @summary Remove a specific data source from SmartSpace using its unique ID.
|
|
408
421
|
*/
|
|
409
422
|
const dataSourcesDelete = (dataSourceId) => {
|
|
410
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}`, method: 'DELETE'
|
|
423
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}`, method: 'DELETE'
|
|
411
424
|
});
|
|
412
425
|
};
|
|
413
426
|
/**
|
|
414
427
|
* @summary Update the configuration of an existing data source in SmartSpace by specifying its ID.
|
|
415
428
|
*/
|
|
416
429
|
const dataSourcesPut = (dataSourceId, dataSourcesUpdateDataSource) => {
|
|
417
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}`, method: 'PUT',
|
|
430
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}`, method: 'PUT',
|
|
418
431
|
headers: { 'Content-Type': 'application/*+json', },
|
|
419
432
|
data: dataSourcesUpdateDataSource
|
|
420
433
|
});
|
|
@@ -423,7 +436,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
423
436
|
* @summary Retrieve container information associated with a specific data source in SmartSpace, using it's ID.
|
|
424
437
|
*/
|
|
425
438
|
const dataSourcesContainers = (dataSourceId, params) => {
|
|
426
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/containers`, method: 'GET',
|
|
439
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/containers`, method: 'GET',
|
|
427
440
|
params
|
|
428
441
|
});
|
|
429
442
|
};
|
|
@@ -432,7 +445,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
432
445
|
a total record count without persisting any state.
|
|
433
446
|
*/
|
|
434
447
|
const dataSourcesPreviewContainer = (dataSourceId, dataSourcesPreviewContainerRequest) => {
|
|
435
|
-
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',
|
|
436
449
|
headers: { 'Content-Type': 'application/*+json', },
|
|
437
450
|
data: dataSourcesPreviewContainerRequest
|
|
438
451
|
});
|
|
@@ -444,7 +457,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
444
457
|
containerPath is a query param (not a route segment) to avoid ASP.NET routing splits on paths containing '/'.
|
|
445
458
|
*/
|
|
446
459
|
const dataSourcesContainerSchema = (dataSourceId, params) => {
|
|
447
|
-
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',
|
|
448
461
|
params
|
|
449
462
|
});
|
|
450
463
|
};
|
|
@@ -452,7 +465,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
452
465
|
* @summary Update the credentials for an existing data source in SmartSpace by specifying its ID.
|
|
453
466
|
*/
|
|
454
467
|
const dataSourcesUpdateCredentials = (dataSourceId, dataSourcesUpdateDataSourceCredentials) => {
|
|
455
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/credentials`, method: 'PUT',
|
|
468
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/credentials`, method: 'PUT',
|
|
456
469
|
headers: { 'Content-Type': 'application/*+json', },
|
|
457
470
|
data: dataSourcesUpdateDataSourceCredentials
|
|
458
471
|
});
|
|
@@ -463,23 +476,23 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
463
476
|
are safe — concurrent syncs of the same source collapse to one run.
|
|
464
477
|
*/
|
|
465
478
|
const dataSourcesRequestSync = (dataSourceId) => {
|
|
466
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/sync`, method: 'POST'
|
|
479
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${dataSourceId}/sync`, method: 'POST'
|
|
467
480
|
});
|
|
468
481
|
};
|
|
469
482
|
const dataSourcesGetAdminUsers = (id) => {
|
|
470
|
-
return (0, instance_1.customInstance)({ url: `/DataSources/${id}/admins`, method: 'GET'
|
|
483
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSources/${id}/admins`, method: 'GET'
|
|
471
484
|
});
|
|
472
485
|
};
|
|
473
486
|
const dataSourcesDeleteAdmin = (id, userId) => {
|
|
474
|
-
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'
|
|
475
488
|
});
|
|
476
489
|
};
|
|
477
490
|
const dataSourcesAddAdmin = (id, userId) => {
|
|
478
|
-
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'
|
|
479
492
|
});
|
|
480
493
|
};
|
|
481
494
|
const dataSpacesGet = (params) => {
|
|
482
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces`, method: 'GET',
|
|
495
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces`, method: 'GET',
|
|
483
496
|
params
|
|
484
497
|
});
|
|
485
498
|
};
|
|
@@ -487,42 +500,42 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
487
500
|
* @summary Create a new dataspace.
|
|
488
501
|
*/
|
|
489
502
|
const dataSpacesPost = (dataSpacesCreateDataSpace) => {
|
|
490
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces`, method: 'POST',
|
|
503
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces`, method: 'POST',
|
|
491
504
|
headers: { 'Content-Type': 'application/*+json', },
|
|
492
505
|
data: dataSpacesCreateDataSpace
|
|
493
506
|
});
|
|
494
507
|
};
|
|
495
508
|
const dataSpacesDelete = (id) => {
|
|
496
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'DELETE'
|
|
509
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'DELETE'
|
|
497
510
|
});
|
|
498
511
|
};
|
|
499
512
|
const dataSpacesGetById = (id) => {
|
|
500
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'GET'
|
|
513
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'GET'
|
|
501
514
|
});
|
|
502
515
|
};
|
|
503
516
|
/**
|
|
504
517
|
* @summary Update an existing dataspace.
|
|
505
518
|
*/
|
|
506
519
|
const dataSpacesPut = (id, dataSpacesUpdateDataSpace) => {
|
|
507
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}`, method: 'PUT',
|
|
520
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}`, method: 'PUT',
|
|
508
521
|
headers: { 'Content-Type': 'application/*+json', },
|
|
509
522
|
data: dataSpacesUpdateDataSpace
|
|
510
523
|
});
|
|
511
524
|
};
|
|
512
525
|
const dataSpacesGetAdminUsers = (id) => {
|
|
513
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/admins`, method: 'GET'
|
|
526
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/admins`, method: 'GET'
|
|
514
527
|
});
|
|
515
528
|
};
|
|
516
529
|
const dataSpacesDeleteAdmin = (id, userId) => {
|
|
517
|
-
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'
|
|
518
531
|
});
|
|
519
532
|
};
|
|
520
533
|
const dataSpacesAddAdmin = (id, userId) => {
|
|
521
|
-
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'
|
|
522
535
|
});
|
|
523
536
|
};
|
|
524
537
|
const dataSpacesGetDataSets = (id, params) => {
|
|
525
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/datasets`, method: 'GET',
|
|
538
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/datasets`, method: 'GET',
|
|
526
539
|
params
|
|
527
540
|
});
|
|
528
541
|
};
|
|
@@ -530,17 +543,26 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
530
543
|
* @summary Create a new dataset inside this dataspace.
|
|
531
544
|
*/
|
|
532
545
|
const dataSpacesPostDataset = (id, dataSetsCreateDataSet) => {
|
|
533
|
-
return (0, instance_1.customInstance)({ url: `/DataSpaces/${id}/datasets`, method: 'POST',
|
|
546
|
+
return (0, instance_1.customInstance)({ url: `/v1/DataSpaces/${id}/datasets`, method: 'POST',
|
|
534
547
|
headers: { 'Content-Type': 'application/*+json', },
|
|
535
548
|
data: dataSetsCreateDataSet
|
|
536
549
|
});
|
|
537
550
|
};
|
|
538
551
|
const debugInvoke = (connectionId, method, debugInvokeBody) => {
|
|
539
|
-
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',
|
|
540
553
|
headers: { 'Content-Type': 'application/*+json', },
|
|
541
554
|
data: debugInvokeBody
|
|
542
555
|
});
|
|
543
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
|
+
};
|
|
544
566
|
/**
|
|
545
567
|
* @summary Mongo index health for the flow-runs store: planned-vs-existing
|
|
546
568
|
indexes per collection, the latest index-ensure outcome per index
|
|
@@ -548,28 +570,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
548
570
|
transformations with their progress (currentOp).
|
|
549
571
|
*/
|
|
550
572
|
const diagnosticsGetMongoIndexes = () => {
|
|
551
|
-
return (0, instance_1.customInstance)({ url: `/Diagnostics/mongo-indexes`, method: 'GET'
|
|
573
|
+
return (0, instance_1.customInstance)({ url: `/v1/Diagnostics/mongo-indexes`, method: 'GET'
|
|
552
574
|
});
|
|
553
575
|
};
|
|
554
576
|
/**
|
|
555
577
|
* @summary List the current user's drafts (without parsed interfaces — load detail to get those).
|
|
556
578
|
*/
|
|
557
579
|
const draftsListDrafts = () => {
|
|
558
|
-
return (0, instance_1.customInstance)({ url: `/Drafts`, method: 'GET'
|
|
580
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts`, method: 'GET'
|
|
559
581
|
});
|
|
560
582
|
};
|
|
561
583
|
/**
|
|
562
584
|
* @summary Delete a draft (row + blob). Does not touch any published Custom of the same name.
|
|
563
585
|
*/
|
|
564
586
|
const draftsDeleteDraft = (name) => {
|
|
565
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'DELETE'
|
|
587
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'DELETE'
|
|
566
588
|
});
|
|
567
589
|
};
|
|
568
590
|
/**
|
|
569
591
|
* @summary Fetch a specific draft (source text, parsed interfaces, RowVersion, IsActive).
|
|
570
592
|
*/
|
|
571
593
|
const draftsGetDraft = (name) => {
|
|
572
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'GET'
|
|
594
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'GET'
|
|
573
595
|
});
|
|
574
596
|
};
|
|
575
597
|
/**
|
|
@@ -577,7 +599,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
577
599
|
overrides the published Custom at the same `(name, version)` for them only.
|
|
578
600
|
*/
|
|
579
601
|
const draftsToggleDraft = (name, draftsToggleDraftRequest) => {
|
|
580
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'PATCH',
|
|
602
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'PATCH',
|
|
581
603
|
headers: { 'Content-Type': 'application/*+json', },
|
|
582
604
|
data: draftsToggleDraftRequest
|
|
583
605
|
});
|
|
@@ -588,7 +610,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
588
610
|
current `RowVersion` if another session has saved in the interim.
|
|
589
611
|
*/
|
|
590
612
|
const draftsSaveDraft = (name, draftsSaveDraftRequest) => {
|
|
591
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'POST',
|
|
613
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}`, method: 'POST',
|
|
592
614
|
headers: { 'Content-Type': 'application/*+json', },
|
|
593
615
|
data: draftsSaveDraftRequest
|
|
594
616
|
});
|
|
@@ -600,7 +622,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
600
622
|
replace it (a new row supersedes the old per newest-wins resolution).
|
|
601
623
|
*/
|
|
602
624
|
const draftsPublishDraft = (name, draftsPublishDraftRequest) => {
|
|
603
|
-
return (0, instance_1.customInstance)({ url: `/Drafts/${name}/publish`, method: 'POST',
|
|
625
|
+
return (0, instance_1.customInstance)({ url: `/v1/Drafts/${name}/publish`, method: 'POST',
|
|
604
626
|
headers: { 'Content-Type': 'application/*+json', },
|
|
605
627
|
data: draftsPublishDraftRequest
|
|
606
628
|
});
|
|
@@ -631,7 +653,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
631
653
|
if (filesUploadFilesBody.workspaceId !== undefined) {
|
|
632
654
|
formData.append(`workspaceId`, filesUploadFilesBody.workspaceId);
|
|
633
655
|
}
|
|
634
|
-
return (0, instance_1.customInstance)({ url: `/Files`, method: 'POST',
|
|
656
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files`, method: 'POST',
|
|
635
657
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
636
658
|
data: formData
|
|
637
659
|
});
|
|
@@ -640,7 +662,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
640
662
|
* @summary Get details for a file previously uploaded.
|
|
641
663
|
*/
|
|
642
664
|
const filesGetFileInfo = (id, params) => {
|
|
643
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}`, method: 'GET',
|
|
665
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}`, method: 'GET',
|
|
644
666
|
params
|
|
645
667
|
});
|
|
646
668
|
};
|
|
@@ -648,7 +670,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
648
670
|
* @summary Download a previously uploaded file.
|
|
649
671
|
*/
|
|
650
672
|
const filesDownloadFile = (id, params) => {
|
|
651
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}/download`, method: 'GET',
|
|
673
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/download`, method: 'GET',
|
|
652
674
|
params
|
|
653
675
|
});
|
|
654
676
|
};
|
|
@@ -656,7 +678,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
656
678
|
* @summary Get URI of a previously uploaded file.
|
|
657
679
|
*/
|
|
658
680
|
const filesGetUri = (id, params) => {
|
|
659
|
-
return (0, instance_1.customInstance)({ url: `/Files/${id}/uri`, method: 'GET',
|
|
681
|
+
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/uri`, method: 'GET',
|
|
660
682
|
params
|
|
661
683
|
});
|
|
662
684
|
};
|
|
@@ -664,7 +686,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
664
686
|
* @summary Creates a new flow run with the specified parameters
|
|
665
687
|
*/
|
|
666
688
|
const flowRunsCreateFlowRun = (configApiRunFlowRequest, params) => {
|
|
667
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns`, method: 'POST',
|
|
689
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns`, method: 'POST',
|
|
668
690
|
headers: { 'Content-Type': 'application/*+json', },
|
|
669
691
|
data: configApiRunFlowRequest,
|
|
670
692
|
params
|
|
@@ -674,7 +696,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
674
696
|
* @summary Searches for flow runs based on search term
|
|
675
697
|
*/
|
|
676
698
|
const flowRunsSearchFlowRuns = (params) => {
|
|
677
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/search`, method: 'GET',
|
|
699
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/search`, method: 'GET',
|
|
678
700
|
params
|
|
679
701
|
});
|
|
680
702
|
};
|
|
@@ -682,14 +704,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
682
704
|
* @summary Gets a singile file if it was used as an input to the flow run
|
|
683
705
|
*/
|
|
684
706
|
const flowRunsGetFileFromFlowRunId = (flowRunId) => {
|
|
685
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${flowRunId}/file`, method: 'GET'
|
|
707
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${flowRunId}/file`, method: 'GET'
|
|
686
708
|
});
|
|
687
709
|
};
|
|
688
710
|
/**
|
|
689
711
|
* @summary Gets a flow run including its context
|
|
690
712
|
*/
|
|
691
713
|
const flowRunsGetFlowRun = (id) => {
|
|
692
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}`, method: 'GET'
|
|
714
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}`, method: 'GET'
|
|
693
715
|
});
|
|
694
716
|
};
|
|
695
717
|
/**
|
|
@@ -699,7 +721,42 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
699
721
|
seconds. Cancelled runs carry cancelledAt in their basic info.
|
|
700
722
|
*/
|
|
701
723
|
const flowRunsCancelFlowRun = (id) => {
|
|
702
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/cancel`, method: 'POST'
|
|
724
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/cancel`, method: 'POST'
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Frames are unnamed SSE `data:` events, each carrying a `kind`:
|
|
729
|
+
`snapshot` (rows + total; the AI side sends it first), `events`
|
|
730
|
+
(rows that just changed, same shape), `lagged` and `gap` (both
|
|
731
|
+
mean re-read; the stream stays attached), and `unavailable` (the
|
|
732
|
+
feature is not enabled on the install; sent once, then the stream ends —
|
|
733
|
+
do not retry).
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
The client tracks no offset. The AI side attaches to its change stream
|
|
737
|
+
before it reads the log, so rows written between the two arrive twice
|
|
738
|
+
rather than not at all, and where it could not, or lost rows later, it
|
|
739
|
+
sends `gap` or `lagged`. A reconnect simply starts with a fresh
|
|
740
|
+
snapshot. This API relays that contract; it does not enforce it.
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
The AI side sends rows with structure and timings and with value payloads
|
|
744
|
+
left out — expand a step through M:SmartSpace.App.ConfigApi.Controllers.FlowRunsController.GetStepExecution(System.Guid,System.Guid) for those —
|
|
745
|
+
and sends only persisted state, which does not include LLM token deltas.
|
|
746
|
+
Nothing here strips a payload: a row is relayed as it arrives.
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
This endpoint does not return 501. The AI side answers 501 when the
|
|
750
|
+
feature is off, and that arrives here as the `unavailable` frame on a
|
|
751
|
+
200. Surfacing it as an exception instead would reach the caller as a
|
|
752
|
+
generic 500, which loses the one thing it needs to know: that retrying
|
|
753
|
+
will never help.
|
|
754
|
+
|
|
755
|
+
* @summary Live run events for a run: a snapshot of the run so far, then the tail,
|
|
756
|
+
on one connection.
|
|
757
|
+
*/
|
|
758
|
+
const flowRunsStreamRunEvents = (id) => {
|
|
759
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/events/stream`, method: 'GET'
|
|
703
760
|
});
|
|
704
761
|
};
|
|
705
762
|
const flowRunsAddFileIdFiles = (id, flowRunsAddFileIdFilesBody) => {
|
|
@@ -707,13 +764,13 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
707
764
|
if (flowRunsAddFileIdFilesBody.file !== undefined) {
|
|
708
765
|
formData.append(`file`, flowRunsAddFileIdFilesBody.file);
|
|
709
766
|
}
|
|
710
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/files`, method: 'POST',
|
|
767
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/files`, method: 'POST',
|
|
711
768
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
712
769
|
data: formData
|
|
713
770
|
});
|
|
714
771
|
};
|
|
715
772
|
const flowRunsAddFileIdFilesExisting = (id, filesAddMessageFileFromBlobUri) => {
|
|
716
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/files/existing`, method: 'POST',
|
|
773
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/files/existing`, method: 'POST',
|
|
717
774
|
headers: { 'Content-Type': 'application/*+json', },
|
|
718
775
|
data: filesAddMessageFileFromBlobUri
|
|
719
776
|
});
|
|
@@ -722,7 +779,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
722
779
|
* @summary Lists a run's function executions, newest first.
|
|
723
780
|
*/
|
|
724
781
|
const flowRunsGetStepExecutions = (id, params) => {
|
|
725
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions`, method: 'GET',
|
|
782
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/functionexecutions`, method: 'GET',
|
|
726
783
|
params
|
|
727
784
|
});
|
|
728
785
|
};
|
|
@@ -735,7 +792,17 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
735
792
|
behind `functionexecutions?includeValues=false`.
|
|
736
793
|
*/
|
|
737
794
|
const flowRunsGetStepExecution = (id, executionId) => {
|
|
738
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions/${executionId}`, method: 'GET'
|
|
795
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/functionexecutions/${executionId}`, method: 'GET'
|
|
796
|
+
});
|
|
797
|
+
};
|
|
798
|
+
/**
|
|
799
|
+
* Read from SQL only. Gated like the run read: 404 for a run the caller may not see.
|
|
800
|
+
Cost sums the priced calls; unpricedCalls says how many calls it leaves out.
|
|
801
|
+
* @summary A run's invocations, oldest first: on a chat thread one per message, on an
|
|
802
|
+
ingestion run one. Each carries its model calls summed by model and round.
|
|
803
|
+
*/
|
|
804
|
+
const flowRunsGetInvocations = (id) => {
|
|
805
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/invocations`, method: 'GET'
|
|
739
806
|
});
|
|
740
807
|
};
|
|
741
808
|
/**
|
|
@@ -745,34 +812,77 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
745
812
|
* @summary Downloads a blob-spilled value's payload.
|
|
746
813
|
*/
|
|
747
814
|
const flowRunsGetFlowValueDownload = (id, valueId) => {
|
|
748
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/values/${valueId}/download`, method: 'GET'
|
|
815
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/values/${valueId}/download`, method: 'GET'
|
|
749
816
|
});
|
|
750
817
|
};
|
|
751
818
|
const flowRunsGetVariables = (id) => {
|
|
752
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables`, method: 'GET'
|
|
819
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables`, method: 'GET'
|
|
753
820
|
});
|
|
754
821
|
};
|
|
755
822
|
const flowRunsSetVariable = (id, variableName, flowRunsSetVariableBody) => {
|
|
756
|
-
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
|
|
823
|
+
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
|
|
757
824
|
headers: { 'Content-Type': 'application/*+json', },
|
|
758
825
|
data: flowRunsSetVariableBody
|
|
759
826
|
});
|
|
760
827
|
};
|
|
761
828
|
const flowsGet = (id) => {
|
|
762
|
-
return (0, instance_1.customInstance)({ url: `/Flows/${id}`, method: 'GET'
|
|
829
|
+
return (0, instance_1.customInstance)({ url: `/v1/Flows/${id}`, method: 'GET'
|
|
763
830
|
});
|
|
764
831
|
};
|
|
765
832
|
const flowsSetActiveFlowDefinition = (id, flowsFlowDefinition) => {
|
|
766
|
-
return (0, instance_1.customInstance)({ url: `/Flows/${id}/active`, method: 'PUT',
|
|
833
|
+
return (0, instance_1.customInstance)({ url: `/v1/Flows/${id}/active`, method: 'PUT',
|
|
767
834
|
headers: { 'Content-Type': 'application/*+json', },
|
|
768
835
|
data: flowsFlowDefinition
|
|
769
836
|
});
|
|
770
837
|
};
|
|
838
|
+
/**
|
|
839
|
+
* @summary Returns one entry per known key, each carrying both the currently-configured value
|
|
840
|
+
(what's set in mgmt-api now) and the active value (what the install last confirmed it
|
|
841
|
+
was running with). The frontend diffs these to show pending changes.
|
|
842
|
+
*/
|
|
843
|
+
const installParametersList = () => {
|
|
844
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters`, method: 'GET'
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* @summary Returns the closed registry of known install-parameter keys. Each entry describes the
|
|
849
|
+
key's type, default, and human-readable description so the frontend can render a typed
|
|
850
|
+
input per key.
|
|
851
|
+
*/
|
|
852
|
+
const installParametersGetRegistry = () => {
|
|
853
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/registry`, method: 'GET'
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* @summary Clears the override for a parameter so it falls back to the registry's default on the
|
|
858
|
+
next install update. Idempotent — deleting an already-absent key returns 204.
|
|
859
|
+
*/
|
|
860
|
+
const installParametersDelete = (key) => {
|
|
861
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'DELETE'
|
|
862
|
+
});
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* @summary Returns a single parameter by key. Returns 404 if the key is known but has no override set.
|
|
866
|
+
*/
|
|
867
|
+
const installParametersGet = (key) => {
|
|
868
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'GET'
|
|
869
|
+
});
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* @summary Upserts the override value for a parameter. The management API type-checks it against the
|
|
873
|
+
registry (a boolean key requires a JSON boolean value, etc.); this route forwards it unchanged.
|
|
874
|
+
*/
|
|
875
|
+
const installParametersUpsert = (key, coreManagementUpsertInstallParameterModel) => {
|
|
876
|
+
return (0, instance_1.customInstance)({ url: `/v1/InstallParameters/${key}`, method: 'PUT',
|
|
877
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
878
|
+
data: coreManagementUpsertInstallParameterModel
|
|
879
|
+
});
|
|
880
|
+
};
|
|
771
881
|
/**
|
|
772
882
|
* @summary Retrieves a list of model deployment providers.
|
|
773
883
|
*/
|
|
774
884
|
const modelProvidersGetProviders = (params) => {
|
|
775
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders`, method: 'GET',
|
|
885
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders`, method: 'GET',
|
|
776
886
|
params
|
|
777
887
|
});
|
|
778
888
|
};
|
|
@@ -780,7 +890,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
780
890
|
* @summary Creates a new model deployment provider.
|
|
781
891
|
*/
|
|
782
892
|
const modelProvidersCreateProvider = (aiCreateModelDeploymentProvider) => {
|
|
783
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders`, method: 'POST',
|
|
893
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders`, method: 'POST',
|
|
784
894
|
headers: { 'Content-Type': 'application/*+json', },
|
|
785
895
|
data: aiCreateModelDeploymentProvider
|
|
786
896
|
});
|
|
@@ -789,25 +899,37 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
789
899
|
* @summary Retrieves the deployable models for a model provider
|
|
790
900
|
*/
|
|
791
901
|
const modelProvidersGetModelProviderTypes = () => {
|
|
792
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/types`, method: 'GET'
|
|
902
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types`, method: 'GET'
|
|
793
903
|
});
|
|
794
904
|
};
|
|
795
905
|
/**
|
|
796
906
|
* @summary Retrieves the deployable models for a model provider
|
|
797
907
|
*/
|
|
798
908
|
const modelProvidersGetModelProviderTypeDeployableModels = (providerType) => {
|
|
799
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/types/${providerType}/deployablemodels`, method: 'GET'
|
|
909
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types/${providerType}/deployablemodels`, method: 'GET'
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* @summary Retrieves the deployable models for a model provider type, further filtered to only the
|
|
914
|
+
models actually available from the given credentials — used by the "Load Models" button
|
|
915
|
+
in the Admin UI before a provider is saved. Credentials travel in the body rather than
|
|
916
|
+
the query string since they may not be persisted anywhere yet.
|
|
917
|
+
*/
|
|
918
|
+
const modelProvidersLoadProviderModels = (providerType, modelLoadProviderModelsRequest) => {
|
|
919
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/types/${providerType}/loadmodels`, method: 'POST',
|
|
920
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
921
|
+
data: modelLoadProviderModelsRequest
|
|
800
922
|
});
|
|
801
923
|
};
|
|
802
924
|
const modelProvidersGetProvider = (id) => {
|
|
803
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/${id}`, method: 'GET'
|
|
925
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/${id}`, method: 'GET'
|
|
804
926
|
});
|
|
805
927
|
};
|
|
806
928
|
/**
|
|
807
929
|
* @summary Updates or inserts a model deployment provider.
|
|
808
930
|
*/
|
|
809
931
|
const modelProvidersUpsertProvider = (id, aiCreateModelDeploymentProvider) => {
|
|
810
|
-
return (0, instance_1.customInstance)({ url: `/ModelProviders/${id}`, method: 'PUT',
|
|
932
|
+
return (0, instance_1.customInstance)({ url: `/v1/ModelProviders/${id}`, method: 'PUT',
|
|
811
933
|
headers: { 'Content-Type': 'application/*+json', },
|
|
812
934
|
data: aiCreateModelDeploymentProvider
|
|
813
935
|
});
|
|
@@ -816,7 +938,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
816
938
|
* @summary Retrieves a list of models.
|
|
817
939
|
*/
|
|
818
940
|
const modelsGetModels = (params) => {
|
|
819
|
-
return (0, instance_1.customInstance)({ url: `/Models`, method: 'GET',
|
|
941
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'GET',
|
|
820
942
|
params
|
|
821
943
|
});
|
|
822
944
|
};
|
|
@@ -824,7 +946,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
824
946
|
* @summary Creates a new model.
|
|
825
947
|
*/
|
|
826
948
|
const modelsCreateModel = (aiCreateModel) => {
|
|
827
|
-
return (0, instance_1.customInstance)({ url: `/Models`, method: 'POST',
|
|
949
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'POST',
|
|
828
950
|
headers: { 'Content-Type': 'application/*+json', },
|
|
829
951
|
data: aiCreateModel
|
|
830
952
|
});
|
|
@@ -833,11 +955,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
833
955
|
* @summary Retrieves the instance-wide default model — the one pre-selected on new LLM blocks and the default workspace flow.
|
|
834
956
|
*/
|
|
835
957
|
const modelsGetDefaultModel = () => {
|
|
836
|
-
return (0, instance_1.customInstance)({ url: `/Models/default`, method: 'GET'
|
|
958
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/default`, method: 'GET'
|
|
837
959
|
});
|
|
838
960
|
};
|
|
839
961
|
const modelsGetDefaultDockerFile = (params) => {
|
|
840
|
-
return (0, instance_1.customInstance)({ url: `/Models/defaultdockerfile`, method: 'GET',
|
|
962
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/defaultdockerfile`, method: 'GET',
|
|
841
963
|
params
|
|
842
964
|
});
|
|
843
965
|
};
|
|
@@ -845,21 +967,21 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
845
967
|
* @summary Deletes a model with the specified ID.
|
|
846
968
|
*/
|
|
847
969
|
const modelsDeleteModel = (id) => {
|
|
848
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'DELETE'
|
|
970
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'DELETE'
|
|
849
971
|
});
|
|
850
972
|
};
|
|
851
973
|
/**
|
|
852
974
|
* @summary Retrieves a model by its ID.
|
|
853
975
|
*/
|
|
854
976
|
const modelsGetModel = (id) => {
|
|
855
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'GET'
|
|
977
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'GET'
|
|
856
978
|
});
|
|
857
979
|
};
|
|
858
980
|
/**
|
|
859
981
|
* @summary Updates or inserts a model with the specified ID.
|
|
860
982
|
*/
|
|
861
983
|
const modelsUpsertModel = (id, aiCreateModel) => {
|
|
862
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'PUT',
|
|
984
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'PUT',
|
|
863
985
|
headers: { 'Content-Type': 'application/*+json', },
|
|
864
986
|
data: aiCreateModel
|
|
865
987
|
});
|
|
@@ -868,35 +990,43 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
868
990
|
* @summary Clears the default flag from the specified model, leaving the instance with no default.
|
|
869
991
|
*/
|
|
870
992
|
const modelsClearDefaultModel = (id) => {
|
|
871
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'DELETE'
|
|
993
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/default`, method: 'DELETE'
|
|
872
994
|
});
|
|
873
995
|
};
|
|
874
996
|
/**
|
|
875
997
|
* @summary Makes the specified model the instance-wide default, replacing any previous default.
|
|
876
998
|
*/
|
|
877
999
|
const modelsSetDefaultModel = (id) => {
|
|
878
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'PUT'
|
|
1000
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/default`, method: 'PUT'
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* @summary Retrieves the deployment of a model: VM URL, docker file, provider and steps. Platform admins only; the
|
|
1005
|
+
class gate lets editors reach the route and the deployment view refuses them with 403.
|
|
1006
|
+
*/
|
|
1007
|
+
const modelsGetModelDeployment = (id) => {
|
|
1008
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/deployment`, method: 'GET'
|
|
879
1009
|
});
|
|
880
1010
|
};
|
|
881
1011
|
/**
|
|
882
1012
|
* @summary Retrieves the Docker logs for a specific deployment of a model.
|
|
883
1013
|
*/
|
|
884
1014
|
const modelsGetDeploymentDockerLogs = (id) => {
|
|
885
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/deployment/docker-logs`, method: 'GET'
|
|
1015
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/deployment/docker-logs`, method: 'GET'
|
|
886
1016
|
});
|
|
887
1017
|
};
|
|
888
1018
|
/**
|
|
889
1019
|
* @summary Retrieves the health status of a model.
|
|
890
1020
|
*/
|
|
891
1021
|
const modelsGetModelHealth = (id) => {
|
|
892
|
-
return (0, instance_1.customInstance)({ url: `/Models/${id}/health`, method: 'GET'
|
|
1022
|
+
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}/health`, method: 'GET'
|
|
893
1023
|
});
|
|
894
1024
|
};
|
|
895
1025
|
/**
|
|
896
1026
|
* @summary Retrieve notifications for user login.
|
|
897
1027
|
*/
|
|
898
1028
|
const notificationGet = (params) => {
|
|
899
|
-
return (0, instance_1.customInstance)({ url: `/Notification`, method: 'GET',
|
|
1029
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification`, method: 'GET',
|
|
900
1030
|
params
|
|
901
1031
|
});
|
|
902
1032
|
};
|
|
@@ -904,7 +1034,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
904
1034
|
* @summary Update: mark read notifications.
|
|
905
1035
|
*/
|
|
906
1036
|
const notificationPutUpdate = (notificationPutUpdateBody) => {
|
|
907
|
-
return (0, instance_1.customInstance)({ url: `/Notification/update`, method: 'PUT',
|
|
1037
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification/update`, method: 'PUT',
|
|
908
1038
|
headers: { 'Content-Type': 'application/*+json', },
|
|
909
1039
|
data: notificationPutUpdateBody
|
|
910
1040
|
});
|
|
@@ -913,21 +1043,21 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
913
1043
|
* @summary Update: mark read all notifications.
|
|
914
1044
|
*/
|
|
915
1045
|
const notificationPutUpdateall = () => {
|
|
916
|
-
return (0, instance_1.customInstance)({ url: `/Notification/updateall`, method: 'PUT'
|
|
1046
|
+
return (0, instance_1.customInstance)({ url: `/v1/Notification/updateall`, method: 'PUT'
|
|
917
1047
|
});
|
|
918
1048
|
};
|
|
919
1049
|
/**
|
|
920
1050
|
* @summary Gets the current SmartSpace plan
|
|
921
1051
|
*/
|
|
922
1052
|
const planGetSmartSpacePlan = () => {
|
|
923
|
-
return (0, instance_1.customInstance)({ url: `/Plan`, method: 'GET'
|
|
1053
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan`, method: 'GET'
|
|
924
1054
|
});
|
|
925
1055
|
};
|
|
926
1056
|
/**
|
|
927
1057
|
* @summary Update the upgrade component of the smartspace plan
|
|
928
1058
|
*/
|
|
929
1059
|
const planUpdateSmartSpaceUpgrade = (coreManagementSmartSpaceUpgradeUpdate) => {
|
|
930
|
-
return (0, instance_1.customInstance)({ url: `/Plan/upgrade`, method: 'PUT',
|
|
1060
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/upgrade`, method: 'PUT',
|
|
931
1061
|
headers: { 'Content-Type': 'application/*+json', },
|
|
932
1062
|
data: coreManagementSmartSpaceUpgradeUpdate
|
|
933
1063
|
});
|
|
@@ -936,7 +1066,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
936
1066
|
* @summary Calculate the cost of an upgrade change
|
|
937
1067
|
*/
|
|
938
1068
|
const planCalculateSmartSpaceUpgradeCost = (coreManagementSmartSpaceUpgradeUpdate) => {
|
|
939
|
-
return (0, instance_1.customInstance)({ url: `/Plan/upgrade/calculate`, method: 'POST',
|
|
1069
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/upgrade/calculate`, method: 'POST',
|
|
940
1070
|
headers: { 'Content-Type': 'application/*+json', },
|
|
941
1071
|
data: coreManagementSmartSpaceUpgradeUpdate
|
|
942
1072
|
});
|
|
@@ -945,22 +1075,22 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
945
1075
|
* @summary Gets usage information of the current SmartSpace plan
|
|
946
1076
|
*/
|
|
947
1077
|
const planGetSmartSpacePlanUsage = () => {
|
|
948
|
-
return (0, instance_1.customInstance)({ url: `/Plan/usage`, method: 'GET'
|
|
1078
|
+
return (0, instance_1.customInstance)({ url: `/v1/Plan/usage`, method: 'GET'
|
|
949
1079
|
});
|
|
950
1080
|
};
|
|
951
1081
|
/**
|
|
952
|
-
* @summary Gets the number of
|
|
1082
|
+
* @summary Gets the number of flow invocations by a specified duration
|
|
953
1083
|
*/
|
|
954
1084
|
const reportingGetRequests = (duration, params) => {
|
|
955
|
-
return (0, instance_1.customInstance)({ url: `/Reporting/Requests/by/${duration}`, method: 'GET',
|
|
1085
|
+
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Requests/by/${duration}`, method: 'GET',
|
|
956
1086
|
params
|
|
957
1087
|
});
|
|
958
1088
|
};
|
|
959
1089
|
/**
|
|
960
|
-
* @summary Gets the
|
|
1090
|
+
* @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
|
|
961
1091
|
*/
|
|
962
1092
|
const reportingGetTokens = (duration, params) => {
|
|
963
|
-
return (0, instance_1.customInstance)({ url: `/Reporting/Tokens/by/${duration}`, method: 'GET',
|
|
1093
|
+
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Tokens/by/${duration}`, method: 'GET',
|
|
964
1094
|
params
|
|
965
1095
|
});
|
|
966
1096
|
};
|
|
@@ -969,10 +1099,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
969
1099
|
role, with their permission flags and last recorded activity.
|
|
970
1100
|
*/
|
|
971
1101
|
const servicePrincipalsGetServicePrincipals = (params) => {
|
|
972
|
-
return (0, instance_1.customInstance)({ url: `/ServicePrincipals`, method: 'GET',
|
|
1102
|
+
return (0, instance_1.customInstance)({ url: `/v1/ServicePrincipals`, method: 'GET',
|
|
973
1103
|
params
|
|
974
1104
|
});
|
|
975
1105
|
};
|
|
1106
|
+
/**
|
|
1107
|
+
* @summary Whether speech-to-text (composer dictation) is available on this install, and how the browser
|
|
1108
|
+
should connect. The UI decides whether to render the microphone from this, so it answers for
|
|
1109
|
+
the install rather than failing: an install without speech reports enabled = false.
|
|
1110
|
+
*/
|
|
1111
|
+
const speechGetConfig = () => {
|
|
1112
|
+
return (0, instance_1.customInstance)({ url: `/v1/Speech/config`, method: 'GET'
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
/**
|
|
1116
|
+
* @summary A token from this install's Speech account token service, which the browser passes straight
|
|
1117
|
+
to Azure AI Speech to stream audio for recognition. Roughly ten minutes of life, scoped to
|
|
1118
|
+
recognition on this one resource in one region.
|
|
1119
|
+
*/
|
|
1120
|
+
const speechGetToken = () => {
|
|
1121
|
+
return (0, instance_1.customInstance)({ url: `/v1/Speech/token`, method: 'GET'
|
|
1122
|
+
});
|
|
1123
|
+
};
|
|
976
1124
|
/**
|
|
977
1125
|
* @summary List configured syncs. status matches the data
|
|
978
1126
|
source's latest completed sync (e.g. Success / Failure), or "never"
|
|
@@ -980,7 +1128,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
980
1128
|
name | connector | lastSync (default: path).
|
|
981
1129
|
*/
|
|
982
1130
|
const syncsGet = (params) => {
|
|
983
|
-
return (0, instance_1.customInstance)({ url: `/Syncs`, method: 'GET',
|
|
1131
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs`, method: 'GET',
|
|
984
1132
|
params
|
|
985
1133
|
});
|
|
986
1134
|
};
|
|
@@ -991,7 +1139,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
991
1139
|
isSyncing flag. Literal route wins over the {containerId} template.
|
|
992
1140
|
*/
|
|
993
1141
|
const syncsGetQueue = () => {
|
|
994
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/queue`, method: 'GET'
|
|
1142
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/queue`, method: 'GET'
|
|
995
1143
|
});
|
|
996
1144
|
};
|
|
997
1145
|
/**
|
|
@@ -1002,11 +1150,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1002
1150
|
blobs are not cleaned up here.
|
|
1003
1151
|
*/
|
|
1004
1152
|
const syncsDelete = (containerId) => {
|
|
1005
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'DELETE'
|
|
1153
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}`, method: 'DELETE'
|
|
1006
1154
|
});
|
|
1007
1155
|
};
|
|
1008
1156
|
const syncsGetById = (containerId) => {
|
|
1009
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'GET'
|
|
1157
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}`, method: 'GET'
|
|
1010
1158
|
});
|
|
1011
1159
|
};
|
|
1012
1160
|
/**
|
|
@@ -1014,7 +1162,18 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1014
1162
|
container-items endpoint.
|
|
1015
1163
|
*/
|
|
1016
1164
|
const syncsGetItems = (containerId, params) => {
|
|
1017
|
-
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}/items`, method: 'GET',
|
|
1165
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}/items`, method: 'GET',
|
|
1166
|
+
params
|
|
1167
|
+
});
|
|
1168
|
+
};
|
|
1169
|
+
/**
|
|
1170
|
+
* @summary The sync's dead-letter list: the ingestion run records the AI API's
|
|
1171
|
+
consumer gave up on, newest first, each with the reason. The poison queue
|
|
1172
|
+
holds the replay copies and is not read here. 502 when the install's AI
|
|
1173
|
+
API predates the route, rather than an opaque 500.
|
|
1174
|
+
*/
|
|
1175
|
+
const syncsGetPoisoned = (containerId, params) => {
|
|
1176
|
+
return (0, instance_1.customInstance)({ url: `/v1/Syncs/${containerId}/poisoned`, method: 'GET',
|
|
1018
1177
|
params
|
|
1019
1178
|
});
|
|
1020
1179
|
};
|
|
@@ -1022,7 +1181,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1022
1181
|
* @summary Gets Tenant Id
|
|
1023
1182
|
*/
|
|
1024
1183
|
const tenantIdGetResult = () => {
|
|
1025
|
-
return (0, instance_1.customInstance)({ url: `/TenantId`, method: 'GET'
|
|
1184
|
+
return (0, instance_1.customInstance)({ url: `/v1/TenantId`, method: 'GET'
|
|
1026
1185
|
});
|
|
1027
1186
|
};
|
|
1028
1187
|
/**
|
|
@@ -1030,23 +1189,23 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1030
1189
|
with optional search and pagination controls take and skip.
|
|
1031
1190
|
*/
|
|
1032
1191
|
const usersGetUsers = (params) => {
|
|
1033
|
-
return (0, instance_1.customInstance)({ url: `/Users`, method: 'GET',
|
|
1192
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users`, method: 'GET',
|
|
1034
1193
|
params
|
|
1035
1194
|
});
|
|
1036
1195
|
};
|
|
1037
1196
|
const usersGetUsersByFilter = (permissions) => {
|
|
1038
|
-
return (0, instance_1.customInstance)({ url: `/Users/[permissions=${permissions}]`, method: 'GET'
|
|
1197
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/[permissions=${permissions}]`, method: 'GET'
|
|
1039
1198
|
});
|
|
1040
1199
|
};
|
|
1041
1200
|
const usersGetMyPermissions = () => {
|
|
1042
|
-
return (0, instance_1.customInstance)({ url: `/Users/me/permissions`, method: 'GET'
|
|
1201
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/me/permissions`, method: 'GET'
|
|
1043
1202
|
});
|
|
1044
1203
|
};
|
|
1045
1204
|
/**
|
|
1046
1205
|
* @summary Disable user (Remove all assigned WorkSpaces by UserId)
|
|
1047
1206
|
*/
|
|
1048
1207
|
const usersRemoveUserFromAllWorkSpaces = (params) => {
|
|
1049
|
-
return (0, instance_1.customInstance)({ url: `/Users/remove-assigned-workspace`, method: 'DELETE',
|
|
1208
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/remove-assigned-workspace`, method: 'DELETE',
|
|
1050
1209
|
params
|
|
1051
1210
|
});
|
|
1052
1211
|
};
|
|
@@ -1054,7 +1213,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1054
1213
|
* @summary Search users by name for autocomplete/navigation. Returns lightweight results (id, name, email only).
|
|
1055
1214
|
*/
|
|
1056
1215
|
const usersSearchUsers = (params) => {
|
|
1057
|
-
return (0, instance_1.customInstance)({ url: `/Users/search`, method: 'GET',
|
|
1216
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/search`, method: 'GET',
|
|
1058
1217
|
params
|
|
1059
1218
|
});
|
|
1060
1219
|
};
|
|
@@ -1062,7 +1221,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1062
1221
|
* @summary Retrieve user detail in SmartSpace
|
|
1063
1222
|
*/
|
|
1064
1223
|
const usersGetUserDetail = (id) => {
|
|
1065
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}`, method: 'GET'
|
|
1224
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}`, method: 'GET'
|
|
1066
1225
|
});
|
|
1067
1226
|
};
|
|
1068
1227
|
/**
|
|
@@ -1070,7 +1229,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1070
1229
|
so browsers can cache the image via standard img src usage.
|
|
1071
1230
|
*/
|
|
1072
1231
|
const usersGetUserPhoto = (id) => {
|
|
1073
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}/photo`, method: 'GET',
|
|
1232
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/photo`, method: 'GET',
|
|
1074
1233
|
responseType: 'blob'
|
|
1075
1234
|
});
|
|
1076
1235
|
};
|
|
@@ -1078,44 +1237,72 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1078
1237
|
* @summary Adds Admin for a access for a user
|
|
1079
1238
|
*/
|
|
1080
1239
|
const usersGetAccessWorkSpaces = (id, params) => {
|
|
1081
|
-
return (0, instance_1.customInstance)({ url: `/Users/${id}/workspaces`, method: 'GET',
|
|
1240
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/workspaces`, method: 'GET',
|
|
1082
1241
|
params
|
|
1083
1242
|
});
|
|
1084
1243
|
};
|
|
1085
1244
|
const usersAdminPermission = (userId, params) => {
|
|
1086
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/admin`, method: 'PUT',
|
|
1245
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/admin`, method: 'PUT',
|
|
1087
1246
|
params
|
|
1088
1247
|
});
|
|
1089
1248
|
};
|
|
1249
|
+
/**
|
|
1250
|
+
* @summary The data sources (connectors) a user is an admin of. Editing or deleting one also needs the matching flag.
|
|
1251
|
+
*/
|
|
1252
|
+
const usersGetAdministeredDataSources = (userId) => {
|
|
1253
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/datasources`, method: 'GET'
|
|
1254
|
+
});
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* @summary The data spaces a user is an admin of. Editing or deleting one also needs the matching flag.
|
|
1258
|
+
*/
|
|
1259
|
+
const usersGetAdministeredDataSpaces = (userId) => {
|
|
1260
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/dataspaces`, method: 'GET'
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
/**
|
|
1264
|
+
* @summary A user's permission flags; None when they have no row.
|
|
1265
|
+
*/
|
|
1266
|
+
const usersGetUserPermissions = (userId) => {
|
|
1267
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions`, method: 'GET'
|
|
1268
|
+
});
|
|
1269
|
+
};
|
|
1090
1270
|
const usersAddUserPermission = (userId, enumsPermissions) => {
|
|
1091
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/permissions`, method: 'PUT',
|
|
1271
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions`, method: 'PUT',
|
|
1092
1272
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1093
1273
|
data: enumsPermissions
|
|
1094
1274
|
});
|
|
1095
1275
|
};
|
|
1096
1276
|
const usersRemoveUserPermission = (userId, permission) => {
|
|
1097
|
-
return (0, instance_1.customInstance)({ url: `/Users/${userId}/permissions/${permission}`, method: 'DELETE'
|
|
1277
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/permissions/${permission}`, method: 'DELETE'
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1280
|
+
/**
|
|
1281
|
+
* @summary Every per-user secret, with whether this user has set a value and when. Never the value.
|
|
1282
|
+
*/
|
|
1283
|
+
const usersGetUserSecrets = (userId) => {
|
|
1284
|
+
return (0, instance_1.customInstance)({ url: `/v1/Users/${userId}/secrets`, method: 'GET'
|
|
1098
1285
|
});
|
|
1099
1286
|
};
|
|
1100
1287
|
/**
|
|
1101
1288
|
* @summary Returns a list of available Azure locations for deploying virtual machines
|
|
1102
1289
|
*/
|
|
1103
1290
|
const virtualMachinesGetVirtualMachineLocations = () => {
|
|
1104
|
-
return (0, instance_1.customInstance)({ url: `/VirtualMachines/locations`, method: 'GET'
|
|
1291
|
+
return (0, instance_1.customInstance)({ url: `/v1/VirtualMachines/locations`, method: 'GET'
|
|
1105
1292
|
});
|
|
1106
1293
|
};
|
|
1107
1294
|
/**
|
|
1108
1295
|
* @summary Returns a list of virtual machines sizes available in the specified location
|
|
1109
1296
|
*/
|
|
1110
1297
|
const virtualMachinesGetVirtualMachineSize = (location) => {
|
|
1111
|
-
return (0, instance_1.customInstance)({ url: `/VirtualMachines/locations/${location}/sizes`, method: 'GET'
|
|
1298
|
+
return (0, instance_1.customInstance)({ url: `/v1/VirtualMachines/locations/${location}/sizes`, method: 'GET'
|
|
1112
1299
|
});
|
|
1113
1300
|
};
|
|
1114
1301
|
/**
|
|
1115
1302
|
* @summary Obtain a list of all templates in SmartSpace, with pagination options take and skip.
|
|
1116
1303
|
*/
|
|
1117
1304
|
const workSpaceTemplatesGet = (params) => {
|
|
1118
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaceTemplates`, method: 'GET',
|
|
1305
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaceTemplates`, method: 'GET',
|
|
1119
1306
|
params
|
|
1120
1307
|
});
|
|
1121
1308
|
};
|
|
@@ -1123,7 +1310,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1123
1310
|
* @summary Retrieves a collection of workspaces.
|
|
1124
1311
|
*/
|
|
1125
1312
|
const workSpacesGetGet = (params) => {
|
|
1126
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces`, method: 'GET',
|
|
1313
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'GET',
|
|
1127
1314
|
params
|
|
1128
1315
|
});
|
|
1129
1316
|
};
|
|
@@ -1131,7 +1318,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1131
1318
|
* @summary Creates a new workspace.
|
|
1132
1319
|
*/
|
|
1133
1320
|
const workSpacesPost = (workSpacesCreateWorkSpace) => {
|
|
1134
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces`, method: 'POST',
|
|
1321
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'POST',
|
|
1135
1322
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1136
1323
|
data: workSpacesCreateWorkSpace
|
|
1137
1324
|
});
|
|
@@ -1140,33 +1327,33 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1140
1327
|
* @summary Deletes a workspace by its ID.
|
|
1141
1328
|
*/
|
|
1142
1329
|
const workSpacesDelete = (id) => {
|
|
1143
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}`, method: 'DELETE'
|
|
1330
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'DELETE'
|
|
1144
1331
|
});
|
|
1145
1332
|
};
|
|
1146
1333
|
/**
|
|
1147
1334
|
* @summary Retrieves a workspace by its ID.
|
|
1148
1335
|
*/
|
|
1149
1336
|
const workSpacesGetId = (id) => {
|
|
1150
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}`, method: 'GET'
|
|
1337
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'GET'
|
|
1151
1338
|
});
|
|
1152
1339
|
};
|
|
1153
1340
|
const workSpacesGetWorkspaceAdmins = (id) => {
|
|
1154
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins`, method: 'GET'
|
|
1341
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins`, method: 'GET'
|
|
1155
1342
|
});
|
|
1156
1343
|
};
|
|
1157
1344
|
const workSpacesDeleteAdmin = (id, userId) => {
|
|
1158
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
1345
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins/${userId}`, method: 'DELETE'
|
|
1159
1346
|
});
|
|
1160
1347
|
};
|
|
1161
1348
|
const workSpacesAddWorkspaceAdmin = (id, userId) => {
|
|
1162
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
1349
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/admins/${userId}`, method: 'PUT'
|
|
1163
1350
|
});
|
|
1164
1351
|
};
|
|
1165
1352
|
/**
|
|
1166
1353
|
* @summary Updates the basic information of a workspace.
|
|
1167
1354
|
*/
|
|
1168
1355
|
const workSpacesPut = (id, workSpacesUpdateWorkSpaceBasicInfo) => {
|
|
1169
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/basicinfo`, method: 'PUT',
|
|
1356
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/basicinfo`, method: 'PUT',
|
|
1170
1357
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1171
1358
|
data: workSpacesUpdateWorkSpaceBasicInfo
|
|
1172
1359
|
});
|
|
@@ -1175,7 +1362,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1175
1362
|
* @summary Marks a workspace as favorited or not for the active user.
|
|
1176
1363
|
*/
|
|
1177
1364
|
const workSpacesSetFavorited = (id, boolean) => {
|
|
1178
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/favorited`, method: 'PUT',
|
|
1365
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/favorited`, method: 'PUT',
|
|
1179
1366
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1180
1367
|
data: boolean
|
|
1181
1368
|
});
|
|
@@ -1184,7 +1371,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1184
1371
|
* @summary Retrieves message threads for a workspace.
|
|
1185
1372
|
*/
|
|
1186
1373
|
const workSpacesGetThreads = (id, params) => {
|
|
1187
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/messageThreads`, method: 'GET',
|
|
1374
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/messageThreads`, method: 'GET',
|
|
1188
1375
|
params
|
|
1189
1376
|
});
|
|
1190
1377
|
};
|
|
@@ -1192,14 +1379,14 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1192
1379
|
* @summary Deletes the model configuration for a specific workspace and role.
|
|
1193
1380
|
*/
|
|
1194
1381
|
const workSpacesDeleteModelConfiguration = (id, role) => {
|
|
1195
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'DELETE'
|
|
1382
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'DELETE'
|
|
1196
1383
|
});
|
|
1197
1384
|
};
|
|
1198
1385
|
/**
|
|
1199
1386
|
* @summary Updates the model configuration for a specific workspace and role.
|
|
1200
1387
|
*/
|
|
1201
1388
|
const workSpacesPutModelConfiguration = (id, role, createModelConfiguration) => {
|
|
1202
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'PUT',
|
|
1389
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/modelconfiguration/${role}`, method: 'PUT',
|
|
1203
1390
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1204
1391
|
data: createModelConfiguration
|
|
1205
1392
|
});
|
|
@@ -1209,7 +1396,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1209
1396
|
fail at resolve time rather than silently keeping access.
|
|
1210
1397
|
*/
|
|
1211
1398
|
const workSpacesRemoveConnector = (workspaceId, connectorId) => {
|
|
1212
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'DELETE'
|
|
1399
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'DELETE'
|
|
1213
1400
|
});
|
|
1214
1401
|
};
|
|
1215
1402
|
/**
|
|
@@ -1219,28 +1406,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1219
1406
|
the same attachment at call time.
|
|
1220
1407
|
*/
|
|
1221
1408
|
const workSpacesAddConnector = (workspaceId, connectorId) => {
|
|
1222
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'PUT'
|
|
1409
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'PUT'
|
|
1223
1410
|
});
|
|
1224
1411
|
};
|
|
1225
1412
|
/**
|
|
1226
1413
|
* @summary Removes a data space from a workspace.
|
|
1227
1414
|
*/
|
|
1228
1415
|
const workSpacesRemoveDataSpace = (workspaceId, dataspaceId) => {
|
|
1229
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'DELETE'
|
|
1416
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'DELETE'
|
|
1230
1417
|
});
|
|
1231
1418
|
};
|
|
1232
1419
|
/**
|
|
1233
1420
|
* @summary Adds a data space to a workspace.
|
|
1234
1421
|
*/
|
|
1235
1422
|
const workSpacesAddDataSpace = (workspaceId, dataspaceId) => {
|
|
1236
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'PUT'
|
|
1423
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/dataspaces/${dataspaceId}`, method: 'PUT'
|
|
1237
1424
|
});
|
|
1238
1425
|
};
|
|
1239
1426
|
/**
|
|
1240
1427
|
* @summary Gets a list of all the files that are uploaded directly to the workspace.
|
|
1241
1428
|
*/
|
|
1242
1429
|
const workSpacesGetWorkspaceFiles = (workspaceId, params) => {
|
|
1243
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files`, method: 'GET',
|
|
1430
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files`, method: 'GET',
|
|
1244
1431
|
params
|
|
1245
1432
|
});
|
|
1246
1433
|
};
|
|
@@ -1252,7 +1439,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1252
1439
|
if (workSpacesWorkspaceFilesBody.files !== undefined) {
|
|
1253
1440
|
workSpacesWorkspaceFilesBody.files.forEach(value => formData.append(`files`, value));
|
|
1254
1441
|
}
|
|
1255
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files`, method: 'POST',
|
|
1442
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files`, method: 'POST',
|
|
1256
1443
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
1257
1444
|
data: formData
|
|
1258
1445
|
});
|
|
@@ -1261,18 +1448,18 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1261
1448
|
* @summary Removes a file from the workspace and the ingested content.
|
|
1262
1449
|
*/
|
|
1263
1450
|
const workSpacesDeleteWorkspaceFile = (workspaceId, fileId) => {
|
|
1264
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/files/${fileId}`, method: 'DELETE'
|
|
1451
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/files/${fileId}`, method: 'DELETE'
|
|
1265
1452
|
});
|
|
1266
1453
|
};
|
|
1267
1454
|
const workSpacesGetActiveFlow = (workspaceId) => {
|
|
1268
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active`, method: 'GET'
|
|
1455
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active`, method: 'GET'
|
|
1269
1456
|
});
|
|
1270
1457
|
};
|
|
1271
1458
|
/**
|
|
1272
1459
|
* @summary Sets the active flow definition for a workspace.
|
|
1273
1460
|
*/
|
|
1274
1461
|
const workSpacesSetActiveFlow = (workspaceId, flowsFlowDefinition) => {
|
|
1275
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active`, method: 'PUT',
|
|
1462
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active`, method: 'PUT',
|
|
1276
1463
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1277
1464
|
data: flowsFlowDefinition
|
|
1278
1465
|
});
|
|
@@ -1281,7 +1468,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1281
1468
|
* @summary Updates the layout of blocks for the active flow definition.
|
|
1282
1469
|
*/
|
|
1283
1470
|
const workSpacesSetActiveFlowLayout = (workspaceId, workSpacesSetActiveFlowLayoutBody) => {
|
|
1284
|
-
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/flows/active/layout`, method: 'PUT',
|
|
1471
|
+
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${workspaceId}/flows/active/layout`, method: 'PUT',
|
|
1285
1472
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1286
1473
|
data: workSpacesSetActiveFlowLayoutBody
|
|
1287
1474
|
});
|
|
@@ -1290,7 +1477,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1290
1477
|
* @summary Lists connectors with their auth settings — never a credential.
|
|
1291
1478
|
*/
|
|
1292
1479
|
const connectorsGetConnectors = (params) => {
|
|
1293
|
-
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'GET',
|
|
1480
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors`, method: 'GET',
|
|
1294
1481
|
params
|
|
1295
1482
|
});
|
|
1296
1483
|
};
|
|
@@ -1299,7 +1486,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1299
1486
|
goes to Key Vault, the row stores only the reference.
|
|
1300
1487
|
*/
|
|
1301
1488
|
const connectorsCreateConnector = (connectorsCreateConnector) => {
|
|
1302
|
-
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'POST',
|
|
1489
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors`, method: 'POST',
|
|
1303
1490
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1304
1491
|
data: connectorsCreateConnector
|
|
1305
1492
|
});
|
|
@@ -1311,16 +1498,16 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1311
1498
|
choose one. Admins pass this gate via the role bypass.
|
|
1312
1499
|
*/
|
|
1313
1500
|
const connectorsGetConnectorSummaries = (params) => {
|
|
1314
|
-
return (0, instance_1.customInstance)({ url: `/connectors/summaries`, method: 'GET',
|
|
1501
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/summaries`, method: 'GET',
|
|
1315
1502
|
params
|
|
1316
1503
|
});
|
|
1317
1504
|
};
|
|
1318
1505
|
const connectorsDeleteConnector = (id) => {
|
|
1319
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'DELETE'
|
|
1506
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'DELETE'
|
|
1320
1507
|
});
|
|
1321
1508
|
};
|
|
1322
1509
|
const connectorsGetConnector = (id) => {
|
|
1323
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'GET'
|
|
1510
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'GET'
|
|
1324
1511
|
});
|
|
1325
1512
|
};
|
|
1326
1513
|
/**
|
|
@@ -1328,7 +1515,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1328
1515
|
untouched; supply one to rotate it.
|
|
1329
1516
|
*/
|
|
1330
1517
|
const connectorsUpdateConnector = (id, connectorsUpdateConnector) => {
|
|
1331
|
-
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'PUT',
|
|
1518
|
+
return (0, instance_1.customInstance)({ url: `/v1/connectors/${id}`, method: 'PUT',
|
|
1332
1519
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1333
1520
|
data: connectorsUpdateConnector
|
|
1334
1521
|
});
|
|
@@ -1337,61 +1524,104 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1337
1524
|
* @summary Retrieve a Shared Access Signature (SAS) for a specific item within a data space's documents in SmartSpace, using the dataSpaceId.
|
|
1338
1525
|
*/
|
|
1339
1526
|
const documentsGetDocumentSas = (dataSpaceId, params) => {
|
|
1340
|
-
return (0, instance_1.customInstance)({ url: `/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
|
|
1527
|
+
return (0, instance_1.customInstance)({ url: `/v1/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
|
|
1341
1528
|
params
|
|
1342
1529
|
});
|
|
1343
1530
|
};
|
|
1344
1531
|
/**
|
|
1345
|
-
* @summary
|
|
1532
|
+
* @summary Returns a single public parameter by key. Returns 404 if the key is not in the public
|
|
1533
|
+
allowlist or has no override set.
|
|
1346
1534
|
*/
|
|
1347
|
-
const
|
|
1348
|
-
return (0, instance_1.customInstance)({ url: `/
|
|
1535
|
+
const publicInstallParametersGet = (key) => {
|
|
1536
|
+
return (0, instance_1.customInstance)({ url: `/v1/installparameters/public/${key}`, method: 'GET'
|
|
1349
1537
|
});
|
|
1350
1538
|
};
|
|
1351
1539
|
/**
|
|
1352
|
-
* @summary
|
|
1353
|
-
the
|
|
1540
|
+
* @summary Lists a page of managed secrets — names, mode and audit metadata only, never values.
|
|
1541
|
+
`search` matches part of the name; `sortBy` is name, mode, createdAt or
|
|
1542
|
+
modifiedAt (default name); `sortDirection` is asc or desc.
|
|
1543
|
+
*/
|
|
1544
|
+
const managedSecretsGetManagedSecrets = (params) => {
|
|
1545
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets`, method: 'GET',
|
|
1546
|
+
params
|
|
1547
|
+
});
|
|
1548
|
+
};
|
|
1549
|
+
/**
|
|
1550
|
+
* @summary Creates a named secret. A shared secret stores its value and keeps only the
|
|
1551
|
+
reference; a per-user secret is created empty.
|
|
1354
1552
|
*/
|
|
1355
1553
|
const managedSecretsCreateManagedSecret = (managedSecretsCreateManagedSecret) => {
|
|
1356
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets`, method: 'POST',
|
|
1554
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets`, method: 'POST',
|
|
1357
1555
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1358
1556
|
data: managedSecretsCreateManagedSecret
|
|
1359
1557
|
});
|
|
1360
1558
|
};
|
|
1361
1559
|
/**
|
|
1362
|
-
* @summary Deletes a secret: removes
|
|
1560
|
+
* @summary Deletes a secret: removes every stored value and hard-deletes the rows.
|
|
1363
1561
|
*/
|
|
1364
1562
|
const managedSecretsDeleteManagedSecret = (name) => {
|
|
1365
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}`, method: 'DELETE'
|
|
1563
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}`, method: 'DELETE'
|
|
1564
|
+
});
|
|
1565
|
+
};
|
|
1566
|
+
/**
|
|
1567
|
+
* @summary One managed secret by name — name, mode and audit metadata only, never a value.
|
|
1568
|
+
*/
|
|
1569
|
+
const managedSecretsGetManagedSecret = (name) => {
|
|
1570
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}`, method: 'GET'
|
|
1571
|
+
});
|
|
1572
|
+
};
|
|
1573
|
+
/**
|
|
1574
|
+
* @summary Lists a page of the users who have a value on a per-user secret. Ids only, never values.
|
|
1575
|
+
`sortBy` is modifiedAt (default, newest first) or userId.
|
|
1576
|
+
*/
|
|
1577
|
+
const managedSecretsGetManagedSecretUserValues = (name, params) => {
|
|
1578
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users`, method: 'GET',
|
|
1579
|
+
params
|
|
1580
|
+
});
|
|
1581
|
+
};
|
|
1582
|
+
/**
|
|
1583
|
+
* @summary Deletes one user's value on a per-user secret.
|
|
1584
|
+
*/
|
|
1585
|
+
const managedSecretsDeleteManagedSecretUserValue = (name, userId) => {
|
|
1586
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users/${userId}/value`, method: 'DELETE'
|
|
1587
|
+
});
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* @summary Sets or rotates one user's value on a per-user secret. Write-only.
|
|
1591
|
+
*/
|
|
1592
|
+
const managedSecretsSetManagedSecretUserValue = (name, userId, managedSecretsUpdateManagedSecretValue) => {
|
|
1593
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/users/${userId}/value`, method: 'PUT',
|
|
1594
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1595
|
+
data: managedSecretsUpdateManagedSecretValue
|
|
1366
1596
|
});
|
|
1367
1597
|
};
|
|
1368
1598
|
/**
|
|
1369
|
-
* @summary Overwrites (rotates) a secret's value
|
|
1370
|
-
|
|
1371
|
-
audit metadata.
|
|
1599
|
+
* @summary Overwrites (rotates) a shared secret's value under the same stored reference.
|
|
1600
|
+
The value is write-only; nothing is returned but audit metadata.
|
|
1372
1601
|
*/
|
|
1373
1602
|
const managedSecretsOverwriteManagedSecretValue = (name, managedSecretsUpdateManagedSecretValue) => {
|
|
1374
|
-
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}/value`, method: 'PUT',
|
|
1603
|
+
return (0, instance_1.customInstance)({ url: `/v1/managedsecrets/${name}/value`, method: 'PUT',
|
|
1375
1604
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1376
1605
|
data: managedSecretsUpdateManagedSecretValue
|
|
1377
1606
|
});
|
|
1378
1607
|
};
|
|
1379
1608
|
const messageThreadsGetWorkspaceExecutions = (workSpaceId, params) => {
|
|
1380
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workSpaceId}/functionexecutions`, method: 'GET',
|
|
1609
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workSpaceId}/functionexecutions`, method: 'GET',
|
|
1381
1610
|
params
|
|
1382
1611
|
});
|
|
1383
1612
|
};
|
|
1384
1613
|
const messageThreadsGetStepExecutions = (workSpaceId, messageThreadId, params) => {
|
|
1385
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workSpaceId}/messagethreads/${messageThreadId}/functionexecutions`, method: 'GET',
|
|
1614
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workSpaceId}/messagethreads/${messageThreadId}/functionexecutions`, method: 'GET',
|
|
1386
1615
|
params
|
|
1387
1616
|
});
|
|
1388
1617
|
};
|
|
1389
1618
|
/**
|
|
1390
1619
|
* @summary Lists a workspace's flow runs, newest first (chat threads, designer
|
|
1391
|
-
runs, CallFlow sub-runs). Proxies the AI API's workspace run store
|
|
1620
|
+
runs, CallFlow sub-runs). Proxies the AI API's workspace run store and
|
|
1621
|
+
joins each run's usage totals from SQL.
|
|
1392
1622
|
*/
|
|
1393
1623
|
const flowRunsGetWorkspaceRuns = (workspaceId, params) => {
|
|
1394
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/runs`, method: 'GET',
|
|
1624
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/runs`, method: 'GET',
|
|
1395
1625
|
params
|
|
1396
1626
|
});
|
|
1397
1627
|
};
|
|
@@ -1399,28 +1629,28 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1399
1629
|
* @summary Fetch details of the sandbox environment for a specific workspace in SmartSpace, using the workspaceId.
|
|
1400
1630
|
*/
|
|
1401
1631
|
const sandBoxGetSandboxThread = (workspaceId) => {
|
|
1402
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox`, method: 'GET'
|
|
1632
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox`, method: 'GET'
|
|
1403
1633
|
});
|
|
1404
1634
|
};
|
|
1405
1635
|
/**
|
|
1406
1636
|
* @summary Retrieve message creators profile images from the sandbox environment of a specific workspace in SmartSpace, with options for pagination take and skip
|
|
1407
1637
|
*/
|
|
1408
1638
|
const sandBoxThreadMessageCreateByUsersProfileImages = (workspaceId) => {
|
|
1409
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messagecreateduserprofileimages`, method: 'GET'
|
|
1639
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messagecreateduserprofileimages`, method: 'GET'
|
|
1410
1640
|
});
|
|
1411
1641
|
};
|
|
1412
1642
|
/**
|
|
1413
1643
|
* @summary Remove messages from the sandbox environment of a specific workspace in SmartSpace, identified by workspaceId.
|
|
1414
1644
|
*/
|
|
1415
1645
|
const sandBoxClearSandboxMessages = (workspaceId) => {
|
|
1416
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'DELETE'
|
|
1646
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'DELETE'
|
|
1417
1647
|
});
|
|
1418
1648
|
};
|
|
1419
1649
|
/**
|
|
1420
1650
|
* @summary Retrieve messages from the sandbox environment of a specific workspace in SmartSpace, with options for pagination take and skip
|
|
1421
1651
|
*/
|
|
1422
1652
|
const sandBoxGetThreadMessages = (workspaceId, params) => {
|
|
1423
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'GET',
|
|
1653
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'GET',
|
|
1424
1654
|
params
|
|
1425
1655
|
});
|
|
1426
1656
|
};
|
|
@@ -1433,7 +1663,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1433
1663
|
should subscribe to the SSE endpoint for live token-by-token updates.
|
|
1434
1664
|
*/
|
|
1435
1665
|
const sandBoxThreadMessages = (workspaceId, messagesSandBoxMessageRequest) => {
|
|
1436
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages`, method: 'POST',
|
|
1666
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages`, method: 'POST',
|
|
1437
1667
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1438
1668
|
data: messagesSandBoxMessageRequest
|
|
1439
1669
|
});
|
|
@@ -1448,7 +1678,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1448
1678
|
`GET /messagethreads/{id}/messages/stream`.
|
|
1449
1679
|
*/
|
|
1450
1680
|
const sandBoxStreamSandboxMessages = (workspaceId) => {
|
|
1451
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages/stream`, method: 'GET'
|
|
1681
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages/stream`, method: 'GET'
|
|
1452
1682
|
});
|
|
1453
1683
|
};
|
|
1454
1684
|
/**
|
|
@@ -1460,11 +1690,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1460
1690
|
message. Mirrors the chat-api `POST /messages/{id}/values`.
|
|
1461
1691
|
*/
|
|
1462
1692
|
const sandBoxAddValueToMessage = (workspaceId, id, messagesCreateMessageInput) => {
|
|
1463
|
-
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/sandbox/messages/${id}/values`, method: 'POST',
|
|
1693
|
+
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/sandbox/messages/${id}/values`, method: 'POST',
|
|
1464
1694
|
headers: { 'Content-Type': 'application/*+json', },
|
|
1465
1695
|
data: messagesCreateMessageInput
|
|
1466
1696
|
});
|
|
1467
1697
|
};
|
|
1468
|
-
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, 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, flowRunsSearchFlowRuns, flowRunsGetFileFromFlowRunId, flowRunsGetFlowRun, flowRunsCancelFlowRun, flowRunsAddFileIdFiles, flowRunsAddFileIdFilesExisting, flowRunsGetStepExecutions, flowRunsGetStepExecution, flowRunsGetFlowValueDownload, flowRunsGetVariables, flowRunsSetVariable, flowsGet, flowsSetActiveFlowDefinition, modelProvidersGetProviders, modelProvidersCreateProvider, modelProvidersGetModelProviderTypes, modelProvidersGetModelProviderTypeDeployableModels, modelProvidersGetProvider, modelProvidersUpsertProvider, modelsGetModels, modelsCreateModel, modelsGetDefaultModel, modelsGetDefaultDockerFile, modelsDeleteModel, modelsGetModel, modelsUpsertModel, modelsClearDefaultModel, modelsSetDefaultModel, modelsGetDeploymentDockerLogs, modelsGetModelHealth, notificationGet, notificationPutUpdate, notificationPutUpdateall, planGetSmartSpacePlan, planUpdateSmartSpaceUpgrade, planCalculateSmartSpaceUpgradeCost, planGetSmartSpacePlanUsage, reportingGetRequests, reportingGetTokens, servicePrincipalsGetServicePrincipals, syncsGet, syncsGetQueue, syncsDelete, syncsGetById, syncsGetItems, tenantIdGetResult, usersGetUsers, usersGetUsersByFilter, usersGetMyPermissions, usersRemoveUserFromAllWorkSpaces, usersSearchUsers, usersGetUserDetail, usersGetUserPhoto, usersGetAccessWorkSpaces, usersAdminPermission, usersAddUserPermission, usersRemoveUserPermission, virtualMachinesGetVirtualMachineLocations, virtualMachinesGetVirtualMachineSize, workSpaceTemplatesGet, workSpacesGetGet, workSpacesPost, workSpacesDelete, workSpacesGetId, workSpacesGetWorkspaceAdmins, workSpacesDeleteAdmin, workSpacesAddWorkspaceAdmin, workSpacesPut, workSpacesSetFavorited, workSpacesGetThreads, workSpacesDeleteModelConfiguration, workSpacesPutModelConfiguration, workSpacesRemoveConnector, workSpacesAddConnector, workSpacesRemoveDataSpace, workSpacesAddDataSpace, workSpacesGetWorkspaceFiles, workSpacesWorkspaceFiles, workSpacesDeleteWorkspaceFile, workSpacesGetActiveFlow, workSpacesSetActiveFlow, workSpacesSetActiveFlowLayout, connectorsGetConnectors, connectorsCreateConnector, connectorsGetConnectorSummaries, connectorsDeleteConnector, connectorsGetConnector, connectorsUpdateConnector, documentsGetDocumentSas, managedSecretsGetManagedSecrets, managedSecretsCreateManagedSecret, managedSecretsDeleteManagedSecret, managedSecretsOverwriteManagedSecretValue, messageThreadsGetWorkspaceExecutions, messageThreadsGetStepExecutions, flowRunsGetWorkspaceRuns, sandBoxGetSandboxThread, sandBoxThreadMessageCreateByUsersProfileImages, sandBoxClearSandboxMessages, sandBoxGetThreadMessages, sandBoxThreadMessages, sandBoxStreamSandboxMessages, sandBoxAddValueToMessage };
|
|
1698
|
+
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, flowRunsSearchFlowRuns, 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, workSpacesDeleteModelConfiguration, workSpacesPutModelConfiguration, 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 };
|
|
1469
1699
|
};
|
|
1470
1700
|
exports.getSmartSpaceAdminAPI = getSmartSpaceAdminAPI;
|