@smartspace/api-client 0.1.0-dev.e962e30 → 0.1.0-dev.e9a246f
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 +7 -1
- package/dist/generated/chat/api.js +28 -1
- package/dist/generated/chat/api.msw.d.ts +79 -0
- package/dist/generated/chat/api.msw.js +658 -0
- package/dist/generated/chat/models/aiModel.d.ts +1 -0
- package/dist/generated/chat/models/aiModelSummary.d.ts +1 -0
- package/dist/generated/chat/models/connectorsConnectorSummary.d.ts +12 -0
- package/dist/generated/chat/models/connectorsConnectorSummary.js +8 -0
- package/dist/generated/chat/models/dataSourceContainer.d.ts +2 -0
- package/dist/generated/chat/models/enumsNotificationType.d.ts +1 -0
- package/dist/generated/chat/models/enumsNotificationType.js +1 -0
- package/dist/generated/chat/models/flowsFlowConstant.d.ts +1 -0
- package/dist/generated/chat/models/flowsFlowTrigger.d.ts +1 -0
- package/dist/generated/chat/models/index.d.ts +3 -0
- package/dist/generated/chat/models/index.js +3 -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/messagesMessageError.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionAccessAccess.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionAiModelSummary.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionCommentCommentSummary.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionMessageThreadMessageThreadSummary.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionMessagesMessage.d.ts +2 -0
- package/dist/generated/chat/models/pagedDataCollectionWorkSpacesWorkSpace.d.ts +2 -0
- package/dist/generated/chat/models/workSpacesWorkSpace.d.ts +2 -0
- package/dist/generated/chat/zod.d.ts +62 -0
- package/dist/generated/chat/zod.js +67 -6
- package/dist/generated/config/api.d.ts +89 -3
- package/dist/generated/config/api.js +434 -3
- package/dist/generated/config/api.msw.d.ts +306 -0
- package/dist/generated/config/api.msw.js +2893 -0
- package/dist/generated/config/models/aiModel.d.ts +1 -0
- package/dist/generated/config/models/aiModelSummary.d.ts +1 -0
- package/dist/generated/config/models/blocksBlockSet.d.ts +3 -1
- package/dist/generated/config/models/blocksGetBlocksParams.d.ts +5 -0
- package/dist/generated/config/models/{integrationsAzureActiveDirectoryServicePrincipal.d.ts → blocksRenameBlockSetRequest.d.ts} +2 -3
- package/dist/generated/config/models/blocksUsedInRef.d.ts +11 -0
- package/dist/generated/config/models/blocksUsedInRef.js +8 -0
- package/dist/generated/config/models/configApiFlowRunIdentityMapRequest.d.ts +9 -0
- package/dist/generated/config/models/configApiFlowRunIdentityMapRequest.js +8 -0
- package/dist/generated/config/models/connectorsConnector.d.ts +23 -0
- package/dist/generated/config/models/connectorsConnector.js +8 -0
- package/dist/generated/config/models/connectorsConnectorSummary.d.ts +12 -0
- package/dist/generated/config/models/connectorsConnectorSummary.js +8 -0
- package/dist/generated/config/models/connectorsCreateConnector.d.ts +18 -0
- package/dist/generated/config/models/connectorsCreateConnector.js +8 -0
- package/dist/generated/config/models/connectorsGetConnectorSummariesParams.d.ts +9 -0
- package/dist/generated/config/models/connectorsGetConnectorSummariesParams.js +8 -0
- package/dist/generated/config/models/connectorsGetConnectorsParams.d.ts +9 -0
- package/dist/generated/config/models/connectorsGetConnectorsParams.js +8 -0
- package/dist/generated/config/models/connectorsResolvedConnector.d.ts +11 -0
- package/dist/generated/config/models/connectorsResolvedConnector.js +2 -0
- package/dist/generated/config/models/connectorsResolvedConnectorHeaders.d.ts +9 -0
- package/dist/generated/config/models/connectorsResolvedConnectorHeaders.js +8 -0
- package/dist/generated/config/models/connectorsUpdateConnector.d.ts +17 -0
- package/dist/generated/config/models/connectorsUpdateConnector.js +8 -0
- package/dist/generated/config/models/containerItem.d.ts +32 -0
- package/dist/generated/config/models/containerItem.js +2 -0
- 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/dataSetsCreateDataSetContainer.d.ts +2 -0
- package/dist/generated/config/models/dataSetsDataSet.d.ts +6 -0
- package/dist/generated/config/models/dataSetsGetIngestionRunsParams.d.ts +15 -0
- package/dist/generated/config/models/dataSetsGetIngestionRunsParams.js +8 -0
- package/dist/generated/config/models/dataSetsGetParams.d.ts +2 -0
- package/dist/generated/config/models/dataSetsSetDataSetScoping.d.ts +12 -0
- package/dist/generated/config/models/dataSetsSetDataSetScoping.js +2 -0
- package/dist/generated/config/models/dataSetsSetDataSetSourceDeletes.d.ts +11 -0
- package/dist/generated/config/models/dataSetsSetDataSetSourceDeletes.js +8 -0
- package/dist/generated/config/models/dataSetsUpsertDataSetProperty.d.ts +5 -1
- package/dist/generated/config/models/dataSourceContainer.d.ts +2 -0
- package/dist/generated/config/models/dataSourcesDataSourceContainer.d.ts +2 -0
- package/dist/generated/config/models/dataSpacesGetDataSetsParams.d.ts +2 -0
- package/dist/generated/config/models/draftsDraft.d.ts +17 -0
- package/dist/generated/config/models/draftsDraft.js +2 -0
- package/dist/generated/config/models/draftsDraftBlockInterfaces.d.ts +12 -0
- package/dist/generated/config/models/draftsDraftBlockInterfaces.js +2 -0
- package/dist/generated/config/models/draftsPublishDraftRequest.d.ts +11 -0
- package/dist/generated/config/models/draftsPublishDraftRequest.js +8 -0
- package/dist/generated/config/models/draftsPublishDraftResponse.d.ts +13 -0
- package/dist/generated/config/models/draftsPublishDraftResponse.js +2 -0
- package/dist/generated/config/models/draftsPublishedBlockRef.d.ts +10 -0
- package/dist/generated/config/models/draftsPublishedBlockRef.js +8 -0
- package/dist/generated/config/models/draftsSaveDraftRequest.d.ts +11 -0
- package/dist/generated/config/models/draftsSaveDraftRequest.js +8 -0
- package/dist/generated/config/models/draftsSaveDraftResponse.d.ts +13 -0
- package/dist/generated/config/models/draftsSaveDraftResponse.js +2 -0
- package/dist/generated/config/models/draftsSaveDraftResponseBlockInterfaces.d.ts +12 -0
- package/dist/generated/config/models/draftsSaveDraftResponseBlockInterfaces.js +2 -0
- package/dist/generated/config/models/draftsToggleDraftRequest.d.ts +9 -0
- package/dist/generated/config/models/draftsToggleDraftRequest.js +8 -0
- package/dist/generated/config/models/enumsActivityType.d.ts +1 -0
- package/dist/generated/config/models/enumsActivityType.js +1 -0
- package/dist/generated/config/models/enumsDataSetScopingMode.d.ts +11 -0
- package/dist/generated/config/models/enumsDataSetScopingMode.js +14 -0
- package/dist/generated/config/models/enumsNotificationType.d.ts +1 -0
- package/dist/generated/config/models/enumsNotificationType.js +1 -0
- package/dist/generated/config/models/enumsPermissions.d.ts +2 -13
- package/dist/generated/config/models/enumsPermissions.js +0 -20
- package/dist/generated/config/models/enumsPermissionsItem.d.ts +18 -0
- package/dist/generated/config/models/enumsPermissionsItem.js +21 -0
- package/dist/generated/config/models/flowRunsGetStepExecutionsParams.d.ts +19 -0
- package/dist/generated/config/models/flowRunsGetWorkspaceRunsParams.d.ts +16 -0
- package/dist/generated/config/models/flowRunsGetWorkspaceRunsParams.js +8 -0
- package/dist/generated/config/models/flowValueModel.d.ts +4 -0
- package/dist/generated/config/models/flowsFlowConstant.d.ts +1 -0
- package/dist/generated/config/models/flowsFlowRun.d.ts +2 -0
- package/dist/generated/config/models/flowsFlowTrigger.d.ts +1 -0
- package/dist/generated/config/models/functionExecutionDebugModel.d.ts +4 -0
- package/dist/generated/config/models/index.d.ts +52 -1
- package/dist/generated/config/models/index.js +52 -1
- package/dist/generated/config/models/integrationsSmartSpaceAiBlockSourceResponse.d.ts +11 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiBlockSourceResponse.js +8 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiContainerItemFlowRun.d.ts +2 -1
- package/dist/generated/config/models/integrationsSmartSpaceAiContainerItemRunHistory.d.ts +6 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiFlowValueModel.d.ts +4 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiFunctionExecutionDebugModel.d.ts +4 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRun.d.ts +72 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRun.js +2 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRunTrigger.d.ts +11 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRunTrigger.js +8 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiSdkBlockRef.d.ts +10 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiSdkBlockRef.js +8 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiSmartSpaceAiPagedDataSystemCollectionsGenericICollectionIntegrationsSmartSpaceAiWorkspaceRun.d.ts +11 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiSmartSpaceAiPagedDataSystemCollectionsGenericICollectionIntegrationsSmartSpaceAiWorkspaceRun.js +2 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiWorkspaceRun.d.ts +27 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiWorkspaceRun.js +8 -0
- package/dist/generated/config/models/managedSecretsCreateManagedSecret.d.ts +10 -0
- package/dist/generated/config/models/managedSecretsCreateManagedSecret.js +8 -0
- package/dist/generated/config/models/managedSecretsManagedSecret.d.ts +15 -0
- package/dist/generated/config/models/managedSecretsManagedSecret.js +8 -0
- package/dist/generated/config/models/managedSecretsUpdateManagedSecretValue.d.ts +9 -0
- package/dist/generated/config/models/managedSecretsUpdateManagedSecretValue.js +8 -0
- package/dist/generated/config/models/messagesMessageError.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionAccessAccess.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionAccessAccessWorkSpace.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionAccessAccessWorkSpace.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionActivitiesActivityWorkSpace.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionAiModelSummary.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionAzureADGroup.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionContainerItem.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionContainerItem.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionDataSetsDataSet.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionDataSourcesDataSource.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionDataSpacesDataSpace.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionFilesIngestedBlob.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionMessageThreadMessageThreadSummary.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionSyncsSync.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionSyncsSync.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionUsersAppAccessUser.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionUsersAppUserDetail.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionUsersAppUserSearchResult.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionUsersServicePrincipalDetail.d.ts +13 -0
- package/dist/generated/config/models/pagedDataCollectionUsersServicePrincipalDetail.js +2 -0
- package/dist/generated/config/models/pagedDataCollectionUsersServicePrincipalSearchResult.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionWorkSpaceTemplatesTemplate.d.ts +2 -0
- package/dist/generated/config/models/pagedDataCollectionWorkSpacesWorkSpace.d.ts +2 -0
- package/dist/generated/config/models/pagedDataSystemCollectionsGenericICollectionDataSetItem.d.ts +2 -0
- package/dist/generated/config/models/pagedDataSystemCollectionsGenericICollectionIntegrationsSmartSpaceAiContainerItemRunHistory.d.ts +2 -0
- package/dist/generated/config/models/pagedDataSystemCollectionsGenericICollectionIntegrationsSmartSpaceAiIngestionRun.d.ts +13 -0
- package/dist/generated/config/models/pagedDataSystemCollectionsGenericICollectionIntegrationsSmartSpaceAiIngestionRun.js +2 -0
- package/dist/generated/config/models/servicePrincipalsGetServicePrincipalsParams.d.ts +11 -0
- package/dist/generated/config/models/servicePrincipalsGetServicePrincipalsParams.js +8 -0
- package/dist/generated/config/models/syncsGetItemsParams.d.ts +10 -0
- package/dist/generated/config/models/syncsGetItemsParams.js +8 -0
- package/dist/generated/config/models/syncsGetParams.d.ts +18 -0
- package/dist/generated/config/models/syncsGetParams.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 +38 -0
- package/dist/generated/config/models/syncsSync.js +2 -0
- package/dist/generated/config/models/syncsSyncDataSourceInfo.d.ts +18 -0
- package/dist/generated/config/models/syncsSyncDataSourceInfo.js +2 -0
- package/dist/generated/config/models/syncsSyncQueueState.d.ts +10 -0
- package/dist/generated/config/models/syncsSyncQueueState.js +8 -0
- package/dist/generated/config/models/syncsSyncRunInfo.d.ts +14 -0
- package/dist/generated/config/models/syncsSyncRunInfo.js +8 -0
- package/dist/generated/config/models/usersAppUserSummary.d.ts +16 -0
- package/dist/generated/config/models/usersAppUserSummary.js +8 -0
- package/dist/generated/config/models/usersServicePrincipalDetail.d.ts +14 -0
- package/dist/generated/config/models/usersServicePrincipalDetail.js +2 -0
- package/dist/generated/config/models/workSpacesWorkSpace.d.ts +2 -0
- package/dist/generated/config/zod.d.ts +1538 -130
- package/dist/generated/config/zod.js +1216 -53
- package/dist/generated/signalr/SmartSpace.App.Business.Models.MessageThread.d.ts +7 -0
- package/dist/generated/signalr/SmartSpace.App.Business.Models.Notifications.d.ts +22 -0
- package/dist/generated/signalr/SmartSpace.App.Business.Models.Notifications.js +2 -0
- package/dist/generated/signalr/SmartSpace.App.Core.Enums.d.ts +7 -0
- package/dist/generated/signalr/SmartSpace.App.Core.Enums.js +14 -0
- package/dist/generated/signalr/TypedSignalR.Client/SmartSpace.App.Business.Hubs.Contracts.d.ts +20 -9
- package/dist/generated/signalr/TypedSignalR.Client/index.js +6 -0
- package/dist/mocks.d.ts +2 -0
- package/dist/mocks.js +42 -0
- package/dist/signalr.d.ts +3 -1
- package/dist/signalr.js +3 -0
- package/package.json +25 -3
- /package/dist/generated/config/models/{integrationsAzureActiveDirectoryServicePrincipal.js → blocksRenameBlockSetRequest.js} +0 -0
|
@@ -167,6 +167,18 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
167
167
|
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'DELETE'
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* @summary Rename a published custom block set (all versions). Set names are
|
|
172
|
+
organizational — flows bind to block (class) names, so renaming never
|
|
173
|
+
breaks a flow. Admin-only (the attribute must be method-level: the
|
|
174
|
+
Admin policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
175
|
+
*/
|
|
176
|
+
const blockSetsRenameBlockSet = (name, blocksRenameBlockSetRequest) => {
|
|
177
|
+
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'PATCH',
|
|
178
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
179
|
+
data: blocksRenameBlockSetRequest
|
|
180
|
+
});
|
|
181
|
+
};
|
|
170
182
|
/**
|
|
171
183
|
* @summary Adds a new custom block set.
|
|
172
184
|
*/
|
|
@@ -188,6 +200,26 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
188
200
|
params
|
|
189
201
|
});
|
|
190
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
205
|
+
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
206
|
+
excluded upstream. Admin-only (method-level attribute — the Admin
|
|
207
|
+
policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
208
|
+
*/
|
|
209
|
+
const blocksGetSdkBlocks = () => {
|
|
210
|
+
return (0, instance_1.customInstance)({ url: `/Blocks/sdk`, method: 'GET'
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* @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 (the
|
|
216
|
+
attribute must be method-level: the Admin policy handler ignores
|
|
217
|
+
class-level `[AuthorizeAdmin]`).
|
|
218
|
+
*/
|
|
219
|
+
const blocksGetBlockSource = (name, version) => {
|
|
220
|
+
return (0, instance_1.customInstance)({ url: `/Blocks/${name}/${version}/source`, method: 'GET'
|
|
221
|
+
});
|
|
222
|
+
};
|
|
191
223
|
/**
|
|
192
224
|
* @summary Manually trigger reingestion of a specific container item.
|
|
193
225
|
*/
|
|
@@ -279,6 +311,11 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
279
311
|
});
|
|
280
312
|
};
|
|
281
313
|
/**
|
|
314
|
+
* The `isVector` field is deprecated: the platform no longer uses it,
|
|
315
|
+
and it has no effect on ingestion or querying. It remains available as an
|
|
316
|
+
optional field for backward compatibility with existing integrations —
|
|
317
|
+
new integrations should omit it. When omitted, the stored value is
|
|
318
|
+
preserved on update and defaults to `false` on create.
|
|
282
319
|
* @summary Upsert a single property on a dataset.
|
|
283
320
|
*/
|
|
284
321
|
const dataSetsAddDataSetProperty = (id, dataSetsUpsertDataSetProperty) => {
|
|
@@ -291,6 +328,51 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
291
328
|
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/properties/${name}`, method: 'DELETE'
|
|
292
329
|
});
|
|
293
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* @summary Run-centric ingestion history for the dataset (newest first), from the
|
|
333
|
+
AI API's provenance-stamped run store. `trigger` filters by cause
|
|
334
|
+
(sync / sweep / manual / reset / unknown); `itemId` narrows to one
|
|
335
|
+
container item, including runs superseded by later re-ingests.
|
|
336
|
+
*/
|
|
337
|
+
const dataSetsGetIngestionRuns = (id, params) => {
|
|
338
|
+
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/runs`, method: 'GET',
|
|
339
|
+
params
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* @summary Set the per-document scoping config (mode + subject path) on a dataset.
|
|
344
|
+
*/
|
|
345
|
+
const dataSetsPutScoping = (id, dataSetsSetDataSetScoping) => {
|
|
346
|
+
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/scoping`, method: 'PUT',
|
|
347
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
348
|
+
data: dataSetsSetDataSetScoping
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* @summary Whether this dataset hides items whose source file was deleted in the given
|
|
353
|
+
container. Per container, because the setting belongs to that subscription.
|
|
354
|
+
Off is the default and does not disable detection — deletions are always
|
|
355
|
+
recorded and always marked on the affected rows; this only decides whether a
|
|
356
|
+
marked row is returned. Nothing here deletes anything.
|
|
357
|
+
*/
|
|
358
|
+
const dataSetsPutSourceDeletes = (id, dataSetsSetDataSetSourceDeletes) => {
|
|
359
|
+
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/sourceDeletes`, method: 'PUT',
|
|
360
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
361
|
+
data: dataSetsSetDataSetSourceDeletes
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Answered from the dataset, so it does not depend on whether the caller also
|
|
366
|
+
administers the connectors behind those syncs. Unpaged — the set is bounded by
|
|
367
|
+
the dataset's own triggers — but `scoped` is true when connector visibility
|
|
368
|
+
hid some of them, so an empty list is never presented as "nothing feeds this".
|
|
369
|
+
* @summary The syncs feeding this dataset — the connector selections whose landed items
|
|
370
|
+
ingest into it, including any it shares with other datasets.
|
|
371
|
+
*/
|
|
372
|
+
const dataSetsGetSyncs = (id) => {
|
|
373
|
+
return (0, instance_1.customInstance)({ url: `/DataSets/${id}/syncs`, method: 'GET'
|
|
374
|
+
});
|
|
375
|
+
};
|
|
294
376
|
/**
|
|
295
377
|
* @summary Fetch a list of all available data source types in SmartSpace.
|
|
296
378
|
*/
|
|
@@ -369,7 +451,8 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
369
451
|
};
|
|
370
452
|
/**
|
|
371
453
|
* @summary Returns a JSON Schema object for the container's properties, used to drive the filter editor UI.
|
|
372
|
-
Schema shape: { type: "object", properties: { [name]: { type, title, enum? } } }
|
|
454
|
+
Schema shape: { type: "object", properties: { [name]: { type, title, enum?, format? } } }
|
|
455
|
+
format "date"/"date-time" marks date-valued properties (their filter values remain epoch-millisecond strings).
|
|
373
456
|
containerPath is a query param (not a route segment) to avoid ASP.NET routing splits on paths containing '/'.
|
|
374
457
|
*/
|
|
375
458
|
const dataSourcesContainerSchema = (dataSourceId, params) => {
|
|
@@ -386,6 +469,15 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
386
469
|
data: dataSourcesUpdateDataSourceCredentials
|
|
387
470
|
});
|
|
388
471
|
};
|
|
472
|
+
/**
|
|
473
|
+
* @summary Requests an on-demand sync of a data source. The request is queued;
|
|
474
|
+
the sync service picks it up within ~30 seconds. Repeated requests
|
|
475
|
+
are safe — concurrent syncs of the same source collapse to one run.
|
|
476
|
+
*/
|
|
477
|
+
const dataSourcesRequestSync = (dataSourceId) => {
|
|
478
|
+
return (0, instance_1.customInstance)({ url: `/DataSources/${dataSourceId}/sync`, method: 'POST'
|
|
479
|
+
});
|
|
480
|
+
};
|
|
389
481
|
const dataSourcesGetAdminUsers = (id) => {
|
|
390
482
|
return (0, instance_1.customInstance)({ url: `/DataSources/${id}/admins`, method: 'GET'
|
|
391
483
|
});
|
|
@@ -461,6 +553,79 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
461
553
|
data: debugInvokeBody
|
|
462
554
|
});
|
|
463
555
|
};
|
|
556
|
+
/**
|
|
557
|
+
* @summary The ingest pipeline, install-wide: depth and oldest-message age of the
|
|
558
|
+
ingest and poison queues, and how many consumer replicas have a live
|
|
559
|
+
heartbeat. Nothing reads a message body.
|
|
560
|
+
*/
|
|
561
|
+
const diagnosticsGetIngestQueue = () => {
|
|
562
|
+
return (0, instance_1.customInstance)({ url: `/Diagnostics/ingest-queue`, method: 'GET'
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* @summary Mongo index health for the flow-runs store: planned-vs-existing
|
|
567
|
+
indexes per collection, the latest index-ensure outcome per index
|
|
568
|
+
(including repeated failures), and any in-flight index
|
|
569
|
+
transformations with their progress (currentOp).
|
|
570
|
+
*/
|
|
571
|
+
const diagnosticsGetMongoIndexes = () => {
|
|
572
|
+
return (0, instance_1.customInstance)({ url: `/Diagnostics/mongo-indexes`, method: 'GET'
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* @summary List the current user's drafts (without parsed interfaces — load detail to get those).
|
|
577
|
+
*/
|
|
578
|
+
const draftsListDrafts = () => {
|
|
579
|
+
return (0, instance_1.customInstance)({ url: `/Drafts`, method: 'GET'
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* @summary Delete a draft (row + blob). Does not touch any published Custom of the same name.
|
|
584
|
+
*/
|
|
585
|
+
const draftsDeleteDraft = (name) => {
|
|
586
|
+
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'DELETE'
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
/**
|
|
590
|
+
* @summary Fetch a specific draft (source text, parsed interfaces, RowVersion, IsActive).
|
|
591
|
+
*/
|
|
592
|
+
const draftsGetDraft = (name) => {
|
|
593
|
+
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'GET'
|
|
594
|
+
});
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* @summary Toggle the draft's "Start testing" flag. See ADR-0002 — owner's active draft
|
|
598
|
+
overrides the published Custom at the same `(name, version)` for them only.
|
|
599
|
+
*/
|
|
600
|
+
const draftsToggleDraft = (name, draftsToggleDraftRequest) => {
|
|
601
|
+
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'PATCH',
|
|
602
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
603
|
+
data: draftsToggleDraftRequest
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* @summary Create or update a draft. Pass `ExpectedRowVersion` for optimistic
|
|
608
|
+
concurrency on update (null for first-time create). Returns 409 with the
|
|
609
|
+
current `RowVersion` if another session has saved in the interim.
|
|
610
|
+
*/
|
|
611
|
+
const draftsSaveDraft = (name, draftsSaveDraftRequest) => {
|
|
612
|
+
return (0, instance_1.customInstance)({ url: `/Drafts/${name}`, method: 'POST',
|
|
613
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
614
|
+
data: draftsSaveDraftRequest
|
|
615
|
+
});
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* @summary Publish the draft's saved source as a tenant-visible Custom block set.
|
|
619
|
+
When a published set of the same name exists, the first call returns 409
|
|
620
|
+
with the impact details; retry with `confirmOverwrite: true` to
|
|
621
|
+
replace it (a new row supersedes the old per newest-wins resolution).
|
|
622
|
+
*/
|
|
623
|
+
const draftsPublishDraft = (name, draftsPublishDraftRequest) => {
|
|
624
|
+
return (0, instance_1.customInstance)({ url: `/Drafts/${name}/publish`, method: 'POST',
|
|
625
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
626
|
+
data: draftsPublishDraftRequest
|
|
627
|
+
});
|
|
628
|
+
};
|
|
464
629
|
/**
|
|
465
630
|
* @summary Upload files to be referenced in requests (supports full and chunked uploads).
|
|
466
631
|
*/
|
|
@@ -548,6 +713,51 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
548
713
|
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}`, method: 'GET'
|
|
549
714
|
});
|
|
550
715
|
};
|
|
716
|
+
/**
|
|
717
|
+
* @summary Requests cancellation of a queued or running flow run. Cancellation
|
|
718
|
+
is cooperative: a queued run is stamped cancelled before it starts;
|
|
719
|
+
a running flow stops between block executions, typically within
|
|
720
|
+
seconds. Cancelled runs carry cancelledAt in their basic info.
|
|
721
|
+
*/
|
|
722
|
+
const flowRunsCancelFlowRun = (id) => {
|
|
723
|
+
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/cancel`, method: 'POST'
|
|
724
|
+
});
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* Frames are unnamed SSE `data:` events, each carrying a `kind`:
|
|
728
|
+
`snapshot` (rows + total; the AI side sends it first), `events`
|
|
729
|
+
(rows that just changed, same shape), `lagged` and `gap` (both
|
|
730
|
+
mean re-read; the stream stays attached), and `unavailable` (the
|
|
731
|
+
feature is not enabled on the install; sent once, then the stream ends —
|
|
732
|
+
do not retry).
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
The client tracks no offset. The AI side attaches to its change stream
|
|
736
|
+
before it reads the log, so rows written between the two arrive twice
|
|
737
|
+
rather than not at all, and where it could not, or lost rows later, it
|
|
738
|
+
sends `gap` or `lagged`. A reconnect simply starts with a fresh
|
|
739
|
+
snapshot. This API relays that contract; it does not enforce it.
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
The AI side sends rows with structure and timings and with value payloads
|
|
743
|
+
left out — expand a step through M:SmartSpace.App.ConfigApi.Controllers.FlowRunsController.GetStepExecution(System.Guid,System.Guid) for those —
|
|
744
|
+
and sends only persisted state, which does not include LLM token deltas.
|
|
745
|
+
Nothing here strips a payload: a row is relayed as it arrives.
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
This endpoint does not return 501. The AI side answers 501 when the
|
|
749
|
+
feature is off, and that arrives here as the `unavailable` frame on a
|
|
750
|
+
200. Surfacing it as an exception instead would reach the caller as a
|
|
751
|
+
generic 500, which loses the one thing it needs to know: that retrying
|
|
752
|
+
will never help.
|
|
753
|
+
|
|
754
|
+
* @summary Live run events for a run: a snapshot of the run so far, then the tail,
|
|
755
|
+
on one connection.
|
|
756
|
+
*/
|
|
757
|
+
const flowRunsStreamRunEvents = (id) => {
|
|
758
|
+
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/events/stream`, method: 'GET'
|
|
759
|
+
});
|
|
760
|
+
};
|
|
551
761
|
const flowRunsAddFileIdFiles = (id, flowRunsAddFileIdFilesBody) => {
|
|
552
762
|
const formData = new FormData();
|
|
553
763
|
if (flowRunsAddFileIdFilesBody.file !== undefined) {
|
|
@@ -564,11 +774,36 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
564
774
|
data: filesAddMessageFileFromBlobUri
|
|
565
775
|
});
|
|
566
776
|
};
|
|
777
|
+
/**
|
|
778
|
+
* @summary Lists a run's function executions, newest first.
|
|
779
|
+
*/
|
|
567
780
|
const flowRunsGetStepExecutions = (id, params) => {
|
|
568
781
|
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions`, method: 'GET',
|
|
569
782
|
params
|
|
570
783
|
});
|
|
571
784
|
};
|
|
785
|
+
/**
|
|
786
|
+
* Inline values are returned as stored. Values spilled to blob storage come
|
|
787
|
+
back by reference (`isBlob`, `sizeBytes`, `data` null) and are
|
|
788
|
+
fetched with M:SmartSpace.App.ConfigApi.Controllers.FlowRunsController.GetFlowValueDownload(System.Guid,System.Guid); they are never downloaded on
|
|
789
|
+
this read, so expanding a large step costs the same as a small one.
|
|
790
|
+
* @summary Gets one execution of a run with its input/output values — the detail read
|
|
791
|
+
behind `functionexecutions?includeValues=false`.
|
|
792
|
+
*/
|
|
793
|
+
const flowRunsGetStepExecution = (id, executionId) => {
|
|
794
|
+
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/functionexecutions/${executionId}`, method: 'GET'
|
|
795
|
+
});
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Redirects to short-lived direct-from-storage link, so the payload never
|
|
799
|
+
transits this service — the same pattern as file downloads. Only values the
|
|
800
|
+
per-execution read returned by reference resolve here.
|
|
801
|
+
* @summary Downloads a blob-spilled value's payload.
|
|
802
|
+
*/
|
|
803
|
+
const flowRunsGetFlowValueDownload = (id, valueId) => {
|
|
804
|
+
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/values/${valueId}/download`, method: 'GET'
|
|
805
|
+
});
|
|
806
|
+
};
|
|
572
807
|
const flowRunsGetVariables = (id) => {
|
|
573
808
|
return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables`, method: 'GET'
|
|
574
809
|
});
|
|
@@ -650,6 +885,13 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
650
885
|
data: aiCreateModel
|
|
651
886
|
});
|
|
652
887
|
};
|
|
888
|
+
/**
|
|
889
|
+
* @summary Retrieves the instance-wide default model — the one pre-selected on new LLM blocks and the default workspace flow.
|
|
890
|
+
*/
|
|
891
|
+
const modelsGetDefaultModel = () => {
|
|
892
|
+
return (0, instance_1.customInstance)({ url: `/Models/default`, method: 'GET'
|
|
893
|
+
});
|
|
894
|
+
};
|
|
653
895
|
const modelsGetDefaultDockerFile = (params) => {
|
|
654
896
|
return (0, instance_1.customInstance)({ url: `/Models/defaultdockerfile`, method: 'GET',
|
|
655
897
|
params
|
|
@@ -678,6 +920,20 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
678
920
|
data: aiCreateModel
|
|
679
921
|
});
|
|
680
922
|
};
|
|
923
|
+
/**
|
|
924
|
+
* @summary Clears the default flag from the specified model, leaving the instance with no default.
|
|
925
|
+
*/
|
|
926
|
+
const modelsClearDefaultModel = (id) => {
|
|
927
|
+
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'DELETE'
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
/**
|
|
931
|
+
* @summary Makes the specified model the instance-wide default, replacing any previous default.
|
|
932
|
+
*/
|
|
933
|
+
const modelsSetDefaultModel = (id) => {
|
|
934
|
+
return (0, instance_1.customInstance)({ url: `/Models/${id}/default`, method: 'PUT'
|
|
935
|
+
});
|
|
936
|
+
};
|
|
681
937
|
/**
|
|
682
938
|
* @summary Retrieves the Docker logs for a specific deployment of a model.
|
|
683
939
|
*/
|
|
@@ -764,6 +1020,71 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
764
1020
|
params
|
|
765
1021
|
});
|
|
766
1022
|
};
|
|
1023
|
+
/**
|
|
1024
|
+
* @summary List API accounts: service principals holding the SmartSpace integration
|
|
1025
|
+
role, with their permission flags and last recorded activity.
|
|
1026
|
+
*/
|
|
1027
|
+
const servicePrincipalsGetServicePrincipals = (params) => {
|
|
1028
|
+
return (0, instance_1.customInstance)({ url: `/ServicePrincipals`, method: 'GET',
|
|
1029
|
+
params
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* @summary List configured syncs. status matches the data
|
|
1034
|
+
source's latest completed sync (e.g. Success / Failure), or "never"
|
|
1035
|
+
for sources with no recorded sync. sortBy:
|
|
1036
|
+
name | connector | lastSync (default: path).
|
|
1037
|
+
*/
|
|
1038
|
+
const syncsGet = (params) => {
|
|
1039
|
+
return (0, instance_1.customInstance)({ url: `/Syncs`, method: 'GET',
|
|
1040
|
+
params
|
|
1041
|
+
});
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* @summary The sync-requests queue right now: approximate depth and which data
|
|
1045
|
+
sources have a request WAITING. In-flight requests are invisible to
|
|
1046
|
+
peek (visibility timeout) — that state is each data source's
|
|
1047
|
+
isSyncing flag. Literal route wins over the {containerId} template.
|
|
1048
|
+
*/
|
|
1049
|
+
const syncsGetQueue = () => {
|
|
1050
|
+
return (0, instance_1.customInstance)({ url: `/Syncs/queue`, method: 'GET'
|
|
1051
|
+
});
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* @summary Removes the sync: deletes its data source container config record, so
|
|
1055
|
+
the source selection stops being mirrored from the next sync cycle.
|
|
1056
|
+
Refused (DSC400) while any live dataset still subscribes to it via a
|
|
1057
|
+
container flow trigger. Config-only — already-landed items and copied
|
|
1058
|
+
blobs are not cleaned up here.
|
|
1059
|
+
*/
|
|
1060
|
+
const syncsDelete = (containerId) => {
|
|
1061
|
+
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'DELETE'
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
const syncsGetById = (containerId) => {
|
|
1065
|
+
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}`, method: 'GET'
|
|
1066
|
+
});
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* @summary The sync's landed items (read-only metadata), proxied from the AI API's
|
|
1070
|
+
container-items endpoint.
|
|
1071
|
+
*/
|
|
1072
|
+
const syncsGetItems = (containerId, params) => {
|
|
1073
|
+
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}/items`, method: 'GET',
|
|
1074
|
+
params
|
|
1075
|
+
});
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* @summary The sync's dead-letter list: the ingestion run records the AI API's
|
|
1079
|
+
consumer gave up on, newest first, each with the reason. The poison queue
|
|
1080
|
+
holds the replay copies and is not read here. 502 when the install's AI
|
|
1081
|
+
API predates the route, rather than an opaque 500.
|
|
1082
|
+
*/
|
|
1083
|
+
const syncsGetPoisoned = (containerId, params) => {
|
|
1084
|
+
return (0, instance_1.customInstance)({ url: `/Syncs/${containerId}/poisoned`, method: 'GET',
|
|
1085
|
+
params
|
|
1086
|
+
});
|
|
1087
|
+
};
|
|
767
1088
|
/**
|
|
768
1089
|
* @summary Gets Tenant Id
|
|
769
1090
|
*/
|
|
@@ -772,7 +1093,8 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
772
1093
|
});
|
|
773
1094
|
};
|
|
774
1095
|
/**
|
|
775
|
-
* @summary Retrieve
|
|
1096
|
+
* @summary Retrieve users assigned to the SmartSpace application (directly or via a group),
|
|
1097
|
+
with optional search and pagination controls take and skip.
|
|
776
1098
|
*/
|
|
777
1099
|
const usersGetUsers = (params) => {
|
|
778
1100
|
return (0, instance_1.customInstance)({ url: `/Users`, method: 'GET',
|
|
@@ -949,6 +1271,24 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
949
1271
|
data: createModelConfiguration
|
|
950
1272
|
});
|
|
951
1273
|
};
|
|
1274
|
+
/**
|
|
1275
|
+
* @summary Detaches a connector from a workspace. Flows still referencing it
|
|
1276
|
+
fail at resolve time rather than silently keeping access.
|
|
1277
|
+
*/
|
|
1278
|
+
const workSpacesRemoveConnector = (workspaceId, connectorId) => {
|
|
1279
|
+
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'DELETE'
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
/**
|
|
1283
|
+
* @summary Attaches a connector to a workspace — the access model for external
|
|
1284
|
+
connectors, mirroring dataspaces. Only after this can a flow in the
|
|
1285
|
+
workspace reference the connector, and the resolve endpoint checks
|
|
1286
|
+
the same attachment at call time.
|
|
1287
|
+
*/
|
|
1288
|
+
const workSpacesAddConnector = (workspaceId, connectorId) => {
|
|
1289
|
+
return (0, instance_1.customInstance)({ url: `/WorkSpaces/${workspaceId}/connectors/${connectorId}`, method: 'PUT'
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
952
1292
|
/**
|
|
953
1293
|
* @summary Removes a data space from a workspace.
|
|
954
1294
|
*/
|
|
@@ -1013,6 +1353,53 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1013
1353
|
data: workSpacesSetActiveFlowLayoutBody
|
|
1014
1354
|
});
|
|
1015
1355
|
};
|
|
1356
|
+
/**
|
|
1357
|
+
* @summary Lists connectors with their auth settings — never a credential.
|
|
1358
|
+
*/
|
|
1359
|
+
const connectorsGetConnectors = (params) => {
|
|
1360
|
+
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'GET',
|
|
1361
|
+
params
|
|
1362
|
+
});
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* @summary Creates a connector and its shared credential in one call: the value
|
|
1366
|
+
goes to Key Vault, the row stores only the reference.
|
|
1367
|
+
*/
|
|
1368
|
+
const connectorsCreateConnector = (connectorsCreateConnector) => {
|
|
1369
|
+
return (0, instance_1.customInstance)({ url: `/connectors`, method: 'POST',
|
|
1370
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1371
|
+
data: connectorsCreateConnector
|
|
1372
|
+
});
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* @summary Picker list for workspace editors: id, name and kind only. Gated on
|
|
1376
|
+
WorkspaceEdit rather than Admin because attaching a connector to a
|
|
1377
|
+
workspace is a workspace-editor action, and the picker is how they
|
|
1378
|
+
choose one. Admins pass this gate via the role bypass.
|
|
1379
|
+
*/
|
|
1380
|
+
const connectorsGetConnectorSummaries = (params) => {
|
|
1381
|
+
return (0, instance_1.customInstance)({ url: `/connectors/summaries`, method: 'GET',
|
|
1382
|
+
params
|
|
1383
|
+
});
|
|
1384
|
+
};
|
|
1385
|
+
const connectorsDeleteConnector = (id) => {
|
|
1386
|
+
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'DELETE'
|
|
1387
|
+
});
|
|
1388
|
+
};
|
|
1389
|
+
const connectorsGetConnector = (id) => {
|
|
1390
|
+
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'GET'
|
|
1391
|
+
});
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* @summary Updates a connector. Omit `Secret` to leave the credential
|
|
1395
|
+
untouched; supply one to rotate it.
|
|
1396
|
+
*/
|
|
1397
|
+
const connectorsUpdateConnector = (id, connectorsUpdateConnector) => {
|
|
1398
|
+
return (0, instance_1.customInstance)({ url: `/connectors/${id}`, method: 'PUT',
|
|
1399
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1400
|
+
data: connectorsUpdateConnector
|
|
1401
|
+
});
|
|
1402
|
+
};
|
|
1016
1403
|
/**
|
|
1017
1404
|
* @summary Retrieve a Shared Access Signature (SAS) for a specific item within a data space's documents in SmartSpace, using the dataSpaceId.
|
|
1018
1405
|
*/
|
|
@@ -1021,6 +1408,41 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1021
1408
|
params
|
|
1022
1409
|
});
|
|
1023
1410
|
};
|
|
1411
|
+
/**
|
|
1412
|
+
* @summary Lists all managed secrets — names and audit metadata only, never values.
|
|
1413
|
+
*/
|
|
1414
|
+
const managedSecretsGetManagedSecrets = () => {
|
|
1415
|
+
return (0, instance_1.customInstance)({ url: `/managedsecrets`, method: 'GET'
|
|
1416
|
+
});
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* @summary Creates a named secret: writes the value to Key Vault and stores only
|
|
1420
|
+
the vault reference.
|
|
1421
|
+
*/
|
|
1422
|
+
const managedSecretsCreateManagedSecret = (managedSecretsCreateManagedSecret) => {
|
|
1423
|
+
return (0, instance_1.customInstance)({ url: `/managedsecrets`, method: 'POST',
|
|
1424
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1425
|
+
data: managedSecretsCreateManagedSecret
|
|
1426
|
+
});
|
|
1427
|
+
};
|
|
1428
|
+
/**
|
|
1429
|
+
* @summary Deletes a secret: removes the Key Vault secret and hard-deletes the row.
|
|
1430
|
+
*/
|
|
1431
|
+
const managedSecretsDeleteManagedSecret = (name) => {
|
|
1432
|
+
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}`, method: 'DELETE'
|
|
1433
|
+
});
|
|
1434
|
+
};
|
|
1435
|
+
/**
|
|
1436
|
+
* @summary Overwrites (rotates) a secret's value — a new Key Vault version under
|
|
1437
|
+
the same vault key. The value is write-only; nothing is returned but
|
|
1438
|
+
audit metadata.
|
|
1439
|
+
*/
|
|
1440
|
+
const managedSecretsOverwriteManagedSecretValue = (name, managedSecretsUpdateManagedSecretValue) => {
|
|
1441
|
+
return (0, instance_1.customInstance)({ url: `/managedsecrets/${name}/value`, method: 'PUT',
|
|
1442
|
+
headers: { 'Content-Type': 'application/*+json', },
|
|
1443
|
+
data: managedSecretsUpdateManagedSecretValue
|
|
1444
|
+
});
|
|
1445
|
+
};
|
|
1024
1446
|
const messageThreadsGetWorkspaceExecutions = (workSpaceId, params) => {
|
|
1025
1447
|
return (0, instance_1.customInstance)({ url: `/workspaces/${workSpaceId}/functionexecutions`, method: 'GET',
|
|
1026
1448
|
params
|
|
@@ -1031,6 +1453,15 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1031
1453
|
params
|
|
1032
1454
|
});
|
|
1033
1455
|
};
|
|
1456
|
+
/**
|
|
1457
|
+
* @summary Lists a workspace's flow runs, newest first (chat threads, designer
|
|
1458
|
+
runs, CallFlow sub-runs). Proxies the AI API's workspace run store.
|
|
1459
|
+
*/
|
|
1460
|
+
const flowRunsGetWorkspaceRuns = (workspaceId, params) => {
|
|
1461
|
+
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/runs`, method: 'GET',
|
|
1462
|
+
params
|
|
1463
|
+
});
|
|
1464
|
+
};
|
|
1034
1465
|
/**
|
|
1035
1466
|
* @summary Fetch details of the sandbox environment for a specific workspace in SmartSpace, using the workspaceId.
|
|
1036
1467
|
*/
|
|
@@ -1101,6 +1532,6 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1101
1532
|
data: messagesCreateMessageInput
|
|
1102
1533
|
});
|
|
1103
1534
|
};
|
|
1104
|
-
return { accessGetAccesses, accessAddAccess, accessGetGroups, accessGetAppRoles, accessGetUsersInRoleRolesRoleIdUsers, accessSearchGroups, accessSearchServicePrincipals, accessSearchUsers, accessGetUsersInRoleUsers, accessDeleteAccess, activityExportLoggings, activityGetLogging, applicationUpdateGetLatestDeployment, applicationUpdateGetCurrentVersion, applicationUpdateReapplyCurrentVersion, applicationUpdateGetLatestAvailableVersion, applicationUpdateApplyLatestAvailableVersion, blockSetsGetBlockSets, blockSetsGetDeployedBlockCode, blockSetsGetDeployedBlockFiles, blockSetsDeleteBlockSet, blockSetsAddBlockSet, blocksGetBlocks, containersReingestContainerItem, containersPost, dataSetsGet, dataSetsGetItem, dataSetsDelete, dataSetsGetById, dataSetsPut, dataSetsPutBasicInfo, dataSetsClear, dataSetsGetContainerItemsRunHistory, dataSetsSetDataspace, dataSetsExport, dataSetsGetItems, dataSetsAddItem, dataSetsSearchItems, dataSetsDeleteItem, dataSetsAddDataSetProperty, dataSetsDeleteDataSetProperty, dataSourceTypesGet, dataSourceTypesGetAvailableContainers, dataSourceTypesTestConnection, dataSourcesGet, dataSourcesPost, dataSourcesDelete, dataSourcesPut, dataSourcesContainers, dataSourcesPreviewContainer, dataSourcesContainerSchema, dataSourcesUpdateCredentials, dataSourcesGetAdminUsers, dataSourcesDeleteAdmin, dataSourcesAddAdmin, dataSpacesGet, dataSpacesPost, dataSpacesDelete, dataSpacesGetById, dataSpacesPut, dataSpacesGetAdminUsers, dataSpacesDeleteAdmin, dataSpacesAddAdmin, dataSpacesGetDataSets, dataSpacesPostDataset, debugInvoke, filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCreateFlowRun, flowRunsSearchFlowRuns, flowRunsGetFileFromFlowRunId, flowRunsGetFlowRun, flowRunsAddFileIdFiles, flowRunsAddFileIdFilesExisting, flowRunsGetStepExecutions, flowRunsGetVariables, flowRunsSetVariable, flowsGet, flowsSetActiveFlowDefinition, modelProvidersGetProviders, modelProvidersCreateProvider, modelProvidersGetModelProviderTypes, modelProvidersGetModelProviderTypeDeployableModels, modelProvidersGetProvider, modelProvidersUpsertProvider, modelsGetModels, modelsCreateModel, modelsGetDefaultDockerFile, modelsDeleteModel, modelsGetModel, modelsUpsertModel, modelsGetDeploymentDockerLogs, modelsGetModelHealth, notificationGet, notificationPutUpdate, notificationPutUpdateall, planGetSmartSpacePlan, planUpdateSmartSpaceUpgrade, planCalculateSmartSpaceUpgradeCost, planGetSmartSpacePlanUsage, reportingGetRequests, reportingGetTokens, 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, workSpacesRemoveDataSpace, workSpacesAddDataSpace, workSpacesGetWorkspaceFiles, workSpacesWorkspaceFiles, workSpacesDeleteWorkspaceFile, workSpacesGetActiveFlow, workSpacesSetActiveFlow, workSpacesSetActiveFlowLayout, documentsGetDocumentSas, messageThreadsGetWorkspaceExecutions, messageThreadsGetStepExecutions, sandBoxGetSandboxThread, sandBoxThreadMessageCreateByUsersProfileImages, sandBoxClearSandboxMessages, sandBoxGetThreadMessages, sandBoxThreadMessages, sandBoxStreamSandboxMessages, sandBoxAddValueToMessage };
|
|
1535
|
+
return { accessGetAccesses, accessAddAccess, accessGetGroups, accessGetAppRoles, accessGetUsersInRoleRolesRoleIdUsers, accessSearchGroups, accessSearchServicePrincipals, accessSearchUsers, accessGetUsersInRoleUsers, accessDeleteAccess, activityExportLoggings, activityGetLogging, applicationUpdateGetLatestDeployment, applicationUpdateGetCurrentVersion, applicationUpdateReapplyCurrentVersion, applicationUpdateGetLatestAvailableVersion, applicationUpdateApplyLatestAvailableVersion, blockSetsGetBlockSets, blockSetsGetDeployedBlockCode, blockSetsGetDeployedBlockFiles, blockSetsDeleteBlockSet, blockSetsRenameBlockSet, blockSetsAddBlockSet, blocksGetBlocks, blocksGetSdkBlocks, blocksGetBlockSource, containersReingestContainerItem, containersPost, dataSetsGet, dataSetsGetItem, dataSetsDelete, dataSetsGetById, dataSetsPut, dataSetsPutBasicInfo, dataSetsClear, dataSetsGetContainerItemsRunHistory, dataSetsSetDataspace, dataSetsExport, dataSetsGetItems, dataSetsAddItem, dataSetsSearchItems, dataSetsDeleteItem, dataSetsAddDataSetProperty, dataSetsDeleteDataSetProperty, dataSetsGetIngestionRuns, dataSetsPutScoping, dataSetsPutSourceDeletes, dataSetsGetSyncs, dataSourceTypesGet, dataSourceTypesGetAvailableContainers, dataSourceTypesTestConnection, dataSourcesGet, dataSourcesPost, dataSourcesDelete, dataSourcesPut, dataSourcesContainers, dataSourcesPreviewContainer, dataSourcesContainerSchema, dataSourcesUpdateCredentials, dataSourcesRequestSync, dataSourcesGetAdminUsers, dataSourcesDeleteAdmin, dataSourcesAddAdmin, dataSpacesGet, dataSpacesPost, dataSpacesDelete, dataSpacesGetById, dataSpacesPut, dataSpacesGetAdminUsers, dataSpacesDeleteAdmin, dataSpacesAddAdmin, dataSpacesGetDataSets, dataSpacesPostDataset, debugInvoke, diagnosticsGetIngestQueue, diagnosticsGetMongoIndexes, draftsListDrafts, draftsDeleteDraft, draftsGetDraft, draftsToggleDraft, draftsSaveDraft, draftsPublishDraft, filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCreateFlowRun, flowRunsSearchFlowRuns, flowRunsGetFileFromFlowRunId, flowRunsGetFlowRun, flowRunsCancelFlowRun, flowRunsStreamRunEvents, 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, syncsGetPoisoned, 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 };
|
|
1105
1536
|
};
|
|
1106
1537
|
exports.getSmartSpaceAdminAPI = getSmartSpaceAdminAPI;
|